/* =========================================================
   ZORADOX — styles.css
   Order: fonts → tokens → reset/base → layout utilities
          → shared components → one block per section
   ========================================================= */

/* ===== FONTS ===== */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallback: Arial resized to Inter's proportions,
   so the swap to Inter causes no visible layout shift. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}

/* ===== TOKENS ===== */

:root {
  /* Color */
  --color-bg:        #0A0E1A;
  --color-surface:   #111827;
  --color-border:    #1F2937;
  --color-text:      #E5E7EB;
  --color-muted:     #9CA3AF;
  --color-accent:    #22D3EE;   /* electric cyan */
  --color-accent-2:  #6366F1;   /* indigo, for gradients only */
  --color-on-accent: #0A0E1A;   /* text on accent backgrounds */
  --color-danger:    #F87171;   /* form errors */
  --color-bg-glass:  rgb(10 14 26 / 0.8);   /* --color-bg, translucent */

  --color-grid-minor: rgb(34 211 238 / 0.035);
  --color-grid-major: rgb(34 211 238 / 0.07);

  /* Typography */
  --font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Fluid type scale: min @ 360px viewport → max @ 1280px viewport */
  --step--1: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --step-2:  clamp(1.375rem, 1.23rem + 0.65vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --step-4:  clamp(2.125rem, 1.7rem + 1.9vw, 3.5rem);
  --step-5:  clamp(2.5rem, 1.85rem + 2.9vw, 4.5rem);

  --leading-tight: 1.1;
  --leading-snug:  1.3;
  --leading-body:  1.6;
  --tracking-mono: 0.08em;

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  --section-space: clamp(var(--space-8), 10vw, var(--space-10));

  /* Layout */
  --container-max: 72rem;   /* 1152px */
  --container-pad: clamp(var(--space-4), 4vw, var(--space-6));
  --header-height: 4rem;
  --z-header: 50;

  /* Shape */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --border: 1px solid var(--color-border);

  /* Blueprint grid */
  --grid-minor: 24px;
  --grid-major: 120px;      /* every 5th line */

  /* Focus */
  --focus-ring: 2px solid var(--color-accent);
  --focus-offset: 3px;

  /* Motion */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 600ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}

/* ===== RESET ===== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

p,
h1, h2, h3, h4 {
  overflow-wrap: break-word;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* ===== BASE ===== */

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Blueprint grid: two layers of 1px lines (minor + major),
   faded toward the edges with a radial mask. Fixed pseudo-element
   so it stays put while content scrolls, with no repaint cost. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid-major) 1px, transparent 1px),
    linear-gradient(var(--color-grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid-minor) 1px, transparent 1px);
  background-size:
    var(--grid-major) var(--grid-major),
    var(--grid-major) var(--grid-major),
    var(--grid-minor) var(--grid-minor),
    var(--grid-minor) var(--grid-minor);
  background-position: center top;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}

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

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: var(--leading-snug); }
h4 { font-size: var(--step-1); line-height: var(--leading-snug); }

p {
  text-wrap: pretty;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-text);
}

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-on-accent);
}

/* ===== FOCUS ===== */

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

/* Programmatic focus targets (e.g. <main> after skip link) need no ring */
[tabindex="-1"]:focus {
  outline: none;
}

/* ===== LAYOUT UTILITIES ===== */

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

.section {
  padding-block: var(--section-space);
}

.section + .section {
  border-top: var(--border);
}

.stack > * + * {
  margin-top: var(--space-4);
}

.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;
}

/* ===== SHARED COMPONENTS ===== */

/* Skip link: hidden until focused by keyboard */
.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform var(--duration-fast) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Section label, e.g. "// 01 — SERVICES" */
.section-label {
  display: block;
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;          /* 44px touch target */
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

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

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

.btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Section header: label + h2 + intro, used at the top of each section */
.section-header {
  max-width: 42rem;
  margin-bottom: var(--space-7);
}

.section-header__title {
  margin-bottom: var(--space-4);
}

.section-header__intro {
  font-size: var(--step-1);
  color: var(--color-muted);
}

/* Tag: small mono label for technologies (stack, work) */
.tag {
  padding: var(--space-1) var(--space-3);
  border: var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

/* ===== SCROLL REVEAL =====
   Hidden state applies only once reveal.js has run (.reveal-ready)
   and only when the user hasn't asked for reduced motion. */

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition:
      opacity var(--duration-slow) var(--ease-out),
      transform var(--duration-slow) var(--ease-out);
    transition-delay: calc(var(--reveal-index, 0) * 80ms);
  }

  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ===== REDUCED MOTION ===== */

@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;
  }
}

