/* Devel, Inc. — editorial AI agency aesthetic
   Inspired by Aura's "Agentic AI Development Template"
   Cream + black + lime accent, Space Grotesk display, Inter body */

:root {
  --bg: #efead8;
  --bg-soft: #e8e2cf;
  --bg-paper: #f5f1e3;
  --bg-dark: #0a0a0a;
  --bg-dark-2: #141414;
  --ink: #0a0a0a;
  --ink-2: #1f1f1f;
  --muted: #4a4a44;
  --muted-2: #7a7a72;
  --line: #d6cfb6;
  --line-2: #c4bd9f;
  --line-dark: #1e1e1e;
  --accent: #4caf50;
  --accent-2: #5fbf63;
  --accent-ink: #0a0a0a;
  --container: 1320px;
  --gutter: 32px;
  --font-display: "Space Grotesk", "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;
  --tracked: 0.18em;
  --tight: -0.04em;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tight);
  line-height: 0.95;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-size: clamp(2.6rem, 8.5vw, 7rem);
}
.display-md { font-size: clamp(2.2rem, 6vw, 4.5rem); }
.display-sm { font-size: clamp(1.6rem, 4vw, 2.6rem); }

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; color: var(--ink-2); }
.muted { color: var(--muted); }

ul { padding-left: 1.1em; }
li { margin: .3em 0; color: var(--ink-2); }

/* Tracked microtype */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracked);
  color: var(--ink);
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--accent);
  flex-shrink: 0;
}
.eyebrow.no-mark::before { display: none; }
.eyebrow.dot::before { border-radius: 50%; }

.tracked { text-transform: uppercase; letter-spacing: var(--tracked); font-size: 12px; font-weight: 500; }

.serif { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -0.01em; }

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 720px) { :root { --gutter: 22px; } }

/* Sections */
section { padding: 120px 0; position: relative; }
section.tight { padding: 60px 0; }
@media (max-width: 720px) { section { padding: 72px 0; } }

/* Cross / plus marker */
.cross {
  position: relative;
  width: 22px; height: 22px;
  display: inline-block;
  flex-shrink: 0;
}
.cross::before, .cross::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.cross::before { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.cross::after { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.cross.accent::before, .cross.accent::after { background: var(--accent); }
.cross.large { width: 32px; height: 32px; }
.cross.thin::before { width: 1px; } .cross.thin::after { height: 1px; }

/* Top bar */
.topbar {
  background: var(--bg-dark);
  color: #d8d8d8;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.topbar .swatch { width: 8px; height: 8px; background: var(--accent); flex-shrink: 0; }
.topbar a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.topbar a:hover { color: #fff; border-color: #fff; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 234, 216, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand sup { font-size: 11px; font-weight: 500; margin-left: 4px; position: relative; top: -0.6em; }
.brand .slash { color: var(--accent); }
.brand img { height: 22px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: center;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.has-menu { position: relative; }
.menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-paper);
  border: 1px solid var(--line);
  padding: 22px;
  min-width: 560px;
  opacity: 0;
  pointer-events: none;
  /* Delay the hide so the cursor can cross the gap without immediately closing */
  transition: opacity .18s ease .12s, transform .18s ease .12s;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
/* Invisible bridge so the cursor can travel from trigger to menu without losing hover */
.menu::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: -16px;
  height: 18px;
}
.has-menu:hover .menu, .has-menu:focus-within .menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  /* Show immediately, no delay */
  transition: opacity .18s ease, transform .18s ease;
}
.menu a {
  display: block;
  padding: 12px 14px;
  letter-spacing: normal;
  text-transform: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.menu a::after { display: none; }
.menu a:hover { background: var(--bg); }
.menu a strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.menu a span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 400; }

.nav-cta { display: flex; align-items: center; gap: 10px; justify-self: end; }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 9px 11px;
  cursor: pointer;
  border-radius: 0;
}
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-arrow::after {
  content: "↗";
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  margin-left: 2px;
  transition: transform .2s ease;
}
.btn-arrow:hover::after { transform: translate(3px, -3px); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-accent:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* HERO */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
}
.hero-left {
  padding: 56px var(--gutter) 56px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.hero-left .container-edge { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.hero-left-inner {
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-left-top { padding-top: 60px; }
.hero-left-mid { margin-top: auto; padding-bottom: 8px; }
.hero-right {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
  min-height: 720px;
}
.hero-right img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.85);
}
.hero-right::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.18) 0%, rgba(10,10,10,0.05) 40%, rgba(10,10,10,0.5) 100%);
}
.hero-right .overlay {
  position: absolute;
  top: 60px; right: 40px;
  text-align: right;
  color: #fff;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.7;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.hero-right .overlay .swatch { width: 9px; height: 9px; background: var(--accent); margin-bottom: 4px; }
.hero-right .cross-mark { position: absolute; bottom: 60px; left: 40px; z-index: 1; }
.hero-right .cross-mark .cross::before, .hero-right .cross-mark .cross::after { background: #fff; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6.8vw, 5.6rem);
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
}
.hero h1 em { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -0.02em; text-transform: none; color: var(--ink); }

.hero-lead {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--ink);
  max-width: 46ch;
}
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracked);
  color: var(--muted);
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-left { padding: 40px var(--gutter); }
  .hero-left-inner { padding-left: 0; }
  .hero-right { min-height: 360px; }
  .hero-left-top { padding-top: 0; }
}

