/* ==========================================================================
   Haynoor Studio — Pixels with Purpose
   Design tokens, base, layout, components
   ========================================================================== */

:root {
  /* Colour */
  --charcoal: #1E1F22;
  --charcoal-2: #27282D;
  --charcoal-3: #313238;
  --line-dark: rgba(255, 255, 255, 0.12);
  --paper: #F4F5F7;
  --white: #FFFFFF;
  --ink: #1E1F22;
  --muted: #565A63;
  --muted-dark: #A9ACB4;
  --line: #DFE1E6;
  --accent: #4436FF;
  --accent-hover: #3326E6;
  --accent-tint: #A9A3FF;
  --accent-wash: #EEEDFF;
  --error: #B3261E;

  /* Type */
  /* Apple's San Francisco on Apple devices; Inter (closest open match) everywhere else */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5rem;
  --fs-xl: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-2xl: clamp(2.125rem, 1.3rem + 3vw, 3.5rem);
  --fs-page: clamp(2.25rem, 1.1rem + 5vw, 5.5rem);
  --fs-display: clamp(3rem, 1rem + 6.8vw, 6.75rem);

  /* Space & layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --gap: clamp(1rem, 2.4vw, 2rem);
  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 72px;
  --radius-s: 4px;
  --radius-m: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.53;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:target { scroll-margin-top: calc(var(--header-h) + 24px); }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.07;
  text-wrap: balance;
}
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-md); line-height: 1.25; letter-spacing: -0.018em; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent-tint); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

.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 ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--space-section); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--tight-top { padding-top: 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.lede {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--muted);
  max-width: 36rem;
}
.on-dark .lede { color: var(--muted-dark); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lede { margin-top: 1.25rem; }

/* Square full stop — the "pixel with purpose" */
.stop {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.07em;
  background: var(--accent);
  color: transparent;
  overflow: hidden;
  vertical-align: baseline;
  line-height: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-s);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn__px {
  width: 8px;
  height: 8px;
  background: currentColor;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn__px { transform: translate(2px, -2px); }

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

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--paper); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.5); color: var(--white); background: transparent; }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.text-link:hover { border-bottom-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}
.brand__logo { display: block; height: 40px; width: auto; }
.footer-brand .brand__logo { height: 48px; }

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav__list { display: flex; gap: 2rem; list-style: none; padding: 0; margin: 0; }
.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.4rem;
  font-weight: 500;
  font-size: 0.9875rem;
  color: var(--muted-dark);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link[aria-current="page"] { color: var(--white); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 6px;
  height: 6px;
  background: var(--accent-tint);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.9rem;
  background: transparent;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-s);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle__icon { display: grid; grid-template-columns: repeat(2, 5px); gap: 3px; }