/* ===== 404 PAGE ===== */

.not-found {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: var(--space-8);
}

.not-found__inner {
  max-width: 36rem;
}

.not-found__title {
  margin-bottom: var(--space-4);
}

.not-found__text {
  margin-bottom: var(--space-6);
  color: var(--color-muted);
  font-size: var(--step-1);
}

/* ===== THANK-YOU PAGE ===== */

.thank-you {
  padding-block: clamp(var(--space-8), 14vw, var(--space-10));
}

.thank-you__inner {
  max-width: 40rem;
}

.thank-you__title {
  margin-bottom: var(--space-4);
}

.thank-you__text {
  margin-bottom: var(--space-6);
  color: var(--color-muted);
  font-size: var(--step-1);
}

.thank-you__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ===== PRIVACY PAGE ===== */

.privacy {
  padding-block: clamp(var(--space-8), 10vw, var(--space-9));
}

.privacy__inner {
  max-width: 44rem;
}

.privacy__title {
  margin-bottom: var(--space-4);
  font-size: var(--step-4);
}

.privacy__updated {
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--color-muted);
}

.privacy__content h2 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
  font-size: var(--step-2);
}

.privacy__content p,
.privacy__content ul {
  color: var(--color-muted);
}

.privacy__content p + p,
.privacy__content p + ul,
.privacy__content ul + p {
  margin-top: var(--space-3);
}

.privacy__content li + li {
  margin-top: var(--space-1);
}

.privacy__content strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ===== SECTIONS =====
   One block per section, in page order:
   HEADER → HERO → AUDIENCES → SERVICES → PROCESS → STACK
   → WORK → PRICING → FAQ → CONTACT → FOOTER */

/* ===== HEADER ===== */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: var(--border);
  background-color: var(--color-bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--space-6);
  min-height: var(--header-height);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: var(--tracking-mono);
  color: var(--color-text);
  text-decoration: none;
}

.header__logo:hover {
  color: var(--color-text);
}

.header__logo-mark rect {
  fill: var(--color-surface);
  stroke: var(--color-border);
}

.header__logo-mark path {
  stroke: var(--color-accent);
}

/* No-JS default: links shown in a wrapping row under the logo */
.header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  width: 100%;
  padding-block: var(--space-3);
}

.header__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-5);
}

.header__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;          /* 44px touch target */
  color: var(--color-muted);
  text-decoration: none;
}

.header__link:hover {
  color: var(--color-text);
}

.header__toggle {
  display: none;
}

/* Hamburger icon: one bar + two pseudo-element bars, morphs into an X */
.header__toggle-icon,
.header__toggle-icon::before,
.header__toggle-icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--duration-base) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.header__toggle-icon {
  position: relative;
}

.header__toggle-icon::before,
.header__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.header__toggle-icon::before { top: -0.375rem; }
.header__toggle-icon::after  { top: 0.375rem; }

.header__toggle[aria-expanded="true"] .header__toggle-icon {
  background-color: transparent;
}

.header__toggle[aria-expanded="true"] .header__toggle-icon::before {
  transform: translateY(0.375rem) rotate(45deg);
}

.header__toggle[aria-expanded="true"] .header__toggle-icon::after {
  transform: translateY(-0.375rem) rotate(-45deg);
}

