/* ========== TOKENS ========== */
:root {
  /* Dark (default) */
  --ink: oklch(0.12 0.04 280);
  --ink-2: oklch(0.16 0.05 280);
  --ink-3: oklch(0.22 0.06 285);
  --paper: oklch(0.98 0.005 280);
  --paper-dim: oklch(0.86 0.01 280);
  --muted: oklch(0.62 0.03 285);
  --line: oklch(1 0 0 / 0.08);
  --line-strong: oklch(1 0 0 / 0.14);

  --violet: oklch(0.62 0.22 292);
  --violet-2: oklch(0.52 0.24 290);
  --violet-soft: oklch(0.78 0.12 290);
  --violet-deep: oklch(0.28 0.16 288);

  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --fg: var(--paper);
  --fg-dim: var(--paper-dim);

  --radius: 14px;
  --radius-lg: 22px;

  --f-display: "Instrument Serif", "Canela", Georgia, serif;
  --f-body: "Geist", -apple-system, "Inter", system-ui, sans-serif;
  --f-mono: "Fraktion Mono", "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

[data-theme="light"] {
  --ink: oklch(0.98 0.005 280);
  --ink-2: oklch(0.95 0.008 285);
  --ink-3: oklch(0.88 0.015 285);
  --paper: oklch(0.14 0.04 280);
  --paper-dim: oklch(0.32 0.04 285);
  --muted: oklch(0.46 0.03 285);
  --line: oklch(0 0 0 / 0.08);
  --line-strong: oklch(0 0 0 / 0.16);
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --fg: var(--paper);
  --fg-dim: var(--paper-dim);
}

/* Font pairing variants (toggled via data-typeset) */
[data-typeset="editorial"] {
  --f-display: "Instrument Serif", Georgia, serif;
  --f-body: "Geist", system-ui, sans-serif;
  --f-mono: "Fraktion Mono", ui-monospace, monospace;
}
[data-typeset="grotesk"] {
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Geist", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}
[data-typeset="mono-first"] {
  --f-display: "Fraktion Mono", ui-monospace, monospace;
  --f-body: "Geist", system-ui, sans-serif;
  --f-mono: "Fraktion Mono", ui-monospace, monospace;
}
[data-typeset="classic"] {
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ========== LAYOUT ========== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: 160px 1fr; gap: 48px; margin-bottom: clamp(40px, 5vw, 72px); align-items: baseline; }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; gap: 12px; } }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--violet-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.title em { font-style: italic; color: var(--violet-soft); }

.kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========== NAV ========== */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--f-display);
  font-size: 22px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 18px var(--violet); }
.nav-links { display: flex; gap: 28px; font-size: 13.5px; color: var(--fg-dim); }
.nav-links a { position: relative; }
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--violet); transform: scaleX(0);
  transform-origin: left; transition: transform .3s;
}
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 820px) { .nav-links { display: none; } }

.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  background: var(--violet);
  color: white;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .2s, box-shadow .25s, background .2s;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.15) inset, 0 10px 30px -12px var(--violet);
}
.cta-btn:hover { transform: translateY(-1px); background: var(--violet-2); }
.cta-btn .arr { transition: transform .2s; }
.cta-btn:hover .arr { transform: translate(2px, -2px); }

.ghost-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  transition: background .2s, border-color .2s;
}
.ghost-btn:hover { background: var(--line); border-color: var(--fg-dim); }

/* ========== HERO ========== */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-bg::before {
  content: ""; position: absolute;
  top: -30%; right: -20%;
  width: 900px; height: 900px;
  background: radial-gradient(closest-side, var(--violet-deep), transparent 70%);
  opacity: 0.5; filter: blur(10px);
}
.hero-bg::after {
  content: ""; position: absolute;
  bottom: -40%; left: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(closest-side, oklch(0.32 0.18 288), transparent 70%);
  opacity: 0.35; filter: blur(20px);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; justify-self: start; max-width: 320px; }
}

