/* ==========================================================================
   Clique Studio - site.css
   Direction: Bold editorial dark. Sharp corners, hairline rules, type-as-hero.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color - verified contrast on #0A0A0A noted per token */
  --c-bg:            #0A0A0A;
  --c-fg:            #FAFAFA;  /* 18.9:1 */
  --c-card:          #141414;
  --c-muted:         #1C1C1F;
  --c-muted-fg:      #A1A1AA;  /*  7.7:1 */
  --c-border:        #27272A;  /* decorative hairline only */
  --c-border-strong: #71717A;  /*  4.1:1 - control boundaries */
  --c-accent:        #EC4899;  /*  5.6:1 */
  --c-on-accent:     #0A0A0A;  /*  6.0:1 on accent */
  --c-accent-hover:  #F472B6;
  --c-secondary:     #22D3EE;  /* 10.9:1 - mono labels, links */
  --c-ring:          #22D3EE;
  --c-danger:        #FF6B6B;
  --c-success:       #4ADE80;

  /* Neon: the accent's own colour, bloomed. Decorative only - it never carries
     meaning, so contrast ratios are unchanged by it. */
  --glow-pink:       236 72 153;   /* --c-accent as RGB channels */
  --glow-purple:     168 85 247;   /* cursor halo, sits between the pink and cyan */
  --glow-soft:       0 0 24px rgb(var(--glow-pink) / 0.35);
  --glow-strong:     0 0 34px rgb(var(--glow-pink) / 0.55);

  /* Type */
  --f-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Space - density 4/10 (standard) */
  --s-xs:  4px;
  --s-sm:  8px;
  --s-md:  16px;
  --s-lg:  24px;
  --s-xl:  32px;
  --s-2xl: 48px;
  --s-3xl: 64px;
  --s-4xl: 96px;

  /* Layout */
  --w-max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 68px;

  /* Motion - tier: standard (6/10) */
  --t-fast:  140ms;
  --t-base:  220ms;
  --t-slow:  420ms;
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);

  /* Layers */
  --z-sticky:  40;
  --z-nav:     60;
  --z-overlay: 100;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keep anchor targets clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + var(--s-lg));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video { max-width: 100%; height: auto; display: block; }

svg { flex: none; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

/* Long tokens (URLs, IDs, pasted user content) must reflow, not overflow */
.wrap-anywhere { overflow-wrap: anywhere; min-width: 0; }

/* --------------------------------------------------------------------------
   3. Focus & skip link
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--c-ring);
  outline-offset: 3px;
  border-radius: 1px;
}

/* never remove focus without a replacement indicator */
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: var(--s-md);
  top: var(--s-md);
  z-index: calc(var(--z-overlay) + 10);
  transform: translateY(-200%);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(var(--s-3xl), 10vw, 140px); }
.section--tight { padding-block: clamp(var(--s-2xl), 7vw, 88px); }

.rule { border: 0; border-top: 1px solid var(--c-border); margin: 0; }

/* Section eyebrow: mono label + hairline */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin-bottom: var(--s-lg);
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--c-muted-fg);
  max-width: 62ch;
}

.h-section { font-size: clamp(32px, 5vw, 56px); }
.h-sub { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; }

.stack-md > * + * { margin-top: var(--s-md); }
.stack-lg > * + * { margin-top: var(--s-lg); }
.stack-xl > * + * { margin-top: var(--s-xl); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  min-height: 48px;              /* exceeds the 44px touch minimum */
  padding: 13px 26px;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0;              /* sharp corners - editorial/brutalist */
  transition: background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease);
  touch-action: manipulation;
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: var(--glow-soft);
}

.btn--primary:hover {
  background: var(--c-accent-hover);
  box-shadow: var(--glow-strong);
}

.btn--ghost {
  background: transparent;
  color: var(--c-fg);
  border-color: var(--c-border-strong);
}

.btn--ghost:hover { border-color: var(--c-fg); background: var(--c-muted); }

.btn:active { transform: scale(0.97); }

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Text link with an arrow that advances on hover */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--c-fg);
  text-decoration: none;
  padding-block: 6px;
}

