/* ============================================================
   Interactive 63 — Neo-Brutalist Design System
   styles.css
   ============================================================ */


/* ── Design Tokens ──────────────────────────────────────── */
:root {

  /* Brand */
  --brand:   #556B2F;
  --cream:   #FAF3DD;
  --cream-2: #F0E6C0;
  --cream-3: #E2D4A2;
  --ink:     #1a1a0e;

  /* Shadows */
  --sh-sm: 3px 3px 0 #1a1a0e;
  --sh-md: 4px 4px 0 #1a1a0e;
  --sh-lg: 6px 6px 0 #1a1a0e;
  --sh-brand-sm: 3px 3px 0 #556B2F;
  --sh-brand-md: 4px 4px 0 #556B2F;

  /* Borders */
  --b-ink:       2px solid #1a1a0e;
  --b-ink-light: 1.5px solid #1a1a0e;
  --b-brand:     2px solid #556B2F;

  /* Text */
  --text:       #1a1a0e;
  --text-2:     #4a4a38;
  --text-brand: #556B2F;
  --text-cream: #FAF3DD;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-lg:   1.0625rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.5rem;
  --text-5xl:  3.25rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Layout */
  --max-w:      1100px;
  --nav-h:      58px;
  --section-py: var(--sp-16);

  /* Radius — kept subtle in brutalist style */
  --r:    4px;
  --r-md: 6px;
  --r-lg: 10px;

  /* Transitions */
  --ease:    0.15s ease;
  --ease-md: 0.22s ease;
}


/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }
ul, ol { list-style: none; }


/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-8);
}

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background: var(--cream-2);
}


/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section-label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-brand);
  margin-bottom: var(--sp-2);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand);
  flex-shrink: 0;
}

.section-h {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-3);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: var(--sp-10);
  max-width: 520px;
}


/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-sans);
  padding: 0.7rem 1.4rem;
  border-radius: var(--r);
  border: var(--b-ink);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover  { transform: translate(2px, 2px); }
.btn:active { transform: translate(3px, 3px); box-shadow: none !important; }

.btn--primary {
  background: var(--brand);
  color: var(--cream);
  box-shadow: var(--sh-md);
}

.btn--primary:hover { box-shadow: var(--sh-sm); }

.btn--secondary {
  background: var(--cream);
  color: var(--text);
  box-shadow: var(--sh-md);
}

.btn--secondary:hover { box-shadow: var(--sh-sm); }

.btn--outline {
  background: transparent;
  color: var(--text-brand);
  border: var(--b-brand);
  box-shadow: var(--sh-brand-sm);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

.btn--outline:hover { box-shadow: 2px 2px 0 var(--brand); }


/* ── Navigation ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: var(--b-ink);
  height: var(--nav-h);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  background: var(--brand);
  border: var(--b-ink);
  box-shadow: 2px 2px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--cream);
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  transition: transform var(--ease), box-shadow var(--ease);
}

.nav-logo:hover .logo-mark {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.logo-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-brand);
  transition: color var(--ease);
  position: relative;
  padding-bottom: 2px;
}

.nav-link:hover { color: var(--text); }

.nav-link.active {
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-shrink: 0;
}

.btn-nav {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-sans);
  padding: 0.5rem 1.1rem;
  background: var(--brand);
  color: var(--cream);
  border: var(--b-ink);
  box-shadow: var(--sh-sm);
  border-radius: var(--r);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.btn-nav:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--ease-md), opacity var(--ease-md);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--cream-2);
  border-top: var(--b-ink);
  padding-block: var(--sp-10);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer-links {
  display: flex;
  gap: var(--sp-6);
}

.footer-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-brand);
  transition: color var(--ease);
}

.footer-link:hover { color: var(--text); text-decoration: underline; }

.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-2);
  font-family: var(--font-mono);
}


/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding-block: var(--sp-20) var(--sp-16);
  background: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  background: var(--cream-2);
  border: var(--b-brand);
  border-radius: var(--r);
  color: var(--text-brand);
  margin-bottom: var(--sp-5);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: badge-pulse 2.2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.4); }
}

.hero-h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--sp-5);
  max-width: 480px;
}

.hero-h1 em {
  color: var(--brand);
  font-style: normal;
  border-bottom: 3px solid var(--brand);
}

.hero-sub {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  max-width: 420px;
}

.hero-btns {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.hero-trust {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.trust-pill {
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 5px 12px;
  background: var(--cream-2);
  border: var(--b-brand);
  border-radius: var(--r);
  color: var(--text-brand);
}


/* ── Code Window ─────────────────────────────────────────── */
.code-window {
  background: var(--cream-2);
  border: var(--b-ink);
  box-shadow: var(--sh-lg);
  border-radius: var(--r-md);
  overflow: hidden;
}

.code-bar {
  background: var(--cream-3);
  border-bottom: var(--b-ink);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: var(--b-ink-light);
}

.code-filename {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-2);
  margin-left: var(--sp-2);
  font-weight: 500;
}

