/* =============================================================
   aTekie — design system
   Hand-built, zero-dependency. Mostly-light, navy/charcoal
   technical accents, one restrained teal accent.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Ink / surfaces */
  --ink:        #0B1220;   /* deep navy near-black */
  --ink-2:      #111827;
  --ink-3:      #1F2937;
  --surface:    #FFFFFF;
  --surface-2:  #F7F8FA;   /* section alt */
  --surface-3:  #EEF1F5;
  --line:       #E4E8EE;
  --line-2:     #D5DBE4;

  /* Text */
  --text:       #111827;   /* body on light */
  --text-2:     #51607A;   /* muted (AA on white) */
  --text-3:     #6B7689;
  --text-inv:   #EAF0F7;   /* body on dark */
  --text-inv-2: #9FB0C7;

  /* Accent — engineered blue (from the ATEKIE brand mark) */
  --accent:        #1D4ED8;  /* AA on white for text/links */
  --accent-600:    #1E3A8A;  /* deep hover */
  --accent-bright: #2563EB;  /* vivid brand blue — buttons / the logo */
  --accent-400:    #3B82F6;  /* on dark surfaces */
  --accent-300:    #93B4FF;  /* bright on dark */
  --accent-soft: rgba(37,99,235,0.10);
  --accent-line: rgba(37,99,235,0.28);

  /* Effects */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --shadow:    0 6px 24px -8px rgba(16,24,40,.18), 0 2px 8px -4px rgba(16,24,40,.10);
  --shadow-lg: 0 24px 60px -20px rgba(11,18,32,.30);
  --ring:      0 0 0 3px rgba(37,99,235,.35);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* Layout */
  --maxw:    1160px;
  --maxw-sm: 760px;
  --gutter:  clamp(20px, 5vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.85rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); letter-spacing: -0.015em; }
p  { color: var(--text); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.32rem); color: var(--text-2); line-height: 1.6; }

.eyebrow {
  display: inline; max-width: 100%;
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-600);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: var(--accent-line); vertical-align: middle; margin-right: .55rem;
}
.eyebrow.is-light { color: var(--accent-300); }
.eyebrow.is-light::before { background: rgba(147,180,255,.45); }

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

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-sm { max-width: var(--maxw-sm); }
.section { padding-block: var(--section); }
.section--alt { background: var(--surface-2); }
.section--ink { background: var(--ink); color: var(--text-inv); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; }

.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .98rem; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ink-3); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--accent { background: var(--accent-bright); color: #fff; }
.btn--accent:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(37,99,235,.6); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost-light:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.textlink {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--accent);
}
.textlink .arrow { transition: transform .2s ease; }
.textlink:hover .arrow { transform: translateX(3px); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.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;
}

/* =============================================================
   Header / nav
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(16,24,40,.02); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 1rem; }
.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand__icon { width: 32px; height: 32px; flex: none; }
.brand__name { font-size: 1.04rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  position: relative;
  color: var(--text); font-weight: 500; font-size: .96rem;
  padding: .5rem .8rem; border-radius: 8px; transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--surface-3); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  height: 2px; width: 18px; background: var(--accent); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: .6rem; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2);
  border-radius: 10px; background: #fff; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after  { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__menu {
    position: fixed; inset: 70px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .8rem var(--gutter) 1.4rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__links a { padding: .85rem .4rem; font-size: 1.05rem; border-bottom: 1px solid var(--surface-2); }
  .nav__links a[aria-current="page"]::after { left: .4rem; bottom: .55rem; transform: none; }
  .nav__cta { margin-top: 1rem; flex-direction: column; align-items: stretch; }
  .nav__cta .btn { width: 100%; }
  .nav__toggle { display: inline-flex; }
}

/* =============================================================
   Hero
   ============================================================= */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(16,24,40,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,24,40,.045) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 0%, #000 0%, transparent 65%);
  mask-image: radial-gradient(120% 90% at 80% 0%, #000 0%, transparent 65%);
}
.hero__glow {
  position: absolute; width: 620px; height: 620px; right: -120px; top: -220px;
  background: radial-gradient(closest-side, rgba(37,99,235,.16), transparent 70%);
  border-radius: 50%;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__inner > * { min-width: 0; }
.hero__copy { max-width: 620px; }
.hero h1 { margin-top: 1.1rem; }
.hero .lead { margin-top: 1.4rem; }
.hero .btn-row { margin-top: 2rem; }
.hero__proof { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; align-items: center; }
.hero__proof .stat { display: flex; flex-direction: column; }
.hero__proof .stat b { font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; }
.hero__proof .stat span { font-size: .85rem; color: var(--text-2); }
.hero__proof .divider { width: 1px; height: 34px; background: var(--line-2); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 100%; }
}

