/* ==========================================================================
   Websitewale: public site styles (built on Bootstrap 5.3 + tokens.css)
   ========================================================================== */

/* ---------- Bootstrap bridge: map Bootstrap variables to our tokens ---------- */
:root,
[data-theme] {
  --bs-body-font-family: var(--ff-body);
  --bs-body-color: var(--ww-ink);
  --bs-body-bg: var(--ww-bg);
  --bs-border-color: var(--ww-line);
  --bs-link-color-rgb: 31, 79, 216;
  --bs-secondary-color: var(--ww-ink-soft);
  --bs-emphasis-color: var(--ww-ink);
  --bs-tertiary-bg: var(--ww-surface-2);
  --bs-code-color: var(--ww-accent);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ww-bg);
  color: var(--ww-ink);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, .ww-display {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
  color: var(--ww-ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a {
  color: var(--ww-blueprint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--ww-accent); }

img, svg, video { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

::selection { background: var(--ww-accent-soft); color: var(--ww-ink); }

.ww-container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.ww-skip {
  position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 2000;
  background: var(--ww-ink); color: var(--ww-bg);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none;
}

/* ---------- Spec label / eyebrow (signature element) ---------- */
.ww-label {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ww-ink-soft);
}
.ww-label::before {
  content: "";
  width: 1.5rem; height: 1px;
  background: var(--ww-accent-bright);
}
.ww-index {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--ww-accent-text);
  letter-spacing: 0.06em;
}

/* ---------- Buttons ---------- */
.ww-btn {
  --btn-bg: var(--ww-accent);
  --btn-fg: var(--ww-accent-ink);
  --btn-border: var(--ww-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.ww-btn:hover { --btn-bg: var(--ww-accent-hover); --btn-border: var(--ww-accent-hover); color: var(--btn-fg); }
.ww-btn:active { transform: translateY(1px); }
.ww-btn .bi { font-size: 1.05em; transition: transform var(--dur-2) var(--ease-out); }
.ww-btn:hover .bi-arrow-right, .ww-btn:hover .bi-arrow-up-right { transform: translateX(3px); }

.ww-btn--secondary { --btn-bg: transparent; --btn-fg: var(--ww-ink); --btn-border: var(--ww-ink); }
.ww-btn--secondary:hover { --btn-bg: var(--ww-ink); --btn-fg: var(--ww-bg); --btn-border: var(--ww-ink); }
.ww-btn--ghost { --btn-bg: transparent; --btn-fg: var(--ww-ink); --btn-border: transparent; }
.ww-btn--ghost:hover { --btn-bg: var(--ww-surface-2); --btn-fg: var(--ww-ink); --btn-border: transparent; }
.ww-btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: var(--fs-sm); }

/* Link with the saffron draw-in underline */
.ww-link {
  position: relative;
  color: var(--ww-ink);
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(var(--ww-accent-bright), var(--ww-accent-bright)) 0 100% / 0 2px no-repeat;
  transition: background-size var(--dur-2) var(--ease-out);
  padding-bottom: 2px;
}
.ww-link:hover, .ww-link:focus-visible { background-size: 100% 2px; color: var(--ww-ink); }

/* ---------- Header ---------- */
.ww-header {
  position: sticky; top: 0; z-index: 1030;
  background: color-mix(in srgb, var(--ww-bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.ww-header.is-scrolled { border-bottom-color: var(--ww-line); }
.ww-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 72px;
}

.ww-brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ww-ink); text-decoration: none;
  font-family: var(--ff-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em;
}
.ww-brand:hover { color: var(--ww-ink); }
.ww-brand__mark {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 0.6rem;
  background: var(--ww-ink); color: var(--ww-bg);
  font-size: 1rem; font-weight: 800;
  position: relative;
}
.ww-brand__mark::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--ww-accent-bright);
  border: 2px solid var(--ww-bg);
}
.ww-brand__logo { height: 36px; width: auto; }

.ww-nav { display: none; }
.ww-nav__list { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.ww-nav__link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 0.85rem;
  color: var(--ww-ink); text-decoration: none; font-weight: 500;
  border-radius: var(--r-pill);
  transition: background-color var(--dur-1) var(--ease-out);
}
.ww-nav__link:hover { background: var(--ww-surface-2); color: var(--ww-ink); }
.ww-nav__link[aria-current="page"] { color: var(--ww-accent); }

.ww-header__actions { display: flex; align-items: center; gap: var(--sp-2); }

.ww-icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--ww-line);
  border-radius: 50%;
  background: var(--ww-surface);
  color: var(--ww-ink);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.ww-icon-btn:hover { border-color: var(--ww-ink); }
.ww-icon-btn .bi { font-size: 1.1rem; }

/* Theme toggle icons: only the icon for the active preference shows */
.ww-theme-toggle .bi { display: none; }
:root[data-theme-pref="light"] .ww-theme-toggle .bi-sun,
:root[data-theme-pref="dark"] .ww-theme-toggle .bi-moon-stars,
:root[data-theme-pref="system"] .ww-theme-toggle .bi-circle-half,
:root:not([data-theme-pref]) .ww-theme-toggle .bi-circle-half { display: inline-block; }

.ww-header__cta { display: none; }

@media (min-width: 992px) {
  .ww-nav { display: block; }
  .ww-menu-toggle { display: none; }
  .ww-header__cta { display: inline-flex; }
}

/* Off-canvas mobile menu (Bootstrap offcanvas, restyled) */
.ww-offcanvas.offcanvas { background: var(--ww-bg); color: var(--ww-ink); border-left: 1px solid var(--ww-line); width: min(88vw, 380px); }
.ww-offcanvas .offcanvas-header { min-height: 72px; border-bottom: 1px solid var(--ww-line); }
.ww-offcanvas__list { list-style: none; margin: 0; padding: 0; counter-reset: navitem; }
.ww-offcanvas__list li { counter-increment: navitem; border-bottom: 1px solid var(--ww-line); }
.ww-offcanvas__list a {
  display: flex; align-items: baseline; gap: var(--sp-3);
  padding: var(--sp-4) 0;
  color: var(--ww-ink); text-decoration: none;
  font-family: var(--ff-display); font-size: var(--fs-xl); font-weight: 600;
}
.ww-offcanvas__list a::before {
  content: counter(navitem, decimal-leading-zero);
  font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--ww-accent);
}
.ww-offcanvas__list a[aria-current="page"] { color: var(--ww-accent); }

/* ---------- Blueprint grid backdrop (signature) ---------- */
.ww-blueprint {
  position: relative;
  isolation: isolate;
}
.ww-blueprint::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, var(--ww-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ww-grid-line) 1px, transparent 1px);
  background-size: calc(100% / 8) 100%, 100% 96px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 55%, transparent 100%);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.ww-hero { padding-block: clamp(3rem, 2rem + 6vw, 7.5rem) var(--section-y); }
.ww-hero__eyebrow { margin-bottom: var(--sp-6); }
.ww-hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 15ch;
  margin: 0 0 var(--sp-6);
}
.ww-hero__title em {
  font-style: normal;
  color: var(--ww-accent);
  background: linear-gradient(transparent 70%, var(--ww-accent-soft) 70%);
}
.ww-hero__lede {
  font-size: var(--fs-xl);
  line-height: 1.5;
  color: var(--ww-ink-soft);
  max-width: 46ch;
  margin: 0 0 var(--sp-8);
}
.ww-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.ww-hero__spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-4);
  margin-top: clamp(2.5rem, 2rem + 3vw, 5rem);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--ww-line);
}
.ww-hero__spec dt { margin-bottom: var(--sp-1); }
.ww-hero__spec dd { margin: 0; font-family: var(--ff-display); font-weight: 600; font-size: var(--fs-lg); }

/* ---------- Sections ---------- */
.ww-section { padding-block: var(--section-y); }
.ww-section--alt { background: var(--ww-surface-2); }
.ww-section__head { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-12); max-width: 60ch; }
.ww-section__title { font-size: var(--fs-3xl); margin: 0; }
.ww-section__lede { color: var(--ww-ink-soft); font-size: var(--fs-lg); margin: 0; }

/* ---------- Page header (inner pages) ---------- */
.ww-page-head { padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 3vw, 4rem); border-bottom: 1px solid var(--ww-line); }
.ww-page-head__title { font-size: var(--fs-3xl); margin: var(--sp-3) 0 0; max-width: 20ch; }

