/* =========================================================
   STRATUM — AI Consultancy Website
   taste-skill applied: DESIGN_VARIANCE:8, MOTION:6, DENSITY:4
   Vibe: Ethereal Glass + Editorial Luxury on OLED dark canvas
   ========================================================= */

/* ─── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas:    #0b0b0f;
  --surface:   #111118;
  --surface-2: #18181f;
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.04);
  --text-1:    #f0eff4;
  --text-2:    #a09eb8;
  --text-3:    #5e5c72;
  --accent:    #F2721C;      /* Sula orange — from logo gradient */
  --accent-dim: rgba(242,114,28,0.15);

  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);

  --nav-h: 68px;
  --section-pad: clamp(80px, 10vw, 140px);
  --max-w: 1240px;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--canvas);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── GRAIN OVERLAY ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
}

/* ─── SELECTION ─────────────────────────────────────────── */
::selection { background: var(--accent); color: #fff; }

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── UTILITIES ─────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }

/* ─── REVEAL ANIMATIONS ─────────────────────────────────── */
.reveal, .reveal-up {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal      { transform: none; }
.reveal-up   { transform: translateY(28px); }
.reveal.visible, .reveal-up.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ─── SECTION LABELS & TITLES ────────────────────────────── */
.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-1);
}

.section__title em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-2);
}

.section__header { margin-bottom: clamp(48px, 7vw, 80px); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--ease-spring), background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-dim);
}
.btn--primary:hover {
  background: #F28340;
  box-shadow: 0 8px 32px rgba(242,114,28,0.35);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-1);
  transform: translateY(-2px);
}

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

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11,11,15,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-2);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(11,11,15,0.92);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
  text-decoration: none;
}

.nav__logo-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__links a:hover { color: var(--text-1); background: rgba(255,255,255,0.04); }

.nav__cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 9px 18px !important;
}
.nav__cta:hover { background: #F28340 !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-2);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ─── MOBILE MENU ────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(11,11,15,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease-spring);
  padding: 24px clamp(20px, 5vw, 60px);
}

.mobile-menu.open { transform: translateY(0); }

.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-2);
  transition: color 0.2s ease;
}
.mobile-menu a:hover { color: var(--text-1); }

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* ── Video background ── */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Inward radial mask: video fully visible at centre, dissolves into
     the canvas background at all four edges */
  -webkit-mask-image: radial-gradient(
    ellipse 72% 72% at 50% 50%,
    black 28%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 72% 72% at 50% 50%,
    black 28%,
    transparent 78%
  );
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark scrim over the video so text stays readable */
.hero__video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  pointer-events: none;
}

/* ── Centred content ── */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 60px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: breathe 2.5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero__headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text-1);
  margin-bottom: 1.8rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero__headline em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: #e8e6f0;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 1), 0 1px 6px rgba(0, 0, 0, 0.9);
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-1);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.4rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─── TICKER ─────────────────────────────────────────────── */
.hero__ticker {
  border-top: 1px solid var(--border-2);
  padding: 20px 0;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
}

.ticker__track span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
}

.ticker__track .sep { color: var(--border); }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── LOGOS ──────────────────────────────────────────────── */
.logos {
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 60px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.logos__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
  text-align: center;
}

.logos__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.logo-item {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-3);
  padding: 10px 20px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.logo-item:hover { color: var(--text-2); border-color: var(--border); }

/* ─── WORK / BENTO ───────────────────────────────────────── */
.work {
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.work::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 100%);
  height: 500px;
  background: radial-gradient(ellipse, rgba(242,114,28,0.07) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.work > * { position: relative; z-index: 1; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento__card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-spring);
}
.bento__card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}

.bento__card--wide {
  grid-column: span 2;
}
.bento__card--tall {
  grid-row: span 2;
}
.bento__card--small {
  grid-column: span 1;
}
.bento__card--accent {
  background: var(--accent-dim);
  border-color: rgba(242,114,28,0.2);
}
.bento__card--accent:hover { border-color: rgba(242,114,28,0.4); }

.bento__img {
  height: 200px;
  position: relative;
}
.bento__img--short { height: 140px; }

.bento__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.bento__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 999px;
}

.bento__body {
  padding: 24px;
}
.bento__body--full {
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento__stat {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-1);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.bento__card--accent .bento__stat { color: #F5A76C; }

.bento__body h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-1);
  margin-bottom: 8px;
}

.bento__body p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.bento__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.bento__link:hover { gap: 10px; }

/* ─── SERVICES ───────────────────────────────────────────── */
.services {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

/* Soft white spotlight from the top edge */
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 480px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.services__inner {
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.service {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}

/* Animated top border */
.service::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--border-2);
  transition: width 0.9s var(--ease-out);
}

/* Animated vertical divider (odd items only) */
.service:nth-child(odd)::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  height: 0;
  background: var(--border-2);
  transition: height 1.1s var(--ease-out) 0.35s;
}

/* Stagger the top border draws per row */
.service:nth-child(1)::before { transition-delay: 0s; }
.service:nth-child(2)::before { transition-delay: 0.1s; }
.service:nth-child(3)::before { transition-delay: 0.55s; }
.service:nth-child(4)::before { transition-delay: 0.65s; }

/* Triggered by .lines-drawn on the grid */
.services__grid.lines-drawn .service::before { width: 100%; }
.services__grid.lines-drawn .service:nth-child(odd)::after { height: 100%; }

.service:nth-child(odd) { padding-right: 48px; }
.service:nth-child(even) { padding-left: 48px; }

.service__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-family: 'Courier New', monospace;
  padding-top: 4px;
}

