:root {
  --bg:          #0c0d14;
  --bg-2:        #111320;
  --bg-card:     #141627;
  --fg:          #f0eee8;
  --muted:       rgba(240,238,232,0.50);
  --hairline:    rgba(240,238,232,0.10);
  --hairline-s:  rgba(240,238,232,0.22);
  --accent:      #d97757;
  --accent-soft: rgba(217,119,87,0.18);

  --pad-x: clamp(24px, 5vw, 96px);
  --col:   1280px;

  --t-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --t-sans:  "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t-mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--t-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ── Layout ─────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled {
  background: rgba(12,13,20,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.brand-mark {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.brand:hover .brand-mark { transform: rotate(135deg); }
.brand-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  opacity: .7;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: var(--bg);
  opacity: 1;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: background .2s, transform .2s;
}
.nav-links a.nav-cta:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

@media (max-width: 480px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 40svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* Texture background using CSS only — layered gradients */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(arkern-background.jpg);
  background-size: 100%;
  z-index: 0;
}
@media (max-width: 720px) {
  .hero::before {
    background-size: 260%;
    background-position: -620px center;
  }
}

/* Noise texture overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 160px var(--pad-x) clamp(60px, 8vw, 100px);
}

/* Top badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--hairline-s);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-size: 13px;
  color: var(--fg);
  margin-bottom: clamp(48px, 8vw, 80px);
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.h1 {
  font-family: var(--t-sans);
  font-size: clamp(52px, 9.5vw, 100px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 clamp(20px, 7vw, 35px);
  color: var(--fg);
  max-width: 16ch;
}
.h1 .em {
  color: var(--accent);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 48px;
}
.hero-bottom-left {
  font-family: var(--t-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
  user-select: none;
}
.hero-bottom-left::after {
  content: "↓";
  font-size: 16px;
  letter-spacing: 0;
}
.hero-bottom-right {}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--fg);
  margin: 0 0 28px;
  max-width: 42ch;
}
.hero-sub strong { font-weight: 600; }
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .2s, color .2s, border-color .2s;
  will-change: transform;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
}
.btn-primary:hover { background: #c06848; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  padding: 12px 20px;
  border: 1px solid var(--hairline-s);
}
.btn-ghost:hover { border-color: var(--fg); transform: translateY(-2px); }
.btn .arrow {
  display: inline-block;
  width: 16px; height: 16px;
  position: relative;
  transition: transform .25s ease;
}
.btn .arrow::before, .btn .arrow::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.btn .arrow::before { top: 50%; left: 0; right: 4px; height: 1.5px; transform: translateY(-50%); }
.btn .arrow::after  { top: 50%; right: 0; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translate(0,-50%) rotate(45deg); background: transparent; }
.btn:hover .arrow { transform: translateX(3px); }

@media (max-width: 720px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero-bottom-left { display: none; }
}

/* ── Scrolling ribbon ───────────────────────────────────── */
.ribbon {
  position: relative;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--bg);
}
.ribbon-track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--t-sans);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 3.5vw, 40px);
  letter-spacing: -0.02em;
}
.ribbon-track span { display: inline-flex; align-items: center; gap: 80px; color: var(--fg); }
.ribbon-track .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  font-style: normal;
}
@keyframes marquee {
  to { transform: translateX(calc(-50% - 40px)); }
}

/* ── Two-column section pattern ─────────────────────────── */
.section-2col {
  padding: clamp(80px, 12vw, 100px) 0;
  border-top: 1px solid var(--hairline);
}
.section-2col-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.section-2col-inner.flip { direction: rtl; }
.section-2col-inner.flip > * { direction: ltr; }

.section-display {
  font-family: var(--t-sans);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--fg);
}
.section-display .em {
  color: var(--accent);
  display: block;
}

.section-eyebrow {
  font-family: var(--t-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 20px;
}
.section-body {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 48ch;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--hairline-s);
  padding-bottom: 3px;
  transition: border-color .2s, color .2s;
}
.section-link:hover { border-color: var(--accent); color: var(--accent); }
.section-link:hover::after { transform: translateX(3px); }

@media (max-width: 880px) {
  .section-2col-inner { grid-template-columns: 1fr; }
  .section-2col-inner.flip { direction: ltr; }
}

/* ── Convictions grid ───────────────────────────────────── */
.convictions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(48px, 6vw, 80px);
}
.conviction-item {
  padding: 0 24px 0 0;
}
.conviction-item h3 {
  font-family: var(--t-sans);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--fg);
  line-height: 1.2;
}
.conviction-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 880px) {
  .convictions-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .convictions-grid { grid-template-columns: 1fr; }
}

/* ── Services ───────────────────────────────────────────── */
.services-section {
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--hairline);
}
.services-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
}
.services-label-col {
  position: sticky;
  top: 100px;
  align-self: start;
}
.services-label-col .section-display {
  font-size: clamp(32px, 4vw, 56px);
  margin-bottom: 24px;
}

