/* ============================================================================
   MARKED-UP — portfolio stylesheet
   Inherits brand/visual.md: charcoal base, coral = problem, mint = solution.
   Hand fonts carry personality. Nunito carries every word that must be read.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  /* Neutrals — from brand/visual.md, plus two deeper floors for web depth */
  --floor:        #16191C;   /* page floor (web-only extension of the ramp) */
  --floor-2:      #1C2023;   /* alternating band                            */
  --slate:        #2F3438;   /* deep slate — panels                         */
  --charcoal:     #3E4348;   /* charcoal — raised panels                    */
  --gray-med:     #575C61;   /* facets, borders                             */
  --gray-light:   #C8CCD1;   /* secondary type                              */
  --off-white:    #F2F3F4;   /* body type                                   */
  --white:        #FFFFFF;   /* headlines                                   */
  --subhead:      #D7DBE0;

  /* Warm — the PROBLEM side. Coral is never body text. */
  --peach:        #F4D6C6;
  --blush:        #F0B7A0;
  --coral:        #E8775E;
  --brown:        #4B3A33;

  /* Cool — the SOLUTION side. */
  --mint-pale:    #D7F1EB;
  --mint:         #57C3B3;
  --teal:         #2D7E73;
  --navy:         #2B2F3A;

  /* Type */
  --display: 'Permanent Marker', cursive;
  --hand:    'Caveat', cursive;
  --note:    'Kalam', cursive;
  --body:    'Nunito', -apple-system, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 12vw, 9.5rem);
  --maxw: 1180px;
  --radius: 18px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Film grain — inline SVG turbulence, no external asset to load */
  --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--floor);
  color: var(--off-white);
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--coral); color: var(--white); }

/* ------------------------------------------------- atmosphere: mesh+grain */
/* Depth, not a flat fill. Two very low-opacity accent pools + film grain.  */
.mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 12% -5%,  rgba(232,119,94,0.16), transparent 60%),
    radial-gradient(52rem 38rem at 92% 12%,  rgba(87,195,179,0.13), transparent 62%),
    radial-gradient(70rem 50rem at 50% 108%, rgba(45,126,115,0.14), transparent 60%);
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none;
  opacity: 0.32; mix-blend-mode: overlay;
  background-image: var(--grain-url);
  background-size: 200px 200px;
  animation: grain-drift 6s steps(4) infinite;
}
@keyframes grain-drift {
  0%,100% { transform: translate(0,0); }
  25%     { transform: translate(-3%, 2%); }
  50%     { transform: translate(2%, -3%); }
  75%     { transform: translate(-2%, -2%); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* Everything real sits above the atmosphere */
.shell { position: relative; z-index: 2; }

/* ------------------------------------------------------- scroll progress */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--coral), var(--blush) 45%, var(--mint));
  z-index: 60;
}

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(22,25,28,0.62);
  border-bottom: 1px solid rgba(200,204,209,0.08);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.nav[data-scrolled="true"] {
  background: rgba(22,25,28,0.88);
  border-bottom-color: rgba(200,204,209,0.14);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--body); font-weight: 900;
  letter-spacing: -0.01em; font-size: 1.02rem; color: var(--white);
}
.nav-badge {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  font-size: 0.78rem; font-weight: 900; letter-spacing: 0.02em;
  color: var(--floor);
  background: linear-gradient(140deg, var(--blush), var(--coral) 45%, var(--mint));
  box-shadow: 0 6px 18px rgba(232,119,94,0.28);
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav-links a {
  font-size: 0.9rem; font-weight: 700; color: var(--gray-light);
  position: relative; padding: 0.25rem 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-links .nav-cta {
  padding: 0.55rem 1.1rem; border-radius: 999px;
  color: var(--floor); background: var(--mint-pale);
  font-weight: 800;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(215,241,235,0.22);
}
@media (max-width: 720px) { .nav-links .nav-hide { display: none; } }

/* --------------------------------------------------------------- layout */
.wrap { width: min(100% - (var(--gutter) * 2), var(--maxw)); margin-inline: auto; }
section { padding-block: var(--section-y); position: relative; }
.band { background: var(--floor-2); }
.band::before, .band::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,204,209,0.14), transparent);
}
.band::before { top: 0; } .band::after { bottom: 0; }

/* Section heading — ghost numeral in Nunito 900 (never a display font on
   numbers; that rule came out of a real miss). */
