/* ============================================================
  Sanket Z — Portfolio
   Light theme · wide-screen · built on TypeUI fundamentals
   ============================================================ */

/* ----- Design tokens ----- */
:root {
  /* Brand — ocean navy + teal, premium gold accent */
  --navy-900: #06182b;
  --navy-800: #0a2540;
  --navy-700: #0e3357;
  --navy-600: #16487a;
  --teal-700: #0b6b73;
  --teal-600: #0e7c86;
  --teal-500: #15a0aa;
  --gold-600: #b6862f;
  --gold-500: #c79a45;
  --gold-300: #e2c785;

  /* Neutrals (light theme) */
  --ink: #0e1c2b;          /* near-black headings/text */
  --slate: #51647a;        /* muted text */
  --slate-soft: #6f8294;
  --line: #e4eaf1;
  --line-strong: #d2dbe6;
  --surface: #ffffff;
  --surface-alt: #f3f7fb;  /* alt section bg */
  --surface-tint: #eaf3fb; /* soft blue tint */

  /* Semantic */
  --bg: #ffffff;
  --primary: var(--teal-600);
  --primary-hover: var(--teal-700);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Shadows — single light source from above */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06), 0 2px 6px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 6px 16px rgba(10, 37, 64, 0.08), 0 2px 6px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 18px 48px rgba(8, 24, 43, 0.14), 0 6px 16px rgba(8, 24, 43, 0.07);

  /* Layout — fluid, wide-screen friendly
     Breakpoints: mobile <640 · tablet 640–979 · desktop 1200+ · wide 1500+ · ultra 1800+ */
  --container: clamp(320px, 96vw, 1600px);
  --section-head-max: min(880px, 100%);
  --timeline-max: min(920px, 100%);
  --header-h: 76px;
  --gutter: clamp(1rem, 3.5vw, 3.5rem);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

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

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 14px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--navy-800); color: #fff;
  padding: 10px 16px; border-radius: var(--r-sm);
  z-index: 1000; transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }

/* ----- Focus visibility ----- */
:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 22px;
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 600; line-height: 1;
  white-space: nowrap; flex-shrink: 0;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-lg { --btn-h: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

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

.btn-ghost { background: var(--surface); color: var(--navy-800); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy-600); background: var(--surface-alt); }

/* ============================================================
   Header / Nav (light)
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: inherit; }
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-logo--footer { height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.brand-role { font-size: 0.78rem; color: var(--slate); }

.primary-nav ul { display: flex; gap: 28px; }
.primary-nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--slate);
  padding: 6px 2px; position: relative;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--teal-600); transform: scaleX(0);
  transform-origin: left; transition: transform 0.2s ease;
}
.primary-nav a:hover { color: var(--navy-800); }
.primary-nav a:hover::after { transform: scaleX(1); }

/* Scrolled state — frosted white header */
.site-header.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--surface);
  padding: 16px var(--gutter) 24px;
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--line);
  z-index: 99;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.mobile-nav a { display: block; padding: 14px 8px; color: var(--ink); font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--line); }

/* ============================================================
   Hero (light, two-column)
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: clamp(56px, 8vw, 104px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(234,243,251,0.35) 0%, rgba(246,250,254,0.25) 55%, rgba(255,255,255,0.2) 100%);
}

/* Hero video background slider */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-video-slider {
  position: absolute;
  inset: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.8s ease, transform 8s ease;
  will-change: opacity, transform;
}
.hero-video.is-active,
.hero-video:only-of-type {
  opacity: 1;
  transform: scale(1);
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.68) 34%, rgba(243,247,251,0.48) 58%, rgba(234,243,251,0.3) 100%),
    radial-gradient(70% 80% at 12% 20%, rgba(21,160,170,0.05), transparent 55%);
}

.hero-decor {
  position: absolute; right: -120px; top: -120px; z-index: 0;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,154,69,0.08), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 88px); align-items: center;
}
.hero h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw + 0.5rem, 5.25rem);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-lead {
  color: var(--ink);
  font-size: clamp(1.125rem, 1.2vw + 0.55rem, 1.4rem);
  line-height: 1.72;
  font-weight: 500;
  max-width: min(58ch, 100%);
  margin: 0 0 32px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--r-md);
  box-shadow: 0 2px 16px rgba(10, 37, 64, 0.07);
}
.hero-lead strong { color: var(--navy-800); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px 16px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14,124,134,0.28);
}
.stat-label {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--slate);
  margin: 0 0 10px;
  min-height: 2.7em; /* keeps values on one line across the row */
}
.stat-value {
  margin: 0;
  margin-inline: 0; /* reset browser dd indent */
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.65rem;
  color: var(--ink);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 1px;
  white-space: nowrap;
}
.stat-value span {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-700);
  line-height: 1;
}