.hero-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 22px;
}
.hero-meta .pulse {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg-dim);
}
.hero-meta .pulse i {
  width: 7px; height: 7px; border-radius: 50%;
  background: oklch(0.7 0.2 150);
  box-shadow: 0 0 10px oklch(0.7 0.2 150);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1;} 50% { opacity: .35;} }

.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-title .em { font-style: italic; color: var(--violet-soft); }
.hero-title .stroke {
  -webkit-text-stroke: 1px var(--fg);
  color: transparent;
}
.hero-sub {
  max-width: 52ch;
  color: var(--fg-dim);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.55;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.hero-stat .n {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.hero-stat .l {
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 8px; display: block;
}

/* Hero photo */
.hero-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}
.hero-photo {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--violet);
  box-shadow: 0 40px 80px -30px oklch(0 0 0 / 0.6), 0 0 0 1px var(--line);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 20%;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, oklch(0 0 0 / 0.5));
  pointer-events: none;
}
.hero-photo-tag {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: white;
  z-index: 2;
}
.hero-photo-tag .name {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.hero-photo-tag .role {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.82;
  margin-top: 2px;
}
.hero-photo-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.14);
  backdrop-filter: blur(8px);
  color: white;
  z-index: 2;
}

/* Floating chip - decoration */
.float-chip {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  color: var(--fg-dim);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  box-shadow: 0 20px 40px -18px oklch(0 0 0 / 0.5);
}
.float-chip .bul { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.float-chip.fc-1 { top: 8%; left: -32px; }
.float-chip.fc-2 { bottom: 18%; left: -48px; }
.float-chip.fc-3 { top: 52%; right: -28px; }
@media (max-width: 900px) { .float-chip { display: none; } }

/* Hero variant B: full-bleed photo card */
[data-hero="split"] .hero-grid { grid-template-columns: 1fr; }
[data-hero="split"] .hero-photo-wrap { display: none; }
[data-hero="split"] .hero-title { font-size: clamp(56px, 10vw, 140px); }
[data-hero="split"] .hero-meta { justify-content: center; }
[data-hero="split"] .hero-meta, [data-hero="split"] .hero-title, [data-hero="split"] .hero-sub { text-align: center; }
[data-hero="split"] .hero-sub { margin-left: auto; margin-right: auto; }
[data-hero="split"] .hero-ctas { justify-content: center; }
[data-hero="split"] .hero-stats { margin: 40px auto 0; grid-template-columns: repeat(3, 1fr); max-width: 720px; }
[data-hero="split"] .hero-stat { text-align: center; }

[data-hero="editorial"] .hero-grid { grid-template-columns: 1fr 1fr; }
[data-hero="editorial"] .hero-title { font-size: clamp(40px, 5.6vw, 78px); }
[data-hero="editorial"] .hero-photo-wrap { aspect-ratio: 3/4; max-width: 420px; }

/* ========== MARQUEE LOGOS STRIP ========== */
.marquee {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 72px;
  animation: slide 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 10px;
}
.marquee-item .d { width: 4px; height: 4px; border-radius: 50%; background: var(--violet); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ========== ABOUT ========== */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 820px) { .about-body { grid-template-columns: 1fr; } }
.about-lede {
  font-family: var(--f-display);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.about-lede em { color: var(--violet-soft); font-style: italic; }
.about-p { color: var(--fg-dim); font-size: 15.5px; margin: 0 0 16px; max-width: 54ch; }
.about-sig {
  margin-top: 28px;
  font-family: var(--f-display);
  font-size: 36px;
  letter-spacing: -0.01em;
  color: var(--violet-soft);
}

.about-facts { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.about-fact {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  gap: 16px;
}
.about-fact dt {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.about-fact dd { margin: 0; color: var(--fg); }

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.srv {
  background: var(--bg);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  position: relative;
  transition: background .25s;
}
.srv:hover { background: var(--ink-2); }
.srv .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--violet-soft);
}
.srv .h {
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.srv .d { color: var(--fg-dim); font-size: 14px; margin: 0; flex: 1; }
.srv .arr {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fg);
  margin-top: 6px;
  opacity: 0.6;
  transition: opacity .2s, transform .2s;
}
.srv:hover .arr { opacity: 1; transform: translateX(4px); }

.srv.sp-6 { grid-column: span 6; }
.srv.sp-4 { grid-column: span 4; }
.srv.sp-3 { grid-column: span 3; }
.srv.sp-5 { grid-column: span 5; }
.srv.sp-7 { grid-column: span 7; }
.srv.sp-8 { grid-column: span 8; }
.srv.sp-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .srv { grid-column: span 12 !important; }
}

/* Feature service card */
.srv.feat {
  background: linear-gradient(135deg, var(--violet-deep), var(--ink-2));
  color: var(--paper);
}
.srv.feat .num { color: var(--violet-soft); }
.srv.feat .h { font-size: clamp(28px, 2.6vw, 36px); }
.srv.feat .d { color: oklch(1 0 0 / 0.72); }

/* ========== SKILLS ========== */
.skills-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 820px) { .skills-body { grid-template-columns: 1fr; } }
.skills-list { display: grid; gap: 0; }
.skill-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.skill-row:last-child { border-bottom: 1px solid var(--line); }
.skill-row .nm {
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.01em;
}
.skill-row .bar {
  height: 4px;
  background: var(--line-strong);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.skill-row .bar i {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--violet);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(.16,1,.3,1);
}
.skill-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
}
.chip {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg-dim);
  transition: border-color .2s, color .2s;
}
.chip:hover { color: var(--fg); border-color: var(--fg-dim); }