.ww-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.ww-breadcrumbs li { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--ww-ink-soft); }
.ww-breadcrumbs li + li::before { content: "/"; color: var(--ww-line-strong); }
.ww-breadcrumbs a { color: var(--ww-ink-soft); text-decoration: none; }
.ww-breadcrumbs a:hover { color: var(--ww-accent); text-decoration: underline; }

/* ---------- Cards / panels ---------- */
.ww-panel {
  background: var(--ww-surface);
  border: 1px solid var(--ww-line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
}

/* Dev status panel (local only) */
.ww-dev {
  border-style: dashed;
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
}
.ww-dev dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--sp-4); margin: var(--sp-4) 0 0; }
.ww-dev dt { color: var(--ww-ink-soft); font-weight: 500; }
.ww-dev dd { margin: 0; color: var(--ww-ink); }
.ww-dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-right: 0.4rem; background: var(--ww-danger); vertical-align: middle; }
.ww-dot--ok { background: var(--ww-success); }

/* ---------- Footer ---------- */
.ww-footer {
  margin-top: auto;
  background: var(--ww-ink);
  color: #C9CEDA; /* fixed: the footer is always dark */
  padding-block: var(--sp-16) var(--sp-8);
}
:root[data-theme="dark"] .ww-footer { background: #070A12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ww-footer { background: #070A12; } }

.ww-footer a { color: inherit; text-decoration: none; }
.ww-footer a:hover { color: var(--ww-accent-bright); text-decoration: underline; }
.ww-footer__grid { display: grid; gap: var(--sp-10); grid-template-columns: 1fr; }
@media (min-width: 768px) { .ww-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.ww-footer .ww-brand, .ww-footer .ww-brand:hover { color: #F7F5F0; }
.ww-footer .ww-brand__mark { background: #F7F5F0; color: #0E1424; }
.ww-footer .ww-brand__mark::after { border-color: #0E1424; }
.ww-footer__tagline { font-family: var(--ff-display); font-size: var(--fs-2xl); line-height: 1.2; color: #F7F5F0; max-width: 18ch; margin: var(--sp-6) 0 var(--sp-4); }
.ww-footer__heading { font-family: var(--ff-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: #A9B0C2; margin-bottom: var(--sp-4); }
.ww-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.ww-footer__list a { display: inline-block; padding-block: 2px; }
.ww-footer__social { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ww-footer__social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(247 245 240 / 0.2); border-radius: 50%; color: #F7F5F0; font-size: 1.1rem; transition: background-color .15s, border-color .15s; }
.ww-footer__social a:hover, .ww-footer__social a:focus-visible { background: rgb(247 245 240 / 0.1); border-color: rgb(247 245 240 / 0.5); }
.ww-footer__address { margin: var(--sp-4) 0 0; font-style: normal; color: #A9B0C2; font-size: var(--fs-sm); line-height: 1.6; }
.ww-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4);
  margin-top: var(--sp-12); padding-top: var(--sp-6);
  border-top: 1px solid rgb(247 245 240 / 0.12);
  font-size: var(--fs-sm); color: #A9B0C2;
}
.ww-footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; }

/* ---------- Alerts (flash) ---------- */
.ww-alert {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--ww-line);
  border-left: 4px solid var(--ww-blueprint);
  border-radius: var(--r-md);
  background: var(--ww-surface);
}
.ww-alert--success { border-left-color: var(--ww-success); }
.ww-alert--error { border-left-color: var(--ww-danger); }

/* ---------- Error pages ---------- */
.ww-error { padding-block: clamp(4rem, 3rem + 8vw, 10rem); }
.ww-error__code {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(5rem, 3rem + 12vw, 12rem);
  line-height: 0.9; letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ww-ink);
  margin: var(--sp-4) 0 var(--sp-6);
}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .ww-reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.js .ww-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .ww-reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .ww-header, .ww-footer, .ww-skip { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Utilities ---------- */
.ww-measure { max-width: 52ch; }

/* =====================================================================
   CMS sections (Phase 4). Phase 7 refines per-page compositions.
   ===================================================================== */
.ww-measure-wide { max-width: 72ch; }
.ww-section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.ww-section--ink { background: #0E1424; color: #C9CEDA; --ww-accent-text: #FF8A3D; --ww-ink: #F7F5F0; --ww-ink-soft: #A9B0C2; --ww-line: rgb(247 245 240 / 0.14); --ww-surface: #121829; --ww-grid-line: rgb(247 245 240 / 0.06); }
.ww-section--ink .ww-section__title, .ww-section--ink h3 { color: #F7F5F0; }
.ww-section--accent { background: var(--ww-accent); color: var(--ww-accent-ink); --ww-ink: var(--ww-accent-ink); --ww-ink-soft: color-mix(in srgb, var(--ww-accent-ink) 82%, transparent); --ww-line: color-mix(in srgb, var(--ww-accent-ink) 25%, transparent); }
.ww-section--accent .ww-index, .ww-section--accent .ww-label { color: var(--ww-accent-ink); }
.ww-stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ww-btn--light { --btn-bg: #F7F5F0; --btn-fg: #0E1424; --btn-border: #F7F5F0; }
.ww-btn--light:hover { --btn-bg: #FFFFFF; --btn-border: #FFFFFF; color: #0E1424; }

/* Section heading */
.ww-section__head .ww-label { gap: 0.6rem; }
.ww-section__head .ww-index + * { margin-left: 0; }

/* Hero variants */
.ww-hero__grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 992px) { .ww-hero__grid--split { grid-template-columns: 1.1fr 0.9fr; } }
.ww-hero--centered .ww-hero__copy { text-align: center; margin-inline: auto; max-width: 52rem; }
.ww-hero--centered .ww-hero__title, .ww-hero--centered .ww-hero__lede { margin-inline: auto; }
.ww-hero--centered .ww-hero__actions { justify-content: center; }
.ww-hero--centered .ww-hero__eyebrow { justify-content: center; }
.ww-hero--split .ww-hero__title { font-size: var(--fs-3xl); max-width: 18ch; }
.ww-hero__img { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--ww-line); }
.ww-hero--editorial .ww-hero__media { margin-top: var(--sp-8); }

/* Work grid */
.ww-work { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .ww-work--grid, .ww-work--mosaic { grid-template-columns: repeat(2, 1fr); }
  .ww-work--mosaic .ww-work__item:nth-child(3n + 1) { grid-column: span 2; }
  .ww-work--mosaic .ww-work__item:nth-child(3n + 1) .ww-work__card { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; }
  .ww-work--mosaic .ww-work__item:nth-child(3n + 1) .ww-work__media { aspect-ratio: 16 / 10; }
}
@media (min-width: 1200px) { .ww-work--grid { grid-template-columns: repeat(3, 1fr); } }
.ww-work__card { position: relative; height: 100%; background: var(--ww-surface); border: 1px solid var(--ww-line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.ww-work__card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.ww-work__media { aspect-ratio: 4 / 3; background: var(--ww-surface-2); overflow: hidden; }
.ww-work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.ww-work__card:hover .ww-work__media img { transform: scale(1.03); }
.ww-work__placeholder { display: grid; place-items: center; height: 100%; font-family: var(--ff-display); font-size: 4rem; font-weight: 800; color: var(--ww-line-strong); }
.ww-work__body { padding: clamp(1.1rem, 1rem + 0.8vw, 1.75rem); }
.ww-work__title { font-size: var(--fs-xl); margin: var(--sp-2) 0; }
.ww-work__title a { color: var(--ww-ink); text-decoration: none; }
.ww-work__card:hover .ww-work__title a { color: var(--ww-accent); }
.ww-work__text { color: var(--ww-ink-soft); margin-bottom: var(--sp-3); }
.ww-work--list .ww-work__card { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; }
.ww-tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; }
.ww-tags li { font-family: var(--ff-mono); font-size: var(--fs-xs); padding: 0.2rem 0.55rem; border: 1px solid var(--ww-line); border-radius: var(--r-pill); color: var(--ww-ink-soft); }
.ww-tags--lg li { font-size: var(--fs-sm); padding: 0.4rem 0.8rem; background: var(--ww-surface); color: var(--ww-ink); }
.ww-level { color: var(--ww-accent); letter-spacing: 1px; font-size: 0.7em; }

/* Featured project */
.ww-feature { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (min-width: 992px) { .ww-feature { grid-template-columns: 1.3fr 1fr; } }
.ww-feature__media img { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--ww-line); }
.ww-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--sp-4); margin: var(--sp-6) 0; padding-top: var(--sp-4); border-top: 1px solid var(--ww-line); }
.ww-results dt { font-size: var(--fs-sm); color: var(--ww-ink-soft); font-weight: 500; }
.ww-results dd { margin: 0; font-family: var(--ff-display); font-size: var(--fs-2xl); font-weight: 700; }

/* Services */
.ww-services { list-style: none; margin: 0; padding: 0; }
.ww-services--rows .ww-services__item { position: relative; display: grid; grid-template-columns: 3rem 1fr auto; gap: var(--sp-4); align-items: baseline; padding: var(--sp-6) 0; border-top: 1px solid var(--ww-line); }
.ww-services--rows .ww-services__item:last-child { border-bottom: 1px solid var(--ww-line); }
.ww-services__title { font-size: var(--fs-xl); margin: 0 0 var(--sp-1); }
.ww-services__title a { color: var(--ww-ink); text-decoration: none; }
.ww-services__item:hover .ww-services__title a { color: var(--ww-accent); }
.ww-services__body p { margin: 0; color: var(--ww-ink-soft); max-width: 60ch; }
.ww-services__arrow { font-size: 1.3rem; color: var(--ww-ink-soft); transition: transform var(--dur-2) var(--ease-out), color var(--dur-2); }
.ww-services__item:hover .ww-services__arrow { transform: translate(3px, -3px); color: var(--ww-accent); }
.ww-services--cards { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ww-services--cards .ww-services__item { position: relative; padding: var(--sp-6); background: var(--ww-surface); border: 1px solid var(--ww-line); border-radius: var(--r-lg); display: grid; gap: var(--sp-3); }

/* Technologies / industries */
.ww-spec-sheet { display: grid; gap: var(--sp-6); }
.ww-spec-sheet__row { display: grid; gap: var(--sp-3); padding-top: var(--sp-5); border-top: 1px solid var(--ww-line); }
@media (min-width: 768px) { .ww-spec-sheet__row { grid-template-columns: 220px 1fr; align-items: baseline; } }
.ww-spec-sheet__group { font-family: var(--ff-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ww-ink-soft); margin: 0 0 var(--sp-2); font-weight: 500; }
.ww-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: 0; padding: 0; }
.ww-chips a, .ww-chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.1rem; border: 1px solid var(--ww-line-strong); border-radius: var(--r-pill); color: var(--ww-ink); text-decoration: none; font-weight: 500; background: var(--ww-surface); }
.ww-chips a:hover { border-color: var(--ww-accent); color: var(--ww-accent); }

/* Timeline */
.ww-timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--ww-line); }
.ww-timeline__item { position: relative; padding: 0 0 var(--sp-8) var(--sp-4); }
.ww-timeline__item::before { content: ""; position: absolute; left: calc(-1.5rem - 7px); top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--ww-bg); border: 2px solid var(--ww-accent); }
.ww-timeline__when { font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--ww-accent-text); margin-bottom: var(--sp-1); letter-spacing: 0.04em; }
.ww-timeline__title { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.ww-timeline__title span { color: var(--ww-ink-soft); font-weight: 600; }
.ww-certs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.ww-certs li { display: grid; gap: 2px; padding: var(--sp-4) var(--sp-5); background: var(--ww-surface); border: 1px solid var(--ww-line); border-radius: var(--r-md); }
.ww-certs li span:not(.ww-label) { color: var(--ww-ink-soft); font-size: var(--fs-sm); }

/* Logos, quotes */
.ww-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--sp-6) var(--sp-8); align-items: center; }
.ww-logos img { max-height: 44px; width: auto; margin: 0 auto; object-fit: contain; }
.ww-logos--gray img { filter: grayscale(1); opacity: 0.7; transition: filter var(--dur-2), opacity var(--dur-2); }
.ww-logos--gray li:hover img { filter: none; opacity: 1; }
.ww-quotes--grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ww-quote { margin: 0; padding: clamp(1.25rem, 1rem + 1vw, 2rem); background: var(--ww-surface); border: 1px solid var(--ww-line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: var(--sp-4); }
.ww-quote blockquote { margin: 0; font-size: var(--fs-lg); line-height: 1.55; }
.ww-quote blockquote p::before { content: "\201C"; color: var(--ww-accent); font-family: var(--ff-display); font-size: 1.6em; line-height: 0; margin-right: 2px; vertical-align: -0.3em; }
.ww-quote figcaption { display: grid; margin-top: auto; }
.ww-quote figcaption span { color: var(--ww-ink-soft); font-size: var(--fs-sm); }
.ww-quotes--single .ww-quote { border: 0; background: transparent; padding: 0; }
.ww-quotes--single blockquote { font-family: var(--ff-display); font-size: var(--fs-2xl); line-height: 1.3; max-width: 30ch; }

/* Gallery, video */
.ww-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 992px) { .ww-gallery--3 { grid-template-columns: repeat(3, 1fr); } .ww-gallery--4 { grid-template-columns: repeat(4, 1fr); } }
.ww-gallery figure { margin: 0; }
.ww-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.ww-gallery figcaption, .ww-video figcaption { font-size: var(--fs-sm); color: var(--ww-ink-soft); margin-top: var(--sp-2); }
.ww-video .ratio { border-radius: var(--r-lg); overflow: hidden; background: #000; }
.ww-video iframe { border: 0; }

/* Stats, process */
.ww-stats { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; }
.ww-stats__item { display: flex; flex-direction: column; padding-top: var(--sp-4); border-top: 2px solid var(--ww-ink); }
.ww-stats__item dd { order: -1; margin: 0; font-family: var(--ff-display); font-size: var(--fs-3xl); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.ww-stats__item dt { margin-top: var(--sp-2); font-weight: 600; }
.ww-stats__source { font-size: var(--fs-xs); color: var(--ww-ink-soft); margin: var(--sp-2) 0 0; }
.ww-process { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.ww-process__step { position: relative; padding-top: var(--sp-6); border-top: 1px solid var(--ww-line); }
.ww-process__num { position: absolute; top: -0.75rem; left: 0; padding-right: var(--sp-3); background: var(--ww-bg); font-family: var(--ff-mono); font-size: var(--fs-sm); color: var(--ww-accent-text); }
.ww-section--alt .ww-process__num { background: var(--ww-surface-2); }
.ww-section--ink .ww-process__num { background: #0E1424; }
.ww-process__step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.ww-process__step p { color: var(--ww-ink-soft); margin: 0; }

/* FAQ */
.ww-faq__item { border-top: 1px solid var(--ww-line); }
.ww-faq__item:last-child { border-bottom: 1px solid var(--ww-line); }
.ww-faq__item summary { display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center; padding: var(--sp-5) 0; cursor: pointer; font-family: var(--ff-display); font-size: var(--fs-lg); font-weight: 600; list-style: none; }
.ww-faq__item summary::-webkit-details-marker { display: none; }
.ww-faq__item summary .bi { transition: transform var(--dur-2) var(--ease-out); color: var(--ww-accent); flex: none; }
.ww-faq__item[open] summary .bi { transform: rotate(45deg); }
.ww-faq__item .ww-prose { padding: 0 0 var(--sp-6); color: var(--ww-ink-soft); }

/* Pricing */
.ww-plans { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ww-plan { display: flex; flex-direction: column; gap: var(--sp-3); padding: clamp(1.25rem, 1rem + 1vw, 2rem); background: var(--ww-surface); border: 1px solid var(--ww-line); border-radius: var(--r-lg); }
.ww-plan--highlight { border: 2px solid var(--ww-accent); box-shadow: var(--shadow-2); }
.ww-plan__name { font-size: var(--fs-xl); margin: 0; }
.ww-plan__price { font-family: var(--ff-display); font-size: var(--fs-2xl); font-weight: 700; margin: 0; }
.ww-plan__features { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: var(--sp-2); }
.ww-plan__features .bi { color: var(--ww-success); }
.ww-plan .ww-btn { margin-top: auto; }
.ww-footnote-text { font-size: var(--fs-sm); color: var(--ww-ink-soft); margin-top: var(--sp-6); }

/* CTA banner */
.ww-cta { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.ww-cta--accent { background: var(--ww-accent); color: var(--ww-accent-ink); --ww-ink: var(--ww-accent-ink); --ww-ink-soft: var(--ww-accent-ink); --ww-accent-text: var(--ww-accent-ink); }
.ww-cta--ink { background: #0E1424; color: #F7F5F0; --ww-ink: #F7F5F0; --ww-ink-soft: #A9B0C2; --ww-accent-text: #FF8A3D; --ww-line: rgb(247 245 240 / 0.14); }
.ww-cta--outline .ww-cta__inner { border: 2px solid var(--ww-ink); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.ww-cta__inner { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 992px) { .ww-cta__inner { grid-template-columns: 1fr auto; } }
.ww-cta__title { font-size: var(--fs-3xl); margin: 0; color: inherit; max-width: 20ch; }
.ww-cta__text { margin: var(--sp-3) 0 0; opacity: 0.9; max-width: 55ch; font-size: var(--fs-lg); }
.ww-cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.ww-cta--accent .ww-btn--ghost, .ww-cta--ink .ww-btn--ghost { --btn-fg: currentColor; }
.ww-cta--accent .ww-btn--ghost:hover, .ww-cta--ink .ww-btn--ghost:hover { --btn-bg: rgb(255 255 255 / 0.12); }

/* Articles */
.ww-articles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ww-article-card { position: relative; display: grid; gap: var(--sp-2); }
.ww-article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--sp-2); }
.ww-article-card h3 { font-size: var(--fs-lg); margin: 0; }
.ww-article-card h3 a { color: var(--ww-ink); text-decoration: none; }
.ww-article-card:hover h3 a { color: var(--ww-accent); }
.ww-article-card p:last-child { color: var(--ww-ink-soft); margin: 0; }

/* Prose (sanitized rich text) */
.ww-prose { font-size: var(--fs-lg); line-height: 1.7; }
.ww-prose > * + * { margin-top: 1em; }
.ww-prose h2 { font-size: var(--fs-2xl); margin-top: 1.8em; }
.ww-prose h3 { font-size: var(--fs-xl); margin-top: 1.5em; }
.ww-prose ul, .ww-prose ol { padding-left: 1.3em; }
.ww-prose li + li { margin-top: 0.35em; }
.ww-prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--ww-accent-bright); font-family: var(--ff-display); font-size: var(--fs-xl); }
.ww-prose img { border-radius: var(--r-md); height: auto; }
.ww-prose figure { margin: 1.5em 0; }
.ww-prose figcaption { font-size: var(--fs-sm); color: var(--ww-ink-soft); margin-top: var(--sp-2); }
.ww-prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); display: block; overflow-x: auto; }
.ww-prose th, .ww-prose td { border: 1px solid var(--ww-line); padding: 0.6rem 0.8rem; text-align: left; }
.ww-prose code { font-family: var(--ff-mono); font-size: 0.88em; background: var(--ww-surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
.ww-prose pre { background: var(--ww-surface-2); padding: var(--sp-4); border-radius: var(--r-md); overflow-x: auto; }

/* Preview banner */
.ww-preview-bar { position: sticky; top: 0; z-index: 1100; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); align-items: center; padding: 0.55rem 1rem; background: #0E1424; color: #F7F5F0; font-size: var(--fs-sm); }
.ww-preview-bar strong { color: #FF9A55; font-family: var(--ff-mono); letter-spacing: 0.06em; }
.ww-preview-bar a { color: #F7F5F0; }
@media (max-width: 767.98px) { .ww-only-desktop { display: none !important; } }
@media (min-width: 768px) { .ww-only-mobile { display: none !important; } }

/* =====================================================================
   Portfolio (Phase 5): listing, filters, case study, gallery, lightbox
   ===================================================================== */

/* ---- Listing: category rail ---- */
.ww-catnav { border-bottom: 1px solid var(--ww-line); background: var(--ww-bg); }
.ww-catnav__list { list-style: none; display: flex; gap: var(--sp-2); margin: 0; padding: var(--sp-3) 0; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ww-catnav__list--sub { padding-top: 0; }
.ww-catnav__link { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.45rem 1rem; white-space: nowrap; border: 1px solid var(--ww-line); border-radius: var(--r-pill); color: var(--ww-ink); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); background: var(--ww-surface); transition: border-color var(--dur-1), color var(--dur-1), background var(--dur-1); }
.ww-catnav__link:hover { border-color: var(--ww-accent); color: var(--ww-accent); }
.ww-catnav__link[aria-current="page"] { background: var(--ww-ink); border-color: var(--ww-ink); color: var(--ww-bg); }
.ww-catnav__list--sub .ww-catnav__link { min-height: 36px; font-size: var(--fs-xs); background: transparent; }
.ww-catnav__list--sub .ww-catnav__link[aria-current="page"] { background: var(--ww-accent); border-color: var(--ww-accent); color: var(--ww-accent-ink); }
.ww-catnav__count { font-family: var(--ff-mono); font-size: 0.72rem; opacity: 0.7; }

/* ---- Listing: filter bar ---- */
.ww-filters { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; align-items: end; margin-bottom: var(--sp-6); padding: var(--sp-4); border: 1px solid var(--ww-line); border-radius: var(--r-lg); background: var(--ww-surface); }
@media (min-width: 768px) { .ww-filters { grid-template-columns: minmax(0, 1fr) auto minmax(150px, 190px) auto; } }
.ww-filters__search { position: relative; }
.ww-filters__search .bi { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--ww-ink-soft); pointer-events: none; }
.ww-input, .ww-select { width: 100%; min-height: 44px; padding: 0.55rem 0.9rem; border: 1px solid var(--ww-line-strong); border-radius: var(--r-md); background: var(--ww-bg); color: var(--ww-ink); font: inherit; font-size: var(--fs-sm); }
.ww-filters__search .ww-input { padding-left: 2.4rem; }
.ww-input:focus-visible, .ww-select:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--ww-blueprint); }
.ww-filters__label { display: block; font-family: var(--ff-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ww-ink-soft); margin-bottom: 0.35rem; }
.ww-filters__more { position: relative; }
.ww-filters__more > summary { list-style: none; cursor: pointer; width: 100%; }
.ww-filters__more > summary::-webkit-details-marker { display: none; }
.ww-filters__grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; margin-top: var(--sp-3); }
@media (min-width: 576px) { .ww-filters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .ww-filters__more[open] > .ww-filters__grid { position: absolute; z-index: 20; right: 0; top: calc(100% + 0.5rem); width: min(560px, 80vw); padding: var(--sp-4); background: var(--ww-surface); border: 1px solid var(--ww-line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
}
.ww-filters.is-enhanced .ww-filters__apply { justify-self: start; }
.ww-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin: calc(-1 * var(--sp-2)) 0 var(--sp-6); }
.ww-active-filters ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; }
.ww-active-filters a:not(.ww-link) { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 36px; padding: 0.3rem 0.5rem 0.3rem 0.85rem; border-radius: var(--r-pill); background: var(--ww-accent-soft); color: var(--ww-ink); text-decoration: none; font-size: var(--fs-sm); }
.ww-active-filters a:not(.ww-link):hover { background: var(--ww-accent); color: var(--ww-accent-ink); }

/* ---- Listing: cards ---- */
.ww-work__media { position: relative; }
.ww-work__flags { position: absolute; top: var(--sp-3); left: var(--sp-3); display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.ww-flag { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.55rem; border-radius: var(--r-sm); background: rgb(14 20 36 / 0.78); color: #F7F5F0; backdrop-filter: blur(4px); }
.ww-flag--accent { background: var(--ww-accent); color: var(--ww-accent-ink); }
.ww-work--listing .ww-work__media { aspect-ratio: 16 / 11; }

/* ---- Listing: pagination ---- */
.ww-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-12); padding-top: var(--sp-6); border-top: 1px solid var(--ww-line); }
.ww-pagination__pages { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: 0; padding: 0; font-family: var(--ff-mono); }
.ww-pagination__pages a, .ww-pagination__pages span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: var(--r-md); color: var(--ww-ink); text-decoration: none; }
.ww-pagination__pages a:hover { background: var(--ww-surface-2); }
.ww-pagination__pages [aria-current="page"] { background: var(--ww-ink); color: var(--ww-bg); }
.ww-pagination__pages li[aria-hidden] { display: inline-grid; place-items: center; min-width: 28px; color: var(--ww-ink-soft); }
.ww-pagination__step { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-3); color: var(--ww-ink); text-decoration: none; font-weight: 500; }
.ww-pagination__step:hover { color: var(--ww-accent); }
.ww-pagination__step.is-disabled { color: var(--ww-line-strong); pointer-events: none; }
@media (max-width: 575.98px) { .ww-pagination__pages { order: 3; width: 100%; justify-content: center; } }

/* ---- Empty states ---- */
.ww-empty-state { max-width: 640px; margin-inline: auto; text-align: center; padding: clamp(2rem, 1rem + 4vw, 4rem) var(--sp-4); border: 1px dashed var(--ww-line-strong); border-radius: var(--r-lg); }
.ww-empty-state .ww-section__lede { margin-inline: auto; margin-top: var(--sp-3); }
.ww-empty-state__mark { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--sp-4); border-radius: 50%; background: var(--ww-accent-soft); color: var(--ww-accent); font-size: 1.6rem; }
.ww-empty-state--compact { padding: var(--sp-10) var(--sp-4); }
.ww-empty-state--compact h3 { font-size: var(--fs-xl); }

