:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --ink: #101514;
  --muted: #65716d;
  --line: rgba(16, 21, 20, .12);
  --panel: rgba(255, 255, 255, .82);
  --accent: #1f8b63;
  --accent-dark: #0d1715;
  --soft: #e8eee9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body.darian {
  --bg: #f4efe7;
  --ink: #11100e;
  --muted: #70675c;
  --line: rgba(17, 16, 14, .14);
  --panel: rgba(255, 250, 242, .86);
  --accent: #f47a1f;
  --accent-dark: #11100e;
  --soft: #f3d7bd;
}

body.giraffe {
  --bg: #f6f0d8;
  --ink: #161711;
  --muted: #6b644e;
  --line: rgba(22, 23, 17, .14);
  --panel: rgba(255, 250, 230, .84);
  --accent: #c8a63a;
  --accent-dark: #151811;
  --soft: #e6d38b;
}

body.jessamine {
  --bg: #f8f2ef;
  --ink: #171514;
  --muted: #746763;
  --line: rgba(23, 21, 20, .12);
  --panel: rgba(255, 250, 247, .84);
  --accent: #c67c86;
  --accent-dark: #1b1817;
  --soft: #eddad7;
}

body.club704 {
  --bg: #f4f6f8;
  --accent: #2259d6;
  --accent-dark: #101626;
  --soft: #dfe7f5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site {
  overflow: hidden;
}

.nav {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent-dark);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 850;
  font-size: 14px;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .9)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 42%);
}

.darian .hero {
  background:
    linear-gradient(180deg, rgba(244, 239, 231, .7), rgba(244, 239, 231, .96)),
    linear-gradient(135deg, rgba(244, 122, 31, .22), transparent 48%),
    linear-gradient(90deg, rgba(17, 16, 14, .08), transparent 34%);
}

.giraffe .hero {
  background:
    linear-gradient(180deg, rgba(246, 240, 216, .7), rgba(246, 240, 216, .96)),
    linear-gradient(135deg, rgba(200, 166, 58, .26), transparent 48%),
    linear-gradient(90deg, rgba(21, 24, 17, .1), transparent 34%);
}

.jessamine .hero {
  background:
    linear-gradient(180deg, rgba(248, 242, 239, .74), rgba(248, 242, 239, .96)),
    linear-gradient(135deg, rgba(198, 124, 134, .2), transparent 48%),
    linear-gradient(90deg, rgba(27, 24, 23, .06), transparent 34%);
}

.hero-grid,
.section,
.footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 38px;
  align-items: center;
  padding: 24px 0 68px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(46px, 6vw, 82px);
  line-height: .95;
  letter-spacing: 0;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.hero-copy p {
  color: #31403d;
  font-size: 20px;
  line-height: 1.5;
  max-width: 640px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.primary-btn,
.secondary-btn {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
}

.primary-btn {
  color: #fff;
  background: var(--accent-dark);
}

.secondary-btn {
  color: var(--ink);
  background: var(--soft);
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
}

.proof-row div,
.panel,
.service-card,
.package-card,
.gallery-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 58px rgba(9, 16, 15, .08);
}

.proof-row div {
  border-radius: 8px;
  padding: 14px;
}

.proof-row strong {
  display: block;
  font-size: 24px;
}

.proof-row span,
.muted,
.lead-form label,
.package-card p,
.service-card p,
.gallery-card p,
.brand-note p {
  color: var(--muted);
}

.social-cues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.social-cues span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 900;
}

.darian .social-cues span {
  text-transform: uppercase;
  background: #11100e;
  color: #fffaf2;
  border-color: rgba(244, 122, 31, .55);
}

.giraffe .social-cues span {
  background: #151811;
  color: #f6f0d8;
  border-color: rgba(200, 166, 58, .55);
}

.jessamine .social-cues span {
  font-family: Georgia, "Times New Roman", serif;
  background: #fffaf7;
}

.visual {
  position: relative;
  min-height: 560px;
}

.visual-frame {
  position: absolute;
  inset: 0 0 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .75);
  background: var(--soft);
  box-shadow: 0 36px 92px rgba(10, 16, 15, .18);
}

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

