/* ============================================================
   erpai — landing
   Type: Fraunces (serif display) · Inter (sans UI/body) · JetBrains Mono (agent/code)
   Palette pulled from the ASCII-bridge background.
   ============================================================ */

:root {
  /* surfaces */
  --cream:      #F4EFE4;
  --cream-2:    #EFE8D9;
  --paper:      #FBF8F1;
  --ink:        #2A2722;
  --ink-soft:   #5A554C;
  --ink-faint:  #8A8478;

  /* accents (from the image) */
  --rust:       #B14A2C;   /* the bridge */
  --rust-deep:  #92381F;
  --teal:       #356B79;   /* the water */
  --teal-deep:  #244E59;
  --gold:       #D49A47;   /* the sky glyphs */

  /* lines */
  --line:       rgba(42, 39, 34, 0.12);
  --line-soft:  rgba(42, 39, 34, 0.07);

  /* type */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* rhythm */
  --maxw: 1240px;
  --pad:  clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code { font-family: var(--mono); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ============================================================
   SHARED TYPE ELEMENTS
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.eyebrow__tick {
  width: 18px; height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: 0.55;
}
.eyebrow--rust { color: var(--rust); }
.eyebrow--teal { color: var(--teal); }
.eyebrow--ink  { color: var(--ink-soft); }

.serif-h2 {
  font-family: var(--serif);
  font-weight: 430;
  font-size: clamp(1.9rem, 1rem + 3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.021em;
  font-optical-sizing: auto;
  text-wrap: balance;
  margin-bottom: 1.15rem;
  color: var(--ink);
}

.lead {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.14rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 44ch;
  text-wrap: pretty;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  padding: 0.74em 1.45em;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease;
  box-shadow: 0 1px 2px rgba(42,39,34,0.08);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -12px rgba(42,39,34,0.4); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 0.58em 1.15em; font-size: 0.86rem; }
.btn--rust  { --bg: var(--rust);  --fg: #fff; }
.btn--rust:hover  { background: var(--rust-deep); }
.btn--teal  { --bg: var(--teal);  --fg: #fff; }
.btn--teal:hover  { background: var(--teal-deep); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(255,255,255,0.4); }

/* ---------- steps ---------- */
.steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.steps li { display: inline-flex; align-items: baseline; gap: 0.45em; position: relative; }
.steps li:not(:last-child)::after {
  content: "·"; position: absolute; right: -0.85rem; color: var(--ink-faint);
}
.steps__n {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--rust);
  opacity: 0.85;
}
.steps--mono { font-family: var(--mono); font-size: 0.74rem; letter-spacing: -0.01em; }
.steps--mono .steps__n { color: var(--teal); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.9rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav.scrolled {
  background: rgba(244, 239, 228, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 30px -20px rgba(42,39,34,0.6);
}

/* brand */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand__mark {
  width: 13px; height: 13px;
  border-radius: 3px;
  background: var(--rust);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
  transform: rotate(45deg);
}
.brand__word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__dot { color: var(--rust); }

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px;
  height: 1px; background: var(--ink); transition: right 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }

.nav__actions { display: flex; align-items: center; gap: 1.25rem; }
.nav__signin { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav__signin:hover { color: var(--ink); }

.nav__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__menu span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  /* cream fallback gradient sits under the image, so a missing file still reads intentional */
  background-color: var(--cream);
  background-image:
    radial-gradient(1200px 600px at 18% 38%, rgba(177,74,44,0.05), transparent 60%),
    url("assets/hero-bg.png");
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
}
/* legibility wash — softens the bridge into a quiet watermark so type leads */
.hero__wash {
  position: absolute; inset: 0;
  background:
    /* flat veil keeps a calm minimum everywhere */
    linear-gradient(rgba(244,239,228,0.42), rgba(244,239,228,0.42)),
    /* heavier top (under nav) and bottom (fade to page) */
    linear-gradient(to bottom, rgba(244,239,228,0.78) 0%, rgba(244,239,228,0.18) 24%, rgba(244,239,228,0.18) 58%, rgba(244,239,228,0.55) 84%, rgba(244,239,228,0.97) 100%),
    /* gentle lift on the far-left text block */
    linear-gradient(100deg, rgba(244,239,228,0.5) 0%, rgba(244,239,228,0.0) 34%, rgba(244,239,228,0.0) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: start;
}
.hero__divider {
  align-self: stretch;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line), transparent);
  min-height: 380px;
}

.col { max-width: 30rem; position: relative; animation: heroIn 0.9s var(--ease) both; }
.col--agent { justify-self: end; animation-delay: 0.12s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
/* soft cream lift behind the headline/subhead so text never fights the cables */
.col::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -1.4rem; right: -1.6rem; top: -1.2rem;
  height: 60%;
  background: linear-gradient(180deg,
    rgba(245,240,230,0.66) 0%,
    rgba(245,240,230,0.58) 42%,
    rgba(245,240,230,0.0) 100%);
  filter: blur(10px);
  border-radius: 28px;
  pointer-events: none;
}

/* display headline + scramble (no layout shift via ghost sizer) */
.display {
  position: relative;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.7rem, 1.2rem + 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin-bottom: 1.15rem;
  font-optical-sizing: auto;
}
.display__sizer { visibility: hidden; }
.display__text {
  position: absolute;
  inset: 0;
  white-space: nowrap;
}
.display.scrambling .display__text { color: var(--rust); }
.col--agent .display.scrambling .display__text { color: var(--teal); }

.rotator {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.02rem, 0.96rem + 0.4vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: -0.003em;
  color: var(--ink-soft);
  min-height: 3.4em;
  max-width: 32ch;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  margin-bottom: 1.7rem;
}
.rotator.swap { opacity: 0; transform: translateY(6px); }

/* hero cards — soft frosted glass over the art (Intercom-soft shadow) */
.card {
  border: 1px solid rgba(42,39,34,0.09);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  background: rgba(251, 248, 241, 0.74);
  backdrop-filter: saturate(115%) blur(12px);
  -webkit-backdrop-filter: saturate(115%) blur(12px);
  box-shadow: 0 10px 30px -24px rgba(42,39,34,0.45);
  margin-bottom: 1.7rem;
  position: relative;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 1.1rem; bottom: 1.1rem; width: 2px;
  border-radius: 2px;
}
.card--rust::before { background: var(--rust); }
.card--teal::before { background: var(--teal); }
.card p { font-size: 0.95rem; line-height: 1.55; color: var(--ink); padding-left: 0.6rem; }
.card strong { font-weight: 600; }
.card--teal code {
  background: rgba(53,107,121,0.12);
  color: var(--teal-deep);
  padding: 0.08em 0.4em;
  border-radius: 5px;
  font-size: 0.88em;
}

.col__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.5rem; }

/* scroll cue */
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-faint);
}
.hero__scroll-line { width: 1px; height: 36px; background: linear-gradient(var(--ink-faint), transparent); animation: scrollPulse 2.4s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section__head { max-width: 44rem; margin-bottom: 3rem; }

.catalog { background: var(--paper); border-top: 1px solid var(--line-soft); }
.section--paper { background: var(--paper); border-top: 1px solid var(--line-soft); }

/* enterprise tri / neo+byoa duo (reuse .app-card) */
.tri-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.duo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }

/* pricing */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.plan-card {
  display: flex; flex-direction: column;
  padding: 1.8rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.plan-card--featured {
  border-color: rgba(177,74,44,0.4);
  background: #fff;
  box-shadow: 0 22px 48px -30px rgba(42,39,34,0.5);
}
.plan-card__name {
  font-family: var(--sans); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.plan-card--featured .plan-card__name { color: var(--rust); }
.plan-card__head {
  font-family: var(--serif); font-size: 1.7rem; line-height: 1.12;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 0.85rem;
}
.plan-card__desc { font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); flex: 1; margin-bottom: 1.5rem; }
.plan-card .btn { width: 100%; }

/* category cards — real categories + app counts (template from erpai.studio) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.cat-card {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1.4rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(177,74,44,0.35);
  box-shadow: 0 16px 34px -24px rgba(42,39,34,0.45);
}
.cat-card__count {
  display: flex; align-items: baseline; gap: 0.45rem;
  font-family: var(--mono);
  font-size: 1.7rem; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--rust);
}
.cat-card__count small {
  font-family: var(--sans);
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
}
.cat-card__name {
  font-family: var(--serif); font-weight: 480;
  font-size: 1.22rem; letter-spacing: -0.01em; color: var(--ink);
}
.cat-card__desc { font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); }

/* featured apps */
.featured { margin-top: 3rem; }
.featured__label {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.featured__label .eyebrow__tick { width: 18px; height: 1px; background: currentColor; opacity: 0.55; }
.featured__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.app-card {
  display: block;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(53,107,121,0.35);
  box-shadow: 0 16px 34px -24px rgba(42,39,34,0.45);
}
.app-card__tag {
  display: inline-block;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 0.7rem;
}
.app-card__name {
  font-family: var(--serif); font-weight: 480;
  font-size: 1.4rem; letter-spacing: -0.015em; color: var(--ink);
  margin-bottom: 0.5rem;
}
.app-card__desc { font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }

/* category chips */
.chips {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 3rem;
}
.chips li {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 0.45em 0.95em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s, background 0.3s;
}
.chips li:hover { transform: translateY(-2px); border-color: var(--rust); color: var(--rust); background: #fff; }
.chips li:last-child { color: var(--rust); border-style: dashed; }

/* ---------- placeholder boxes ---------- */
.ph {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem;
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1.5px dashed rgba(42,39,34,0.22);
  border-radius: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(42,39,34,0.018) 0 12px, transparent 12px 24px),
    var(--cream);
  overflow: hidden;
  transition: border-color 0.4s var(--ease);
}
.ph:hover { border-color: var(--rust); }
.ph--tall { aspect-ratio: 4 / 5; }
.ph--dark {
  background:
    repeating-linear-gradient(45deg, rgba(53,107,121,0.05) 0 12px, transparent 12px 24px),
    #20323a;
  border-color: rgba(255,255,255,0.16);
}
.ph--dark .ph__label { color: rgba(255,255,255,0.72); }
.ph--dark .ph__tag { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.25); }
.ph--dark .ph__play { border-color: rgba(255,255,255,0.5); }
.ph--dark .ph__play::after { border-left-color: rgba(255,255,255,0.7); }
.ph--dark:hover { border-color: var(--teal); }

.ph__tag {
  position: absolute; top: 0.9rem; left: 0.9rem;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 0.25em 0.55em;
}
.ph__play {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
  display: grid; place-items: center;
  position: relative;
  transition: transform 0.4s var(--ease);
}
.ph:hover .ph__play { transform: scale(1.08); }
.ph__play::after {
  content: ""; width: 0; height: 0;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  border-left: 13px solid var(--ink-soft); margin-left: 3px;
}
.ph__label {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em;
  color: var(--ink-soft); text-align: center; padding-inline: 1rem;
}

/* ---------- layer sections ---------- */
.layer__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.layer--agent { background: #1b2a31; color: var(--cream); }
.layer--agent .serif-h2 { color: #fff; }
.layer--agent .lead { color: rgba(244,239,228,0.7); }
.layer--agent .eyebrow--teal { color: #7fb4c0; }

.ticks { display: grid; gap: 0.8rem; margin: 1.8rem 0; }
.ticks li {
  position: relative; padding-left: 1.7rem;
  color: var(--ink-soft); font-size: 0.98rem;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg);
  background: var(--rust);
}
.ticks--teal li::before { background: var(--teal); }

/* manifest / code card */
.manifest {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: #0f1a1f;
  box-shadow: 0 24px 50px -30px rgba(0,0,0,0.7);
  margin: 1.8rem 0;
  max-width: 30rem;
}
.manifest__bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.manifest__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.manifest__bar em {
  margin-left: auto; font-style: normal;
  font-family: var(--mono); font-size: 0.72rem; color: rgba(244,239,228,0.5);
}
.manifest__body {
  margin: 0; padding: 1.1rem 1.2rem;
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.8;
  color: rgba(244,239,228,0.92);
  white-space: pre-wrap;
  overflow-x: auto;
}
.manifest__body .c { color: #6f8b94; }
.manifest__body .k { color: #7fb4c0; }
.manifest__body .v { color: var(--gold); }

/* ---------- CTA ---------- */
.cta { background: var(--paper); border-top: 1px solid var(--line-soft); text-align: center; overflow: hidden; }
.cta__inner { position: relative; max-width: 50rem; margin-inline: auto; }
.cta__inner .eyebrow { justify-content: center; }
.cta__inner .lead { margin-inline: auto; }
.cta__title { font-size: clamp(2.2rem, 1.2rem + 4vw, 3.6rem); margin-bottom: 1.2rem; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* ============================================================
   ART (decorative SF illustrations) — blend white paper away
   ============================================================ */
.art { mix-blend-mode: multiply; pointer-events: none; user-select: none; }
.art--cablecar {
  position: absolute; right: clamp(-1rem, 2vw, 3rem); top: clamp(2rem, 6vw, 5rem);
  width: clamp(120px, 16vw, 215px);
  opacity: 0.92;
  transform: rotate(2deg);
}
.layer__grid .ph { position: relative; }
.art--houses {
  position: absolute; bottom: -8%; right: -6%;
  width: 62%; opacity: 0.28; mix-blend-mode: normal;
}
.art--bridge {
  position: absolute; bottom: -6%; left: -8%;
  width: 60%; opacity: 0.34; mix-blend-mode: screen;
}
.art--poppy {
  position: absolute; left: -1.5rem; top: -5.5rem;
  width: clamp(104px, 12vw, 150px); opacity: 0.8;
  transform: rotate(-4deg); z-index: -1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--cream); border-top: 1px solid var(--line); padding: 3rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__links a { font-size: 0.88rem; color: var(--ink-soft); transition: color 0.2s; }
.footer__links a:hover { color: var(--rust); }
.footer__meta {
  width: 100%; font-size: 0.8rem; color: var(--ink-faint);
  border-top: 1px solid var(--line-soft); padding-top: 1.5rem; margin-top: 0.5rem;
}
.footer__meta { font-variant-numeric: tabular-nums; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .featured__row { grid-template-columns: 1fr; }
  .tri-row, .plan-grid { grid-template-columns: 1fr; }
  .duo-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__divider { display: none; }
  .col { max-width: 100%; }
  .col--agent { justify-self: stretch; }
  .display__text { position: static; }
  .display__sizer { display: none; }
  .rotator { min-height: 0; margin-bottom: 1.3rem; }

  .layer__grid, .layer__grid--rev { grid-template-columns: 1fr; }
  .layer__grid--rev > .ph { order: 2; }

  .nav__links, .nav__actions { display: none; }
  .nav__menu { display: flex; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 1.25rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(244,239,228,0.96); backdrop-filter: blur(16px);
    padding: 1.5rem var(--pad); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav__actions {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    transform: translateY(160px); padding: 0 var(--pad) 1.5rem;
    background: rgba(244,239,228,0.96); backdrop-filter: blur(16px);
  }
}

@media (max-width: 560px) {
  .hero { padding-top: 6rem; }
  .hero__scroll { display: none; }
  .col__cta { gap: 1rem; }
  .art--cablecar { width: 110px; opacity: 0.8; }
  .cat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOTION PREFERENCE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
