/* ============================================================
   Piyush Chudasama — Portfolio
   Global stylesheet
   ============================================================ */

/* ---------- 0. Tomato Grotesk web fonts ----------------------
   Drop the licensed font files into assets/fonts/ with these
   exact names and they load automatically. Until then the site
   falls back to a close grotesque so nothing breaks.
   Accepted: .woff2 (preferred). Weights mapped 300–800.
   ------------------------------------------------------------ */
@font-face {
  font-family: "Tomato Grotesk";
  src: url("../fonts/TomatoGrotesk-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Tomato Grotesk";
  src: url("../fonts/TomatoGrotesk-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Tomato Grotesk";
  src: url("../fonts/TomatoGrotesk-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Tomato Grotesk";
  src: url("../fonts/TomatoGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Tomato Grotesk";
  src: url("../fonts/TomatoGrotesk-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Tomato Grotesk";
  src: url("../fonts/TomatoGrotesk-ExtraBold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- 1. Tokens ----------------------------------------- */
:root {
  /* Color */
  --bg:           #0A0A0C;
  --bg-elevated: #131318;
  --bg-soft:     #16161C;
  --surface:     rgba(255, 255, 255, 0.03);
  --surface-2:   rgba(255, 255, 255, 0.05);
  --border:      rgba(255, 255, 255, 0.08);
  --border-2:    rgba(255, 255, 255, 0.14);

  --fg:          #F2F0EB;
  --fg-2:        #C9C6BD;
  --fg-muted:    #8C8A85;
  --fg-faint:    #5B5A56;

  --accent:      #FF6A3D;
  --accent-soft: #FFB37A;
  --accent-dim:  rgba(255, 106, 61, 0.18);
  --accent-glow: rgba(255, 106, 61, 0.32);

  --success:     #6CE5B0;
  --danger:      #FF7070;

  /* Type */
  --font-display: "Tomato Grotesk", "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif:   "Tomato Grotesk", "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-sans:    "Tomato Grotesk", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Tomato Grotesk", "Manrope", ui-sans-serif, system-ui, sans-serif;

  /* Scale (fluid) */
  --t-xs:    clamp(11px, 0.7rem + 0.05vw, 12px);
  --t-sm:    clamp(13px, 0.8rem + 0.1vw,  14px);
  --t-base:  clamp(15px, 0.9rem + 0.15vw, 17px);
  --t-md:    clamp(18px, 1rem + 0.3vw,    21px);
  --t-lg:    clamp(22px, 1.1rem + 0.6vw,  28px);
  --t-xl:    clamp(28px, 1.3rem + 1.2vw,  40px);
  --t-2xl:   clamp(38px, 1.8rem + 2vw,    60px);
  --t-3xl:   clamp(52px, 2rem + 4vw,      96px);
  --t-4xl:   clamp(64px, 2.4rem + 7vw,    160px);

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;
  --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --s-10: 128px; --s-11: 160px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Motion */
  --ease-out:  cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in:   cubic-bezier(0.5, 0, 1, 0.5);
  --dur-fast:  200ms;
  --dur-base:  320ms;
  --dur-slow:  600ms;

  /* Layout */
  --max:       1280px;
  --max-prose: 720px;
  --gutter:    clamp(20px, 4vw, 48px);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 0 1px var(--border-2), 0 24px 60px -20px var(--accent-glow);
}

/* ---------- 2. Reset ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
input, textarea, select { font: inherit; color: inherit; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #000; }

/* Subtle film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.9'/></svg>");
}

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

/* ---------- 3. Typography ------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); letter-spacing: -0.035em; }
h2 { font-size: var(--t-2xl); letter-spacing: -0.032em; }
h3 { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
h4 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }

/* Accent — warm orange emphasis. Same font, no italics. */
h1 em, h2 em, h3 em, h4 em,
.hero-title em, .page-title em, .cta-title em, .sh-title em, .proj-title em, .case-section h2 em,
.footer-mega em {
  font-style: normal;
  font-weight: inherit;
  color: var(--accent);
  font-family: inherit;
  letter-spacing: inherit;
}

p { text-wrap: pretty; color: var(--fg-2); }

.italic-serif {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: var(--accent);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.mono { font-family: var(--font-mono); }

/* ---------- 4. Layout primitives ------------------------------ */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: 1440px; }
.container-tight { max-width: 980px; }
.container-prose { max-width: var(--max-prose); }

.section {
  padding-block: clamp(64px, 9vw, 140px);
}
.section-tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.stack-xl > * + * { margin-top: var(--s-8); }

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

/* ---------- 5. Components ------------------------------------- */

/* Top nav — floating centered pill */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
  transition: top var(--dur-base);
}
.nav-wrap > * { pointer-events: auto; }
.nav-wrap.is-scrolled { top: 10px; }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 18px;
  background: rgba(18, 18, 24, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  backdrop-filter: saturate(1.6) blur(20px);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  box-shadow: 0 12px 40px -16px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  max-width: 100%;
}
.nav-wrap.is-scrolled .nav {
  background: rgba(13, 13, 16, 0.82);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-md);
  letter-spacing: -0.035em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  position: relative;
  display: grid; place-items: center;
  color: #0A0A0C;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border-radius: var(--r-pill);
  background: transparent;
  border: 0;
  margin-left: 8px;
}
.nav-links a {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--fg-2);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.is-active {
  background: var(--surface-2);
  color: var(--fg);
}
.nav-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: 6px 6px;
}
.nav-cta {
  padding: 10px 16px 10px 18px;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  background: var(--accent);
  color: #0A0A0C;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.nav-cta:hover { background: var(--accent-soft); transform: translateY(-1px); box-shadow: 0 12px 28px -8px var(--accent-glow); }
.nav-cta::after {
  content: "→";
  transition: transform var(--dur-fast);
}
.nav-cta:hover::after { transform: translateX(3px); }

.nav-burger { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px var(--accent-glow);
}
.btn-ghost {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent);
  color: #0A0A0C;
}
.btn-accent:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn-lg { padding: 18px 28px; font-size: var(--t-base); }

.btn-arrow::after {
  content: "→";
  transition: transform var(--dur-fast);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* Cards */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color var(--dur-base), transform var(--dur-base);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-2);
}

/* Badge / chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-2);
}
.chip-accent {
  background: var(--accent-dim);
  border-color: rgba(255, 106, 61, 0.4);
  color: var(--accent-soft);
}
.chip-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Pulse availability */
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
}
.pulse::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--success);
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2);   opacity: 0; }
}

