/* ── What I actually do (/what-i-do/) ─────────────────────────
   The services page. The plain answer to "so what do you actually do?",
   and where LinkedIn and Linktree point. Three levels: start on your own,
   bring me in, hand me your whole brand.

   Grounds are the site's three only: ink, paper, orange. No camo: the
   pattern belongs to The Camouflage Test. Bricolage at 800 only, for
   display; everything else is DM Sans.

   Loads after tokens.css, base.css, case-study.css (nav) and
   stand-back.css (dark body, footer nav). Started from the brief's
   what-i-do.draft.css, 1 Dec 2026. */

.wid-page {
  --wid-max: 1200px;
  --wid-hairline: rgb(255 255 255 / 0.22);
  --wid-quiet: rgb(255 255 255 / 0.72);
  /* Cards: a step lighter than the ink ground, the same mix the spokes use */
  --wid-card: color-mix(in srgb, var(--color-ink) 94%, var(--color-white));
  --wid-card-line: color-mix(in srgb, var(--color-ink) 62%, var(--color-white));
  /* Quiet grey type on paper. 7.5:1 on white. */
  --wid-quiet-ink: color-mix(in srgb, var(--color-ink) 82%, var(--color-white));
  --wid-rule-ink: color-mix(in srgb, var(--color-ink) 45%, var(--color-white));
  /* The light dotted rule between a description and its deliverables */
  --wid-dots: 2px dotted color-mix(in srgb, var(--color-ink) 28%, var(--color-white));
  --wid-body: clamp(17px, 1.4vw, 19px);
  --wid-small: 16px;
  --wid-nav-clear: 96px;
}

/* The nav is fixed, so anything linked to lands below it */
.wid-page [id] {
  scroll-margin-top: var(--wid-nav-clear);
}

/* Olly's manual line breaks hold at desktop width only */
@media (max-width: 1100px) {
  .wid-br {
    display: none;
  }
}

/* ── Shared ─────────────────────────────────────────────────── */
.wid-band {
  padding: var(--space-lg) var(--pad-h);
}

.wid-in {
  max-width: var(--wid-max);
  margin: 0 auto;
}

.wid-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.wid-lede {
  font-family: var(--font-body);
  font-size: var(--wid-body);
  line-height: 1.6;
  max-width: 58ch;
  margin-top: var(--space-xs);
  color: var(--wid-quiet);
}

.wid-copy {
  font-family: var(--font-body);
  font-size: var(--wid-body);
  line-height: 1.6;
  max-width: 58ch;
}

.wid-copy p + p {
  margin-top: 1em;
}

.wid-standfirst {
  font-family: var(--font-body);
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.35;
  max-width: 30em;
  text-wrap: pretty;
}

/* Inline links: orange on ink, as everywhere on the site */
.wid-page main a.wid-link {
  color: var(--color-orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease-snap);
}

.wid-page main a.wid-link:hover {
  color: var(--color-white);
}

/* Paper bands */
.wid-paper {
  background-color: var(--color-white);
  color: var(--color-ink);
}

.wid-paper .wid-lede {
  color: var(--wid-quiet-ink);
}

/* The filled button, for paper and orange grounds, where the keyline .cta
   would not read. Same shape, same radius, same arrow. */
.wid-cta-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 52px;
  padding: 0 1.4em;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-ink);
  background-color: var(--color-orange);
  border: 1.5px solid var(--color-orange);
  border-radius: var(--radius-cta);
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease-snap),
    color 0.2s var(--ease-snap),
    border-color 0.2s var(--ease-snap);
}

.wid-cta-solid:hover {
  background-color: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-white);
}

.wid-cta-solid:hover .cta-arrow {
  transform: translateX(0.3em);
}

.wid-cta-ink {
  color: var(--color-white);
  background-color: var(--color-ink);
  border-color: var(--color-ink);
}

.wid-cta-ink:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-ink);
}

@media (prefers-reduced-motion: reduce) {
  .wid-cta-solid:hover .cta-arrow {
    transform: none;
  }
}

/* ── 1 · Opening ──────────────────────────────────────────────
   The grey ground from the home hero, so the two ways in read as
   siblings. The headline stacks a line to a word-group, white and orange,
   set tight as display type.

   Depth without information: a fine grain over the ground, and the hyphen
   from the logo, very large and out of focus, standing behind the type a
   step darker than the grey. On load the block is near sharp; then focus
   pulls forward. The block goes soft, "What I" and "do." rise in, and
   "actually" blurs into focus between them. Blur on entry is an exception
   to the motion rules, for this hero only: Olly, 1 Dec 2026. */
.wid-open {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: var(--wid-nav-clear) var(--pad-h) var(--space-lg);
  background-color: var(--wid-hero-ground, var(--color-grey));
  color: var(--color-ink);

  --wid-depth-ink: color-mix(in srgb, var(--wid-hero-ground, var(--color-grey)) 86%, var(--color-ink));
  --wid-depth-soft: 48px;
  --wid-focus-from: 18px;
  --wid-rack: 1.6s;
}

