/* ============================================================
   PantherByte — Monochrome Design System (black / white / gray)
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #ffffff;
  --color-surface: #fafafa;
  --color-surface-2: #f4f4f4;
  --color-surface-offset: #efefef;
  --color-surface-offset-2: #e7e7e7;
  --color-surface-dynamic: #dedede;
  --color-divider: #e4e4e4;
  --color-border: #d4d4d4;
  --color-border-strong: #b5b5b5;

  /* Text */
  --color-text: #0a0a0a;
  --color-text-muted: #565656;
  --color-text-faint: #8c8c8c;
  --color-text-inverse: #ffffff;

  /* Accent = inversion (no hue). Primary used for fills/buttons. */
  --color-primary: #0a0a0a;
  --color-primary-hover: #1c1c1c;
  --color-primary-active: #000000;
  --color-primary-highlight: #e7e7e7;

  /* Semantic — kept grayscale-neutral */
  --color-success: #3a3a3a;
  --color-error: #111111;
  --color-warning: #5a5a5a;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows (grayscale) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.14);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Sora', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
}

[data-theme='dark'] {
  --color-bg: #0a0a0a;
  --color-surface: #121212;
  --color-surface-2: #171717;
  --color-surface-offset: #1a1a1a;
  --color-surface-offset-2: #222222;
  --color-surface-dynamic: #2a2a2a;
  --color-divider: #262626;
  --color-border: #2e2e2e;
  --color-border-strong: #454545;

  --color-text: #f4f4f4;
  --color-text-muted: #a3a3a3;
  --color-text-faint: #6f6f6f;
  --color-text-inverse: #0a0a0a;

  --color-primary: #f4f4f4;
  --color-primary-hover: #ffffff;
  --color-primary-active: #e0e0e0;
  --color-primary-highlight: #2a2a2a;

  --color-success: #b8b8b8;
  --color-error: #f2f2f2;
  --color-warning: #a0a0a0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.65);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0a0a0a;
    --color-surface: #121212;
    --color-surface-2: #171717;
    --color-surface-offset: #1a1a1a;
    --color-surface-offset-2: #222222;
    --color-surface-dynamic: #2a2a2a;
    --color-divider: #262626;
    --color-border: #2e2e2e;
    --color-border-strong: #454545;
    --color-text: #f4f4f4;
    --color-text-muted: #a3a3a3;
    --color-text-faint: #6f6f6f;
    --color-text-inverse: #0a0a0a;
    --color-primary: #f4f4f4;
    --color-primary-hover: #ffffff;
    --color-primary-active: #e0e0e0;
    --color-primary-highlight: #2a2a2a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.65);
  }
}

/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: var(--color-text);
  color: var(--color-bg);
}

:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive);
}

a:hover {
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.container-wide {
  max-width: var(--content-wide);
}

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

.section-tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--color-text-faint);
  display: inline-block;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 600;
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition-interactive);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: -0.03em;
}

.brand-mark {
  /* Full-body panther is ~3.37:1, so size by height and let width follow. */
  height: 1.5rem;
  width: auto;
  aspect-ratio: 640 / 190;
  flex-shrink: 0;
  display: inline-block;
  /* Masked rather than <img> so the mark inherits the theme's text colour,
     matching the currentColor behaviour of the SVG mark it replaced. */
  background-color: currentColor;
  -webkit-mask: url('logo-panther.png') no-repeat center / contain;
  mask: url('logo-panther.png') no-repeat center / contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition:
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--color-text);
}

@media (max-width: 860px) {
  .nav-actions .btn-primary {
    display: none;
  }
  .nav-actions {
    gap: 0.4rem;
  }
  .nav-links {
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    /* .site-header sets backdrop-filter, which makes it the containing block
       for fixed-position descendants. `bottom: 0` would therefore resolve
       against the 4.5rem header rather than the viewport, collapsing this
       panel to a ~49px strip that the links overflow — the page then shows
       through the menu. Set the height explicitly instead. */
    height: calc(100vh - 4.5rem);
    height: calc(100dvh - 4.5rem);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition-interactive), visibility var(--transition-interactive);
    z-index: 45;
  }

  .nav-links.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-divider);
  }

  .nav-toggle {
    display: inline-grid;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive);
  white-space: nowrap;
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
}

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

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

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 8rem) clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--color-divider);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-divider) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-divider) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-block: 1.25rem 1.5rem;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--color-text), var(--color-text-faint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  font-weight: 600;
}

.hero-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-divider);
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--color-surface-dynamic);
}