.service__body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service__icon {
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.85;
}

.service__body p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service__list li {
  font-size: 0.82rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service__list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}


/* ─── PROCESS ────────────────────────────────────────────── */
.process {
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border-2);
}

/* ─── TIMELINE ───────────────────────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 24px;
  position: relative;
  margin-top: clamp(48px, 7vw, 80px);
}

/* Connecting horizontal line through the nodes */
.timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--border) 10%,
    var(--border) 90%,
    transparent 100%
  );
}

.timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}

.timeline__node {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  flex-shrink: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline__step:hover .timeline__node {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(242,114,28,0.2);
}

.timeline__num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-family: 'Courier New', monospace;
}

.timeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.timeline__body {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ─── ABOUT ──────────────────────────────────────────────── */
.about {
  background: #f2f1ee;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.about__inner {
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Light-mode overrides for the about section */
.about .section__label { color: #c85f10; }
.about .about__title { color: #0f0f14; }
.about .about__title em { color: #5a5770; }
.about .about__body { color: #4a4865; }
.about .about__stat-num { color: #0f0f14; }
.about .about__stat-label { color: #7a7890; }
.about .about__stats { border-top-color: rgba(0,0,0,0.1); }
.about .about__stat { border-right-color: rgba(0,0,0,0.1); }
.about .about__photo-frame { background: #e5e4e0; border-color: rgba(0,0,0,0.1); }
.about .about__photo-caption { color: #0f0f14; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.about__grid--founder {
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
}

.about__photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.about__photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
}

.about__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.about__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.about__photo-caption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  text-align: center;
}

.about__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 1rem;
}

.about__title em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-2);
}

.about__body {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-2);
  padding-top: 32px;
}

.about__stat { padding: 0 24px 0 0; border-right: 1px solid var(--border-2); }
.about__stat:first-child { padding-left: 0; }
.about__stat:last-child  { border-right: none; padding-right: 0; padding-left: 24px; }
.about__stat:nth-child(2) { padding-left: 24px; }

.about__stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 8px;
}

.about__stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testimonials {
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border-2);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s ease;
}
.testimonial:hover { border-color: var(--border); }

.testimonial p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-1);
}

.testimonial span {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ─── CONTACT ────────────────────────────────────────────── */
.contact {
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  border-top: 1px solid var(--border-2);
  background: var(--surface);
}

.contact__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.contact__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 1rem 0 1.2rem;
}

.contact__title em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-2);
}

.contact__sub {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__details a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact__details a:hover { color: #F5A76C; }

.contact__details span {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* FORM */
.form { display: flex; flex-direction: column; gap: 20px; }

.form__group { display: flex; flex-direction: column; gap: 8px; }

.form__group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.03em;
}

.form__group input,
.form__group textarea {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--text-1);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--text-3); }

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form__group input.error,
.form__group textarea.error { border-color: #f87171; }

.form__error {
  font-size: 0.75rem;
  color: #f87171;
  min-height: 18px;
  display: block;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-2);
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 60px) 36px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 32px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
  text-decoration: none;
  margin-bottom: 12px;
}

.footer__logo-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 220px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--text-1); }

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom span {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ─── MAGNETIC BUTTON ────────────────────────────────────── */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1),
              background 0.2s ease,
              box-shadow 0.2s ease;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

/* ── TABLET — up to 1024px ──────────────────────────────── */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--wide { grid-column: span 2; }
  .bento__card--tall { grid-row: auto; }

  .services__grid { grid-template-columns: 1fr; }
  .service:nth-child(odd) { padding-right: 0; }
  .service:nth-child(even) { padding-left: 0; }
  .service:nth-child(odd)::after { display: none; }

  /* Timeline: 2×2 on tablet */
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
  }
  .timeline::before { display: none; }
  .timeline__step { align-items: flex-start; text-align: left; }

  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }

  .about__grid--founder { grid-template-columns: 1fr 1fr; gap: 48px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ── MOBILE — up to 768px ────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .hero__content { padding-top: 60px; padding-bottom: 60px; }

  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: span 1; }
  .bento__img { height: 180px; }

  .service { grid-template-columns: 56px 1fr; }

  /* Timeline: vertical on mobile */
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline::before {
    top: 0; bottom: 0;
    left: 20px; right: auto;
    width: 1px; height: auto;
    background: linear-gradient(to bottom, transparent 0%, var(--border) 8%, var(--border) 92%, transparent 100%);
  }
  .timeline__step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
    padding: 0 0 40px 0;
  }
  .timeline__node { margin-bottom: 0; flex-shrink: 0; }

  .about__grid,
  .about__grid--founder { grid-template-columns: 1fr; }
  .about__photo { max-width: 320px; margin: 0 auto; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .about__stat:last-child { border-right: none; }

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

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

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── SMALL MOBILE — up to 480px ─────────────────────────── */
@media (max-width: 480px) {
  :root { --section-pad: 48px; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .bento__img { height: 150px; }

  .service { grid-template-columns: 1fr; gap: 12px; }
  .service__num { display: none; }

  .testimonial { padding: 20px; }

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

/* ── ABOUT MOBILE — targeted fixes ──────────────────────── */
@media (max-width: 768px) {
  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 32px;
    padding-top: 24px;
  }
  .about__stat-num { font-size: 1.8rem; }
  .about .about__stat { border-right-color: rgba(0,0,0,0.1); }
  .about .about__stat:last-child { border-right: none; }

  .about__photo {
    max-width: 280px;
    margin: 32px auto 0;
  }

  .about__title { font-size: clamp(1.7rem, 6vw, 2.4rem); }
}
