/* style.css — Jason Englund Business Portal
   Custom palette: near-black dark foundation + electric cyan accent
   Typography: Space Grotesk (display) + Inter (body)
*/

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

:root {
  /* Type Scale — fluid, clamp-based */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* 4px Spacing System */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

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

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

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ============================================================
   LIGHT MODE (secondary — clean, high contrast)
   ============================================================ */

:root, [data-theme="light"] {
  /* Surfaces */
  --color-bg:              #f5f5f7;
  --color-surface:         #ffffff;
  --color-surface-2:       #f9f9fb;
  --color-surface-offset:  #ededf2;
  --color-surface-offset-2: #e5e5ea;
  --color-surface-dynamic: #dddde5;
  --color-divider:         oklch(from #0a0a0f l c h / 0.1);
  --color-border:          oklch(from #0a0a0f l c h / 0.12);

  /* Text */
  --color-text:            #0a0a0f;
  --color-text-muted:      #55555e;
  --color-text-faint:      #8b8b96;
  --color-text-inverse:    #e8e8ed;

  /* Primary Accent — electric cyan (darkened for light mode legibility) */
  --color-primary:         #007a99;
  --color-primary-hover:   #005a73;
  --color-primary-active:  #003d52;
  --color-primary-highlight: #cdf0f9;

  /* Amber accent — very sparingly */
  --color-amber:           #c07000;
  --color-amber-hover:     #9a5800;
  --color-amber-highlight: #fff0c8;

  /* Semantic */
  --color-success:         #2e7d32;
  --color-error:           #c62828;
  --color-warning:         #c07000;

  /* Shadows */
  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.06), 0 1px 2px oklch(0 0 0 / 0.04);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.08), 0 2px 4px oklch(0 0 0 / 0.05);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.12), 0 4px 8px oklch(0 0 0 / 0.06);
  --shadow-xl: 0 24px 48px oklch(0 0 0 / 0.16), 0 8px 16px oklch(0 0 0 / 0.08);

  /* Glow effects */
  --glow-primary: 0 0 20px oklch(0.75 0.18 200 / 0.15);
  --glow-primary-strong: 0 0 40px oklch(0.75 0.18 200 / 0.25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:              #0a0a0f;
    --color-surface:         #111118;
    --color-surface-2:       #191920;
    --color-surface-offset:  #141419;
    --color-surface-offset-2: #1e1e27;
    --color-surface-dynamic: #252530;
    --color-divider:         oklch(from #e8e8ed l c h / 0.08);
    --color-border:          oklch(from #e8e8ed l c h / 0.1);
    --color-text:            #e8e8ed;
    --color-text-muted:      #8b8b96;
    --color-text-faint:      #55555e;
    --color-text-inverse:    #0a0a0f;
    --color-primary:         #00d4ff;
    --color-primary-hover:   #00bae0;
    --color-primary-active:  #009ab8;
    --color-primary-highlight: oklch(0.75 0.18 200 / 0.1);
    --color-amber:           #ff9f43;
    --color-amber-hover:     #e88a30;
    --color-amber-highlight: oklch(0.72 0.15 60 / 0.1);
    --color-success:         #4caf50;
    --color-error:           #ef5350;
    --color-warning:         #ff9f43;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.3), 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4), 0 2px 4px oklch(0 0 0 / 0.25);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5), 0 4px 8px oklch(0 0 0 / 0.3);
    --shadow-xl: 0 24px 48px oklch(0 0 0 / 0.6), 0 8px 16px oklch(0 0 0 / 0.4);
    --glow-primary: 0 0 20px oklch(0.75 0.18 200 / 0.2);
    --glow-primary-strong: 0 0 40px oklch(0.75 0.18 200 / 0.35);
  }
}

/* ============================================================
   DARK MODE (default — near-black foundation, cyan accent)
   ============================================================ */

[data-theme="dark"] {
  --color-bg:              #0a0a0f;
  --color-surface:         #111118;
  --color-surface-2:       #191920;
  --color-surface-offset:  #141419;
  --color-surface-offset-2: #1e1e27;
  --color-surface-dynamic: #252530;
  --color-divider:         oklch(from #e8e8ed l c h / 0.08);
  --color-border:          oklch(from #e8e8ed l c h / 0.1);

  /* Text */
  --color-text:            #e8e8ed;
  --color-text-muted:      #8b8b96;
  --color-text-faint:      #55555e;
  --color-text-inverse:    #0a0a0f;

  /* Primary Accent — electric cyan */
  --color-primary:         #00d4ff;
  --color-primary-hover:   #00bae0;
  --color-primary-active:  #009ab8;
  --color-primary-highlight: oklch(0.75 0.18 200 / 0.1);

  /* Amber — very sparingly */
  --color-amber:           #ff9f43;
  --color-amber-hover:     #e88a30;
  --color-amber-highlight: oklch(0.72 0.15 60 / 0.1);

  /* Semantic */
  --color-success:         #4caf50;
  --color-error:           #ef5350;
  --color-warning:         #ff9f43;

  /* Shadows — elevated dark mode */
  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.3), 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4), 0 2px 4px oklch(0 0 0 / 0.25);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5), 0 4px 8px oklch(0 0 0 / 0.3);
  --shadow-xl: 0 24px 48px oklch(0 0 0 / 0.6), 0 8px 16px oklch(0 0 0 / 0.4);

  /* Glow effects */
  --glow-primary: 0 0 20px oklch(0.75 0.18 200 / 0.2);
  --glow-primary-strong: 0 0 40px oklch(0.75 0.18 200 / 0.35);
}

/* ============================================================
   GLOBAL UTILITIES
   ============================================================ */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--default {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.display-1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.display-2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.display-3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.heading-1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.heading-2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.body-lg {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.body-sm {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.label--accent {
  color: var(--color-primary);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--glow-primary);
  transform: translateY(-1px);
}

[data-theme="light"] .btn--primary,
:root[data-theme="light"] .btn--primary {
  color: #ffffff;
}

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

.btn--ghost:hover {
  background: var(--color-surface-2);
  border-color: oklch(from var(--color-text) l c h / 0.2);
  transform: translateY(-1px);
}

.btn--outline-primary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline-primary:hover {
  background: var(--color-primary-highlight);
  box-shadow: var(--glow-primary);
  transform: translateY(-1px);
}

/* ============================================================
   SECTION STRUCTURE
   ============================================================ */

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 60ch;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition:
    box-shadow var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: oklch(from var(--color-primary) l c h / 0.3);
  transform: translateY(-2px);
}

/* ============================================================
   DIVIDER
   ============================================================ */

.divider {
  height: 1px;
  background: var(--color-divider);
  border: none;
  margin: 0;
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.2);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-height: 44px;
  transition:
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    background var(--transition-interactive);
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-faint);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b8b96' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
}

