/* =================================================================
   [Your Name] — Web Designer
   Shared stylesheet for all pages
   Dark, techy, premium. Mobile-first. WCAG 2.2 AA.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Color — DARK is the default theme */
  color-scheme: dark;
  --bg:            #111111;   /* matte black */
  --bg-elev:       #1b1a18;   /* warmed a hair toward the tan */
  --bg-elev-2:     #232220;
  --line:          #2b2926;
  --line-strong:   #3d3a35;
  --text:          #f5f3ee;   /* off-white, slightly warm */
  --text-muted:    #aba89f;   /* AA on --bg (~8:1) */
  --text-faint:    #79766f;   /* decorative / large only */
  --accent:        #c4a882;   /* warm tan — fills, buttons, borders */
  --accent-text:   #d9c3a0;   /* lighter champagne-tan as text (~11:1 on dark bg) */
  --accent-rgb:    196, 168, 130; /* tan, for translucent layers */
  --accent-hover:  #d4bd9c;
  --accent-ink:    #1a140c;   /* text that sits ON the tan accent */
  --focus:         #8ab4ff;   /* high-contrast focus ring */
  --header-bg:     rgba(17, 17, 17, 0.72);

  /* Type */
  --font-head: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing / layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  /* Deliberate radius scale (not uniform): big features > cards > inner bits;
     buttons stay full-pill as an intentional contrast. */
  --radius-lg: 22px;  /* large feature containers (CTA band) */
  --radius: 12px;     /* cards */
  --radius-sm: 8px;   /* inner elements: icons, media, tags */

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
  color-scheme: light;
  --bg:            #f6f4ef;   /* clean off-white */
  --bg-elev:       #ffffff;
  --bg-elev-2:     #fbfaf6;
  --line:          #e4dfd5;
  --line-strong:   #cfc8ba;
  --text:          #1a1815;   /* near-black */
  --text-muted:    #56524b;   /* AA on light bg (~6.5:1) */
  --text-faint:    #8a857c;
  --accent:        #c4a882;   /* same brand tan for fills/buttons */
  --accent-text:   #8a6a3c;   /* darker tan so accent text passes AA on white */
  --accent-rgb:    196, 168, 130;
  --accent-hover:  #b69a70;
  --accent-ink:    #1a140c;   /* dark text on tan still reads well */
  --focus:         #2c5fd6;   /* high-contrast focus ring on light bg */
  --header-bg:     rgba(246, 244, 239, 0.8);
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

ul { list-style: none; padding: 0; }

button { font: inherit; color: inherit; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -200%;
  z-index: 1000;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.9rem, 1.3rem + 3vw, 3.25rem);
  max-width: 18ch;
}

.section-lead {
  color: var(--text-muted);
  max-width: 60ch;
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.9rem;
  --pad-x: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--text); background: var(--bg-elev); }

.btn .btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.text-link span { transition: transform 0.25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  z-index: 2;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1rem;
}
.brand__name b { color: var(--accent-text); font-weight: 700; }

