/* =========================================
   STUDIO — Modern website variant
   ========================================= */
:root {
  --bg: #0a0b1a;
  --bg-2: #11132a;
  --bg-3: #181b3a;
  --bg-card: #131530;
  --fg: #ecebff;
  --fg-mute: #8e8db5;
  --fg-dim: #4d4d70;
  --line: #232649;
  --line-strong: #353a66;
  --accent: #7c6bff;
  --accent-fg: #ffffff;
  --accent-soft: rgba(124, 107, 255, 0.15);
  --warn: #ffa336;
  --good: #5fd97e;

  --ff-sans: "Geist", "Inter", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad-x: clamp(20px, 4.5vw, 72px);
  --section-y: clamp(80px, 10vw, 140px);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
}

[data-theme="light"] {
  --bg: #f7f1e6;
  --bg-2: #ede5d2;
  --bg-3: #e2d7be;
  --bg-card: #fffaf0;
  --fg: #1a140d;
  --fg-mute: #5c5043;
  --fg-dim: #a89c87;
  --line: #dccfb4;
  --line-strong: #c4b495;
  --accent: #b8430f;
  --accent-fg: #fffaf0;
  --accent-soft: rgba(184, 67, 15, 0.08);
}

[data-accent="indigo"]   { --accent: #7c6bff; --accent-fg: #ffffff; --accent-soft: rgba(124,107,255,0.15); }
[data-accent="violet"]   { --accent: #a78bfa; --accent-fg: #18141d; --accent-soft: rgba(167,139,250,0.15); }
[data-accent="periwinkle"] { --accent: #8ea0ff; --accent-fg: #18141d; --accent-soft: rgba(142,160,255,0.15); }
[data-accent="electric"]  { --accent: #5b8def; --accent-fg: #ffffff; --accent-soft: rgba(91,141,239,0.15); }
[data-accent="plum"]      { --accent: #c084fc; --accent-fg: #18141d; --accent-soft: rgba(192,132,252,0.15); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-fg); }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ============ ANNOUNCEMENT ============ */
.announce {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-mute);
}
.announce-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-align: center;
  flex-wrap: wrap;
}
.announce .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.announce .pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
[data-theme="light"] .announce .pill { color: var(--accent); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

.announce a { color: var(--fg); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.announce a:hover { color: var(--accent); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.brand-mark span:last-child { opacity: 0.5; }
.brand .name { color: var(--fg); }
.brand .name .mute { color: var(--fg-mute); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--fg-mute);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--fg); background: var(--bg-2); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-soft); }
.btn-ghost {
  color: var(--fg);
  border: 1px solid var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--fg-mute); background: var(--bg-2); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .nav-actions .btn-ghost { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite;
}
.hero-bg .blob-2 {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  filter: blur(50px);
  animation: drift 22s ease-in-out infinite reverse;
  opacity: 0.7;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.08); }
  66% { transform: translate(30px, -20px) scale(0.95); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 70%);
}

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--fg-mute);
  margin-bottom: 28px;
}
.eyebrow .tag {
  padding: 2px 8px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(44px, 7.5vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 15ch;
  margin-bottom: 32px;
  text-wrap: balance;
}
.hero-title .accent { color: var(--accent); }
.hero-title .underline {
  position: relative;
  white-space: nowrap;
}
.hero-title .underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.12em;
  background: var(--accent);
  border-radius: 999px;
  opacity: 0.6;
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--fg-mute);
  max-width: 56ch;
  line-height: 1.5;
  margin-bottom: 40px;
  text-wrap: pretty;
}
.hero-sub strong { color: var(--fg); font-weight: 500; }

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat .num .unit { color: var(--accent); font-weight: 400; }
.stat .label {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ============ LOGO STRIP ============ */
.logos {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}
.logos-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg-mute);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.logos-marquee {
  display: flex;
  gap: 64px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logos-track {
  display: flex;
  gap: 64px;
  animation: marquee 35s linear infinite;
  flex-shrink: 0;
  align-items: center;
}
.logos-track .logo {
  font-weight: 600;
  font-size: 22px;
  color: var(--fg-mute);
  letter-spacing: -0.015em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}
.logos-track .logo:hover { color: var(--fg); }
.logos-track .logo .glyph {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ TECH STACK MARQUEE ============ */
.stack-section {
  padding: var(--section-y) 0;
  overflow: hidden;
  position: relative;
}
.stack-section .container { position: relative; z-index: 1; }
.stack-rails {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.rail {
  display: flex;
  gap: 12px;
  overflow: hidden;
}
.rail-track {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  animation: marquee 50s linear infinite;
}
.rail-2 .rail-track { animation: marquee-reverse 60s linear infinite; }
.rail-3 .rail-track { animation: marquee 45s linear infinite; }
@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  white-space: nowrap;
  transition: all 0.3s ease;
}
.chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  box-shadow: 0 0 8px var(--c, var(--accent));
}
.chip.featured { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.chip.featured .dot { background: var(--accent-fg); box-shadow: none; }
.chip .mono { font-family: var(--ff-mono); font-size: 12px; color: var(--fg-mute); }
.chip.featured .mono { color: var(--accent-fg); opacity: 0.7; }

/* ============ SECTION ============ */
.section { padding: var(--section-y) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 22ch;
  text-wrap: balance;
}
.section-title .accent { color: var(--accent); }
.section-title em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, var(--accent-soft) 60%);
  padding: 0 4px;
}
.section-sub {
  color: var(--fg-mute);
  max-width: 44ch;
  text-align: right;
  font-size: 15px;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
  .section-sub { text-align: left; }
}

