/* ============================================================
 * Yuphora · Coming Soon
 * ------------------------------------------------------------
 * Table of contents
 *   1. Fonts
 *   2. Tokens
 *   3. Base & reset
 *   4. Accessibility (skip link, focus)
 *   5. Intro veil
 *   6. Custom cursor
 *   7. Navbar
 *   8. Hero
 *   9. Marquee
 *  10. Generic section
 *  11. Showcase
 *  12. Promise
 *  13. Wordmark banner
 *  14. Notify
 *  15. Footer
 *  16. Utilities (reveal, fade, letters)
 *  17. Responsive breakpoints
 *  18. Touch & reduced motion
 *  19. Print
 * ============================================================ */


/* ============================================================
 * 1. Fonts
 * ============================================================ */
@font-face {
  font-family: "Stack Sans";
  src: url("fonts/StackSansNotch-ExtraLight.ttf") format("truetype");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Stack Sans";
  src: url("fonts/StackSansNotch-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Stack Sans";
  src: url("fonts/StackSansNotch-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Stack Sans";
  src: url("fonts/StackSansNotch-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Stack Sans";
  src: url("fonts/StackSansNotch-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Stack Sans";
  src: url("fonts/StackSansNotch-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}


/* ============================================================
 * 2. Tokens
 * ============================================================ */
:root {
  /* Palette */
  --cream:       #EFE7D8;
  --cream-2:     #E8DDC8;
  --paper:       #F7F1E6;
  --ink:         #181715;
  --ink-2:       #2A2824;
  --muted:       #6B6358;
  --terra:       #B26A4A;
  --terra-2:     #934D33;
  --line:        rgba(24, 23, 21, 0.14);
  --line-soft:   rgba(24, 23, 21, 0.08);

  /* Typography */
  --sans: "Stack Sans", "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, sans-serif;

  /* Motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --nav-h:       72px;
  --max-w:       1280px;
  --pad-x:       clamp(20px, 5vw, 56px);
}


/* ============================================================
 * 3. Base & reset
 * ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* fallback */
  overflow-x: clip;
}

::selection { background: var(--ink); color: var(--cream); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }


/* ============================================================
 * 4. Accessibility
 * ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: 8px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ============================================================
 * 5. Intro veil
 * ============================================================ */
.intro {
  position: fixed; inset: 0;
  z-index: 9000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  background: var(--ink);
  color: var(--cream);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s var(--ease) 0.4s, opacity 0.4s linear 1.5s;
}
.intro.is-done {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  pointer-events: none;
}

.intro-stack {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 26px;
  opacity: 0;
  transform: translateY(8px);
  animation: introIn 1s var(--ease) 0.15s forwards;
}
@keyframes introIn { to { opacity: 1; transform: translateY(0); } }

.intro-emblem {
  position: relative;
  width: clamp(110px, 14vw, 160px);
  height: clamp(110px, 14vw, 160px);
}
.intro-emblem img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: brightness(1.12) contrast(1.05);
}
.intro-ring {
  position: absolute; inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  animation: rotateSlow 16s linear infinite;
}
@keyframes rotateSlow { to { transform: rotate(360deg); } }

.intro-word {
  font-weight: 300;
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: 0.32em;
}


/* ============================================================
 * 6. Custom cursor (desktop only)
 * ============================================================ */
.cursor {
  position: fixed; top: 0; left: 0;
  z-index: 8000;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(24, 23, 21, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition:
    width 0.45s var(--ease), height 0.45s var(--ease),
    background 0.45s var(--ease), border-color 0.4s var(--ease),
    opacity 0.4s var(--ease);
}
.cursor-dot {
  width: 4px; height: 4px;
  background: var(--cream);
  border-radius: 50%;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover {
  width: 72px; height: 72px;
  background: var(--ink);
  border-color: transparent;
}
.cursor.is-hover .cursor-dot { opacity: 0; transform: scale(0.4); }


/* ============================================================
 * 7. Navbar
 * ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding:
    calc(18px + env(safe-area-inset-top))
    var(--pad-x) 18px;
  background: rgba(239, 231, 216, 0);
  border-bottom: 1px solid transparent;
  transition:
    background 0.5s var(--ease), padding 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.6s var(--ease);
  animation: fadeBarIn 1s var(--ease) 0.2s both;
}
.navbar.is-scrolled {
  background: rgba(239, 231, 216, 0.86);
  border-bottom-color: var(--line-soft);
  padding: 12px var(--pad-x);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.navbar.is-hidden { transform: translateY(-110%); }

@keyframes fadeBarIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand-y {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.brand-y img { width: 100%; height: 100%; object-fit: cover; }
.brand-word {
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.nav-links {
  display: inline-flex; gap: 28px;
  justify-self: center;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.nav-links a > span {
  display: inline-block;
  transition: transform 0.5s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-tag {
  justify-self: end;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}


/* ============================================================
 * 8. Hero
 * ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    calc(var(--nav-h) + clamp(40px, 6vh, 80px))
    var(--pad-x)
    clamp(56px, 8vh, 100px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-inner {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Emblem (Y monogram + rotating ring text) */
.emblem {
  position: relative;
  width: clamp(96px, 11vw, 140px);
  height: clamp(96px, 11vw, 140px);
  margin: 0 0 clamp(20px, 3vh, 32px);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.2s var(--ease) 0.15s, transform 1.6s var(--ease-spring) 0.15s;
  animation: emblemFloat 7s var(--ease) infinite alternate;
}
.is-loaded .emblem { opacity: 1; transform: scale(1); }
@keyframes emblemFloat { to { translate: 0 -6px; } }

.emblem-img {
  position: absolute; inset: 16px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.05),
    0 22px 50px -22px rgba(24, 23, 21, 0.35);
}
.emblem-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: emblemBreath 8s var(--ease) infinite alternate;
}
@keyframes emblemBreath { to { transform: scale(1.05); } }

.emblem-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  animation: rotateSlow 28s linear infinite;
}
.ring-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  fill: var(--ink-2);
}

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 clamp(22px, 3.2vh, 32px);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eb-dot {
  position: relative;
  width: 6px; height: 6px;
  background: var(--terra);
  border-radius: 50%;
}
.eb-dot::after {
  content: "";
  position: absolute; inset: -4px;
  border: 1px solid var(--terra);
  border-radius: 50%;
  opacity: 0;
  animation: ebRing 2.4s var(--ease) infinite;
}
@keyframes ebRing {
  0%   { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Display headline */
.display {
  margin: 0;
  font-weight: 200;
  font-size: clamp(40px, 8.4vw, 124px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: lowercase;
}
.display .line { display: block; padding-bottom: 0.04em; }
.display i { font-style: normal; font-weight: 500; color: var(--terra-2); }
.display .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease),
    transform 1s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 30ms);
}
.is-loaded .display .ltr { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Lede */
.lede {
  margin: clamp(22px, 3vh, 30px) 0 0;
  max-width: 520px;
  font-size: clamp(13.5px, 1.5vw, 15.5px);
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* Counter */
.counter {
  list-style: none;
  margin: clamp(28px, 4.5vh, 48px) 0 0;
  padding: clamp(18px, 2.4vh, 22px) clamp(8px, 3vw, 32px) 0;
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: clamp(14px, 2.6vw, 32px);
}
.counter::before,
.counter::after {
  content: "";
  position: absolute; top: 0;
  height: 1px;
  width: 0;
  background: var(--line);
  animation: counterLine 1.4s var(--ease) 1.1s forwards;
}
.counter::before { left: 50%; }
.counter::after  { right: 50%; }
@keyframes counterLine { to { width: 50%; } }

.counter li:not(.c-sep) {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.c-num {
  display: inline-block;
  min-width: 1.6ch;
  font-weight: 300;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.c-num.flip { animation: numFlip 0.55s var(--ease); }
@keyframes numFlip {
  0%   { transform: translateY(0);   opacity: 1; }
  45%  { transform: translateY(-8px); opacity: 0; filter: blur(2px); }
  55%  { transform: translateY(8px);  opacity: 0; filter: blur(2px); }
  100% { transform: translateY(0);   opacity: 1; filter: blur(0); }
}
.c-lab {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.c-sep {
  align-self: center;
  width: 1px; height: 28px;
  background: var(--line);
}

/* Hero CTA */
.hero-cta {
  position: relative;
  display: inline-flex; align-items: center;
  gap: 14px;
  margin-top: clamp(32px, 4vh, 44px);
  padding: 16px 28px;
  min-height: 44px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.hero-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--terra-2);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.hero-cta:hover::before { transform: translateY(0); }

.btn-label, .btn-arrow { position: relative; z-index: 1; }
.btn-label {
  display: inline-block;
  height: 1em;
  line-height: 1;
  overflow: hidden;
}
.btn-label > span {
  display: block;
  transition: transform 0.6s var(--ease);
}
.btn-label > span:last-child { position: absolute; top: 100%; left: 0; }
.hero-cta:hover .btn-label > span,
.field button:hover .btn-label > span { transform: translateY(-100%); }
.btn-arrow svg { transition: transform 0.5s var(--ease); }
.hero-cta:hover .btn-arrow svg,
.field button:hover .btn-arrow svg { transform: translateX(4px); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.cue-line {
  position: relative;
  display: block;
  width: 1px; height: 40px;
  background: var(--line);
  overflow: hidden;
}
.cue-line::after {
  content: "";
  position: absolute; top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--ink);
  animation: cueDown 2.4s var(--ease) infinite;
}
@keyframes cueDown {
  0%   { top: -50%; }
  100% { top: 100%; }
}


/* ============================================================
 * 9. Marquee
 * ============================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vh, 28px) 0;
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  white-space: nowrap;
  font-weight: 300;
  font-size: clamp(20px, 3.2vw, 36px);
  letter-spacing: -0.01em;
  text-transform: lowercase;
  animation: tick 32s linear infinite;
}
.marquee-track i {
  font-style: normal;
  font-size: 0.6em;
  color: var(--terra);
}
@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ============================================================
 * 10. Generic section
 * ============================================================ */
.section {
  padding: clamp(70px, 11vh, 130px) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.sec-num {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(34px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}
.sec-title.big { font-size: clamp(44px, 7vw, 100px); }
.sec-body {
  margin: 24px 0 0;
  max-width: 520px;
  font-size: clamp(14.5px, 1.5vw, 16px);
  line-height: 1.75;
  color: var(--muted);
}
.sec-body.center { margin-inline: auto; }

.sec-marks {
  display: inline-flex; align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.sec-marks i {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--terra);
  border-radius: 50%;
}


/* ============================================================
 * 11. Showcase (story + image)
 * ============================================================ */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.showcase-copy { max-width: 480px; }
.showcase-visual { position: relative; }
.visual-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream-2);
  box-shadow: 0 30px 80px -30px rgba(24, 23, 21, 0.35);
}
.visual-frame img {
  width: 100%; height: auto;
  transition: transform 1.4s var(--ease);
}
.visual-frame:hover img { transform: scale(1.03); }

.visual-meta {
  position: absolute;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-tl { top: -22px; left: 0; }
.meta-br { right: 0; bottom: -22px; }


/* ============================================================
 * 12. Promise
 * ============================================================ */
.promise { border-top: 1px solid var(--line-soft); }
.promise-head { max-width: 720px; margin: 0 0 56px; }

.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.pl-item {
  display: grid;
  grid-template-columns: 80px 1fr 1.6fr;
  align-items: baseline;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease);
}
.pl-item:hover { padding-left: 18px; }
.pl-num {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--terra-2);
}
.pl-item h3 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: -0.025em;
  text-transform: lowercase;
}
.pl-item p {
  margin: 0;
  max-width: 460px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}


/* ============================================================
 * 13. Wordmark banner
 * ============================================================ */
.wordmark {
  width: 100%;
  background: var(--paper);
  overflow: hidden;
}
.wordmark img { width: 100%; height: auto; }


/* ============================================================
 * 14. Notify
 * ============================================================ */
.notify-sec { text-align: center; }
.notify-inner { max-width: 680px; margin: 0 auto; }

.notify {
  margin: 36px auto 0;
  width: min(100%, 480px);
  padding: 0 4px;
}
.field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 14px 40px -16px rgba(24, 23, 21, 0.3);
  transform: translateY(-1px);
}
.field input {
  flex: 1;
  min-width: 0;
  padding: 12px 4px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.field input::placeholder { color: #A89E8E; }

.field button {
  position: relative;
  display: inline-flex; align-items: center;
  gap: 10px;
  padding: 13px 22px;
  min-height: 44px;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.5s var(--ease), transform 0.4s var(--ease);
}
.field button::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--terra-2);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.field button:hover::before { transform: translateY(0); }

.hint {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hint.success { color: #6E8463; }
.hint.error   { color: var(--terra-2); }


/* ============================================================
 * 15. Footer
 * ============================================================ */
.footer {
  padding:
    clamp(60px, 8vh, 90px)
    var(--pad-x)
    calc(clamp(28px, 4vh, 40px) + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--cream);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-brand {
  display: flex; align-items: center;
  gap: 18px;
}
.brand-y.big-y { width: 56px; height: 56px; }
.footer-word {
  display: block;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.footer-tag {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(239, 231, 216, 0.55);
}

.footer-meta {
  justify-self: end;
  display: inline-flex; align-items: center;
  flex-wrap: wrap;
  gap: 26px;
}
.footer-meta a {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  overflow: hidden;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}
.footer-meta a > span {
  display: inline-block;
  transition: transform 0.5s var(--ease);
}
.footer-meta a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.footer-meta a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(239, 231, 216, 0.14);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(239, 231, 216, 0.5);
}


/* ============================================================
 * 16. Utilities (reveal, fade, letters)
 * ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

[data-fade] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--delay, 0) * 1ms);
}
.is-loaded [data-fade] { opacity: 1; transform: translateY(0); }

[data-letters-up] .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.95s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 24ms);
}
[data-letters-up].is-in .ltr {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}


/* ============================================================
 * 17. Responsive breakpoints
 * ============================================================ */

/* — Tablet (≤ 1024) — */
@media (max-width: 1024px) {
  .showcase-grid { gap: 56px; }
  .pl-item { grid-template-columns: 60px 1fr 1.4fr; gap: 24px; }
}

/* — Small tablet / large phone (≤ 820) — */
@media (max-width: 820px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 48px; }
  .showcase-visual { order: -1; }
  .visual-meta { font-size: 9.5px; }

  .pl-item {
    grid-template-columns: 50px 1fr;
    row-gap: 8px;
    column-gap: 16px;
  }
  .pl-item p { grid-column: 1 / -1; max-width: none; }

  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-meta { justify-self: start; }
}

/* — Phone (≤ 640) — */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  .navbar {
    grid-template-columns: 1fr auto;
    padding-left: 20px;
    padding-right: 20px;
  }
  .nav-links,
  .nav-tag { display: none; }

  .hero {
    padding-top: calc(var(--nav-h) + 36px);
    padding-bottom: 80px;
  }
  .emblem { width: 96px; height: 96px; margin-bottom: 22px; }
  .ring-text { font-size: 11px; letter-spacing: 0.26em; }
  .eyebrow { font-size: 10px; letter-spacing: 0.26em; margin-bottom: 20px; }
  .display { font-size: clamp(38px, 12vw, 56px); line-height: 1.04; }
  .lede {
    margin-top: 20px;
    padding: 0 8px;
    font-size: 13.5px;
    line-height: 1.65;
  }

  /* Counter becomes a 4-col grid */
  .counter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 380px;
    margin-top: 26px;
    padding: 16px 4px 0;
  }
  .c-sep { display: none; }
  .c-num { font-size: 26px; }
  .c-lab { font-size: 9px; letter-spacing: 0.26em; }

  .hero-cta {
    margin-top: 28px;
    padding: 15px 22px;
    font-size: 11px;
    letter-spacing: 0.22em;
  }
  .scroll-cue { bottom: 18px; }
  .cue-line { height: 30px; }

  .section { padding: 64px 20px; }
  .sec-num { margin-bottom: 16px; }
  .sec-title { font-size: clamp(30px, 9vw, 48px); }
  .sec-title.big { font-size: clamp(40px, 12vw, 60px); }
  .sec-body { font-size: 14px; }

  .marquee-track { font-size: clamp(18px, 5vw, 26px); gap: 22px; }

  .visual-meta { display: none; }

  .field { padding: 4px 4px 4px 18px; }
  .field input { font-size: 16px; padding: 13px 4px; } /* 16px prevents iOS zoom */
  .field button { padding: 13px 16px; font-size: 10.5px; letter-spacing: 0.18em; }

  .footer-meta { gap: 18px; }
  .footer-meta a { font-size: 11.5px; }
  .brand-y.big-y { width: 48px; height: 48px; }
  .footer-word { font-size: 20px; }
}

/* — Very small phone (≤ 380) — */
@media (max-width: 380px) {
  .brand-word { font-size: 14px; }
  .brand-y { width: 28px; height: 28px; }

  .display { font-size: clamp(32px, 10vw, 44px); }
  .emblem { width: 86px; height: 86px; }
  .ring-text { font-size: 10px; }

  .counter { gap: 6px; padding-inline: 0; }
  .c-num { font-size: 22px; }
  .c-lab { font-size: 8.5px; letter-spacing: 0.22em; }

  .field button { padding: 12px 14px; }
}

/* — Landscape phone (short viewport) — */
@media (max-height: 640px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 20px);
    padding-bottom: 40px;
  }
  .emblem { width: 80px; height: 80px; margin-bottom: 14px; }
  .display { font-size: clamp(36px, 6vw, 64px); }
  .lede { margin-top: 14px; }
  .counter { margin-top: 18px; padding-top: 12px; }
  .hero-cta { margin-top: 20px; }
  .scroll-cue { display: none; }
}


/* ============================================================
 * 18. Touch & reduced motion
 * ============================================================ */
@media (hover: none) {
  .cursor { display: none !important; }
  .emblem { animation: none; }
  .visual-frame:hover img { transform: none; }
  .pl-item:hover { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .intro { display: none; }
  .cursor { display: none; }
}


/* ============================================================
 * 19. Print
 * ============================================================ */
@media print {
  .intro, .cursor, .marquee, .scroll-cue, .nav-links { display: none !important; }
  body { background: #fff; color: #000; }
  .navbar { position: static; border: 0; padding: 12px var(--pad-x); }
  .hero, .section { min-height: auto; padding-block: 32px; }
  .emblem { animation: none; }
}