/* Divider line */
.hairline {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding-block: var(--s-5);
  background: var(--bg-soft);
}
.marquee-track {
  display: flex;
  gap: var(--s-8);
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: var(--t-md);
  letter-spacing: -0.02em;
  color: var(--fg-2);
  white-space: nowrap;
}
.marquee-item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Form */
.field {
  display: block;
  margin-bottom: var(--s-5);
}
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  margin-bottom: var(--s-2);
}
.input, .textarea, .select {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--fg);
  font-size: var(--t-base);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-soft);
}
.textarea { min-height: 160px; resize: vertical; font-family: var(--font-sans); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--s-9) var(--s-6);
  background: linear-gradient(180deg, transparent, rgba(255, 106, 61, 0.05));
  position: relative;
  overflow: hidden;
}
.footer-mega {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(60px, 14vw, 240px);
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-align: center;
  background: linear-gradient(180deg, var(--fg) 0%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-block: var(--s-8) var(--s-7);
  text-wrap: nowrap;
}
.footer-mega em {
  font-style: normal;
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--fg-2);
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--accent); }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  border-top: 1px solid var(--border);
  padding-top: var(--s-5);
  color: var(--fg-muted);
  font-size: var(--t-sm);
}

/* ---------- 6. Page sections ---------------------------------- */