.link-arrow svg { transition: transform var(--t-base) var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow span { border-bottom: 1px solid var(--c-border-strong); }
.link-arrow:hover span { border-bottom-color: var(--c-accent); }

/* --------------------------------------------------------------------------
   5b. Cursor halo
   A purple bloom that trails the pointer. Injected by site.js, and only on
   devices with a real hovering pointer - it is meaningless on touch.
   The clipping wrapper is what stops a 700px blob widening the page.
   -------------------------------------------------------------------------- */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;          /* the blob can never create a scrollbar */
  contain: strict;           /* isolate it from the rest of the page's layout */
}

.cursor-glow__blob {
  position: absolute;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;  /* centre on the pointer without extra maths */
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(
    circle closest-side,
    rgb(var(--glow-purple) / 0.20),
    rgb(var(--glow-purple) / 0.09) 45%,
    transparent 70%
  );
  transition: opacity 420ms var(--ease);
  will-change: transform;
}

.cursor-glow[data-active="true"] .cursor-glow__blob { opacity: 1; }

/* Content sits above the halo so nothing loses contrast behind it. */
main,
.footer { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}

@supports not (backdrop-filter: blur(1px)) {
  .header { background: var(--c-bg); }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-fg);
  white-space: nowrap;
}

.wordmark .dot {
  color: var(--c-accent);
  text-shadow: 0 0 14px rgb(var(--glow-pink) / 0.7);
}

.wordmark .sub {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--c-muted-fg);
  text-transform: uppercase;
}

.nav { display: none; }

@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: var(--s-xl); }
  .nav__list { display: flex; align-items: center; gap: var(--s-lg); }

  .nav__link {
    position: relative;
    display: inline-block;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    color: var(--c-muted-fg);
    padding-block: 10px;
    transition: color var(--t-base) var(--ease);
  }

  .nav__link:hover { color: var(--c-fg); }
  .nav__link[aria-current="page"] { color: var(--c-fg); }

  .nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--c-accent);
    box-shadow: 0 0 12px rgb(var(--glow-pink) / 0.8);
  }
}

/* Mobile menu button */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  background: transparent;
  border: 1px solid var(--c-border-strong);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color var(--t-base) var(--ease);
}

.nav-toggle:hover { border-color: var(--c-fg); }

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav-toggle__bar + .nav-toggle__bar { margin-top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Declared after the base rule above so it actually wins at desktop width */
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
}

/* --- Portfolio dropdown (desktop) -----------------------------------------
   Disclosure pattern: a real <button> toggling a hidden panel. Not role="menu",
   which would impose arrow-key semantics browsers don't give links for free.
   -------------------------------------------------------------------------- */
.nav__item { position: relative; }

.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding-block: 10px;
  font-family: var(--f-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-muted-fg);
  cursor: pointer;
  transition: color var(--t-base) var(--ease);
}

.nav__trigger:hover,
.nav__trigger[aria-expanded="true"] { color: var(--c-fg); }

.nav__trigger svg { transition: transform var(--t-base) var(--ease); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Current-section indicator, matching .nav__link[aria-current] */
.nav__trigger[data-section-current="true"] { color: var(--c-fg); }
.nav__trigger[data-section-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 18px;
  bottom: 2px;
  height: 2px;
  background: var(--c-accent);
}

.nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-nav);
  min-width: 268px;
  padding: var(--s-sm);
  background: var(--c-card);
  border: 1px solid var(--c-border-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.nav__menu[hidden] { display: none; }

.nav__menu a {
  display: block;
  padding: 11px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-muted-fg);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.nav__menu a:hover { background: var(--c-muted); color: var(--c-fg); }

.nav__menu a[aria-current="page"] {
  color: var(--c-fg);
  box-shadow: inset 2px 0 0 var(--c-accent);
}

/* Mobile panel */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-overlay);
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  padding: var(--s-xl) var(--gutter) var(--s-3xl);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav__list { display: flex; flex-direction: column; }

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  min-height: 60px;
  padding-block: var(--s-md);
  border-bottom: 1px solid var(--c-border);
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--c-fg);
}

.mobile-nav__link[aria-current="page"] { color: var(--c-accent); }

.mobile-nav__link .idx {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--c-muted-fg);
}

/* Portfolio group in the mobile panel - kept flat rather than nested behind a
   second toggle, so everything is reachable in one tap. */