.sec-head { position: relative; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.sec-num {
  position: absolute; right: -0.5rem; top: -3.2rem;
  font-family: var(--body); font-weight: 900;
  font-size: clamp(5rem, 14vw, 11rem); line-height: 1;
  color: rgba(200,204,209,0.05);
  pointer-events: none; user-select: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; font-weight: 900;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blush); margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--coral), transparent);
}
.sec-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.08; color: var(--white);
  letter-spacing: 0.005em; max-width: 18ch;
}
.sec-sub {
  margin-top: 1rem; max-width: 56ch;
  color: var(--gray-light); font-size: 1.02rem;
}

/* ------------------------------------------------------------------ hero */
.hero {
  min-height: min(100svh, 900px);
  display: flex; align-items: center;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em;
  color: var(--mint-pale);
  background: rgba(87,195,179,0.10);
  border: 1px solid rgba(87,195,179,0.32);
  margin-bottom: 1.6rem;
}
.status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(87,195,179,0.65);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(87,195,179,0); }
  100% { box-shadow: 0 0 0 0 rgba(87,195,179,0); }
}

.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 7.6vw, 5.6rem);
  line-height: 1.04; color: var(--white);
  letter-spacing: 0.004em;
}
/* The marked word — hand-drawn underline that draws itself in. */
.mark { position: relative; display: inline-block; white-space: nowrap; color: var(--peach); }
.mark svg {
  position: absolute; left: -2%; bottom: -0.22em; width: 104%; height: 0.34em;
  overflow: visible;
}
.mark svg path {
  fill: none; stroke: var(--coral); stroke-width: 7;
  stroke-linecap: round;
  filter: url(#rough);
  stroke-dasharray: 460; stroke-dashoffset: 460;
  animation: draw 1.1s var(--ease-out) 0.85s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mark svg path { animation: none; stroke-dashoffset: 0; }
}

/* Margin note, the way a strategist marks up an ad */
.annot {
  position: relative; display: inline-flex; align-items: flex-start; gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--hand); font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.25; color: var(--mint);
  transform: rotate(-2.2deg);
}
.annot svg { width: 34px; height: 30px; flex: none; margin-top: -6px; color: var(--mint); }

.hero-intro {
  margin-top: 1.9rem; max-width: 52ch;
  color: var(--subhead); font-size: clamp(1.02rem, 1vw + 0.8rem, 1.18rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  font-weight: 800; font-size: 0.95rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  color: var(--floor);
  background: linear-gradient(135deg, var(--peach), var(--coral) 70%);
  box-shadow: 0 10px 30px rgba(232,119,94,0.30);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(232,119,94,0.42); }
.btn-ghost {
  color: var(--off-white);
  border: 1px solid rgba(200,204,209,0.24);
  background: rgba(200,204,209,0.04);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(87,195,179,0.55);
  background: rgba(87,195,179,0.09);
}

/* Hero side card — the legend. Explains the colour system, which doubles as
   a demonstration of how the strategist thinks. */
.legend-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(62,67,72,0.92), rgba(47,52,56,0.78));
  border: 1px solid rgba(200,204,209,0.11);
  box-shadow: 0 26px 60px rgba(0,0,0,0.42);
  transform: rotate(1.3deg);
}
.legend-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(240,183,160,0.5), transparent 42%, rgba(87,195,179,0.42));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.legend-title {
  font-family: var(--note); font-size: 1.15rem; color: var(--peach);
  margin-bottom: 1.1rem;
}
.legend-row {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 0.72rem 0;
  border-top: 1px solid rgba(200,204,209,0.08);
}
.legend-row:first-of-type { border-top: 0; }
.legend-swatch { width: 16px; height: 16px; border-radius: 5px; flex: none; margin-top: 0.28rem; }
.legend-swatch.problem  { background: linear-gradient(140deg, var(--blush), var(--coral)); }
.legend-swatch.solution { background: linear-gradient(140deg, var(--mint-pale), var(--mint)); }
.legend-swatch.neutral  { background: linear-gradient(140deg, var(--gray-light), var(--gray-med)); }
.legend-row b { display: block; color: var(--white); font-weight: 800; font-size: 0.94rem; }
.legend-row span { font-size: 0.88rem; color: var(--gray-light); line-height: 1.5; }

/* Facts strip */
.facts {
  display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 3rem);
  margin-top: 2.6rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(200,204,209,0.10);
}
.fact-label {
  font-size: 0.7rem; font-weight: 900; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gray-light); margin-bottom: 0.3rem;
}
.fact-value { font-weight: 800; color: var(--white); font-size: 0.98rem; }