/* Hero — home */
.hero {
  position: relative;
  padding-top: clamp(120px, 18vh, 200px);
  padding-bottom: clamp(60px, 8vw, 120px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 20% 30%, rgba(255, 106, 61, 0.18), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(255, 179, 122, 0.10), transparent 55%);
  filter: blur(40px);
  animation: drift 24s var(--ease-out) infinite alternate;
}
@keyframes drift {
  to { transform: translate(40px, -30px) scale(1.05); }
}
.hero-inner { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: var(--s-6);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}
.hero-sub {
  max-width: 640px;
  font-size: var(--t-md);
  color: var(--fg-2);
  margin-bottom: var(--s-7);
}

.hero-portrait {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #2A1810, #1A0E08);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 106, 61, 0.3), transparent 60%);
  mix-blend-mode: screen;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: var(--s-8);
}
.hero-stat {
  padding: var(--s-5) var(--s-5);
  background: var(--bg);
  transition: background var(--dur-base);
}
.hero-stat:hover { background: var(--bg-elevated); }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
}
.hero-stat-num em {
  font-style: normal;
  font-weight: inherit;
  color: var(--accent);
}
.hero-stat-label {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
}

/* Section header */
.sh {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
  flex-wrap: wrap;
}
.sh-title { font-size: var(--t-2xl); max-width: 700px; }
.sh-title em { color: var(--accent); font-style: normal; font-weight: inherit; }

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-5);
}
.project-card {
  grid-column: span 6;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: block;
  position: relative;
  transition: border-color var(--dur-base), transform var(--dur-base);
}
.project-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}
.project-card-tall { grid-column: span 5; }
.project-card-wide { grid-column: span 7; }
.project-card-full { grid-column: span 12; }

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
}
.project-thumb-tall { aspect-ratio: 4 / 5; }
.project-thumb-wide { aspect-ratio: 16 / 9; }
.project-thumb > svg,
.project-thumb > .browser-body > svg {
  width: 100%;
  height: 100%;
  display: block;
  flex: 1;
  min-height: 0;
}
.project-thumb > .browser-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.project-thumb > .browser-chrome {
  flex-shrink: 0;
}
.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,12,0.6) 100%);
  pointer-events: none;
}
.project-body {
  padding: var(--s-5) var(--s-6) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.project-name {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.project-arrow {
  font-family: var(--font-display);
  color: var(--fg-muted);
  transition: transform var(--dur-fast), color var(--dur-fast);
}
.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}
.project-desc {
  color: var(--fg-muted);
  font-size: var(--t-sm);
  line-height: 1.6;
}

/* About preview block */
.about-preview {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-8);
  align-items: center;
}
.about-preview-image {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 70% 30%, rgba(255,106,61,0.35), transparent 60%),
    linear-gradient(135deg, #221813, #0d0a08);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.about-preview-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 60px);
  pointer-events: none;
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.skill-card {
  padding: var(--s-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-base), background var(--dur-base);
}
.skill-card:hover {
  border-color: var(--border-2);
  background: var(--bg-soft);
}
.skill-num {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--fg-muted);
  letter-spacing: 0.16em;
}
.skill-title {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: var(--s-4) 0 var(--s-3);
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Workflow / process */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.workflow-step {
  background: var(--bg);
  padding: var(--s-6);
  transition: background var(--dur-base);
  position: relative;
}
.workflow-step:hover { background: var(--bg-elevated); }
.workflow-num {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
}
.workflow-name {
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: var(--s-4) 0 var(--s-3);
}
.workflow-desc {
  color: var(--fg-muted);
  font-size: var(--t-sm);
  line-height: 1.55;
}

/* Testimonial */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.reviews-grid .testimonial-card {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
}
.reviews-grid .testimonial-quote {
  flex: 1;
  font-size: var(--t-md) !important;
  line-height: 1.45;
}
.reviews-grid .testimonial-author { margin-top: var(--s-5); }
.review-cta {
  align-items: flex-start;
  justify-content: center;
  background: var(--accent-dim) !important;
  border-color: rgba(255,106,61,0.4) !important;
}
.review-cta .testimonial-quote { color: var(--fg); }
.stars {
  color: var(--accent);
  font-size: var(--t-md);
  letter-spacing: 2px;
}
.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-6);
  position: relative;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: pretty;
}
.testimonial-quote em {
  font-style: normal;
  color: var(--accent);
  font-weight: inherit;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #0A0A0C;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

/* CTA section */
.cta-section {
  position: relative;
  border-top: 1px solid var(--border);
  padding-block: clamp(80px, 12vw, 160px);
  text-align: center;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.cta-title {
  font-size: var(--t-3xl);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: var(--s-5);
}
.cta-title em { font-style: normal; color: var(--accent); font-weight: inherit; }

/* Page header (interior) */
.page-header {
  padding-top: clamp(140px, 20vh, 220px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.page-title {
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.page-title em { font-style: normal; color: var(--accent); font-weight: inherit; font-family: inherit; letter-spacing: inherit; }

/* ---------- Service pages ---------- */
.svc-lede { max-width: 760px; font-size: var(--t-lg); line-height: 1.4; color: var(--fg); }
.svc-meta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.svc-section { padding-block: clamp(48px, 7vw, 96px); }
.svc-rich p { color: var(--fg-muted); font-size: var(--t-md); line-height: 1.65; max-width: 760px; }
.svc-rich p + p { margin-top: var(--s-5); }
.svc-rich strong { color: var(--fg); font-weight: 600; }
.svc-list { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-6); max-width: 760px; }
.svc-list li { position: relative; padding-left: 30px; color: var(--fg-muted); font-size: var(--t-md); line-height: 1.55; }
.svc-list li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-family: var(--font-mono); }
.svc-list li strong { color: var(--fg); font-weight: 600; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-6); }
.related-card { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5) var(--s-6); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; transition: border-color var(--dur-base), transform var(--dur-base); }
.related-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.related-card .rc-name { font-family: var(--font-display); font-weight: 600; font-size: var(--t-md); letter-spacing: -0.02em; color: var(--fg); }
.related-card .rc-arrow { color: var(--accent); }
.related-card .rc-desc { color: var(--fg-muted); font-size: var(--t-sm); line-height: 1.5; }
@media (max-width: 880px) { .related-grid { grid-template-columns: 1fr; } }
.page-intro {
  max-width: 720px;
  margin-top: var(--s-5);
  font-size: var(--t-md);
  color: var(--fg-2);
}

/* About page */
.bio {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-8);
  align-items: start;
}
.bio-image {
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 70% 30%, rgba(255,106,61,0.35), transparent 60%),
    linear-gradient(135deg, #221813, #0d0a08);
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
  display: grid;
  place-items: center;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.bio-text p { font-size: var(--t-md); color: var(--fg-2); line-height: 1.6; }
.bio-text p + p { margin-top: var(--s-5); }
.bio-text strong { color: var(--fg); font-weight: 700; }

/* Experience timeline */
.timeline { border-top: 1px solid var(--border); }
.timeline-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: var(--s-6);
  padding-block: var(--s-7);
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background var(--dur-base);
}
.timeline-row:hover { background: rgba(255, 106, 61, 0.02); }
.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.timeline-role {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.timeline-company { color: var(--fg-muted); margin-top: 4px; font-size: var(--t-sm); }
.timeline-desc { color: var(--fg-2); font-size: var(--t-sm); line-height: 1.6; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: start;
}
.contact-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 14px var(--s-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.contact-channel:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.contact-channel-label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.contact-channel-value {
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 6px;
}
.contact-channel-arrow {
  color: var(--fg-muted);
  font-size: var(--t-lg);
  transition: color var(--dur-fast), transform var(--dur-fast);
}
.contact-channel:hover .contact-channel-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

/* Case study */
.case-cover {
  position: relative;
  aspect-ratio: 21/9;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 70% 40%, rgba(0, 180, 255, 0.18), transparent 60%),
    radial-gradient(circle at 20% 70%, rgba(255, 106, 61, 0.25), transparent 60%),
    linear-gradient(180deg, #06121F, #02060B);
  display: grid;
  place-items: center;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: var(--s-6);
}
.case-meta-item { background: var(--bg); padding: var(--s-5); }
.case-meta-label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  margin-bottom: var(--s-2);
}
.case-meta-value { font-family: var(--font-display); font-size: var(--t-md); font-weight: 700; letter-spacing: -0.025em; }

.case-section { padding-block: clamp(48px, 6vw, 80px); }
.case-section h2 {
  font-size: var(--t-2xl);
  margin-bottom: var(--s-5);
}
.case-section h2 em { color: var(--accent); font-style: normal; font-weight: inherit; }
.case-grid-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-7);
  align-items: start;
}
.case-grid-2 .label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
}
.case-grid-2 p { font-size: var(--t-md); color: var(--fg-2); }
.case-grid-2 p + p { margin-top: var(--s-4); }