@media (width < 60em) {
  /* Without JS the header grows to fit the links, so don't let it stick */
  :root:not(.js) .header {
    position: static;
  }

  :root:not(.js) .header__inner {
    padding-top: var(--space-3);
  }

  .js .header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: calc(var(--space-3) * -1);
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--color-text);
  }

  /* Dropdown panel. visibility (not display) lets it fade, and keeps
     closed links out of the tab order. */
  .js .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
    padding: var(--space-3) var(--container-pad) var(--space-6);
    border-bottom: var(--border);
    background-color: var(--color-bg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition:
      opacity var(--duration-base) var(--ease-out),
      transform var(--duration-base) var(--ease-out),
      visibility 0s linear var(--duration-base);
  }

  .js .header--open .header__nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .js .header__list {
    flex-direction: column;
  }

  .js .header__link {
    width: 100%;
    min-height: 3.25rem;
    border-bottom: var(--border);
    font-size: var(--step-1);
  }
}

@media (width >= 60em) {
  .header__nav {
    flex-wrap: nowrap;
    gap: var(--space-6);
    width: auto;
    padding-block: 0;
  }

  .header__list {
    flex-wrap: nowrap;
    column-gap: var(--space-6);
  }

  .header__link {
    font-size: var(--step--1);
  }
}

/* ===== HERO ===== */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(var(--space-8), 14vw, var(--space-10)) var(--space-6);
}

/* Soft cyan/indigo glow behind the headline */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40rem 24rem at 10% 0%,
      color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 70%),
    radial-gradient(36rem 24rem at 90% 15%,
      color-mix(in srgb, var(--color-accent-2) 12%, transparent), transparent 70%);
}

.hero__content {
  max-width: 50rem;
}

.hero__title {
  max-width: 20ch;
  margin-bottom: var(--space-5);
}

.hero__highlight {
  background-image: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subline {
  max-width: 40rem;
  margin-bottom: var(--space-6);
  font-size: var(--step-1);
  color: var(--color-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ===== AUDIENCES ===== */

.audiences__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-5);
}

/* Subgrid: each card spans 4 rows (index, title, text, list) and shares
   them with its neighbours, so the same parts line up across cards. */
.audiences__card {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: var(--space-6);
  border: var(--border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
}

.audiences__index {
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--tracking-mono);
  color: var(--color-accent);
}

.audiences__title {
  margin-bottom: var(--space-3);
}

.audiences__text {
  margin-bottom: var(--space-5);
  color: var(--color-muted);
}

.audiences__list {
  padding-top: var(--space-5);
  border-top: var(--border);
  font-size: var(--step--1);
}

.audiences__list li {
  display: flex;
  gap: var(--space-3);
}

.audiences__list li + li {
  margin-top: var(--space-2);
}

.audiences__list li::before {
  content: "→";
  color: var(--color-accent);
}

/* ===== SERVICES ===== */

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-5);
}

.services__card {
  padding: var(--space-6);
  border: var(--border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
}

.services__icon {
  box-sizing: content-box;
  margin-bottom: var(--space-5);
  padding: var(--space-3);
  border: var(--border);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
}

.services__title {
  margin-bottom: var(--space-3);
}

.services__text {
  color: var(--color-muted);
}

/* ===== PROCESS ===== */

/* Timeline: each step draws its own dot (::before) and the line
   segment to the next step (::after). Vertical on mobile. */
.process__steps {
  display: grid;
  gap: var(--space-6);
}

.process__step {
  position: relative;
  padding-left: var(--space-7);
}

.process__step::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0;
  z-index: 1;
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background-color: var(--color-bg);
}

.process__step::after {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: calc(-1 * var(--space-6) - 0.25rem);
  left: calc(0.375rem - 0.5px);
  width: 1px;
  background-color: var(--color-border);
}

.process__step:last-child::after {
  display: none;
}

.process__index {
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--tracking-mono);
  color: var(--color-accent);
}

.process__title {
  margin-bottom: var(--space-2);
}

.process__text {
  color: var(--color-muted);
}

@media (width >= 64em) {
  .process__steps {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-5);
  }

  .process__step {
    padding-top: var(--space-6);
    padding-left: 0;
  }

  .process__step::before {
    top: 0;
  }

  .process__step::after {
    top: calc(0.375rem - 0.5px);
    right: calc(-1 * var(--space-5));
    bottom: auto;
    left: 0.75rem;
    width: auto;
    height: 1px;
  }
}

/* ===== STACK ===== */

.stack__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-6) var(--space-5);
}

.stack__group {
  padding-top: var(--space-4);
  border-top: var(--border);
}

.stack__category {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-muted);
}