.svc-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left .35s cubic-bezier(.2,.7,.2,1);
}
.svc-row:first-child { border-top: 1px solid var(--hairline); }
.svc-row:hover { padding-left: 8px; }
.svc-num {
  font-family: var(--t-sans);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--hairline-s);
  line-height: 1;
  letter-spacing: -0.04em;
}
.svc-body {}
.svc-name {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--fg);
}
.svc-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.svc-stamp {
  font-family: var(--t-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 6px;
}
@media (max-width: 880px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-label-col { position: static; }
  .svc-row { grid-template-columns: 48px 1fr; }
  .svc-stamp { grid-column: 2; }
}

/* ── Work tiles ─────────────────────────────────────────── */
.work-section {
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--hairline);
}
.work-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--bg-card);
  isolation: isolate;
  border: 1px solid var(--hairline);
}
.tile.tall { aspect-ratio: 3 / 4; }
.tile.wide { aspect-ratio: 16 / 9; }
.tile-canvas {
  position: absolute;
  inset: 0;
}
.tile:hover .tile-canvas { transform: scale(1.03); }

.tile-canvas.c-dash { background: linear-gradient(145deg, #1a1e2e, #111525); }
.tile-canvas.c-dash::before {
  content: ""; position: absolute; inset: 12% 10% auto 10%; height: 7%;
  background: var(--fg); border-radius: 4px; opacity: 0.7;
}
.tile-canvas.c-dash::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 30%; bottom: 14%;
  background:
    linear-gradient(to right, var(--fg) 0 18%, transparent 18%) 0 12% / 100% 6px no-repeat,
    linear-gradient(to right, var(--fg) 0 32%, transparent 32%) 0 28% / 100% 6px no-repeat,
    linear-gradient(to right, var(--fg) 0 56%, transparent 56%) 0 44% / 100% 6px no-repeat,
    linear-gradient(to right, var(--fg) 0 42%, transparent 42%) 0 60% / 100% 6px no-repeat,
    rgba(240,238,232,.04);
  opacity: .35;
  border-radius: 6px;
}

.tile-canvas.c-system { background: linear-gradient(145deg, #1b3a2f, #0e2019); }
.tile-canvas.c-system::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(199,212,206,.15) 6px, transparent 7px) 0 0 / 80px 80px,
    radial-gradient(circle at 25% 30%, rgba(199,212,206,.08) 2px, transparent 3px) 40px 40px / 80px 80px;
}
.tile-canvas.c-system::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 38%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(199,212,206,.3);
  border-radius: 12px;
  background:
    linear-gradient(rgba(199,212,206,.2), rgba(199,212,206,.2)) center/30% 2px no-repeat,
    linear-gradient(rgba(199,212,206,.2), rgba(199,212,206,.2)) center/2px 30% no-repeat;
}