.brand-panel {
  position: absolute;
  inset: 0 0 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: 0 36px 92px rgba(10, 16, 15, .18);
}

.darian-panel {
  display: grid;
  place-items: center;
  padding: 46px;
  color: #fff;
  background:
    linear-gradient(135deg, #11100e 0 42%, #f47a1f 42% 50%, #f4efe7 50% 100%);
}

.darian-logo-card {
  width: min(420px, 92%);
  border-radius: 8px;
  padding: 24px;
  background: #fffaf2;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .22);
}

.darian-logo-card img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.darian-stripes {
  position: absolute;
  right: -60px;
  bottom: 60px;
  width: 360px;
  height: 92px;
  background:
    linear-gradient(180deg, #f47a1f 0 28%, transparent 28% 38%, #f47a1f 38% 66%, transparent 66% 76%, #f47a1f 76%);
  transform: rotate(-16deg);
}

.darian-service-stack {
  position: absolute;
  left: 28px;
  top: 28px;
  display: grid;
  gap: 8px;
  color: #fffaf2;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.darian-service-stack span {
  width: max-content;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(17, 16, 14, .86);
  border: 1px solid rgba(244, 122, 31, .5);
}

.photo-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: stretch;
  background: #171514;
}

.photo-panel-media {
  display: grid;
  place-items: center;
  padding: 36px;
  background: #f8f2ef;
}

.photo-panel-media img {
  width: min(220px, 80%);
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 22px 58px rgba(23, 21, 20, .22);
}

.photo-panel-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 18px;
  padding: 38px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(198, 124, 134, .22), transparent),
    #1b1817;
}

.photo-panel-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 74px);
  line-height: .95;
  font-weight: 700;
}

.photo-panel-copy span {
  max-width: 320px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.45;
}

.tintype-mark {
  width: 120px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), transparent),
    linear-gradient(135deg, rgba(198, 124, 134, .42), transparent),
    #2b2928;
}

.giraffe .visual-frame::after {
  content: "PHOTO ID REQUIRED";
  position: absolute;
  left: 22px;
  top: 22px;
  border-radius: 8px;
  padding: 10px 12px;
  color: #151811;
  background: #c8a63a;
  font-weight: 950;
  font-size: 13px;
}

.source-strip {
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}

.source-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: 0 18px 44px rgba(9, 16, 15, .08);
}

.source-copy {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .68);
}

.source-copy strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
}

.source-copy p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.brand-note {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, .6);
}

.brand-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
}

.darian .brand-note {
  background:
    linear-gradient(90deg, rgba(244, 122, 31, .18), transparent),
    rgba(255, 250, 242, .78);
}

.giraffe .brand-note {
  background:
    linear-gradient(90deg, rgba(200, 166, 58, .22), transparent),
    rgba(255, 250, 230, .78);
}

.jessamine .brand-note {
  background:
    linear-gradient(90deg, rgba(198, 124, 134, .16), transparent),
    rgba(255, 250, 247, .78);
}

.floating-card {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  border-radius: 8px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  color: #fff;
  background: rgba(10, 15, 14, .9);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .22);
}

.darian .floating-card {
  background: rgba(17, 16, 14, .94);
}

.giraffe .floating-card {
  background: rgba(21, 24, 17, .92);
}

.jessamine .floating-card {
  background: rgba(27, 24, 23, .92);
}

.floating-card strong {
  display: block;
  font-size: 18px;
}

.floating-card span {
  color: rgba(255, 255, 255, .72);
}

.pill {
  border-radius: 999px;
  padding: 9px 12px;
  white-space: nowrap;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
}

.section {
  padding: 76px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head p {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.services-grid,
.packages-grid,
.gallery-grid,
.system-grid,
.lead-example-grid {
  display: grid;
  gap: 14px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.packages-grid,
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-grid,
.lead-example-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.package-card,
.gallery-card,
.system-card,
.lead-example,
.panel {
  border-radius: 8px;
  padding: 20px;
}

.service-card span,
.gallery-card span {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 900;
}

.darian .service-card span,
.darian .gallery-card span {
  background: #f47a1f;
  color: #11100e;
}

.giraffe .service-card span,
.giraffe .gallery-card span {
  background: #c8a63a;
  color: #151811;
}

.jessamine .service-card span,
.jessamine .gallery-card span {
  background: #1b1817;
  color: #fffaf7;
  font-family: Georgia, "Times New Roman", serif;
}

.gallery-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.92)),
    var(--soft);
}