/* ============ SERVICES / BENTO ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.bento-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-4 { grid-column: span 4; min-height: 260px; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.tall { min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: 18px;
  font-weight: 600;
}
.bento-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  line-height: 1.2;
}
.bento-desc {
  color: var(--fg-mute);
  font-size: 15px;
  line-height: 1.5;
}
.bento-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.bento-tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg-mute);
}

/* Decorative service viz */
.viz-stack {
  margin-top: 24px;
  display: flex;
  align-items: end;
  gap: 6px;
  height: 80px;
}
.viz-stack > div {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.viz-stack > div:nth-child(1) { height: 30%; }
.viz-stack > div:nth-child(2) { height: 55%; }
.viz-stack > div:nth-child(3) { height: 78%; background: var(--accent); border-color: var(--accent); }
.viz-stack > div:nth-child(4) { height: 45%; }
.viz-stack > div:nth-child(5) { height: 65%; }
.viz-stack > div:nth-child(6) { height: 90%; }
.viz-stack > div:nth-child(7) { height: 50%; }

.viz-code {
  margin-top: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--fg-mute);
  line-height: 1.7;
  overflow: hidden;
}
.viz-code .k { color: var(--accent); }
.viz-code .s { color: #ffa336; }
.viz-code .c { color: var(--fg-dim); }

.viz-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.viz-tags span {
  font-family: var(--ff-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-mute);
  background: var(--bg-2);
}
.viz-tags span.lit { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-3, .bento-card.span-2, .bento-card.span-4, .bento-card.span-6 { grid-column: span 2; }
}
@media (max-width: 580px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-3, .bento-card.span-2, .bento-card.span-4, .bento-card.span-6 { grid-column: span 1; }
}

/* ============ FEATURED WORK ============ */
.featured-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover { border-color: var(--line-strong); }
.feature-card.reverse { grid-template-columns: 1fr 1.1fr; }
.feature-card.reverse .feature-thumb { order: 2; }
.feature-card.reverse .feature-body { order: 1; }

.feature-body {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--fg-mute);
  margin-bottom: 24px;
}
.feature-meta .badge {
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 500;
}
.feature-title {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 16px;
  text-wrap: balance;
}
.feature-desc {
  color: var(--fg-mute);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 24px;
}
.feature-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-bottom: 28px;
}
.feature-highlights li {
  font-size: 13px;
  color: var(--fg);
  display: flex;
  align-items: start;
  gap: 8px;
  line-height: 1.4;
}
.feature-highlights li::before {
  content: "—";
  color: var(--accent);
  flex-shrink: 0;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.feature-tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg-mute);
}
.feature-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s, gap 0.2s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }
.link-arrow .arrow { transition: transform 0.2s; }

