/* ==========================================================================
   Loom Forge Studios
   Shared design tokens, panel primitives and layout for the whole site.
   Ground: deep space. Accent: the coral from the logomark. Type: bone.
   ========================================================================== */

:root {
  /* Ground */
  --void:      #05080B;
  --deep:      #0A0F14;
  --deep-2:    #0D141A;
  --panel:     #111A21;
  --panel-up:  #16222B;

  /* Rules */
  --line:      rgba(197, 214, 222, .15);
  --line-up:   rgba(197, 214, 222, .28);
  --line-hot:  rgba(243, 111, 82, .42);

  /* Ink. Contrast measured against --deep, not against a mid-tone. */
  --bone:      #E9E5D9;   /* 15.6:1  */
  --bone-dim:  #AFBAC1;   /*  9.1:1  */
  --mute:      #8394A0;   /*  5.6:1  */

  /* Brand */
  --coral:      #F36F52;  /* logomark coral */
  --coral-lift: #FF8A6E;  /* text accent on dark, 7.4:1 */
  --coral-deep: #C93E25;  /* reserved for fills that carry white */
  --teal:       #0F3B47;  /* logomark teal */
  --on-coral:   #120704;  /* near-black on coral fill, 8.4:1 */

  /* Type */
  --f-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --f-body:    "Barlow", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --shell:    1280px;
  --gutter:   clamp(20px, 4.4vw, 52px);
  --section:  clamp(64px, 9vw, 122px);

  /* Shape. One system: square corners, one cut on primary panels. */
  --cut:      14px;
  --clip:     polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));

  --ease:     cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--coral-lift); outline-offset: 3px; }

body {
  min-height: 100vh;
  background: var(--deep);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: clamp(15.5px, 15px + .12vw, 17px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Starfield's ground is never flat black. A faint field plus a vignette. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 620px at 78% -8%, rgba(243, 111, 82, .10), transparent 62%),
    radial-gradient(760px 520px at 8% 12%, rgba(15, 59, 71, .46), transparent 66%),
    linear-gradient(180deg, var(--deep-2), var(--deep) 42%, var(--void));
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 92px 92px;
  opacity: .32;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 12%, transparent 78%);
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--coral); color: var(--on-coral);
  padding: 12px 20px; font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- type ---------- */
.label {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--coral-lift);
}
.label--mute { color: var(--mute); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.04; }
h1 { font-size: clamp(2.15rem, 5.4vw, 4.05rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.65rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); letter-spacing: -.018em; }
.lede { font-size: clamp(1.02rem, .98rem + .3vw, 1.22rem); color: var(--bone-dim); max-width: 56ch; }
.prose p { color: var(--bone-dim); max-width: 68ch; }
.prose p + p { margin-top: 1.05em; }
.prose strong { color: var(--bone); font-weight: 600; }
.prose a { color: var(--coral-lift); text-underline-offset: 3px; }

/* ---------- panels ----------
   Two layers so the cut corner keeps a real 1px edge. The outer layer is the
   border colour; the inner layer is the fill. Both share the clip. */
.panel { background: var(--line-up); clip-path: var(--clip); padding: 1px; }
.panel__in { background: var(--panel); clip-path: var(--clip); height: 100%; padding: 26px; }
.panel--flat { background: var(--panel); border: 1px solid var(--line); }


/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; text-decoration: none; white-space: nowrap;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line-up); background: transparent; color: var(--bone);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: transform .18s var(--ease), background .18s, color .18s, border-color .18s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); border-color: var(--coral); color: var(--coral-lift); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--primary { background: var(--coral); border-color: var(--coral); color: var(--on-coral); font-weight: 600; }
.btn--primary:hover { background: var(--coral-lift); border-color: var(--coral-lift); color: var(--on-coral); }
.btn svg { width: 15px; height: 15px; flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 15, 20, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--f-display); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.brand small { display: block; font-family: var(--f-mono); font-size: 9px; letter-spacing: .17em; text-transform: uppercase; color: var(--mute); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 14px; text-decoration: none; color: var(--bone-dim);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  transition: color .16s, background .16s;
}
.nav__links a:hover { color: var(--bone); background: rgba(197, 214, 222, .06); }
.nav__links a[aria-current="page"] { color: var(--coral-lift); }
.nav__cta { margin-left: 8px; }
.nav__burger { display: none; background: none; border: 1px solid var(--line-up); padding: 9px 12px; color: var(--bone); cursor: pointer; }

/* ---------- nav dropdowns ----------
   Opened by hover, by keyboard focus, and by tap. The `hidden` attribute is the
   single source of truth so the panel is inert to assistive tech when closed. */
