/* ==========================================================================
   Lava New Media, 2026 design: What We Do (/what-we-do/)

   Sections in the order of design/what-we-do/WHAT-WE-DO.md: hero, the
   situations, the work, the red seam, how a project goes, questions, the
   close. Grounds: ink, white, charcoal, red, ink, white, ink.
   Tokens, fonts, masthead, buttons, links, eyebrows, the device frame and
   the footer are lava.css.

   The staged-object, reveal and close-actions rules under "shared" repeat
   work.css's (which repeat case-study.css's and home.css's) exactly. They
   belong in lava.css, once, when that is allowed.
   ========================================================================== */

/* --------------------------------------------------------------- shared -- */
/* A screenshot on a dark ground: rounded rectangle, the hairline edge and
   nothing else (SPEC.md section 1). */
.shot {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--r-object);
  border: 1px solid var(--edge-dark);
  background: var(--near-black);
}
.shot img { width: 100%; height: auto; object-fit: cover; object-position: top; }

/* Button plus text link; stacked and full width on the phone. */
.actions { display: flex; align-items: center; gap: 28px; margin-top: 8px; }
@media (max-width: 767px) {
  .actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 4px; }
  .actions .link { text-align: center; padding: 8px; }
}

/* Reveals, armed only once lava.js adds .js-anim: fade from 0.001 and rise
   16px when in view, once. */