.code-body {
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.85;
  color: var(--text);
}

.c-kw  { color: #2d5a1b; font-weight: 700; }
.c-fn  { color: var(--brand); font-weight: 700; }
.c-str { color: #3a6b20; }
.c-num { color: #7a5c00; }
.c-cmt { color: #8a9a70; }

.code-cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background: var(--brand);
  vertical-align: middle;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


/* ── Marquee Strip ───────────────────────────────────────── */
.strip {
  background: var(--brand);
  border-top: var(--b-ink);
  border-bottom: var(--b-ink);
  overflow: hidden;
}

.strip-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.strip-track:hover { animation-play-state: paused; }

.strip-item {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  padding: 0.85rem var(--sp-6);
}

.strip-sep {
  color: var(--cream-2);
  opacity: 0.45;
  font-size: 12px;
  flex-shrink: 0;
}


/* ── Approach Icons ──────────────────────────────────────── */
.approach { background: var(--cream); }

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--b-ink);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.icon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: 2.25rem 1rem 1.85rem;
  border-right: var(--b-ink);
  border-bottom: var(--b-ink);
  background: var(--cream);
  transition: background var(--ease);
  cursor: default;
}

.icon-cell:hover { background: var(--cream-2); }

/* Remove borders on last column and last row */
.icon-cell:nth-child(3n)   { border-right: none; }
.icon-cell:nth-child(n+4)  { border-bottom: none; }

.icon-cell svg {
  width: 130px;
  height: 130px;
  overflow: visible;
}

.icon-label {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
  text-align: center;
  line-height: 1.4;
}


/* ── Icon Animations ─────────────────────────────────────── */

/* 1 — Comprehensive Design: shape morphs between star, pentagon, triangle, heart, circle */
@keyframes icon-morph {
  0%   { d: path("M80 87.26l-2.02-5.87-5.67-1.82 5.67-1.83L80 71.88l1.71 5.86 5.98 1.83-5.99 1.82-1.7 5.87z"); }
  20%  { d: path("M80 83.96l-4.33 2.28.83-4.83L72.99 78l4.84-.71L80 72.9l2.17 4.39 4.84.71-3.5 3.41.82 4.83L80 83.96z"); }
  40%  { d: path("M80 83.89h-6.15l3.08-5.32L80 73.25l3.07 5.32 3.08 5.32H80z"); }
  60%  { d: path("M80 85.57l-1-.86c-3.37-3.06-5.59-5.07-5.59-7.54a3.56 3.56 0 0 1 3.6-3.6A3.9 3.9 0 0 1 80 74.94a3.9 3.9 0 0 1 2.94-1.37 3.56 3.56 0 0 1 3.6 3.6c0 2.47-2.22 4.48-5.59 7.54z"); }
  80%  { d: path("M74,80a6,6 0 1,0 12,0a6,6 0 1,0 -12,0"); }
  100% { d: path("M80 87.26l-2.02-5.87-5.67-1.82 5.67-1.83L80 71.88l1.71 5.86 5.98 1.83-5.99 1.82-1.7 5.87z"); }
}
.icon-morph { animation: icon-morph 3s linear infinite; }

/* 2 — Intuitive: five ripple ellipses expand outward and fade */
@keyframes icon-rpl0 {
  from { d: path("M68,61.83a12,12 0 1,0 24,0a12,12 0 1,0 -24,0"); }
  to   { d: path("M60,61.83a20,20 0 1,0 40,0a20,20 0 1,0 -40,0"); opacity: 0; }
}
@keyframes icon-rpl1 {
  from { d: path("M68,61.83a12,12 0 1,0 24,0a12,12 0 1,0 -24,0"); }
  to   { d: path("M55,61.83a25,25 0 1,0 50,0a25,25 0 1,0 -50,0"); opacity: 0; }
}
@keyframes icon-rpl2 {
  from { d: path("M68,61.83a12,12 0 1,0 24,0a12,12 0 1,0 -24,0"); }
  to   { d: path("M50,61.83a30,30 0 1,0 60,0a30,60 0 1,0 -60,0"); opacity: 0; }
}
@keyframes icon-rpl3 {
  from { d: path("M68,61.83a12,12 0 1,0 24,0a12,12 0 1,0 -24,0"); }
  to   { d: path("M45,61.83a35,35 0 1,0 70,0a35,35 0 1,0 -70,0"); opacity: 0; }
}
@keyframes icon-rpl4 {
  from { d: path("M68,61.83a12,12 0 1,0 24,0a12,12 0 1,0 -24,0"); }
  to   { d: path("M40,61.83a40,40 0 1,0 80,0a40,40 0 1,0 -80,0"); opacity: 0; }
}
.icon-rpl0 { animation: icon-rpl0 3s ease-out infinite; }
.icon-rpl1 { animation: icon-rpl1 3s ease-out infinite; }
.icon-rpl2 { animation: icon-rpl2 3s ease-out infinite; }
.icon-rpl3 { animation: icon-rpl3 3s ease-out infinite; }
.icon-rpl4 { animation: icon-rpl4 3s ease-out infinite; }

/* 3 — Business First: two dots orbit along circle and square paths */
@keyframes icon-dot-orbit {
  to { motion-offset: 100%; offset-distance: 100%; }
}
.icon-dot1 {
  offset-path: path("M68.54 60.66h60v60h-60z");
  animation: icon-dot-orbit 10s linear infinite reverse;
}
.icon-dot2 {
  offset-path: path("M68.85 31a30 30 0 0 1 30 30 30 30 0 0 1-30 30 30 30 0 0 1-30-30 30 30 0 0 1 30-30z");
  animation: icon-dot-orbit 10s linear infinite;
}

/* 4 — Data Driven: left bar grows, right bar shrinks (3D isometric) */
@keyframes icon-ls3 {
  from { d: path("M53.18 76.81h22.6v36.53h-22.6z"); }
  to   { d: path("M53.18 32.15h22.6v81.19h-22.6z"); }
}
@keyframes icon-ls2 {
  from { d: path("M53.18 76.81l-9.46 8.22v36.52l9.46-8.21V76.81z"); }
  to   { d: path("M53.18 32.15l-9.46 8.21v81.19l9.46-8.21V32.15z"); }
}
@keyframes icon-ls1 {
  from { d: path("M30.57 76.81v36.53"); }
  to   { d: path("M30.57 32.15v81.19"); }
}
@keyframes icon-lt {
  from { d: path("M43.72 85l9.46-8.22h22.6c0-5-10.2-9-22.6-9s-22.6 4.09-22.6 9c0 3.53 5.14 6.74 13.14 8.22"); }
  to   { d: path("M43.72 40.36l9.46-8.21h22.6c0-5-10.2-9-22.6-9s-22.6 4.08-22.6 9c0 3.52 5.14 6.74 13.14 8.21"); }
}
@keyframes icon-rs3 {
  from { d: path("M129.43 31.73v79.28"); }
  to   { d: path("M129.43 80.41v30.6"); }
}
@keyframes icon-rs2 {
  from { d: path("M106.82 31.73l9.46 8.22v79.27l-9.46-8.21V31.73z"); }
  to   { d: path("M106.82 80.42l9.46 8.21v30.59l-9.46-8.21V80.42z"); }
}
@keyframes icon-rs1 {
  from { d: path("M84.22 31.73h22.6V111h-22.6z"); }
  to   { d: path("M84.22 80.41h22.6V111h-22.6z"); }
}
@keyframes icon-rt {
  from { d: path("M116.28 40l-9.46-8.22h-22.6c0-5 10.2-9 22.6-9s22.6 4.08 22.6 9c0 3.53-5.14 6.74-13.14 8.22"); }
  to   { d: path("M116.28 88.63l-9.46-8.22h-22.6c0-5 10.2-9 22.6-9s22.6 4.08 22.6 9c0 3.53-5.14 6.74-13.14 8.22"); }
}
.icon-ls3 { animation: icon-ls3 3s ease-out infinite alternate; }
.icon-ls2 { animation: icon-ls2 3s ease-out infinite alternate; }
.icon-ls1 { animation: icon-ls1 3s ease-out infinite alternate; }
.icon-lt  { animation: icon-lt  3s ease-out infinite alternate; }
.icon-rs3 { animation: icon-rs3 3s ease-out infinite alternate; }
.icon-rs2 { animation: icon-rs2 3s ease-out infinite alternate; }
.icon-rs1 { animation: icon-rs1 3s ease-out infinite alternate; }
.icon-rt  { animation: icon-rt  3s ease-out infinite alternate; }

/* 5 — Visually Your Business: wave washes over the Aa letterforms */
@keyframes icon-wave {
  from {
    d: path("M124.74 38l32.64 82.45-7.25-6.14a3 3 0 0 0-3.83 0l-5.3 4.51a3.66 3.66 0 0 1-4.7 0l-5.35-4.53a3 3 0 0 0-3.82 0l-5.35 4.53a3.64 3.64 0 0 1-4.7 0l-5.34-4.52a3 3 0 0 0-3.83 0l-5.34 4.53a3.66 3.66 0 0 1-4.7 0l-5.34-4.53a3 3 0 0 0-3.83 0l-5.34 4.53a3.67 3.67 0 0 1-4.71 0l-5.34-4.53a3 3 0 0 0-3.83 0l-5.34 4.52a3.64 3.64 0 0 1-4.7 0l-5.35-4.53a3 3 0 0 0-3.83 0l-5.35 4.53a3.63 3.63 0 0 1-4.7 0l-7.71-6.52L17.25 38z");
  }
  to {
    d: path("M120 38l10.39 21.31-7.25-6.15a3 3 0 0 0-3.83 0l-5.34 4.53a3.65 3.65 0 0 1-4.71 0l-5.34-4.53a3 3 0 0 0-3.83 0l-5.39 4.51a3.63 3.63 0 0 1-4.7 0l-5.34-4.53a3 3 0 0 0-3.83 0l-5.34 4.53a3.65 3.65 0 0 1-4.71 0l-5.34-4.53a3 3 0 0 0-3.82 0l-5.35 4.53a3.63 3.63 0 0 1-4.7 0l-5.35-4.53a3 3 0 0 0-3.82 0l-5.34 4.53a3.65 3.65 0 0 1-4.71 0L27 53.14a3 3 0 0 0-3.83 0l-5.36 4.53a3.63 3.63 0 0 1-4.7 0l-7.7-6.52L12.46 38z");
  }
}
.icon-wave { animation: icon-wave 3s ease-out infinite alternate; }

/* 6 — Built From The Ground Up: code text cycles in the right panel */
@keyframes icon-code-text {
  0%   { content: "</>"; }
  20%  { content: "CSS"; }
  40%  { content: "Py"; }
  60%  { content: "JS"; }
  80%  { content: "HTML"; }
  100% { content: "SQL"; }
}
.code-icon-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}
.code-ticker {
  position: absolute;
  left: 71px;
  top: 59px;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--brand);
  font-weight: 700;
  pointer-events: none;
}
.code-ticker::after {
  content: "</>";
  animation: icon-code-text 3s linear infinite;
  position: absolute;
  white-space: nowrap;
  transform: translateX(-50%);
}