.nav__group { position: relative; display: flex; align-items: center; }
.nav__top { display: inline-flex; align-items: center; gap: 5px; }
.nav__chev { width: 12px; height: 12px; flex: none; opacity: .55; transition: transform .2s var(--ease), opacity .16s; }
.nav__group[data-open="true"] .nav__chev { transform: rotate(180deg); opacity: 1; }
.nav__group[data-open="true"] > .nav__top { color: var(--bone); background: rgba(197, 214, 222, .06); }

.dd {
  position: absolute; top: 100%; left: -10px; z-index: 50;
  padding-top: 12px;                 /* bridges the gap so the pointer can travel */
  min-width: 340px;
}
.dd[hidden] { display: none; }
.dd__in {
  background: var(--panel-up);
  border: 1px solid var(--line-up);
  clip-path: var(--clip);
  padding: 8px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55);
}
.dd ul { display: grid; gap: 1px; list-style: none; margin: 0; padding: 0; }
.dd li a {
  display: block; padding: 11px 13px; text-decoration: none;
  font-family: var(--f-body); letter-spacing: normal; text-transform: none;
  transition: background .16s;
}
.dd li a:hover, .dd li a:focus-visible { background: rgba(243, 111, 82, .12); }
.dd li a[aria-current="page"] .dd__t { color: var(--coral-lift); }
.dd__t { display: block; font-family: var(--f-display); font-weight: 600; font-size: 14.5px; color: var(--bone); letter-spacing: -.012em; }
.dd__d { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--mute); }
.dd li a:hover .dd__t { color: var(--coral-lift); }
.dd__all {
  display: flex; align-items: center; gap: 7px; margin-top: 7px; padding: 11px 13px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-lift); text-decoration: none;
}
.dd__all:hover { background: rgba(243, 111, 82, .12); }
.dd__all svg { width: 13px; height: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .nav__group[data-open="true"] .dd__in { animation: dd-in .18s var(--ease) both; }
  @keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } }
}

/* ---------- sticky mobile CTA ---------- */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 12, 16, .94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-up);
  gap: 10px;
}
.mobile-cta .btn { flex: 1; min-width: 0; justify-content: center; padding: 13px 10px;
                   font-size: 11px; letter-spacing: .1em; overflow: hidden; text-overflow: ellipsis; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(44px, 6vw, 76px) 0; }
.section__head { max-width: 62ch; margin-bottom: 44px; }
.section__head h2 { margin-top: 12px; }
.section__head p { margin-top: 16px; color: var(--bone-dim); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 92px); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.hero h1 { margin-top: 16px; }
.hero .lede { margin-top: 20px; }
.hero__acts { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__promise { margin-top: 20px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 9px; }
.hero__promise svg { width: 14px; height: 14px; color: var(--coral-lift); flex: none; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 26px 22px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.stats span { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--mute); }

/* ---------- project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { grid-column: span 2; text-decoration: none; color: inherit; display: block; transition: transform .22s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card:hover .panel { background: var(--line-hot); }
.card:hover h3 { color: var(--coral-lift); }
.card--wide { grid-column: span 3; }
.card .panel__in { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 0; }
.card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-up); }
.card__img img { width: 100%; height: 100% !important; object-fit: cover; filter: saturate(.62) contrast(1.06) brightness(.82); transition: transform .5s var(--ease), filter .3s; }
.card:hover .card__img img { transform: scale(1.045); filter: saturate(.85) contrast(1.06) brightness(.92); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { transition: color .18s; }
.card p { color: var(--mute); font-size: 15px; }
.card__meta { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; }
.card__meta .go { color: var(--coral-lift); }
.status { color: var(--mute); }
.status--live { color: var(--coral-lift); }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.66) contrast(1.05) brightness(.84); }
.split h2 { margin-top: 12px; }
.split p { margin-top: 16px; color: var(--bone-dim); max-width: 52ch; }

/* Grid items default to min-width:auto, which lets one nowrap child push the
   whole column past the viewport. Every grid child here may shrink. */
.split > *, .hero__grid > *, .cards > *, .related > *, .stats > *, .case > * { min-width: 0; }

/* ---------- data list ---------- */
.dl { display: grid; grid-template-columns: auto 1fr; gap: 11px 22px; margin-top: 24px; align-items: baseline; }
.dl dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.dl dd { margin: 0; color: var(--bone); font-size: 15.5px; }

/* ---------- case studies ---------- */
.cases { display: grid; gap: 16px; }
.case {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 28px; align-items: center;
  padding: 24px 26px; border: 1px solid var(--line); text-decoration: none; color: inherit;
  background: rgba(17, 26, 33, .5);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.case:hover { border-color: var(--line-hot); background: var(--panel); transform: translateX(5px); }
.case:hover h3 { color: var(--coral-lift); }
.case img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.6) brightness(.8); }
.case p { color: var(--mute); font-size: 15px; margin-top: 6px; max-width: 62ch; }
.case__go { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-lift); white-space: nowrap; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 46px 22px 0; position: relative;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  letter-spacing: -.014em; transition: color .16s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--coral-lift); }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 1.5px solid var(--coral); border-bottom: 1.5px solid var(--coral);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq__a { padding: 0 46px 24px 0; color: var(--bone-dim); max-width: 74ch; }
.faq .faq__a p + p { margin-top: .9em; }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; background: var(--void); color: var(--bone);
  border: 1px solid var(--line-up); font-family: var(--f-body); font-size: 16px;
  transition: border-color .16s, background .16s;
}
.field input::placeholder, .field textarea::placeholder { color: #6E7D88; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--coral); background: #070B0E; outline: none; }
.field .help { font-size: 13.5px; color: var(--mute); }
.field .err { font-size: 13.5px; color: var(--coral-lift); display: none; }
.field[data-invalid] .err { display: block; }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--coral); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13.5px; color: var(--mute); }
.form__status { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; padding: 13px 16px; border: 1px solid var(--line-up); display: none; }
.form__status[data-state="sending"], .form__status[data-state="error"] { display: block; }
.form__status[data-state="error"] { border-color: var(--coral); color: var(--coral-lift); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 36px; background: rgba(5, 8, 11, .5); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.footer h4 { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; }
.footer a { text-decoration: none; color: var(--bone-dim); font-size: 15px; transition: color .16s; }
.footer a:hover { color: var(--coral-lift); }
.footer__brand p { margin-top: 14px; color: var(--mute); font-size: 14.5px; max-width: 34ch; }
.footer__bar { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* ---------- page header (interior pages) ---------- */
.phead { padding: clamp(44px, 5.5vw, 74px) 0 clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--line); }
.phead h1 { margin-top: 14px; max-width: 20ch; }
.phead .lede { margin-top: 18px; }
.crumbs { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: flex; gap: 9px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--mute); }
.crumbs a:hover { color: var(--coral-lift); }

