/* ==========================================================================
   Alpha Omega Technologies — alphaomegatech.io
   Light corporate theme. No external dependencies.
   ========================================================================== */

:root {
  --ink:        #0e1b2c;
  --ink-soft:   #33475f;
  --muted:      #5f7288;
  --bg:         #ffffff;
  --surface:    #f5f8fc;
  --surface-2:  #eef3fa;
  --border:     #e0e7f0;
  --accent:     #1560d4;
  --accent-dk:  #0e47a3;
  --accent-wash:#e8f0fd;
  --danger:     #b42318;
  --success:    #0b7a52;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow-sm:  0 1px 2px rgba(14, 27, 44, .06), 0 1px 3px rgba(14, 27, 44, .04);
  --shadow-md:  0 4px 12px rgba(14, 27, 44, .07), 0 2px 4px rgba(14, 27, 44, .04);
  --shadow-lg:  0 18px 45px rgba(14, 27, 44, .10), 0 4px 12px rgba(14, 27, 44, .05);

  --wrap:       1160px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.021em;
  margin: 0 0 .6em;
  font-weight: 660;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.85rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.16rem; font-weight: 640; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: .795rem;
  font-weight: 680;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9rem;
}

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: .82rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--accent-dk); color: #fff; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: #cbd7e6; }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Header ────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(14, 27, 44, .05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--ink); }

/* Circular AO mark (/logo.svg) — the gradient lives inside the SVG. */
.brand-mark {
  display: block;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(21, 96, 212, .3);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.03rem; font-weight: 680; letter-spacing: -.015em; }
.brand-text span { font-size: .755rem; color: var(--muted); letter-spacing: .085em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav > a {
  color: var(--ink-soft);
  font-size: .945rem;
  font-weight: 550;
  padding: .5rem .78rem;
  border-radius: 7px;
}
.nav > a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }

.nav .nav-cta {
  background: var(--accent);
  color: #fff;
  margin-left: .5rem;
  padding: .58rem 1.15rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.nav .nav-cta:hover { background: var(--accent-dk); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }

.hero-bg {
  position: absolute;
  inset: 0;
  /* Positioned, so it paints above static siblings and would otherwise swallow
     clicks on links in the hero. */
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(21, 96, 212, .11), transparent 62%),
    radial-gradient(680px 380px at 8% 8%, rgba(21, 96, 212, .055), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, #fff 72%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(14, 27, 44, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 27, 44, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(760px 420px at 50% 20%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 420px at 50% 20%, #000 25%, transparent 78%);
}

.hero-inner { position: relative; max-width: 900px; }
.hero h1 { margin-bottom: .55em; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.lede {
  font-size: clamp(1.06rem, 1.9vw, 1.24rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 62ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stats li {
  background: rgba(255, 255, 255, .82);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.hero-stats strong { color: var(--ink); font-size: 1.14rem; font-weight: 660; letter-spacing: -.015em; }
.hero-stats span { font-size: .9rem; color: var(--muted); }

/* ── Sections ──────────────────────────────────────────────── */

.section { padding: clamp(3.75rem, 8vw, 6.5rem) 0; }
/* For rows that are navigation rather than content — a full section's padding
   above a CTA band leaves a dead gap. */
.section-tight { padding: clamp(2.25rem, 4vw, 3.25rem) 0; }
.section-tight .pager { margin-top: 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-sub { font-size: 1.07rem; color: var(--muted); max-width: 60ch; }

/* ── Service cards ─────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 1.35rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cfdcec;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-wash);
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 23px; height: 23px; }

.card h3 { margin-bottom: .5em; }
.card > p { font-size: .965rem; color: var(--muted); }

.card-list {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: .5rem;
}
.card-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .915rem;
  color: var(--ink-soft);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}

/* ── Page hero (sub-pages) ─────────────────────────────────── */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 4.75rem) 0 clamp(2.25rem, 4vw, 3.25rem);
}
.page-hero-inner { position: relative; max-width: 820px; }

/* .hero-bg is absolutely positioned, so it paints above any *static* sibling.
   Lifting the content wrapper into the positioned layer is what keeps the
   headline, breadcrumbs and meta card on top of the gradient. */
.page-hero > .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.05rem, 4.4vw, 3.1rem); margin-bottom: .5em; }

/* ── Project tiles ─────────────────────────────────────────── */

/* Two columns × three rows on desktop. Fixed rather than auto-fit: the grid is
   a deliberate 2×3 composition, not a reflowing card wall. */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
a.tile:hover {
  text-decoration: none;
  color: var(--ink-soft);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #c3d5ea;
}

/* Accent hairline wipes across the top edge on hover. */
.tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #58a0f5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s ease;
}
a.tile:hover::before, a.tile:focus-visible::before { transform: scaleX(1); }

.tile-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }

