/* ==========================================================================
   BD-PITS — Benjamin Dretzke, Professional IT Services
   Design system & styles
   Brand palette derived from logo:
     Navy   #004060  (primary)
     Azure  #00B0E0  (accent)
     Grays  #909090 / #E0E0E0
   No external font/CDN dependencies (GDPR-friendly, self-contained).
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Design tokens                                                              */
/* -------------------------------------------------------------------------- */
:root {
  /* Brand scale */
  --brand-950: #001624;
  --brand-900: #002030;
  --brand-800: #002d44;
  --brand-700: #004060; /* logo navy */
  --brand-600: #005a82;
  --brand-500: #0079a8;
  --brand-400: #00b0e0; /* logo azure */
  --brand-300: #41c6ec;
  --brand-200: #8eddf4;
  --brand-100: #cdeefb;
  --brand-50:  #e9f8ff;

  /* Brand gradient */
  --gradient-brand: linear-gradient(135deg, #004060 0%, #006a98 45%, #00b0e0 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(0,64,96,.95), rgba(0,176,224,.85));

  /* Neutral scale */
  --gray-950: #0a141b;
  --gray-900: #0d1b26;
  --gray-800: #1b2c38;
  --gray-700: #33454f;
  --gray-600: #4a5b66;
  --gray-500: #6b7b85;
  --gray-400: #909090;
  --gray-300: #c2ccd3;
  --gray-200: #e0e0e0;
  --gray-100: #eef3f7;
  --gray-50:  #f6f9fb;
  --white:    #ffffff;

  /* Semantic tokens (light theme defaults) */
  --bg:            var(--gray-50);
  --bg-alt:        var(--gray-100);
  --surface:       var(--white);
  --surface-2:     #fbfdfe;
  --text:          var(--gray-900);
  --text-muted:    var(--gray-600);
  --text-subtle:   var(--gray-500);
  --border:        #e2e9ef;
  --border-strong: #d2dde5;
  --brand:         var(--brand-700);
  --brand-ink:     var(--brand-600);
  --accent:        var(--brand-400);
  --ring:          rgba(0, 176, 224, .45);
  --shadow-color:  220 40% 20%;

  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / .06), 0 1px 3px hsl(var(--shadow-color) / .08);
  --shadow-md: 0 4px 12px hsl(var(--shadow-color) / .08), 0 2px 6px hsl(var(--shadow-color) / .06);
  --shadow-lg: 0 18px 40px hsl(var(--shadow-color) / .12), 0 6px 14px hsl(var(--shadow-color) / .08);
  --shadow-glow: 0 12px 40px rgba(0, 176, 224, .28);

  /* Radii */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  /* Spacing rhythm */
  --section-y: clamp(4rem, 9vw, 8rem);
  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);

  /* Typography */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Inter", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, "Inter", Roboto, Helvetica, Arial, sans-serif;
  --fs-display: clamp(2.6rem, 6vw, 4.4rem);
  --fs-h1: clamp(2.1rem, 4.5vw, 3.2rem);
  --fs-h2: clamp(1.7rem, 3.2vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.55rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.3rem);

  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  --bg:            #04141f;
  --bg-alt:        #061d2b;
  --surface:       #0a2433;
  --surface-2:     #0c2b3d;
  --text:          #e8f1f7;
  --text-muted:    #a6bccb;
  --text-subtle:   #7e98a8;
  --border:        rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --brand:         var(--brand-300);
  --brand-ink:     var(--brand-300);
  --accent:        var(--brand-400);
  --shadow-color:  205 80% 4%;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 18px rgba(0,0,0,.45);
  --shadow-lg: 0 22px 50px rgba(0,0,0,.55);
}

/* -------------------------------------------------------------------------- */
/* Reset & base                                                               */
/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

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