.mobile-nav__grouplabel {
  padding-top: var(--s-lg);
  padding-bottom: var(--s-sm);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-secondary);
}

.mobile-nav__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  min-height: 52px;
  padding-block: var(--s-sm);
  padding-left: var(--s-md);
  border-bottom: 1px solid var(--c-border);
  border-left: 2px solid var(--c-border);
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--c-muted-fg);
}

.mobile-nav__sub[aria-current="page"] {
  color: var(--c-accent);
  border-left-color: var(--c-accent);
}

.mobile-nav .btn { width: 100%; margin-top: var(--s-xl); }

@media (min-width: 1000px) {
  .mobile-nav { display: none !important; }
}

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(var(--s-3xl), 11vw, 150px) clamp(var(--s-2xl), 8vw, 110px);
}

/* Faint grid backdrop - decorative, hidden from assistive tech */
/* Flowing stroke curves behind the hero. The SVG is injected by site.js as a
   progressive enhancement - with JS off you get a clean near-black hero, which
   is a deliberate fallback rather than a broken one. */
.hero-paths {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  color: var(--c-border-strong);
  /* Fade the curves out before they reach the headline or the section edge */
  mask-image: radial-gradient(ellipse 85% 75% at 45% 45%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 45% 45%, #000 10%, transparent 72%);
}

.hero-paths svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-paths path {
  fill: none;
  stroke: currentColor;
  /* The SVG is stretched to fill, so keep stroke weight uniform */
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 620 380;
  animation-name: path-drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: stroke-dashoffset;
}

/* Two accent curves per set, so the pink reads as intentional rather than noise */
.hero-paths path.is-accent { stroke: var(--c-accent); }
.hero-paths path.is-secondary { stroke: var(--c-secondary); }

@keyframes path-drift {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

.hero__inner { position: relative; }

.hero__title {
  font-size: clamp(46px, 10.5vw, 128px);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.045em;
  max-width: 16ch;
}

.hero__title em {
  font-style: normal;
  color: var(--c-accent);
  text-shadow: 0 0 38px rgb(var(--glow-pink) / 0.45);
}

.hero__body {
  margin-top: var(--s-xl);
  max-width: 56ch;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.6;
  color: var(--c-muted-fg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
  margin-top: var(--s-2xl);
}

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-sm);
  margin-bottom: var(--s-lg);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted-fg);
}

.crumbs a {
  display: inline-block;
  padding-block: 6px;          /* clears the 24px minimum target height */
  color: var(--c-muted-fg);
  text-decoration: none;
  transition: color var(--t-base) var(--ease);
}

.crumbs a:hover { color: var(--c-fg); }
.crumbs [aria-current="page"] { color: var(--c-secondary); }

/* Compact hero for interior pages */
.hero--page { padding-block: clamp(var(--s-2xl), 8vw, 104px) clamp(var(--s-xl), 5vw, 64px); }
.hero--page .hero__title { font-size: clamp(38px, 7.5vw, 84px); max-width: 18ch; }

/* --------------------------------------------------------------------------
   8. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-border);
  border-block: 1px solid var(--c-border);
}

@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat { background: var(--c-bg); padding: var(--s-xl) var(--s-lg); }

.stat__num {
  font-family: var(--f-display);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;  /* no reflow as digits change */
}

.stat__label {
  margin-top: var(--s-sm);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted-fg);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Service cards
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
}

@media (min-width: 780px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  background: var(--c-bg);
  padding: clamp(var(--s-xl), 4vw, var(--s-3xl));
  text-decoration: none;
  color: inherit;
  transition: background-color var(--t-base) var(--ease);
}

.service:hover,
.service:focus-visible { background: var(--c-card); }

.service__idx {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--c-secondary);
}

.service__icon {
  color: var(--c-accent);
  filter: drop-shadow(0 0 10px rgb(var(--glow-pink) / 0.45));
}

