/* ================================================================
   HOMEPAGE-ONLY STYLES — extracted from _design_reference/index.html
   per HANDOFF.md §12 Phase 3.

   Loaded only by /views/pages/home.ejs. Tokens and shared chrome
   (nav, footer, kicker, btn) live in site.css.

   Sections:
     1. Hero (with portrait sidebar)
     2. Signal ticker (cream marquee below hero)
     3. Section shell (overrides for the homepage's tighter rhythm)
     4. How I Work
     5. Recent Work
     6. Homefront strip (cream-dark, 2-col on desktop)
     7. Newsletter signup
     8. HF Promo ticker (ink strip between nav and hero)
   ================================================================ */

/* ── HERO ───────────────────────────────────────────────── */
.hero { display: flex; flex-direction: column; }
.hero-main { padding: 80px var(--pad-x) 48px; position: relative; }
.hero-main::before {
  content: ''; position: absolute;
  top: 40px; left: var(--pad-x);
  width: 40px; height: 2px; background: var(--teal);
}
.hero-kicker {
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal);
  margin-top: 24px; margin-bottom: 28px;
}
.hero-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(56px, 16vw, 76px); line-height: 0.92;
  letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 32px; text-transform: none;
}
.hero-name .name-last { display: block; color: var(--teal); }
.hero-tagline {
  font-family: var(--font-body); font-size: 17px; font-weight: 400;
  line-height: 1.62; color: var(--fg-2);
  margin-bottom: 36px;
  padding-left: 18px; border-left: 2px solid var(--teal);
  text-wrap: pretty;
}
.hero-ctas { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

/* ── PORTRAIT — hero variant (full-fill sidebar, natural color) ─────
   Hard-baked default per the mockup's TWEAK_DEFAULTS.portraitStyle.
   On mobile the portrait stacks below the hero copy with a top rule;
   on desktop it fills the right sidebar (1fr 420px / 1fr 460px at
   1400px+) and the caption sits absolutely at the bottom of the
   frame on solid cream. No filter, no max-width cap, no gradient
   overlay (gradients are forbidden per CLAUDE.md visual rules). */
.hero-portrait {
  position: relative; background: var(--cream); width: 100%;
  border-top: 1px solid var(--rule);
  padding: 0;
  display: flex; flex-direction: column; align-items: stretch;
  overflow: hidden;
}
.portrait-frame {
  width: 100%; max-width: 100%;
  margin: 0; position: relative;
}
.portrait-canvas {
  width: 100%; height: auto; display: block;
  /* Hero variant — natural color, no duotone filter. */
  filter: none;
}
.portrait-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 18px var(--pad-x) 18px;
  background: var(--cream); /* solid, no gradient — CLAUDE.md rule */
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 4px;
}
.portrait-caption-label {
  font-family: var(--font-ui); font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal);
}
.portrait-caption-name {
  font-family: var(--font-body); font-size: 14px; font-style: italic;
  color: var(--fg-2); line-height: 1.5;
}

/* ── UFG sidebar under portrait ─────────────────────── */
.hero-ufg {
  padding: 28px 22px 26px;
  background: var(--teal-tint-04);
  border-left: 3px solid var(--teal);
  border-top: 1px solid var(--rule);
  margin: 0 var(--pad-x);
}
.ufg-tag {
  font-family: var(--font-ui); font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 10px;
}
.ufg-text {
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.7;
  color: var(--fg-2); margin-bottom: 18px;
}
.ufg-link {
  font-family: var(--font-ui); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 200ms var(--ease), color 180ms var(--ease);
}
.ufg-link::after { content: '→'; }
.ufg-link:hover { gap: 12px; color: var(--teal-mid); }

/* ── SIGNAL TICKER ──────────────────────────────────── */
/* Sticky under the nav (or under the nav + hf-promo when the promo is
   present). The .has-ticker body class — toggled by the hf-promo
   dismiss handler — drives --ticker-h, so dismissing the promo
   automatically slides the signal up to dock under the nav. No JS
   coupling between this rule and the dismiss handler beyond the
   existing body-class swap. */
