/* ==================================================================
   Onyxx Tech — public site design system (dark, brand-led)
   ==================================================================
   Built from the brand rather than from a template:

   - Near-black base, off-white text, ONE accent: the Onyxx cyan, used for
     actions, links on hover and the circuit nodes. No glow, no gradients
     on text, no coloured headline words.
   - The motif is the logo itself: thin traces with 45° kinks ending in
     ring nodes. It appears as list bullets, section markers and the art
     behind the closing call to action.
   - Stars appear in ONE place, the homepage hero, using the original Onyxx
     galaxy (lighter, paused when off screen, still for reduced motion).
   - Archivo (slightly expanded) for headings, Inter for text.
   - Every word that matters to Google is in the HTML. */

:root {
  --paper: #0d0f12;
  --paper-2: #12151a;
  --card: #161a20;
  --ink: #eef1f4;
  --ink-2: #b8c0c9;
  --muted: #8a929c;
  --line: #262b33;
  --accent: #2fd6f5;
  --accent-hover: #6fe3f8;
  --accent-ink: #061317;
  --accent-soft: rgba(47, 214, 245, 0.12);
  --dark: #08090b;
  --dark-2: #111317;
  --on-dark: #eef1f4;
  --on-dark-muted: #8a929c;
  --ok: #3ecf8e;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --section: clamp(72px, 10vw, 136px);

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------- type ---------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: inherit;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }

.eyebrow { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin: 0 0 18px; }

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

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid var(--ink);
  font: 600 0.98rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-outline-light { background: transparent; border-color: #3a414b; color: var(--on-dark); }
.btn-outline-light:hover { border-color: var(--on-dark); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.text-link:hover { color: var(--accent); }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 18, 0.88);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.header-cta { margin-left: 8px; min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-header .header-cta { display: none; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav a { font-size: 1.15rem; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"], .nav a:hover { background: none; color: var(--accent); }
  .nav .nav-mobile-cta { display: flex; margin-top: 18px; border-bottom: 0; color: var(--accent-ink); }
  .nav .nav-mobile-cta:hover { color: var(--accent-ink); background: var(--accent-hover); }
  .site-header.nav-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
@media (min-width: 961px) { .nav .nav-mobile-cta { display: none; } }

/* ---------------- sections ---------------- */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .lead, .section-dark .muted { color: var(--on-dark-muted); }
.section-dark .eyebrow { color: var(--on-dark-muted); }
.section-alt { background: var(--paper-2); }

.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------------- hero ---------------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }
.hero h1 { max-width: 12.5em; }
.hero .lead { margin-top: 28px; }
.hero .btn-row { margin-top: 36px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 44px 0 0; padding: 0; list-style: none;
  font-size: 0.95rem; color: var(--ink-2);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

.hero-showcase { display: block; margin-top: clamp(48px, 7vw, 88px); }
.hero-showcase .work-media { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .hero-showcase .work-media { aspect-ratio: 4 / 3; } .hero-showcase .work-media img { object-position: left center; } }

/* Browser-frame screenshot. */
.frame {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0,0,0,.8);
}
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-bar span { margin-left: 12px; font-size: 0.75rem; color: var(--muted); }
.frame img { width: 100%; }

/* ---------------- clients strip ---------------- */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; }
.clients-label { font-size: 0.9rem; color: var(--muted); margin-right: 8px; }
.clients ul { display: contents; list-style: none; }
.clients li { font-family: var(--font-display); font-stretch: 105%; font-weight: 600; font-size: 1.05rem; color: var(--ink-2); }

/* ---------------- services ---------------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.service {
  display: block; padding: 36px 32px 36px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
}
.service:nth-child(odd) { border-right: 1px solid var(--line); }
.service:nth-child(even) { padding-left: 32px; padding-right: 0; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--ink-2); margin: 0 0 14px; }
.service .text-link { font-size: 0.92rem; }
.service-primary h3::after { content: "Most requested"; display: inline-block; vertical-align: middle; margin-left: 12px; font: 600 0.72rem/1 var(--font-body); letter-spacing: 0; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
@media (hover: hover) { a.service:hover h3 { color: var(--accent); } }
@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(odd), .service:nth-child(even) { padding: 28px 0; border-right: 0; }
  .service-primary h3::after { display: table; margin: 10px 0 0; }
}

/* ---------------- work ---------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.work-card { text-decoration: none; display: block; }
.work-card .frame { transition: transform .35s ease, box-shadow .35s ease; }
.work-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease; }
.work-meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 18px; }
.work-meta h3 { font-size: 1.3rem; }
.work-meta span { color: var(--muted); font-size: 0.92rem; white-space: nowrap; }
.work-card p { color: var(--ink-2); margin: 8px 0 0; max-width: 34em; }
@media (hover: hover) {
  .work-card:hover .work-media img { transform: scale(1.025); }
  .work-card:hover h3 { color: var(--accent); }
}
.work-grid .work-wide { grid-column: 1 / -1; }
.work-grid .work-wide .work-media { aspect-ratio: 21 / 9; }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-meta { flex-direction: column; gap: 4px; }
  .work-grid .work-wide .work-media { aspect-ratio: 16 / 10; }
}
.section-dark .frame { border-color: var(--line); background: var(--dark-2); }
.section-dark .frame-bar { background: var(--dark-2); border-color: var(--line); }
.section-dark .frame-bar i { background: #343a43; }
.section-dark .work-meta span, .section-dark .work-card p { color: var(--on-dark-muted); }

/* ---------------- reasons ---------------- */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.reason { padding: 0 28px; border-left: 1px solid var(--line); }
.reason:first-child { padding-left: 0; border-left: 0; }
.reason svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 22px; }
.reason h3 { font-size: 1.2rem; margin-bottom: 10px; }
.reason p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }
@media (max-width: 960px) {
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
  .reason:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .reasons { grid-template-columns: 1fr; gap: 32px; }
  .reason { padding: 0; border-left: 0; }
}

