/* ============================================================
   MonteMachining — Precision CNC machining
   Theme: professional black + precision cyan
   ============================================================ */

:root {
  --bg:        #0A0A0B;
  --bg-2:      #0E0F13;
  --surface:   #14151A;
  --surface-2: #1B1C23;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);

  --text:      #F5F6F7;
  --muted:     #97A0AB;
  --muted-2:   #6B7480;

  --accent:    #38BDF8;
  --accent-2:  #22D3EE;
  --accent-ink:#06121A;
  --accent-soft: rgba(56,189,248,0.12);

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-mono:    'Space Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --section-pad: clamp(5rem, 10vw, 8.5rem);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.05vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

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

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

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.hl {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 60%, #818cf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- buttons ---------- */
.btn {
  --btn-pad-y: 0.85rem; --btn-pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--f-display); font-weight: 600; font-size: .92rem;
  letter-spacing: .02em; line-height: 1; white-space: nowrap;
  border-radius: 3px; cursor: pointer; position: relative;
  transition: transform .35s var(--ease), background .35s var(--ease),
              border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn--sm { --btn-pad-y: .6rem; --btn-pad-x: 1.1rem; font-size: .85rem; }
.btn--block { display: flex; width: 100%; }

.btn--solid {
  background: linear-gradient(100deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 8px 30px -12px rgba(56,189,248,.6);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(56,189,248,.75); }

.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__mark { width: 40px; height: 40px; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.05); }
.brand__word {
  font-family: var(--f-display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: .16em;
}
.brand__word-accent { color: var(--accent); }

.nav__links { display: flex; align-items: center; gap: 1.35rem; }
.nav__links > a:not(.btn) {
  font-size: .92rem; color: var(--muted); position: relative; padding: .3rem 0;
  transition: color .3s;
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--accent); transition: width .35s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--text); }
.nav__links > a:not(.btn):hover::after { width: 100%; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.035);
}
.lang-switch a {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em;
  padding: .38rem .55rem; color: var(--muted);
  transition: color .25s, background .25s;
}
.lang-switch a:hover, .lang-switch a.is-active {
  color: var(--accent-ink); background: var(--accent);
}
.lang-switch--drawer { width: max-content; margin-block: .2rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .35s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__drawer {
  display: none; flex-direction: column; gap: 1.2rem;
  padding: 1.5rem var(--pad) 2rem;
  background: rgba(10,10,11,.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__drawer.open { display: flex; }
.nav__drawer a:not(.btn) { color: var(--muted); font-size: 1.05rem; padding: .3rem 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62) contrast(1.08) saturate(.92); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 75% 25%, transparent 0%, rgba(10,10,11,.25) 45%, rgba(10,10,11,.85) 100%),
    linear-gradient(180deg, rgba(10,10,11,.55) 0%, transparent 30%, rgba(10,10,11,.5) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,10,11,.85) 0%, transparent 55%);
}
.hero__content { position: relative; z-index: 2; max-width: 900px; padding-top: 80px; padding-bottom: 80px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5.25rem); line-height: 1.02; letter-spacing: -.025em;
  margin-bottom: 1.5rem;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted);
  max-width: 620px; margin-bottom: 2.4rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__cue {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px;
}
.hero__cue span { width: 3px; height: 8px; background: var(--accent); border-radius: 2px; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- stats ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}
.stat { padding-inline: 1rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat__num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: .25rem;
}
.stat__unit { font-size: .9rem; color: var(--muted); font-weight: 500; }
.stat__label { margin-top: .6rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- sections ---------- */
.section { padding-block: var(--section-pad); position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.kicker {
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.kicker::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: .6rem; }
.section__title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -.02em;
  margin-bottom: 1.1rem;
}
.section__lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  position: relative; padding: 2.2rem 1.9rem 2rem;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: 8px; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, var(--accent-soft), transparent 55%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 24px 60px -30px rgba(0,0,0,.8); }
.card:hover::before { opacity: 1; }