.signal {
  position: sticky;
  top: calc(var(--nav-h) + var(--ticker-h));
  z-index: 100;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
  display: grid; grid-template-columns: auto 1fr;
  align-items: stretch; overflow: hidden;
}
.signal-label {
  font-family: var(--font-ui); font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal);
  padding: 0 16px;
  display: flex; align-items: center; gap: 10px;
  background: var(--cream);
  border-right: 1px solid var(--rule);
  position: relative; z-index: 2;
  white-space: nowrap;
}
.signal-label::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 104, 105, 0.55);
  animation: signalPulse 1.8s var(--ease) infinite;
  flex-shrink: 0;
}
@keyframes signalPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 104, 105, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(0, 104, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 104, 105, 0); }
}
.signal-label .signal-label-aux { display: none; }
.signal-viewport { position: relative; overflow: hidden; min-width: 0; }
.signal-viewport::before,
.signal-viewport::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 36px; z-index: 3; pointer-events: none;
}
.signal-viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), rgba(244,239,228,0));
}
.signal-viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), rgba(244,239,228,0));
}
.signal-track {
  display: flex; align-items: center;
  /* 36px + .signal's 1px top + 1px bottom border = 38px total, which
     pixel-matches the .hf-promo black strip above. 36px at every viewport. */
  width: max-content; height: 36px;
  animation: signalScroll var(--ticker-dur, 42s) linear infinite;
  will-change: transform;
}
.signal:hover .signal-track,
.signal:focus-within .signal-track { animation-play-state: paused; }
@keyframes signalScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .signal-track { animation: none; }
  .signal-viewport { overflow-x: auto; }
}
.signal-item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 26px; position: relative; flex-shrink: 0;
  transition: color 160ms var(--ease);
}
.signal-item + .signal-item::before {
  content: ''; position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px; background: var(--rule);
}
.signal-item:hover .signal-headline,
.signal-item:focus .signal-headline { color: var(--teal); }
.signal-item:hover .signal-arrow,
.signal-item:focus .signal-arrow { color: var(--teal); transform: translateX(3px); }
/* Identical visual to .badge (site.css) + flex-shrink:0 so the pill never
   compresses in the inline-flex .signal-item. Square corners (no radius). */
.signal-type {
  font-family: var(--font-ui); font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-tint-08);
  padding: 3px 7px; line-height: 1.4;
  display: inline-block; flex-shrink: 0;
}
.signal-headline {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 500;
  line-height: 1.2; color: var(--ink);
  transition: color 160ms var(--ease); white-space: nowrap;
}
.signal-arrow {
  font-family: var(--font-ui); font-size: 11px; color: var(--fg-4);
  transition: color 160ms var(--ease), transform 160ms var(--ease);
  flex-shrink: 0;
}

/* ── HOMEPAGE SECTION SHELL OVERRIDES ────────────────── */
/* Homepage uses tighter section rhythm than site-wide --rule-gap. */
.home-section {
  padding: 64px var(--pad-x);
  border-top: 1px solid var(--rule);
}
.home-section h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 8vw, 38px); line-height: 1.02;
  letter-spacing: -0.02em; color: var(--ink);
  margin-top: 24px; margin-bottom: 28px;
  text-wrap: balance;
}

/* ── HOW I WORK ────────────────────────────────────── */
.how-left p {
  font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  color: var(--fg-2); margin-bottom: 20px;
}
.how-left p strong { color: var(--ink); font-weight: 600; }
.how-right { margin-top: 48px; }
.how-right .kicker { margin-bottom: 12px; }
.cred-list { display: flex; flex-direction: column; }
.cred-item {
  display: grid; grid-template-columns: 36px 1fr; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--rule-light);
  align-items: start;
}
.cred-item:first-child { border-top: 1px solid var(--rule-light); }
.cred-num {
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  color: var(--teal); opacity: 0.4; line-height: 1; padding-top: 3px;
}
.cred-body strong {
  display: block; font-family: var(--font-ui); font-weight: 600;
  font-size: 13.5px; color: var(--ink);
  margin-bottom: 4px; letter-spacing: 0.01em;
}
.cred-body span {
  font-family: var(--font-body); font-size: 13.5px; line-height: 1.6;
  color: var(--fg-3); font-style: italic;
}

/* ── RECENT WORK ──────────────────────────────────── */
/* .recent-header / .more-link now live in site.css (shared across the
   homepage + every section landing). Do not redefine them here. */
