.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 142px 0 70px;
}

.hero::after {
  position: absolute;
  z-index: 0;
  top: 15%;
  right: -300px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(109, 93, 252, 0.14),
    transparent 70%
  );
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
  align-items: center;
  gap: 74px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  color: #5f5a54;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 34px;
  height: 1px;
  background: var(--ink);
}

.hero h1 {
  max-width: 690px;
  margin-bottom: 27px;
  font-family: var(--serif);
  font-size: clamp(3.625rem, 6.4vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.058em;
  line-height: 0.92;
}

.hero h1 em {
  color: var(--violet);
  font-weight: 500;
}

.hero-title-line {
  display: inline;
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 30px;
  color: #5f5a54;
  font-size: 1.125rem;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.micro-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.micro-proof li {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: #625d57;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero-demo-wrap {
  position: relative;
  min-width: 0;
  perspective: 1200px;
  scroll-margin-top: 100px;
}

.handwritten {
  position: absolute;
  z-index: 2;
  top: -62px;
  right: -20px;
  color: #6a625b;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  transform: rotate(-4deg);
}

.handwritten::after {
  display: block;
  width: 78px;
  height: 31px;
  margin: -9px 0 0 -20px;
  border-bottom: 1px solid #6a625b;
  border-radius: 50%;
  content: "";
  transform: rotate(12deg);
}

.demo-window {
  --demo-progress: 0;
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: #101013;
  box-shadow: 0 42px 100px rgba(29, 23, 18, 0.2);
  transform-style: preserve-3d;
  will-change: transform;
}

.demo-top {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px 0 12px;
  color: #e9e7e0;
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4c4c51;
}

.demo-dots i:first-child {
  background: var(--danger);
}

.demo-dots i:nth-child(2) {
  background: var(--amber);
}

.demo-dots i:nth-child(3) {
  background: var(--cyan);
}

.event-meta {
  color: #9d9aa3;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(89, 214, 193, 0.28);
  border-radius: 999px;
  background: rgba(89, 214, 193, 0.08);
  color: #c8fff5;
  font-size: 0.625rem;
}

.live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(89, 214, 193, 0.08);
}

.demo-stage {
  position: relative;
  height: 510px;
  overflow: hidden;
  border-radius: 18px;
  background: #17171b;
}

.demo-layer {
  position: absolute;
  visibility: hidden;
  z-index: 0;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.demo-window[data-state="capture"] .capture-layer,
.demo-window[data-state="select"] .select-layer,
.demo-window[data-state="finish"] .finish-layer,
.demo-window[data-state="deliver"] .deliver-layer {
  visibility: visible;
  z-index: 1;
  opacity: 1;
  transform: none;
}

.demo-photo,
.demo-photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}

.demo-photo img {
  object-fit: cover;
}

.capture-layer {
  transform: scale(1.025);
}

.capture-layer::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 13, 0.76), transparent 48%);
  content: "";
}

.viewfinder {
  position: absolute;
  z-index: 2;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.focus-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  box-shadow: 18px 0 0 -10px rgba(255, 255, 255, 0.7),
    -18px 0 0 -10px rgba(255, 255, 255, 0.7),
    0 18px 0 -10px rgba(255, 255, 255, 0.7),
    0 -18px 0 -10px rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%);
}

.frame-meta {
  position: absolute;
  z-index: 3;
  right: 34px;
  bottom: 26px;
  left: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  color: white;
}

.frame-meta strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--serif);
  font-size: 1.5625rem;
  font-weight: 500;
}

.frame-meta span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.frame-meta .exif {
  flex: 0 0 auto;
  line-height: 1.7;
  text-align: right;
}

.select-layer {
  padding: 24px;
  background: #151518;
  transform: translateY(24px);
}

.contact-grid {
  display: grid;
  height: 100%;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}

.contact-frame {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #2b2b2f;
}

.contact-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-frame::after {
  position: absolute;
  bottom: 6px;
  left: 7px;
  color: white;
  content: attr(data-frame);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 7px black;
}