/* ----------------------------------------------------------- logo strip */
.logos {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  padding-block: clamp(2rem, 5vw, 3rem);
}
.logo-item {
  font-weight: 800; font-size: 1.05rem; color: var(--gray-med);
  letter-spacing: 0.01em;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.logo-item:hover { color: var(--gray-light); transform: translateY(-2px); }
.logo-item img { height: 26px; width: auto; opacity: 0.55; filter: grayscale(1); }

/* ------------------------------------------------------------ work grid */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.4rem; }
.filter {
  padding: 0.5rem 1.05rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 800; color: var(--gray-light);
  border: 1px solid rgba(200,204,209,0.16);
  transition: all .28s var(--ease);
}
.filter:hover { color: var(--white); border-color: rgba(200,204,209,0.34); }
.filter[aria-pressed="true"] {
  color: var(--floor); background: var(--peach);
  border-color: var(--peach);
}

.work-grid {
  display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem);
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}
.work-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(165deg, rgba(62,67,72,0.72), rgba(34,38,42,0.9));
  border: 1px solid rgba(200,204,209,0.10);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              border-color .45s var(--ease);
}
.work-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 55px rgba(0,0,0,0.5);
  border-color: rgba(200,204,209,0.2);
}
.work-card[data-tone="problem"]:hover  { border-color: rgba(232,119,94,0.5); }
.work-card[data-tone="solution"]:hover { border-color: rgba(87,195,179,0.5); }

/* Thumb — real image, or a brand-gradient tile. Never a fake screenshot.
   4:5 by default because that is the shape Meta creative actually ships in.
   object-position: top keeps the HOOK visible when a tall asset is cropped —
   the top of an ad is the part that has to earn the scroll. */
.work-thumb {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--slate);
  display: grid; place-items: center;
}
.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform .7s var(--ease);
}
/* Landscape or full-frame assets that must not be cropped at all */
.work-thumb[data-fit="contain"] { aspect-ratio: 16 / 10; background: var(--floor-2); }
.work-thumb[data-fit="contain"] img { object-fit: contain; object-position: center; }
.work-card:hover .work-thumb img { transform: scale(1.06); }
/* Generated tiles are shorter than photo tiles. A doc has no image to show,
   so the title and blurb should carry the card — not a tall empty gradient. */
.work-thumb.gen {
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--charcoal), var(--slate));
}
.work-thumb.gen::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(24rem 14rem at 18% 8%, var(--tone-glow), transparent 65%),
    radial-gradient(20rem 12rem at 88% 96%, rgba(87,195,179,0.16), transparent 62%);
}
.work-thumb .gen-num {
  position: relative;
  font-family: var(--body); font-weight: 900; font-size: 4.4rem;
  color: rgba(242,243,244,0.10); line-height: 1;
}
.work-status {
  position: absolute; left: 0.9rem; top: 0.9rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.32rem 0.7rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 900; letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mint-pale);
  background: rgba(22,25,28,0.78);
  border: 1px solid rgba(87,195,179,0.4);
  backdrop-filter: blur(6px);
}

.work-body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
/* Small uppercase text sits at --gray-light, not --gray-med. Medium gray on a
   dark panel fails the contrast limit in brand/visual.md at these sizes. */
.work-meta {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-light); margin-bottom: 0.7rem;
}
.work-meta .sep { opacity: 0.45; }
.work-card h3 {
  font-family: var(--body); font-weight: 900;
  font-size: 1.24rem; line-height: 1.28; color: var(--white);
  letter-spacing: -0.012em; margin-bottom: 0.6rem;
}
.work-blurb { font-size: 0.94rem; color: var(--gray-light); line-height: 1.62; }
.work-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.05rem; }
/* Outlined chips — the pale tints went muddy on charcoal, so chips are
   translucent fill + accent border + light accent text. */
.chip {
  padding: 0.28rem 0.68rem; border-radius: 999px;
  font-size: 0.73rem; font-weight: 800; letter-spacing: 0.01em;
}
.chip.problem  { color: var(--blush);     background: rgba(232,119,94,0.11); border: 1px solid rgba(232,119,94,0.38); }
.chip.solution { color: var(--mint-pale); background: rgba(87,195,179,0.11); border: 1px solid rgba(87,195,179,0.38); }
.chip.neutral  { color: var(--gray-light);background: rgba(200,204,209,0.07); border: 1px solid rgba(200,204,209,0.2); }