/* ── Services Preview ────────────────────────────────────── */
.services-preview { background: var(--cream-2); }

.svc-list {
  border: var(--b-ink);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  margin-bottom: var(--sp-6);
}

.svc-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: var(--b-ink);
  background: var(--cream);
  transition: background var(--ease), padding-left var(--ease);
  cursor: pointer;
}

.svc-row:last-child { border-bottom: none; }

.svc-row:hover {
  background: var(--cream-2);
  padding-left: calc(var(--sp-5) + 6px);
}

.svc-num {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-brand);
  font-family: var(--font-mono);
  min-width: 24px;
  flex-shrink: 0;
}

.svc-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.svc-arrow {
  font-size: 16px;
  color: var(--text-brand);
  flex-shrink: 0;
}


/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track { animation: none; }
}


/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-py: var(--sp-12);
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }

  .container { padding-inline: var(--sp-5); }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-actions .btn-nav { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: var(--b-ink);
    padding-block: var(--sp-2);
    z-index: 99;
  }

  .nav-links.open { display: flex; }

  .nav-link {
    padding: var(--sp-3) var(--sp-6);
    width: 100%;
  }

  /* Hero */
  .hero { padding-block: var(--sp-12) var(--sp-10); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero-h1 { font-size: 2.4rem; max-width: 100%; }
  .hero-sub { max-width: 100%; }

  /* Icons */
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .icon-cell:nth-child(3n)  { border-right: var(--b-ink); }
  .icon-cell:nth-child(2n)  { border-right: none; }
  .icon-cell:nth-child(n+4) { border-bottom: var(--b-ink); }
  .icon-cell:nth-child(n+5) { border-bottom: none; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-5); }
  .footer-links { flex-wrap: wrap; gap: var(--sp-4); }
}