.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.case-result {
  padding: var(--s-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.case-result-num {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.case-result-num em {
  font-style: normal;
  color: var(--accent);
  font-weight: inherit;
}
.case-result-label {
  margin-top: var(--s-3);
  color: var(--fg-muted);
  font-size: var(--t-sm);
}

.case-screen {
  margin-block: var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 16/9;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,106,61,0.15), transparent 60%),
    linear-gradient(135deg, #131318, #06060a);
  display: grid;
  place-items: center;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- 7. Reveal-on-scroll ------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 8. Utilities -------------------------------------- */
.center-text { text-align: center; }
.muted { color: var(--fg-muted); }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.flex-1 { flex: 1; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.divider { height: 1px; background: var(--border); width: 100%; margin-block: var(--s-7); }

/* ---------- 9.5 Device frames + extras ------------------------ */

/* Browser window frame — wraps a project mockup to look like a real site */
.browser-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset,
              0 24px 60px -20px rgba(0,0,0,0.5);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.browser-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset,
              0 36px 80px -20px rgba(0,0,0,0.6);
}
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}
.theme-light .browser-chrome { background: rgba(10,10,12,0.04); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: inline-block;
}
.theme-light .browser-dots i { background: rgba(10,10,12,0.18); }
.browser-dots i:nth-child(1) { background: #FF6157; }
.browser-dots i:nth-child(2) { background: #FFBD2E; }
.browser-dots i:nth-child(3) { background: #28C940; }
.browser-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  text-align: center;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 360px;
  margin-inline: auto;
}
.browser-body {
  position: relative;
  background: var(--bg-soft);
  overflow: hidden;
}
.browser-body > svg,
.browser-body > img {
  width: 100%;
  height: auto;
  display: block;
}

/* Phone frame — for mobile mockups */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  padding: 9px;
  background: linear-gradient(165deg, #1f1f24, #08080b 60%);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04),
              0 30px 60px -20px rgba(0,0,0,0.6);
  margin-inline: auto;
  transition: transform var(--dur-base) var(--ease-out);
}
.phone-frame:hover { transform: translateY(-6px) rotateZ(-1deg); }
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #06060a;
}
.phone-screen > svg,
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #06060a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

/* Tilt-on-hover for project cards */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tilt {
    transform-style: preserve-3d;
    transition: transform var(--dur-base) var(--ease-out);
    will-change: transform;
  }
}

/* Magnetic-feel for buttons */
.btn-magnet { transition: transform 200ms cubic-bezier(0.2, 1.4, 0.4, 1), background var(--dur-fast), box-shadow var(--dur-fast); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 60;
  pointer-events: none;
  transition: width 80ms linear;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Cursor light follower */
.cursor-light {
  position: fixed;
  pointer-events: none;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 400ms;
  mix-blend-mode: screen;
}
@media (hover: hover) {
  body.has-cursor .cursor-light { opacity: 0.4; }
}

/* Trusted-by / client logos marquee row */
.logos {
  border-block: 1px solid var(--border);
  padding-block: var(--s-5);
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.logos::before, .logos::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.logos::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.logos::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.logos-track {
  display: flex;
  gap: var(--s-9);
  width: max-content;
  align-items: center;
  animation: marquee 48s linear infinite;
}
.logos:hover .logos-track { animation-play-state: paused; }
.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-lg);
  letter-spacing: -0.03em;
  color: var(--fg-2);
  opacity: 0.8;
  white-space: nowrap;
  transition: color var(--dur-fast), opacity var(--dur-fast);
}
.logo-item:hover { color: var(--accent); opacity: 1; }
.logo-item .logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--fg);
}