.service__title {
  font-size: clamp(24px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

.service__title svg {
  color: var(--c-muted-fg);
  transition: transform var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.service:hover .service__title svg { transform: translate(4px, -4px); color: var(--c-accent); }

.service__desc { color: var(--c-muted-fg); font-size: 16px; max-width: 46ch; }

.service__tags {
  display: flex;
  flex-wrap: wrap;          /* wrap before shrinking labels */
  gap: var(--s-sm);
  margin-top: auto;
  padding-top: var(--s-md);
}

/* Chips - wrap, never truncate */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--c-border);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--c-muted-fg);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. Content blocks
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2xl);
  align-items: start;
}

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-4xl); }
  .split--sticky > :first-child { position: sticky; top: calc(var(--header-h) + var(--s-xl)); }
}

.checklist { display: grid; gap: var(--s-md); }

.checklist li {
  display: flex;
  gap: var(--s-md);
  align-items: flex-start;
  padding-bottom: var(--s-md);
  border-bottom: 1px solid var(--c-border);
  font-size: 16.5px;
  min-width: 0;
}

.checklist li:last-child { border-bottom: 0; }
.checklist svg {
  color: var(--c-accent);
  margin-top: 4px;
  filter: drop-shadow(0 0 8px rgb(var(--glow-pink) / 0.4));
}
.checklist strong { font-weight: 600; display: block; }
.checklist span { color: var(--c-muted-fg); font-size: 15.5px; }

/* Numbered process steps */
.steps {
  display: grid;
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
}

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
}

.step { background: var(--c-bg); padding: clamp(var(--s-lg), 3vw, var(--s-xl)); }

.step__n {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-secondary);
  margin-bottom: var(--s-md);
}

.step h3 { font-size: 21px; margin-bottom: var(--s-sm); }
.step p { color: var(--c-muted-fg); font-size: 15.5px; }

/* Package cards */
.packages { display: grid; gap: var(--s-lg); }

@media (min-width: 900px) {
  .packages { grid-template-columns: repeat(3, 1fr); }
}

.package {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: var(--s-xl);
}

.package--featured { border-color: var(--c-accent); }

.package__tag {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-on-accent);
  background: var(--c-accent);
  padding: 4px 9px;
}

.package h3 { font-size: 23px; }

.package__price {
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.package__price small {
  display: block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--c-muted-fg);
  text-transform: uppercase;
  margin-top: var(--s-xs);
}

.package ul { display: grid; gap: var(--s-sm); margin-top: var(--s-sm); }

.package li {
  display: flex;
  gap: var(--s-sm);
  align-items: flex-start;
  font-size: 15px;
  color: var(--c-muted-fg);
  min-width: 0;
}

.package li svg { color: var(--c-accent); margin-top: 4px; }
.package .btn { margin-top: auto; }

/* --- Domain search --------------------------------------------------------- */
.domain-search { max-width: 620px; margin-top: var(--s-xl); }

.domain-search__row { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.domain-search__row input { flex: 1 1 240px; min-width: 0; }
.domain-search__row .btn { flex: 0 0 auto; }

.domain-results { margin-top: var(--s-xl); }

.domain-results__note {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted-fg);
  margin-bottom: var(--s-md);
}

.domain-list {
  display: grid;
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
}

.domain-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-md);
  background: var(--c-bg);
  padding: var(--s-md) var(--s-lg);
}

.domain-row__name {
  flex: 1 1 200px;
  min-width: 0;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.domain-row--taken .domain-row__name { color: var(--c-muted-fg); }

.domain-row__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.domain-row__status--free { color: var(--c-success); }
.domain-row__status--taken { color: var(--c-muted-fg); }

.domain-row__price {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.domain-row__price small {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted-fg);
}

.domain-row .btn { min-height: 40px; padding: 9px 18px; font-size: 13.5px; }

/* Skeleton rows while the lookup is in flight */
.domain-skeleton {
  height: 58px;
  background: linear-gradient(
    90deg,
    var(--c-card) 0%,
    var(--c-muted) 50%,
    var(--c-card) 100%
  );
  background-size: 200% 100%;
  animation: domain-shimmer 1.4s linear infinite;
}

@keyframes domain-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .domain-skeleton { animation: none; background: var(--c-card); }
}

.domain-error {
  border: 1px solid var(--c-danger);
  background: rgba(255, 107, 107, 0.08);
  color: var(--c-danger);
  padding: var(--s-md);
  font-size: 15px;
}

/* --- Portfolio work grid --------------------------------------------------- */
.work {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-lg);
}

@media (min-width: 720px) { .work { grid-template-columns: repeat(2, 1fr); } }