/* ---------------- process ---------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 30px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--accent); line-height: 1; margin-bottom: 26px; letter-spacing: -0.03em; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------------- founders ---------------- */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.founder { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.founder img { width: 160px; height: 180px; object-fit: cover; object-position: center 20%; border-radius: 10px; }
.founder h3 { font-size: 1.35rem; }
.founder .role { color: var(--muted); margin: 4px 0 14px; font-size: 0.95rem; }
.founder a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.founder a:hover { color: var(--accent); }
.founder a svg { width: 18px; height: 18px; color: #1f9d55; }
@media (max-width: 860px) { .founders { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .founder { grid-template-columns: 110px 1fr; gap: 16px; } .founder img { width: 110px; height: 130px; } }

/* ---------------- FAQ ---------------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 80px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 26px; color: var(--ink-2); max-width: 44em; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------------- CTA band ---------------- */
.cta-band { padding: clamp(72px, 10vw, 128px) 0; }
.cta-band h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 13em; letter-spacing: -0.035em; }
.cta-band .lead { margin-top: 24px; }
.cta-band .btn-row { margin-top: 36px; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.98rem; }
.cta-contacts a { text-decoration: none; color: var(--on-dark); }
.cta-contacts a:hover { color: var(--accent); }
.cta-contacts span { display: block; color: var(--on-dark-muted); font-size: 0.85rem; margin-bottom: 2px; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 64px 0 36px; font-size: 0.95rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font-body); font-stretch: 100%; font-size: 0.85rem; font-weight: 600; color: var(--on-dark); letter-spacing: 0; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--on-dark); }
.footer-brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 26em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--on-dark); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------- WhatsApp button ---------------- */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.wa-fab-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: #1f9d55; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.45);
}
.wa-fab-btn svg { width: 28px; height: 28px; }
.wa-fab-menu {
  position: absolute; right: 0; bottom: 68px; width: 240px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.35);
}
.wa-fab-menu[hidden] { display: none; }
.wa-fab-menu p { margin: 4px 8px 10px; font-size: 0.85rem; color: var(--muted); }
.wa-fab-menu a { display: block; padding: 10px 8px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.wa-fab-menu a:hover { background: var(--paper-2); }
.wa-fab-menu a small { display: block; font-weight: 400; color: var(--muted); }

/* ---------------- reveal ---------------- */
/* Opt-in and progressive: content is visible unless JS has run AND the
   visitor has not asked for reduced motion. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ==================================================================
   Inner pages
   ================================================================== */

/* ---------------- page hero ---------------- */
.page-hero { padding: clamp(44px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); max-width: 14em; }
.page-hero .lead { margin-top: 24px; }
.page-hero .btn-row { margin-top: 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 28px; padding: 0; font-size: 0.88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------------- principles ---------------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.principle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.principle h3 { font-size: 1.25rem; margin-bottom: 12px; }
.principle p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }

/* ---------------- checklist ---------------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%;
  border: 2px solid var(--accent); background: transparent;
}
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }

/* ---------------- split block ---------------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px 80px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------------- type cards (website types) ---------------- */
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.type-card { border-top: 2px solid var(--ink); padding-top: 20px; }
.type-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.type-card p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }
@media (max-width: 960px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }
@media (max-width: 520px) { .type-grid { grid-template-columns: 1fr; } }