/* Hero media */
.hero-media { position: relative; }
.hero-media-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.hero-media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-badge {
  position: absolute; left: -18px; bottom: -22px;
  display: flex; flex-direction: column; gap: 4px;
  max-width: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
}
.hero-badge-num { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--teal-700); line-height: 1; }
.hero-badge-label { font-size: 0.82rem; color: var(--slate); line-height: 1.4; }

/* ============================================================
   Trust band (light)
   ============================================================ */
.trust { background: var(--surface); border-block: 1px solid var(--line); padding: 30px 0; }
.trust-label { text-align: center; color: var(--slate); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 18px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; }
.trust-logos li {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem;
  color: var(--slate-soft);
  letter-spacing: 0.01em;
  transition: color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.trust-logos li:hover { color: var(--teal-700); transform: translateY(-2px); }
.trust-logos li.is-visible { animation: trustFade 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--surface-alt); }

/* ----- Experience (ocean video bg) ----- */
.experience-section {
  position: relative;
  overflow: hidden;
}
.experience-section.section-alt { background: transparent; }
.section-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.section-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: experienceVideoDrift 16s ease-in-out infinite alternate;
}
.section-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(243,247,251,0.94) 0%, rgba(243,247,251,0.86) 45%, rgba(243,247,251,0.92) 100%),
    radial-gradient(80% 60% at 80% 20%, rgba(21,160,170,0.1), transparent 55%);
}
.experience-inner {
  position: relative;
  z-index: 1;
}
@keyframes experienceVideoDrift {
  from { transform: scale(1.04); }
  to { transform: scale(1.08); }
}

.experience-section .timeline-body {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-head { max-width: var(--section-head-max); margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3vw + 0.5rem, 2.85rem); line-height: 1.05; margin-bottom: 20px; }
.section-intro { color: var(--slate); font-size: clamp(1.05rem, 1vw + 0.5rem, 1.18rem); margin: 0; }

h2 { font-size: clamp(1.9rem, 3vw + 0.5rem, 2.85rem); line-height: 1.06; }

/* ----- About ----- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.about-main h2 { margin-bottom: 32px; }
.about-main p { color: var(--slate); margin: 0 0 20px; max-width: min(72ch, 100%); font-size: clamp(1.02rem, 1vw + 0.5rem, 1.12rem); }
.about-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.about-card-title { font-size: 1.15rem; margin-bottom: 20px; }
.fact-list { display: flex; flex-direction: column; gap: 18px; }
.fact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.98rem; color: var(--ink); }
.fact-ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-alt); color: var(--teal-700);
  border: 1px solid var(--line);
}
.fact-ic svg { width: 20px; height: 20px; }
.fact-key { display: block; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin-bottom: 2px; }

/* ----- Card grid (expertise/projects) — mobile-first ----- */
.card-grid { display: grid; gap: clamp(20px, 2.5vw, 28px); grid-template-columns: 1fr; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14,124,134,0.22);
}

/* Visual header strip — fixed 16:9 crop, no distortion */
.feature-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-tint);
  flex-shrink: 0;
}
.feature-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card:hover .feature-visual img { transform: scale(1.06); }