/* ============================================================
   Services Page Components
   ============================================================ */


/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  padding-block: var(--sp-12) var(--sp-10);
  background: var(--cream);
  border-bottom: var(--b-ink);
}

.page-h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
}

.page-sub {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 520px;
}


/* ── Accordion ───────────────────────────────────────────── */
.acc-list {
  border: var(--b-ink);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  margin-bottom: var(--sp-10);
}

.acc-item {
  border-bottom: var(--b-ink);
}

.acc-item:last-child {
  border-bottom: none;
}

.acc-trigger {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--cream);
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--ease);
  font-family: var(--font-sans);
}

.acc-trigger:hover {
  background: var(--cream-2);
}

.acc-item.open > .acc-trigger {
  background: var(--cream-2);
}

.acc-num {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-brand);
  font-family: var(--font-mono);
  min-width: 26px;
  flex-shrink: 0;
}

.acc-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  flex: 1;
  transition: color var(--ease);
}

.acc-item.open > .acc-trigger .acc-title {
  color: var(--text-brand);
}

.acc-icon {
  width: 22px;
  height: 22px;
  border: var(--b-ink);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-brand);
  flex-shrink: 0;
  transition: transform var(--ease-md), background var(--ease);
  background: var(--cream);
}

.acc-item.open > .acc-trigger .acc-icon {
  transform: rotate(45deg);
  background: var(--brand);
  color: var(--cream);
  border-color: var(--brand);
}