.tile-canvas.c-mobile { background: #0c0d14; }
.tile-canvas.c-mobile::before {
  content: ""; position: absolute;
  left: 50%; top: 12%; bottom: 12%;
  width: 36%;
  transform: translateX(-50%);
  background: #1a1e2e;
  border-radius: 20px;
  border: 1px solid var(--hairline-s);
}
.tile-canvas.c-mobile::after {
  content: ""; position: absolute;
  left: 50%; top: 20%; bottom: 20%;
  width: 26%;
  transform: translateX(-50%);
  background:
    linear-gradient(to right, var(--fg) 0 60%, transparent 60%) 0 0 / 100% 8px no-repeat,
    linear-gradient(to right, rgba(240,238,232,.35) 0 80%, transparent 80%) 0 14px / 100% 5px no-repeat,
    linear-gradient(180deg, var(--accent) 30%, var(--accent) 30%) 0 48% / 100% 25% no-repeat;
  opacity: 0.7;
}

.tile-canvas.c-flow { background: var(--bg-2); }
.tile-canvas.c-flow::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(240,238,232,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(240,238,232,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.tile-canvas.c-flow::after {
  content: ""; position: absolute; inset: 18% 14%;
  background:
    radial-gradient(circle at 12% 30%, var(--fg) 8px, transparent 9px),
    radial-gradient(circle at 50% 70%, var(--accent) 14px, transparent 15px),
    radial-gradient(circle at 88% 26%, var(--fg) 8px, transparent 9px),
    linear-gradient(to right, transparent 49.5%, rgba(240,238,232,.2) 49.5% 50.5%, transparent 50.5%);
  opacity: 0.6;
}

.tile-canvas.c-stripes { background: linear-gradient(145deg, #2a1608, #1a0d03); }
.tile-canvas.c-stripes::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg,
    rgba(217,119,87,.12) 0 12px,
    transparent 12px 24px);
}
.tile-canvas.c-stripes::after {
  content: ""; position: absolute; inset: 20% 14%;
  border: 1.5px solid rgba(217,119,87,.4);
  border-radius: 8px;
}
.tile-canvas.c-graph { 
    background: url(arkern_work_sample.jpg) center; 
}
.tile-meta {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
  color: var(--fg);
}
.tile-title {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
.tile-tag {
  font-family: var(--t-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: .6;
  display: block;
  margin-bottom: 6px;
}
.tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .3s;
  white-space: nowrap;
}
.tile:hover .tile-cta { transform: translateY(0); opacity: 1; }

.tile.t-1 { grid-column: span 6; }
.tile.t-2 { grid-column: span 6; }
.tile.t-3 { grid-column: span 4; }
.tile.t-4 { grid-column: span 4; }
.tile.t-5 { grid-column: span 4; }
.tile.t-6 { grid-column: span 12; }
@media (max-width: 880px) {
  .tile.t-1, .tile.t-2, .tile.t-3, .tile.t-4, .tile.t-5, .tile.t-6 { grid-column: span 12; }
}

/* ── Clients ────────────────────────────────────────────── */
.clients {
  padding: clamp(56px, 8vw, 96px) 0;
}
.clients h3 {
  font-family: var(--t-sans);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--fg);
  line-height: 1.2;
}
.client-logos {
    width: 100%;
    opacity: 80%;
}
.clients-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
.clients-label {
  font-family: var(--t-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.8;
}
.clients-label .marker { color: var(--accent); display: block; margin-bottom: 6px; }
.clients-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  align-items: center;
}
.client {
  font-weight: 600;
  font-size: clamp(16px, 1.5vw, 22px);
  letter-spacing: -0.02em;
  color: var(--fg);
  opacity: .35;
  transition: opacity .2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.client:hover { opacity: .8; }
.client::before {
  content: "";
  width: 7px; height: 7px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}
.client.sq::before { border-radius: 1px; }
.client.dm::before { transform: rotate(45deg); border-radius: 1px; }
.client.ln::before { border-radius: 1px; height: 2px; width: 12px; }
@media (max-width: 720px) {
  .clients-row { grid-template-columns: 1fr; }
}

/* ── CTA Closer ─────────────────────────────────────────── */
.closer {
  padding: clamp(80px, 14vw, 160px) 0;
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.closer-eyebrow {
  font-family: var(--t-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.closer-eyebrow::before {
  content: ""; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
}
.closer-headline {
  font-family: var(--t-sans);
  font-size: clamp(40px, 8vw, 120px);
  line-height: 0.97;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin: 0 0 48px;
}
.closer-headline .em {
  color: var(--accent);
}

/* ── Footer ─────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--hairline);
  padding: clamp(40px, 6vw, 80px) 0 0;
  overflow: hidden;
  position: relative;
}

/* Big wordmark behind footer */
.foot-wordmark {
  font-family: var(--t-sans);
  font-weight: 700;
  font-size: clamp(120px, 22vw, 380px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgb(85 85 85);
  user-select: none;
  text-align: center;
  margin-top: 40px;
  display: block;
}

.foot-top {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.foot-brand .brand-name { font-size: 24px; }
.foot-tag {
  font-family: var(--t-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 12px;
}
.foot-cta-block h3 {
  font-family: var(--t-sans);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 24px;
}
.foot-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, transform .2s;
}
.foot-cta:hover { background: #c06848; transform: translateY(-2px); }
.foot-cta .arrow { display: inline; }

.foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
}
.foot-col h4 {
  font-family: var(--t-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-col a, .foot-col p {
  display: block;
  color: rgba(240,238,232,0.55);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}
.foot-col a:hover { color: var(--fg); }

.foot-meta {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
  font-family: var(--t-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.foot-meta a { color: var(--muted); text-decoration: none; }
.foot-meta a:hover { color: var(--fg); }

@media (max-width: 880px) {
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-meta { flex-direction: column; gap: 8px; }
}

/* ── Tweaks panel ───────────────────────────────────────── */
.tweaks {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 260px;
  background: var(--bg-card);
  color: var(--fg);
  border: 1px solid var(--hairline-s);
  border-radius: 12px;
  padding: 14px;
  z-index: 100;
  box-shadow: 0 24px 48px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.3);
  font-family: var(--t-sans);
  display: none;
}
.tweaks.open { display: block; }
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.tweaks-title {
  font-family: var(--t-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
}
.tweaks-close {
  background: transparent; border: none; cursor: pointer;
  width: 22px; height: 22px;
  color: var(--muted);
  padding: 0;
}
.tweaks-close:hover { color: var(--fg); }
.tweaks-sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.tweaks-sec:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.tweaks-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .15s, border-color .15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.on { border-color: var(--fg); }
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: rgba(255,255,255,.06);
  padding: 3px;
  border-radius: 7px;
}
.seg button {
  padding: 5px 8px;
  background: transparent;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-family: var(--t-sans);
  color: var(--fg);
  cursor: pointer;
}
.seg button.on { background: rgba(255,255,255,.1); font-weight: 500; }

.desktop-br { display: block; }

@media (max-width: 720px) {
  .desktop-br { display: none; }
}