/* ============================================================
   SCROLL ANIMATIONS (opacity-only, no CLS)
   ============================================================ */

.reveal {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

.reveal-clip {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal-clip {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    animation: reveal-clip-kf linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

@keyframes reveal-clip-kf {
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* Staggered children */
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 50ms; }
.stagger > *:nth-child(3) { animation-delay: 100ms; }
.stagger > *:nth-child(4) { animation-delay: 150ms; }
.stagger > *:nth-child(5) { animation-delay: 200ms; }
.stagger > *:nth-child(6) { animation-delay: 250ms; }

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  transition:
    transform 300ms var(--ease-out),
    background var(--transition-interactive),
    border-color var(--transition-interactive);
}

/* Header always visible — no hide on scroll */

.site-header.header--scrolled {
  background: oklch(from var(--color-bg) l c h / 0.95);
}

.header-inner {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
  transition: opacity var(--transition-interactive);
}

.header-logo:hover { opacity: 0.8; }

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.logo-wordmark span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive);
}

.hamburger:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bg);
  flex-direction: column;
  padding: var(--space-24) var(--space-6) var(--space-8);
  gap: var(--space-2);
  opacity: 0;
  transform: translateX(100%);
  transition:
    opacity 280ms var(--ease-out),
    transform 280ms var(--ease-out);
}

.mobile-nav.is-open {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav .nav-link {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 600;
  padding: var(--space-4) var(--space-2);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
}

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

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    in oklab,
    oklch(0.05 0.01 250 / 0.3) 0%,
    oklch(0.05 0.01 250 / 0.7) 50%,
    oklch(0.04 0.01 250 / 0.95) 100%
  );
}