/* ============ IMAGE SLOT (placeholder for real images) ============ */
.img-slot {
  position: relative;
  width: 100%;
  background: var(--bg-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 55%),
    radial-gradient(circle at 70% 70%, var(--accent-soft), transparent 55%);
  transition: border-color 0.3s, transform 0.4s;
}
.img-slot::before, .img-slot::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--accent);
  opacity: 0.6;
}
.img-slot::before { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.img-slot::after { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.img-slot .img-meta {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 24px;
}
.img-slot .img-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 8px;
}
.img-slot .img-hint {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.img-slot .img-dim {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 1;
}
.img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-slot:has(img) { border-style: solid; }
.img-slot:has(img) .img-meta,
.img-slot:has(img) .img-dim { display: none; }
.img-slot:has(img)::before, .img-slot:has(img)::after { display: none; }

/* Feature thumbnail — image slot */
.feature-thumb {
  background: var(--bg-2);
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-left: 1px solid var(--line);
  overflow: hidden;
}
.feature-thumb .img-slot { flex: 1; }
.feature-card:hover .feature-thumb .img-slot { transform: scale(1.01); border-color: var(--accent); }
.feature-card.reverse .feature-thumb { border-left: none; border-right: 1px solid var(--line); }

.browser {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.feature-card:hover .browser { transform: translateY(-4px) scale(1.01); }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 5px; }
.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.browser-url {
  flex: 1;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg-mute);
  background: var(--bg);
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.browser-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  position: relative;
  overflow: hidden;
}
.browser-content::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 50%);
  opacity: 0.6;
}
.browser-content > * { position: relative; z-index: 1; }

.skeleton-h { height: 14px; border-radius: 4px; background: var(--bg); }
.skeleton-h.w70 { width: 70%; }
.skeleton-h.w40 { width: 40%; }
.skeleton-h.w90 { width: 90%; }
.skeleton-h.lit { background: var(--accent); }

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.skeleton-grid > div {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.skeleton-grid > div:nth-child(2) { background: var(--accent-soft); border-color: var(--accent); }

/* Project-themed mini-mocks */
.mock-dashboard { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.mock-dashboard .kpi {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--fg-mute);
}
.mock-dashboard .kpi .v { color: var(--accent); font-size: 16px; display: block; margin-top: 4px; font-weight: 600; }
.mock-chart {
  margin-top: 8px;
  height: 60px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  position: relative;
  overflow: hidden;
}
.mock-chart svg { width: 100%; height: 100%; }

@media (max-width: 820px) {
  .feature-card, .feature-card.reverse { grid-template-columns: 1fr; }
  .feature-card.reverse .feature-thumb { order: 2; border-right: none; border-top: 1px solid var(--line); }
  .feature-thumb { border-left: none; border-top: 1px solid var(--line); min-height: 260px; }
  .feature-highlights { grid-template-columns: 1fr; }
}

/* ============ MORE WORK GRID ============ */
.more-work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.work-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.work-card .card-thumb {
  margin: -28px -28px 20px;
  aspect-ratio: 16/10;
}
.work-card .card-thumb .img-slot {
  height: 100%;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
}
.work-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.work-card .meta .status {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.work-card .meta .status.live { color: var(--good); border-color: rgba(95,217,126,0.3); }
.work-card .meta .status.dev { color: var(--warn); border-color: rgba(255,163,54,0.3); }

.work-card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  line-height: 1.2;
}
.work-card p {
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 20px;
}
.work-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
}
.work-card .tags span {
  font-family: var(--ff-mono);
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg-mute);
}
.work-card .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.work-card .footer a {
  font-size: 13px;
  color: var(--fg);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}
