/* ============================================================
   WeAreGroup — design system
   Direction: brand book on ink-black paper, gold foil, editorial.
   Type: Instrument Serif (display) / Instrument Sans (UI)
         JetBrains Mono (meta, indices, numbers)
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #08090b;
  --bg-2: #0b0d10;
  --surface: #111419;
  --raised: #171b21;

  --line: rgba(237, 240, 245, 0.09);
  --line-strong: rgba(237, 240, 245, 0.18);

  --text: #eef0f3;
  --text-2: #a9b0ba;
  --muted: #7e8592;

  --gold: #d8b661;
  --gold-soft: #e8cd85;
  --gold-ink: #141208;

  --cream: #f2eee3;
  --cream-ink: #17181b;

  --positive: #4cc38a;
  --negative: #e5484d;

  --font-ui: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur: 200ms;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

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

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 96px; }
.section--tight { padding-block: 64px; }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--cream);
  color: var(--cream-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- type ---------- */
.display,
.display-sm {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

.display { font-size: clamp(2.75rem, 5.4vw, 4.5rem); }
.display-sm { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; }

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 34rem;
}

.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.gold { color: var(--gold); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- eyebrow / signature ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  flex: none;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.eyebrow--start::after { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--cream);
  color: var(--cream-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--primary:hover { background: #fff; }

.btn--gold {
  background: var(--gold);
  color: var(--gold-ink);
}
.btn--gold:hover { background: var(--gold-soft); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--raised); border-color: var(--line-strong); }

.btn--sm { height: 36px; padding: 0 14px; font-size: 0.8125rem; }

.btn--text {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
}
.btn--text:hover { color: var(--gold); }

.btn__arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark { height: 26px; width: auto; }
.brand__name {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.875rem;
  transition: color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  margin-inline-start: 8px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { padding: 16px var(--gutter) 24px; display: grid; gap: 4px; }
.mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: var(--text-2);
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding-block: 80px 96px; }

.hero--image {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 86vh, 780px);
  padding-block: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__media { position: absolute; inset: -24px; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: blur(1.5px) saturate(0.85) brightness(0.9);
  transform: scale(1.02);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.96) 0%, rgba(8, 9, 11, 0.86) 42%, rgba(8, 9, 11, 0.52) 100%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.55) 0%, rgba(8, 9, 11, 0.35) 45%, rgba(8, 9, 11, 0.92) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-block: 96px; }
.hero--image .hero__title { max-width: 18ch; }
.hero--image .hero__lead { max-width: 46ch; color: #c9cfd8; }

.hero__title { margin-block: 24px 0; }
.hero__lead { margin-top: 24px; }
.hero__actions { margin-top: 32px; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(237, 240, 245, 0.14);
  max-width: 640px;
}
.stat__value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- brand sheet ---------- */
.brandsheet {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.brandsheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 16px;
}
.brandsheet__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brandsheet__label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
}
.brandsheet__count { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.logo-row { overflow: hidden; }
.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 90s linear infinite;
}
.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track { animation-play-state: paused; }

.logo-tile {
  flex: none;
  width: 152px;
  height: 64px;
  margin-right: 8px;
}
.logo-tile img { max-height: 28px; max-width: 112px; }
.brand-tile {
  display: grid;
  place-items: center;
  height: 64px;
  padding: 8px;
  background: rgba(237, 240, 245, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.brand-tile img { max-height: 26px; max-width: 88px; width: auto; object-fit: contain; opacity: 0.78; transition: opacity var(--dur) var(--ease); }
.brand-tile:hover img { opacity: 1; }
.brandsheet__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 4px 2px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}
.brandsheet--wide .brand-tile { height: 72px; }

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; width: auto; }
  .logo-marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .logo-tile[data-clone] { display: none; }
}