/* ---- Case study: hero ---- */
.ww-case__hero { padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) 0; }
.ww-case__intro { display: grid; gap: var(--sp-4); max-width: 900px; margin-top: var(--sp-6); }
.ww-case__title { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.025em; margin: 0; max-width: 18ch; text-wrap: balance; }
.ww-case__lede { font-size: var(--fs-xl); color: var(--ww-ink-soft); max-width: 46ch; margin: 0; }
.ww-case__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.ww-case__actions:empty { display: none; }
.ww-case__tech { margin-top: var(--sp-2); }
.ww-case__tech .bi { color: var(--ww-accent); }
.ww-case__cover { position: relative; margin: clamp(2rem, 1.5rem + 3vw, 4rem) 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; border: 1px solid var(--ww-line); border-bottom: 0; background: var(--ww-surface-2); aspect-ratio: 16 / 9; }
.ww-case__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ww-case__cover::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); pointer-events: none; }

/* ---- Case study: facts strip ---- */
.ww-case__facts { --facts-line: rgb(247 245 240 / 0.14); background: #0E1424; color: #F7F5F0; border-block: 1px solid var(--ww-line); }
.ww-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
@media (min-width: 768px) { .ww-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ww-facts__item { padding: var(--sp-5) var(--sp-4) var(--sp-5) 0; border-top: 1px solid var(--facts-line); min-width: 0; }
@media (min-width: 768px) { .ww-facts__item { padding-inline: 0 var(--sp-6); } }
.ww-facts dt { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(247 245 240 / 0.62); font-weight: 500; margin-bottom: 0.3rem; }
.ww-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ww-facts a { color: #F7F5F0; text-decoration-color: var(--ww-accent-bright); text-underline-offset: 3px; }
.ww-facts a:hover { color: var(--ww-accent-bright); }

/* ---- Case study: layout + TOC ---- */
.ww-case__layout { display: grid; gap: var(--sp-8); padding-block: var(--section-y); }
@media (min-width: 992px) { .ww-case__layout { grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2.5rem, 2rem + 3vw, 5rem); } }
.ww-case__layout:has(> .ww-case__body:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.ww-case__toc { display: none; }
@media (min-width: 992px) {
  .ww-case__toc { display: block; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
}
.ww-case__toc-title { font-family: var(--ff-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ww-ink-soft); margin-bottom: var(--sp-3); }
.ww-case__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ww-line); }
.ww-case__toc a { display: flex; gap: var(--sp-3); padding: 0.45rem 0 0.45rem var(--sp-4); margin-left: -1px; border-left: 2px solid transparent; color: var(--ww-ink-soft); text-decoration: none; font-size: var(--fs-sm); line-height: 1.35; }
.ww-case__toc a:hover, .ww-case__toc a.is-active { color: var(--ww-ink); border-left-color: var(--ww-accent); }
.ww-case__toc .ww-index { font-size: 0.7rem; padding-top: 0.15rem; }
.ww-case__body { display: grid; gap: clamp(3rem, 2rem + 3vw, 5.5rem); min-width: 0; }
.ww-case__block { scroll-margin-top: 96px; min-width: 0; }
.ww-case__h { display: flex; align-items: baseline; gap: var(--sp-4); font-size: var(--fs-2xl); margin: 0 0 var(--sp-6); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--ww-line); }
.ww-case__h .ww-index { font-size: var(--fs-sm); }
.ww-case__block .ww-prose { max-width: 70ch; }
.ww-case__block .ww-prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.ww-case__block .ww-prose table { width: 100%; display: block; overflow-x: auto; }

/* ---- Case study: features ---- */
.ww-case-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--ww-line); border: 1px solid var(--ww-line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 768px) { .ww-case-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ww-case-features li { display: flex; gap: var(--sp-4); padding: var(--sp-6); background: var(--ww-surface); }
.ww-case-features__icon { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--ww-accent-soft); color: var(--ww-accent); font-size: 1.25rem; }
.ww-case-features h3 { font-size: var(--fs-lg); margin: 0 0 var(--sp-1); }
.ww-case-features p { margin: 0; color: var(--ww-ink-soft); }

