/*
Theme Name: Easykay Portfolio (Twenty Twenty-Five child)
Template: twentytwentyfive
Theme URI: https://easykay.net/
Author: Kwame Amponsah
Description: Child theme of Twenty Twenty-Five for Kwame Amponsah's UX portfolio, built on the Kwame Amponsah design system: black, white and one blue; Aeonik type; gradient call-to-action pills. Home and About are editable blocks; case studies and policy pages render from the theme with their interactive prototypes.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.6.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easykay-tt25
*/

/* Kwame Amponsah portfolio. Colour, type, spacing and shape come from the Kwame Amponsah design system (tokens below). */
@font-face { font-family: "Aeonik"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/Aeonik-Regular.woff2) format("woff2"); }
@font-face { font-family: "Aeonik"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/Aeonik-RegularItalic.woff2) format("woff2"); }
@font-face { font-family: "Aeonik"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/Aeonik-Medium.woff2) format("woff2"); }
@font-face { font-family: "Aeonik"; font-style: italic; font-weight: 500; font-display: swap; src: url(assets/fonts/Aeonik-MediumItalic.woff2) format("woff2"); }
@font-face { font-family: "Aeonik"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/Aeonik-Bold.woff2) format("woff2"); }
/* Kwame Amponsah — generated from tokens.json */
:root, [data-theme="light"] {
  --paper: #ffffff; /* Page background, header, section-nav bar, cookie note. The ground everything sits on. */
  --paper-2: #f4f4f2; /* Second ground: alternate project bands, behind project media and thumbs, avatar placeholder. */
  --ink: #111111; /* Headings and body text on `paper` and `paper-2`; primary button fill; selection background. 18.9:1 / 17.2:1 light, 17.2:1 / 15.5:1 dark. */
  --muted: #565656; /* Secondary text on `paper` and `paper-2`: descriptions, facts lines, captions, labels, inactive tabs. 7.3:1 / 6.7:1 light, 8.2:1 / 7.4:1 dark. */
  --line: #dededb; /* Hairlines: header and section borders, toc, list rows, toggle border, figure frames. Decorative only, never the only cue. */
  --accent: #0b6aa0; /* The single interface blue, taken from the KA mark: focus ring, caret, button hover fill, link-hover underlines. On `paper` 5.9:1 light, 9.9:1 dark; on `paper-2` 5.3:1 / 8.9:1. Never a large fill. */
  --error: #b3261e; /* Inline error text on `paper`. 6.5:1 light, 8.5:1 dark. */
  --rule-strong: #11111147; /* `ink` at 28%: the single hairline between the Work heading and the first project. */
  --footer-ground: var(--ink); /* Footer and contact background: the palette inverted, so it is `ink` in both themes. */
  --footer-ink: var(--paper); /* Text, headings, links and the form's caret on `footer-ground`. */
  --footer-muted: #bcbcbc; /* Supporting text and legal links on `footer-ground` (the source's `paper` 72% into `ink`). 9.9:1 light, 7.4:1 dark. */
  --footer-status: #cfcfcf; /* Form status line on `footer-ground` (`paper` 80% into `ink`). */
  --footer-field-border: #7c7c7c; /* Input and textarea borders on `footer-ground` (`paper` 45% into `ink`); hover turns to `footer-ink`. 4.5:1 light, 3.0:1 dark. */
  --footer-rule: #4d4d4d; /* Hairline above the footer's bottom row (`paper` 25% into `ink`). */
  --footer-error: #ff8a80; /* Border of an invalid field in the footer form. Source value in both themes: in dark the footer ground turns light and this falls to 2.0:1 — a known gap, kept as built. */
  --consent-error: #c0392b; /* Outline on an unticked required consent checkbox. */
  --hero-ground: #021a26; /* Home hero base, under the photo. The hero is dark in both themes. */
  --hero-ink: #ffffff; /* Text, outlines, focus ring and the scroll cue on the hero. 17.8:1 on `hero-ground`. */
  --hero-overlay-blue: rgba(1, 73, 114, 0.45); /* Hero tint, first stop of the 96° overlay over the photo. */
  --hero-overlay-teal: rgba(0, 63, 54, 0.45); /* Hero tint, last stop of the 96° overlay. */
  --hero-scrim: rgba(0, 6, 12, 0.5); /* Flat darkening layer between the photo and the tint. */
  --hero-outline: rgba(255, 255, 255, 0.8); /* 1.5px inset outline of the secondary hero button. */
  --hero-wash: rgba(255, 255, 255, 0.14); /* Hover fill of the secondary hero button. */
  --gradient-start: #2b87da; /* First stop of the 207° call-to-action gradient (pill buttons, About title bar, About photo block). */
  --gradient-end: #29c4a9; /* Last stop of the CTA gradient; also the hover colour of the hero scroll cue. White pill labels reach only 3.8:1 at the start and 2.2:1 at the end — kept as built, flagged. */
  --logo-blue: #00a9e0; /* The KA mark's blue, sampled from the logo file. Identity only (cover, brand art); never interface text. */
  --logo-green: #05c176; /* The KA mark's green, sampled from the logo file. Identity only; never interface text. */
  --lightbox-backdrop: rgba(0, 0, 0, 0.9); /* Backdrop behind a zoomed case-study image. */
  --header-scrolled: 0 1px 0 #dededb, 0 8px 24px -16px rgba(0, 0, 0, 0.35); /* The only shadow: the sticky header once the page has scrolled (motion allowed only). */
}
[data-theme="dark"] {
  --paper: #0e0e0e;
  --paper-2: #1a1a1a;
  --ink: #f2f2f0;
  --muted: #a9a9a6;
  --line: #2e2e2c;
  --accent: #6cc4f0;
  --error: #ff8a80;
  --rule-strong: #f2f2f047;
  --footer-ground: var(--ink);
  --footer-ink: var(--paper);
  --footer-muted: #4e4e4d;
  --footer-status: #3c3c3b;
  --footer-field-border: #8b8b8a;
  --footer-rule: #b9b9b8;
  --footer-error: #ff8a80;
  --consent-error: #c0392b;
  --hero-ground: #021a26;
  --hero-ink: #ffffff;
  --hero-overlay-blue: rgba(1, 73, 114, 0.45);
  --hero-overlay-teal: rgba(0, 63, 54, 0.45);
  --hero-scrim: rgba(0, 6, 12, 0.5);
  --hero-outline: rgba(255, 255, 255, 0.8);
  --hero-wash: rgba(255, 255, 255, 0.14);
  --gradient-start: #2b87da;
  --gradient-end: #29c4a9;
  --logo-blue: #00a9e0;
  --logo-green: #05c176;
  --lightbox-backdrop: rgba(0, 0, 0, 0.9);
  --header-scrolled: 0 1px 0 #2e2e2c, 0 8px 24px -16px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e0e0e;
    --paper-2: #1a1a1a;
    --ink: #f2f2f0;
    --muted: #a9a9a6;
    --line: #2e2e2c;
    --accent: #6cc4f0;
    --error: #ff8a80;
    --rule-strong: #f2f2f047;
    --footer-ground: var(--ink);
    --footer-ink: var(--paper);
    --footer-muted: #4e4e4d;
    --footer-status: #3c3c3b;
    --footer-field-border: #8b8b8a;
    --footer-rule: #b9b9b8;
    --footer-error: #ff8a80;
    --consent-error: #c0392b;
    --hero-ground: #021a26;
    --hero-ink: #ffffff;
    --hero-overlay-blue: rgba(1, 73, 114, 0.45);
    --hero-overlay-teal: rgba(0, 63, 54, 0.45);
    --hero-scrim: rgba(0, 6, 12, 0.5);
    --hero-outline: rgba(255, 255, 255, 0.8);
    --hero-wash: rgba(255, 255, 255, 0.14);
    --gradient-start: #2b87da;
    --gradient-end: #29c4a9;
    --logo-blue: #00a9e0;
    --logo-green: #05c176;
    --lightbox-backdrop: rgba(0, 0, 0, 0.9);
    --header-scrolled: 0 1px 0 #2e2e2c, 0 8px 24px -16px rgba(0, 0, 0, 0.35);
  }
}
:root {
  --content-max: 1240px; /* Max width of `.wrap`. */
  --gutter-min: 16px; /* Side gutter on narrow screens (gutter = clamp(16px, 4vw, 56px)). */
  --gutter-max: 56px; /* Side gutter on wide screens. */
  --header-height: 64px; /* Sticky header height; the toc sticks just below it. */
  --section-pad-min: 40px; /* Vertical section padding on narrow screens (clamp(40px, 6vw, 88px)); also project band padding. */
  --section-pad-max: 88px; /* Vertical section padding on wide screens. */
  --space-6: 6px; /* Label to field; facts line top margin. */
  --space-10: 10px; /* Section-head gap; consent checkbox gap. */
  --space-12: 12px; /* Gap between buttons in an action row; brand logo to name; form status and foot-row gaps. */
  --space-14: 14px; /* Field horizontal padding; gap between hero buttons; under project titles. */
  --space-16: 16px; /* Gap between contact form fields; lede and note top margins. */
  --space-20: 20px; /* Gap between case-study rows; meta block top padding. */
  --space-22: 22px; /* Plain button horizontal padding; project media to text when stacked; facts bottom margin. */
  --space-24: 24px; /* Action row top margin; Coming-soon row padding; toc link gap. */
  --space-32: 32px; /* Thumb to text in Coming-soon rows; About entries padding. */
  --space-48: 48px; /* Column gap between project media and text, and between case-study label and body. */
  --radius: 4px; /* The one corner: buttons, fields, toggle, media frames, cookie note. */
  --radius-logo: 2px; /* The KA mark in the header. */
  --radius-pill: 999px; /* Gradient CTA pills on the hero and project rows only. */
  --control-height: 46px; /* Min height of the plain `.btn`. */
  --touch-min: 44px; /* Min height of CTA pills, tabs, cookie button, submit. */
  --toggle-size: 40px; /* Theme toggle, square. */
  --cta-min-width: 150px; /* Min width of a CTA pill. */
  --logo-height: 28px; /* KA mark height in the header. */
  --checkbox-size: 20px; /* Consent checkbox. */
  --font-ui: "Aeonik", Helvetica, "Helvetica Neue", Arial, sans-serif;
  --text-hero-title: 700 56px/1.15 var(--font-ui); /* Home hero h1, white on the hero. Fluid: clamp(2.4rem, 5.4vw, 3.5rem), 38–56px. */
  --text-about-title: 800 52px/0.92 var(--font-ui); /* About page h1, followed by the 72×6px gradient bar. */
  --text-section-title: 700 48px/1.05 var(--font-ui); /* Home section h2 and footer “Contact me”. Fluid: clamp(2rem, 4vw, 3rem). */
  --text-project-title: 700 48px/1.05 var(--font-ui); /* Project name in a project row. Fluid: clamp(1.9rem, 3.6vw, 3rem). */
  --text-cs-title: 700 48px/1.1 var(--font-ui); /* Case-study h1, max 22ch. Fluid: clamp(2rem, 4vw, 3rem). */
  --text-hero-role: 700 34px/1.25 var(--font-ui); /* Role line under the hero h1. Fluid: clamp(1.35rem, 3.2vw, 2.125rem). */
  --text-contact-email: 600 30.4px/1.6 var(--font-ui); /* The email address in the footer. Fluid: clamp(1.25rem, 2.6vw, 1.9rem). */
  --text-cs-section-title: 700 28px/1.15 var(--font-ui); /* Sticky label of a case-study section. Fluid: clamp(1.4rem, 2.2vw, 1.75rem). */
  --text-closing: 700 28px/1.1 var(--font-ui); /* Closing statement at the end of a case study. */
  --text-soon-title: 700 22.4px/1.05 var(--font-ui); /* Title in a Coming soon row. */
  --text-hero-copy: 500 22px/1.3 var(--font-ui); /* Hero intro paragraph, max 34em. Fluid: clamp(1.05rem, 2vw, 1.375rem). */
  --text-cs-subhead: 700 20px/1.05 var(--font-ui); /* h3 inside case-study prose. */
  --text-lede: 400 20.8px/1.5 var(--font-ui); /* Case-study lede under the h1, max 60ch. */
  --text-prose: 400 17px/1.65 var(--font-ui); /* Case-study body copy, max 66ch. */
  --text-body: 400 16px/1.6 var(--font-ui); /* Default text: project descriptions, section intros, form text. */
  --text-cta-label: 500 16.8px/1.6 var(--font-ui); /* Label of the gradient pill buttons; letter-spaced, sentence case. */
  --text-nav: 500 15.2px/1.6 var(--font-ui); /* Header nav links. */
  --text-button: 600 15.2px/1.6 var(--font-ui); /* Label of the plain `.btn` and the contact Submit button. */
  --text-facts: 400 14.72px/1.6 var(--font-ui); /* Project facts line, footer row, form status, pager kicker — in `muted`. */
  --text-form-label: 500 14.4px/1.6 var(--font-ui); /* Labels above contact fields; toc and tab labels (toc at 14.4px/500, tabs 600). */
  --text-caption: 400 14.08px/1.6 var(--font-ui); /* Figure captions and gallery captions, in `muted`. */
  --text-form-note: 400 14px/1.6 var(--font-ui); /* Consent and legal notes, in `muted`. */
  --text-meta-label: 400 13.6px/1.6 var(--font-ui); /* Case-study meta term (Role, Timeline…), in `muted`. */
}