/* ---------- section head ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 48px;
  align-items: end;
  margin-top: 16px;
}
.section-head__title { max-width: 22ch; }

/* ---------- about ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.fact__k { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.fact__v { margin-top: 6px; font-size: 0.9375rem; color: var(--text); }

/* ---------- index list (expertise) ---------- */
.index-list { margin-top: 40px; border-top: 1px solid var(--line); }
.index-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) 24px;
  gap: 24px;
  align-items: baseline;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur-fast) var(--ease);
}
.index-row:hover { background: var(--surface); }
.index-row--two { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.index-row__title { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; }
.index-row__desc { color: var(--text-2); font-size: 0.9375rem; }
.index-row__arrow { color: var(--muted); transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.index-row:hover .index-row__arrow { color: var(--gold); transform: translateX(3px); }

/* ---------- article cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.post-card:hover { border-color: var(--line-strong); background: var(--raised); }
.post-card__media { aspect-ratio: 16 / 10; background: var(--raised); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.post-card__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em; }
.post-card__excerpt { color: var(--text-2); font-size: 0.875rem; flex: 1; }
.post-card__meta { display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: end;
}
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
.cta-panel .display-sm { max-width: 18ch; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.7fr)) minmax(0, 1fr);
  gap: 48px;
  padding-block: 64px 48px;
}
.footer-brand__desc { margin-top: 16px; color: var(--muted); font-size: 0.875rem; max-width: 32ch; }
.footer-heading { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text-2); font-size: 0.875rem; transition: color var(--dur-fast) var(--ease); }
.footer-links a:hover { color: var(--text); }
.footer-contact { display: grid; gap: 10px; color: var(--text-2); font-size: 0.875rem; }
.footer-contact a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- page head ---------- */
.page-head { padding-block: 72px 56px; border-bottom: 1px solid var(--line); }
.page-head__row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: end;
  margin-top: 16px;
}
.page-head__lead { color: var(--text-2); font-size: 1rem; max-width: 38ch; }

/* ---------- prose ---------- */
.prose { font-size: 1rem; line-height: 1.75; color: var(--text-2); max-width: 68ch; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.2; color: var(--text); margin-top: 40px; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.0625rem; font-weight: 500; color: var(--text); margin-top: 32px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--text); border-bottom: 1px solid var(--gold); }
.prose ul, .prose ol { padding-left: 20px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.4;
}
.prose img { border-radius: var(--radius-lg); }
.prose code { font-family: var(--font-mono); font-size: 0.85em; background: var(--raised); padding: 2px 6px; border-radius: var(--radius-xs); }

