/* ==========================================================================
   What We Do — page styles
   Layers on top of site.css. The handoff comp shipped with HQue's tokens
   (Fraunces + a blue accent overridden to gold); everything here is remapped
   onto this site's own tokens so the page matches the rest of cmedia.
   ========================================================================== */

:root{
  /* Accent. CHOSEN 2026-08-23 — warm butter yellow.
     Token is still named --gold for historical reasons; the value is not gold.
     Previous values: #F8F3C3 (paler butter), #c9a96a (original gold). */
  --gold:      #F5E8AA;
  --gold-soft: rgba(245,232,170,0.55);
  --hair:      rgba(255,255,255,0.08);  /* section rules in the comp */
}

/* This page manages its own gutters so the brand marquee can run full-bleed. */
body.page-wwd main{
  max-width: none;
  margin: 0;
  padding: 0;
}
.wrap{
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Hero ---------- */
.wwd-hero{
  position: relative;
  isolation: isolate;
  padding: 132px 0 96px;
  overflow: hidden;
}
/* Two soft radial washes, per the comp. Decorative only. */
.wwd-hero::before,
.wwd-hero::after{
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}
.wwd-hero::before{
  left: -10%; bottom: -20%;
  width: 55%; height: 70%;
  background: radial-gradient(circle, rgba(201,169,106,0.16), transparent 70%);
}
.wwd-hero::after{
  right: -10%; top: -20%;
  width: 50%; height: 60%;
  background: radial-gradient(circle, rgba(217,119,87,0.12), transparent 70%);
}
.wwd-hero h1{
  margin: 0 0 36px;
  max-width: 24ch;
  text-wrap: balance;
  font-family: var(--display);
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--gold);
}
.wwd-hero .lede{
  max-width: 640px;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--text);
}
.wwd-hero .lede + .lede{ margin-top: 18px; color: var(--muted); }

/* ---------- Brand marquee ---------- */
.wwd-brands{
  padding: 56px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
}
.wwd-brands .eyebrow{
  display: block;
  text-align: center;
  margin: 0 0 40px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.marquee{
  display: flex;
  width: max-content;
  animation: wwd-drift 88s linear infinite;
}
.marquee:hover{ animation-play-state: paused; }
.marquee-set{
  display: flex;
  align-items: center;
  gap: 88px;
  padding-right: 88px;
}
@keyframes wwd-drift{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}

/* Logos are pre-normalised to a constant optical area (white on transparent,
   2x). --h is that asset's display height in px; width follows the aspect. */
.brand-logo{
  display: block;
  height: calc(var(--h) * 1px);
  width: auto;
  opacity: .82;
  transition: opacity .18s ease;
}
.brand-logo:hover{ opacity: 1; }

/* ---------- Disciplines ---------- */
.wwd-disciplines{ padding: 110px 0; }
.wwd-disciplines-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}
/* Hero scale + gold. Deliberately still an <h2>: the page keeps a single <h1>
   per the site spec (Task 3). This is appearance, not document structure. */
.wwd-disciplines-head h2{
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--gold);
}
.wwd-disciplines-head p{
  max-width: 400px;
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}
.wwd-cols{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.wwd-feature{
  border-top: 1px solid var(--border-hi);
  padding-top: 24px;
}
.wwd-feature .num{
  display: block;
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: 60px;
  line-height: 1;
  color: var(--gold);
}
.wwd-feature h3{
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
/* Headline face (Fastelar), matching the h1/h2. Only a 400 weight exists, so
   synthesis is disabled to avoid a faux-bold. */
.wwd-feature .tag{
  margin: 0 0 20px;
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-synthesis-weight: none;
  font-size: 24px;
  line-height: 1.3;
  color: var(--gold);
  min-height: 2.7em;
}
.wwd-feature .desc{
  margin: 0 0 26px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}
.wwd-feature ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wwd-feature li{
  position: relative;
  padding-left: 22px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.wwd-feature li::before{
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  background: var(--gold);
}

/* ---------- How we work ---------- */
.wwd-how{
  border-top: 1px solid var(--hair);
  padding: 100px 0;
}
.wwd-how-grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.wwd-how h2{
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--gold);   /* whole heading in the accent */
}
.wwd-how p{
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}
/* Button styling is shared — see .cta in site.css. No page-level override. */

/* ---------- Selected work ---------- */
.wwd-work{
  border-top: 1px solid var(--hair);
  padding: 90px 0 0;
}
.wwd-work > .wrap > h2{
  margin: 0 0 var(--s-2);
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.1;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .wwd-cols{ grid-template-columns: 1fr; gap: 56px; }
  .wwd-feature .tag{ min-height: 0; }
  .wwd-how-grid{ grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px){
  .wwd-hero{ padding: 80px 0 64px; }
  .wwd-disciplines{ padding: 80px 0; }
  .wwd-how{ padding: 72px 0; }
  .marquee-set{ gap: 56px; padding-right: 56px; }
  .brand-logo{ height: calc(var(--h) * 0.78px); }
}

@media (prefers-reduced-motion: reduce){
  .marquee{
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  /* the duplicate set exists only to make the loop seamless */
  .marquee-set[aria-hidden="true"]{ display: none; }
  .marquee-set{ flex-wrap: wrap; justify-content: center; gap: 48px; padding-right: 0; }
}