/* Names the theme's older stylesheets use, mapped onto the system's tokens */
:root {
  --ui: var(--font-ui); --prose: var(--font-ui); --display: var(--font-ui);
  --max: var(--content-max); --header-h: var(--header-height);
  --rule: var(--line); --accent-ink: #ffffff; --gutter: clamp(var(--gutter-min), 4vw, var(--gutter-max));
  --cta-gradient: linear-gradient(207deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}
:root[data-theme="dark"] { --accent-ink: #0e0e0e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent-ink: #0e0e0e; } }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--muted) var(--paper); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--muted) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--accent);
}
::selection { background: var(--ink); color: var(--paper); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--ui); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; }
.brand img { height: 28px; width: auto; border-radius: 2px; }
.brand span { display: none; }
@media (min-width: 560px) { .brand span { display: inline; } }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 12px 2px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; }

/* Actions */
.btn {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: var(--radius);
  font: 600 0.95rem var(--ui); text-decoration: none; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Home intro: short, so the work starts in the first screen */
/* Home hero: follows the original easykay.net hero. Dark in both themes. */
.hero {
  color: #fff; text-align: center;
  background:
    linear-gradient(96deg, rgba(1, 73, 114, 0.45) 60%, rgba(0, 63, 54, 0.45) 100%),
    linear-gradient(rgba(0, 6, 12, 0.5), rgba(0, 6, 12, 0.5)),
    #021a26;
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 104px);
}
.hero ::selection { background: #fff; color: #021a26; }
.hero :focus-visible { outline-color: #fff; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.hero-role { font-size: clamp(1.35rem, 3.2vw, 2.125rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 14px 0 0; }
.hero-copy { font-size: clamp(1.05rem, 2vw, 1.375rem); font-weight: 500; line-height: 1.3; max-width: 34em; margin: clamp(24px, 4vw, 40px) auto 0; }
.hero-works { max-width: 46em; font-size: 1rem; font-weight: 400; line-height: 1.5; margin-top: 16px; color: rgba(255, 255, 255, 0.85); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.hero-btn.secondary { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8); }
.hero-btn.secondary:hover { background: rgba(255, 255, 255, 0.14); filter: none; }
.hero-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 150px; padding: 0 30px; border-radius: 999px;
  background: linear-gradient(207deg, #2b87da 0%, #29c4a9 100%); color: #fff; text-decoration: none;
  font-size: 1.05rem; font-weight: 500; letter-spacing: 0.14em; transition: filter 0.15s;
}
.hero-btn:hover { filter: brightness(1.12); }
.hero-down { display: block; width: 56px; margin: clamp(20px, 3vw, 32px) auto 0; color: #fff; }
.hero-down svg { width: 100%; height: auto; display: block; }
.hero-down:hover { color: #29c4a9; }

/* Home sections */
.section { padding: clamp(40px, 6vw, 88px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); max-width: 44ch; margin: 0; }
.section-head .section-intro { grid-column: 1 / -1; max-width: 70ch; margin-top: 4px; }

/* Projects */
.projects { display: grid; gap: clamp(48px, 7vw, 104px); }
.project { display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) {
  .project { grid-template-columns: 7fr 5fr; gap: 48px; }
  .project:nth-child(even) { grid-template-columns: 5fr 7fr; }
  .project:nth-child(even) .project-media { order: 2; }
}
.project-media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 2560 / 1405; }
.project-media.wide { aspect-ratio: 2560 / 1405; }
.project-media.phones img { object-fit: contain; padding: 10px 0; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.project:hover .project-media img { transform: scale(1.03); }
.project h3 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 14px; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.project p.desc { color: var(--muted); max-width: 50ch; margin-bottom: 0.4em; }
.project p.desc.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; }
.more { background: none; border: 0; padding: 10px 0; margin: 0 0 8px; font: 600 0.9rem var(--ui); color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 0.22em; display: block; }
.more:hover { color: var(--accent); }
.facts { font-size: 0.92rem; color: var(--muted); margin: 6px 0 22px; }

/* Coming soon: a plain list, not a card grid */
.soon { border-bottom: 1px solid var(--line); }
.soon-row { display: grid; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); align-items: start; }
@media (min-width: 640px) { .soon-row { grid-template-columns: 220px 1fr; gap: 32px; } }
.soon-row .thumb { aspect-ratio: 16 / 10; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.soon-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.soon-row h3 { font-size: 1.4rem; margin-bottom: 8px; }
.soon-row p { color: var(--muted); margin: 0; max-width: 62ch; }

/* Case study */
.cs-hero { padding: clamp(36px, 6vw, 80px) 0 0; }
.cs-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; max-width: 22ch; }
.cs-lede { font: 400 clamp(1.15rem, 1.6vw, 1.3rem) / 1.5 var(--prose); max-width: 60ch; margin: 18px 0 0; }
.cs-note { margin: 16px 0 0; font-size: 0.92rem; color: var(--muted); max-width: 62ch; }
.cs-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; margin: clamp(24px, 4vw, 44px) 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .cs-meta { grid-template-columns: repeat(4, 1fr); } }
.cs-meta dt { font-size: 0.85rem; color: var(--muted); margin-bottom: 2px; }
.cs-meta dd { margin: 0; font-weight: 600; line-height: 1.4; }
.cs-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cs-cover { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); margin-top: clamp(28px, 4vw, 48px); }
.cs-cover img { width: 100%; }