.work-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: auto; padding-top: 1.3rem;
  font-size: 0.9rem; font-weight: 900; color: var(--peach);
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.work-link svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.work-card:hover .work-link { gap: 0.8rem; color: var(--white); }
.work-card:hover .work-link svg { transform: translate(3px,-3px); }
.work-link.pending { color: var(--gray-light); opacity: 0.75; cursor: default; }
.work-card:hover .work-link.pending { color: var(--gray-light); gap: 0.5rem; }
/* Whole card is the click target when a doc link exists */
.work-card a.stretch::after { content: ''; position: absolute; inset: 0; z-index: 3; }

/* ------------------------------------------------------------- process */
.process { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  position: relative; padding: 1.7rem 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(62,67,72,0.34);
  border: 1px solid rgba(200,204,209,0.09);
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.step:hover { transform: translateY(-5px); background: rgba(62,67,72,0.55); }
.step-num {
  font-family: var(--body); font-weight: 900; font-size: 0.78rem;
  letter-spacing: 0.14em; margin-bottom: 0.9rem;
}
.step[data-tone="problem"]  .step-num { color: var(--coral); }
.step[data-tone="solution"] .step-num { color: var(--mint); }
.step[data-tone="neutral"]  .step-num { color: var(--gray-med); }
.step::before {
  content: ''; position: absolute; left: 1.4rem; top: 0; width: 34px; height: 3px;
  border-radius: 0 0 3px 3px;
}
.step[data-tone="problem"]::before  { background: var(--coral); }
.step[data-tone="solution"]::before { background: var(--mint); }
.step[data-tone="neutral"]::before  { background: var(--gray-med); }
.step h3 {
  font-family: var(--body); font-weight: 900; font-size: 1.1rem;
  color: var(--white); margin-bottom: 0.55rem; letter-spacing: -0.01em;
}
.step p { font-size: 0.92rem; color: var(--gray-light); line-height: 1.62; }

/* -------------------------------------------------------- testimonials */
/* align-items:start so a four-word quote renders as a short, punchy card
   instead of being stretched to match a paragraph and leaving a hole. */
.t-grid {
  display: grid; gap: clamp(1.1rem, 2.4vw, 1.7rem);
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  align-items: start;
}
.t-card {
  position: relative; padding: clamp(1.6rem, 3vw, 2.1rem) clamp(1.4rem, 2.6vw, 1.9rem);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(62,67,72,0.66), rgba(34,38,42,0.86));
  border: 1px solid rgba(200,204,209,0.10);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.t-card:hover {
  transform: translateY(-5px);
  border-color: rgba(87,195,179,0.34);
  box-shadow: 0 22px 48px rgba(0,0,0,0.42);
}
.t-quotemark {
  font-family: var(--hand); font-size: 4.5rem; line-height: 0.6;
  color: rgba(87,195,179,0.34); display: block; margin-bottom: 0.5rem;
}
.t-quote {
  font-size: 1.02rem; line-height: 1.66; color: var(--off-white);
  margin-bottom: 1.5rem;
}
/* A four-word quote from the right person hits harder than a paragraph from
   the wrong one. Short quotes get set large so they read as a verdict, not
   as a card that ran out of content. */
.t-quote.short {
  font-family: var(--body); font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25;
  letter-spacing: -0.02em; color: var(--white);
}
.t-quote.short + .t-person { margin-top: 0.4rem; }
/* Marker highlight on the phrase that matters */
.t-quote mark {
  background: linear-gradient(180deg, transparent 58%, rgba(232,119,94,0.42) 58%);
  color: inherit; padding: 0 0.12em; border-radius: 2px;
}
/* flex-start, not center — attribution blocks vary from two lines to four
   once context and a receipt link are present, and a centred avatar floats. */
.t-person { display: flex; align-items: flex-start; gap: 0.95rem; }
.t-photo {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--charcoal), var(--charcoal)) padding-box,
    linear-gradient(140deg, var(--coral), var(--mint)) border-box;
}
.t-photo.initials {
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.02rem; color: var(--white);
  letter-spacing: 0.01em;
}
.t-name { display: block; font-weight: 900; color: var(--white); font-size: 0.98rem; line-height: 1.35; }
.t-role { display: block; font-size: 0.85rem; color: var(--gray-light); line-height: 1.4; }
/* Small honesty line — e.g. what the quote was actually about. Caveat, so it
   reads as a margin note rather than competing with the attribution. */