/* Light mode hero overlay */
[data-theme="light"] .hero-bg::after {
  background: linear-gradient(
    in oklab,
    oklch(0.97 0.005 250 / 0.5) 0%,
    oklch(0.96 0.005 250 / 0.8) 50%,
    oklch(0.96 0.005 250 / 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  padding-block: var(--space-24) var(--space-20);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-primary);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1rem + 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  max-width: 18ch;
}

.hero-subhead {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 55ch;
  margin-bottom: var(--space-10);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

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

.services {
  background: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition:
    box-shadow var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: oklch(from var(--color-primary) l c h / 0.4);
  transform: translateY(-3px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-primary);
  transition: background var(--transition-interactive);
}

.service-card:hover .service-icon {
  background: oklch(from var(--color-primary) l c h / 0.15);
}

.service-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.service-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ============================================================
   PORTFOLIO SECTION
   (moved to portfolio.css)
   ============================================================ */

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

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

.process {
  background: var(--color-surface);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
  position: relative;
}

/* Connecting line */
.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(var(--space-8) + 14px);
  right: calc(var(--space-8) + 14px);
  height: 1px;
  background: linear-gradient(
    to right,
    var(--color-primary),
    oklch(from var(--color-primary) l c h / 0.3)
  );
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
}

.process-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
  transition: 
    background var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.process-step:hover .process-number {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--glow-primary);
}

.process-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.process-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ============================================================
   INSIGHTS SECTION
   ============================================================ */

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

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.insight-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition:
    box-shadow var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive);
}

.insight-card:hover {
  box-shadow: var(--shadow-md);
  border-color: oklch(from var(--color-primary) l c h / 0.25);
  transform: translateY(-2px);
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.insight-date {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.insight-readtime {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.insight-readtime::before {
  content: '\00B7';
}

.insight-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.insight-excerpt {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: var(--space-6);
}

.insight-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition-interactive);
}

.insight-link:hover {
  gap: var(--space-3);
}

/* Subscribe block */
.subscribe-block {
  margin-top: var(--space-16);
  padding: var(--space-10) var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  text-align: center;
}

.subscribe-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.subscribe-sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.subscribe-form {
  display: flex;
  gap: var(--space-3);
  max-width: 440px;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-form .form-input {
  flex: 1;
  min-width: 220px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about {
  background: var(--color-surface);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  margin-top: var(--space-12);
}

.about-bio {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.stat-item {
  padding: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-skills {
  margin-bottom: var(--space-8);
}

.skills-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

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

.skill-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive);
}

.skill-tag:hover {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-color: oklch(from var(--color-primary) l c h / 0.3);
}

.about-education {
  padding: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-primary);
}

.edu-degree {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.edu-school {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* About visual panel */
.about-visual {
  position: relative;
}

.about-visual-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  overflow: hidden;
}

.about-visual-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 70% 20%, oklch(0.75 0.18 200 / 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, oklch(0.72 0.15 60 / 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.about-tagline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.about-tagline em {
  font-style: normal;
  color: var(--color-primary);
}

/* ============================================================
   CONTACT / BOOKING SECTION
   ============================================================ */

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

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-16);
  margin-top: var(--space-12);
  align-items: start;
}

.contact-info-block {
  position: sticky;
  top: calc(72px + var(--space-8));
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.contact-info-sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  min-height: 44px;
  transition:
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    background var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.contact-link:hover {
  color: var(--color-primary);
  border-color: oklch(from var(--color-primary) l c h / 0.3);
  background: var(--color-primary-highlight);
}

.contact-link svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* Booking Form */
.booking-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
}

.form-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-grid .form-group:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

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

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

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-12);
}

.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: start;
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.footer-brand .logo-wordmark {
  margin-top: var(--space-3);
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
  max-width: 42ch;
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-nav-link:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-decoration: none;
  transition:
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    background var(--transition-interactive);
  min-height: 44px;
}

.social-link:hover {
  color: var(--color-primary);
  border-color: oklch(from var(--color-primary) l c h / 0.4);
  background: var(--color-primary-highlight);
}

/* ============================================================
   SKIP NAV
   ============================================================ */

.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  z-index: 200;
  transition: top var(--transition-interactive);
}

.skip-nav:focus {
  top: var(--space-4);
}

/* ============================================================
   SECTION BACKGROUNDS — accent glow moments (sparingly)
   ============================================================ */

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(ellipse, oklch(0.75 0.18 200 / 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */

@media (max-width: 767px) {
  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-headline {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .contact-info-block {
    position: static;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .process-grid::before {
    display: none;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form .form-input,
  .subscribe-form .btn {
    width: 100%;
  }

  .booking-form {
    padding: var(--space-6);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .contact-info-block {
    position: static;
  }
}

@media (min-width: 1024px) {
  .header-actions .btn {
    display: inline-flex;
  }
}

/* Content visibility for performance — only apply to text-heavy sections */
.section.insights,
.section.about {
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}