/* ---- Case study: timeline, stack, results, quote, services ---- */
.ww-case-timeline .ww-timeline__item:last-child { padding-bottom: 0; }
.ww-case-timeline__item--in_progress::before { background: var(--ww-accent); }
.ww-case-timeline__item--planned::before { border-style: dashed; border-color: var(--ww-line-strong); }
.ww-case-stack { display: grid; gap: var(--sp-5); }
.ww-case-stack__row { display: grid; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--ww-line); }
@media (min-width: 768px) { .ww-case-stack__row { grid-template-columns: 200px 1fr; align-items: baseline; } }
.ww-case-stack .ww-tags .bi { color: var(--ww-accent); }
.ww-case-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-4); margin: 0; }
.ww-case-results > div { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-6); border: 1px solid var(--ww-line); border-radius: var(--r-lg); background: var(--ww-surface); }
.ww-case-results dt { order: 2; font-weight: 600; }
.ww-case-results__value { order: 1; margin: 0; font-family: var(--ff-display); font-size: var(--fs-3xl); line-height: 1; font-weight: 800; color: var(--ww-accent); letter-spacing: -0.02em; }
.ww-case-results__note { order: 3; margin: 0; color: var(--ww-ink-soft); font-size: var(--fs-sm); }
.ww-case-results__source { margin: var(--sp-4) 0 0; font-size: var(--fs-sm); color: var(--ww-ink-soft); }
.ww-case-results__source .bi { color: var(--ww-success); }
.ww-case-quote { margin: 0 0 var(--sp-6); padding: clamp(1.5rem, 1rem + 2vw, 3rem); border-left: 4px solid var(--ww-accent); background: var(--ww-surface); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.ww-case-quote blockquote { margin: 0 0 var(--sp-5); font-family: var(--ff-display); font-size: var(--fs-xl); line-height: 1.4; font-weight: 500; }
.ww-case-quote figcaption { display: flex; align-items: center; gap: var(--sp-3); }
.ww-case-quote figcaption img { border-radius: 50%; object-fit: cover; }
.ww-case-quote figcaption > span { display: grid; }
.ww-case-quote figcaption > span > span { color: var(--ww-ink-soft); font-size: var(--fs-sm); }
.ww-case-services { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.ww-case-services li > a, .ww-case-services li > .bi { display: flex; align-items: center; gap: var(--sp-4); }
.ww-case-services li { padding: var(--sp-4) var(--sp-5); border: 1px solid var(--ww-line); border-radius: var(--r-md); background: var(--ww-surface); }
.ww-case-services li:has(> a) { padding: 0; }
.ww-case-services a { padding: var(--sp-4) var(--sp-5); color: var(--ww-ink); text-decoration: none; }
.ww-case-services a:hover { color: var(--ww-accent); }
.ww-case-services .bi { color: var(--ww-accent); font-size: 1.2rem; }
.ww-case-services strong + span { display: block; color: var(--ww-ink-soft); font-size: var(--fs-sm); }
.ww-case-services li:not(:has(> a)) { display: flex; align-items: center; gap: var(--sp-4); }

/* ---- Gallery viewer ---- */
.ww-viewer { display: grid; gap: var(--sp-3); }
.ww-viewer__stage { position: relative; border: 1px solid var(--ww-line); border-radius: var(--r-lg); background: var(--ww-surface-2); overflow: hidden; }
.ww-viewer__track { list-style: none; margin: 0; padding: 0; touch-action: pan-y; }
.ww-viewer__slide figure { margin: 0; }
.ww-viewer__zoom { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; aspect-ratio: 16 / 10; }
.ww-viewer__zoom img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ww-viewer__zoom:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ww-blueprint); }
.ww-viewer__slide figcaption { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); color: var(--ww-ink-soft); border-top: 1px solid var(--ww-line); background: var(--ww-surface); }
.ww-viewer__controls { position: absolute; right: var(--sp-3); bottom: var(--sp-3); display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1); border-radius: var(--r-pill); background: var(--ww-surface); box-shadow: var(--shadow-2); }
.ww-viewer__slide:has(figcaption) ~ .ww-viewer__controls, .ww-viewer__stage:has(figcaption) .ww-viewer__controls { bottom: calc(var(--sp-3) + 2.9rem); }
.ww-viewer__controls .ww-icon-btn { border: 0; }
.ww-viewer__count { font-family: var(--ff-mono); font-size: var(--fs-xs); min-width: 4.5ch; text-align: center; }
.ww-viewer__thumbs { position: relative; list-style: none; display: flex; gap: var(--sp-2); margin: 0; padding: 0 0 var(--sp-1); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ww-viewer__thumbs li { flex: 0 0 auto; scroll-snap-align: center; }
.ww-viewer__thumb { display: block; width: 104px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: var(--r-md); overflow: hidden; background: var(--ww-surface-2); opacity: 0.6; cursor: pointer; transition: opacity var(--dur-1), border-color var(--dur-1); }
.ww-viewer__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ww-viewer__thumb:hover, .ww-viewer__thumb[aria-current="true"] { opacity: 1; }
.ww-viewer__thumb[aria-current="true"] { border-color: var(--ww-accent); }

/* ---- Lightbox ---- */
.ww-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 11 20 / 0.96); color: #F7F5F0; }
.ww-lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.ww-lightbox::backdrop { background: rgb(8 11 20 / 0.9); }
.ww-lightbox__bar { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); }
.ww-lightbox__count { margin-right: auto; font-family: var(--ff-mono); font-size: var(--fs-sm); color: rgb(247 245 240 / 0.75); }
.ww-lightbox__btn, .ww-lightbox__nav { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgb(247 245 240 / 0.2); border-radius: 50%; background: rgb(247 245 240 / 0.06); color: #F7F5F0; font-size: 1.15rem; cursor: pointer; }
.ww-lightbox__btn:hover, .ww-lightbox__nav:hover { background: rgb(247 245 240 / 0.16); }
.ww-lightbox__btn:focus-visible, .ww-lightbox__nav:focus-visible { outline: 3px solid var(--ww-accent-bright); outline-offset: 2px; }
.ww-lightbox__figure { margin: 0; display: grid; grid-template-rows: 1fr auto; min-height: 0; padding: 0 var(--sp-4) var(--sp-4); touch-action: pan-y; }
.ww-lightbox__figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.ww-lightbox__figure figcaption { text-align: center; padding-top: var(--sp-3); color: rgb(247 245 240 / 0.8); font-size: var(--fs-sm); }
.ww-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.ww-lightbox__nav--prev { left: var(--sp-3); }
.ww-lightbox__nav--next { right: var(--sp-3); }
@media (max-width: 575.98px) { .ww-lightbox__nav { top: auto; bottom: var(--sp-4); transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .ww-work__card, .ww-work__media img, .ww-catnav__link, .ww-viewer__thumb { transition: none; }
}
@media (max-width: 575.98px) {
  .ww-viewer__controls { position: static; justify-content: center; margin: var(--sp-2) auto; width: max-content; box-shadow: none; background: transparent; }
}

/* =====================================================================
   Phase 6: services, industries, technologies, profile, clients
   ===================================================================== */
.ww-section__head--compact { margin-bottom: var(--sp-8); gap: var(--sp-2); }

/* ---- Services index: category "spec sheet" ---- */
.ww-svc-index { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); }
.ww-svc-group { display: grid; gap: var(--sp-6); scroll-margin-top: 96px; }
@media (min-width: 992px) { .ww-svc-group { grid-template-columns: 300px minmax(0, 1fr); gap: var(--sp-12); } }
.ww-svc-group__head h2 { font-size: var(--fs-2xl); margin: var(--sp-2) 0; }
.ww-svc-group__head p:not(.ww-label) { color: var(--ww-ink-soft); margin: 0; }
@media (min-width: 992px) { .ww-svc-group__head { position: sticky; top: 96px; align-self: start; } }
.ww-svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ww-line); }
.ww-svc-list__item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center; padding: var(--sp-5) var(--sp-2); border-bottom: 1px solid var(--ww-line); transition: background var(--dur-1); }
@media (min-width: 768px) { .ww-svc-list__item { grid-template-columns: auto minmax(0, 1fr) auto auto; } }
.ww-svc-list__item:hover { background: var(--ww-surface); }
.ww-svc-list__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--ww-surface-2); color: var(--ww-accent); font-size: 1.2rem; }
.ww-svc-list__item.is-featured .ww-svc-list__icon { background: var(--ww-accent); color: var(--ww-accent-ink); }
.ww-svc-list__body h3 { font-size: var(--fs-lg); margin: 0 0 0.2rem; }
.ww-svc-list__body h3 a { color: var(--ww-ink); text-decoration: none; }
.ww-svc-list__item:hover h3 a { color: var(--ww-accent); }
.ww-svc-list__body p { margin: 0; color: var(--ww-ink-soft); font-size: var(--fs-sm); }
.ww-svc-list__price { display: none; font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--ww-ink-soft); white-space: nowrap; }
@media (min-width: 768px) { .ww-svc-list__price { display: block; } }
.ww-svc-list__arrow { color: var(--ww-ink-soft); transition: transform var(--dur-2) var(--ease-out); }
.ww-svc-list__item:hover .ww-svc-list__arrow { transform: translateX(4px); color: var(--ww-accent); }