/* ---------- related ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related a { text-decoration: none; color: inherit; display: block; border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.related a:hover { border-color: var(--line-hot); transform: translateY(-3px); }
.related a:hover h3 { color: var(--coral-lift); }
.related img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.6) brightness(.8); }
.related .rb { padding: 18px 20px 22px; }
.related h3 { font-size: 1.06rem; margin-top: 8px; transition: color .18s; }
.related p { color: var(--mute); font-size: 14px; margin-top: 6px; }

/* ---------- reveal ---------- */
.rev { opacity: 0; transform: translateY(18px); }
.rev.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .rev { transition: opacity .72s var(--ease), transform .72s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card, .card--wide { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dl { grid-template-columns: 1fr; gap: 3px 0; }
  .dl dt { white-space: normal; }
  .dl dd { margin-bottom: 12px; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav[data-open="true"] .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 72px;
    background: var(--deep-2); border-bottom: 1px solid var(--line-up); padding: 8px var(--gutter) 18px;
  }
  .nav[data-open="true"] .nav__links > a,
  .nav[data-open="true"] .nav__top { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav[data-open="true"] .nav__cta { margin: 12px 0 0; justify-content: center; border-bottom: 0; }

  /* Nested lists, not floating panels. The chevron toggles them. */
  .nav[data-open="true"] .nav__group { display: block; }
  .nav[data-open="true"] .nav__top--has { display: flex; justify-content: space-between; width: 100%; }
  .nav[data-open="true"] .nav__chev { width: 15px; height: 15px; }
  .nav[data-open="true"] .dd { position: static; min-width: 0; padding-top: 0; }
  .nav[data-open="true"] .dd__in { background: none; border: 0; clip-path: none; box-shadow: none; padding: 4px 0 10px 12px; }
  .nav[data-open="true"] .dd li a { padding: 10px 8px; border-left: 1px solid var(--line-up); }
  .nav[data-open="true"] .dd__all { margin-top: 4px; border-top: 0; padding-left: 8px; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
  .hero__grid, .split, .split--flip .split__media { grid-template-columns: 1fr; order: 0; }
  .split__media { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .card, .card--wide { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .case { grid-template-columns: 1fr; gap: 16px; }
  .case img { aspect-ratio: 16 / 7; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- part picker categories ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat { background: var(--deep); padding: 20px 22px; text-decoration: none; color: inherit; display: grid; gap: 6px; transition: background .18s; }
.cat:hover { background: var(--panel); }
.cat:hover .cat__l { color: var(--coral-lift); }
.cat__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--coral-lift); }
.cat__l { font-family: var(--f-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -.015em; transition: color .18s; }
.cat__l em { display: block; font-style: normal; font-family: var(--f-body); font-weight: 400; font-size: 14px; color: var(--mute); margin-top: 3px; line-height: 1.45; }
.cat__b { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: #6E7D88; }
@media (max-width: 900px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cats { grid-template-columns: 1fr; } }