.card__num {
  position: absolute; top: 1.5rem; right: 1.6rem;
  font-family: var(--f-mono); font-size: .85rem; color: var(--muted-2); letter-spacing: .1em;
}
.card__icon { width: 52px; height: 52px; color: var(--accent); margin-bottom: 1.5rem; }
.card h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; margin-bottom: .7rem; letter-spacing: -.01em; }
.card p { color: var(--muted); margin-bottom: 1.4rem; }
.card__list { display: flex; flex-direction: column; gap: .55rem; }
.card__list li { position: relative; padding-left: 1.3rem; font-size: .92rem; color: var(--text); }
.card__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 1px; background: var(--accent); }
.card__link {
  display: inline-flex; margin-top: .3rem;
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .05em;
  color: var(--accent); text-transform: uppercase;
}
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.cards--compact .card { min-height: 220px; }

/* ---------- showreel / media ---------- */
.showreel { display: flex; flex-direction: column; gap: 1.25rem; }
.showreel__feature { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.showreel__feature video { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: brightness(.94) contrast(1.05) saturate(.95); }
.showreel__feature figcaption {
  position: absolute; left: 1.2rem; bottom: 1rem; z-index: 2;
  font-size: .82rem; color: var(--text);
  background: rgba(10,10,11,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: .4rem .8rem; border-radius: 4px; border: 1px solid var(--line);
}
.showreel__feature figcaption .mono { color: var(--accent); }

.grid--media { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.media {
  position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 1; background: var(--surface);
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9) contrast(1.06) saturate(.9); transition: transform .6s var(--ease), filter .6s var(--ease); }
.media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(10,10,11,.7) 100%);
}
.media:hover img, .media:hover video { transform: scale(1.05); filter: brightness(1) contrast(1.08) saturate(1); }
.media figcaption {
  position: absolute; left: .8rem; bottom: .7rem; z-index: 2;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.media figcaption::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: .5rem; vertical-align: middle; border-radius: 50%; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.process::before {
  content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent);
}
.step { padding-right: 1.5rem; position: relative; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--accent);
  font-size: .8rem; margin-bottom: 1.3rem; position: relative; z-index: 2;
}
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__text p { color: var(--muted); margin-bottom: 1.1rem; }
.about__text .btn { margin-top: 1rem; }
.about__panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 10px; padding: 1.8rem;
}
.about__row { display: flex; justify-content: space-between; gap: 1.5rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.about__row:last-child { border-bottom: none; }
.about__row .muted { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; align-self: center; }
.about__row span:last-child { text-align: right; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact__list li { display: flex; flex-direction: column; gap: .25rem; }
.contact__list .mono { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.contact__list a { font-size: 1.1rem; transition: color .3s; }
.contact__list a:hover { color: var(--accent); }

.contact__form {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.2rem);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 5px;
  padding: .85rem 1rem; font-family: var(--f-body); font-size: .98rem;
  transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 110px; }
.form__note { margin-top: .9rem; font-size: .9rem; color: var(--accent); min-height: 1.2em; }
.form__hint { margin-top: .6rem; font-size: .78rem; color: var(--muted-2); }
.form__note--err { color: #f87171; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 3rem; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr); gap: 2rem; align-items: start; }
.footer__brand { max-width: 520px; }
.footer__brand p { color: var(--muted); margin-top: 1rem; font-size: .94rem; }
.footer__links { display: flex; gap: 1rem 1.4rem; justify-content: flex-end; flex-wrap: wrap; }
.footer__links a { font-size: .9rem; color: var(--muted); transition: color .3s; }
.footer__links a:hover { color: var(--accent); }
.footer__seo {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.footer__col {
  display: flex; flex-direction: column; gap: .55rem;
  background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.1rem;
}
.footer__col p { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: .15rem; }
.footer__col a { color: var(--muted); font-size: .9rem; transition: color .3s; }
.footer__col a:hover { color: var(--text); }
.footer__meta { grid-column: 1 / -1; font-family: var(--f-mono); font-size: .78rem; color: var(--muted-2); }
.footer__meta a { color: var(--muted); }
.footer__meta a:hover { color: var(--accent); }

/* ---------- SEO link hubs ---------- */
.section--tight { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.hub-groups { display: flex; flex-direction: column; gap: 2rem; }
.hub-group h3 {
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 600;
  margin-bottom: 1rem;
}
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.link-card {
  display: flex; flex-direction: column; gap: .45rem;
  min-height: 170px; padding: 1.25rem;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 8px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.link-card:hover { transform: translateY(-4px); border-color: var(--line-2); background: linear-gradient(180deg, var(--surface-2), var(--bg-2)); }
.link-card span { color: var(--accent); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.link-card strong { font-family: var(--f-display); font-size: 1.08rem; line-height: 1.2; }
.link-card p { color: var(--muted); font-size: .9rem; }
.blog-hub {
  display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2rem;
}
.blog-hub a {
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); border-radius: 999px; padding: .55rem .8rem;
  font-size: .86rem; transition: color .3s, border-color .3s, background .3s;
}
.blog-hub a:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .grid--media { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .process::before { display: none; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 0; }
  .stat { padding-inline: 1rem; }
  .stat:nth-child(2) { border-left: none; padding-left: 0; }
  .stat:nth-child(3) { border-top: 1px solid var(--line); padding-left: 0; border-left: none; padding-top: 1.6rem; }
  .stat:nth-child(4) { border-top: 1px solid var(--line); padding-top: 1.6rem; }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .grid--media { grid-template-columns: 1fr 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .brand__word { font-size: .9rem; letter-spacing: .1em; }
  .brand__mark { width: 34px; height: 34px; }
}

/* ---------- faq ---------- */
.faq .section__head { text-align: center; margin-inline: auto; }
.faq__list { display: flex; flex-direction: column; gap: .75rem; max-width: 820px; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  overflow: hidden; transition: border-color .35s var(--ease), background .35s var(--ease);
}
.faq__item[open] { border-color: var(--line-2); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.4rem;
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--f-mono); color: var(--accent); font-size: 1.2rem; line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--accent); }
.faq__a { padding: 0 1.4rem 1.25rem; color: var(--muted); }
.faq__a a { color: var(--accent); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- blog: index cards ---------- */
.blog__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.post-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.post-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 24px 60px -30px rgba(0,0,0,.8); }
.post-card__media { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.92) contrast(1.05) saturate(.92); }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.post-card__meta { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.post-card__title { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.01em; }
.post-card__excerpt { color: var(--muted); font-size: .95rem; }
.post-card__more { color: var(--accent); font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; margin-top: .3rem; }

/* ---------- blog: single post ---------- */
.post { padding-top: clamp(7rem, 12vw, 9rem); }
.post__container { max-width: 760px; }
.post__crumb { font-size: .74rem; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 1.6rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.post__crumb a:hover { color: var(--accent); }
.post__crumb span { opacity: .5; }
.post__head { margin-bottom: 2rem; }
.post__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -.025em; margin-bottom: 1rem; }
.post__lede { color: var(--muted); font-size: 1.15rem; margin-bottom: 1.2rem; }
.post__meta { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); display: flex; gap: .6rem; flex-wrap: wrap; }
.post__foot { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.post-related {
  margin-top: 2.5rem; padding: 1.2rem; border: 1px solid var(--line);
  border-radius: 8px; background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.post-related h2 {
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 600;
  margin-bottom: 1rem;
}
.post-related .blog-hub { margin-bottom: 0; }

/* ---------- landing pages ---------- */
.landing-hero {
  position: relative; min-height: min(760px, 78svh);
  display: flex; align-items: center; overflow: hidden;
  padding-top: 76px;
}
.landing-hero__media { position: absolute; inset: 0; z-index: 0; }
.landing-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) contrast(1.08) saturate(.9); }
.landing-hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.62) 48%, rgba(10,10,11,.35) 100%),
    linear-gradient(180deg, rgba(10,10,11,.2), var(--bg) 100%);
}
.landing-hero__inner { position: relative; z-index: 2; max-width: 900px; padding-block: 5rem; }
.landing-hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1.03; letter-spacing: -.025em;
  max-width: 900px; margin-bottom: 1.4rem;
}
.landing-hero__lede {
  color: var(--muted); font-size: clamp(1.06rem, 1.6vw, 1.26rem);
  max-width: 690px; margin-bottom: 2.1rem;
}
.landing-proof { background: var(--bg-2); border-block: 1px solid var(--line); }
.landing-proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.landing-proof__item { padding: 1.4rem 1rem; border-left: 1px solid var(--line); }
.landing-proof__item:first-child { border-left: none; }
.landing-proof__item span {
  display: block; color: var(--accent); font-size: .72rem; letter-spacing: .12em;
  margin-bottom: .45rem;
}
.landing-proof__item strong { font-family: var(--f-display); font-weight: 600; line-height: 1.25; }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.landing-copy { display: flex; flex-direction: column; gap: 2rem; }
.landing-copy__section h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.12;
  margin-bottom: 1rem;
}
.landing-copy__section p { color: var(--muted); margin-bottom: 1rem; max-width: 76ch; }
.landing-aside {
  position: sticky; top: 100px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem;
}
.landing-aside h2 {
  font-family: var(--f-display); font-size: 1.18rem; font-weight: 600;
  margin-bottom: 1rem;
}
.landing-aside dl { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.4rem; }
.landing-aside div { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.landing-aside div:last-child { border-bottom: none; padding-bottom: 0; }
.landing-aside dt {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: .25rem;
}
.landing-aside dd { color: var(--text); }
.landing-cta { background: var(--bg); }
.landing-cta__inner {
  border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: linear-gradient(135deg, var(--surface), rgba(56,189,248,.08));
}
.landing-cta__inner .btn { margin-top: 1.3rem; }

@media (max-width: 980px) {
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
  .landing-grid { grid-template-columns: 1fr; }
  .landing-aside { position: static; }
}

@media (max-width: 760px) {
  .footer__seo { grid-template-columns: 1fr; }
  .landing-proof__grid { grid-template-columns: 1fr 1fr; }
  .landing-proof__item:nth-child(odd) { border-left: none; }
  .landing-proof__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .blog__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .link-grid { grid-template-columns: 1fr; }
  .link-card { min-height: auto; }
  .landing-hero { min-height: auto; }
  .landing-hero__inner { padding-block: 3.2rem; }
  .landing-proof__grid { grid-template-columns: 1fr; }
  .landing-proof__item { border-left: none; border-top: 1px solid var(--line); }
  .landing-proof__item:first-child { border-top: none; }
  .post__foot .btn { width: 100%; }
}

/* ---------- markdown prose ---------- */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.prose > p:first-child { color: var(--text); font-size: 1.12rem; }
.prose p { margin: 0 0 1.15rem; color: var(--muted); }
.prose h2 { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.01em; margin: 2.6rem 0 1rem; }
.prose h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; margin: 2rem 0 .8rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.3rem; color: var(--muted); }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--accent); }
.prose blockquote { border-left: 2px solid var(--accent); padding: .2rem 0 .2rem 1.2rem; margin: 1.5rem 0; color: var(--text); font-style: italic; }
.prose code { font-family: var(--f-mono); font-size: .9em; background: var(--surface-2); padding: .12em .4em; border-radius: 4px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; overflow-x: auto; margin: 1.4rem 0; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: 8px; border: 1px solid var(--line); margin: 1.6rem 0; width: 100%; height: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose th { font-family: var(--f-display); color: var(--text); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