/* Monogram stands in for a logo — the CSP forbids remote images, and these
   marks stay legible at any size without an asset round-trip. */
.tile-mark {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--accent), var(--accent-dk));
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 3px 10px rgba(21, 96, 212, .26);
}
.tile-mark-slate { background: linear-gradient(140deg, #2a4a70, var(--ink)); box-shadow: 0 3px 10px rgba(14, 27, 44, .26); }
.tile-mark-teal  { background: linear-gradient(140deg, #0f7f6c, #0a5c4f); box-shadow: 0 3px 10px rgba(10, 92, 79, .26); }
.tile-mark-plum  { background: linear-gradient(140deg, #6b4bb4, #4a3286); box-shadow: 0 3px 10px rgba(74, 50, 134, .26); }

.tile-num {
  margin-left: auto;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: #a3b4c8;
}

.tile-kind {
  display: block;
  font-size: .715rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .45rem;
}
.tile h3 { font-size: 1.3rem; margin: 0 0 .22em; }
.tile-domain { font-family: var(--mono); font-size: .825rem; color: var(--muted); }
.tile-sum { font-size: .955rem; color: var(--muted); margin: .9rem 0 1.3rem; }

.tile-foot {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.tile-stack { display: flex; flex-wrap: wrap; gap: .38rem; }
.tile-stack li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .2rem .6rem;
  font-size: .79rem;
  font-weight: 550;
  color: var(--ink-soft);
}

.tile-go {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
  flex-shrink: 0;
  font-size: .9rem;
  font-weight: 620;
  color: var(--accent);
}
.tile-go svg { transition: transform .22s ease; }
a.tile:hover .tile-go svg { transform: translateX(3px); }

/* Work we cannot name — informational, deliberately not a link. */
.tile-quiet { background: var(--surface); border-style: dashed; box-shadow: none; }
.tile-quiet .tile-mark { background: #fff; border: 1px dashed #bccbdd; color: var(--muted); box-shadow: none; }
.tile-quiet .tile-kind { color: var(--muted); }

/* Closing tile: turns the last cell into the call to action. */
.tile-cta { background: linear-gradient(150deg, #16305a, var(--ink)); border-color: transparent; color: #aabdd1; }
.tile-cta::before { background: linear-gradient(90deg, #58a0f5, #9cc6fa); }
a.tile-cta:hover { color: #c9d8e8; }
.tile-cta h3 { color: #fff; }
.tile-cta .tile-kind { color: #7fb3f2; }
.tile-cta .tile-sum { color: #a3b8ce; }
.tile-cta .tile-mark { background: rgba(255, 255, 255, .12); box-shadow: none; }
.tile-cta .tile-num { color: rgba(255, 255, 255, .35); }
.tile-cta .tile-foot { border-top-color: rgba(255, 255, 255, .15); }
.tile-cta .tile-go { color: #fff; }

/* ── Case study pages ──────────────────────────────────────── */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-size: .87rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .45; }
.crumbs strong { color: var(--ink-soft); font-weight: 600; }

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.case-hero h1 { font-size: clamp(2rem, 4.2vw, 2.95rem); }
.case-hero .lede { max-width: 58ch; }

.case-mark {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 15px;
  color: #fff;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 1.35rem;
}

.case-meta {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem 1.6rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.15rem;
}
.case-meta dt {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .22rem;
}
.case-meta dd { margin: 0; font-size: .98rem; color: var(--ink); font-weight: 550; }
.case-meta dd a { font-family: var(--mono); font-size: .93rem; }

.case-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: start;
}
.case-block h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
.case-block p { color: var(--muted); }
.case-block .card-list { margin-top: 1.4rem; }

.case-note {
  margin-top: 1.4rem;
  padding: .95rem 1.15rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .92rem;
  color: var(--ink-soft);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  font-weight: 600;
}
.pager span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.pager .pager-next { text-align: right; margin-left: auto; }

/* ── CTA band ──────────────────────────────────────────────── */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
}
.cta-band > div:first-child { max-width: 46ch; }
.cta-band h2 { margin-bottom: .45em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ── Steps ─────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 1.35rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.55rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: block;
  font-family: var(--mono);
  font-size: .87rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: .85rem;
}
.step h3 { margin-bottom: .45em; }
.step p { font-size: .945rem; color: var(--muted); }

/* ── Capabilities ──────────────────────────────────────────── */

.cap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.cap-copy p { color: var(--muted); max-width: 52ch; }
.cap-copy .btn { margin-top: .9rem; }

.cap-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 1.75rem;
}
.cap-group h3 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}
.cap-group ul { display: flex; flex-wrap: wrap; gap: .45rem; }
.cap-group li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .3rem .72rem;
  font-size: .855rem;
  font-weight: 550;
  color: var(--ink-soft);
}

/* ── About ─────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-lede { font-size: 1.09rem; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.6rem 2rem; }
.value h3 { margin-bottom: .35em; }
.value h3::before {
  content: "";
  display: block;
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: .85rem;
}
.value p { font-size: .945rem; color: var(--muted); }

/* ── Contact ───────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-copy > p { color: var(--muted); max-width: 46ch; }

.contact-details {
  margin: 2rem 0 1.5rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1.1rem;
}
.contact-details dt {
  font-size: .765rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .2rem;
}
.contact-details dd { margin: 0; font-size: 1.03rem; color: var(--ink); font-weight: 550; }

/* <address> is italic by default in every browser — reset it everywhere. */
address { font-style: normal; }
.contact-details address { line-height: 1.55; font-weight: 500; }

.contact-note { font-size: .915rem; color: var(--muted); }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field label {
  display: block;
  font-size: .89rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .42rem;
}
.field label span[aria-hidden] { color: var(--accent); }
.field .opt { font-weight: 450; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  padding: .7rem .85rem;
  border: 1px solid #cfdae8;
  border-radius: var(--radius-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 120px; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235f7288' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 96, 212, .15);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .13); }

.field-error {
  margin: .38rem 0 0;
  font-size: .855rem;
  color: var(--danger);
  min-height: 0;
}
.field-error:empty { display: none; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 1rem 0 0;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .94rem;
  display: none;
}
.form-status.is-error {
  display: block;
  background: #fdf0ef;
  border: 1px solid #f4cdc9;
  color: var(--danger);
}
.form-status.is-success {
  display: block;
  background: #eaf7f1;
  border: 1px solid #bfe4d4;
  color: var(--success);
}

.form-small { margin: 1rem 0 0; font-size: .845rem; color: var(--muted); text-align: center; }

/* ── Footer ────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: #a9bacd;
  padding: clamp(2.75rem, 5vw, 3.75rem) 0 1.75rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
}

.footer-brand { display: flex; gap: .9rem; align-items: flex-start; }
.footer-brand strong { color: #fff; font-size: 1.03rem; font-weight: 640; }
.footer-brand p { margin: .2rem 0 0; font-size: .92rem; color: #8fa3b9; }

.footer-address {
  font-size: .92rem;
  line-height: 1.7;
  color: #8fa3b9;
  max-width: 24ch;
}
.footer-address a { color: #bcccdd; }
.footer-address a:hover { color: #fff; }

.footer-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.6rem; }
.footer-nav a { color: #bcccdd; font-size: .945rem; }
.footer-nav a:hover { color: #fff; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-legal p { margin: 0; font-size: .875rem; color: #8fa3b9; }
.footer-legal a { color: #bcccdd; }
.footer-legal a:hover { color: #fff; }

/* ── Reveal animation ──────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 940px) {
  .cap-grid, .about-grid, .contact-grid, .case-hero-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 2.25rem; }
  .case-hero-grid { gap: 2.25rem; }
}

@media (max-width: 820px) {
  .tiles { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  html { scroll-padding-top: 78px; }

  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: .75rem var(--gutter) 1.1rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a { padding: .68rem .6rem; font-size: 1rem; }
  .nav .nav-cta { margin: .4rem 0 0; text-align: center; justify-content: center; }

  .hero h1 em { white-space: normal; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; gap: 1.75rem; }
}

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

@media print {
  .site-header, .nav-toggle, .hero-bg, .form-card { display: none; }
  body { color: #000; }
}