.skills-blurb {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: pretty;
  position: sticky; top: 100px;
}
.skills-blurb em { color: var(--violet-soft); font-style: italic; }
.skills-blurb p { margin: 0 0 18px; }
.skills-blurb .sub {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.55;
  letter-spacing: 0;
  margin-top: 24px;
}

/* ========== PROCESS ========== */
.process-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr 1.3fr;
  gap: clamp(20px, 3vw, 48px);
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
  transition: background .3s;
}
.process-step::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--violet-deep), transparent);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.process-step:hover::before { opacity: 0.15; }
@media (max-width: 820px) {
  .process-step { grid-template-columns: 70px 1fr; }
  .process-step .p-body { grid-column: 2; }
}
.process-step .p-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--violet-soft);
  padding-top: 10px;
}
.process-step .p-title {
  font-family: var(--f-display);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.process-step .p-body { color: var(--fg-dim); font-size: 15px; }
.process-step .p-body p { margin: 0 0 10px; }
.process-step .p-body ul { margin: 8px 0 0; padding: 0; list-style: none; }
.process-step .p-body li {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 0;
}
.process-step .p-body li::before { content: "— "; color: var(--violet-soft); }

/* ========== TOOLS ========== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tool {
  background: var(--bg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .25s;
}
.tool:hover { background: var(--ink-2); }
.tool .tk {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.tool .tn {
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: -0.01em;
}
.tool .td { color: var(--fg-dim); font-size: 13px; margin: 0; }
.tool-glyph {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--violet-deep);
  color: var(--violet-soft);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
}

/* ========== RESULTS ========== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 820px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
.res {
  background: var(--bg);
  padding: 36px 28px;
  display: flex; flex-direction: column;
  gap: 8px;
  min-height: 200px;
  justify-content: space-between;
}
.res .rn {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.res .rn .u {
  font-size: 0.45em;
  color: var(--violet-soft);
  letter-spacing: 0;
  margin-left: 2px;
}
.res .rl {
  font-size: 13.5px;
  color: var(--fg-dim);
  line-height: 1.4;
}
.res .rk {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: linear-gradient(180deg, var(--bg), var(--ink-2));
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .t-grid { grid-template-columns: 1fr; } }
.tcard {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: border-color .25s, transform .3s;
}
.tcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tcard .mark {
  font-family: var(--f-display);
  font-size: 58px; line-height: 0.4;
  color: var(--violet-soft); opacity: 0.6;
  height: 22px;
}
.tcard .q {
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  flex: 1;
}
.tcard .a {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.tcard .a .av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-deep), var(--violet));
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px;
  color: white;
}
.tcard .a .nm { font-size: 14px; font-weight: 500; }
.tcard .a .r {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}

/* ========== FAQ ========== */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
  font-family: var(--f-display);
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.01em;
  color: var(--fg);
  gap: 24px;
  transition: color .2s;
}
.faq-q:hover { color: var(--violet-soft); }
.faq-q .ic {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-family: var(--f-mono); font-size: 14px;
  transition: transform .3s, background .2s;
}
.faq-item[open] .faq-q .ic { background: var(--violet); border-color: var(--violet); color: white; transform: rotate(45deg); }
.faq-a {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
  padding: 0 60px 28px 0;
  max-width: 68ch;
}