.menu-toggle__icon i { width: 5px; height: 5px; background: currentColor; transition: transform 0.25s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(1) { transform: translate(4px, 4px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(2) { transform: translate(-4px, 4px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(3) { transform: translate(4px, -4px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(4) { transform: translate(-4px, -4px); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line-dark);
  background: var(--charcoal);
}
.mobile-menu__list { list-style: none; padding: 0.5rem 0 0; margin: 0; }
.mobile-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mobile-menu__list a[aria-current="page"]::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent-tint);
}
.mobile-menu__actions { display: grid; gap: 0.75rem; padding: 1.5rem 0 2rem; }

@media (max-width: 920px) {
  .js .nav { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .mobile-menu.is-open {
    display: block;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  /* Without JavaScript, keep the links visible and let them wrap */
  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 1rem; }
  html:not(.js) .nav { flex-wrap: wrap; gap: 1rem; }
}

/* ---------- Grid texture (hero backgrounds) ---------- */
.grid-texture { position: relative; isolation: isolate; overflow: hidden; }
.grid-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(115deg, transparent 10%, #000 60%);
          mask-image: linear-gradient(115deg, transparent 10%, #000 60%);
}

/* ---------- Home hero ---------- */
.hero {
  background: var(--charcoal);
  color: var(--white);
  padding-top: clamp(3.5rem, 8vw, 7rem);
}
.hero__grid { align-items: center; }
.hero__copy { grid-column: 1 / span 7; }
.hero__art { grid-column: 8 / span 5; }
.hero__title { font-weight: 700; }
.hero__name {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted-dark);
  margin-bottom: 1.25rem;
}
.hero__tagline {
  display: block;
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -0.045em;
}
.hero__lede { margin-top: 2rem; font-size: var(--fs-md); color: var(--muted-dark); max-width: 34rem; }
.hero .actions { margin-top: 2.5rem; }

.promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-block: 1.75rem 2rem;
  border-top: 1px solid var(--line-dark);
  list-style: none;
  padding-inline: 0;
}
.promise__item { display: flex; gap: 1rem; align-items: flex-start; }
.promise__marker { width: 14px; height: 14px; margin-top: 0.45rem; flex: none; }
.promise__marker--design { box-shadow: inset 0 0 0 1.5px var(--muted-dark); }
.promise__marker--develop { background: linear-gradient(90deg, var(--paper) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--paper); }
.promise__marker--deliver { background: var(--accent); }
.promise__title { font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.02em; }
.promise__text { font-size: var(--fs-sm); color: var(--muted-dark); margin-top: 0.15rem; }

/* Pixel monogram (built by main.js) */
.pixel-art {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(4px, 0.6vw, 7px);
  width: 100%;
  max-width: 440px;
  margin-left: auto;
}
.px {
  aspect-ratio: 1;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  opacity: 0;
  animation: px-in 0.5s var(--ease) forwards;
  animation-delay: calc(var(--i) * 35ms);
}
.px.is-h {
  animation: px-in 0.5s var(--ease) forwards, px-fill 0.4s var(--ease) forwards;
  animation-delay: calc(var(--i) * 35ms), calc(1.05s + var(--o) * 30ms);
}
.px.is-a {
  animation: px-in 0.5s var(--ease) forwards, px-pop 0.55s var(--ease) forwards;
  animation-delay: calc(var(--i) * 35ms), 2.3s;
}
@keyframes px-in { to { opacity: 1; } }
@keyframes px-fill { to { background: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); } }
@keyframes px-pop {
  0% { transform: scale(0.3); background: var(--accent); box-shadow: none; }
  60% { transform: scale(1.18); background: var(--accent); box-shadow: none; }
  100% { transform: scale(1); background: var(--accent); box-shadow: none; }
}

/* The promise strip lights up in step with the monogram */
.js .promise__item { opacity: 0.4; animation: promise-on 0.5s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes promise-on { to { opacity: 1; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3.5rem, 7vw, 6rem);
}
.page-hero h1 { font-size: var(--fs-page); line-height: 1.02; letter-spacing: -0.04em; max-width: 15ch; font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
.page-hero .lede { margin-top: 1.75rem; }
.page-hero .actions { margin-top: 2.25rem; }

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.75rem;
  list-style: none;
  padding: 0;
}
.jump-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-s);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.jump-links a::before { content: ""; width: 6px; height: 6px; background: var(--accent-tint); }
.jump-links a:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.05); }

/* ---------- Pixel glyphs (built by main.js) ---------- */
.glyph {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  width: 36px;
  flex: none;
  color: var(--ink);
}
.glyph i { aspect-ratio: 1; border-radius: 1px; }
.glyph .g-x { background: currentColor; }
.glyph .g-o { box-shadow: inset 0 0 0 1px currentColor; opacity: 0.45; }
.glyph .g-a { background: var(--accent); }
.on-dark .glyph { color: var(--white); }
.glyph--md { width: 52px; gap: 3px; }
.glyph--lg { width: 104px; gap: 5px; }
.glyph--lg i { border-radius: 2px; }
.glyph--lg .g-o { box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- Home: overview ---------- */
.overview__head { grid-column: 1 / span 5; }
.overview__body { grid-column: 7 / span 6; }
.overview__body p + p { margin-top: 1.25rem; }
.overview__body .lede { color: var(--ink); }
.overview__body p:not(.lede) { color: var(--muted); }
.overview__body .text-link { margin-top: 1.75rem; }

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  list-style: none;
  padding-inline: 0;
}
.point h3 { margin: 1.25rem 0 0.5rem; }
.point p { color: var(--muted); max-width: 32ch; }

/* ---------- Home: services list ---------- */
.service-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.35fr) auto;
  align-items: center;
  gap: var(--gap);
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.service-row__name {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
  transition: color 0.2s var(--ease);
}
.service-row__desc { color: var(--muted); max-width: 46ch; }
.service-row__more {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  white-space: nowrap;
}
.service-row__more::after { content: ""; width: 7px; height: 7px; background: currentColor; transition: transform 0.25s var(--ease); }
.service-row:hover .service-row__name { color: var(--accent); }
.service-row:hover .service-row__more::after { transform: translate(3px, -3px); }
.services-preview__foot { margin-top: 2.5rem; }