.hero-card-line {
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.hero-card-line .k {
  color: var(--color-text-faint);
}

.hero-card-line .v {
  color: var(--color-text);
}

/* ============================================================
   Logos / trust strip
   ============================================================ */
.trust {
  border-bottom: 1px solid var(--color-divider);
  padding-block: 2.5rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  color: var(--color-text-muted);
}

.trust-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item svg {
  width: 1.2rem;
  height: 1.2rem;
  opacity: 0.6;
}

/* ============================================================
   Positioning statements (buyer segments)
   ============================================================ */
.statements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 880px) {
  .statements {
    grid-template-columns: 1fr;
  }
}

.statement {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    border-color var(--transition-interactive),
    transform var(--transition-interactive),
    background var(--transition-interactive);
}

.statement:hover {
  border-color: var(--color-text);
  transform: translateY(-3px);
}

.statement-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.statement p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text);
}

.statement p span {
  color: var(--color-text-faint);
}

/* ============================================================
   Service cards
   ============================================================ */
.category-block {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-divider);
}

.category-head h3 {
  font-size: var(--text-xl);
  font-weight: 600;
}

.category-head .category-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}

.service-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    border-color var(--transition-interactive),
    transform var(--transition-interactive),
    background var(--transition-interactive);
}

a.service-card:hover {
  border-color: var(--color-text);
  transform: translateY(-3px);
  background: var(--color-surface-2);
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.service-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
}

.service-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.service-price {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  white-space: nowrap;
}

.service-card h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: var(--font-display);
}

.service-card .project-shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  display: block;
  background: var(--color-surface-dynamic);
  border: 1px solid var(--color-divider);
}

.service-card p.desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-grow: 1;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.service-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  max-width: none;
}

.service-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 0.5rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--color-text);
}

.service-buyers {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  padding-top: 0.6rem;
  border-top: 1px dashed var(--color-divider);
}

.service-link {
  font-size: var(--text-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text);
}

.service-link svg {
  width: 1em;
  height: 1em;
  transition: transform var(--transition-interactive);
}

a:hover .service-link svg {
  transform: translateX(3px);
}

/* ============================================================
   Profile / About
   ============================================================ */
.profile-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 860px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* The portrait tracks the bio alongside it, but only while .profile-grid is
   still two columns. Below that breakpoint the grid collapses and the
   portrait stacks above the text, where sticky would pin it over the bio as
   the page scrolls. Keep this in CSS rather than an inline style so the
   media query can win. */
@media (min-width: 861px) {
  .profile-grid > .portrait-frame {
    position: sticky;
    top: 6rem;
  }
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  /* The caption sits on the photo and is always #fff, so this scrim must stay
     dark in both themes. Deriving it from --color-bg made it white in light
     mode, which rendered the name and title invisible. */
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.portrait-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portrait-caption .name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 600;
}

.profile-bio p {
  margin-bottom: 1.1rem;
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.profile-bio p strong {
  color: var(--color-text);
  font-weight: 600;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}

.fact {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  background: var(--color-surface);
}

.fact .k {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 0.25rem;
}

.fact .v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
}

/* tech chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  background: var(--color-surface);
}

/* timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--color-border);
  margin-top: 1rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.75rem 1.6rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-text);
}

.timeline-item .when {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.timeline-item h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0.2rem 0;
}

.timeline-item .where {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* certs */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.cert {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cert .issuer {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cert .title {
  font-weight: 600;
  font-size: var(--text-sm);
}

/* ============================================================
   Process
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.process-step {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  background: var(--color-surface);
  counter-increment: step;
}

.process-step::before {
  content: '0' counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.process-step h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-text-faint);
  transition: transform var(--transition-interactive);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-a {
  padding: 0 1.3rem 1.2rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  border: 1px solid var(--color-text);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--color-primary);
  color: var(--color-bg);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 720px) {
  .cta-band {
    grid-template-columns: 1fr;
  }
}

.cta-band h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: inherit;
}

.cta-band p {
  color: color-mix(in oklab, var(--color-bg) 80%, transparent);
  margin-top: 0.6rem;
}

.cta-band .btn-primary {
  background: var(--color-bg);
  color: var(--color-text);
}

.cta-band .btn-ghost {
  border-color: color-mix(in oklab, var(--color-bg) 40%, transparent);
  color: var(--color-bg);
}

/* ============================================================
   Contact form
   ============================================================ */
.form-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-display);
}

.field .hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* Checkboxes and radios are excluded: they are not text inputs, and giving
   them width:100% made the "Same as account email" box fill its whole flex
   row, pushing the label to the far edge where it wrapped one word per line. */