/* Body: JS sets maxHeight directly on the element */
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.acc-body-inner {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  padding-left: calc(var(--sp-6) + 26px + var(--sp-4));
  background: var(--cream-2);
  border-top: var(--b-ink);
}

.acc-desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.acc-tags {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.acc-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: var(--cream);
  border: var(--b-brand);
  border-radius: var(--r);
  color: var(--text-brand);
}


/* ── CTA Block ───────────────────────────────────────────── */
.cta-block {
  background: var(--brand);
  border: var(--b-ink);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: var(--text-2xl);
  color: var(--cream);
  margin-bottom: var(--sp-2);
}

.cta-text p {
  font-size: var(--text-sm);
  color: var(--cream-2);
  line-height: 1.6;
  max-width: 420px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-sans);
  padding: var(--sp-3) var(--sp-6);
  background: var(--cream);
  color: var(--ink);
  border: var(--b-ink);
  box-shadow: var(--sh-md);
  border-radius: var(--r);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--ease), box-shadow var(--ease);
}

.cta-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--sh-sm);
}

.cta-btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}


/* ── Mobile — services page ──────────────────────────────── */
@media (max-width: 768px) {
  .page-h1 { font-size: 2.5rem; }

  .acc-body-inner {
    padding-left: var(--sp-5);
  }

  .cta-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Projects Spotlight
   ============================================================ */

.spotlight {
  display: grid;
  grid-template-columns: 1fr 280px;
  border: var(--b-ink);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

/* ── Main panel ──────────────────────────────────────────── */
.spotlight-main {
  border-right: var(--b-ink);
  display: flex;
  flex-direction: column;
}

/* Browser-frame preview */
.spotlight-preview {
  border-bottom: var(--b-ink);
  transition: opacity 0.18s ease;
}

.spotlight-preview.fading { opacity: 0; }

.preview-bar {
  background: var(--cream-3);
  border-bottom: var(--b-ink);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.preview-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}

.preview-url {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-2);
  margin-left: var(--sp-2);
}

.preview-screen {
  aspect-ratio: 16 / 9;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Placeholder shown when there's no real screenshot */
.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  width: 100%;
  height: 100%;
}

.preview-placeholder-icon {
  font-size: 56px;
  color: var(--brand);
  opacity: 0.25;
}

.preview-placeholder-label {
  font-size: var(--text-xl);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-2);
  opacity: 0.35;
}