/* Code/terminal visual card */
.codecard {
  background: var(--ink); border-radius: var(--radius-lg); max-width: 100%;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.06);
  overflow: hidden; font-family: var(--font-mono); color: var(--text-inv);
}
.codecard__bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.codecard__dot { width: 11px; height: 11px; border-radius: 50%; background: #36405a; }
.codecard__dot:nth-child(1){ background:#ff5f56; } .codecard__dot:nth-child(2){ background:#ffbd2e; } .codecard__dot:nth-child(3){ background:#27c93f; }
.codecard__file { margin-left: auto; font-size: .76rem; color: var(--text-inv-2); }
.codecard__body { padding: 1.1rem 1.25rem 1.35rem; font-size: .82rem; line-height: 1.85; overflow-x: auto; }
.codecard__body .ln { color: #46506b; user-select: none; margin-right: 1rem; }
.codecard .k { color: #7fdbff; } .codecard .s { color: #b6e3a4; } .codecard .f { color: #ffd479; }
.codecard .c { color: #5a647e; } .codecard .p { color: #e6edf6; } .codecard .a { color: var(--accent-300); }
.codecard__cursor { display:inline-block; width:8px; height:1.05em; background: var(--accent-300); vertical-align:-2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .codecard__cursor { animation: none; } }

/* =============================================================
   Cards
   ============================================================= */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem;
  border: 1px solid var(--accent-line);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-2); font-size: .98rem; }
.card .textlink { margin-top: 1rem; font-size: .92rem; }

a.card { color: inherit; display: block; }
a.card:hover h3 { color: var(--accent-600); }

/* Why / feature list */
.feature { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; }
.feature h3 { display: flex; align-items: baseline; gap: .7rem; }
.feature h3 .num { font-family: var(--font-mono); font-size: .85rem; color: var(--accent); font-weight: 600; }
.feature p { color: var(--text-2); margin-top: .5rem; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.5rem 0;
  border-top: 1px solid var(--line); align-items: start;
}
.step:first-child { border-top: 0; }
.step__num {
  counter-increment: step;
  font-family: var(--font-mono); font-weight: 600; font-size: .95rem;
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  display: grid; place-items: center; background: var(--ink); color: #fff;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--text-2); }

/* Tech credibility chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .85rem; color: var(--text-inv);
  padding: .55rem .9rem; border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; background: rgba(255,255,255,.03);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-300); }

/* Client cards */
.client {
  display: flex; flex-direction: column; gap: .35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem; transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.client:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
/* badge stacked above the name → clean alignment even when names wrap */
.client__mark {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.02rem; line-height: 1.3;
  letter-spacing: -0.01em; color: var(--ink);
  display: flex; flex-direction: column; align-items: flex-start; gap: .85rem;
  margin-bottom: .15rem;
}
.client__mark .glyph {
  width: 40px; height: 40px; border-radius: 11px; background: var(--ink); color: var(--accent-300);
  display: grid; place-items: center; font-size: 1.05rem; flex: none;
}
.client__url { font-family: var(--font-mono); font-size: .82rem; color: var(--text-2); }
.client p { color: var(--text-2); font-size: .95rem; }
.client .textlink { font-size: .9rem; margin-top: 1.1rem; }
/* compact roster cards (Work page grids): pin the link to a consistent bottom */
.grid-4 .client { min-height: 188px; }
.grid-4 .client .textlink { margin-top: auto; padding-top: .9rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; text-align: center; max-width: 720px; }
.cta-band__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(80% 120% at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(80% 120% at 50% 0%, #000, transparent 70%);
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--text-inv-2); margin-bottom: 2rem; font-size: 1.12rem; }
.cta-band .btn-row { justify-content: center; }

/* =============================================================
   Services (detail page)
   ============================================================= */
.service {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px);
  align-items: start; padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; }
.service__aside { position: sticky; top: 92px; }
.service__num { font-family: var(--font-mono); color: var(--accent); font-size: .85rem; font-weight: 600; }
.service h2 { margin: .5rem 0 1rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service__lead { color: var(--text-2); }
.service__icon {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent-300); margin-bottom: 1.2rem;
}
.service__icon svg { width: 28px; height: 28px; }
.spec { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.1rem; }
.spec:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.spec h4 { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-bottom: .5rem; }
.spec p { color: var(--text); }
.spec ul.ticks { display: grid; gap: .5rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; color: var(--text); align-items: start; }
.ticks li::before {
  content: ""; width: 18px; height: 18px; margin-top: .28rem; border-radius: 5px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--accent-line); flex: none;
}
@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; }
  .service__aside { position: static; }
}

/* =============================================================
   About
   ============================================================= */
.prose { max-width: 720px; }
.prose p { margin-top: 1.1rem; color: var(--text); font-size: 1.08rem; }
.prose p:first-child { margin-top: 0; }
.prose h2 { margin-top: 2.6rem; }
.value { padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.value h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.value p { color: var(--text-2); font-size: .96rem; }

/* Stat strip */
.statgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px,2.4vw,28px); }
.statgrid .stat b { font-size: clamp(1.8rem,3.2vw,2.4rem); color: #fff; display: block; letter-spacing: -0.02em; }
.statgrid .stat span { color: var(--text-inv-2); font-size: .92rem; }
@media (max-width: 720px){ .statgrid { grid-template-columns: repeat(2,1fr); } }

/* =============================================================
   Contact / forms
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .info-item { display: flex; gap: .9rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-info .info-item:first-of-type { border-top: 0; }
.contact-info .info-item .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; border: 1px solid var(--accent-line); }
.contact-info .info-item .ico svg { width: 21px; height: 21px; }
.contact-info h4 { font-size: .78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: .2rem; }
.contact-info .info-item a, .contact-info .info-item p { font-size: 1.05rem; color: var(--ink); font-weight: 500; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 38px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .45rem; color: var(--ink); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: .98rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff; box-shadow: var(--ring);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px){ .field-row { grid-template-columns: 1fr; } }
.field .hint { font-size: .82rem; color: var(--text-3); margin-top: .35rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

fieldset.checklist { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.1rem; }
fieldset.checklist legend { font-weight: 600; font-size: .9rem; padding: 0 .4rem; color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: .6rem; padding: .35rem 0; font-size: .96rem; color: var(--text-2); }
.check input { width: auto; margin-top: .28rem; accent-color: var(--accent); }

.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; display: none; }
.form-status.is-error { display: block; background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.form-status.is-ok { display: block; background: var(--accent-soft); color: var(--accent-600); border: 1px solid var(--accent-line); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d64545; }

/* =============================================================
   Breadcrumb
   ============================================================= */
.breadcrumb { font-size: .85rem; font-family: var(--font-mono); color: var(--text-3); padding-top: 1.6rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: .4rem; }
.breadcrumb li::after { content: "/"; color: var(--line-2); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* Page hero (interior) */
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 28px); position: relative; overflow: hidden; }
.page-hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(16,24,40,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,24,40,.04) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(100% 80% at 90% 0%, #000, transparent 60%);
  mask-image: radial-gradient(100% 80% at 90% 0%, #000, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-top: 1rem; max-width: 16ch; }
.page-hero .lead { margin-top: 1.2rem; max-width: 58ch; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--ink); color: var(--text-inv-2); padding-block: clamp(48px, 6vw, 72px) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 48px); }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand__name b { color: var(--accent-300); }
.footer-about { max-width: 32ch; margin-top: 1rem; font-size: .95rem; color: var(--text-inv-2); }
.footer-col h4 { color: #fff; font-size: .8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; font-weight: 600; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: var(--text-inv-2); font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center; margin-top: clamp(36px,5vw,56px); padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom a { color: var(--text-inv-2); }
.footer-bottom a:hover { color: #fff; }

/* =============================================================
   Reveal on scroll
   ============================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .card, .client { transition: none !important; }
}

/* Misc utilities */
.muted { color: var(--text-2); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.divider-line { height: 1px; background: var(--line); border: 0; }
.note { font-size: .85rem; color: var(--text-3); }