/* Live ticker — local time + availability strip */
.live-ticker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 14px 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.live-ticker .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
}
.live-ticker .dot::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--success);
  animation: pulse 2.4s var(--ease-out) infinite;
}
.live-ticker time {
  color: var(--fg);
  letter-spacing: 0.02em;
}

/* Now-building marquee — small live status row */
.now-strip {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  color: var(--fg-2);
}
.now-strip .label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.now-strip .accent { color: var(--accent); font-weight: 600; }

/* Image-based hero portrait — make the existing box accept an <img>
   while keeping the warm radial behind it as fallback. */
.hero-portrait img,
.about-preview-image img,
.bio-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: inherit;
}
.hero-portrait,
.about-preview-image,
.bio-image {
  position: relative;
  isolation: isolate;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset,
              0 24px 60px -20px rgba(0,0,0,0.45);
}
.theme-light .about-preview-image,
.theme-light .bio-image,
.theme-light .hero-portrait {
  border-color: rgba(10, 10, 12, 0.10);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset,
              0 24px 60px -20px rgba(10,10,12,0.18);
}
.hero-portrait::after,
.about-preview-image::after,
.bio-image::after {
  z-index: 2;
  pointer-events: none;
}

/* ---------- 9.6 Agency sections ------------------------------- */

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.service-card {
  padding: var(--s-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-base), transform var(--dur-base), background var(--dur-base);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.service-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 106, 61, 0.35);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.service-icon svg { width: 22px; height: 22px; }