/* Project info below preview */
.spotlight-info {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  flex: 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.spotlight-info.fading {
  opacity: 0;
  transform: translateY(6px);
}

.spotlight-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.spotlight-type {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-2);
}

.spotlight-status {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid;
}

.status--live {
  color: var(--brand);
  border-color: var(--brand);
  background: rgba(85, 107, 47, 0.1);
}

.status--progress {
  color: #7a5200;
  border-color: #c28a00;
  background: rgba(194, 138, 0, 0.1);
}

.status--dev {
  color: var(--text-2);
  border-color: var(--cream-3);
  background: rgba(0, 0, 0, 0.04);
}

.spotlight-title {
  font-size: var(--text-3xl);
  letter-spacing: -0.025em;
}

.spotlight-desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.7;
}

.spotlight-tags {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.spotlight-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 3px 10px;
  background: var(--cream-2);
  border: var(--b-ink-light);
  border-radius: var(--r);
  color: var(--text-2);
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-2);
  border-top: var(--b-ink-light);
}

.spotlight-counter {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-2);
}

.spotlight-no-link {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-2);
}


/* ── Sidebar ─────────────────────────────────────────────── */
.spotlight-sidebar {
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  border-bottom: var(--b-ink);
  background: var(--cream-2);
  flex-shrink: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-bottom: var(--b-ink);
  cursor: pointer;
  transition: background var(--ease), border-left-color var(--ease);
  background: var(--cream);
  border-left: 3px solid transparent;
}

.sidebar-item:last-child { border-bottom: none; }

.sidebar-item:hover { background: var(--cream-2); }

.sidebar-item.active {
  background: var(--cream-2);
  border-left-color: var(--brand);
}

.sidebar-thumb {
  width: 38px;
  height: 32px;
  border: var(--b-ink-light);
  border-radius: var(--r);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-2);
  flex-shrink: 0;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.sidebar-item.active .sidebar-thumb {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--cream);
}