.contact-frame.is-keeper {
  border-color: var(--violet-2);
  box-shadow: 0 0 0 3px rgba(109, 93, 252, 0.18);
}

.contact-frame.is-keeper::before {
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 6px;
  display: grid;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--violet);
  color: white;
  content: "★";
  font-size: 0.625rem;
  place-items: center;
}

.contact-frame.is-rejected {
  filter: grayscale(0.85);
  opacity: 0.38;
}

.select-summary {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: 50%;
  padding: 10px 13px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(14, 14, 16, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 0.625rem;
  font-weight: 750;
  transform: translateX(-50%);
  white-space: nowrap;
}

.finish-layer {
  background: #17171b;
  transform: scale(0.98);
}

.finish-before img {
  filter: saturate(0.68) brightness(0.86);
}

.finish-after {
  clip-path: inset(0 50% 0 0);
}

.finish-after img {
  filter: saturate(1.12) contrast(1.08) brightness(1.05) sepia(0.04);
}

.finish-after::after {
  position: absolute;
  right: 50%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  content: "";
}

.finish-handle {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  transform: translate(-50%, -50%);
  place-items: center;
}

.finish-label {
  position: absolute;
  z-index: 3;
  bottom: 25px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(14, 14, 16, 0.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finish-label-after {
  left: 25px;
}

.finish-label-before {
  right: 25px;
}

.preset-chip {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 22px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(250, 248, 243, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  color: #292527;
}

.preset-chip small {
  display: block;
  margin-bottom: 5px;
  color: #746d67;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preset-chip strong {
  font-size: 0.75rem;
}

.deliver-layer {
  overflow: hidden;
  padding: 28px;
  background: #151518;
  transform: translateY(24px);
}

.delivery-photo {
  opacity: 0.72;
}

.deliver-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(15, 15, 18, 0.2),
      rgba(15, 15, 18, 0.9)
    ),
    radial-gradient(circle at 20% 20%, rgba(109, 93, 252, 0.2), transparent 34%);
}

.gallery-card {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 28px;
  bottom: 28px;
  overflow: hidden;
  width: 54%;
  padding: 18px;
  border-radius: 18px;
  background: #f6f3ec;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  color: var(--ink);
}

.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.gallery-head strong {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 500;
}

.gallery-head span {
  color: #6f6a62;
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  height: 68%;
  grid-template-columns: 1.3fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
}

.gallery-grid img:first-child {
  grid-row: 1 / 3;
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  color: #77716a;
  font-size: 0.5625rem;
}

.gallery-action {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  white-space: nowrap;
}

.deliver-note {
  position: absolute;
  z-index: 2;
  bottom: 31px;
  left: 28px;
  max-width: 210px;
  color: white;
}

.deliver-note strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.5625rem;
  font-weight: 500;
  line-height: 1.02;
}

.deliver-note span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.625rem;
  line-height: 1.5;
}

.demo-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 11px;
}

.demo-control {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  border: 0;
  border-radius: 11px;
  background: #1b1b1f;
  color: #929099;
  cursor: pointer;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.demo-control::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #626168;
  content: "";
}

.demo-control.is-active {
  background: #25242a;
  color: white;
}

.demo-control.is-active::before {
  background: var(--violet-2);
  box-shadow: 0 0 0 5px rgba(109, 93, 252, 0.14);
}

.demo-control:focus-visible {
  z-index: 2;
  outline-color: var(--white);
  outline-offset: -2px;
  box-shadow: 0 0 0 3px var(--violet);
}

.demo-progress {
  position: absolute;
  right: 15px;
  bottom: 0;
  left: 15px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.demo-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--violet-2);
  transform: scaleX(var(--demo-progress));
  transform-origin: left;
}

.hero-note {
  position: absolute;
  z-index: 4;
  bottom: -30px;
  left: -37px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-note-icon {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--lavender);
  color: var(--violet);
  font-weight: 900;
  place-items: center;
}

.hero-note strong,
.hero-note small {
  display: block;
}

