/* V2 Tech Solutions — shared design system */

:root {
  /* Brand */
  --brand-blue:       #0068B5;
  --brand-blue-700:   #005192;
  --brand-blue-900:   #1b4962;
  --brand-blue-50:    #EBF4FB;
  --accent-red:       #E21C2D;
  --accent-red-soft:  #FBE7E9;

  /* Neutrals */
  --ink:              #181818;
  --ink-muted:        #5b6470;
  --ink-soft:         #8a93a0;
  --surface:          #FFFFFF;
  --surface-alt:      #F5F7FA;
  --surface-tint:     #EEF3F8;
  --border:           #E3E8EE;
  --border-strong:    #c9d2dc;

  /* Type */
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container:    1200px;
  --container-w:  min(var(--container), calc(100% - 48px));
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    22px;
  --shadow-sm:    0 1px 2px rgba(16, 30, 60, .06), 0 1px 1px rgba(16, 30, 60, .04);
  --shadow-md:    0 8px 24px -10px rgba(16, 40, 80, .12), 0 2px 6px rgba(16, 40, 80, .06);
  --shadow-lg:    0 24px 60px -20px rgba(8, 30, 70, .25);

  /* Easing */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

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

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

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-700); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout primitives ---------- */
.container { width: var(--container-w); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--alt { background: var(--surface-alt); }
.section--tint { background: var(--surface-tint); }
.section--blue {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #0075c9 60%, #0a82d6 100%);
  color: #fff;
}
.section--blue h1, .section--blue h2, .section--blue h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent-red);
  display: inline-block;
}
.section--blue .eyebrow { color: rgba(255,255,255,.85); }
.section--blue .eyebrow::before { background: #fff; }

.lede { font-size: 19px; color: var(--ink-muted); max-width: 60ch; }
.section--blue .lede { color: rgba(255,255,255,.88); }

.grid { display: grid; gap: 32px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(0, 104, 181, .55);
}
.btn--primary:hover { background: var(--brand-blue-700); color: #fff; box-shadow: 0 12px 22px -10px rgba(0, 104, 181, .6); }

.btn--ghost-light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.6); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover { color: var(--brand-blue); border-color: var(--brand-blue); }

.btn--solid-white {
  background: #fff;
  color: var(--brand-blue);
}
.btn--solid-white:hover { color: var(--brand-blue-700); }

.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand__tile {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex: 0 0 auto;
  display: block;
}
.brand__wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--brand-blue);
  line-height: 1;
}
.brand__wordmark .accent { color: var(--accent-red); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link {
  position: relative;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__link:hover { color: var(--brand-blue); background: var(--surface-alt); }
.nav__link[aria-current="page"] { color: var(--brand-blue); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--accent-red);
  border-radius: 2px;
}
.nav__cta {
  margin-left: 12px;
  padding: 10px 18px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.nav__cta:hover { background: var(--brand-blue-700); color: #fff; }

/* Dropdown */
.nav__item { position: relative; }
.nav__caret { transition: transform .2s var(--ease); }
.nav__item[data-open="true"] .nav__caret { transform: rotate(180deg); }
.nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.nav__item[data-open="true"] .nav__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__menu-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--ink);
}
.nav__menu-item:hover { background: var(--surface-alt); color: var(--brand-blue); }
.nav__menu-item__icon {
  width: 36px; height: 36px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--brand-blue-50);
  color: var(--brand-blue);
  display: grid; place-items: center;
}
.nav__menu-item__title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}
.nav__menu-item__desc {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 920px) {
  .nav { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav.is-open .nav__menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    min-width: 0;
    display: none;
  }
  .nav.is-open .nav__item[data-open="true"] .nav__menu { display: block; }
  .nav__cta { margin: 8px 0 0; align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #00477f 0%, var(--brand-blue) 55%, #0a82d6 100%);
  color: #fff;
  padding: clamp(72px, 11vw, 140px) 0 clamp(72px, 11vw, 140px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 .red { color: #fff; position: relative; white-space: nowrap; }
.hero h1 .red::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 4px;
  background: var(--accent-red);
  border-radius: 2px;
}
.hero__lede {
  font-size: 19px;
  color: rgba(255,255,255,.85);
  max-width: 48ch;
  margin: 28px 0 36px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 540px; justify-self: end; width: 100%; }
.hero__stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 28px;
}
.hero__stat-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero__stat-lbl {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-top: 6px;
  letter-spacing: .04em;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { max-width: 380px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* Sub-hero (interior pages) */
.subhero {
  background: linear-gradient(135deg, #00477f 0%, var(--brand-blue) 80%);
  color: #fff;
  padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}
.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 80%);
}
.subhero__inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.subhero h1 { color: #fff; max-width: 16ch; margin-bottom: 0; }
.subhero__lede { color: rgba(255,255,255,.85); font-size: 19px; max-width: 50ch; margin-top: 24px; }
.subhero__art { width: 100%; max-width: 360px; justify-self: end; }
@media (max-width: 880px) {
  .subhero__inner { grid-template-columns: 1fr; }
  .subhero__art { display: none; }
}

/* Breadcrumb */
.crumbs {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
  letter-spacing: .04em;
}
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: rgba(255,255,255,.45); margin: 0 8px; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-blue-50);
  color: var(--brand-blue);
  margin-bottom: 24px;
}
.card__icon--red { background: var(--accent-red-soft); color: var(--accent-red); }
.card__title { font-family: var(--font-heading); font-weight: 600; font-size: 22px; margin-bottom: 12px; letter-spacing: -.01em; }
.card__body { color: var(--ink-muted); font-size: 15.5px; }
.card__link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-blue);
}
.card__link svg { transition: transform .2s var(--ease); }
.card:hover .card__link svg { transform: translateX(3px); }