.work-list { display: flex; flex-direction: column; }
.work-item {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 0; border-bottom: 1px solid var(--rule-light);
  position: relative;
}
.work-item:first-child { border-top: 1px solid var(--rule-light); }
.work-item:hover .work-body h3 { color: var(--teal); }
.work-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.work-date {
  font-family: var(--font-ui); font-size: 10px; font-weight: 500;
  color: var(--fg-4); letter-spacing: 0.08em; text-transform: uppercase;
}
.work-body h3 {
  font-family: var(--font-body); font-size: 19px; font-weight: 600;
  line-height: 1.3; color: var(--ink); margin-bottom: 8px;
  transition: color 180ms var(--ease); text-wrap: pretty;
}
.work-body p {
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.65;
  color: var(--fg-3); font-style: italic;
}
.work-arrow {
  font-family: var(--font-ui); font-size: 13px; color: var(--teal);
  font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 180ms var(--ease);
}
.work-arrow::after { content: '→'; }
.work-item:hover .work-arrow { gap: 12px; }

/* ── HOMEFRONT STRIP ────────────────────────────────── */
.homefront-strip { background: var(--cream-dark); }
.hf-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(56px, 17vw, 84px); line-height: 0.9;
  letter-spacing: -0.02em; color: var(--ink);
  margin: 26px 0 22px;
}
.hf-title em {
  display: block; color: var(--teal); font-style: italic;
  font-family: var(--font-body); font-size: 0.45em;
  line-height: 1.2; font-weight: 500;
  letter-spacing: 0; margin-top: 8px;
}
.hf-desc {
  font-family: var(--font-body); font-size: 15.5px; line-height: 1.7;
  color: var(--fg-2); margin-bottom: 28px;
}
.hf-left .btn-primary { align-self: flex-start; width: 100%; }
.hf-right { margin-top: 48px; }
.hf-right .kicker { margin-bottom: 12px; }
.hf-issues { display: flex; flex-direction: column; }
.hf-issue {
  padding: 22px 0; border-bottom: 1px solid var(--rule-light);
  transition: padding-left 200ms var(--ease);
}
.hf-issue:first-child { border-top: 1px solid var(--rule-light); }
.hf-issue:hover { padding-left: 6px; }
.hf-issue:hover h3 { color: var(--teal); }
.hf-issue-meta {
  font-family: var(--font-ui); font-size: 9px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 8px;
}
.hf-issue h3 {
  font-family: var(--font-body); font-size: 17px; font-weight: 600;
  line-height: 1.3; color: var(--ink); margin-bottom: 6px;
  transition: color 180ms var(--ease); text-wrap: pretty;
}
.hf-issue p {
  font-family: var(--font-body); font-size: 13.5px; line-height: 1.6;
  color: var(--fg-3); font-style: italic;
}