/* ========== BLOG ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) { .blog-grid { grid-template-columns: 1fr; } }
.post {
  display: flex; flex-direction: column;
  gap: 16px;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color .25s;
  background: var(--bg);
}
.post:hover { border-color: var(--line-strong); }
.post-img {
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.post-img svg { width: 100%; height: 100%; }
.post-body { padding: 4px 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.post .mt {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 12px;
}
.post .mt .tag { color: var(--violet-soft); }
.post .ph {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.post .pa {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 4px;
}

/* ========== CONTACT ========== */
.contact {
  padding: clamp(96px, 12vw, 160px) 0;
  position: relative; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--violet-deep) 0%, transparent 65%);
  opacity: 0.45;
  pointer-events: none;
}
.contact-inner { position: relative; text-align: center; }
.contact-title {
  font-family: var(--f-display);
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}
.contact-title em { font-style: italic; color: var(--violet-soft); }
.contact-sub {
  color: var(--fg-dim);
  max-width: 56ch;
  margin: 0 auto 40px;
  font-size: 17px;
}
.contact-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 32px;
  background: var(--violet);
  color: white;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  transition: transform .2s, background .2s;
  box-shadow: 0 20px 40px -12px var(--violet);
}
.contact-cta:hover { transform: translateY(-2px); background: var(--violet-2); }
.contact-alt {
  margin-top: 32px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.contact-alt a { color: var(--fg-dim); transition: color .2s; }
.contact-alt a:hover { color: var(--fg); }

/* ========== FOOTER ========== */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot a { color: var(--fg-dim); }
.foot a:hover { color: var(--fg); }
@media (max-width: 720px) { .foot { flex-direction: column; text-align: center; } }

/* ========== TWEAKS PANEL ========== */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 320px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 18px;
  z-index: 100;
  font-family: var(--f-body);
  color: var(--fg);
  box-shadow: 0 40px 80px -20px oklch(0 0 0 / 0.6);
  display: none;
}
[data-theme="light"] .tweaks-panel { background: oklch(1 0 0); }
.tweaks-panel.open { display: block; }
.tweaks-h {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.tweak-group { margin-bottom: 16px; }
.tweak-group:last-child { margin-bottom: 0; }
.tweak-label {
  font-size: 11.5px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.seg {
  display: flex; gap: 4px;
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 10px;
}
[data-theme="light"] .seg { background: oklch(0.93 0.008 285); }
.seg-opt {
  flex: 1;
  font-size: 11px;
  padding: 7px 8px;
  border-radius: 7px;
  text-align: center;
  color: var(--fg-dim);
  transition: background .2s, color .2s;
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.seg-opt.active { background: var(--violet); color: white; }
.section-toggles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.sec-tog {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px;
  font-size: 11px;
  border-radius: 7px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  cursor: pointer;
  transition: background .2s;
}
[data-theme="light"] .sec-tog { background: oklch(0.93 0.008 285); }
.sec-tog .sw {
  width: 22px; height: 13px;
  border-radius: 7px;
  background: var(--line-strong);
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
}
.sec-tog .sw::before {
  content: "";
  position: absolute;
  width: 9px; height: 9px; border-radius: 50%;
  top: 2px; left: 2px;
  background: white;
  transition: transform .2s;
}
.sec-tog.on .sw { background: var(--violet); }
.sec-tog.on .sw::before { transform: translateX(9px); }

/* Section visibility */
[data-section-hidden="true"] { display: none !important; }

/* Reveal animation */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.in { opacity: 1; transform: none; }