.darian .gallery-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, .18), rgba(255, 250, 242, .92)),
    linear-gradient(135deg, rgba(244, 122, 31, .28), transparent),
    #11100e;
}

.giraffe .gallery-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 230, .16), rgba(255, 250, 230, .92)),
    linear-gradient(135deg, rgba(200, 166, 58, .32), transparent),
    #151811;
}

.jessamine .gallery-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 247, .16), rgba(255, 250, 247, .92)),
    linear-gradient(135deg, rgba(198, 124, 134, .22), transparent),
    #1b1817;
}

.system-card,
.lead-example {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 18px 44px rgba(9, 16, 15, .07);
}

.system-card strong,
.lead-example strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 18px;
}

.system-card p,
.lead-example p {
  color: var(--muted);
  line-height: 1.55;
}

.lead-example {
  display: grid;
  gap: 12px;
}

.lead-example code {
  display: block;
  white-space: normal;
  border-radius: 8px;
  padding: 14px;
  color: #25312e;
  background: var(--soft);
  font-family: inherit;
  line-height: 1.5;
}

.pitch-box {
  margin-top: 18px;
  border-left: 6px solid var(--accent);
}

.pitch-box h3 {
  margin-bottom: 8px;
}

.pitch-box p {
  color: #2d3936;
  font-size: 18px;
  line-height: 1.55;
}

.cta-band {
  background: var(--accent-dark);
  color: #fff;
}

.cta-band .section {
  padding: 64px 0;
}

.cta-grid,
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.cta-grid p {
  color: rgba(255, 255, 255, .74);
  line-height: 1.58;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  font-size: 13px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 12px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
}

.lead-form textarea {
  min-height: 94px;
  resize: vertical;
}