/* ── HOMEPAGE NEWSLETTER SIGNUP ───────────────────── */
.home-nl h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 8vw, 38px); line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 22px; margin-bottom: 18px; text-wrap: balance;
}
.home-nl .nl-desc {
  font-family: var(--font-body); font-size: 15.5px; line-height: 1.7;
  color: var(--fg-2); font-style: italic; margin-bottom: 32px;
}
.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-form input {
  background: transparent; border: 1px solid var(--rule);
  padding: 15px 16px; font-family: var(--font-body); font-size: 15px;
  color: var(--ink); outline: none;
  transition: border-color 180ms var(--ease);
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
.nl-form input:focus { border-color: var(--teal); }
.nl-form input::placeholder { color: var(--fg-4); font-style: italic; }
.nl-form button {
  background: var(--teal); color: var(--cream); border: none;
  padding: 15px 24px; font-family: var(--font-ui); font-size: 11px;
  font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 180ms var(--ease);
}
.nl-form button:hover { background: var(--teal-mid); }
.nl-form .nl-status {
  font-family: var(--font-body); font-size: 13px;
  color: var(--teal); font-style: italic;
  min-height: 18px; opacity: 0; transition: opacity 220ms var(--ease);
}
.nl-form .nl-status.show { opacity: 1; }
.nl-fine {
  font-family: var(--font-ui); font-size: 9.5px;
  letter-spacing: 0.1em; color: var(--fg-4);
  text-transform: uppercase; margin-top: 4px;
}

/* NOTE: the .hf-promo banner styles and the --ticker-h / .has-ticker
   offset cascade moved to site.css (the banner is now site-wide chrome,
   not homepage-only). The .signal ticker below stays here (homepage-only)
   and reads --ticker-h from site.css. */

/* ── BREAKPOINTS ──────────────────────────────────── */
/* Signal label aux text is intentionally hidden on every viewport
   (base rule above). The previous @media (min-width:600px) override
   that re-enabled it on desktop was removed per operator request — the
   ticker-label is now just the kicker word, no descriptive tail. */

@media (min-width: 768px) {
  .signal-label { padding: 0 22px; font-size: 10px; }
  .signal-headline { font-size: 13px; }

  .hero-main { padding: 104px var(--pad-x) 64px; }
  .hero-main::before { top: 56px; width: 48px; }
  .hero-name { font-size: clamp(80px, 11vw, 96px); }
  .hero-tagline { max-width: 600px; font-size: 18px; }
  .hero-ctas { flex-direction: row; align-items: center; gap: 14px; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .hero-ufg { margin: 0 var(--pad-x); }

  .home-section { padding: 80px var(--pad-x); }
  .home-section h2 { font-size: clamp(36px, 5vw, 44px); }

  .work-item {
    display: grid; grid-template-columns: 110px 1fr auto;
    gap: 36px; align-items: start; flex-direction: row;
  }
  .work-meta {
    flex-direction: column; align-items: flex-start;
    gap: 6px; padding-top: 2px;
  }
  .work-arrow { align-self: center; margin-top: 0; }

  .hf-left .btn-primary { width: auto; }
}

@media (min-width: 1024px) {
  /* Hero variant: 420px right sidebar that the portrait fills. */
  .hero {
    display: grid; grid-template-columns: 1fr 420px;
    min-height: 0;
  }
  .hero-main {
    padding: 120px 64px 80px var(--pad-x);
    border-right: 1px solid var(--rule);
    display: flex; flex-direction: column;
    justify-content: flex-end; position: relative;
  }
  .hero-main::before { top: 80px; left: var(--pad-x); width: 56px; }
  .hero-name { font-size: clamp(84px, 8vw, 108px); }

  .hero-portrait {
    border-top: none; min-height: 0;
    padding: 0; align-items: center;
  }
  .portrait-frame { max-width: 100%; width: 100%; margin: 0; }
  .portrait-caption {
    /* Stays absolutely-positioned over the frame's bottom edge. */
    padding: 18px 28px 20px;
  }
  .hero-ufg {
    margin: 0; border-top: 1px solid var(--rule);
    padding: 28px 32px 26px;
  }
  .hero-sidebar { display: flex; flex-direction: column; min-height: 0; }

  .home-section { padding: 96px var(--pad-x); }

  .how {
    display: grid; grid-template-columns: 1fr 1fr; padding: 0;
  }
  .how-left {
    padding: 96px 64px 96px var(--pad-x);
    border-right: 1px solid var(--rule);
  }
  .how-right { padding: 96px var(--pad-x) 96px 64px; margin-top: 0; }

  .homefront-strip {
    display: grid; grid-template-columns: 1fr 1fr; padding: 0;
  }
  .hf-left {
    padding: 96px 64px 96px var(--pad-x);
    border-right: 1px solid var(--rule);
    display: flex; flex-direction: column;
  }
  .hf-right { padding: 96px var(--pad-x) 96px 64px; margin-top: 0; }
  .hf-title { font-size: clamp(72px, 7vw, 88px); }

  .home-nl {
    display: grid; grid-template-columns: 1fr 400px;
    gap: 80px; align-items: center;
    padding: 112px var(--pad-x);
  }
  .home-nl .nl-desc { margin-bottom: 0; }
}

@media (min-width: 1400px) {
  /* Wider sidebar at 1400px+ to match the mockup's hero proportions. */
  .hero { grid-template-columns: 1fr 460px; }
}

@media (max-width: 640px) {
  .hf-promo-label { display: none; }
  .hf-promo-item { font-size: 10px; letter-spacing: 0.14em; }
  .hf-promo-item--ed { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hf-promo-track { animation: none; padding-left: 18px; }
  .hf-promo-dot   { animation: none; }
}