.t-context {
  display: block; margin-top: 0.2rem;
  font-family: var(--hand); font-size: 0.95rem; line-height: 1.25;
  color: var(--mint);
}
/* The receipt link. Small, but it is the strongest thing on the card — a
   claim a prospect can go and check for themselves. */
.t-proof {
  display: inline-flex; align-items: center; gap: 0.32rem;
  margin-top: 0.4rem;
  font-size: 0.8rem; font-weight: 900; color: var(--peach);
  border-bottom: 1px solid rgba(244,214,198,0.34);
  padding-bottom: 1px;
  transition: color .28s var(--ease), border-color .28s var(--ease), gap .28s var(--ease);
}
.t-proof svg { width: 12px; height: 12px; }
.t-proof:hover { color: var(--white); border-color: var(--white); gap: 0.5rem; }

/* ------------------------------------------------------- empty slots */
/* Honest empty state. Reads as intentionally blank, never as broken.      */
.slot {
  display: grid; place-items: center; gap: 0.5rem; text-align: center;
  min-height: 210px; padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 2px dashed rgba(200,204,209,0.18);
  background: rgba(200,204,209,0.02);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.slot:hover { border-color: rgba(87,195,179,0.36); background: rgba(87,195,179,0.03); }
.slot .slot-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(200,204,209,0.06); color: var(--gray-med);
}
.slot .slot-icon svg { width: 20px; height: 20px; }
.slot b { font-weight: 900; color: var(--gray-light); font-size: 0.95rem; }
.slot span { font-family: var(--note); font-size: 0.95rem; color: var(--gray-med); max-width: 34ch; line-height: 1.5; }

/* ------------------------------------------------------------- contact */
.contact-card {
  position: relative; overflow: hidden;
  padding: clamp(2.2rem, 6vw, 4.2rem);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(150deg, rgba(62,67,72,0.9), rgba(43,47,58,0.86));
  border: 1px solid rgba(200,204,209,0.12);
  box-shadow: 0 30px 70px rgba(0,0,0,0.44);
  text-align: center;
}
.contact-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(30rem 18rem at 8% 0%,  rgba(232,119,94,0.20), transparent 62%),
    radial-gradient(30rem 20rem at 96% 100%, rgba(87,195,179,0.20), transparent 62%);
}
.contact-card > * { position: relative; }
.contact-card h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.1;
  color: var(--white); margin-bottom: 1rem;
}
.contact-card p { color: var(--subhead); max-width: 46ch; margin: 0 auto 2.1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* -------------------------------------------------------------- footer */
footer {
  padding: 2.4rem var(--gutter) 3rem;
  border-top: 1px solid rgba(200,204,209,0.09);
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: 0.86rem; color: var(--gray-med);
}
footer .sig { font-family: var(--hand); font-size: 1.15rem; color: var(--gray-light); }

/* ------------------------------------------------------ scroll reveals */
/* Reveals are scoped to .js — set by the script on boot. If JS never runs,
   never loads, or the observer fails, content renders fully visible instead
   of leaving a prospect staring at a blank page. Fail visible, never hidden. */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hero load-in stagger.
   Scoped to .js for the same reason as .reveal — the hero is the one section
   that absolutely cannot depend on an animation completing. If JS is off, or
   an in-app webview (LinkedIn, Instagram) never runs the animation, the hero
   renders normally instead of showing a blank first screen. */
.js .hero .lift { opacity: 0; transform: translateY(20px); animation: lift .85s var(--ease-out) forwards; }
.hero .lift:nth-child(1) { animation-delay: .05s; }
.hero .lift:nth-child(2) { animation-delay: .16s; }
.hero .lift:nth-child(3) { animation-delay: .27s; }
.hero .lift:nth-child(4) { animation-delay: .38s; }
.hero .lift:nth-child(5) { animation-delay: .49s; }
.hero .lift:nth-child(6) { animation-delay: .60s; }
@keyframes lift { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero .lift { opacity: 1; transform: none; animation: none; }
  .js .mark svg path { stroke-dashoffset: 0; }
}

/* Hard backstop, set by JS once the intro window has passed. Whatever
   happened to the animations, everything above the fold is now visible. */
.anim-done .hero .lift { opacity: 1 !important; transform: none !important; }
.anim-done .mark svg path { stroke-dashoffset: 0 !important; }

/* --------------------------------------------------------- focus ring */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------- mobile */
@media (max-width: 620px) {
  .legend-card { transform: none; }
  .sec-num { top: -2rem; font-size: 5.5rem; }
  .hero { min-height: auto; }
}