.work__item {
  display: flex;
  flex-direction: column;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  transition: border-color var(--t-base) var(--ease);
}

.work__item:hover { border-color: var(--c-border-strong); }

/* Reserve the frame before any media loads, so nothing shifts (CLS) */
.work__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}

.work__media img,
.work__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shown until real work is dropped in - see README */
.work__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted-fg);
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent 0 12px,
      rgba(255, 255, 255, 0.022) 12px 24px
    );
}

.work__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  padding: var(--s-lg);
  flex: 1;
}

.work__meta {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-secondary);
}

.work__title { font-size: 21px; }
.work__desc { font-size: 15.5px; color: var(--c-muted-fg); }

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
  margin-top: auto;
  padding-top: var(--s-md);
}

/* --- Motion piece: generated plate with live vector type over it ----------- */
.work__media--motion { background: #0A0D12; }

.work__media--motion video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Darken the plate so the wordmark keeps its contrast over moving cloud */
.work__media--motion::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,13,18,0.35), rgba(10,13,18,0.72));
}

.work__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.work__mark svg { width: 82%; height: auto; }

/* Reduced motion: hold the plate on its poster and show the mark statically */
@media (prefers-reduced-motion: reduce) {
  .work__media--motion video { display: none; }
  .work__mark svg animate { display: none; }
}

/* --- Square media frame, for assets that are not 16:10 --------------------- */
.work__media--square {
  aspect-ratio: 1 / 1;
  background: #14171C;
}

.work__media--square video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- 16:9 media frame, for footage shot at HD ratio ------------------------ */
.work__media--wide {
  aspect-ratio: 16 / 9;
  background: #14171C;
}

.work__media--wide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- 4:3 media frame --------------------------------------------------------- */
.work__media--standard {
  aspect-ratio: 4 / 3;
  background: #14171C;
}

.work__media--standard video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portfolio page with no work to show yet */
.work-empty {
  margin-top: var(--s-2xl);
  max-width: 60ch;
  color: var(--c-muted-fg);
}

/* A card that links to real, viewable work */
.work__item--live { border-color: var(--c-border-strong); }
.work__item--live:hover {
  border-color: var(--c-accent);
  box-shadow: 0 0 30px rgb(var(--glow-pink) / 0.22);
}

a.work__media { display: block; text-decoration: none; }

a.work__media img {
  transition: transform var(--t-slow) var(--ease);
}

a.work__media:hover img,
a.work__media:focus-visible img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  a.work__media img { transition: none; }
  a.work__media:hover img { transform: none; }
}

.work__links { padding-top: var(--s-sm); }

/* Pull quote */
.quote {
  border-left: 3px solid var(--c-accent);
  box-shadow: -3px 0 20px -6px rgb(var(--glow-pink) / 0.6);
  padding-left: clamp(var(--s-lg), 4vw, var(--s-2xl));
  max-width: 36ch;
  margin: 0;
}

.quote blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.quote figcaption {
  margin-top: var(--s-lg);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted-fg);
}

/* FAQ */
.faq { border-top: 1px solid var(--c-border); }
.faq__item { border-bottom: 1px solid var(--c-border); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
  width: 100%;
  min-height: 64px;
  padding-block: var(--s-lg);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  letter-spacing: -0.015em;
  touch-action: manipulation;
}

.faq__q:hover { color: var(--c-accent); }
.faq__q svg { transition: transform var(--t-base) var(--ease); color: var(--c-muted-fg); }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); color: var(--c-accent); }

.faq__a { padding-bottom: var(--s-lg); max-width: 68ch; color: var(--c-muted-fg); }

/* CTA band */
.cta-band {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: clamp(var(--s-2xl), 6vw, 88px) clamp(var(--s-lg), 5vw, var(--s-4xl));
  text-align: center;
}

.cta-band h2 { font-size: clamp(30px, 5.4vw, 60px); margin-inline: auto; max-width: 18ch; }
.cta-band p { margin: var(--s-lg) auto 0; max-width: 52ch; color: var(--c-muted-fg); }
.cta-band .hero__actions { justify-content: center; }

/* --------------------------------------------------------------------------
   11. Client strip (static - no auto-rotation, so nothing to pause)
   -------------------------------------------------------------------------- */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--s-lg), 5vw, var(--s-4xl));
}