.stack__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ===== WORK ===== */

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--space-5);
}

/* Subgrid again: visual, meta, title, context and details line up across cards */
.work__card {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
}

.work__card > :not(.work__visual) {
  padding-inline: var(--space-6);
}

/* Illustration panel: its own finer blueprint grid */
.work__visual {
  display: grid;
  place-items: center;
  padding: var(--space-5);
  border-bottom: var(--border);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(var(--color-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid-major) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: center;
}

.work__ill {
  width: 100%;
}

/* SVG shapes take their colors from the tokens */
.work__ill-frame  { fill: var(--color-surface); stroke: var(--color-border); }
.work__ill-line   { fill: none; stroke: var(--color-border); }
.work__ill-grid   { fill: none; stroke: var(--color-border); stroke-dasharray: 2 3; }
.work__ill-cell   { fill: var(--color-bg); stroke: var(--color-border); }
.work__ill-muted  { fill: var(--color-border); }
.work__ill-accent { fill: var(--color-accent); }
.work__ill-soft   { fill: color-mix(in srgb, var(--color-accent) 15%, transparent); stroke: var(--color-accent); }
.work__ill-accent-line { fill: none; stroke: var(--color-accent); stroke-width: 1.5; stroke-linejoin: round; }
.work__ill-route  { fill: none; stroke: var(--color-accent); stroke-dasharray: 3 3; }

.work__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding-top: var(--space-5);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
}

.work__badge {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
}

.work__audience {
  color: var(--color-muted);
}

.work__title {
  margin-bottom: var(--space-1);
}

.work__context {
  margin-bottom: var(--space-5);
  color: var(--color-muted);
}

.work__details {
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
  border-top: var(--border);
}

.work__details dt {
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-accent);
}

.work__details dd {
  margin: 0 0 var(--space-4);
  color: var(--color-muted);
}

.work__details dd:last-child {
  margin-bottom: 0;
}

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-1);
  color: var(--color-text);
}

.work__cta {
  margin-top: var(--space-7);
  font-size: var(--step-1);
  color: var(--color-muted);
}

.work__cta-link {
  font-weight: 600;
}

/* ===== PRICING ===== */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-5);
}

/* Subgrid: title, summary, details and button line up across cards,
   so the three buttons sit on one line */
.pricing__card {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: var(--space-6);
  border: var(--border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
}

.pricing__title {
  margin-bottom: var(--space-2);
}

.pricing__summary {
  margin-bottom: var(--space-5);
  color: var(--color-muted);
}

.pricing__details {
  padding-top: var(--space-5);
  border-top: var(--border);
}

.pricing__details dt {
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-accent);
}

.pricing__details dd {
  margin: 0 0 var(--space-4);
  color: var(--color-muted);
}

.pricing__list li {
  display: flex;
  gap: var(--space-3);
  color: var(--color-text);
}

.pricing__list li + li {
  margin-top: var(--space-1);
}

.pricing__list li::before {
  content: "→";
  color: var(--color-accent);
}

.pricing__cta {
  align-self: end;
  margin-top: var(--space-4);
}

.pricing__note {
  max-width: 48rem;
  margin-top: var(--space-7);
  font-size: var(--step-1);
  color: var(--color-muted);
}

.pricing__note-link {
  font-weight: 600;
  white-space: nowrap;
}

/* ===== FAQ ===== */

.faq__layout {
  display: grid;
  gap: var(--space-6);
}

/* The grid gap spaces header and list, so drop the shared header margin */
.faq__header {
  margin-bottom: 0;
}

.faq__list {
  border-top: var(--border);
}

.faq__item {
  border-bottom: var(--border);
}

/* Remove the browser's default triangle; we draw our own +/− icon */
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 2.75rem;
  padding-block: var(--space-5);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: var(--leading-snug);
  list-style: none;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--color-accent);
}

/* Keep the focus ring inside the row, so it doesn't overlap the open answer */
.faq__question:focus-visible {
  outline-offset: 0;
}

/* Plus icon: two gradient bars. When open, the vertical bar shrinks
   to zero height, leaving a minus. background-size is animatable. */