/* Header actions (theme toggle + hamburger) */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
}

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.theme-toggle:hover { border-color: var(--text); background: var(--bg-elev); }
.theme-toggle svg { width: 20px; height: 20px; }
/* Show the icon for the action available in the current theme */
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Hamburger */
.nav-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 0.95rem 0.5rem 1.05rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav-toggle:hover { border-color: var(--text); }
.nav-toggle__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Full-screen overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 6rem var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.35s;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s;
}
.nav-overlay__inner {
  margin: auto auto;
  width: 100%;
  max-width: var(--maxw);
  display: grid;
  gap: 3rem;
}
.nav-menu {
  display: grid;
  gap: 0.25rem;
}
.nav-menu li { overflow: hidden; }
.nav-menu a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.5rem + 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  color: var(--text);
  width: max-content;
  transition: color 0.25s var(--ease);
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { color: var(--accent-text); }
.nav-menu a .nav-menu__num {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0;
}
/* staggered entrance */
.nav-overlay .nav-menu li {
  opacity: 0;
  transform: translateY(20px);
}
.nav-overlay.is-open .nav-menu li {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav-overlay.is-open .nav-menu li:nth-child(1) { transition-delay: 0.08s; }
.nav-overlay.is-open .nav-menu li:nth-child(2) { transition-delay: 0.14s; }
.nav-overlay.is-open .nav-menu li:nth-child(3) { transition-delay: 0.20s; }
.nav-overlay.is-open .nav-menu li:nth-child(4) { transition-delay: 0.26s; }
.nav-overlay.is-open .nav-menu li:nth-child(5) { transition-delay: 0.32s; }

.nav-overlay__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.nav-overlay__foot a { color: var(--text); text-decoration: none; }
.nav-overlay__foot a:hover { color: var(--accent-text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(8rem, 14vh, 11rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  /* Mouse-parallax pointer position, set by JS (-1..1). Default centred. */
  --px: 0;
  --py: 0;
}
/* Each parallax layer multiplies the shared pointer position by its own depth.
   translate3d keeps it on the compositor — no layout, no paint. */
.hero__glow,
.hero__grid-lines,
.hero__inner {
  transform: translate3d(calc(var(--px) * var(--depth, 0px)),
                         calc(var(--py) * var(--depth, 0px)), 0);
  transition: transform 0.6s var(--ease);
}
.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  max-width: 720px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  --depth: -14px;          /* Layer 1: slowest, moves against the cursor */
  will-change: transform;
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  --depth: -8px;           /* Layer 1: slowest */
  will-change: transform;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  --depth: 12px;           /* Layer 2: medium, moves with the cursor */
}

/* ----- Layer 3: floating UI mockups (fastest) ----- */
.hero__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;           /* desktop-only; revealed at >=1200px */
}
.hero__float {
  position: absolute;
  --depth: 26px;
  --rot: 0deg;
  transform: translate3d(calc(var(--px) * var(--depth)),
                         calc(var(--py) * var(--depth)), 0) rotate(var(--rot));
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.hero__float-bar { display: flex; gap: 5px; }
.hero__float-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}
.hero__float-dot--accent { background: var(--accent); }
.hero__float-block {
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(120deg,
    rgba(var(--accent-rgb), 0.55), rgba(var(--accent-rgb), 0.12));
}
.hero__float-line {
  height: 7px;
  border-radius: 4px;
  background: var(--line-strong);
}
.hero__float-line--short { width: 60%; }
.hero__float-line--tiny  { width: 44px; height: 6px; }

/* A small browser/window card */
.hero__float--card {
  top: 17%;
  right: 5%;
  width: 178px;
  padding: 14px;
  display: grid;
  gap: 9px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--line-strong);
  box-shadow: 0 36px 60px -34px rgba(0, 0, 0, 0.65);
  --rot: -8deg;
  --depth: 28px;
}
/* A floating status chip */
.hero__float--chip {
  top: 54%;
  right: 15%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  box-shadow: 0 26px 44px -28px rgba(0, 0, 0, 0.6);
  --rot: 4deg;
  --depth: 32px;
}
.hero__float-pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #46d17f;
  flex-shrink: 0;
}
/* A geometric accent shape */
.hero__float--shape {
  top: 72%;
  right: 4%;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.55);
  background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.16), transparent 70%);
  --rot: 14deg;
  --depth: 22px;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #46d17f;
  box-shadow: 0 0 0 0 rgba(70, 209, 127, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(70, 209, 127, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(70, 209, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 209, 127, 0); }
}

.hero__title {
  font-size: clamp(2.7rem, 1.1rem + 8.4vw, 6.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.hero__title .accent { color: var(--accent-text); }

.hero__sub {
  margin-top: 1.75rem;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--text-muted);
}

.hero__cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Credibility strip (relocated from hero) ---------- */
.cred {
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.cred__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem 2.5rem;
}
.cred__item dt {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cred__item dd {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
}
.cred__item dd .accent { color: var(--accent-text); }

/* ---------- Value props (asymmetric split) ---------- */
.why-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
.values__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.value-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.value-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  background: var(--bg-elev-2);
}
.value-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-text);
  margin-bottom: 1.25rem;
}
.value-card__icon svg { width: 24px; height: 24px; }
.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.value-card p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Services overview ---------- */
.services__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.services__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 3.5rem;
}
.service-row {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: 1fr;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service-row:hover { border-color: var(--accent); background: var(--bg-elev-2); }
.service-row h3 { font-size: 1.3rem; }
.service-row p { color: var(--text-muted); font-size: 0.97rem; margin-top: 0.4rem; }
.service-row__arrow {
  color: var(--accent-text);
  transition: transform 0.3s var(--ease);
}
.service-row:hover .service-row__arrow { transform: translateX(6px); }

/* ---------- Demo work ---------- */
.work__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 3.5rem;
}
.work-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease), transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.work-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.work-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-elev-2);
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.04); }
.work-card__tag {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(6px);
  /* Fixed light text: the scrim is dark in BOTH themes, so don't inherit
     the theme text colour (which goes near-black in light mode). */
  color: #f5f3ee;
  font-size: 0.78rem;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.work-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}