.toc { position: sticky; top: var(--header-h); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); margin: clamp(28px, 4vw, 48px) calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); }
.toc ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { display: block; white-space: nowrap; text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--muted); padding: 14px 0 12px; border-bottom: 2px solid transparent; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.toc + .cs-section { border-top: 0; }

.cs-section { padding: clamp(40px, 6vw, 88px) 0; border-top: 1px solid var(--line); display: grid; gap: 20px; scroll-margin-top: 120px; }
@media (min-width: 900px) {
  .cs-section { grid-template-columns: 4fr 8fr; column-gap: 48px; }
  .cs-label { position: sticky; top: 136px; align-self: start; }
  .cs-section > .full { grid-column: 1 / -1; }
}
.cs-label h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.15; }
.cs-body { max-width: 66ch; font: 400 1.0625rem/1.65 var(--prose); }
.cs-body h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 1.6em 0 0.5em; }
.cs-body h3:first-child { margin-top: 0; }
.cs-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.cs-body li { margin-bottom: 0.6em; padding-left: 0.2em; }
.cs-body strong { font-weight: 700; }
.shots { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 760px) { .shots.two { grid-template-columns: 1fr 1fr; } .shots.three { grid-template-columns: repeat(3, 1fr); } }
.shot { margin: 0; }
.shot .frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.shot img { width: 100%; cursor: zoom-in; }
.shot video { width: 100%; max-height: 82vh; background: #000; }
.shot figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.closing { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 16px 0 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager a { padding: clamp(24px, 4vw, 56px) var(--gutter); text-decoration: none; display: block; }
.pager a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.pager a + a { border-left: 1px solid var(--line); text-align: right; }
.pager small { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 4px; }
.pager strong { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }

/* About */

/* Footer / contact: the palette inverted */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(48px, 7vw, 96px) 0 28px; }
.site-footer ::selection { background: var(--paper); color: var(--ink); }
.site-footer :focus-visible { outline-color: var(--paper); }
.contact-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.contact-email { font-size: clamp(1.25rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; overflow-wrap: anywhere; }
.contact-alt { margin: 0; color: color-mix(in srgb, var(--paper) 72%, var(--ink)); max-width: 40ch; }
.contact-alt a { color: var(--paper); }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; font: 400 1rem/1.5 var(--ui); color: var(--paper); background: transparent; caret-color: var(--paper);
  border: 1px solid color-mix(in srgb, var(--paper) 45%, var(--ink)); border-radius: var(--radius); padding: 12px 14px; resize: vertical;
}
.contact-form input:hover, .contact-form textarea:hover { border-color: var(--paper); }
.contact-form [aria-invalid="true"] { border-color: #ff8a80; }
.contact-form .btn { justify-self: start; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.contact-form .btn:hover { background: transparent; color: var(--paper); border-color: var(--paper); }
.form-status { margin: 0; min-height: 1.5em; font-size: 0.92rem; color: color-mix(in srgb, var(--paper) 80%, var(--ink)); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; margin-top: clamp(36px, 5vw, 64px); padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--paper) 25%, var(--ink)); font-size: 0.92rem; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { text-decoration: underline; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-row { align-items: baseline; }
.foot-name { font-weight: 600; margin-right: auto; }
.foot-name span { font-weight: 400; margin-left: 12px; color: color-mix(in srgb, var(--paper) 72%, var(--ink)); }
.foot-legal a { color: color-mix(in srgb, var(--paper) 72%, var(--ink)); }
.foot-legal a:hover { color: var(--paper); }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
dialog.lightbox img { max-width: 96vw; max-height: 92vh; background: #fff; cursor: zoom-out; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-media img, .btn { transition: none; }
}

/* ---------- Xpress Cash case study ---------- */
.xc-table-wrap { overflow-x: auto; }
.xc-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.xc-table th, .xc-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.xc-table thead th { border-top: 0; font-weight: 700; }
.xc-table tbody th { font-weight: 500; color: var(--muted); width: 18%; }
.xc-persona { margin: 0; }
.xc-persona > div { display: grid; gap: 2px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
@media (min-width: 560px) { .xc-persona > div { grid-template-columns: 11em 1fr; } }
.xc-persona dt { color: var(--muted); font-size: 0.95rem; }
.xc-persona dd { margin: 0; }
.xc-flow { list-style: none; counter-reset: flow; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); }
.xc-flow li { counter-increment: flow; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.xc-flow li::before { content: counter(flow); display: block; font-weight: 700; color: var(--xc); margin-bottom: 4px; }
.xc-flow strong { display: block; }
.xc-flow span { color: var(--muted); }

:root { --xc: #087a50; --xc-dark: #172b27; --xc-tint: #e4f1de; }
.xc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; justify-items: center; background: var(--paper-2); border-radius: var(--radius); padding: clamp(20px, 4vw, 48px); }
.xc-gallery figure { margin: 0; }
.xc-gallery figcaption { text-align: center; font-size: 0.88rem; color: var(--muted); margin-top: 12px; }
.xc-stage { position: relative; display: grid; place-items: center; background: #f6f7f8; border-radius: var(--radius); padding: clamp(24px, 5vw, 56px) 16px; }

/* Keep full-width figures above the sticky section label */
.cs-section > .full { position: relative; z-index: 1; }

/* Wireframes */
.wf { display: grid; gap: 20px; }
.wf + .wf { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 8px; }
.wf h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.wf-lede { color: var(--muted); max-width: 62ch; margin: 0; }
.wf-row { display: grid; gap: 24px; align-items: start; }
@media (min-width: 760px) { .wf-row { grid-template-columns: 320px minmax(0, 1fr); } }
.wf-row .shot { max-width: 340px; }
.wf .shot .frame { background: #fff; box-shadow: none; }
.wf-notes { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; max-width: 62ch; }
.wf-notes li::marker { font-weight: 700; }
.cs-section:has(.wf) .cs-label { position: static; }

.cs-links { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; font-size: 0.95rem; }
.cs-links b { color: var(--muted); font-weight: 500; }
.cs-links a { font-weight: 700; }
.cs-xlinks { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.cs-xlinks a { font-weight: 700; }

/* Wireframes as tabs: one screen per view. Desktop and phone sit side by side in a scrolling window. */
.wf-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.wf-tabs button { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.wf-tabs button:hover { color: var(--ink, #172b27); }
.wf-tabs button[aria-selected="true"] { color: var(--ink, #172b27); border-bottom-color: var(--xc); }
.wf[hidden] { display: none; }
.wf-on .wf + .wf { border-top: 0; padding-top: 0; margin-top: 0; }
.wf-on .wf { gap: 12px 24px; margin-top: 16px; }
@media (min-width: 900px) {
  .wf-on .wf { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .wf-on .wf > h3, .wf-on .wf > .wf-lede { grid-column: 1 / -1; }
  .wf-on .wf-row { display: contents; }
  .wf-on .wf-row .shot { max-width: none; }
  .wf-on .wf-notes { grid-column: 1 / -1; max-width: none; columns: 2; column-gap: 40px; display: block; }
  .wf-on .wf-notes li { break-inside: avoid; margin-bottom: 8px; }
}
.wf-on .wf .shot .frame { max-height: 480px; overflow: auto; overscroll-behavior: contain; }
.wf-on .wf .shot img { cursor: default; }

/* Projects: alternating full-width background bands separate one project from the next */
section:has(.projects) { overflow-x: clip; }
.projects { gap: 0; }
.project { position: relative; isolation: isolate; padding-block: clamp(40px, 6vw, 88px); }
.project:nth-child(even)::before { content: ""; position: absolute; inset: 0 -100vmax; background: var(--paper-2); z-index: -1; }
.project:nth-child(even) .project-media { background: var(--paper); }
/* A hairline between the Work heading and the first project */
.projects > .project:first-child::after { content: ""; position: absolute; top: 0; left: -100vmax; right: -100vmax; height: 1px; background: color-mix(in srgb, var(--ink) 28%, transparent); }

/* Landing page calls to action share the hero button: gradient pill, white spaced label */
.projects .btn, .contact-form .btn {
  justify-content: center; min-height: 44px; min-width: 150px; padding: 0 30px; border: 0; border-radius: 999px;
  background: linear-gradient(207deg, #2b87da 0%, #29c4a9 100%); color: #fff;
  font-size: 1.05rem; font-weight: 500; letter-spacing: 0.14em; transition: filter 0.15s;
}
.contact-form .btn { border-radius: var(--radius); min-width: 0; padding: 0 26px; font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }
.projects .btn:hover, .contact-form .btn:hover { background: linear-gradient(207deg, #2b87da 0%, #29c4a9 100%); border: 0; color: #fff; filter: brightness(1.12); }
.projects .btn:focus-visible, .contact-form .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact-form .btn:focus-visible { outline-color: #fff; }

/* HealthLink wireframes: one at a time, in tabs */
.hl-wftabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; margin-bottom: 20px; }
.hl-wftabs button { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.hl-wftabs button:hover { color: var(--ink, #172b27); }
.hl-wftabs button[aria-selected="true"] { color: var(--ink, #172b27); border-bottom-color: var(--xc, currentColor); }
.hl-wfview figure[hidden] { display: none; }
.hl-wfview .shot img { cursor: default; }
.hl-wfphone figure { display: grid; gap: 12px 28px; align-items: start; }
@media (min-width: 760px) { .hl-wfphone figure { grid-template-columns: 300px minmax(0, 1fr); } .hl-wfphone figcaption { margin-top: 0; font-size: 1rem; max-width: 40ch; } }
.hl-wfphone .frame { max-width: 300px; }
.hl-wfview .hl-wfgroup[hidden] { display: none; }
.hl-wfgroup { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; scrollbar-width: thin; }
.hl-wfphone .hl-wfgroup > figure { display: block; flex: 0 0 220px; scroll-snap-align: start; }
.hl-wfphone .hl-wfgroup figcaption { font-size: 0.82rem; margin-top: 8px; }
.hl-wfphone .hl-wfgroup .frame { max-width: none; }

/* Legal notice and cookie notice */
.form-note { font-size: 0.875rem; color: var(--muted); margin: 0 0 12px; }
.form-note a { text-decoration: underline; }
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; display: grid; gap: 10px; padding: 14px 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius); font-size: 0.92rem; }
.cookie-note p { margin: 0; }
.cookie-note a { text-decoration: underline; }
.cookie-note button { justify-self: start; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--paper); font: inherit; font-weight: 700; cursor: pointer; }
@media (min-width: 640px) { .cookie-note { left: 24px; right: auto; } }
/* Wireframe viewers must not widen the page */
.wf, .hl-wfview { min-width: 0; max-width: 100%; }
.hl-wfview .hl-wftabs, .hl-wfgroup { max-width: 100%; }

/* Scroll motion (home page). Opacity and transform only, and only when the visitor allows motion.
   Elements settle into place as they enter the screen from either direction, and re-arm when they leave,
   so scrolling back up plays the same motion in reverse. */
@media (prefers-reduced-motion: no-preference) {
  .anim [data-reveal] {
    opacity: 0;
    transform: translate(calc(var(--rx, 0px) * var(--dir, 1)), calc(34px * var(--dir, 1)));
  }
  .anim [data-reveal][data-side="above"] { --dir: -1; }
  .anim [data-reveal].in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms);
  }
  .anim .project-media[data-reveal] { --rx: -28px; }
  .anim .project:nth-child(even) .project-media[data-reveal] { --rx: 28px; }
  .anim .project-media img { scale: 1.12; translate: 0 var(--py, 0px); will-change: translate; }

  .anim .hero .wrap > * { animation: hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .anim .hero .wrap > :nth-child(2) { animation-delay: 90ms; }
  .anim .hero .wrap > :nth-child(3) { animation-delay: 180ms; }
  .anim .hero .wrap > :nth-child(4) { animation-delay: 270ms; }
  .anim .hero .wrap > :nth-child(5) { animation-delay: 360ms; }
  .anim .cs-hero > * { animation: hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .anim .cs-hero > :nth-child(2) { animation-delay: 90ms; }
  .anim .cs-hero > :nth-child(3) { animation-delay: 180ms; }
  .anim .cs-hero > :nth-child(n+4) { animation-delay: 270ms; }
  .anim .hero-down svg { animation: hero-bob 2.4s ease-in-out 1.4s infinite; }
  .anim .site-header { transition: box-shadow 0.3s ease; }
  .anim .site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0, 0, 0, 0.35); }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.consent { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent label.form-note { margin: 0; cursor: pointer; }
.consent input[aria-invalid="true"] { outline: 2px solid #c0392b; outline-offset: 2px; }

/* High fidelity gallery: grouped into tabs, one sideways strip of phones per tab (as on the HealthLink page). */
.xc-gallery.xc-gallery-tabs { display: block; min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; padding: 24px clamp(16px, 3vw, 32px) 16px; }
.xc-gtabs { display: flex; gap: 4px; overflow-x: auto; max-width: 100%; border-bottom: 1px solid var(--line); margin-bottom: 20px; scrollbar-width: thin; }
.xc-gtabs button { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.xc-gtabs button:hover { color: var(--ink); }
.xc-gtabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.xc-gpanel { display: flex; gap: 28px; overflow-x: auto; max-width: 100%; box-sizing: border-box; padding: 0 0 16px; scroll-snap-type: x proximity; }
.xc-gpanel[hidden] { display: none; }
.xc-gpanel { --z: .72; }
@media (max-height: 960px) { .xc-gpanel { --z: .62; } }
@media (max-height: 820px) { .xc-gpanel { --z: .52; } }
.xc-gpanel > figure .xc-phone { zoom: var(--z); }
.xc-gpanel > figure { flex: 0 0 auto; width: calc(456px * var(--z)); scroll-snap-align: start; }
.xc-gpanel > figure .xc-phone { margin: 0 auto; }

/* MVP scope: priority groups instead of a twelve-row table. P0 runs in two columns; P1 and P2 sit side by side. */
.xc-mvp { display: grid; gap: 24px 32px; grid-template-columns: 1fr 1fr; }
.xc-mvp section { display: block; padding: 0; border: 0; }
.xc-mvp section:first-child { grid-column: 1 / -1; }
.xc-mvp section:first-child ul { columns: 2; column-gap: 32px; }
@media (max-width: 560px) { .xc-mvp { grid-template-columns: 1fr; } .xc-mvp section:first-child ul { columns: 1; } }
.xc-mvp h3 { display: flex; align-items: baseline; gap: 10px; font-size: 1.05rem; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.xc-mvp h3 b { color: var(--xc); font-size: 0.85rem; letter-spacing: 0.02em; }
.xc-mvp ul { list-style: none; margin: 0; padding: 0; }
.xc-mvp li { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; line-height: 1.35; color: var(--muted); break-inside: avoid; }
.xc-mvp li strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
@media (min-width: 900px) { .cs-section > .xc-mvp { grid-column: 2; } }
@media (min-width: 900px) { .cs-section > .xc-plan { grid-column: 2; } }
.xc-plan { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.xc-plan li { padding-bottom: 12px; font-size: 0.9rem; }

/* Website wireframes: fit one screen tall */
.hl-wfview:not(.hl-wfphone) .shot img { width: 100%; height: auto; max-height: calc(100vh - 260px); object-fit: contain; background: #fff; }
.hl-wfphone .hl-wfgroup { --z: 1; zoom: var(--z); }
@media (max-height: 800px) { .hl-wfphone .hl-wfgroup { --z: .82; } }
@media (max-height: 700px) { .hl-wfphone .hl-wfgroup { --z: .68; } }

/* Xpress Cash: design process steps */
.xcp { display: grid; gap: 28px; min-width: 0; }
.xcp-steps { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; padding: 0; list-style: none; }
.xcp-steps > li { display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 3px solid var(--xc, #087A50); }
.xcp-steps > li:nth-child(2n) { border-top-color: #159B50; }
.xcp-steps > li:nth-child(3n) { border-top-color: #55C9A0; }
.xcp-steps > li:nth-child(4n) { border-top-color: #B5DE72; }
.xcp-steps h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.01em; }
.xcp-steps p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.xcp-steps a { font-size: .9rem; font-weight: 600; }
.xcp-steps .out b { color: var(--ink); }
@media (min-width: 700px) { .xcp-steps { grid-template-columns: repeat(4, 1fr); } }
.cs-section:has(.xcp) .cs-label { position: static; }

.site-footer .form-note { color: color-mix(in srgb, var(--paper) 78%, var(--ink)); }
.site-footer .form-note a { color: var(--paper); }

/* ---- Home hero: photo under scrim and tint, white type; gradient pill and outline pill (design system: Hero, CtaButton) ---- */
.hero {
  color: var(--hero-ink); text-align: center;
  background:
    linear-gradient(96deg, var(--hero-overlay-blue) 60%, var(--hero-overlay-teal) 100%),
    linear-gradient(var(--hero-scrim), var(--hero-scrim)),
    var(--hero-ground) url("assets/hero-bg.jpg") center / cover no-repeat;
}
.hero h1 em { font-style: normal; font-weight: inherit; color: inherit; }
.hero .hero-role, .hero .hero-copy { color: var(--hero-ink); }
.hero .hero-actions { justify-content: center; gap: var(--space-14); margin-top: 28px; }
.hero .hero-down, .hero .hero-down:hover { color: var(--hero-ink); }
.hero .hero-down:hover { color: var(--gradient-end); }

/* Project art that carries its own text (Longo Mai banner): show the whole picture, no crop, no zoom. */
.project-media.art, .project-media:has(img[src*="2022-01-03w-copy"]) { aspect-ratio: 1168 / 784; }
.project-media.art img, .anim .project-media.art img, .anim .project-media img[src*="2022-01-03w-copy"] { object-fit: cover; scale: 1; translate: none; transform: none; }
.project:hover .project-media.art img { transform: none; }
