:root {
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #0b0b0b;
  --muted: #6b6b6b;
  --line: rgba(11,11,11,.14);
  --page-pad: clamp(20px, 4vw, 64px);
  --display: Arial Black, Arial, Helvetica, sans-serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- Shared typography ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.name-panel h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.info-card {
  background: var(--white);
  box-shadow: 0 12px 42px rgba(0,0,0,.09);
}
.card-kicker {
  margin: 0 0 30px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.info-card h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 900;
  line-height: .90;
  letter-spacing: -.065em;
}
.info-card p {
  margin: 0 0 17px;
  max-width: 46ch;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -.012em;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.links a:hover { opacity: .55; }

.imprint-link {
  position: fixed;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 20;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  mix-blend-mode: difference;
  color: #fff;
}
.imprint-link:hover { opacity: .6; }

/* ---------- Desktop: exact 50/50 stage ---------- */
@media (min-width: 761px) {
  main {
    position: relative;
    min-height: 220svh;
  }

  .name-panel {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 50vw;
    height: 100svh;
    display: flex;
    align-items: center;
    padding: clamp(34px, 4.5vw, 76px);
    background: #fff;
  }
  .name-wrap { width: 100%; }
  .name-panel h1 {
    font-size: clamp(92px, 10.6vw, 190px);
    line-height: .82;
  }

  .story {
    position: relative;
    z-index: 2;
    margin-top: -100svh;
    min-height: 220svh;
    pointer-events: none;
  }

  .sticky-photo-wrap {
    position: sticky;
    top: 0;
    height: 100svh;
    margin-left: 50vw;
    width: 50vw;
    overflow: hidden;
  }
  .portrait-frame {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #e7e7e7;
  }
  .portrait {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .card-track {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    /* The card starts below the first screen, then becomes sticky. */
    padding-top: 112svh;
  }
  .info-card {
    position: sticky;
    top: 18svh;
    /* Centered on the right-hand 50vw image */
    margin-left: 75vw;
    transform: translateX(-50%);
    width: min(620px, 42vw);
    padding: clamp(34px, 3.2vw, 52px);
    pointer-events: auto;
  }
  .info-card h2 {
    font-size: clamp(38px, 3.7vw, 58px);
  }
}

/* ---------- Mobile: dedicated name screen, then sticky portrait ---------- */
@media (max-width: 760px) {
  .name-panel {
    height: 100svh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 22px 20px 12svh;
    background: #fff;
  }
  .name-wrap { width: 100%; }
  .eyebrow {
    margin-bottom: 16px;
    font-size: 9px;
  }
  .name-panel h1 {
    font-size: clamp(76px, 27vw, 124px);
    line-height: .80;
    letter-spacing: -.082em;
  }

  .story {
    position: relative;
    min-height: 235svh;
    background: #fff;
  }
  .sticky-photo-wrap {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
  }
  .portrait-frame {
    margin: 0;
    width: 100vw;
    height: 100svh;
    overflow: hidden;
    background: #e7e7e7;
  }
  .portrait {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .card-track {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    /* Keeps the portrait clean for a moment before card enters. */
    padding-top: 118svh;
  }
  .info-card {
    position: sticky;
    top: max(8svh, 28px);
    margin-left: 14px;
    width: calc(100vw - 28px);
    padding: 30px 24px 34px;
    pointer-events: auto;
  }
  .info-card h2 {
    font-size: clamp(38px, 13vw, 56px);
  }
  .info-card p {
    font-size: 15px;
    line-height: 1.58;
  }
}

/* ---------- Impressum ---------- */
.legal-page { background: #fff; }
.legal-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 100px) var(--page-pad) 120px;
}
.back-link { display: inline-block; margin-bottom: 70px; text-decoration: none; }
.legal-shell h1 {
  margin: 0 0 70px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(60px, 9vw, 108px);
  line-height: .86;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.legal-shell section { margin-top: 42px; }
.legal-shell h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.legal-shell p { font-size: 16px; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Inline project link ---------- */
.inline-link {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

/* ---------- Contact form ---------- */
.contact-block {
  margin-top: 34px;
}
.contact-kicker { margin-bottom: 20px; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 7px; }
.form-row label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 7px 0 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  resize: vertical;
}
.contact-form textarea { min-height: 96px; }
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-width: 2px; }
.contact-form button {
  justify-self: start;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 4px;
  margin-top: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-form button:hover { opacity: .55; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- Projects ---------- */
.projects-page { background: #fff; }




.project-story {
  position: relative;
  min-height: 245svh;
  background: #fff;
}
.project-photo-wrap {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #fff;
}
.project-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.project-card-track {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding-top: 128svh;
  pointer-events: none;
}
.project-card {
  position: sticky;
  top: 12svh;
  width: min(700px, calc(100vw - 56px));
  margin: 0 auto;
  padding: clamp(32px, 4vw, 56px);
  background: #fff;
  box-shadow: 0 12px 42px rgba(0,0,0,.09);
  pointer-events: auto;
}
.project-card h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.project-card p {
  margin: 0 0 17px;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.62;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.projects-back {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 30;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  mix-blend-mode: difference;
  color: #fff;
}

@media (max-width: 760px) {
  .contact-block { margin-top: 30px; }
  .contact-form { gap: 16px; }
  
  
  
  .project-card {
    top: max(6svh, 24px);
    width: calc(100vw - 28px);
    padding: 28px 24px 32px;
  }
  .project-card h2 { font-size: clamp(38px, 13vw, 58px); }
  .project-card p { font-size: 15px; line-height: 1.58; }
}


/* v11: projects start directly with the image.
   The card enters only after one full viewport of unobstructed image. */
@media (max-width: 760px) {
  .project-story { min-height: 255svh; }
  .project-card-track { padding-top: 132svh; }
}

/* v12: legal links + form feedback/privacy */
.legal-links {
  position: fixed;
  left: 18px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #fff;
}
.legal-links a { color: inherit; text-decoration: none; }
.legal-links a:hover { opacity: .6; }
.privacy-note {
  margin: 12px 0 0 !important;
  font-size: 9px !important;
  line-height: 1.45 !important;
  opacity: .65;
}
.privacy-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-status {
  display: none;
  margin: 0 0 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.form-status.is-visible { display: block; }


/* v13: large contact success state */
.contact-success {
  padding: 4px 0 10px;
}

.contact-success .card-kicker {
  margin-bottom: 18px;
}

.contact-success h3 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(52px, 5.8vw, 84px);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.contact-success p:last-child {
  margin: 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .contact-success h3 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .contact-success p:last-child {
    font-size: 15px;
  }
}


/* v16: legal pages aligned with the main visual language */
.legal-page {
  background: #fff;
  color: var(--ink);
}

.legal-shell {
  width: min(980px, calc(100vw - 48px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0 120px;
}

.legal-shell > .eyebrow {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-shell > h1 {
  margin: 0 0 clamp(50px, 8vw, 88px);
  font-family: var(--display);
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.legal-shell section {
  max-width: 760px;
  margin: 0 0 42px;
  padding-top: 0;
}

.legal-shell section + section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.legal-shell h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.legal-shell p,
.legal-shell li {
  font-size: 15px;
  line-height: 1.65;
}

.legal-shell a {
  color: inherit;
  text-underline-offset: 3px;
}

.legal-shell strong {
  font-weight: 800;
}

@media (max-width: 760px) {
  .legal-shell {
    width: calc(100vw - 28px);
    padding: 32px 0 96px;
  }

  .legal-shell > h1 {
    font-size: clamp(54px, 18vw, 86px);
    margin-bottom: 46px;
  }

  .legal-shell h2 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .legal-shell p,
  .legal-shell li {
    font-size: 15px;
  }
}


/* v18: cleaner short-copy line lengths in the home card */
.info-card > p {
  max-width: 38em;
}


/* v19 — dedicated mobile layout for project stories */
@media (max-width: 760px) {
  .project-story {
    /* One clean image viewport, then enough scroll distance for the card. */
    min-height: 235svh;
    background: #fff;
  }

  .project-photo-wrap {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    background: #fff;
  }

  .project-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 50%;
  }

  .project-card-track {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding-top: 112svh;
    pointer-events: none;
  }

  .project-card {
    position: sticky;
    top: 24px;
    width: calc(100vw - 40px);
    max-width: none;
    margin: 0 auto;
    padding: 28px 24px 30px;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
    pointer-events: auto;
  }

  .project-card .card-kicker {
    margin: 0 0 14px;
    font-size: 10px;
    line-height: 1.2;
  }

  .project-card h2 {
    max-width: 100%;
    margin: 0 0 24px;
    font-size: clamp(42px, 13vw, 62px);
    line-height: .88;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: none;
  }

  .project-card p {
    max-width: 100%;
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: break-word;
  }

  .project-card p:last-of-type {
    margin-bottom: 0;
  }

  .project-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 26px;
    padding-top: 18px;
  }

  .project-meta span {
    min-width: 0;
    font-size: 10px;
    line-height: 1.35;
    overflow-wrap: break-word;
  }
}


/* v20 — refine mobile project card position + fluid title sizing */
@media (max-width: 760px) {
  .project-card-track {
    padding-top: 118svh;
  }

  .project-card {
    top: 42px;
  }

  .project-card h2 {
    font-size: clamp(38px, 11.4vw, 56px);
    line-height: .9;
    letter-spacing: -.05em;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-width: 430px) {
  .project-card h2 {
    font-size: clamp(36px, 10.8vw, 50px);
  }
}


/* v22 — project gallery links */
.project-gallery-link {
  display: inline-block;
  margin-top: 28px;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.project-gallery-link:hover { opacity: .55; }

/* v22 — horizontal galleries */
.gallery-page {
  margin: 0;
  min-height: 100dvh;
  background: #fff;
  color: var(--ink);
  overflow-x: hidden;
}

.gallery-back {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: 20px;
  z-index: 30;
  color: #111;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 78px 0 max(68px, calc(28px + env(safe-area-inset-bottom)));
  box-sizing: border-box;
}

.gallery-rail {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 clamp(20px, 4vw, 60px);
}
.gallery-rail::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
  overflow: hidden;
  background: #eee;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item--portrait {
  width: min(42vw, 560px);
  aspect-ratio: 3 / 4;
}

.gallery-item--landscape {
  width: min(62vw, 820px);
  aspect-ratio: 16 / 11;
}

.gallery-item--portrait-small {
  width: min(36vw, 500px);
  aspect-ratio: 11 / 15;
}

.gallery-hint {
  margin: 28px 0 0;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* v22 — iPhone Safari / dynamic toolbar handling */
@media (max-width: 760px) {
  .name-panel,
  .sticky-photo-wrap,
  .portrait-frame,
  .project-photo-wrap {
    height: 100dvh;
    min-height: 100svh;
  }

  .story {
    min-height: 240dvh;
  }

  .project-story {
    min-height: 235dvh;
  }

  .project-card-track {
    padding-top: 118dvh;
  }

  .legal-links {
    left: 18px;
    bottom: max(16px, calc(10px + env(safe-area-inset-bottom)));
  }

  .gallery-shell {
    min-height: 100dvh;
    justify-content: center;
    padding-top: max(72px, calc(48px + env(safe-area-inset-top)));
    padding-bottom: max(74px, calc(42px + env(safe-area-inset-bottom)));
  }

  .gallery-rail {
    gap: 12px;
    padding-left: 18px;
    padding-right: 18px;
    scroll-padding-inline: 18px;
  }

  .gallery-item--portrait {
    width: 82vw;
    aspect-ratio: 3 / 4;
  }

  .gallery-item--landscape {
    width: 88vw;
    aspect-ratio: 16 / 11;
  }

  .gallery-item--portrait-small {
    width: 76vw;
    aspect-ratio: 11 / 15;
  }

  .gallery-hint {
    margin-top: 20px;
  }

  .gallery-back {
    top: max(16px, calc(8px + env(safe-area-inset-top)));
    left: 18px;
  }
}


/* v24 — iPhone Safari bottom-edge fix + legal-link clearance */
@media (max-width: 760px) {
  /* Keep the name screen tied to the compact viewport,
     but make image stages tall enough for Safari's expanded viewport. */
  .name-panel {
    height: 100svh;
    min-height: 100svh;
  }

  .sticky-photo-wrap,
  .portrait-frame,
  .project-photo-wrap {
    height: 100lvh;
    min-height: 100lvh;
  }

  /* Small overscan avoids a visible white seam caused by Safari rounding. */
  .portrait,
  .project-photo {
    height: calc(100% + 6px);
    margin-bottom: -6px;
  }

  /* Give the scrolling cards a guaranteed bottom safety zone.
     The legal links live in this reserved space instead of under the card. */
  .info-card,
  .project-card {
    margin-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .card-track,
  .project-card-track {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  /* Keep legal links comfortably above the iPhone home indicator / Safari chrome. */
  .legal-links {
    bottom: max(18px, calc(12px + env(safe-area-inset-bottom)));
    z-index: 60;
  }

  /* Project card still stops near the top, but the section now has enough
     trailing room so the card can leave the viewport before the legal links clash. */
  .project-story {
    min-height: 248lvh;
  }

  .story {
    min-height: 248lvh;
  }
}


/* v25 — mobile home card must not stick when taller than the viewport */
@media (max-width: 760px) {
  /* The contact card is taller than many iPhone viewports.
     Let it travel naturally over the sticky portrait instead of pinning its top. */
  .card-track {
    padding-top: 112lvh;
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }

  .info-card {
    position: relative;
    top: auto;
    margin: 0 auto calc(96px + env(safe-area-inset-bottom));
    width: calc(100vw - 40px);
    max-width: none;
    box-sizing: border-box;
  }

  /* Keep the portrait behind the whole card while it moves through the viewport. */
  .story {
    min-height: 285lvh;
  }

  /* Project cards stay sticky; only the tall homepage/contact card changes behavior. */
  .project-card {
    position: sticky;
    top: 42px;
  }
}


/* v26 — one-line responsive card headlines */
.info-card h2,
.project-card h2 {
  max-width: 100%;
  white-space: nowrap;
  overflow: visible;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* A little more visual breathing room around the now shorter headlines. */
@media (max-width: 760px) {
  .info-card h2,
  .project-card h2 {
    margin-right: 0;
    padding-right: 2px;
  }
}


/* v27 — restore sticky mobile home card now that headline fitting shortens it */
@media (max-width: 760px) {
  .card-track {
    padding-top: 118lvh;
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  .info-card {
    position: sticky;
    top: 52px;
    width: calc(100vw - 40px);
    max-width: none;
    margin: 0 auto calc(92px + env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  .story {
    min-height: 258lvh;
  }

  /* Keep enough space for the fixed legal links. */
  .legal-links {
    bottom: max(18px, calc(12px + env(safe-area-inset-bottom)));
  }
}


/* v28 — compact mobile homepage card for iPhone Safari */
@media (max-width: 760px) {
  /* Start the card a little later, but pin it lower so the top never hides
     behind Safari's status/address chrome. */
  .card-track {
    padding-top: 120lvh;
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }

  .info-card {
    top: max(74px, calc(54px + env(safe-area-inset-top)));
    width: calc(100vw - 44px);
    padding: 26px 24px 24px;
    margin-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  /* Headline stays one line via headline-fit.js, but occupies less vertical space. */
  .info-card h2 {
    margin-bottom: 18px;
    line-height: .88;
  }

  .info-card > p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.46;
  }

  .info-card > p + p {
    margin-top: 2px;
  }

  /* Tighten form rhythm substantially. */
  .contact-block {
    margin-top: 20px;
  }

  .contact-form {
    gap: 0;
  }

  .form-row {
    margin-bottom: 18px;
  }

  .form-row label {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 4px 0 7px;
    font-size: 14px;
  }

  .contact-form textarea {
    min-height: 78px;
    height: 78px;
    resize: none;
  }

  .contact-form button {
    margin-top: 2px;
  }

  .privacy-note {
    margin-top: 10px !important;
    font-size: 8.5px !important;
    line-height: 1.4 !important;
  }

  /* Keep the whole sticky stage long enough that the card can settle and leave
     without colliding with the fixed legal links. */
  .story {
    min-height: 266lvh;
  }
}


/* v29 — extend mobile sticky runway so the home card does not get pushed upward */
@media (max-width: 760px) {
  .story {
    min-height: 310lvh;
  }

  .card-track {
    padding-bottom: calc(180px + env(safe-area-inset-bottom));
  }
}
