/* Deril Mbarika portfolio. Dark set, one REC-red accent, Space Grotesk.
   Radius scale (documented, applied consistently):
     media / tiles 14px · cards 18px · inputs 10px · buttons + pills full. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0c0e;
  --bg-2: #101216;
  --bg-3: #15181d;
  --line: rgba(240, 239, 236, 0.10);
  --line-2: rgba(240, 239, 236, 0.18);
  --text: #f0efec;
  --muted: #9ba0a6;
  --muted-2: #6f747a;
  --accent: #e0524a;
  --accent-2: #ff6a60;
  --accent-ink: #170b0a;
  --r-media: 14px;
  --r-card: 18px;
  --r-input: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1360px;
  --pad: clamp(20px, 4vw, 56px);
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* Shared section rhythm */
.section-head { margin-bottom: clamp(30px, 4vw, 52px); }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-weight: 700;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 52ch;
}
section h2 { font-weight: 700; letter-spacing: -0.02em; }

/* ── nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 var(--pad);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-name { font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 34px); font-size: 15px; align-items: center; }
.nav-links a { color: var(--muted); transition: color 0.25s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-yt { color: var(--accent); font-weight: 500; }
.nav-links .nav-yt:hover { color: var(--accent-2); }

/* ── buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; background: rgba(224, 82, 74, 0.06); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px var(--pad) 56px;
}
/* Interactive particle field: drifts, connects to the cursor and trails it. */
.hero-fx {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.hero-copy, .hero-frame { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2.3rem, 5.8vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero-title em { font-style: italic; font-weight: 500; padding-bottom: 0.08em; display: inline-block; white-space: nowrap; color: var(--accent); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.1em; }
.hero-title .line > span { display: inline-block; }
.hero-sub {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  max-width: 40ch;
}
.hero-frame {
  position: relative; display: block;
  border-radius: var(--r-media);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6);
  transform: rotate(1.5deg);
  transition: transform 0.5s var(--ease);
}
.hero-frame:hover { transform: rotate(0.3deg) scale(1.012); }
.hero-frame img { width: 100%; height: auto; }
.hero-frame-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 46px 18px 15px;
  font-size: 13.5px; color: var(--text);
  background: linear-gradient(to top, rgba(11, 12, 14, 0.94), transparent);
}

/* ── work (asymmetric bento) ─────────────────────────── */
.work { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--pad); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.tile { display: block; }
.tile-img { display: block; border-radius: var(--r-media); overflow: hidden; border: 1px solid var(--line); }
.tile-img img {
  width: 100%; height: auto; display: block;
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.9);
}
.tile:hover .tile-img img { transform: scale(1.04); filter: saturate(1.05); }
.tile-meta { display: flex; flex-direction: column; gap: 3px; padding: 14px 4px 0; }
.tile-meta strong { font-size: 15.5px; font-weight: 500; line-height: 1.35; transition: color 0.25s var(--ease); }
.tile-meta span { color: var(--muted); font-size: 13.5px; }
.tile:hover .tile-meta strong { color: var(--accent); }