.work-card .footer a:hover { color: var(--accent); gap: 9px; }

@media (max-width: 980px) { .more-work { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .more-work { grid-template-columns: 1fr; } }

/* ============ PROCESS ============ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
}
.process-step {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.3s;
}
.process-step:last-child { border-right: none; }
.process-step:hover { background: var(--bg-2); }
.process-step .step-num {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.process-step h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.process-step p {
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(1), .process-step:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .process { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: none; }
}

/* ============ TESTIMONIAL ============ */
.quote {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.quote-mark {
  font-size: 80px;
  line-height: 0.8;
  color: var(--accent);
  font-family: serif;
  margin-bottom: 16px;
  display: block;
}
.quote-body {
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 32px;
  text-wrap: balance;
  color: var(--fg);
}
.quote-body em { font-style: normal; color: var(--accent); }
.quote-author {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--fg-mute);
}
.quote-author b { color: var(--fg); font-weight: 500; }

/* ============ CTA ============ */
.cta {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, var(--accent-soft), transparent 50%),
    radial-gradient(circle at 20% 80%, var(--accent-soft), transparent 50%),
    var(--bg-card);
  border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 96px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.cta-inner { position: relative; }
.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.cta-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
}
.cta-title {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 24px;
  text-wrap: balance;
}
.cta-title em { font-style: italic; color: var(--accent); }
.cta-sub {
  color: var(--fg-mute);
  font-size: 17px;
  max-width: 52ch;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer {
  margin-top: var(--section-y);
  padding-top: 64px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 16px; }
.footer-brand .brand { font-size: 17px; margin-bottom: 16px; }
.footer-brand p {
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.5;
  max-width: 36ch;
  margin-bottom: 16px;
}
.footer-brand .location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--fg-mute);
}
.footer-brand .location::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 6px var(--good);
}

.footer-col h4 {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--fg);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover { color: var(--accent); }
.footer-col a .ext { font-size: 11px; color: var(--fg-dim); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .made-with em { color: var(--accent); font-style: normal; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ TWEAKS ============ */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: none;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.tweaks.open { display: block; }
.tweaks.in { opacity: 1; transform: translateY(0); }
.tweaks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tweaks-title {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}
.tweaks-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--fg-mute);
  transition: all 0.2s;
}
.tweaks-close:hover { color: var(--fg); border-color: var(--fg); }
.tweak-row { margin-bottom: 16px; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tweak-segments {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--bg-2);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.tweak-segments button {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg-mute);
  transition: all 0.2s;
}
.tweak-segments button.active { background: var(--accent); color: var(--accent-fg); }
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  padding: 0;
}
.tweak-swatch:hover { transform: scale(1.1); }
.tweak-swatch.active { border-color: var(--fg); }
.tweak-swatch[data-c="indigo"]     { background: #7c6bff; }
.tweak-swatch[data-c="violet"]     { background: #a78bfa; }
.tweak-swatch[data-c="periwinkle"] { background: #8ea0ff; }
.tweak-swatch[data-c="electric"]   { background: #5b8def; }
.tweak-swatch[data-c="plum"]       { background: #c084fc; }

/* ============ IMAGE CAROUSEL (AfrikaHawa) ============ */
.img-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-2);
}
.carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.carousel-img.active { opacity: 1; }
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s;
}
.carousel-dot.active { background: #fff; }

/* ============ WORK CARD THUMBNAILS ============ */
.work-card .card-thumb {
  margin: -28px -28px 20px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: 1px solid var(--line);
}
.work-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.work-card:hover .card-thumb img { transform: scale(1.03); }