/* ---------- service rows (list page) ---------- */
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) 24px;
  gap: 24px;
  padding: 32px 8px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background-color var(--dur-fast) var(--ease);
}
.service-row:first-child { border-top: 1px solid var(--line); }
.service-row:hover { background: var(--surface); }
.service-row__title { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.service-row__headline { margin-top: 6px; color: var(--text-2); font-size: 0.875rem; }
.service-row__desc { color: var(--text-2); font-size: 0.9375rem; }
.service-row__deliverables { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}
.service-row__arrow { color: var(--muted); padding-top: 2px; transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.service-row:hover .service-row__arrow { color: var(--gold); transform: translateX(3px); }

/* ---------- service detail ---------- */
.detail-block { padding-block: 72px; border-bottom: 1px solid var(--line); }
.detail-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
}
.detail-quote {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--text);
}
.feature-list { display: grid; gap: 0; }
.feature-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.9375rem;
}
.feature-item__mark { color: var(--gold); font-family: var(--font-mono); font-size: 0.75rem; padding-top: 3px; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.team-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.team-card__photo { aspect-ratio: 4 / 5; background: var(--raised); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter var(--dur) var(--ease); }
.team-card:hover .team-card__photo img { filter: grayscale(0); }
.team-card__body { padding: 16px; }
.team-card__name { font-size: 0.9375rem; font-weight: 500; }
.team-card__role { margin-top: 2px; color: var(--muted); font-size: 0.8125rem; }
.team-card__links { margin-top: 12px; display: flex; gap: 12px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.team-card__links a:hover { color: var(--gold); }

/* ---------- blog list / filters ---------- */
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.search-form { display: flex; gap: 8px; max-width: 420px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.8125rem;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip-link:hover { color: var(--text); border-color: var(--line-strong); }
.chip-link.is-active { color: var(--gold); border-color: rgba(216, 182, 97, 0.45); }
.chip-link__count { margin-left: 6px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.input,
.textarea,
select.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: 0.9375rem/1.5 var(--font-ui);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.input:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--raised);
}
.textarea { min-height: 140px; resize: vertical; }
.field__error { color: var(--negative); font-size: 0.75rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .field--full { grid-column: 1 / -1; }
.form-note { color: var(--muted); font-size: 0.75rem; }
.alert {
  border: 1px solid var(--line);
  border-left: 2px solid var(--positive);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-2);
  font-size: 0.875rem;
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; padding-block: 64px; }
.contact-aside { display: grid; gap: 0; align-content: start; }
.contact-item { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item__k { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.contact-item__v { margin-top: 6px; color: var(--text); font-size: 0.9375rem; }
.contact-item__v a:hover { color: var(--gold); }

/* ---------- empty state ---------- */
.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}
.empty__title { font-family: var(--font-display); font-size: 1.5rem; }
.empty__text { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- pagination ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager__pages { display: flex; gap: 4px; }
.pager__link {
  min-width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-2);
  border: 1px solid transparent;
}
.pager__link:hover { background: var(--surface); color: var(--text); }
.pager__link.is-current { border-color: var(--line-strong); color: var(--text); }
.pager__link.is-disabled { opacity: 0.4; }

/* ---------- blog detail ---------- */
.article-head { padding-block: 64px 40px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.article-cover { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article-body { padding-block: 48px; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.related { border-top: 1px solid var(--line); padding-block: 64px; }

/* ---------- 404 ---------- */
.notfound {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(620px, calc(100vh - 160px), 900px);
  padding-block: 96px;
  overflow: hidden;
}
.notfound__media { position: absolute; inset: -20px; }
.notfound__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(0.9) brightness(0.82);
}
.notfound__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.94) 0%, rgba(8, 9, 11, 0.72) 42%, rgba(8, 9, 11, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.5) 0%, rgba(8, 9, 11, 0.18) 45%, rgba(8, 9, 11, 0.9) 100%);
}
.notfound__content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}
.notfound__code {
  font-family: var(--font-ui);
  font-size: clamp(7rem, 18vw, 14rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--gold);
}

/* ---------- misc ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--line); }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }

/* ---------- entrance (one, short) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 480ms var(--ease) both; }
  .rise-1 { animation-delay: 60ms; }
  .rise-2 { animation-delay: 120ms; }
  .rise-3 { animation-delay: 180ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero { padding-block: 56px 72px; }
  .hero--image { padding-block: 0; min-height: 0; }
  .hero__inner { padding-block: 72px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .section-head__title { max-width: none; }
  .cta-panel { grid-template-columns: 1fr; align-items: start; }
  .cta-panel__actions { justify-content: flex-start; }
  .detail-block__grid { grid-template-columns: 1fr; gap: 40px; }
  .page-head__row { grid-template-columns: 1fr; gap: 24px; }
  .article-body { grid-template-columns: 1fr; gap: 40px; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav__actions .btn { display: none; }
  .nav { gap: 16px; }
  .nav__actions { margin-left: auto; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .section { padding-block: 64px; }
  .hero__inner { padding-block: 56px; }
  .notfound { min-height: 0; padding-block: 56px; }
  .notfound__scrim {
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.86) 0%, rgba(8, 9, 11, 0.55) 38%, rgba(8, 9, 11, 0.94) 100%);
  }
  .hero__stats { grid-template-columns: 1fr; gap: 16px; }
  .brandsheet { padding: 16px; }
  .brand-tile { height: 56px; }
  .brand-tile img { max-height: 22px; max-width: 74px; }
  .logo-tile { width: 128px; }
  .logo-tile img { max-height: 24px; max-width: 96px; }
  .post-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .index-row, .service-row { grid-template-columns: minmax(0, 1fr) 24px; }
  .index-row--two { grid-template-columns: minmax(0, 1fr); }
  .index-row__desc, .service-row__desc-block { grid-column: 1 / 2; }
  .index-row__arrow, .service-row__arrow { grid-column: 2 / 3; grid-row: 1; }
  .service-row__desc-block { margin-top: 8px; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 40px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: 1fr; }
  .search-form { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 32px; }
  .article-body { padding-block: 32px; }
}

@media (max-width: 480px) {
  .actions { gap: 12px; }
  .btn { width: 100%; }
  .actions .btn--text { width: auto; }
  .team-grid { grid-template-columns: 1fr; }
}