/* ---------- Home: process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  list-style: none;
  padding: 0;
}
.stage {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--charcoal-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
}
.stage__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; }
.stage__step { font-size: var(--fs-sm); font-weight: 600; color: var(--muted-dark); }
.stage h3 { font-size: var(--fs-xl); margin-bottom: 0.9rem; }
.stage p { color: var(--muted-dark); }
.stage__list { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); list-style: none; padding-left: 0; display: grid; gap: 0.4rem; font-size: 0.9375rem; }

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.cta-panel h2 { font-size: var(--fs-2xl); max-width: 16ch; }
.cta-panel p { margin-top: 1.25rem; color: var(--muted); max-width: 40ch; }
.cta-panel .actions { justify-content: flex-end; }
.cta-panel__corner { position: absolute; top: clamp(1.25rem, 3vw, 2rem); right: clamp(1.25rem, 3vw, 2rem); }

/* ---------- About ---------- */
.statement {
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
  max-width: 30ch;
  text-wrap: balance;
}
.statement-wrap { display: grid; gap: 2rem; }
.statement-wrap .statement + p { color: var(--muted); max-width: 38rem; font-size: var(--fs-md); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  list-style: none;
  padding: 0;
}
.pillar { padding-top: 2rem; border-top: 2px solid var(--ink); }
.pillar h3 { font-size: var(--fs-lg); margin: 1.5rem 0 0.6rem; }
.pillar p { color: var(--muted); }