/* ---- Service / industry hero ---- */
.ww-svc__hero { padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem); border-bottom: 1px solid var(--ww-line); }
.ww-svc__hero-grid { display: grid; gap: var(--sp-8); align-items: center; margin-top: var(--sp-6); }
@media (min-width: 992px) { .ww-svc__hero-grid.has-cover { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.ww-svc__title { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.025em; margin: var(--sp-3) 0 0; max-width: 16ch; text-wrap: balance; }
.ww-svc__lede { font-size: var(--fs-xl); color: var(--ww-ink-soft); max-width: 44ch; margin: var(--sp-4) 0 0; }
.ww-svc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-6); }
.ww-svc__price { display: inline-grid; padding: 0.5rem 1rem; border: 1px solid var(--ww-line-strong); border-radius: var(--r-md); background: var(--ww-surface); font-weight: 600; }
.ww-svc__price span { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ww-ink-soft); font-weight: 500; }
.ww-svc__cover { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--ww-line); aspect-ratio: 4 / 3; background: var(--ww-surface-2); }
.ww-svc__cover img { width: 100%; height: 100%; object-fit: cover; }
.ww-svc__hero--process_led .ww-svc__title, .ww-svc__hero--technical .ww-svc__title { font-family: var(--ff-display); }
.ww-svc__hero--technical { background: linear-gradient(180deg, var(--ww-surface-2), var(--ww-bg)); }
.ww-svc__opening { display: grid; gap: var(--sp-8); }
@media (min-width: 992px) { .ww-svc__opening { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.ww-svc__opening > .ww-prose { max-width: 68ch; }
.ww-svc__promise { position: relative; padding: var(--sp-6) var(--sp-6) var(--sp-6) var(--sp-8); border-left: 4px solid var(--ww-accent); background: var(--ww-surface); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.ww-svc__promise .bi { position: absolute; left: 0.75rem; top: 0.75rem; color: var(--ww-accent); font-size: 1.4rem; opacity: 0.5; }
.ww-svc__promise p { margin: 0; font-family: var(--ff-display); font-size: var(--fs-xl); line-height: 1.35; font-weight: 600; }

/* ---- Service parts ---- */
.ww-svc-problems { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
@media (min-width: 768px) { .ww-svc-problems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ww-svc-problems li { display: flex; gap: var(--sp-4); padding: var(--sp-5) 0; border-top: 1px solid var(--ww-line); }
.ww-svc-problems__n { font-family: var(--ff-mono); font-size: var(--fs-sm); color: var(--ww-accent); padding-top: 0.2rem; }
.ww-svc-problems h3 { font-size: var(--fs-lg); margin: 0 0 var(--sp-1); }
.ww-svc-problems p { margin: 0; color: var(--ww-ink-soft); }
.ww-svc-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3) var(--sp-8); }
@media (min-width: 768px) { .ww-svc-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ww-svc-checks li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.ww-svc-checks .bi { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ww-accent-soft); color: var(--ww-accent); font-size: 0.9rem; margin-top: 0.1rem; }
.ww-svc-checks strong { display: block; }
.ww-svc-checks span { color: var(--ww-ink-soft); font-size: var(--fs-sm); }
.ww-svc-pricing { display: grid; gap: var(--sp-4); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 2px solid var(--ww-ink); border-radius: var(--r-lg); background: var(--ww-surface); max-width: 760px; }
@media (min-width: 768px) { .ww-svc-pricing { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sp-10); } }
.ww-svc-pricing__label { font-family: var(--ff-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ww-ink-soft); }
.ww-svc-pricing__value { margin: var(--sp-1) 0 0; font-family: var(--ff-display); font-size: var(--fs-3xl); font-weight: 800; line-height: 1.05; }
.ww-svc-pricing__note { margin: 0; color: var(--ww-ink-soft); }
.ww-svc__trust { display: grid; gap: var(--sp-8); }
@media (min-width: 992px) { .ww-svc__trust { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; } }
.ww-svc__trust .ww-case-quote { margin: 0; }

/* ---- Industries ---- */
.ww-ind-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ww-ind-card { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-6); border: 1px solid var(--ww-line); border-radius: var(--r-lg); background: var(--ww-surface); transition: border-color var(--dur-1), transform var(--dur-2) var(--ease-out); }
.ww-ind-card:hover { border-color: var(--ww-accent); transform: translateY(-2px); }
.ww-ind-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--ww-accent-soft); color: var(--ww-accent); font-size: 1.3rem; margin-bottom: var(--sp-2); }
.ww-ind-card h2 { font-size: var(--fs-xl); margin: 0; }
.ww-ind-card h2 a { color: var(--ww-ink); text-decoration: none; }
.ww-ind-card p { color: var(--ww-ink-soft); margin: 0; }
.ww-ind-card__meta { margin-top: auto; padding-top: var(--sp-3); font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--ww-accent); }
.ww-ind-hero__proof { margin: var(--sp-5) 0 0; font-size: var(--fs-sm); color: var(--ww-ink-soft); }
.ww-ind-hero__proof .bi { color: var(--ww-success); }
.ww-ind-split { display: grid; gap: var(--sp-10); }
@media (min-width: 992px) { .ww-ind-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-16); } }
.ww-ind-split__col ul { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-5); }
.ww-ind-split__col li { display: flex; gap: var(--sp-4); }
.ww-ind-split__col li > .bi { flex: none; font-size: 1.25rem; color: var(--ww-accent); margin-top: 0.15rem; }
.ww-ind-split__col--challenge li > .bi { color: var(--ww-warning); }
.ww-ind-split__col h3 { font-size: var(--fs-lg); margin: 0 0 var(--sp-1); }
.ww-ind-split__col p { margin: 0; color: var(--ww-ink-soft); }