.work-card__body h3 { font-size: 1.15rem; }
.work-card__body p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }
.work-card__go {
  color: var(--accent-text);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.work-card:hover .work-card__go { transform: translate(3px, -3px); }

/* ---------- 3D card tilt (JS-driven, desktop + fine pointer only) ---------- */
/* While actively tilting we drop the transition so the card tracks the cursor
   1:1; removing the class restores the transition above for a smooth flatten. */
.is-tilting {
  transition: none !important;
  will-change: transform;
  z-index: 2;
}
/* Soft light sheen that follows the cursor. Position set by JS via --gx/--gy. */
.card-glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: soft-light;
}
.is-tilting .card-glare { opacity: 1; }

/* ---------- Process / social proof ---------- */
.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 120% at 12% 0%, rgba(var(--accent-rgb), 0.09), transparent 68%);
}
/* Left-aligned editorial quote (was centered) */
.proof__inner { max-width: 900px; }
.proof__quote {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.6rem, 1rem + 3vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.proof__quote .accent { color: var(--accent-text); }
.proof__note {
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band__inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 70% 130% at 0% 0%, rgba(var(--accent-rgb), 0.16), transparent 60%),
    var(--bg-elev);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  /* Left-aligned; becomes a text/buttons split at desktop (was centered) */
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
}
.cta-band h2 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  max-width: 18ch;
}
.cta-band p {
  color: var(--text-muted);
  margin-top: 1.25rem;
  max-width: 48ch;
}
.cta-band__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-self: end;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.site-footer__top {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
.site-footer__brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 38ch;
  font-size: 0.95rem;
}
.footer-nav h4 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.footer-nav ul { display: grid; gap: 0.65rem; }
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.97rem;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--text); }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.85rem;
}
.site-footer__disclaimer {
  margin-top: 1.25rem;
  color: var(--text-faint);
  font-size: 0.8rem;
  max-width: 70ch;
}

/* =================================================================
   Subpage components (about / pricing / contact)
   Self-contained, with their own breakpoints. Uses shared tokens.
   ================================================================= */

/* Error colour that passes AA in both themes */
:root            { --danger-text: #ff8c84; }
[data-theme="light"] { --danger-text: #c0392b; }

/* ---------- Shared page hero ---------- */
.page-hero { padding-top: clamp(7rem, 12vh, 9.5rem); }
.page-title {
  font-size: clamp(2.4rem, 1.4rem + 5vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 16ch;
}
.page-title .accent { color: var(--accent-text); }
.page-lead {
  margin-top: 1.5rem;
  max-width: 60ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-muted);
}
.page-hero .btn { margin-top: 2.25rem; }

/* ---------- About: hero split ---------- */
.about-hero {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
.about-hero .page-title { max-width: 18ch; }
.photo-placeholder {
  position: relative;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background:
    radial-gradient(ellipse 80% 80% at 70% 20%, rgba(var(--accent-rgb), 0.12), transparent 70%),
    var(--bg-elev);
  color: var(--text-faint);
  text-align: center;
}
.photo-placeholder__mark {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
}
.photo-placeholder__label {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ---------- About: prose ---------- */
.about-prose__body {
  max-width: 62ch;
  margin-top: 1.5rem;
  display: grid;
  gap: 1.15rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.about-prose__body em { color: var(--text); font-style: italic; }

/* ---------- Process (numbered sequence) ---------- */
.process {
  list-style: none;
  padding: 0;
  margin-top: 3.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: none;
}
.process__step {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.process__step:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  background: var(--bg-elev-2);
}
.process__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-text);
  letter-spacing: 0.02em;
}
.process__step h3 { font-size: 1.25rem; margin: 0.85rem 0 0.5rem; }
.process__step p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Pricing: cards ---------- */
.price-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.price-card--feature {
  border-color: var(--accent);
  background:
    radial-gradient(ellipse 80% 130% at 0% 0%, rgba(var(--accent-rgb), 0.12), transparent 60%),
    var(--bg-elev);
}
.price-card__head h2 { font-size: 1.4rem; }
.price-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.75rem;
}
.price-card__from {
  font-family: var(--font-head);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.price-card__amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.25rem);
  letter-spacing: -0.03em;
  color: var(--accent-text);
}
.price-card__unit { color: var(--text-muted); font-size: 0.95rem; }
.price-card__note { color: var(--text-muted); font-size: 0.98rem; }
.price-card__list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
  display: grid;
  gap: 0.85rem;
  flex: 1;
}
.price-card__list li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--text);
  font-size: 0.98rem;
}
.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background:
    var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a140c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 0.7rem no-repeat;
}
.price-card__cta { align-self: flex-start; }