/* Per-tile focal points so subjects stay visible in the crop */
.feature-card--cruise .feature-visual img    { object-position: center 45%; }
.feature-card--opi .feature-visual img       { object-position: center 55%; }
.feature-card--border .feature-visual img    { object-position: center 45%; }
.feature-card--booking .feature-visual img   { object-position: 42% 48%; }
.feature-card--api .feature-visual img       { object-position: center 42%; }
.feature-card--reporting .feature-visual img { object-position: center center; }
.feature-card--gdpr .feature-visual img      { object-position: center 45%; }
.feature-card--presales .feature-visual img  { object-position: 38% center; }
.feature-card--mentoring .feature-visual img { object-position: 42% center; }
.feature-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,24,43,0.08) 0%, rgba(6,24,43,0.52) 100%);
  transition: opacity 0.35s ease;
}
.feature-card--cruise .feature-visual-overlay {
  background: linear-gradient(180deg, rgba(14,124,134,0.12) 0%, rgba(6,24,43,0.55) 100%);
}
.feature-card--opi .feature-visual-overlay {
  background: linear-gradient(180deg, rgba(199,154,69,0.15) 0%, rgba(6,24,43,0.58) 100%);
}
.feature-card--border .feature-visual-overlay {
  background: linear-gradient(180deg, rgba(10,37,64,0.1) 0%, rgba(6,24,43,0.6) 100%);
}
.feature-card--api .feature-visual-overlay,
.feature-card--reporting .feature-visual-overlay {
  background: linear-gradient(180deg, rgba(14,124,134,0.18) 0%, rgba(10,37,64,0.62) 100%);
}
.feature-card--gdpr .feature-visual-overlay {
  background: linear-gradient(180deg, rgba(22,72,122,0.15) 0%, rgba(6,24,43,0.62) 100%);
}
.feature-card--booking .feature-visual-overlay,
.feature-card--presales .feature-visual-overlay {
  background: linear-gradient(180deg, rgba(14,124,134,0.1) 0%, rgba(6,24,43,0.54) 100%);
}
.feature-card--mentoring .feature-visual-overlay {
  background: linear-gradient(180deg, rgba(199,154,69,0.12) 0%, rgba(6,24,43,0.56) 100%);
}

.feature-body {
  padding: 22px 26px 28px;
  flex: 1;
}
.feature-card h3 { font-size: 1.22rem; margin-bottom: 10px; letter-spacing: -0.005em; }
.feature-card p { color: var(--slate); margin: 0; font-size: 0.98rem; line-height: 1.6; }

/* ----- Domain band ----- */
.domain-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.domain-media { position: relative; }
.domain-media-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface-tint) 0%, #f8fbfe 100%);
  aspect-ratio: 3 / 2;
}
.domain-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transform: scale(1.06);
  filter: saturate(1.1) blur(0.5px);
}
.domain-media-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(10px, 2vw, 18px);
}
.domain-media-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--r-lg) - 8px);
  animation: domainKenBurns 18s ease-in-out infinite alternate;
}
.domain-media-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 18% 12%, rgba(21,160,170,0.14), transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(255,255,255,0.35) 100%);
}
.domain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
}
.domain-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(14,124,134,0.22);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  box-shadow: var(--shadow-sm);
  animation: chipFloat 4.5s ease-in-out infinite;
}
.domain-chip:nth-child(2) { animation-delay: 0.6s; }
.domain-chip:nth-child(3) { animation-delay: 1.2s; }
.domain-chip:nth-child(4) { animation-delay: 1.8s; }
.domain-chip:nth-child(5) { animation-delay: 2.4s; }

@keyframes domainKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.domain-copy h2 { margin-bottom: 32px; }
.domain-copy > p { color: var(--slate); font-size: clamp(1.02rem, 1vw + 0.5rem, 1.12rem); margin: 0 0 28px; max-width: min(64ch, 100%); }

.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { position: relative; padding-left: 36px; color: var(--ink); font-size: 1.02rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ----- Timeline ----- */
.timeline { max-width: var(--timeline-max); margin-inline: auto; position: relative; padding-left: 8px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--teal-500), var(--line-strong));
}
.timeline-item { position: relative; padding: 0 0 36px 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal-600);
  box-shadow: 0 0 0 4px rgba(14,124,134,0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.timeline-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.35s ease;
}
.timeline-item:hover .timeline-body {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14,124,134,0.2);
}
.timeline-item:hover .timeline-marker {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(14,124,134,0.16);
}
.timeline-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.timeline-top h3 { font-size: 1.25rem; }
.timeline-meta { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.timeline-logo {
  width: 30px; height: 30px; object-fit: contain;
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 3px; border-radius: 6px;
}
.timeline-period {
  font-size: 0.8rem; font-weight: 600; color: var(--teal-700);
  background: rgba(14,124,134,0.1); padding: 5px 12px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.timeline-org { color: var(--navy-600); font-weight: 600; font-size: 0.98rem; margin: 4px 0 14px; }
.timeline-points { display: flex; flex-direction: column; gap: 9px; }
.timeline-points li { position: relative; padding-left: 20px; color: var(--slate); font-size: 0.98rem; line-height: 1.55; }
.timeline-points li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }

/* ----- Projects ----- */
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--teal-600);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
}
.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--gold-500);
}
.project-card.is-visible .project-tag { animation: tagSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.project-tag {
  display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-600); background: var(--surface-alt);
  padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 16px;
  border: 1px solid var(--line);
}
.project-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.project-card p { color: var(--slate); margin: 0; font-size: 0.98rem; }