.why-check svg { width: 17px; height: 17px; }
.avatar svg { width: 18px; height: 18px; }
.contact-channel-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-dim); border: 1px solid rgba(255,106,61,0.35);
  color: var(--accent); display: grid; place-items: center; flex-shrink: 0;
}
.contact-channel-icon svg { width: 19px; height: 19px; }
.contact-channel > div { flex: 1; }
.theme-light .service-card { background: var(--bg-elevated); box-shadow: 0 1px 2px rgba(10,10,12,0.04), 0 12px 32px -16px rgba(10,10,12,0.10); }
.service-title {
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.service-desc { color: var(--fg-muted); font-size: var(--t-sm); line-height: 1.55; }

/* Process — numbered steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.process-step {
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-base), transform var(--dur-base);
}
.process-step:hover { border-color: var(--border-2); transform: translateY(-4px); }
.theme-light .process-step { box-shadow: 0 1px 2px rgba(10,10,12,0.04), 0 12px 32px -16px rgba(10,10,12,0.10); }
.process-step .step-no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-2xl);
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  opacity: 0.9;
}
.process-step .step-name {
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: var(--s-4) 0 var(--s-2);
}
.process-step .step-desc { color: var(--fg-muted); font-size: var(--t-sm); line-height: 1.55; }

/* Tech stack */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-3);
}
.tech-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: -0.01em;
  transition: border-color var(--dur-fast), transform var(--dur-fast), color var(--dur-fast);
}
.tech-item:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--accent); }
.theme-light .tech-item { box-shadow: 0 1px 2px rgba(10,10,12,0.04); }
.tech-item .tech-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Why choose me */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.why-card {
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  transition: border-color var(--dur-base), transform var(--dur-base);
}
.why-card:hover { border-color: var(--border-2); transform: translateY(-4px); }
.theme-light .why-card { box-shadow: 0 1px 2px rgba(10,10,12,0.04), 0 12px 32px -16px rgba(10,10,12,0.10); }
.why-check {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(255,106,61,0.35);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 15px;
  margin-bottom: var(--s-4);
}
.why-title {
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-2);
}
.why-desc { color: var(--fg-muted); font-size: var(--t-sm); line-height: 1.55; }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}