a { color: var(--brand-ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

ul, ol { list-style: none; padding: 0; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brand-400); color: #00222e; }

/* -------------------------------------------------------------------------- */
/* Layout helpers                                                             */
/* -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}
.section-head.center .eyebrow::before { display: none; }

.section-title { font-size: var(--fs-h2); margin-bottom: 1rem; }
.lead { font-size: var(--fs-lead); color: var(--text-muted); }

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.5rem;
  font-weight: 600;
  font-size: .98rem;
  border-radius: var(--radius-pill);
  line-height: 1;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-glow); color: #fff; }

.btn-outline {
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--accent); color: var(--brand-ink); }

.btn-ghost { color: var(--text); padding-inline: 1rem; }
.btn-ghost:hover { color: var(--brand-ink); }

.btn-light {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* -------------------------------------------------------------------------- */
/* Header / Navigation                                                        */
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 249, 251, .82);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-logo {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 64, 96, .25));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: .01em;
}
.brand-name span { color: var(--accent); }
.brand-sub {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
}

.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: .35rem; }
.nav-menu a {
  display: inline-block;
  padding: .55rem .9rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: .96rem;
  color: var(--text-muted);
  transition: color .2s, background-color .2s;
}
.nav-menu a:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nav-menu a.is-active { color: var(--brand-ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background-color .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(12deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { content: ""; top: -7px; }
.nav-toggle-bar::after { content: ""; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, #00b0e0 0%, #005a82 32%, #003046 60%, #001a28 100%);
  color: #eaf6fc;
  padding-block: clamp(4.5rem, 11vw, 8.5rem) clamp(4rem, 9vw, 7rem);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 40%, transparent 100%);
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 40%, transparent 100%);
  z-index: -1;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  z-index: -1;
  animation: float 14s ease-in-out infinite;
}
.hero-orb.orb-1 { width: 360px; height: 360px; background: #00b0e0; top: -80px; right: -60px; }
.hero-orb.orb-2 { width: 280px; height: 280px; background: #0090c8; bottom: -120px; left: -40px; animation-delay: -5s; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-content { max-width: 640px; }
.hero-portrait {
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 70px rgba(0, 12, 22, .5), 0 12px 40px rgba(0, 176, 224, .25);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5ff0c0; box-shadow: 0 0 0 4px rgba(95,240,192,.25);
}
.hero h1 {
  font-size: var(--fs-display);
  color: #fff;
  margin-bottom: 1.3rem;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #8fe9ff, #d6f6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: #cfeaf6;
  max-width: 620px;
  margin-bottom: 2.2rem;
}
.hero .btn-row { margin-bottom: 2.6rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; font-family: var(--font-display); letter-spacing: -.02em; }
.hero-meta span { font-size: .85rem; color: #a9d6e8; letter-spacing: .02em; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  background: var(--gradient-brand);
  color: #eaf6fc;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(90% 80% at 70% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(90% 80% at 70% 0%, #000 30%, transparent 100%);
}
.page-hero .eyebrow { color: #adeaff; }
.page-hero .eyebrow::before { background: rgba(255,255,255,.6); }
.page-hero h1 { color: #fff; font-size: var(--fs-h1); margin-bottom: 1rem; max-width: 18ch; }
.page-hero p { color: #d2ecf7; font-size: var(--fs-lead); max-width: 620px; }

.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #bfe4f2; margin-bottom: 1.4rem; }
.breadcrumb a { color: #bfe4f2; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .6; }

/* -------------------------------------------------------------------------- */
/* Cards                                                                      */
/* -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-700) 16%, transparent), color-mix(in srgb, var(--brand-400) 22%, transparent));
  color: var(--brand-ink);
  margin-bottom: 1.3rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: var(--fs-h3); margin-bottom: .7rem; }
.card p { color: var(--text-muted); font-size: .98rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--brand-ink);
}
.card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }

.card-number {
  position: absolute;
  top: 1.3rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-100);
  color: color-mix(in srgb, var(--accent) 18%, transparent);
  line-height: 1;
}

/* Feature list */
.feature-list { display: grid; gap: .85rem; margin-top: 1.2rem; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-muted); }
.feature-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); margin-top: .15rem; }

/* -------------------------------------------------------------------------- */
/* Stats                                                                      */
/* -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; margin-top: .6rem; color: var(--text-muted); font-size: .95rem; }

/* -------------------------------------------------------------------------- */
/* Split / media                                                              */
/* -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }

.media-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}
.media-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .5;
}
.media-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 1.2rem; }
.media-card .feature-list li { color: #e3f4fb; }
.media-card .feature-list svg { color: #9fe9ff; }

/* Profile photo */
.profile-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  isolation: isolate;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.profile-photo:hover img { transform: scale(1.045); }
.profile-photo figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 2.4rem 1.6rem 1.4rem;
  background: linear-gradient(to top, rgba(0, 22, 36, .92), rgba(0, 22, 36, .5) 55%, transparent);
  color: #fff;
}
.profile-photo figcaption strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.01em; }
.profile-photo figcaption span { font-size: .9rem; color: #bfe4f2; }

.split.top { align-items: start; }

/* prose */
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { display: grid; gap: .6rem; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prose strong { color: var(--text); }

/* -------------------------------------------------------------------------- */
/* Skills / tags                                                              */
/* -------------------------------------------------------------------------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .65rem; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color .2s, color .2s, transform .2s;
}
.tag:hover { border-color: var(--accent); color: var(--brand-ink); transform: translateY(-2px); }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-brand); }

/* -------------------------------------------------------------------------- */
/* Timeline                                                                   */
/* -------------------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: 1.6rem; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--accent), transparent);
}
.timeline-item { position: relative; padding-left: 2.6rem; }
.timeline-item::before {
  content: ""; position: absolute; left: 4px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
.timeline-item time { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.timeline-item h3 { font-size: 1.18rem; margin: .25rem 0 .4rem; }
.timeline-item p { color: var(--text-muted); font-size: .97rem; }

/* -------------------------------------------------------------------------- */
/* Testimonials                                                               */
/* -------------------------------------------------------------------------- */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.quote-mark { font-family: Georgia, serif; font-size: 3.4rem; line-height: .6; color: var(--accent); margin-bottom: .6rem; }
.quote-card blockquote { font-size: 1.05rem; color: var(--text); margin-bottom: 1.4rem; flex: 1; }
.quote-author { display: flex; align-items: center; gap: .85rem; }
.quote-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient-brand); color: #fff; font-weight: 700;
}
.quote-author cite { font-style: normal; font-weight: 700; color: var(--text); display: block; }
.quote-author span { font-size: .85rem; color: var(--text-subtle); }

/* -------------------------------------------------------------------------- */
/* Logos / process                                                            */
/* -------------------------------------------------------------------------- */
.process { counter-reset: step; display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.process-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 1.6rem 1.6rem; box-shadow: var(--shadow-sm); }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient-brand); color: #fff; margin-bottom: 1.1rem;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.process-step p { color: var(--text-muted); font-size: .95rem; }

/* -------------------------------------------------------------------------- */
/* CTA band                                                                   */
/* -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--gradient-brand);
  color: #fff;
  padding: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 120% at 50% 0%, rgba(255,255,255,.18), transparent 70%);
}
.cta-band h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: 1rem; }
.cta-band p { color: #e0f3fb; max-width: 560px; margin: 0 auto 1.8rem; font-size: var(--fs-lead); }
.cta-band .btn-row { justify-content: center; }

/* -------------------------------------------------------------------------- */
/* Forms / contact                                                            */
/* -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.contact-info { display: grid; gap: 1.2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ci-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-700) 16%, transparent), color-mix(in srgb, var(--brand-400) 22%, transparent));
  color: var(--brand-ink);
}
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.contact-item p, .contact-item a { color: var(--text-muted); font-size: .96rem; }
.contact-item a:hover { color: var(--brand-ink); }

.form { display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}
.field-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--text-muted); }
.field-check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--brand-400); }
.field-check a { text-decoration: underline; }

.form-status { font-size: .92rem; padding: .8rem 1rem; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.success { background: color-mix(in srgb, #18b67a 16%, transparent); color: #0c7a52; border: 1px solid #6fd9b3; }
.form-status.error { background: color-mix(in srgb, #e0556a 16%, transparent); color: #b22a3e; border: 1px solid #efa3ae; }
[data-theme="dark"] .form-status.success { color: #7ff0c2; }
[data-theme="dark"] .form-status.error { color: #ffb1bd; }

/* -------------------------------------------------------------------------- */
/* FAQ                                                                        */
/* -------------------------------------------------------------------------- */
.faq { display: grid; gap: .9rem; max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.2rem 1.4rem;
  font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform .25s; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; color: var(--text-muted); }

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
.site-footer { background: var(--gray-950); color: #c7d6df; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
[data-theme="dark"] .site-footer { background: #020c13; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.4rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand { color: #fff; margin-bottom: 1.1rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #7fa9bd; }
.footer-brand p { color: #93aab8; font-size: .95rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { color: #a7bcc8; font-size: .95rem; }
.footer-col a:hover { color: var(--brand-300); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: #cddde6;
  transition: background-color .2s, color .2s, transform .2s;
}
.footer-social a:hover { background: var(--brand-500); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: .88rem; color: #87a0ae; }
.footer-bottom nav { display: flex; gap: 1.3rem; }
.footer-bottom a { color: #87a0ae; }
.footer-bottom a:hover { color: var(--brand-300); }

/* -------------------------------------------------------------------------- */
/* Reveal animations                                                          */
/* -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-26px) translateX(14px); }
}

/* -------------------------------------------------------------------------- */
/* Utilities                                                                  */
/* -------------------------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }
.maxw-prose { max-width: 65ch; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand-700); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }
.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;
}

/* Helper classes (replace former inline styles) */
.btn-light.is-ghost { background: transparent; }
.btn-row.center { justify-content: center; }
.mx-auto { margin-inline: auto; }
.u-mt { margin-top: 1.4rem; }
.section-label { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.tag-cloud.center { justify-content: center; }
.u-narrow { max-width: 880px; margin-inline: auto; }
.container--narrow { max-width: 820px; }
.form-note { font-size: .82rem; margin-top: .2rem; }
.notice {
  background: var(--surface);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-color: var(--border-strong);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  margin-bottom: 1.5rem;
}
.footer-bottom.bare { border-top: none; padding-top: 0; }
.media-card .tag { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #eaf6fc; }
.media-card .tag:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.hero--center { min-height: 70vh; display: flex; align-items: center; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.04em; }

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: clamp(1.8rem, 6vw, 2.6rem); }
  .hero-content { max-width: none; }
  .hero-portrait { order: -1; width: min(320px, 72%); margin-inline: auto; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav { position: static; }
  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1rem var(--gutter) 1.4rem;
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateY(0); }
  .nav-menu a { padding: .85rem 1rem; border-radius: 10px; font-size: 1.05rem; }
  .nav-contact { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .hero-meta { gap: 1.2rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-orb { animation: none; }
}

/* Auto dark mode when user has no explicit preference set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #04141f; --bg-alt: #061d2b; --surface: #0a2433; --surface-2: #0c2b3d;
    --text: #e8f1f7; --text-muted: #a6bccb; --text-subtle: #7e98a8;
    --border: rgba(255,255,255,.09); --border-strong: rgba(255,255,255,.16);
    --brand: var(--brand-300); --brand-ink: var(--brand-300); --accent: var(--brand-400);
    --shadow-color: 205 80% 4%;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 6px 18px rgba(0,0,0,.45);
    --shadow-lg: 0 22px 50px rgba(0,0,0,.55);
  }
}