.hero-note strong {
  font-size: 0.6875rem;
}

.hero-note small {
  margin-top: 3px;
  color: #746f68;
  font-size: 0.5625rem;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: #716b64;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue > span {
  position: relative;
  width: 18px;
  height: 28px;
  border: 1px solid rgba(23, 23, 24, 0.4);
  border-radius: 999px;
}

.scroll-cue > span::after {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 4px;
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
}

/* Iowan Old Style is not bundled on Windows. Palatino is taller and wider,
   so compress its desktop fallback to preserve the approved four-line lockup. */
@media (min-width: 1121px) {
  .hero-copy {
    transform: translateY(-30px);
  }

  .hero h1 {
    width: 114.286%;
    max-width: none;
    transform: scaleX(0.875);
    transform-origin: left center;
  }
}

@media (max-width: 1120px) {
  .hero {
    padding-top: 125px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 70px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1,
  .hero-lede {
    margin-right: auto;
    margin-left: auto;
  }

  .eyebrow,
  .hero-actions,
  .micro-proof {
    justify-content: center;
  }

  .hero-demo-wrap {
    width: 100%;
    max-width: 760px;
    margin: auto;
  }

  .handwritten {
    right: 10px;
  }

  .hero-note {
    left: 10px;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: 112px 0 70px;
  }

  .hero::after {
    top: 38%;
    right: -350px;
  }

  .hero-grid {
    gap: 52px;
  }

  .hero h1 {
    font-size: 3.25rem;
    line-height: 0.95;
  }

  .hero-lede {
    font-size: 0.9375rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 48px;
  }

  .handwritten,
  .hero-note {
    display: none;
  }

  .demo-window {
    padding: 9px;
    border-radius: 19px;
  }

  .demo-top {
    height: 39px;
    padding-inline: 7px;
  }

  .demo-stage {
    height: 395px;
    border-radius: 13px;
  }

  .event-meta {
    font-size: 0.5rem;
  }

  .live-pill {
    padding: 6px 7px;
    font-size: 0.5rem;
  }

  .select-layer {
    padding: 14px;
  }

  .contact-grid {
    gap: 6px;
  }

  .contact-frame::after {
    bottom: 4px;
    left: 4px;
    font-size: 0.4375rem;
  }

  .contact-frame.is-keeper::before {
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
  }

  .select-summary {
    bottom: 13px;
    max-width: calc(100% - 24px);
    overflow: hidden;
    font-size: 0.5rem;
    text-overflow: ellipsis;
  }

  .gallery-card {
    top: 18px;
    right: 13px;
    bottom: 18px;
    width: 66%;
    padding: 13px;
  }

  .gallery-head strong {
    font-size: 0.9375rem;
  }

  .gallery-head span,
  .gallery-footer {
    font-size: 0.4375rem;
  }

  .gallery-action {
    padding: 7px 8px;
  }

  .deliver-note {
    bottom: 18px;
    left: 17px;
    max-width: 31%;
  }

  .deliver-note strong {
    font-size: 1.125rem;
  }

  .deliver-note span {
    font-size: 0.5rem;
  }

  .demo-controls {
    gap: 6px;
  }

  .demo-control {
    min-height: 44px;
    font-size: 0.5rem;
  }
}

@media (max-width: 420px) {
  .hero-grid {
    gap: 72px;
  }

  .hero h1 {
    font-size: clamp(3rem, 13.3vw, 3.25rem);
  }

  .hero-title-line {
    display: block;
    position: relative;
    left: 50%;
    width: max-content;
    transform: translateX(-50%) scaleX(0.9);
    transform-origin: center;
    white-space: nowrap;
  }
}

@media (max-width: 340px) {
  .frame-meta {
    right: 20px;
    bottom: 19px;
    left: 20px;
    gap: 8px;
  }

  .frame-meta strong {
    font-size: 1.25rem;
  }

  .frame-meta .exif {
    display: none;
  }

  .hero-title-line {
    transform: translateX(-50%) scaleX(0.78);
  }
}