/* ---------- 9. Light theme ------------------------------------ */
.theme-light {
  --bg:           #F5F2EB;
  --bg-elevated:  #FFFFFF;
  --bg-soft:      #ECE9E0;
  --surface:      rgba(10, 10, 12, 0.04);
  --surface-2:    rgba(10, 10, 12, 0.06);
  --border:       rgba(10, 10, 12, 0.10);
  --border-2:     rgba(10, 10, 12, 0.18);

  --fg:           #0A0A0C;
  --fg-2:         #2C2B27;
  --fg-muted:     #6B6963;
  --fg-faint:     #A3A19A;

  background: var(--bg);
  color: var(--fg);
  position: relative;
}
.theme-light ::selection { background: var(--accent); color: #fff; }

/* Card-like surfaces get gentle elevation against the cream */
.theme-light .card,
.theme-light .project-card,
.theme-light .skill-card,
.theme-light .testimonial-card,
.theme-light .case-result,
.theme-light .workflow-step,
.theme-light .hero-stat {
  background: var(--bg-elevated);
}
.theme-light .card,
.theme-light .project-card,
.theme-light .skill-card,
.theme-light .testimonial-card,
.theme-light .case-result {
  box-shadow: 0 1px 2px rgba(10,10,12,0.04), 0 12px 32px -16px rgba(10,10,12,0.10);
}
.theme-light .card:hover,
.theme-light .project-card:hover,
.theme-light .skill-card:hover {
  box-shadow: 0 1px 2px rgba(10,10,12,0.04), 0 20px 44px -16px rgba(10,10,12,0.14);
}

/* Hero radial gradient is much subtler on cream */
.theme-light .hero-bg::before {
  background: radial-gradient(circle at 20% 30%, rgba(255, 106, 61, 0.10), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(255, 179, 122, 0.08), transparent 55%);
}

/* Marquee on light */
.theme-light .marquee {
  background: var(--bg-soft);
  border-color: var(--border);
}

/* Inputs on light theme */
.theme-light .input,
.theme-light .textarea,
.theme-light .select {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--fg);
}
.theme-light .input:focus,
.theme-light .textarea:focus,
.theme-light .select:focus {
  background: #fff;
  border-color: var(--accent);
}

/* Chips already use surface/border tokens — they'll auto-adapt */

/* Form check pills on light */
.theme-light .checkbox-pill { background: var(--bg-elevated); }

/* Page header background on light pages */
.theme-light .page-header { padding-top: clamp(140px, 20vh, 220px); }

/* Soften the body film-grain when it overlays a light section.
   The grain is a fixed-position pseudo on <body>; we can't scope it
   per-section, but mix-blend-mode overlay already keeps it gentle. */

/* ============================================================
   Glass surfaces + ambient motion (v19)
   ============================================================ */

/* Drifting ambient glow orbs — gives glass something to refract */
body::after {
  content: "";
  position: fixed;
  inset: -25vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 14% 6%,  rgba(255, 106, 61, 0.16), transparent 60%),
    radial-gradient(30vmax 30vmax at 86% 18%, rgba(255, 179, 122, 0.11), transparent 60%),
    radial-gradient(44vmax 44vmax at 72% 96%, rgba(108, 229, 176, 0.07), transparent 62%);
}
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: ambient-drift 28s ease-in-out infinite alternate; }
}
@keyframes ambient-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
}

/* Glass cards (dark surfaces) */
.service-card,
.why-card,
.testimonial-card,
.related-card,
details.card,
.hero-stat {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Glass cards (light sections) */
.theme-light .service-card,
.theme-light .why-card,
.theme-light .testimonial-card,
.theme-light .related-card,
.theme-light details.card,
.theme-light .contact-channel,
.theme-light .hero-stat {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(10, 10, 12, 0.08);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 32px -18px rgba(10,10,12,0.18);
}

/* Hover: lift + warm accent glow */
.service-card,
.why-card,
.testimonial-card,
.related-card {
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base),
              box-shadow var(--dur-base);
}
.service-card:hover,
.why-card:hover,
.related-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 106, 61, 0.40);
  box-shadow: 0 26px 60px -28px rgba(0,0,0,0.7),
              0 0 0 1px rgba(255, 106, 61, 0.10),
              0 14px 50px -24px var(--accent-glow);
}
.theme-light .service-card:hover,
.theme-light .why-card:hover,
.theme-light .related-card:hover {
  border-color: rgba(255, 106, 61, 0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6),
              0 24px 50px -24px rgba(255, 106, 61, 0.30);
}