.logos li {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(15px, 2.2vw, 21px);
  letter-spacing: -0.02em;
  color: var(--c-muted-fg);
}

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s-lg); }

@media (min-width: 700px) {
  .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); }
}

.field { display: grid; gap: 7px; min-width: 0; }

.field label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-fg);
}

.field .req { color: var(--c-accent); }
.field .hint { font-size: 13.5px; color: var(--c-muted-fg); font-family: var(--f-body); text-transform: none; letter-spacing: 0; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;                /* touch-friendly */
  padding: 14px 16px;
  background: var(--c-card);
  color: var(--c-fg);
  border: 1px solid var(--c-border-strong);
  border-radius: 0;
  font-family: var(--f-body);
  font-size: 16px;                 /* prevents iOS zoom-on-focus */
  transition: border-color var(--t-base) var(--ease);
}

.field textarea { min-height: 148px; resize: vertical; line-height: 1.6; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--c-fg); }

.field input::placeholder,
.field textarea::placeholder { color: #6B6B73; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23A1A1AA' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 46px;
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--c-danger); }

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 14px;
  color: var(--c-danger);          /* meets 4.5:1 on #0A0A0A */
  min-width: 0;
}

.field__error svg { margin-top: 3px; }

/* Error summary - focused after a failed submit */
.error-summary {
  border: 1px solid var(--c-danger);
  background: rgba(255, 107, 107, 0.08);
  padding: var(--s-lg);
}

.error-summary h2 { font-size: 17px; color: var(--c-danger); margin-bottom: var(--s-sm); }
.error-summary ul { display: grid; gap: 6px; list-style: disc; padding-left: 20px; }
.error-summary a { color: var(--c-danger); font-size: 15px; }

.form__status[data-state="success"],
.form__status[data-state="error"] {
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
  font-size: 15px;
  padding: var(--s-md);
}

.form__status[data-state="success"] {
  color: var(--c-success);
  border: 1px solid var(--c-success);
}

/* Submission failed - recoverable, with a fallback route stated inline */
.form__status[data-state="error"] {
  color: var(--c-danger);
  border: 1px solid var(--c-danger);
  background: rgba(255, 107, 107, 0.08);
}

.form__status[data-state="success"] svg,
.form__status[data-state="error"] svg { margin-top: 4px; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--c-border); padding-block: var(--s-3xl) var(--s-xl); }

.footer__grid { display: grid; gap: var(--s-2xl); grid-template-columns: 1fr; }

@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

.footer h3 {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted-fg);
  margin-bottom: var(--s-md);
}

.footer__links { display: grid; gap: 2px; justify-items: start; }

.footer__links a {
  display: inline-block;
  padding-block: 9px;          /* keeps the 24px minimum target */
  font-size: 15.5px;
  color: var(--c-muted-fg);
  text-decoration: none;
  transition: color var(--t-base) var(--ease);
}

.footer__links a:hover { color: var(--c-fg); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md) var(--s-lg);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-3xl);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--c-border);
  font-size: 13.5px;
  color: var(--c-muted-fg);
}

/* --------------------------------------------------------------------------
   14. Scroll reveal - progressive enhancement.
   Content is visible by default; JS opts in only when motion is allowed.
   -------------------------------------------------------------------------- */
.js-reveal[data-reveal="pending"] { opacity: 0; transform: translateY(20px); }

.js-reveal[data-reveal="in"] {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

/* --------------------------------------------------------------------------
   15. Reduced motion - render the final state, no scroll effects
   -------------------------------------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }

  .js-reveal[data-reveal] { opacity: 1 !important; transform: none !important; }

  /* Belt and braces: site.js already skips the halo, but if it is somehow in
     the DOM when the preference changes, hide it. The neon glows are static,
     so they stay. */
  .cursor-glow { display: none !important; }

  /* Render the curves as clean continuous lines rather than a frozen dash */
  .hero-paths path {
    animation: none !important;
    stroke-dasharray: none !important;
    stroke-opacity: 0.5;
  }
}

/* --------------------------------------------------------------------------
   16. Print
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .mobile-nav,
  .hero-paths,
  .cta-band { display: none !important; }

  body { background: #fff; color: #000; }
}