.lead-output {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lead-output p {
  min-height: 150px;
  padding: 16px;
  border-radius: 8px;
  line-height: 1.55;
  color: #2d3936;
  background: var(--soft);
}

.light-btn {
  color: var(--accent-dark);
  background: #fff;
}

.compliance-note {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.5);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.footer {
  padding: 28px 0 86px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer a {
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-links a {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .cta-grid,
  .lead-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .packages-grid,
  .gallery-grid,
  .system-grid,
  .lead-example-grid,
  .source-strip,
  .proof-row {
    grid-template-columns: 1fr;
  }

  .visual {
    min-height: 430px;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }
}

@media (max-width: 520px) {
  .nav,
  .hero-grid,
  .section,
  .footer {
    width: min(100% - 22px, 1160px);
  }

  h1 {
    font-size: 43px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .visual {
    min-height: 360px;
  }

  .floating-card {
    left: 10px;
    right: 10px;
    grid-template-columns: 1fr;
  }

  .darian-panel,
  .photo-panel-media,
  .photo-panel-copy {
    padding: 22px;
  }

  .darian-service-stack {
    left: 14px;
    top: 14px;
    font-size: 11px;
  }

  .darian-service-stack span {
    padding: 7px 8px;
  }

  .photo-panel {
    grid-template-columns: 1fr;
  }

  .photo-panel-media img {
    width: min(170px, 70%);
  }
}

/* Final modern product-page pass. Keep this layer last so older demo styles cannot override it. */
:root {
  --paper: #fffdf6;
  --shadow: 0 28px 80px rgba(10, 16, 15, .12);
}

body.darian {
  --paper: #fff7eb;
  --shadow: 0 34px 90px rgba(17, 16, 14, .18);
}

body.giraffe {
  --paper: #fff8da;
  --shadow: 0 34px 90px rgba(21, 24, 17, .18);
}

body.jessamine {
  --paper: #fff8f5;
  --shadow: 0 34px 90px rgba(27, 24, 23, .15);
}

body {
  background:
    linear-gradient(90deg, rgba(16, 21, 20, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 21, 20, .035) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
}

.nav,
.hero-grid,
.section,
.footer {
  width: min(1220px, calc(100% - 36px));
}

.brand {
  text-decoration: none;
}

.brand-mark {
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
}

.nav-links {
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(14px);
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 13px;
}

.nav-links a:last-child {
  color: #fff;
  background: var(--accent-dark);
}

.hero {
  min-height: 96vh;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr);
  gap: 46px;
  padding: 34px 0 76px;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, .68);
}

h1 {
  max-width: 760px;
  font-size: clamp(52px, 6.8vw, 98px);
  line-height: .84;
  text-transform: uppercase;
}

h2 {
  max-width: 820px;
  font-size: clamp(44px, 5.8vw, 86px);
  line-height: .88;
  text-transform: uppercase;
}

h3 {
  font-size: 24px;
  line-height: 1;
}

.hero-copy p {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.38;
}

.primary-btn,
.secondary-btn {
  min-height: 56px;
  border-radius: 999px;
  padding: 0 24px;
}

.primary-btn {
  box-shadow: 0 16px 38px rgba(0, 0, 0, .18);
}

.secondary-btn {
  border: 1px solid var(--line);
  background: var(--paper);
}

.proof-row {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.proof-row div {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 18px;
  background: transparent;
  box-shadow: none;
}

.proof-row div:last-child {
  border-right: 0;
}

.proof-row strong {
  font-size: 32px;
  line-height: .95;
  text-transform: uppercase;
}

.visual {
  min-height: 630px;
}

.visual-frame,
.brand-panel,
.service-card,
.package-card,
.gallery-card,
.system-card,
.lead-example,
.panel,
.source-photo {
  box-shadow: var(--shadow);
}

.darian-panel {
  background:
    linear-gradient(135deg, #11100e 0 38%, #f47a1f 38% 47%, #fff7eb 47% 100%);
}

.darian-logo-card {
  width: min(500px, 94%);
}

.darian-stripes {
  width: 470px;
  height: 118px;
}

.floating-card {
  border: 1px solid rgba(255, 255, 255, .14);
  text-transform: uppercase;
}

.pill {
  color: var(--accent-dark);
  background: var(--accent);
}

.section {
  padding: 90px 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-head p {
  font-size: 18px;
}

.service-card,
.package-card,
.gallery-card,
.system-card,
.lead-example,
.panel,
.source-copy,
.brand-note,
.compliance-note {
  background: var(--paper);
}

.service-card,
.package-card,
.system-card {
  min-height: 220px;
}

.service-card span,
.gallery-card span {
  width: auto;
  min-width: 48px;
  padding: 0 12px;
  border-radius: 999px;
}

.gallery-card {
  min-height: 310px;
  justify-content: space-between;
}

.gallery-card h3 {
  margin-top: auto;
}

.system-card strong,
.lead-example strong {
  font-size: 22px;
}

.lead-example code,
.lead-output p {
  color: var(--paper);
  background: var(--accent-dark);
}

.pitch-box {
  border-left: 0;
  border-top: 8px solid var(--accent);
}

.cta-band .section {
  padding: 86px 0;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  background: var(--paper);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  h1 {
    font-size: clamp(52px, 14vw, 82px);
  }

  h2 {
    font-size: clamp(42px, 12vw, 68px);
  }

  .proof-row div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-row div:last-child {
    border-bottom: 0;
  }

  .visual {
    min-height: 500px;
  }
}

@media (max-width: 520px) {
  .nav,
  .hero-grid,
  .section,
  .footer {
    width: min(100% - 22px, 1220px);
  }

  .brand span:last-child {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .actions {
    display: grid;
  }

  .visual {
    min-height: 420px;
  }
}

/* Mobile correction must stay after the final product-page pass. */
h1 {
  overflow-wrap: break-word;
}

.hero-copy,
.visual {
  min-width: 0;
}

@media (max-width: 520px) {
  .eyebrow {
    width: auto;
    display: block;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(46px, 12vw, 54px);
  }

  .nav-links {
    display: none;
  }
}

/* Bucks-style depth pass: motion, product rails, inner pages. */
@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

@keyframes spin-soft {
  to { transform: rotate(360deg); }
}

@keyframes scan-line {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

body {
  overflow-x: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: -1;
}

.visual-frame::before,
.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 36%, rgba(255,255,255,.34) 46%, transparent 56% 100%);
  animation: scan-line 4.8s ease-in-out infinite;
  mix-blend-mode: overlay;
}

.darian .brand-panel,
.giraffe .visual-frame,
.jessamine .brand-panel {
  animation: float-card 6s ease-in-out infinite;
}

.brand-mark {
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: .34;
  animation: spin-soft 4s linear infinite;
}

.motion-ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--accent-dark);
  color: var(--paper);
}

.motion-ticker__track {
  width: max-content;
  display: flex;
  gap: 28px;
  padding: 18px 0;
  font-size: clamp(26px, 4vw, 54px);
  font-weight: 950;
  line-height: .9;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ticker-slide 28s linear infinite;
}

.motion-ticker span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.motion-ticker span::after {
  content: "•";
  color: var(--accent);
}

.product-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.product-card {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  box-shadow: 0 40px 100px rgba(0,0,0,.18);
}

.product-card::before {
  content: attr(data-number);
  font-size: 18px;
  font-weight: 950;
  color: var(--accent);
}

.product-card::after {
  content: "";
  position: absolute;
  right: -58px;
  top: 86px;
  width: 210px;
  height: 210px;
  border: 28px solid var(--accent);
  border-radius: 50%;
  opacity: .18;
  animation: spin-soft 16s linear infinite;
}

.product-card h3 {
  max-width: 320px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: .88;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.product-card p {
  max-width: 330px;
  color: var(--muted);
  line-height: 1.5;
}

.product-card .primary-btn {
  width: max-content;
  position: relative;
  z-index: 1;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.process-step {
  min-height: 210px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
}

.process-step strong {
  display: block;
  margin-bottom: 34px;
  font-size: 34px;
  line-height: 1;
}

.scene-break {
  position: relative;
  min-height: 470px;
  border-block: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--paper);
  background: var(--accent-dark);
}

.scene-break h2 {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  color: var(--paper);
  text-align: center;
}

.scene-break::before,
.scene-break::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 34px solid var(--accent);
  opacity: .32;
  animation: spin-soft 18s linear infinite;
}

.scene-break::before {
  left: -90px;
  top: -80px;
}

.scene-break::after {
  right: -110px;
  bottom: -100px;
  animation-duration: 24s;
  animation-direction: reverse;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.inner-hero {
  min-height: 64vh;
  display: grid;
  align-items: end;
  padding: 24px 0 70px;
  border-bottom: 1px solid var(--line);
}

.inner-hero .section {
  padding: 0;
}

.inner-hero h1 {
  max-width: 1050px;
}

.two-page-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 18px;
  align-items: start;
}

.sticky-note {
  position: sticky;
  top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--accent-dark);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.sticky-note p {
  color: rgba(255,255,255,.74);
  line-height: 1.55;
}

.menu-list {
  display: grid;
  gap: 14px;
}

.menu-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.menu-item span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  background: var(--accent);
  font-weight: 950;
}

.menu-item h3 {
  margin-bottom: 6px;
}

.menu-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.menu-item strong {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .product-rail,
  .process-strip,
  .two-page-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .sticky-note {
    position: static;
  }
}

@media (max-width: 520px) {
  .motion-ticker__track {
    font-size: 28px;
  }

  .product-card {
    min-height: 340px;
  }

  .menu-item {
    grid-template-columns: 1fr;
  }

  .menu-item span {
    width: 46px;
    height: 46px;
  }

  .scene-break {
    min-height: 330px;
  }
}

/* Reference deep-dive rebuild: chaptered, technical, cinematic, modular. */
:root {
  --scroll-progress: 0%;
  --pointer-x: 50vw;
  --pointer-y: 50vh;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: var(--scroll-progress);
  height: 5px;
  z-index: 50;
  pointer-events: none;
  background: var(--accent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 70%, transparent);
}

.site {
  position: relative;
}

.site::before {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  left: calc(var(--pointer-x) - 210px);
  top: calc(var(--pointer-y) - 210px);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 62%);
  opacity: .7;
  transition: opacity .25s ease;
}

.experience-gate {
  min-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--paper);
  background:
    radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 28%),
    linear-gradient(135deg, var(--accent-dark), #050505 72%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.gate-top,
.gate-bottom {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.gate-stage {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.gate-stage h2 {
  color: var(--paper);
  max-width: 860px;
  font-size: clamp(62px, 9vw, 142px);
  line-height: .82;
}

.gate-stage p {
  max-width: 560px;
  color: rgba(255,255,255,.72);
  font-size: 20px;
  line-height: 1.48;
}

.gate-orbit {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
}

.gate-orbit::before,
.gate-orbit::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  animation: spin-soft 26s linear infinite;
}

.gate-orbit::after {
  width: 260px;
  height: 260px;
  border-color: var(--accent);
  animation-duration: 15s;
  animation-direction: reverse;
}

.gate-core {
  position: relative;
  z-index: 1;
  width: min(360px, 70vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), transparent),
    color-mix(in srgb, var(--accent) 24%, #0a0a0a);
  box-shadow: 0 44px 120px rgba(0,0,0,.38);
  transform: rotate(-6deg);
}

.gate-core strong {
  display: block;
  color: var(--paper);
  font-size: clamp(48px, 7vw, 92px);
  line-height: .85;
  text-transform: uppercase;
}

.gate-core span {
  color: rgba(255,255,255,.68);
  font-weight: 900;
}

.chapter-nav {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.chapter-nav a {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.chapter-nav a:hover {
  transform: translateY(-6px);
  color: var(--paper);
  background: var(--accent-dark);
}

.chapter-nav span {
  color: var(--accent);
  font-weight: 950;
}

.chapter-nav strong {
  text-transform: uppercase;
}

.stack-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-dark);
  color: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stack-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent);
}

.stack-node {
  position: relative;
  z-index: 1;
  min-height: 220px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
}

.stack-node span {
  color: var(--accent);
  font-weight: 950;
}

.stack-node strong {
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.stack-node p {
  color: rgba(255,255,255,.7);
  line-height: 1.45;
  margin-bottom: 0;
}

.phase-board {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 18px;
}

.phase-board__intro {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--paper);
  background: var(--accent-dark);
  box-shadow: var(--shadow);
}

.phase-board__intro h2 {
  color: var(--paper);
}

.phase-list {
  counter-reset: phase;
  display: grid;
  gap: 12px;
}

.phase-card {
  counter-increment: phase;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.phase-card::before {
  content: "0" counter(phase);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  background: var(--accent);
  font-weight: 950;
}

.phase-card h3 {
  margin-bottom: 8px;
}

.phase-card p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.proof-console {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--paper);
  background: #050505;
  box-shadow: var(--shadow);
}

.console-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.console-row:last-child {
  border-bottom: 0;
}

.console-row span {
  color: var(--accent);
}

.console-row strong {
  text-transform: uppercase;
}

.console-row em {
  color: rgba(255,255,255,.58);
  font-style: normal;
}

.recap-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.recap-item {
  min-height: 210px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.recap-item:last-child {
  border-right: 0;
}

.recap-item span {
  display: block;
  color: var(--accent);
  font-weight: 950;
  margin-bottom: 34px;
}

.recap-item strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.statement-wall {
  min-height: 90vh;
  display: grid;
  place-items: center;
  padding: 90px 18px;
  color: var(--paper);
  background: var(--accent-dark);
}

.statement-wall p {
  width: min(1160px, 100%);
  font-size: clamp(42px, 7vw, 116px);
  line-height: .92;
  text-transform: uppercase;
  font-weight: 950;
}

.statement-wall mark {
  color: var(--accent);
  background: transparent;
}

@media (max-width: 1000px) {
  .gate-stage,
  .phase-board {
    grid-template-columns: 1fr;
  }

  .stack-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-nav,
  .recap-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gate-stage h2 {
    font-size: clamp(50px, 14vw, 74px);
  }

  .gate-orbit {
    min-height: 360px;
  }

  .gate-orbit::before {
    width: 300px;
    height: 300px;
  }

  .chapter-nav,
  .stack-map,
  .recap-band {
    grid-template-columns: 1fr;
  }

  .console-row,
  .phase-card {
    grid-template-columns: 1fr;
  }

  .recap-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .recap-item:last-child {
    border-bottom: 0;
  }
}