/* ---- Technology directory ---- */
.ww-tech-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ww-tech { display: flex; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--ww-line); border-radius: var(--r-md); background: var(--ww-surface); }
.ww-tech__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--ww-surface-2); color: var(--ww-accent); font-size: 1.2rem; }
.ww-tech__icon img { width: 28px; height: 28px; object-fit: contain; }
.ww-tech__body { display: grid; gap: 0.2rem; min-width: 0; }
.ww-tech__desc { color: var(--ww-ink-soft); font-size: var(--fs-sm); }
.ww-tech__link { font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--ww-accent); text-decoration: none; }
.ww-tech__link:hover { text-decoration: underline; }

/* ---- Profile & career ---- */
.ww-profile-hero__grid { display: grid; gap: var(--sp-8); align-items: center; margin-top: var(--sp-6); }
@media (min-width: 768px) { .ww-profile-hero__grid:has(.ww-profile-hero__photo) { grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); gap: var(--sp-12); } }
.ww-profile-hero__photo { margin: 0; max-width: 320px; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--ww-line); background: var(--ww-surface-2); box-shadow: 12px 12px 0 var(--ww-accent-soft); }
.ww-profile-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.ww-profile-stats { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-10); margin: var(--sp-6) 0; }
.ww-profile-stats dt { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ww-ink-soft); font-weight: 500; }
.ww-profile-stats dd { margin: 0.2rem 0 0; font-family: var(--ff-display); font-size: var(--fs-xl); font-weight: 700; }
.ww-profile-stats dd span { font-family: var(--ff-body); font-size: var(--fs-base); font-weight: 500; color: var(--ww-ink-soft); }
.ww-social { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-6) 0 0; padding: 0; }
.ww-social a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0.35rem 0.85rem; border: 1px solid var(--ww-line); border-radius: var(--r-pill); color: var(--ww-ink); text-decoration: none; font-size: var(--fs-sm); background: var(--ww-surface); }
.ww-social a:hover { border-color: var(--ww-accent); color: var(--ww-accent); }
.ww-career .ww-timeline__item.is-current::before { background: var(--ww-accent); }
.ww-career__part { margin-top: var(--sp-4); }
.ww-career__part .ww-career__h { font-family: var(--ff-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ww-ink-soft); margin-bottom: var(--sp-2); font-weight: 500; }
.ww-career__part .ww-prose { font-size: var(--fs-base); }
.ww-career__projects { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); }