/* ── latest (horizontal scroll rail) ─────────────────── */
.latest { max-width: var(--maxw); margin: 0 auto; padding: 0 0 clamp(72px, 10vw, 120px); }
.latest .section-head, .latest-head { padding-inline: var(--pad); }
.latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.latest-all { color: var(--accent); font-size: 14.5px; font-weight: 500; transition: color 0.25s var(--ease); }
.latest-all:hover { color: var(--accent-2); }
.latest-rail {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
  padding: 4px var(--pad) 4px;
}
.ltile { display: block; }
.ltile-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: var(--r-media); overflow: hidden; border: 1px solid var(--line);
}
.ltile-thumb img {
  width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0;
  filter: saturate(0.9);
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.ltile:hover .ltile-thumb img { transform: scale(1.03); filter: saturate(1.05); }
.ltile-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.ltile-title { display: block; padding: 12px 2px 0; font-size: 14px; line-height: 1.35; color: var(--muted); transition: color 0.25s var(--ease); }
.ltile:hover .ltile-title { color: var(--text); }

/* ── about (editorial) ───────────────────────────────── */
.about {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(80px, 11vw, 150px) var(--pad);
}
.about-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.about-photo {
  margin: 0; position: relative; aspect-ratio: 4 / 5;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(150deg, #1a1d22, #101216);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo.is-missing img { display: none; }
.about-photo.is-missing::after {
  content: "Add your photo at assets/img/deril.jpg";
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: var(--muted-2); font-size: 13px; letter-spacing: 0.02em;
}
.about-inner { max-width: none; margin: 0; }
.about-kicker { color: var(--accent); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.about-inner h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.03em; line-height: 1.06; max-width: 16ch; }
.about-inner > p { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.6; margin-top: 20px; max-width: 58ch; }
.about-quote {
  margin: 30px 0 0; padding-left: 20px; border-left: 3px solid var(--accent);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.2; color: var(--text);
}
.about-pillars { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
/* Standalone About page: clear the fixed nav and add a bottom CTA. */
.about-page .about { padding-top: clamp(112px, 15vh, 180px); border-top: 0; }
.about-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.footer a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.footer a:hover { color: var(--accent); border-color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--text); }
.about-pillars span {
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 18px; font-size: 14.5px; color: var(--text);
}

/* ── kit (two-column, sticky aside + rows) ───────────── */
.kit {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
}
.kit-aside { position: sticky; top: 100px; align-self: start; }
.kit-aside h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -0.025em; }
.kit-aside p { color: var(--muted); margin-top: 16px; max-width: 34ch; }
.kit-list { list-style: none; }
.kit-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 22px 4px;
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
}
.kit-row:last-child { border-bottom: 1px solid var(--line); }
.kit-row:hover { padding-left: 12px; }
.kit-role { color: var(--muted); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; flex-shrink: 0; }
.kit-name { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em; text-align: right; }

/* Gear list with affiliate links */
.gear { display: grid; gap: clamp(24px, 3vw, 36px); }
.gear-cat { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.gear-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 15px 4px; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--text);
  transition: padding-left 0.3s var(--ease);
}
.gear-group .gear-row:last-child { border-bottom: 1px solid var(--line); }
.gear-name { font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 500; letter-spacing: -0.01em; transition: color 0.25s var(--ease); }
.gear-row--link:hover { padding-left: 10px; }
.gear-row--link:hover .gear-name { color: var(--accent); }
.gear-buy {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 12px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 13px; white-space: nowrap;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.gear-buy::after { content: "\2197"; }
.gear-row--link:hover .gear-buy { border-color: var(--accent); background: rgba(224, 82, 74, 0.09); }

/* Newsletter email capture */
.news {
  max-width: 900px; margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--pad);
  text-align: center; border-top: 1px solid var(--line);
}
.news-inner h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.025em; line-height: 1.1; }
.news-inner > p { color: var(--muted); margin-top: 14px; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.news-form { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.news-form input[type="email"] {
  flex: 1 1 320px; max-width: 380px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--text); font-family: inherit; font-size: 15px; padding: 14px 22px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.news-form input[type="email"]::placeholder { color: var(--muted-2); }
.news-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 82, 74, 0.18); }
.news-status { margin-top: 14px; min-height: 1.2em; font-size: 14px; color: var(--muted); }
.news-status.is-ok { color: #5fbf7a; }
.news-status.is-err { color: var(--accent-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── collab (offers + logo wall + contact form) ──────── */
.collab {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(80px, 11vw, 150px) var(--pad);
}
.collab > * { max-width: 1140px; margin-inline: auto; }
.collab-top { margin-bottom: clamp(34px, 4vw, 52px); }
.collab-top h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.05; }
.collab-top p { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 56ch; margin-top: 18px; }

.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 18px); }
.offer {
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--bg); padding: clamp(22px, 2.8vw, 32px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.offer:hover { border-color: var(--line-2); transform: translateY(-3px); }
.offer h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; }
.offer p { color: var(--muted); margin-top: 12px; font-size: 1rem; line-height: 1.55; }
.offer-lead {
  grid-column: span 2;
  background: linear-gradient(140deg, rgba(224, 82, 74, 0.14), rgba(224, 82, 74, 0.02) 60%), var(--bg);
  border-color: rgba(224, 82, 74, 0.35);
}