.field input:not([type='checkbox']):not([type='radio']),
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive);
}

.field input[type='checkbox'],
.field input[type='radio'] {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--color-text);
}

/* Keep the label text on one line beside the box, wrapping as a block. */
.checkbox-inline {
  align-items: flex-start;
  line-height: 1.4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-text);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Contact page: form beside the "other ways to reach me" rail. Lives here
   rather than as an inline style so the single-column stack below can
   actually override it — an inline grid-template-columns cannot be beaten
   by a media query. */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.alt-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.alt-contact a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-sm);
}

.alt-contact a:hover {
  border-color: var(--color-text);
}

.alt-contact svg {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--color-text-muted);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  background: var(--color-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 0.85rem;
  max-width: 26rem;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============================================================
   Page header (interior pages)
   ============================================================ */
.page-header {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--color-divider);
  position: relative;
  overflow: hidden;
}

.page-header .grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-divider) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-divider) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}

.page-header > .container {
  position: relative;
}

.page-header h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-block: 1rem 1.25rem;
  max-width: 20ch;
}

.page-header .lead {
  max-width: 42rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: 1.25rem;
}

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

/* service detail layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 18rem;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.detail-body h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 2.25rem 0 1rem;
}

.detail-body h2:first-child {
  margin-top: 0;
}

.detail-body p,
.detail-body li {
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.detail-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.detail-body ul li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.detail-body ul li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-text);
}

.detail-aside {
  position: sticky;
  top: 6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: 1.5rem;
}

.detail-aside .price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}

.detail-aside .price-sub {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
}

.detail-aside .btn {
  margin-bottom: 0.85rem;
}

.detail-aside .meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-divider);
  padding-top: 1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-aside .meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Booking page (calendar -> Stripe payment)
   ============================================================ */
.step-indicator {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0;
  margin: 0 0 1.75rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.step-indicator li { display: flex; align-items: center; gap: 0.5rem; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-fg);
  border: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
}

.booking-step {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-divider);
}
.booking-step:first-of-type { border-top: none; padding-top: 0; }
.booking-step__title {
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}
.booking-step__hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.chip-date, .chip-time {
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.7rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.chip-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; min-width: 3.5rem; }
.chip-dow { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-faint); }
.chip-dmd { font-weight: 600; }
.chip-date:hover, .chip-time:hover { border-color: var(--color-text); }
.chip-date.is-selected, .chip-time.is-selected {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.chip-date.is-selected .chip-dow { color: var(--color-bg); opacity: 0.7; }

.booking-summary {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: var(--text-sm);
}
.summary-row span { color: var(--color-text-muted); }
.summary-row strong { font-weight: 600; text-align: right; }
.summary-row + .summary-row { border-top: 1px solid var(--color-divider); }

.booking-fineprint {
  margin-top: 0.75rem;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}

/* ============================================================
   Consultation pricing tiers
   ============================================================ */
.price-tier-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.price-tier {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.price-tier .amt {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}
.price-tier .lbl {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: right;
}

ul.tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
ul.tier-list li {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
ul.tier-list li strong { color: var(--color-text); font-weight: 600; }

/* ============================================================
   Booking — tier selector
   ============================================================ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.tier-option {
  text-align: left;
  cursor: pointer;
  font: inherit;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.tier-option:hover { border-color: var(--color-text); }
.tier-amt {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
}
.tier-name { font-weight: 600; font-size: var(--text-sm); }
.tier-desc { font-size: var(--text-xs); color: var(--color-text-faint); }
.tier-option.is-selected {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.tier-option.is-selected .tier-desc { color: var(--color-bg); opacity: 0.7; }

@media (max-width: 640px) {
  .tier-grid { grid-template-columns: 1fr; }
}

/* diagnostic aside note */
.aside-note { font-size: var(--text-xs); color: var(--color-text-muted); margin: 0.5rem 0 0.75rem; }
.aside-note a { color: var(--color-text); text-decoration: underline; }

/* diagnostic pricing cards */
.diag-tiers { grid-template-columns: repeat(3, 1fr); }
.tier-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
}
.tier-card .btn { margin-top: 0.6rem; }

@media (max-width: 640px) {
  .diag-tiers { grid-template-columns: 1fr; }
}

/* pricing note + booking success + form controls */
.pricing-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0.75rem 0 1rem;
}
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
}
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-text);
}
.booking-success { text-align: center; padding: 1.5rem 0.5rem; }
.booking-success h2 { margin-bottom: 0.5rem; }
.booking-success p { color: var(--color-text-muted); margin-bottom: 1.25rem; }