/* ----- Certifications ----- */
.cert-grid { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 2vw, 20px); width: 100%; }
.cert-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  font-weight: 600; font-size: 1rem; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}
.cert-item::before {
  content: ""; flex-shrink: 0; width: 12px; height: 12px; border-radius: 4px;
  background: linear-gradient(145deg, var(--teal-500), var(--gold-500));
}
.cert-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--teal-500);
  box-shadow: var(--shadow-md);
}
.cert-item::before { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.cert-item:hover::before { transform: rotate(12deg) scale(1.15); }

/* ============================================================
   Contact (light) + form
   ============================================================ */
.contact-section {
  position: relative;
  overflow: hidden;
}
.contact-section.section-alt { background: transparent; }
.contact-inner {
  position: relative;
  z-index: 1;
}
.contact-section-head {
  margin-bottom: clamp(24px, 4vw, 44px);
}
.contact-title {
  font-size: clamp(2.6rem, 5vw + 0.6rem, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}
.contact-title-text {
  display: inline-block;
  background: linear-gradient(
    115deg,
    var(--navy-800) 0%,
    var(--teal-600) 28%,
    var(--gold-500) 48%,
    var(--teal-500) 68%,
    var(--navy-700) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: contactTitleShimmer 5s ease-in-out infinite;
}
.contact-title-accent {
  display: block;
  width: min(140px, 42%);
  height: 5px;
  margin: 16px auto 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--teal-500), var(--gold-500), var(--teal-600));
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0.9;
}
.contact-section-head.is-visible .contact-title-accent {
  animation:
    contactAccentIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    contactAccentShine 3.5s ease-in-out 0.9s infinite;
}
.contact-video-overlay {
  background:
    linear-gradient(180deg, rgba(243,247,251,0.45) 0%, rgba(243,247,251,0.28) 50%, rgba(243,247,251,0.38) 100%),
    radial-gradient(70% 55% at 20% 80%, rgba(21,160,170,0.04), transparent 60%);
}
.contact-section .contact-form,
.contact-section .contact-side {
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,0.75);
  box-shadow:
    0 4px 24px rgba(10, 37, 64, 0.1),
    0 1px 3px rgba(10, 37, 64, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.55);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2vw, 18px);
  align-items: start;
  width: 100%;
  max-width: min(620px, 100%);
  margin-inline: auto;
}

@media (min-width: 720px) {
  .contact-grid {
    max-width: min(620px, 100%);
  }
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: clamp(12px, 2vw, 16px);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px;
}
.contact-form--compact .field label { font-size: 0.82rem; }
.contact-form--compact .field { gap: 4px; }
.contact-form--compact .field input,
.contact-form--compact .field textarea {
  font-size: 0.92rem;
  padding: 8px 10px;
  min-height: 42px;
  border-radius: 6px;
}
.contact-form--compact .field textarea { min-height: 72px; }
.contact-form--compact .field-captcha label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate);
}
.contact-form--compact .field-captcha label span { font-weight: 600; }
.contact-form--compact .btn { min-height: 44px; font-size: 0.92rem; padding: 10px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  background: #fbfdfe;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  min-height: 50px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--slate-soft); }
.field input:hover, .field textarea:hover { border-color: var(--slate-soft); }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(21,160,170,0.18);
}
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.field-captcha label span { color: var(--teal-700); font-weight: 700; }

/* Honeypot — visually hidden, off-screen, not display:none (bots skip those) */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 2px 0 0; font-size: 0.88rem; font-weight: 500; min-height: 1.1em; }
.form-status.ok { color: var(--teal-700); }
.form-status.err { color: #c0392b; }

/* Contact side */
.contact-side {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: clamp(12px, 2vw, 16px);
}
.contact-side-title { font-size: 0.95rem; margin-bottom: 10px; }
.contact-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-ic {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--teal-700);
  border: 1px solid var(--line);
}
.contact-ic svg { width: 20px; height: 20px; }
.contact-text { display: flex; flex-direction: column; line-height: 1.4; }
.contact-key { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.contact-text a, .contact-text span:last-child { color: var(--ink); font-weight: 500; }
.email-display { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.email-link { font-weight: 500; word-break: break-all; }
.btn-copy-email {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-700);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.btn-copy-email:hover { border-color: var(--teal-600); background: var(--surface-alt); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }
.contact-note { margin: 0; font-size: 0.84rem; color: var(--slate); line-height: 1.5; }

/* ============================================================
   Footer (light)
   ============================================================ */
.site-footer { background: var(--surface-alt); color: var(--ink); padding: 44px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0; }
.footer-role { color: var(--slate); font-size: 0.85rem; margin: 2px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--slate); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--teal-700); }
.footer-copy {
  color: var(--slate);
  font-size: 0.85rem;
  margin: 0;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ============================================================
   Responsive — mobile-first breakpoints
   mobile <640 · tablet 640–979 · desktop 1200+ · wide 1500+ · ultra 1800+
   ============================================================ */

/* Tablet — 2-col grids, stacked section layouts */
@media (min-width: 640px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1.65fr 1fr; }
  .domain-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.15fr 0.85fr; max-width: min(780px, 100%); }
}