.sidebar-meta {
  flex: 1;
  min-width: 0;
}

.sidebar-name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-type {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-2);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-arrow {
  font-size: 16px;
  color: var(--text-2);
  flex-shrink: 0;
  transition: color var(--ease);
}

.sidebar-item.active .sidebar-arrow { color: var(--brand); }


/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .spotlight {
    grid-template-columns: 1fr;
  }

  .spotlight-main {
    border-right: none;
    border-bottom: var(--b-ink);
  }

  .spotlight-sidebar {
    max-height: 320px;
    overflow-y: auto;
  }

  .spotlight-title { font-size: var(--text-2xl); }
}

/* ============================================================
   Projects — Gallery & Pan/Zoom
   ============================================================ */

/* Make preview-screen the positioning context for overlays */
.preview-screen {
  position: relative;
  overflow: hidden;
  cursor: default;
  user-select: none;
}

.preview-screen.is-zoomable { cursor: zoom-in; }
.preview-screen.is-zoomed   { cursor: grab; }
.preview-screen.grabbing    { cursor: grabbing !important; }

/* Image area — JS applies transform here */
.preview-img-area {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
}

.preview-img-area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Prev / Next nav arrows */
.preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 34px;
  background: rgba(250, 243, 221, 0.92);
  border: var(--b-ink);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
  transition: background var(--ease), box-shadow var(--ease);
  font-family: inherit;
}

.preview-nav:hover {
  background: var(--cream-3);
  box-shadow: var(--sh-md);
}

.preview-prev { left: var(--sp-3); }
.preview-next { right: var(--sp-3); }
.preview-nav[hidden] { display: none; }

/* Image counter (e.g. "2 / 4") */
.preview-img-counter {
  position: absolute;
  bottom: var(--sp-2);
  right: var(--sp-3);
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(250, 243, 221, 0.88);
  border: 1px solid rgba(26, 26, 14, 0.2);
  border-radius: var(--r);
  padding: 2px 8px;
  color: var(--text-2);
  pointer-events: none;
}

.preview-img-counter[hidden] { display: none; }

/* Zoom hint */
.preview-zoom-hint {
  position: absolute;
  bottom: var(--sp-2);
  left: var(--sp-3);
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-2);
  opacity: 0.4;
  pointer-events: none;
  white-space: nowrap;
}

.preview-zoom-hint[hidden] { display: none; }

@media (max-width: 768px) {
  .preview-zoom-hint { display: none; }
}

/* ============================================================
   Contact Page
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-10);
  align-items: start;
}

/* ── Form ────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.form-label .required {
  color: var(--brand);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--cream);
  border: var(--b-ink);
  border-radius: var(--r);
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--sh-brand-sm);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #c0392b;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a1a0e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Honeypot — must be invisible to humans */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
  border: 1.5px solid #c0392b;
  border-radius: var(--r);
  padding: var(--sp-3) var(--sp-4);
}

.form-submit {
  align-self: flex-start;
}

/* Success state — replaces the form */
.contact-success {
  border: var(--b-ink);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  background: var(--cream);
  padding: var(--sp-10) var(--sp-8);
  text-align: center;
}

.contact-success-icon {
  font-size: 48px;
  color: var(--brand);
  margin-bottom: var(--sp-4);
}

.contact-success h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-3);
}

.contact-success p {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Info sidebar ────────────────────────────────────────── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.contact-info-block {
  border: var(--b-ink);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.contact-info-header {
  background: var(--cream-3);
  border-bottom: var(--b-ink);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.contact-info-body {
  background: var(--cream);
  padding: var(--sp-5);
}

.contact-next-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contact-step {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.contact-step-num {
  width: 24px;
  height: 24px;
  border: var(--b-ink);
  border-radius: var(--r);
  background: var(--brand);
  color: var(--cream);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-step-text {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.55;
  padding-top: 3px;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
}