/* Service icon micro-motion on card hover */
.service-icon {
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              border-color var(--dur-base);
}
.service-card:hover .service-icon {
  transform: translateY(-2px) scale(1.08) rotate(-3deg);
  background: rgba(255, 106, 61, 0.28);
  border-color: rgba(255, 106, 61, 0.55);
}
.contact-channel:hover .contact-channel-icon {
  transform: scale(1.06);
  transition: transform var(--dur-fast) var(--ease-out);
}

/* Animated accent shimmer on big display emphasis */
@media (prefers-reduced-motion: no-preference) {
  .hero-title em,
  .cta-title em,
  .page-title em {
    background: linear-gradient(100deg,
      var(--accent) 0%, var(--accent-soft) 45%, var(--accent) 90%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: accent-shimmer 7s linear infinite;
  }
}
@keyframes accent-shimmer {
  to { background-position: 220% center; }
}

/* Soft pulse halo behind the floating nav pill */
@media (prefers-reduced-motion: no-preference) {
  .nav { animation: nav-rise 0.7s var(--ease-out) both; }
}
@keyframes nav-rise {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* FAQ accordion — consistent custom marker, no default triangle */
details.card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  list-style: none;
  transition: color var(--dur-fast);
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
}
details.card[open] > summary::after { transform: rotate(135deg); }
details.card > summary:hover { color: var(--accent); }
details.card[open] { border-color: rgba(255, 106, 61, 0.30); }

/* Calendly embed — tall enough to avoid an inner scrollbar */
.calendly-inline-widget { height: 1050px; }
@media (max-width: 768px) { .calendly-inline-widget { height: 1150px; } }
@media (max-width: 480px) { .calendly-inline-widget { height: 1220px; } }

/* Hero trust line */
.hero-geo {
  margin-top: var(--s-6);
  font-size: var(--t-xs);
  color: var(--fg-faint);
}
.hero-geo .mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Lead-magnet / free-audit section */
.lead-offer {
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 106, 61, 0.28);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,106,61,0.14), transparent 55%),
    rgba(255,255,255,0.04);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.lead-offer-tag {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.lead-offer h2 { margin-top: var(--s-4); font-size: var(--t-2xl); }
.lead-offer p { margin-top: var(--s-5); color: var(--fg-muted); font-size: var(--t-md); line-height: 1.6; max-width: 520px; }
.lead-offer .row { margin-top: var(--s-7); }
.lead-checklist { list-style: none; display: grid; gap: var(--s-4); }
.lead-checklist li {
  display: flex; align-items: flex-start; gap: var(--s-3);
  font-size: var(--t-md); color: var(--fg); line-height: 1.4;
}
.lead-checklist .lc-ico {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-dim); color: var(--accent);
  display: grid; place-items: center; margin-top: 1px;
}
.lead-checklist .lc-ico svg { width: 15px; height: 15px; }
@media (max-width: 860px) { .lead-offer { grid-template-columns: 1fr; } }

/* ---------- 10. Responsive ------------------------------------ */
@media (max-width: 980px) {
  .nav { padding: 6px 6px 6px 14px; }
  .nav-links { display: none; position: fixed; top: 72px; left: 16px; right: 16px; flex-direction: column; padding: 12px; border-radius: var(--r-lg); background: rgba(10,10,12,0.96); border: 1px solid var(--border); backdrop-filter: blur(20px); }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; padding: 14px 16px; }
  .nav-divider { display: none; }
  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
  }
  .nav-burger span { width: 16px; height: 1.5px; background: var(--fg); display: block; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-preview, .bio, .contact-grid, .case-grid-2 { grid-template-columns: 1fr; gap: var(--s-6); }
  .bio-image { position: relative; top: 0; max-width: 320px; }
  .skills-grid { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-results { grid-template-columns: 1fr; }
  .projects-grid > .project-card,
  .projects-grid > .project-card-tall,
  .projects-grid > .project-card-wide { grid-column: span 12; }
  .timeline-row { grid-template-columns: 1fr; gap: var(--s-3); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