.partner__head { grid-column: 1 / span 5; }
.partner__head p { margin-top: 1.5rem; color: var(--muted); }
.partner__head p + p { margin-top: 1rem; }
.partner__cards { grid-column: 7 / span 6; display: grid; gap: 1rem; list-style: none; padding: 0; }
.audience {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.audience__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.audience h3 { font-size: var(--fs-lg); }
.audience p { color: var(--muted); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  list-style: none;
  padding: 0;
}
.principle h3 { font-size: var(--fs-lg); margin-bottom: 0.75rem; }
.principle p { color: var(--muted); }
.principle__rule { display: flex; gap: 4px; margin-bottom: 1.5rem; }
.principle__rule i { width: 10px; height: 10px; background: var(--ink); }
.principle__rule i:last-child { background: var(--accent); }

/* ---------- Services ---------- */
.service-stack { display: grid; gap: 1.25rem; }
.service-card {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.service-card__head { grid-column: 1 / span 5; }
.service-card__body { grid-column: 7 / span 6; }
.service-card h2 { font-size: var(--fs-xl); margin-top: 1.75rem; }
.service-card__outcome { margin-top: 1rem; font-size: var(--fs-md); font-weight: 500; line-height: 1.45; max-width: 26ch; }
.service-card__body > p { color: var(--muted); }
.service-card .text-link { margin-top: 2rem; }

.ticks { list-style: none; padding: 0; margin: 1.75rem 0 0; border-top: 1px solid var(--line); }
.ticks li {
  position: relative;
  padding: 0.95rem 0 0.95rem 1.6rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.faq__head { grid-column: 1 / span 4; }
.faq__head p { margin-top: 1.25rem; color: var(--muted); }
.faq__list { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.faq__icon::before { left: 0; right: 0; top: 6px; height: 2px; }
.faq__icon::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.faq details[open] .faq__icon::after { transform: scaleY(0); }
.faq details[open] summary { color: var(--accent); }
.faq details p { padding: 0 0 1.5rem; color: var(--muted); max-width: 60ch; }

/* ---------- Contact ---------- */
.contact-layout { align-items: start; }
.contact-form-wrap { grid-column: 1 / span 8; }
.contact-aside { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1rem; }

.form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.form-card:focus { outline: none; }
.form-card h2 { font-size: var(--fs-xl); }
.form-card__intro { margin-top: 0.75rem; color: var(--muted); }

.intent { border: 0; padding: 0; margin: 2rem 0 0; }
.intent legend { font-weight: 600; margin-bottom: 0.75rem; padding: 0; }
.intent__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.intent__options > div { position: relative; }
.intent__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.intent__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.85rem;
  height: 100%;
  padding: 1.1rem 1.15rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.intent__card:hover { border-color: #B9BCC5; }
.intent__check {
  grid-row: 1 / span 2;
  width: 16px;
  height: 16px;
  margin-top: 0.25rem;
  box-shadow: inset 0 0 0 1.5px #8A8E97;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.intent__title { font-weight: 700; }
.intent__desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.intent__input:checked + .intent__card { border-color: var(--accent); background: var(--accent-wash); }
.intent__input:checked + .intent__card .intent__check { background: var(--accent); box-shadow: none; }
.intent__input:focus-visible + .intent__card { outline: 3px solid var(--accent); outline-offset: 3px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.25rem;
  margin-top: 2rem;
}
.field { display: grid; gap: 0.45rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field__label { font-weight: 600; font-size: 0.9875rem; }
.field__opt { font-weight: 400; color: var(--muted); }
.field__hint { font-size: var(--fs-sm); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  line-height: 1.4;
  background: var(--white);
  border: 1.5px solid #8A8E97;
  border-radius: var(--radius-s);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input[type="date"] { display: block; min-width: 0; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231E1F22' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field input::placeholder, .field textarea::placeholder { color: #6B6F78; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #5C6069; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(68, 54, 255, 0.22);
}
.field [aria-invalid="true"],
.field [aria-invalid="true"]:hover { border-color: var(--error); }
.field [aria-invalid="true"]:focus { border-color: var(--error); box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.2); }
.field__error { display: none; font-size: var(--fs-sm); font-weight: 500; color: var(--error); }
.field.has-error .field__error { display: block; }

.appointment {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-s);
  background: var(--paper);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.appointment.is-required { background: var(--accent-wash); box-shadow: inset 0 0 0 1.5px rgba(68, 54, 255, 0.35); }
.appointment__note { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--muted); }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.form-foot p { font-size: var(--fs-sm); color: var(--muted); max-width: 34ch; }
.form-error-summary {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--error);
  background: #FCEEEE;
  color: #7A1A14;
  font-weight: 500;
  font-size: 0.9375rem;
}
.form-error-summary.is-visible { display: block; }
.form-error-summary a { color: inherit; font-weight: 700; text-underline-offset: 3px; }

.form-success { display: none; padding-block: 1rem; }
.form-success.is-visible { display: block; }
.form-success__mark { display: flex; gap: 4px; margin-bottom: 1.75rem; }
.form-success__mark i { width: 14px; height: 14px; background: var(--ink); }
.form-success__mark i:last-child { background: var(--accent); }
.form-success h2:focus { outline: none; }
.form-success p { margin-top: 1rem; color: var(--muted); max-width: 46ch; }
.form-success .actions { margin-top: 2rem; }

.aside-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.aside-card--dark { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.aside-card h3 { font-size: var(--fs-md); margin-bottom: 1.25rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.5rem; counter-increment: step; }
.steps li::before { content: "0" counter(step); font-weight: 700; font-size: var(--fs-sm); color: var(--accent); padding-top: 0.15rem; }
.steps strong { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 0.9375rem; }
.aside-card--dark p { color: var(--muted-dark); font-size: 0.9375rem; }
.aside-card--dark .email-link { display: inline-block; margin-top: 0.75rem; font-weight: 600; font-size: var(--fs-md); color: var(--white); text-decoration-color: var(--accent-tint); text-underline-offset: 4px; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--white); }
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line-dark);
}
.footer-cta__title { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.footer-cta__text { margin-top: 1rem; color: var(--muted-dark); max-width: 36rem; }
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.footer-brand p { margin-top: 1.25rem; color: var(--muted-dark); max-width: 30ch; font-size: 0.9375rem; }
.footer-col__title { font-size: 0.9375rem; font-weight: 600; color: var(--muted-dark); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.footer-col a { text-decoration: none; font-size: 0.9875rem; color: var(--white); overflow-wrap: anywhere; }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--accent-tint); text-underline-offset: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
  color: var(--muted-dark);
}
.footer-bottom__promise { font-weight: 600; color: var(--white); letter-spacing: -0.015em; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__copy { grid-column: 1 / span 7; }
  .hero__art { grid-column: 8 / span 5; }
  .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .contact-form-wrap { grid-column: 1 / span 7; }
  .contact-aside { grid-column: 8 / span 5; }
}

@media (max-width: 860px) {
  .hero__copy, .hero__art,
  .overview__head, .overview__body,
  .partner__head, .partner__cards,
  .service-card__head, .service-card__body,
  .faq__head, .faq__list,
  .contact-form-wrap, .contact-aside { grid-column: 1 / -1; }

  .hero__art { margin-top: 3rem; }
  .pixel-art { max-width: 260px; margin: 0; }
  .overview__body { margin-top: 0.5rem; }
  .points, .pillars, .principles, .process-grid { grid-template-columns: 1fr; }
  .points { gap: 2.25rem; }
  .promise { grid-template-columns: 1fr; gap: 1.1rem; }
  .service-row { grid-template-columns: 44px minmax(0, 1fr); gap: 0.6rem 1.25rem; align-items: start; }
  .service-row .glyph { width: 32px; margin-top: 0.3rem; }
  .service-row__desc, .service-row__more { grid-column: 2; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel .actions { justify-content: flex-start; }
  .cta-panel__corner { display: none; }
  .contact-aside { position: static; }
  .partner__cards { margin-top: 1rem; }
  .faq__list { margin-top: 1rem; }
  .service-card h2 { margin-top: 1.25rem; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .actions .btn { width: 100%; }
  .form-grid, .appointment, .intent__options { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cta .btn { width: 100%; }
  .form-foot .btn { width: 100%; }
  .brand__logo { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .px, .js .promise__item { animation: none !important; opacity: 1; }
  .px.is-h { background: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }
  .px.is-a { background: var(--accent); box-shadow: none; }
}