/* ---- Clients & testimonials ---- */
.ww-client-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); background: var(--ww-line); border: 1px solid var(--ww-line); border-radius: var(--r-lg); overflow: hidden; }
.ww-client { display: grid; justify-items: center; gap: var(--sp-2); padding: var(--sp-8) var(--sp-4); background: var(--ww-surface); text-align: center; }
.ww-client__logo { display: grid; place-items: center; height: 64px; width: 100%; }
.ww-client__logo img { max-height: 56px; max-width: 160px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: filter var(--dur-2), opacity var(--dur-2); }
.ww-client:hover .ww-client__logo img { filter: none; opacity: 1; }
.ww-client__logo > span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ww-surface-2); font-family: var(--ff-display); font-weight: 800; font-size: 1.4rem; color: var(--ww-ink-soft); }
.ww-client__name { font-weight: 600; }
.ww-client__name a { color: var(--ww-ink); }
.ww-client__meta { font-size: var(--fs-xs); color: var(--ww-ink-soft); font-family: var(--ff-mono); }
.ww-quote-wall { columns: 1; column-gap: var(--sp-6); }
@media (min-width: 768px) { .ww-quote-wall { columns: 2; } }
@media (min-width: 1200px) { .ww-quote-wall { columns: 3; } }
.ww-quote-wall .ww-case-quote { break-inside: avoid; margin-bottom: var(--sp-6); }
.ww-quote-wall .ww-case-quote blockquote { font-size: var(--fs-lg); }
.ww-case-quote figcaption > span > span a { color: var(--ww-accent); }