@media (min-width: 1080px) {
  .hero-inner { grid-template-columns: 1.08fr 0.92fr; }
  .hero-media { order: unset; max-width: none; margin-inline: unset; width: auto; }
}

/* Desktop — 3-col card grids, hero stays two-column */
@media (min-width: 1200px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* Wide — expand fluid container, increase breathing room */
@media (min-width: 1500px) {
  :root {
    --container: clamp(320px, 94vw, 1720px);
    --section-head-max: min(960px, 100%);
    --timeline-max: min(980px, 100%);
    --gutter: clamp(1.5rem, 3vw, 4rem);
  }
  .hero-inner { gap: clamp(48px, 5vw, 96px); }
  .hero-lead { max-width: min(60ch, 100%); }
  .about-grid { gap: clamp(48px, 5vw, 104px); }
  .domain-grid { gap: clamp(48px, 5vw, 104px); }
  .trust-logos { gap: 18px 48px; }
}

/* Ultra-wide — maximum fluid width */
@media (min-width: 1800px) {
  :root {
    --container: clamp(320px, 92vw, 1800px);
    --timeline-max: min(1040px, 100%);
  }
  .primary-nav ul { gap: 32px; }
}

/* Stack hero on narrow viewports (below two-column threshold) */
@media (max-width: 1079px) {
  .hero-media { order: -1; max-width: min(560px, 100%); margin-inline: auto; width: 100%; }
  .hero-badge { left: auto; right: 16px; }
}

@media (max-width: 979px) {
  .about-card { position: static; }
  .domain-media { order: 2; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-nav, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}

/* Mobile — single column, compact spacing */
@media (max-width: 639px) {
  .cert-grid { grid-template-columns: 1fr; }
  .feature-visual { min-height: 148px; }
  .feature-body { padding: 18px 20px 22px; }
  .hero-stats { gap: 10px; }
  .stat { padding: 12px 14px 14px; }
  .stat-label { min-height: auto; font-size: 0.78rem; margin-bottom: 8px; }
  .stat-value { font-size: 1.4rem; }
  .hero-actions .btn { flex: 1 1 auto; min-height: 44px; }
  .hero-badge { position: static; margin-top: 16px; max-width: none; }
  .timeline-top { flex-direction: column; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .feature-card:hover, .project-card:hover, .cert-item:hover, .stat:hover { transform: none; }
  .timeline-item:hover .timeline-body { transform: none; }
  .hero-video-bg { display: none; }
  .experience-section .section-video-bg { display: none; }
  .experience-section.section-alt { background: var(--surface-alt); }
  .experience-section .timeline-body { background: var(--surface); backdrop-filter: none; }
  .contact-section .section-video-bg { display: none; }
  .contact-section.section-alt { background: var(--surface-alt); }
  .contact-section .contact-form,
  .contact-section .contact-side { background: var(--surface); backdrop-filter: none; }
  .domain-media-video { display: none; }
  .domain-media-art img { animation: none; }
  .domain-chip { animation: none; }
}

/* Reveal-on-scroll */
/* ----- Scroll reveal animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.is-visible { opacity: 1; transform: none; }

.reveal-scale {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.is-visible { opacity: 1; transform: none; }

@keyframes tagSlide {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes trustFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes contactTitleShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
@keyframes contactAccentIn {
  to { transform: scaleX(1); }
}
@keyframes contactAccentShine {
  0%, 100% { background-position: 0% center; filter: brightness(1); }
  50% { background-position: 100% center; filter: brightness(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-video { transition: none; transform: none; }
  .project-card.is-visible .project-tag,
  .trust-logos li.is-visible { animation: none; }
  .contact-title-text { animation: none; background-position: 0% center; }
  .contact-section-head.is-visible .contact-title-accent { animation: none; transform: scaleX(1); }
}