/* Compact variant — used on subpages with the split layout */
.hero.compact .hero-grid { min-height: 560px; }
.hero.compact .hero-right { min-height: 560px; }
.hero.compact h1 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); max-width: 18ch; }
.hero.compact .hero-left-top { padding-top: 36px; }
.hero.compact .hero-left-mid { padding-bottom: 24px; }
@media (max-width: 980px) {
  .hero.compact .hero-right { min-height: 320px; }
}

/* PAGE HERO (smaller, single column) */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 18px 0 24px;
  max-width: 18ch;
  text-wrap: balance;
}
.page-hero .lead {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  line-height: 1.7;
  max-width: 56ch;
  color: var(--ink);
}
.page-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Section header — editorial */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.section-head .head-left { display: flex; flex-direction: column; gap: 14px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.8vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
  max-width: 18ch;
}
.section-head .head-right { display: flex; flex-direction: column; gap: 18px; padding-bottom: 4px; }
.section-head p { font-size: 16px; color: var(--ink-2); margin: 0; max-width: 56ch; line-height: 1.55; }
.section-head .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

/* Grid layouts */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid > * { background: var(--bg); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Editorial card cell */
.cell {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  position: relative;
  min-height: 280px;
  transition: background .2s ease;
}
.cell:hover { background: var(--bg-paper); }
.cell .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.cell h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.cell p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.cell .cell-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracked); color: var(--ink); }
.cell .cell-foot .arrow { display: inline-block; transition: transform .2s ease; font-size: 16px; }
.cell:hover .cell-foot .arrow { transform: translate(4px, -4px); }
.cell .ico { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: var(--accent); border-radius: 0; font-size: 18px; }
.cell .ico iconify-icon { font-size: 18px; }