/* Grain: fractal noise as a tiled SVG, ink at low alpha. Texture only;
   it carries nothing to read. */
.wid-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.14 0 0 0 0 0.14 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wid-open > .wid-in {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* The hyphen block, in the logo's proportions (413 × 98), off the right
   edge and well out of focus: a shape in the space behind, not a sign. */
.wid-depth {
  position: absolute;
  z-index: 0;
  top: 22%;
  right: -18vw;
  width: 78vw;
  aspect-ratio: 413 / 98;
  background-color: var(--wid-depth-ink);
  filter: blur(var(--wid-depth-soft));
  pointer-events: none;
  animation: wid-depth-rack var(--wid-rack) var(--ease-out) 0.3s both;
}

.wid-title {
  font-family: var(--font-display);
  font-weight: 800;
  /* Capped by height too: the hero is pinned, so it has to fit the
     screen or its foot is covered before it is read. */
  font-size: clamp(64px, min(11.5vw, 18vh), 180px);
  line-height: 0.8;
  letter-spacing: -0.035em;
}

.wid-line {
  display: block;
  width: fit-content;
}

.wid-t1,
.wid-t2 {
  color: var(--color-white);
  animation: wid-rise 0.9s var(--ease-out) both;
}

.wid-t1 { animation-delay: 0.5s; }
.wid-t2 { animation-delay: 0.62s; }

.wid-title em {
  font-style: normal;
  color: var(--color-orange);
  animation: wid-focus var(--wid-rack) var(--ease-out) 0.85s both;
}

.wid-open .wid-standfirst {
  margin-top: var(--space-md);
  animation: wid-rise 0.9s var(--ease-out) 1.5s both;
}

.wid-open .wid-lede {
  color: var(--color-ink);
  text-wrap: pretty;
  animation: wid-rise 0.9s var(--ease-out) 1.62s both;
}

@keyframes wid-depth-rack {
  from { filter: blur(6px); opacity: 0.6; }
  to   { filter: blur(var(--wid-depth-soft)); opacity: 1; }
}

@keyframes wid-focus {
  from { filter: blur(var(--wid-focus-from)); opacity: 0; }
  to   { filter: blur(0); opacity: 1; }
}

@keyframes wid-rise {
  from { opacity: 0; transform: translateY(0.35em); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wid-depth,
  .wid-t1,
  .wid-t2,
  .wid-title em,
  .wid-open .wid-standfirst,
  .wid-open .wid-lede {
    animation: none;
  }
}

/* ── The rise ─────────────────────────────────────────────────
   As the home page's "wrong side" section: the hero holds still and the
   next section rises over it, its top edge feathered so it arrives out
   of nothing rather than as a hard band. Same 13vh feather. The extra
   top padding keeps the heading clear of the feather. */
.wid-stage .wid-open {
  position: sticky;
  top: 0;
  z-index: 0;
}

.wid-rise {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--space-lg) + 13vh);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 13vh);
  mask-image: linear-gradient(to bottom, transparent 0, #000 13vh);
}

/* Short screens: the pinned hero must still fit, so its foot tightens */
@media (max-height: 820px) and (min-width: 901px) {
  .wid-open {
    padding-bottom: var(--space-md);
  }

  .wid-open .wid-standfirst {
    margin-top: var(--space-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wid-stage .wid-open {
    position: relative;
  }

  .wid-rise {
    padding-top: var(--space-lg);
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ── 2 · Three kinds of work ────────────────────────────────── */
.wid-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.wid-kind h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.wid-kind h3 span {
  color: var(--color-orange);
}

.wid-kind p {
  font-family: var(--font-body);
  font-size: var(--wid-body);
  line-height: 1.55;
  margin-top: 12px;
}

.wid-kind .wid-kind-lead {
  font-weight: 600;
  margin-top: 16px;
}

.wid-kind ul {
  font-family: var(--font-body);
  font-size: var(--wid-small);
  line-height: 1.5;
  margin-top: 20px;
  padding-top: 20px;
  border-top: var(--wid-dots);
  display: grid;
  gap: 6px;
  color: var(--wid-quiet-ink);
}

/* ── 3 · How I work ─────────────────────────────────────────── */
.wid-how {
  padding-bottom: 0;
}

.wid-how .wid-in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-md);
  align-items: start;
}

.wid-how .wid-copy {
  color: var(--wid-quiet);
}

.wid-how-lead {
  font-weight: 600;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.3;
  color: var(--color-white);
}

/* ── 4 · Ways in ────────────────────────────────────────────── */
/* A hairline parts How I work from the ways in: same ground, new subject */
.wid-ways > .wid-in {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--wid-hairline);
}

.wid-group + .wid-group {
  margin-top: var(--space-lg);
}

.wid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: var(--space-md);
}