/* ---------- Pricing: included / not ---------- */
.incl-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
.incl-col__head {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.incl-col__head--yes { color: var(--accent-text); }
.incl-col__head--no { color: var(--text-muted); }
.incl-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.incl-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.98rem;
}
.incl-list--yes li::before,
.incl-list--no li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-head);
  font-weight: 700;
}
.incl-list--yes li { color: var(--text); }
.incl-list--yes li::before { content: "+"; color: var(--accent-text); }
.incl-list--no li { color: var(--text-muted); }
.incl-list--no li::before { content: "–"; color: var(--text-faint); }
.incl-col__aside {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 42ch;
}

/* ---------- Pricing: FAQ (open) ---------- */
.faq {
  display: grid;
  gap: 1.25rem 3rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
.faq__item {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.faq__item dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.faq__item dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 60ch;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
.contact-form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}
.field__req { color: var(--accent-text); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--bg-elev-2);
  outline: none;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger-text); }
.field__hint { color: var(--text-muted); font-size: 0.85rem; }
.field__error { color: var(--danger-text); font-size: 0.85rem; font-weight: 500; }
.contact-form__submit { justify-self: start; margin-top: 0.5rem; }
.contact-form__status {
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid var(--line-strong);
}

.contact-aside { display: grid; gap: 1.25rem; }
.contact-aside__card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.contact-aside__card h2 { font-size: 1.2rem; }
.contact-aside__card h3 { font-size: 1.05rem; }
.contact-aside__steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}
.contact-aside__steps li {
  position: relative;
  padding-left: 2.25rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.contact-aside__steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent-text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
}
.contact-aside__steps strong { color: var(--text); }
.contact-aside__card p { color: var(--text-muted); margin-top: 0.5rem; font-size: 0.96rem; }
.contact-aside__email {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
}
.contact-aside__email:hover { text-decoration: underline; }

/* ---------- Legal / prose pages ---------- */
.legal { max-width: 70ch; }
.legal h2 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-muted); margin-bottom: 1rem; }
.legal ul {
  list-style: disc;
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.25rem 1.2rem;
  color: var(--text-muted);
}
.legal a { color: var(--accent-text); }
.legal strong { color: var(--text); font-weight: 600; }
.legal__updated { color: var(--text-faint); font-size: 0.9rem; margin-top: 1rem; }

/* Footer legal links */
.site-footer__bottom a { color: var(--text-muted); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Subpage responsive ---------- */
@media (min-width: 640px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .incl-grid { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .about-hero { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .contact-grid { grid-template-columns: 1.4fr 0.9fr; gap: 3.5rem; }
}
@media (min-width: 980px) {
  .process { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .service-row {
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .nav-toggle__label { font-size: 0.9rem; }
  .site-footer__top { grid-template-columns: 1.4fr 1fr; }
  .cta-band__inner {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    gap: 3rem;
  }
}

@media (min-width: 980px) {
  .why-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
  }
  .why-grid__intro { position: sticky; top: 100px; }
  .work__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
}

/* Floating hero mockups only where there's room beside the content */
@media (min-width: 1200px) {
  .hero__decor { display: block; }
}

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