/* "Pillar" two-column block */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pillar h3 {
  font-size: 28px;
  letter-spacing: -.015em;
  color: var(--brand-blue);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}
.pillar h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-red);
  border-radius: 2px;
}
.pillar p { color: var(--ink-muted); font-size: 16.5px; }
@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Service detail blocks ---------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.service-block--reverse { direction: rtl; }
.service-block--reverse > * { direction: ltr; }
.service-block__art {
  background: linear-gradient(135deg, var(--brand-blue-50), #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 40px;
  overflow: hidden;
  position: relative;
}
.service-block__body p { color: var(--ink-muted); font-size: 17px; }
@media (max-width: 880px) {
  .service-block, .service-block--reverse { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
}

/* List w/ check */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 15.5px;
}
.checks li::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-blue-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230068B5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat;
  margin-top: 1px;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--brand-blue-900) 0%, #143a52 100%);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0,104,181,.5), transparent 70%);
  pointer-events: none;
}
.cta-strip h2 { color: #fff; margin: 0 0 6px; max-width: 22ch; }
.cta-strip p { color: rgba(255,255,255,.78); margin: 0; max-width: 50ch; }
.cta-strip__body { position: relative; }
.cta-strip__action { position: relative; }
@media (max-width: 780px) {
  .cta-strip { flex-direction: column; align-items: flex-start; }
}

/* ---------- Offices ---------- */
.office {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.office__flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.office__flag-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-blue);
}
.office__flag-dot--red { background: var(--accent-red); }
.office h3 { margin: 0; font-size: 22px; }
.office address { font-style: normal; color: var(--ink-muted); }
.office__line {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: 15px;
}
.office__line svg { color: var(--brand-blue); flex: 0 0 auto; }
.office__lines { display: grid; gap: 8px; margin-top: 6px; }
.office__divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ---------- Contact form ---------- */
.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.field label .req { color: var(--accent-red); margin-left: 2px; }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0,104,181,.15);
}
.field--error input,
.field--error textarea { border-color: var(--accent-red); }
.field--error input:focus,
.field--error textarea:focus { box-shadow: 0 0 0 3px rgba(226,28,45,.15); }
.field__error {
  font-size: 12.5px;
  color: var(--accent-red);
  min-height: 16px;
}
.form__actions { display: flex; justify-content: flex-end; margin-top: 8px; }

.form__success {
  display: none;
  background: var(--brand-blue-50);
  border: 1px solid #c9def0;
  color: var(--brand-blue-900);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
  gap: 12px;
}
.form__success.is-visible { display: flex; }
.form__success svg { color: var(--brand-blue); flex: 0 0 auto; }
.form__success-title { font-weight: 600; color: var(--brand-blue-900); margin-bottom: 2px; }
.form__success-body { font-size: 14.5px; color: var(--brand-blue-900); opacity: .85; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-blue-900);
  color: rgba(255,255,255,.78);
  padding: 72px 0 28px;
  margin-top: 0;
  position: relative;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.78); font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 14.5px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer__brand .brand__wordmark { color: #fff; }
.site-footer__brand .brand__wordmark .accent { color: var(--accent-red); }
.site-footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 880px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Section reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.step h4 { margin: 0 0 6px; font-size: 17px; }
.step p { color: var(--ink-muted); font-size: 14.5px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  min-width: 240px;
  display: none;
  font-family: var(--font-body);
}
.tweaks.is-open { display: block; }
.tweaks__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks__close {
  background: none; border: 0; cursor: pointer;
  color: var(--ink-muted); padding: 4px; border-radius: 4px;
}
.tweaks__close:hover { color: var(--ink); background: var(--surface-alt); }
.tweaks__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: .04em;
  margin-bottom: 8px;
  display: block;
}
.tweaks__seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
}
.tweaks__seg button {
  background: transparent;
  border: 0;
  padding: 8px 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
  border-radius: 7px;
}
.tweaks__seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* ---------- Mobile + a11y polish ---------- */

/* Sticky header offset for in-page anchors (#mobile, etc.) */
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

/* Keyboard focus rings */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav__link:focus-visible,
.nav__cta:focus-visible,
.nav__toggle:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn:focus-visible { border-radius: 999px; }

/* Smaller phones: tighten container gutter */
@media (max-width: 520px) {
  :root { --container-w: min(var(--container), calc(100% - 32px)); }
}

/* Very small phones: hide wordmark to fit logo + nav toggle */
@media (max-width: 380px) {
  .brand__wordmark { display: none !important; }
  .site-header__inner { height: 64px; }
}

/* Submit button full width on phone */
@media (max-width: 520px) {
  .form__actions { justify-content: stretch; }
  .form__actions .btn { width: 100%; justify-content: center; }
}

/* Tweaks panel responsive */
@media (max-width: 480px) {
  .tweaks {
    right: 12px;
    left: 12px;
    bottom: 12px;
    min-width: 0;
  }
}

/* Form error states clearer on touch */
.form__error {
  display: none;
  background: var(--accent-red-soft);
  border: 1px solid #f3b6bd;
  color: #8a1a25;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 14.5px;
}
.form__error.is-visible { display: block; }

/* Subhero h1 better on small screens */
@media (max-width: 520px) {
  .subhero h1 { font-size: clamp(32px, 8vw, 42px); }
  .hero h1 { font-size: clamp(34px, 8vw, 44px); }
}

/* Disable button visual + cursor when submitting */
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