/* Each card stacks to the same rows so the price lines and buttons sit
   level across the pair, whatever the copy length above them. */
.wid-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
  background-color: var(--wid-card);
  border: 1px solid var(--wid-card-line);
  border-radius: var(--radius-cta);
  font-family: var(--font-body);
  font-size: var(--wid-body);
  line-height: 1.55;
}

.wid-card-q {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.wid-card-why {
  margin-top: 20px;
  font-weight: 600;
  font-size: clamp(19px, 1.6vw, 21px);
  line-height: 1.35;
}

.wid-card-body {
  margin-top: 16px;
  color: var(--wid-quiet);
}

.wid-card-label {
  margin-top: 24px;
  font-weight: 600;
}

.wid-plus {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.wid-plus li {
  position: relative;
  padding-left: 1.4em;
}

.wid-plus li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-orange);
}

.wid-card-foot {
  margin-top: auto;
  padding-top: 32px;
}

.wid-card-price {
  font-size: var(--wid-small);
  color: var(--wid-quiet);
  margin-bottom: 16px;
}

/* ── 5 · The whole brand ────────────────────────────────────── */
.wid-whole {
  padding: var(--space-xl) var(--pad-h);
}

.wid-offer-name {
  margin-top: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 13vw, 190px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  overflow-wrap: normal;
}

.wid-hyphen {
  color: var(--color-orange);
}

.wid-whole .wid-standfirst {
  margin-top: var(--space-md);
}

.wid-detail {
  margin-top: var(--space-lg);
  font-family: var(--font-body);
}

.wid-part {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 20px;
  border-top: 3px solid var(--color-ink);
}

.wid-part h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.wid-part-lead {
  font-weight: 600;
  font-size: clamp(19px, 1.6vw, 21px);
  line-height: 1.35;
}

.wid-sub p {
  font-weight: 600;
  font-size: var(--wid-body);
}

.wid-sub ul {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  font-size: var(--wid-small);
  line-height: 1.5;
  color: var(--wid-quiet-ink);
}

.wid-part-close {
  padding-bottom: 22px;
  border-bottom: var(--wid-dots);
  font-size: var(--wid-body);
  line-height: 1.55;
}

.wid-whole .wid-stay {
  margin-top: var(--space-lg);
}

.wid-whole-cta {
  margin-top: var(--space-md);
  font-family: var(--font-body);
}

/* Optical: a solid button's edge reads further in than its box, so the
   line under it steps in a touch to sit under the block, not outside it */
.wid-poa {
  margin-top: 16px;
  padding-left: 0.15em;
  font-weight: 600;
  font-size: var(--wid-body);
}

/* ── 6 · Who's doing it ───────────────────────────────────────
   As the home page's Who cares: the portrait ends flush on the seam, a
   hard edge on the orange below, no feather and no overhang. The air
   goes under the copy instead, so its last line breathes. */
.wid-who {
  padding-bottom: 0;
}

.wid-who .wid-in {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--space-md);
  align-items: end;
}

.wid-who .wid-in > div {
  padding-bottom: var(--space-lg);
}

.wid-who .wid-copy {
  margin-top: var(--space-sm);
  color: var(--wid-quiet);
}

.wid-who-link {
  margin-top: var(--space-xs);
}

.wid-portrait {
  display: block;
  width: 100%;
  max-width: 460px;
  justify-self: end;
  align-self: end;
}

.wid-portrait {
  position: relative;
}

.wid-portrait img {
  display: block;
  width: 100%;
  height: auto;
}


/* ── 7 · Not sure ───────────────────────────────────────────── */
.wid-ask {
  background-color: var(--color-orange);
  color: var(--color-ink);
  padding: var(--space-lg) var(--pad-h);
}

.wid-ask .wid-h2 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 12em;
}

.wid-ask-copy {
  font-family: var(--font-body);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.4;
  max-width: 28em;
  margin-top: var(--space-sm);
}

.wid-ask .wid-cta-solid {
  margin-top: var(--space-md);
}

/* ── Narrow screens: single column ──────────────────────────── */
@media (max-width: 900px) {
  .wid-cols,
  .wid-cards,
  .wid-how .wid-in,
  .wid-who .wid-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .wid-detail {
    gap: var(--space-lg);
  }

  .wid-portrait {
    justify-self: start;
    max-width: 360px;
  }

  /* Stacked, the portrait goes last so its edge still lands on the seam */
  .wid-who .wid-in > div {
    padding-bottom: 0;
  }

  .wid-open {
    min-height: 88svh;
    --wid-depth-soft: 28px;
  }

  .wid-depth {
    top: 18%;
    right: -40vw;
    width: 130vw;
  }
}