.js-anim .reveal {
  opacity: 0.001; transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.js-anim .reveal.is-visible { opacity: 1; transform: none; }

/* Eyebrows: red rule and label on white; a grey label under the gold rule
   on the darks. */
.eyebrow--red::before { background: var(--red); }
.eyebrow--red .eyebrow__label { color: var(--red); }
.wwd-work .eyebrow__label, .wwd-process .eyebrow__label { color: var(--gray-3); }

/* Held phrases ({...} in the copy, cs_text()): whole on one line from 768. */
@media (min-width: 768px) { .cs-keep { display: inline-block; } }
.cs-hero__red { color: var(--red); }

/* The section heading, Raleway 500 34. */
.wwd-h2 { font: 500 34px/1.25 var(--display); letter-spacing: -0.5px; }
.wwd-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.wwd-label { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 767px) {
  .wwd-h2 { font-size: 28px; line-height: 1.22; }
  .wwd-head, .wwd-label { gap: 16px; }
}

/* The label column (440 at 1440) beside the list, 64 apart. Stacked
   below 1024. */
.wwd-split { display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 768fr); column-gap: 64px; align-items: start; }
@media (max-width: 1023px) {
  .wwd-split { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .wwd-label { max-width: 34em; }
}
@media (max-width: 767px) { .wwd-split { row-gap: 24px; } }

/* ----------------------------------------------------------------- hero -- */
/* Ink. The copy at the left; the object group off the right edge, the one
   bleed on the page: the MBA desktop (880 at 1440) with the MyMassRequest
   card picker on a device (230) in front of it. From the board at 1440:
   the group's box 1040 wide, its right edge 300px past the page's, its top
   190 below the page's (the 76px header is above the hero, --hdr). Between
   1280 and 1440 the hero scales with the page (--u is one board px); above
   1440 it holds its 1440 sizes, anchored to the right edge. The hero is as
   tall as the group needs (--hero-min): the phone's bottom plus 105px. */
.wwd-hero { background: var(--near-black); color: var(--white); container-type: inline-size; overflow: clip; --hdr: 76px; }
.wwd-hero__in { --u: calc(min(100cqw, 1440px) / 1440); position: relative; }
.wwd-hero__text { position: relative; z-index: 2; }
.wwd-hero__eyebrow { font: 600 12px/1.25 var(--body); letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.wwd-hero h1 { margin-top: 26px; font: 700 76px/1.02 var(--display); letter-spacing: -2.2px; }
.wwd-hero__sub { margin-top: 26px; max-width: 540px; font: 400 19px/1.6 var(--body); color: var(--gray-4); }

/* The stage: each object at its board position (--x, --y, --w in board px
   of the stage's box, --box wide), scaled with the box; on the phone the
   342 stage's own positions. The phone sits in front. */
.wwd-hero__obj { container-type: inline-size; }
.wwd-stage { --U: calc(100cqw / var(--box)); position: relative; height: var(--h); }
.wwd-obj {
  position: absolute; display: block;
  left: calc(var(--x) * var(--U));
  top: calc(var(--y) * var(--U));
  width: calc(var(--w) * var(--U));
}

@media (min-width: 1280px) {
  .wwd-hero__in { min-height: var(--hero-min); padding: 160px 0 105px; }
  .wwd-hero__text > * { max-width: calc(600 * var(--u)); }
  .wwd-hero__text > .wwd-hero__sub { max-width: calc(540 * var(--u)); }
  .wwd-hero h1 { font-size: calc(76 * var(--u)); letter-spacing: calc(-2.2 * var(--u)); }
  .wwd-hero__obj {
    position: absolute; z-index: 1;
    top: calc(var(--top) * var(--u) - var(--hdr));
    right: calc(var(--right) * var(--u));
    width: calc(var(--bw) * var(--u));
  }
}
@media (min-width: 1280px) and (max-width: 1439px) { .wwd-hero__sub { font-size: 18px; } }
/* 768 to 1279: the copy, then the group under it inside the column, whole
   (nothing bleeds): the MBA object across the column, the phone in front
   at its board position, so the box is the MBA's 880. */
@media (max-width: 1279px) {
  .wwd-hero__in { padding: 104px 0 112px; }
  .wwd-hero h1 { max-width: 11em; font-size: 64px; letter-spacing: -1.8px; }
  .wwd-hero__sub { max-width: 540px; }
  .wwd-hero__obj { margin: 64px var(--margin) 0; }
  .wwd-stage { --box: 880 !important; }
}
@media (max-width: 1023px) { .wwd-hero h1 { font-size: 60px; } }
/* The phone, as the 390 board: the MBA object full width, the phone (140)
   centred over its bottom edge. */
@media (max-width: 767px) {
  .wwd-hero__in { padding: 64px 0 56px; }
  .wwd-hero__eyebrow { font-size: 11px; }
  .wwd-hero h1 { margin-top: 18px; font-size: 44px; line-height: 1.04; letter-spacing: -1.4px; }
  .wwd-hero__sub { margin-top: 18px; font-size: 16px; }
  .wwd-hero__obj { margin-top: 40px; }
  .wwd-stage { --U: calc(100cqw / var(--pbox)); height: var(--hp); }
  .wwd-obj { left: calc(var(--px) * var(--U)); top: calc(var(--py) * var(--U)); width: calc(var(--pw) * var(--U)); }
}

/* ----------------------------------------------------------- situations -- */
/* White. Six sentences on hairline rows, then the one link under them.
   From 1024 up each sentence's measure is capped at 640px so every one
   breaks to two lines; the hairlines keep the column's full width. */
.wwd-situations { padding: 130px 0; }
.wwd-situations .wwd-h2 { color: var(--ink); }
.wwd-sits li {
  padding: 28px 0; border-top: 1px solid var(--hairline-light);
  font: 500 24px/1.25 var(--display); letter-spacing: -0.3px; color: var(--ink);
}
.wwd-sits__text { display: block; text-wrap: balance; }
@media (min-width: 1024px) { .wwd-sits__text { max-width: 640px; } }
.wwd-sits__more { padding-top: 28px; border-top: 1px solid var(--hairline-light); font-size: 15px; }
@media (max-width: 1023px) { .wwd-situations { padding: 104px 0; } }
@media (max-width: 767px) {
  .wwd-situations { padding: 64px 0 56px; }
  .wwd-sits li { padding: 20px 0; font-size: 20px; letter-spacing: 0; }
  .wwd-sits__more { padding-top: 20px; }
}

/* ------------------------------------------------------------------ work -- */
/* Charcoal. Seven entries in two columns on #2A2A2E hairlines; each row's
   rules line up across the columns. Stacked on the phone. */
.wwd-work { background: var(--charcoal); color: var(--white); padding: 130px 0 94px; }
.wwd-entries { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.wwd-entry { display: flex; flex-direction: column; gap: 12px; padding: 32px 0 36px; border-top: 1px solid #2A2A2E; }
.wwd-entry__title { font: 600 24px/1.25 var(--display); color: var(--white); }
.wwd-entry__body { font: 400 16px/1.6 var(--body); color: var(--gray-4); }
@media (max-width: 1023px) { .wwd-work { padding: 104px 0 72px; } }
@media (max-width: 767px) {
  .wwd-work { padding: 64px 0 56px; }
  .wwd-entries { margin-top: 24px; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid #2A2A2E; }
  .wwd-entry { gap: 8px; padding: 22px 0; }
  .wwd-entry__title { font-size: 20px; }
  .wwd-entry__body { font-size: 15px; line-height: 1.55; }
}

/* ------------------------------------------------------------- red seam -- */
/* --lava-red-band. The line in a 560 column, the two paragraphs beside it. */
.wwd-band { background: var(--lava-red-band); color: var(--white); padding: 120px 0 128px; }
.wwd-band__grid { display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 648fr); column-gap: 64px; align-items: start; }
.wwd-band__heading { font: 700 64px/1.08 var(--display); letter-spacing: -1.8px; }
.wwd-band__body { display: flex; flex-direction: column; gap: 20px; padding-top: 10px; font: 400 18px/1.65 var(--body); }
@media (max-width: 1023px) {
  .wwd-band { padding: 96px 0 104px; }
  .wwd-band__grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .wwd-band__heading { max-width: 10em; font-size: 56px; }
  .wwd-band__body { max-width: 40em; padding-top: 0; }
}
@media (max-width: 767px) {
  .wwd-band { padding: 64px 0; }
  .wwd-band__grid { row-gap: 18px; }
  .wwd-band__heading { font-size: 40px; letter-spacing: -1px; }
  .wwd-band__body { gap: 18px; font-size: 16px; line-height: 1.6; }
}

/* -------------------------------------------------------------- process -- */
/* Ink. The label column with the partners block under it; the six steps on
   #242426 hairlines beside them, each with its gold numeral. On the phone:
   the label, the steps, then the partners. */
.wwd-process { background: var(--near-black); color: var(--white); padding: 130px 0; }
.wwd-split--process { grid-template-rows: auto 1fr; }
.wwd-split--process .wwd-label { grid-column: 1; grid-row: 1; }
.wwd-partners { grid-column: 1; grid-row: 2; margin-top: 54px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.wwd-steps { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--hairline-dark); }
.wwd-step { display: flex; align-items: flex-start; gap: 24px; padding: 28px 0; border-top: 1px solid var(--hairline-dark); }
.wwd-step__num { flex: 0 0 64px; font: 600 44px/1 var(--display); letter-spacing: -1px; color: var(--gold); }
.wwd-step__text { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.wwd-step__title { font: 600 22px/1.25 var(--display); color: var(--white); }
.wwd-step__body, .wwd-partners__body { font: 400 16px/1.6 var(--body); color: var(--gray-4); }
.wwd-partners__heading { font: 600 24px/1.25 var(--display); color: var(--white); }
.wwd-partners .link { font-size: 15px; }
@media (max-width: 1023px) {
  .wwd-process { padding: 104px 0; }
  .wwd-split--process { grid-template-rows: none; }
  .wwd-split--process .wwd-label, .wwd-steps, .wwd-partners { grid-column: 1; grid-row: auto; }
  .wwd-partners { margin-top: 8px; max-width: 34em; }
}
@media (max-width: 767px) {
  .wwd-process { padding: 64px 0 56px; }
  .wwd-step { gap: 18px; padding: 20px 0; }
  .wwd-step__num { flex-basis: 44px; font-size: 32px; letter-spacing: -0.5px; }
  .wwd-step__text { gap: 6px; padding-top: 4px; }
  .wwd-step__title { font-size: 20px; }
  .wwd-step__body, .wwd-partners__body { font-size: 15px; line-height: 1.55; }
  .wwd-partners { margin-top: 16px; gap: 10px; }
  .wwd-partners__heading { font-size: 22px; }
}

/* ------------------------------------------------------------ questions -- */
/* White. Two columns of eight on #E6E6E6 hairlines, as an accordion: the
   question, and the red arrowhead at the right, ▸ closed and ▾ open (the
   only affordance). Without the script every answer shows. The whole row
   is the control: on hover (pointers that hover, so a tap leaves no stuck
   state) and on focus-visible the question turns red and a closed row's ▸
   moves 4px right; an open row keeps ▾ and the red question. No underline:
   that stays reserved for links. */
.wwd-faq { padding: 130px 0; }
.wwd-faq .wwd-h2 { color: var(--ink); }
.wwd-faq__cols { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; align-items: start; }
.wwd-faq__col { border-bottom: 1px solid var(--hairline-light); }
.faq { border-top: 1px solid var(--hairline-light); }
.faq__q { font: inherit; }
.faq__toggle {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  width: 100%; min-height: 44px; padding: 20px 0; border: 0; background: none; cursor: pointer;
  text-align: left; color: var(--ink); text-decoration: none;
}
.faq__text { font: 600 20px/1.3 var(--display); text-wrap: balance; transition: color 150ms var(--ease); }
.faq__glyph { flex-shrink: 0; font: 400 14px/1 var(--body); color: var(--red); transition: transform 150ms var(--ease); }
.faq__glyph::before { content: "\25B8"; }
.faq__toggle[aria-expanded="true"] .faq__glyph::before { content: "\25BE"; }
.faq__toggle[aria-expanded="true"] .faq__text,
.faq__toggle:focus-visible .faq__text { color: var(--red); }
.faq__toggle[aria-expanded="false"]:focus-visible .faq__glyph { transform: translateX(4px); }
@media (hover: hover) {
  .faq__toggle:hover .faq__text { color: var(--red); }
  .faq__toggle[aria-expanded="false"]:hover .faq__glyph { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .faq__glyph { transition: none; }
  .faq__toggle[aria-expanded="false"]:hover .faq__glyph,
  .faq__toggle[aria-expanded="false"]:focus-visible .faq__glyph { transform: none; }
}
.faq__a { padding-bottom: 20px; margin-top: -6px; }
.faq__a[hidden] { display: none; }
.faq__a p { max-width: 520px; font: 400 16px/1.6 var(--body); color: var(--gray-1); }
@media (max-width: 1023px) { .wwd-faq { padding: 104px 0; } .wwd-faq__cols { column-gap: 40px; } }
@media (max-width: 767px) {
  .wwd-faq { padding: 64px 0 56px; }
  .wwd-faq__cols { margin-top: 24px; grid-template-columns: minmax(0, 1fr); }
  .wwd-faq__col:first-child { border-bottom: 0; }
  .faq__text { font-size: 17px; }
}

/* ---------------------------------------------------------------- close -- */
/* Ink, continuous with the footer; the footer's hairline is the seam. */
.wwd-close { background: var(--near-black); color: var(--white); }
.wwd-close__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 120px; padding-bottom: 100px; }
.wwd-close h2 { font: 700 56px/1.08 var(--display); letter-spacing: -1.5px; }
.wwd-close__sub { max-width: 720px; font: 400 19px/1.6 var(--body); color: var(--gray-4); }
.wwd-close .actions { align-self: stretch; }
@media (max-width: 1023px) {
  .wwd-close__inner { padding-top: 100px; padding-bottom: 88px; }
  .wwd-close h2 { font-size: 48px; }
}
@media (max-width: 767px) {
  .wwd-close__inner { gap: 18px; padding-top: 64px; padding-bottom: 80px; }
  .wwd-close h2 { font-size: 36px; line-height: 1.1; letter-spacing: -1px; }
  .wwd-close__sub { font-size: 16px; }
  .wwd-close .actions { margin-top: 6px; }
}

/* ------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
}
