/* The People Factor — bold type concept. Her portrait and her name first, then short, full sections. */
:root {
  --bg: #F2F2EF;        /* paper */
  --ink: #111111;
  --muted: #4A4A45;
  --soft: #6E6E6E;
  --on-dark: #C8C8C2;
  --lime: #C1D841;
  --blue: #44596C;
  --piece-grey: #D4D4D4;

  --font: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-quote: clamp(1.5rem, 1rem + 1.7vw, 2.25rem);
  --step-head: clamp(2rem, 1rem + 4.2vw, 4.5rem);
  --step-display: clamp(3.5rem, 9.4vw, 9.5rem);

  --margin: clamp(1.125rem, 1.7vw, 1.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(4rem, 7vw, 6.5rem);
  --radius: 1.25rem;
  --pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, blockquote, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .quote-who :focus-visible { outline-color: var(--lime); }

/* ---------- type: one loud grotesk, five sizes ---------- */
h1, h2, h3 { font-weight: 800; }
.display { font-size: var(--step-display); font-weight: 800; line-height: 0.9; letter-spacing: -0.035em; }
.head { font-size: var(--step-head); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.lead { font-size: var(--step-lead); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.soft { color: var(--soft); }
p { max-width: 60ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { padding-inline: var(--margin); }
.section { padding-block: var(--section); }
.dark { background: var(--ink); color: #fff; }
.field { background: #fff; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem; background: var(--ink); color: #fff; font-weight: 500; border-radius: var(--pill); text-decoration: none; white-space: nowrap; transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.button-lime { background: var(--lime); color: var(--ink); }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 2px; text-decoration-color: transparent; transition: text-decoration-color 180ms ease; }
.link-plain { font-weight: 500; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--blue); }
  .button-lime:hover { background: #fff; }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { text-decoration-color: var(--lime); }
}

/* ---------- hero: portrait right, name left ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding-block: var(--margin) clamp(2rem, 6svh, 4rem); overflow: clip; }
.top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { width: 160px; }
.links { display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); font-weight: 500; }
.links a { text-decoration-line: underline; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 66vw; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 39% 30%; mix-blend-mode: lighten; }
.hero-text { position: relative; z-index: 1; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; white-space: nowrap; }
.lines [data-line] { display: block; }
.hero-text .lead { margin-top: clamp(1.25rem, 3svh, 2rem); max-width: 30ch; color: var(--on-dark); }
.hero-actions { margin-top: clamp(1.5rem, 4svh, 2.5rem); display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

/* ---------- clients ---------- */
.clients-head { padding-top: clamp(1.5rem, 3vw, 2.5rem); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; color: var(--on-dark); }
.logo-marquee { margin-top: 1.5rem; padding-bottom: clamp(2.5rem, 5vw, 4.5rem); display: flex; overflow: hidden; }
.logo-track { flex: none; display: flex; align-items: center; gap: clamp(1.25rem, 2.8vw, 2.5rem); padding-right: clamp(1.25rem, 2.8vw, 2.5rem); }
.logo-track img { width: clamp(5.5rem, 8.4vw, 7.5rem); }

/* ---------- services: six lines ---------- */
.poster { margin-top: 0.15em; }
.poster li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding-block: 1.1rem; transition: opacity 300ms ease; }
.poster li:nth-child(even) { background: #E9E9E4; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
.poster h3 { grid-column: 1 / 8; }
.poster li > div { grid-column: 8 / 13; }
.poster p { color: var(--muted); }
.poster .terms { margin-top: 0.3rem; color: var(--ink); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .poster:hover li:not(:hover) { opacity: 0.4; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.about-photo { grid-column: 1 / 5; }
.about-photo img { width: 100%; border-radius: var(--radius); }
.about-text { grid-column: 6 / 13; }
.about-text .lead { margin-top: 1.5rem; max-width: 40ch; }
.figs { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.figs .head { font-variant-numeric: tabular-nums; }
.figs p:last-child { margin-top: 0.5rem; color: var(--muted); max-width: 20ch; }

/* ---------- values ---------- */
.values { overflow: clip; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.values-text { grid-column: 1 / 7; }
.values-list { margin-top: 2rem; display: grid; gap: 0.25rem; max-width: 30rem; }
.values-list li { display: grid; grid-template-columns: 0.875rem 1fr; gap: 0.1rem 0.75rem; align-items: center; padding: 0.75rem 1rem; margin-left: -1rem; border-radius: var(--radius); transition: background-color 300ms ease; }
.values-list li.is-on { background: #fff; }
.values-list i { width: 0.875rem; height: 0.875rem; border-radius: 3px; }
.values-list strong { font-weight: 800; }
.values-list span { grid-column: 2; color: var(--muted); }
.values-stage { grid-column: 7 / 13; }
.values-puzzle { width: 100%; max-width: 34rem; margin-inline: auto; overflow: visible; }
.pz { transform-box: fill-box; transform-origin: center; stroke: var(--bg); stroke-width: 3; stroke-linejoin: round; cursor: pointer; transition: transform 500ms var(--ease-out); }
.values { --p1: var(--piece-grey); --p2: var(--blue); --p3: var(--soft); --p4: var(--lime); }
.p1 { fill: var(--p1); background: var(--p1); } .p2 { fill: var(--p2); background: var(--p2); } .p3 { fill: var(--p3); background: var(--p3); } .p4 { fill: var(--p4); background: var(--p4); }
.vz text { font: 500 12.5px var(--font); text-anchor: middle; dominant-baseline: middle; fill: #fff; stroke: none; pointer-events: none; }
.vz.p1 text, .vz.p4 text { fill: var(--ink); }
.vz.is-on { transform: translate(calc(var(--x) * 0.09), calc(var(--y) * 0.09)); }

/* ---------- client stories: name block, quote block ---------- */
.quote { display: grid; grid-template-columns: 5fr 7fr; min-height: min(64svh, 36rem); }
.quote-who { background: var(--ink); color: #fff; padding: clamp(1.5rem, 3vw, 2.5rem) var(--margin); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.voices { display: none; }
.is-live .voices { display: grid; gap: 0.5rem; max-width: 24rem; }
.voices button { font: inherit; color: inherit; border: 0; cursor: pointer; display: grid; text-align: left; padding: 0.85rem 1.25rem; background: #1F1F1F; border-radius: var(--radius); transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.voices button span:first-child { font-weight: 500; }
.voices button span:last-child { color: var(--on-dark); transition: color 180ms ease; }
.voices button:active { transform: scale(0.98); }
.voices button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.voices button[aria-pressed="true"] span:last-child { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .voices button[aria-pressed="false"]:hover { background: #2C2C2C; } }
.quote-say { background: var(--blue); color: #fff; padding: clamp(1.75rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.letter { max-width: 38rem; }
.letter .say { font-size: var(--step-quote); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; text-indent: -0.45em; padding-left: 0.45em; text-wrap: balance; }
.letter p:not(.say) { margin-top: 1.5rem; color: #EDF0F3; }
.letter footer { margin-top: 1.75rem; display: grid; }
.letter footer span:first-child { font-weight: 500; }
.letter + .letter { margin-top: 3rem; }
.is-live .letter:not(.is-on) { display: none; }
.quote-say > .link-plain { margin-top: 2rem; }

/* ---------- soundbites ---------- */
.bites-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.bites-row { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.bites-row article { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.bites-row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); }
.bites-row h3 { font-weight: 500; text-wrap: balance; }

/* ---------- contact: one word is the button ---------- */
.talk { display: flex; flex-direction: column; justify-content: space-between; min-height: 62svh; padding: var(--margin) var(--margin) 0; background: var(--lime); color: var(--ink); text-decoration: none; overflow: hidden; }
.talk-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.talk-top .lead { max-width: 30ch; }
.talk-top svg { width: clamp(2rem, 3.4vw, 3rem); flex: none; transition: transform 300ms var(--ease-out); }
.talk-word { font-size: 27vw; font-weight: 800; line-height: 0.8; letter-spacing: -0.045em; margin-left: -0.04em; white-space: nowrap; }
.talk:hover, .talk:focus-visible { background: var(--ink); color: var(--lime); }
.talk:hover svg { transform: translate(6px, -6px); }

/* ---------- footer ---------- */
.foot { padding-block: clamp(3rem, 7vw, 6rem) 1.5rem; }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; }
.foot-top > div { grid-column: 1 / 9; }
.foot-top .head { max-width: 14em; }
.foot-top .button { margin-top: 2rem; }
.foot-top > .foot-side { grid-column: 10 / 13; }
.foot-side { display: grid; gap: 1.5rem; align-content: start; }
.foot-face { width: 150px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 14%; border-radius: var(--radius); }
.foot-links { display: grid; gap: 0.6rem; color: var(--on-dark); }
.foot-mark { margin-top: clamp(3rem, 8vw, 6rem); width: 100%; }
.legal { margin-top: 1.25rem; color: var(--on-dark); max-width: 62ch; }

/* ---------- motion (content stays visible without JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js .lines [data-line] { transform: translateY(112%); animation: line 1000ms var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 120ms + 100ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .poster li[data-reveal].is-in { transition: opacity 300ms ease; transition-delay: 0s; }
  .js .values-stage[data-reveal]:not(.is-in) .pz { opacity: 0; }
  .js .hero-photo img { animation: settle 2400ms cubic-bezier(0.33, 1, 0.68, 1) both; }
  .is-live .letter.is-on { animation: swap 600ms var(--ease-out) backwards; }
  .js .values-stage.is-in .pz { animation: pz-in 1000ms var(--ease-expo) backwards; animation-delay: calc(var(--i) * 150ms + 200ms); }
  .logo-track { animation: marquee 55s linear infinite; }
  .logo-marquee:hover .logo-track, .logo-marquee.is-off .logo-track { animation-play-state: paused; }
  /* scroll-linked, where the browser supports it: the statement parts as the page moves, the portrait settles, the word grows */
  @supports (animation-timeline: scroll()) {
    .hero-photo img { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    .talk-word { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; transform-origin: 0 100%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { padding-inline: var(--margin); }
  .logo-track { flex: 1; flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .logo-track[aria-hidden] { display: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line { to { transform: none; } }
@keyframes pz-in { from { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes swap { from { opacity: 0; transform: translateY(16px); } }
@keyframes drift { to { transform: translateY(7%) scale(1.06); } }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes grow { from { transform: scale(0.86); } to { transform: none; } }

/* ---------- tablet and phone: the portrait sits above the name ---------- */
@media (max-width: 62.49em) {
  :root { --step-display: 17vw; }
  .hero { min-height: 0; justify-content: flex-start; padding-bottom: 2.5rem; }
  .hero-photo { position: static; width: 100%; height: 46svh; margin-top: 1rem; }
  .hero-photo img { object-position: 45% 30%; }
  .hero-text { margin-top: 1.5rem; }
  .hero-text .lead { max-width: 40ch; }
  .poster h3, .poster li > div { grid-column: 1 / -1; }
  .poster li > div { margin-top: 0.5rem; }
  .poster li { padding-block: 1.75rem; }
  .about-photo { grid-column: 1 / 7; }
  .about-text { grid-column: 1 / -1; margin-top: 2.5rem; }
  .values-text, .values-stage { grid-column: 1 / -1; }
  .values-stage { margin-top: 2rem; }
  .quote { grid-template-columns: 1fr; min-height: 0; }
  .bites-row { grid-template-columns: 1fr; }
  .bites-row article { display: grid; grid-template-columns: clamp(7rem, 32vw, 14rem) 1fr; column-gap: var(--gutter); row-gap: 0.4rem; align-items: start; }
  .bites-row img { grid-row: 1 / 3; }
  .foot-top > div, .foot-top > .foot-side { grid-column: 1 / -1; }
  .foot-side { grid-template-columns: auto 1fr; align-items: end; }
}
@media (max-width: 47.99em) {
  .links { gap: 0.9rem; }
  .links a:nth-child(3) { display: none; }
  .brand img { width: 132px; }
  .hero-actions .button { width: 100%; }
  .about-photo { grid-column: 1 / -1; }
  .figs { grid-template-columns: 1fr 1fr; }
  .vz text { font-size: 13.5px; }
  .talk { min-height: 46svh; }
}