.faq__question::after {
  content: "";
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  background-image:
    linear-gradient(var(--color-accent), var(--color-accent)),
    linear-gradient(var(--color-accent), var(--color-accent));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 1.5px, 1.5px 100%;
  transition: background-size var(--duration-base) var(--ease-out);
}

.faq__item[open] > .faq__question::after {
  background-size: 100% 1.5px, 1.5px 0%;
}

.faq__answer {
  max-width: 42rem;
  padding-bottom: var(--space-5);
  color: var(--color-muted);
}

.faq__points li {
  display: flex;
  gap: var(--space-3);
}

.faq__points li + li {
  margin-top: var(--space-1);
}

.faq__points li::before {
  content: "→";
  color: var(--color-accent);
}

@media (width >= 64em) {
  .faq__layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--space-8);
    align-items: start;
  }

  /* Header stays in view while the questions scroll past */
  .faq__header {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
  }
}

/* ===== CONTACT ===== */

.contact__grid {
  display: grid;
  gap: var(--space-5);
}

.contact__card {
  padding: var(--space-6);
  border: var(--border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
}

/* The booking path gets the soft hero glow, so it reads as the main option */
.contact__card--call {
  background-image: radial-gradient(28rem 16rem at 0% 0%,
    color-mix(in srgb, var(--color-accent) 8%, transparent), transparent 70%);
}

.contact__kicker {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-accent);
}

.contact__title {
  margin-bottom: var(--space-3);
}

.contact__text {
  margin-bottom: var(--space-6);
  color: var(--color-muted);
}

.contact__details {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: var(--border);
}

.contact__details dt {
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact__details dd {
  margin: 0 0 var(--space-4);
}

.contact__details dd:last-child {
  margin-bottom: 0;
}

/* --- Form --- */

.contact__note {
  margin-block: var(--space-2) var(--space-5);
  font-size: var(--step--1);
  color: var(--color-muted);
}

.contact__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-5) var(--space-4);
}

.contact__field--full {
  grid-column: 1 / -1;
}

.contact__label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--step--1);
  font-weight: 600;
}

.contact__optional {
  font-weight: 400;
  color: var(--color-muted);
}

.contact__input {
  display: block;
  width: 100%;
  min-height: 2.75rem;          /* 44px touch target */
  padding: var(--space-2) var(--space-3);
  border: var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.contact__input:hover {
  border-color: var(--color-muted);
}

.contact__input:focus-visible {
  outline-offset: 0;
  border-color: var(--color-accent);
}

.contact__input[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.contact__textarea {
  min-height: 9rem;
}

/* Custom chevron: the native arrow is removed, a rotated bordered
   square is drawn in its place, so it uses our colors. */
.contact__select {
  position: relative;
}

.contact__select select {
  appearance: none;
  padding-right: var(--space-7);
  cursor: pointer;
}

.contact__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--space-4);
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--color-muted);
  border-bottom: 1.5px solid var(--color-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.contact__error {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  color: var(--color-danger);
}

.contact__error:empty {
  display: none;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.contact__submit[aria-disabled="true"] {
  opacity: 0.7;
  cursor: progress;
}

.contact__status {
  flex: 1 1 16rem;
  font-size: var(--step--1);
}

.contact__status--success { color: var(--color-accent); }
.contact__status--error   { color: var(--color-danger); }

.contact__privacy {
  margin-top: var(--space-5);
  font-size: var(--step--1);
  color: var(--color-muted);
}

@media (width >= 64em) {
  .contact__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
  }
}

/* ===== FOOTER ===== */

.footer {
  padding-block: var(--space-8) var(--space-6);
  border-top: var(--border);
  background-color: var(--color-bg);
  font-size: var(--step--1);
  color: var(--color-muted);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-6) var(--space-5);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: var(--tracking-mono);
  color: var(--color-text);
  text-decoration: none;
}

.footer__logo:hover {
  color: var(--color-text);
}

.footer__logo-mark rect {
  fill: var(--color-surface);
  stroke: var(--color-border);
}

.footer__logo-mark path {
  stroke: var(--color-accent);
}

.footer__heading {
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--color-text);
}

.footer__list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: var(--space-6);
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;          /* 44px touch target */
  color: var(--color-muted);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: var(--border);
}