.cell.dark { background: var(--bg-dark); color: #d8d8d8; }
.cell.dark h3 { color: #fff; }
.cell.dark p { color: #aaa; }
.cell.dark:hover { background: var(--bg-dark-2); }
.cell.dark .num, .cell.dark .cell-foot { color: #d8d8d8; }
.cell.dark .ico { background: var(--accent); color: var(--ink); }

/* Big number / stats row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat-row .stat {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-row .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-row .l {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracked);
  color: var(--muted);
  margin-top: 8px;
}
@media (max-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* Marquee / logos */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
}
.marquee .track {
  display: flex;
  gap: 56px;
  align-items: center;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee .item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.marquee .item iconify-icon { font-size: 26px; }
.marquee .item .dot { width: 6px; height: 6px; background: var(--accent); display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Two-column editorial */
.editorial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.editorial-row .col-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.editorial-row h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0 0 24px;
}
@media (max-width: 880px) { .editorial-row { grid-template-columns: 1fr; gap: 32px; } }

/* Dark section */
.section-dark {
  background: var(--bg-dark);
  color: #d8d8d8;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #aaa; }
.section-dark .section-head { border-color: var(--line-dark); }
.section-dark .section-head p { color: #aaa; }
.section-dark .grid, .section-dark .stat-row { background: var(--line-dark); border-color: var(--line-dark); }
.section-dark .grid > *, .section-dark .stat-row .stat { background: var(--bg-dark); color: #d8d8d8; }
.section-dark .cell:hover { background: var(--bg-dark-2); }
.section-dark .cell p { color: #aaa; }
.section-dark .stat-row .l { color: #888; }
.section-dark .eyebrow { color: #fff; }
.section-dark .marquee { border-color: var(--line-dark); }
.section-dark .marquee .item { color: #fff; }

/* CTA block — full-width band */
.cta-band {
  background: var(--bg-dark);
  color: #fff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.035em;
  line-height: 0.92;
  color: #fff;
  max-width: 18ch;
  margin: 0 0 32px;
}
.cta-band h2 em { font-family: "Playfair Display", serif; font-style: italic; font-weight: 500; color: var(--accent); }
.cta-band p { color: #b5b5b5; max-width: 56ch; font-size: 15px; line-height: 1.6; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.cta-band .cross-tl { position: absolute; top: 40px; left: var(--gutter); }
.cta-band .cross-tr { position: absolute; top: 40px; right: var(--gutter); }
.cta-band .cross-bl { position: absolute; bottom: 40px; left: var(--gutter); }
.cta-band .cross-br { position: absolute; bottom: 40px; right: var(--gutter); }
.cta-band .cross::before, .cta-band .cross::after { background: rgba(255,255,255,0.4); }

/* Process steps */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.process .step {
  background: var(--bg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.process .step .n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  background: var(--accent);
  align-self: flex-start;
  padding: 4px 10px;
}
.process .step h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.process .step p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 980px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 920px; margin: 0 auto; }
details {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
details:first-child { border-top: 1px solid var(--line); }
summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  transition: transform .3s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 16px 0 0; font-size: 15px; max-width: 64ch; }

/* Footer */
footer.site-footer {
  background: var(--bg-dark);
  color: #aaa;
  padding: 100px 0 40px;
  position: relative;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(4rem, 14vw, 13rem);
  letter-spacing: -0.045em;
  line-height: 0.85;
  color: #fff;
  margin: 0 0 60px;
}
.footer-wordmark em { font-family: "Playfair Display", serif; font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: -0.03em; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  border-top: 1px solid var(--line-dark);
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 {
  font-family: var(--font-sans);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracked);
  font-weight: 600;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin: 10px 0; color: #aaa; }
.site-footer a { color: #aaa; font-size: 14px; transition: color .15s ease; }
.site-footer a:hover { color: var(--accent); }
.site-footer .tagline { margin: 0 0 22px; max-width: 36ch; color: #aaa; font-size: 14px; line-height: 1.55; }
.site-footer .legal {
  border-top: 1px solid var(--line-dark);
  margin-top: 56px;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracked);
  color: #888;
}
.site-footer .legal a { color: #ccc; }

/* Forms */
form.lead-form { display: grid; gap: 24px; max-width: 720px; }
form.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { form.lead-form .row { grid-template-columns: 1fr; } }
form.lead-form label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracked);
  color: var(--ink);
  margin-bottom: 8px;
}
form.lead-form input, form.lead-form select, form.lead-form textarea {
  width: 100%;
  padding: 14px 0 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
}
form.lead-form input:focus, form.lead-form select:focus, form.lead-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
form.lead-form textarea { min-height: 100px; resize: vertical; }
form.lead-form select {
  appearance: none;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%230a0a0a' fill='none' stroke-width='1.5'/></svg>") no-repeat right 4px center;
}
.field-group { display: flex; flex-wrap: wrap; gap: 8px; }
.field-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: transparent;
  margin: 0;
}
.field-group input { display: none; }
.field-group label:has(input:checked) { background: var(--accent); border-color: var(--accent); }

/* Check list */
ul.check { list-style: none; padding: 0; }
ul.check li { padding-left: 32px; position: relative; margin: 14px 0; font-size: 15px; color: var(--ink-2); }
ul.check li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 18px; height: 1.5px;
  background: var(--accent);
}

/* Inline arrow links */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracked);
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px;
  transition: color .2s ease, border-color .2s ease;
}
.link::after { content: "↗"; font-family: var(--font-display); transition: transform .2s ease; }
.link:hover { color: var(--ink); border-color: var(--accent); }
.link:hover::after { transform: translate(3px, -3px); }

.link-light { color: #fff; border-color: #fff; }
.link-light:hover { color: var(--accent); border-color: var(--accent); }

/* Pill tag */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
}
.pill .dot { width: 6px; height: 6px; background: var(--accent); display: inline-block; border-radius: 50%; }
.pill.dark { color: #fff; border-color: rgba(255,255,255,0.3); }

/* Animations — progressive enhancement */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
html.js .reveal { opacity: 0; }
html.js .reveal.in { animation: fadeUp .8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
html.js .reveal-scale.in { animation: scaleIn .8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal-scale { opacity: 1; animation: none !important; }
  .marquee .track { animation: none; }
}

/* Mobile nav */
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bg-paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { padding: 16px var(--gutter); display: block; }
  .nav-links a::after { display: none; }
  .menu { position: static; opacity: 1; pointer-events: auto; transform: none; min-width: 0; padding: 0 var(--gutter) 14px; grid-template-columns: 1fr; background: transparent; border: 0; }
  .menu a { padding: 10px 0; }
  .has-menu > a { font-weight: 600; }
  .nav-cta .btn:not(.btn-solid):not(.btn-accent) { display: none; }
}

/* Spacing utilities */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-4 { margin-bottom: 32px; } .mb-6 { margin-bottom: 48px; }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.accent { color: var(--accent); }

/* Section divider — full-bleed cinematic band */
.section-divider {
  width: 100%;
  height: 380px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.section-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) contrast(1.05) brightness(0.88);
  display: block;
}
.section-divider::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.05) 30%, rgba(10,10,10,0.05) 70%, rgba(10,10,10,0.45) 100%);
  pointer-events: none;
  z-index: 1;
}
.section-divider .divider-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.section-divider .divider-overlay > * { pointer-events: auto; }
.section-divider .divider-overlay .container { width: 100%; }
.section-divider blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  max-width: 18ch;
  text-wrap: balance;
}
.section-divider blockquote em {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-transform: none;
}
.section-divider cite {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracked);
  color: #cfcfcf;
}
.section-divider cite::before {
  content: "";
  width: 24px; height: 1.5px;
  background: var(--accent);
}
/* Crop variants for variety across pages */
.section-divider.pos-left img    { object-position: 18% center; }
.section-divider.pos-lc img      { object-position: 35% center; }
.section-divider.pos-center img  { object-position: center center; }
.section-divider.pos-rc img      { object-position: 65% center; }
.section-divider.pos-right img   { object-position: 85% center; }

@media (max-width: 980px) { .section-divider { height: 320px; } }
@media (max-width: 720px) { .section-divider { height: 240px; } }

/* Code block (used in product preview cards) */
.codeblock {
  background: var(--bg-dark);
  color: #ddd;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  padding: 24px;
  border: 1px solid var(--line-dark);
  position: relative;
  overflow-x: auto;
}
.codeblock .k { color: var(--accent); }
.codeblock .s { color: #f4c542; }
.codeblock .c { color: #777; }
.codeblock .v { color: #9cdcfe; }
.codeblock .ln { color: #555; padding-right: 12px; user-select: none; }
.codeblock > div { white-space: nowrap; }

/* Mini chart bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 12px 0; }
.bars .bar { flex: 1; background: var(--accent); }
.bars .bar.dim { background: var(--line-2); }