@media (prefers-reduced-motion: reduce) { .ww-svc-list__item, .ww-svc-list__arrow, .ww-ind-card, .ww-client__logo img { transition: none; } }
@media (min-width: 768px) { .ww-case-features li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* =====================================================================
   Phase 7: contact & quote forms, thank-you, blog
   ===================================================================== */
.ww-contact { display: grid; gap: var(--sp-10); align-items: start; }
@media (min-width: 992px) { .ww-contact { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: var(--sp-16); } }
.ww-contact__form { min-width: 0; }

.ww-form { display: grid; gap: var(--sp-5); }
.ww-form__grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .ww-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ww-field { display: grid; gap: 0.4rem; min-width: 0; align-content: start; }
.ww-field > label, .ww-choice legend { font-weight: 600; font-size: var(--fs-sm); }
.ww-field > label span[aria-hidden] { color: var(--ww-accent); }
.ww-form textarea.ww-input { min-height: 140px; resize: vertical; line-height: 1.55; }
.ww-form .ww-input, .ww-form .ww-select { background: var(--ww-surface); font-size: var(--fs-base); min-height: 48px; }
.ww-field.has-error .ww-input, .ww-field.has-error .ww-select { border-color: var(--ww-danger); }
.ww-field__error { margin: 0; color: var(--ww-danger); font-size: var(--fs-sm); font-weight: 500; }
.ww-field__help { margin: 0; color: var(--ww-ink-soft); font-size: var(--fs-sm); }
.ww-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ww-choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: center; }
.ww-choice legend { float: left; width: 100%; margin-bottom: var(--sp-2); }
.ww-choice__opt { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.4rem 0.9rem; border: 1px solid var(--ww-line-strong); border-radius: var(--r-pill); background: var(--ww-surface); cursor: pointer; font-size: var(--fs-sm); }
.ww-choice__opt:has(input:checked) { border-color: var(--ww-accent); background: var(--ww-accent-soft); }
.ww-choice__opt input { accent-color: var(--ww-accent); }
.ww-form-consent { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; padding: var(--sp-4); border-radius: var(--r-md); background: var(--ww-surface-2); font-size: var(--fs-sm); }
.ww-form-consent input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--ww-accent); }
.ww-form-consent.has-error { outline: 2px solid var(--ww-danger); }
.ww-form-consent .ww-field__error { grid-column: 2; }
.ww-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.ww-form button[disabled] { opacity: 0.7; cursor: progress; }

.ww-contact-card { display: grid; gap: var(--sp-5); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 1px solid var(--ww-line); border-radius: var(--r-lg); background: var(--ww-surface); }
@media (min-width: 992px) { .ww-contact-card { position: sticky; top: 96px; } }
.ww-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.ww-contact-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.ww-contact-list li > .bi { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--ww-accent-soft); color: var(--ww-accent); font-size: 1.1rem; }
.ww-contact-list li > span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.ww-contact-list a { color: var(--ww-ink); font-weight: 600; }
.ww-contact-list a:hover { color: var(--ww-accent); }
.ww-contact-list__k { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ww-ink-soft); }
.ww-contact-next { padding-top: var(--sp-4); border-top: 1px solid var(--ww-line); }
.ww-contact-next ol, .ww-quote-steps { margin: var(--sp-2) 0 0; padding-left: 1.2rem; display: grid; gap: var(--sp-2); color: var(--ww-ink-soft); font-size: var(--fs-sm); }
.ww-quote-steps { list-style: none; padding: 0; counter-reset: q; gap: var(--sp-4); }
.ww-quote-steps li { counter-increment: q; display: grid; gap: 0.15rem; padding-left: 2.4rem; position: relative; }
.ww-quote-steps li::before { content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 0.1rem; font-family: var(--ff-mono); color: var(--ww-accent); font-size: var(--fs-sm); }
.ww-quote-steps strong { color: var(--ww-ink); font-size: var(--fs-base); }

.ww-thanks { max-width: 640px; margin: 0 auto; text-align: center; padding-block: var(--sp-12); }
.ww-thanks .ww-page-head__title { margin-inline: auto; }
.ww-thanks .ww-empty-state__mark { background: color-mix(in srgb, var(--ww-success) 16%, transparent); color: var(--ww-success); }

/* ---- Blog ---- */
.ww-blog-search { display: flex; gap: var(--sp-2); max-width: 520px; margin-bottom: var(--sp-8); }
.ww-post-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ww-post-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--ww-line); border-radius: var(--r-lg); background: var(--ww-surface); overflow: hidden; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.ww-post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.ww-post-card__media { aspect-ratio: 16 / 9; background: var(--ww-surface-2); overflow: hidden; }
.ww-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ww-post-card__body { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); flex: 1; }
.ww-post-card__title { font-size: var(--fs-xl); margin: 0; }
.ww-post-card__title a { color: var(--ww-ink); text-decoration: none; }
.ww-post-card:hover .ww-post-card__title a { color: var(--ww-accent); }
.ww-post-card p:not(.ww-label) { margin: 0; color: var(--ww-ink-soft); }
.ww-post-card__meta { margin-top: auto; padding-top: var(--sp-2); font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--ww-ink-soft); }
.ww-pagination__info { font-family: var(--ff-mono); font-size: var(--fs-sm); color: var(--ww-ink-soft); }
.ww-article__head { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem); border-bottom: 1px solid var(--ww-line); }
.ww-article__narrow { max-width: 880px; }
.ww-article__title { font-size: var(--fs-3xl); line-height: 1.1; letter-spacing: -0.02em; margin: var(--sp-3) 0 0; text-wrap: balance; }
.ww-article__head .ww-label a { color: inherit; }
.ww-article__author { margin: var(--sp-5) 0 0; color: var(--ww-ink-soft); font-size: var(--fs-sm); }
.ww-article__image { margin: var(--sp-8) auto 0; max-width: 1100px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--ww-surface-2); }
.ww-article__image img { width: 100%; height: 100%; object-fit: cover; }
.ww-article__layout { display: grid; gap: var(--sp-8); padding-block: var(--sp-10) var(--sp-8); max-width: 880px; }
@media (min-width: 1200px) { .ww-article__layout.has-toc { max-width: var(--container); grid-template-columns: 240px minmax(0, 720px); gap: var(--sp-16); } }
.ww-article__toc { font-size: var(--fs-sm); }
@media (min-width: 1200px) { .ww-article__toc { position: sticky; top: 96px; align-self: start; } }
.ww-article__toc details { border: 1px solid var(--ww-line); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); background: var(--ww-surface); }
.ww-article__toc summary { font-family: var(--ff-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ww-ink-soft); cursor: pointer; }
.ww-article__toc ol { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: 0.35rem; }
.ww-article__toc li.lvl-3 { padding-left: var(--sp-4); }
.ww-article__toc a { color: var(--ww-ink-soft); text-decoration: none; }
.ww-article__toc a:hover { color: var(--ww-accent); }
.ww-article__body { min-width: 0; }
.ww-article__body h2, .ww-article__body h3 { scroll-margin-top: 96px; }
.ww-article__body img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.ww-article__body table { display: block; overflow-x: auto; }
.ww-article__body pre { overflow-x: auto; }
.ww-article__tags { padding-bottom: var(--sp-10); }
.ww-article__tags a { color: inherit; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .ww-post-card { transition: none; } }

/* ---------- Cookie consent (Phase 8) ---------- */
.ww-linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ww-linkbtn:hover { color: var(--ww-accent-bright); }
.ww-consent {
  position: fixed; z-index: 1080; inset: auto var(--sp-4) var(--sp-4) var(--sp-4);
  max-width: 34rem; margin-left: auto;
  background: var(--ww-surface); color: var(--ww-ink);
  border: 1px solid var(--ww-line-strong); border-radius: var(--r-md);
  box-shadow: 0 18px 48px rgb(14 20 36 / 0.22);
}
.ww-consent[hidden] { display: none; }
.ww-consent__inner { padding: var(--sp-5); max-height: calc(100vh - 2rem); overflow: auto; }
.ww-consent__title { font-size: var(--fs-lg, 1.125rem); margin: 0 0 var(--sp-2); }
.ww-consent__text { font-size: var(--fs-sm); color: var(--ww-ink-soft); margin: 0 0 var(--sp-4); }
.ww-consent__text a { color: var(--ww-ink); }
.ww-consent__details { display: grid; gap: var(--sp-3); margin: 0 0 var(--sp-4); }
.ww-consent__details[hidden] { display: none; }
.ww-consent__choice { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--ww-ink-soft); }
.ww-consent__choice input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--ww-accent); flex: none; }
.ww-consent__choice strong { display: block; color: var(--ww-ink); }
.ww-consent__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; }
.ww-consent__actions .ww-btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 575.98px) {
  .ww-consent { inset: auto var(--sp-2) var(--sp-2) var(--sp-2); }
  .ww-consent__inner { padding: var(--sp-4); }
  .ww-consent__actions .ww-btn { flex: 1 1 45%; }
}

/* Bootstrap's grey (#6c757d) fails contrast on dark surfaces: use the design-system soft ink. */
:root { --bs-secondary-color: var(--ww-ink-soft); }
.text-secondary { color: var(--ww-ink-soft) !important; }