/* ---------------- service overview list ---------------- */
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px 32px; align-items: baseline; padding: 36px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.service-row h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.service-row p { margin: 0; color: var(--ink-2); }
.service-row .arrow { width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: all .2s ease; }
.service-row .arrow svg { width: 18px; height: 18px; }
@media (hover: hover) { .service-row:hover h2 { color: var(--accent); } .service-row:hover .arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; } .service-row .arrow { display: none; } }

/* ---------------- prose (blog posts, case studies, legal) ---------------- */
.prose { max-width: 720px; font-size: 1.08rem; line-height: 1.75; color: var(--ink-2); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--ink); margin-top: 2.2em; letter-spacing: -0.02em; line-height: 1.15; }
.prose h3 { font-size: 1.25rem; color: var(--ink); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--paper-2); }
.prose .small, .prose small { font-size: 0.88rem; color: var(--muted); }

.article-head { max-width: 860px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 0.93rem; margin-top: 24px; }
.article-cover { margin: clamp(36px, 5vw, 56px) 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 64px; }
.article-aside { position: sticky; top: 100px; align-self: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.article-aside h3 { font-size: 1.15rem; margin-bottom: 10px; }
.article-aside p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; max-width: 720px; } }

/* ---------------- blog list ---------------- */
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.post-card { text-decoration: none; display: block; }
.post-card .cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1200 / 630; background: var(--paper-2); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card .meta { color: var(--muted); font-size: 0.9rem; margin: 18px 0 8px; }
.post-card h2, .post-card h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; }
.post-card p { color: var(--ink-2); margin: 10px 0 0; }
@media (hover: hover) { .post-card:hover h2, .post-card:hover h3 { color: var(--accent); } .post-card:hover .cover img { transform: scale(1.02); } }
.post-list .post-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.post-list .post-featured .meta { margin-top: 0; }
.post-list .post-featured h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
@media (max-width: 860px) { .post-list, .post-list .post-featured { grid-template-columns: 1fr; } .post-list .post-featured { gap: 0; } .post-list .post-featured .meta { margin-top: 18px; } }

/* ---------------- case study ---------------- */
.case-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-facts dt { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.case-facts dd { margin: 0; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 0.82rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
@media (max-width: 760px) { .case-facts { grid-template-columns: 1fr 1fr; } }
.case-media { margin-top: clamp(32px, 5vw, 56px); }
.case-media .work-media { aspect-ratio: auto; max-height: 720px; }
.case-media .work-media img { height: auto; max-height: 720px; object-fit: contain; background: var(--paper-2); }

/* ---------------- contact ---------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px 72px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 8px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 50px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.form-status { font-size: 0.95rem; font-weight: 500; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: #ff8a80; }
.form-status.is-pending { color: var(--muted); }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 18px 0 0; }
.form-note a { color: inherit; }
.contact-direct { display: grid; gap: 16px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; text-decoration: none; display: block; }
.contact-card span { display: block; color: var(--muted); font-size: 0.88rem; margin-bottom: 4px; }
.contact-card strong { font-size: 1.1rem; font-weight: 600; }
a.contact-card:hover { border-color: var(--ink); }

/* ---------------- related ---------------- */
.related-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.work-group-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 28px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ==================================================================
   Brand motif + hero sky
   ================================================================== */

/* A short circuit trace above each section heading, drawn from the logo. */
.section-head > div:first-child::before,
.related-head > div:first-child::before {
  content: ""; display: block; width: 132px; height: 20px; margin-bottom: 22px;
  background: url("/images/trace.svg") left center / contain no-repeat;
}

/* The X's traces behind the closing call to action. */
.cta-band { position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: 50%; width: 640px; height: 640px;
  transform: translateY(-50%); background: url("/images/circuit-x.svg") center / contain no-repeat;
  opacity: .5; pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band::after { width: 420px; height: 420px; right: -200px; opacity: .3; } }

/* Homepage hero: the Onyxx sky. Canvas sits behind the content; the page
   reads the same without it. */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero::after {
  /* Fade the sky into the page so the hero has no hard bottom edge. */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--paper)); pointer-events: none;
}

/* Cards pick up the accent on hover, the same way a node lights up. */
@media (hover: hover) {
  .work-card:hover .frame, a.contact-card:hover, .post-card:hover .cover { border-color: var(--accent); }
}
.frame { transition: border-color .25s ease; }
.post-card .cover { transition: border-color .25s ease; }

/* A project without a genuine screenshot yet. Plain text, never a mockup:
   the site only shows real screens of real work. */
.shot-pending { display: flex; align-items: flex-end; padding: clamp(20px, 3vw, 32px); background: var(--paper-2);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; }
.shot-pending strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.02em; color: var(--ink); }
.shot-pending span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