.covered-label { margin: clamp(44px, 5vw, 64px) 0 18px; color: var(--muted-2); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; }
.covered { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 52px); }
.covered .brand { display: inline-flex; align-items: center; min-height: 26px; }
.covered img { height: 24px; width: auto; opacity: 0.75; filter: grayscale(0.2); transition: opacity 0.25s var(--ease); }
.covered .brand:hover img { opacity: 1; }
.brand-fallback { display: none; color: var(--muted); font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }

/* Rotating 3D brand sphere (JS enhancement over the flat list above). */
.brand-cloud { position: relative; }
.brand-cloud.is-3d .covered {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sphere {
  position: relative; width: 100%;
  height: clamp(380px, 52vw, 540px);
  margin-top: 20px;
  perspective: 1200px;
  touch-action: none; cursor: grab;
  overflow: hidden;
}
.sphere:active { cursor: grabbing; }
/* Soft glow + faint rings imply the sphere volume behind the tiles. */
.sphere__glow {
  position: absolute; top: 50%; left: 50%;
  width: min(78%, 520px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(224, 82, 74, 0.16), rgba(224, 82, 74, 0.05) 46%, transparent 70%);
  pointer-events: none;
}
/* Atomic orbit rings + orbiting electrons behind the brand tiles. */
.sphere__orbits { position: absolute; inset: 0; z-index: 0; pointer-events: none; transform-style: preserve-3d; }
.orbit {
  position: absolute; top: 50%; left: 50%; aspect-ratio: 1;
  border: 1.5px solid rgba(224, 82, 74, 0.32); border-radius: 50%;
  box-shadow: 0 0 22px rgba(224, 82, 74, 0.14);
  transform-style: preserve-3d;
}
.orbit--1 { width: min(78%, 520px); animation: tumble1 22s linear infinite; }
.orbit--2 { width: min(60%, 410px); border-color: rgba(240, 239, 236, 0.20); box-shadow: 0 0 20px rgba(240, 239, 236, 0.06); animation: tumble2 30s linear infinite; }
.orbit--3 { width: min(70%, 470px); border-color: rgba(224, 82, 74, 0.24); animation: tumble3 26s linear infinite; }
@keyframes tumble1 { from { transform: translate(-50%,-50%) rotateX(68deg) rotateY(0deg); } to { transform: translate(-50%,-50%) rotateX(68deg) rotateY(360deg); } }
@keyframes tumble2 { from { transform: translate(-50%,-50%) rotateZ(58deg) rotateX(74deg) rotateY(360deg); } to { transform: translate(-50%,-50%) rotateZ(58deg) rotateX(74deg) rotateY(0deg); } }
@keyframes tumble3 { from { transform: translate(-50%,-50%) rotateY(120deg) rotateX(60deg) rotateZ(0deg); } to { transform: translate(-50%,-50%) rotateY(480deg) rotateX(60deg) rotateZ(0deg); } }

.electron { position: absolute; top: 50%; left: 50%; aspect-ratio: 1; transform-style: preserve-3d; }
.electron__dot {
  position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px 3px rgba(224, 82, 74, 0.85);
}
/* Two electrons ride each orbit plane, offset by a negative delay. */
.electron--1 { width: min(78%, 520px); animation: spinP1 8s linear infinite; }
.electron--4 { width: min(78%, 520px); animation: spinP1 8s linear infinite; animation-delay: -4s; }
.electron--2 { width: min(70%, 470px); animation: spinP3 13s linear infinite; }
.electron--5 { width: min(70%, 470px); animation: spinP3 13s linear infinite; animation-delay: -7s; }
.electron--3 { width: min(60%, 410px); animation: spinP2 10s linear infinite reverse; }
.electron--2 .electron__dot, .electron--5 .electron__dot { background: var(--accent-2); box-shadow: 0 0 16px 3px rgba(255, 106, 96, 0.75); }
.electron--3 .electron__dot { background: #f0efec; box-shadow: 0 0 14px 3px rgba(240, 239, 236, 0.6); }
@keyframes spinP1 { from { transform: translate(-50%,-50%) rotateX(68deg) rotateZ(0deg); } to { transform: translate(-50%,-50%) rotateX(68deg) rotateZ(360deg); } }
@keyframes spinP2 { from { transform: translate(-50%,-50%) rotateZ(58deg) rotateX(74deg) rotateZ(0deg); } to { transform: translate(-50%,-50%) rotateZ(58deg) rotateX(74deg) rotateZ(360deg); } }
@keyframes spinP3 { from { transform: translate(-50%,-50%) rotateY(120deg) rotateX(60deg) rotateZ(360deg); } to { transform: translate(-50%,-50%) rotateY(120deg) rotateX(60deg) rotateZ(0deg); } }
@media (prefers-reduced-motion: reduce) {
  .orbit, .electron { animation: none; }
}
.sphere__stage { position: absolute; inset: 0; transform-style: preserve-3d; z-index: 1; }
.node {
  position: absolute; top: 50%; left: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  will-change: transform, opacity;
  user-select: none; pointer-events: auto;
}
.node__tile {
  width: 58px; height: 58px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: #f4f4f2;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.node__tile img { width: 34px; height: 34px; object-fit: contain; display: block; }
.node__tile .node__word { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; text-align: center; }
.node__cap { font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; transition: color 0.2s var(--ease); }
.node:hover { z-index: 999 !important; }
.node:hover .node__tile { transform: scale(1.14); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 0 2px var(--accent); }
.node:hover .node__cap { color: var(--text); }
.sphere-hint { margin-top: 6px; text-align: center; font-size: 12.5px; color: var(--muted-2); }

/* contact split */
.contact {
  margin-top: clamp(52px, 6vw, 84px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-top: clamp(44px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.contact-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; font-weight: 700; }
.contact-copy > p { color: var(--muted); margin-top: 16px; max-width: 42ch; }
.contact-direct a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.contact-direct a:hover { color: var(--accent); border-color: var(--accent); }
.platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.platforms a {
  display: inline-block; padding: 11px 20px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14.5px; color: var(--text);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.platforms a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* form */
.cform { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; color: var(--muted); letter-spacing: 0.01em; }
.cform input, .cform select, .cform textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-input);
  color: var(--text);
  font-family: inherit; font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cform input::placeholder, .cform textarea::placeholder { color: var(--muted-2); }
.cform input:focus, .cform select:focus, .cform textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 82, 74, 0.18);
}
.cform textarea { resize: vertical; min-height: 108px; }
.cform-submit { margin-top: 4px; justify-self: start; }
.cform-status { font-size: 14px; min-height: 1.2em; color: var(--muted); }
.cform-status.is-ok { color: #5fbf7a; }
.cform-status.is-err { color: var(--accent-2); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ── footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 30px var(--pad);
  color: var(--muted-2);
  font-size: 13.5px;
  text-align: center;
}

/* ── mobile ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .kit { grid-template-columns: 1fr; gap: 32px; }
  .kit-aside { position: static; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 92px; gap: 40px; align-content: center; }
  .hero-frame { transform: rotate(0deg); max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 440px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-rail { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-lead { grid-column: auto; }
  .contact { grid-template-columns: 1fr; }
  .nav-links a[href="#kit"], .nav-links a[href="#collab"],
  .nav-links a[href="/#kit"], .nav-links a[href="/#collab"] { display: none; }
}
@media (max-width: 480px) {
  .work-grid { grid-template-columns: 1fr; }
  .latest-rail { grid-template-columns: 1fr; }
  .kit-row { flex-direction: column; gap: 4px; align-items: flex-start; }
  .kit-name { text-align: left; }
}

/* ── reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-frame, .tile-img img, .ltile img { transition: none; }
}
