/* ============================================================================
   Hardgate Systems — design system
   Industrial / technical, mobile-first, zero-dependency.
   Palette: graphite ink + blueprint navy structure + hi-vis amber signal.
   ========================================================================== */

:root {
  /* Ink + paper */
  --ink:        #15191e;   /* headings, body */
  --ink-soft:   #3b454f;   /* secondary text */
  --ink-mute:   #5f6e7b;   /* muted / microcopy */
  --paper:      #ffffff;
  --paper-2:    #f5f7f9;   /* section banding */
  --paper-3:    #eef1f4;
  --line:       #e2e7ec;   /* hairlines */
  --line-2:     #cfd8e0;

  /* Blueprint navy (dark structure: hero, dark sections, footer) */
  --navy:       #0e1b2c;
  --navy-2:     #16273d;
  --navy-3:     #20364f;   /* borders on dark */
  --steel:      #93a6ba;   /* muted text on dark */
  --steel-2:    #c4d2df;   /* brighter text on dark */

  /* Hi-vis amber signal */
  --signal:     #e8772a;
  --signal-h:   #cf6418;   /* hover/pressed */
  --signal-ink: #ad510d;   /* amber text readable on light */
  --signal-tint:#fbeada;

  /* Status */
  --go:         #1f9d5a;
  --go-tint:    #e6f5ec;
  --warn:       #d98324;

  /* Geometry */
  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  20px;
  --maxw:       1140px;
  --gutter:     clamp(1.15rem, 4vw, 2.25rem);

  --shadow-sm:  0 1px 2px rgba(16, 27, 44, .06), 0 1px 3px rgba(16, 27, 44, .05);
  --shadow-md:  0 6px 18px rgba(16, 27, 44, .08), 0 2px 6px rgba(16, 27, 44, .05);
  --shadow-lg:  0 24px 60px rgba(10, 18, 30, .22);

  --ease:       cubic-bezier(.16, 1, .3, 1);

  --font-body:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head:  "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

/* ----------------------------------- reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
html:focus-within { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

:focus-visible {
  outline: 3px solid var(--signal-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
  border-radius: 4px;
}
/* skip-link target: move focus to content without ringing the whole region */
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 10px;
  z-index: 200; transition: top .15s var(--ease); font-weight: 600;
}
.skip-link:focus { top: 0; }

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

.section { padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; }
.section-band { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-dark {
  background: var(--navy);
  color: var(--steel-2);
  overflow: hidden;
  border-block: 1px solid var(--navy);
}

.section-head { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.12;
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  color: var(--ink);
}
.section-title.ondark { color: #fff; }
.section-lede {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  max-width: 46rem;
}
.onlight-muted { color: var(--steel-2); }

/* eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono);
  font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--signal-ink);
  margin-bottom: .85rem;
}
.eyebrow-num {
  display: inline-grid; place-items: center;
  min-width: 1.55rem; height: 1.55rem; padding-inline: .35rem;
  background: var(--signal-tint); color: var(--signal-ink);
  border-radius: 6px; font-size: .72rem; letter-spacing: .05em;
}
.eyebrow-ondark { color: var(--steel); }
.eyebrow-ondark .eyebrow-num { background: rgba(232, 119, 42, .16); color: #f3a76a; }
.eyebrow-dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 4px rgba(232, 119, 42, .2);
}

/* grids */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* ---------------------------------- buttons -------------------------------- */
.btn {
  --btn-pad-y: .82rem; --btn-pad-x: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-head);
  font-weight: 600; font-size: .98rem; letter-spacing: -0.005em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: transform .12s var(--ease), background-color .15s var(--ease),
              border-color .15s var(--ease), box-shadow .15s var(--ease), color .15s var(--ease);
  text-align: center; line-height: 1.1; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --btn-pad-y: .55rem; --btn-pad-x: .95rem; font-size: .9rem; }
.btn-lg { --btn-pad-y: 1rem; --btn-pad-x: 1.6rem; font-size: 1.04rem; }

.btn-primary { background: var(--signal); color: #1c1206; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--signal-h); transform: translateY(-1px); box-shadow: var(--shadow-md); }

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

.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); transform: translateY(-1px); }

/* ---------------------------------- header --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 66px;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark { display: grid; place-items: center; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head); font-weight: 500; font-size: 1.1rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.brand-name strong { font-weight: 700; }
.brand-tag {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 2px;
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .8rem; min-height: 44px; border: 1.5px solid var(--line-2); border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink);
}
.nav-toggle-bars { display: inline-grid; gap: 4px; width: 18px; }
.nav-toggle-bars span { height: 2px; background: var(--ink); border-radius: 2px; transition: .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-nav { display: none; }
.primary-nav ul { display: flex; flex-direction: column; gap: .15rem; }
.nav-link {
  display: block; padding: .8rem .4rem; font-weight: 500; color: var(--ink-soft);
  border-bottom: 1px solid var(--line); font-size: 1.02rem;
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link.is-active { color: var(--signal-ink); }

/* mobile nav open state */
.primary-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: .5rem var(--gutter) 1.25rem; box-shadow: var(--shadow-lg);
  animation: drop-in .2s var(--ease) both;
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav-cta-li { margin-top: .85rem; }
.nav-cta { width: 100%; min-height: 44px; }

/* ----------------------------------- hero ---------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 85% -10%, #1d3a5c 0%, transparent 55%),
              linear-gradient(165deg, var(--navy) 0%, #0b1521 100%);
  color: var(--steel-2);
  padding-block: clamp(3rem, 8vw, 6rem);
  border-bottom: 1px solid var(--navy);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(147, 166, 186, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 166, 186, .08) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 100% at 70% 0%, #000 25%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 70% 0%, #000 25%, transparent 78%);
}
.hero-grid-soft { opacity: .55; }

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: clamp(2.25rem, 5vw, 3.5rem);
  align-items: center;
}
.hero-copy { max-width: 38rem; }
.hero-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.15rem, 7.5vw, 3.7rem);
  line-height: 1.05; letter-spacing: -0.03em; color: #fff;
  margin-bottom: 1.1rem;
}
.accent-word { color: var(--signal); }
.hero-sub {
  font-size: clamp(1.05rem, 2.6vw, 1.24rem); color: var(--steel-2);
  max-width: 36rem; margin-bottom: 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.hero-actions .btn { flex: 1 1 auto; }

.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-chips li {
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .03em;
  color: var(--steel); padding: .35rem .7rem;
  border: 1px solid var(--navy-3); border-radius: 999px;
  background: rgba(255, 255, 255, .02);
}

/* hero operations panel */
.hero-panel { width: 100%; }
.panel {
  background: linear-gradient(180deg, #142941 0%, #0f2036 100%);
  border: 1px solid var(--navy-3); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  position: relative;
}
.panel::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--signal), #f3a76a);
}
.panel-bar {
  display: flex; align-items: center; gap: .65rem;
  padding: .8rem 1rem; border-bottom: 1px solid var(--navy-3);
}
.panel-dots { display: inline-flex; gap: .35rem; }
.panel-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy-3); }
.panel-title {
  font-family: var(--font-mono); font-size: .78rem; color: var(--steel);
  letter-spacing: .04em;
}
.panel-flag {
  margin-left: auto; font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .16em; color: #f3a76a; padding: .2rem .5rem;
  border: 1px solid rgba(232, 119, 42, .35); border-radius: 6px;
}
.panel-body { padding: .55rem .6rem; }
.flow-row {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .65rem; border-radius: 10px;
}
.flow-row + .flow-row { margin-top: 2px; }
.flow-idx { font-family: var(--font-mono); font-size: .72rem; color: var(--steel); width: 1.4rem; flex: none; }
.flow-label { font-size: .92rem; color: var(--steel-2); font-weight: 500; }
.flow-rail { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--navy-3) 0 6px, transparent 6px 12px); }
.flow-state {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  padding: .25rem .55rem; border-radius: 999px; flex: none; white-space: nowrap;
}
.flow-state.ok   { color: #7fd9a6; background: rgba(31, 157, 90, .14); }
.flow-state.warn { color: #f0b15f; background: rgba(217, 131, 36, .16); }
.flow-state.gate { color: #1c1206; background: var(--signal); }
.flow-row.is-flagged { background: rgba(217, 131, 36, .07); box-shadow: inset 2px 0 0 var(--warn); }
.flow-row.is-gate { background: rgba(232, 119, 42, .09); box-shadow: inset 2px 0 0 var(--signal); }
.panel-foot {
  padding: .85rem 1rem; border-top: 1px solid var(--navy-3);
  font-family: var(--font-mono); font-size: .72rem; color: var(--steel); letter-spacing: .02em;
}

/* ---------------------------------- cards ---------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  display: flex; flex-direction: column; gap: .6rem;
}
.card p { color: var(--ink-soft); font-size: .99rem; }
.card-title { font-family: var(--font-head); font-weight: 600; font-size: 1.28rem; color: var(--ink); letter-spacing: -0.01em; }
.card-title.sm { font-size: 1.12rem; }

.card-lane { position: relative; padding-top: 1.6rem; }
.card-lane:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card-top { display: flex; flex-direction: column; gap: .55rem; margin-bottom: .2rem; }
.lane-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--signal-ink);
  background: var(--signal-tint); padding: .25rem .55rem; border-radius: 6px;
}
.card-link {
  margin-top: auto; padding-top: .4rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--signal-ink);
  display: inline-flex; align-items: center; gap: .4rem;
}
.card-link span { transition: transform .15s var(--ease); }
.card-link:hover { color: var(--signal-h); }
.card-link:hover span { transform: translateX(4px); }

.card-svc { gap: .5rem; }
.card-svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.svc-num {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  color: var(--signal-ink); border: 1px solid var(--signal-tint); background: var(--signal-tint);
  width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 8px; margin-bottom: .25rem;
}

/* ----------------------------------- split --------------------------------- */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.split-main .btn { margin-top: 1.4rem; }

.check-list { display: grid; gap: .75rem; }
.check-list li {
  position: relative; padding-left: 2rem; color: var(--ink-soft);
  font-size: 1.02rem; line-height: 1.45;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 1.35rem; height: 1.35rem; border-radius: 6px;
  background: var(--go-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d5a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / .85rem no-repeat;
}
.check-list-dark li { color: var(--steel-2); }
.check-list-dark li::before { background-color: rgba(31, 157, 90, .16); }

/* -------------------------------- inline CTA ------------------------------- */
.inline-cta {
  margin-top: 2rem; padding: 1.4rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.inline-cta p { font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: 1.06rem; }
.inline-cta .btn { flex: none; }
.inline-cta-dark { background: rgba(255, 255, 255, .04); border-color: var(--navy-3); }
.inline-cta-dark p { color: #fff; }

/* ----------------------------------- proof --------------------------------- */
.proof { position: relative; }
.chip-grid { display: flex; flex-wrap: wrap; gap: .65rem; }
.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem .95rem; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--navy-3);
  color: var(--steel-2); font-weight: 500; font-size: .95rem;
}
.chip-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--signal); flex: none; }

.honesty-note {
  margin-top: 1.75rem; padding: 1.2rem 1.35rem;
  border: 1px solid var(--navy-3); border-left: 3px solid var(--signal);
  border-radius: var(--radius); background: rgba(255, 255, 255, .03);
  color: var(--steel-2); font-size: 1rem; line-height: 1.65;
}
.honesty-note strong { color: #fff; }
.honesty-badge {
  display: inline-block; margin-right: .6rem; vertical-align: 1px;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #f3a76a;
  border: 1px solid rgba(232, 119, 42, .35); border-radius: 6px; padding: .2rem .5rem;
}

/* --------------------------------- tool grid ------------------------------- */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.tool-grid li {
  display: flex; align-items: center; gap: .6rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1rem; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), border-color .15s var(--ease);
}
.tool-grid li:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tool-mark { color: var(--signal); font-weight: 700; flex: none; }

/* ------------------------------- audience grid ----------------------------- */
.audience-grid { display: flex; flex-wrap: wrap; gap: .7rem; }
.audience {
  font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; color: var(--ink);
  padding: .7rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper);
  box-shadow: var(--shadow-sm);
}

/* ---------------------------------- contact -------------------------------- */
.contact-card {
  display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3rem);
  background: var(--navy);
  background-image: linear-gradient(165deg, #16273d 0%, #0b1521 100%);
  border: 1px solid var(--navy-3); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4.5vw, 3rem); color: var(--steel-2);
  position: relative; overflow: hidden;
}
.contact-card .eyebrow { color: var(--steel); }
.contact-card .eyebrow-num { background: rgba(232, 119, 42, .16); color: #f3a76a; }
.contact-card .section-title { color: #fff; }
.contact-card .section-lede { color: var(--steel-2); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.contact-actions .btn { flex: 1 1 100%; white-space: normal; }
.contact-actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .3); }
.contact-actions .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.contact-meta { display: grid; gap: 1px; background: var(--navy-3); border: 1px solid var(--navy-3); border-radius: var(--radius); overflow: hidden; align-self: start; }
.contact-meta li { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; background: rgba(11, 21, 33, .6); }
.meta-k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.meta-v { color: #fff; font-weight: 500; font-size: 1.02rem; }
a.meta-v:hover { color: var(--signal); }

/* ---------------------------------- footer --------------------------------- */
.site-footer { background: var(--navy); color: var(--steel); padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--navy-2); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-name { font-family: var(--font-head); font-weight: 500; color: #fff; font-size: 1.1rem; }
.footer-name strong { font-weight: 700; }
.footer-line { font-size: .9rem; color: var(--steel); margin-top: 2px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.footer-nav a { color: var(--steel-2); font-weight: 500; padding: .25rem 0; font-size: .96rem; }
.footer-nav a:hover { color: var(--signal); }
.footer-meta { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; color: var(--steel); border-top: 1px solid var(--navy-2); padding-top: 1.5rem; }
.footer-meta a:hover { color: var(--signal); }

/* ============================== reveal motion ============================= */
.section-head, .card, .inline-cta, .honesty-note, .check-list li, .tool-grid li,
.audience, .chip, .hero-copy, .hero-panel, .contact-card {
  --rv-y: 14px;
}
.reveal { opacity: 0; transform: translateY(var(--rv-y)); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* ============================== breakpoints ============================== */
@media (min-width: 600px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { flex: 0 1 auto; }
}

@media (min-width: 880px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .split { grid-template-columns: 1.25fr 1fr; }
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-card { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .contact-actions .btn { flex: 0 1 auto; }
  .footer-inner { grid-template-columns: 1.2fr 1.4fr; align-items: start; }
  .footer-meta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
}

@media (min-width: 1040px) {
  .section-title { font-size: clamp(2rem, 3vw, 2.85rem); }
}

/* Horizontal nav only once there is genuinely room for the brand + 7 full-text
   links + CTA on one line. Below this, the (accessible) hamburger menu is used —
   including on tablets and small laptops. */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; }
  .primary-nav ul { flex-direction: row; align-items: center; gap: .1rem; }
  .nav-link {
    border-bottom: none; padding: .5rem .6rem; font-size: .92rem; border-radius: 8px;
    position: relative; white-space: nowrap;
  }
  .nav-link::after {
    content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .22rem; height: 2px;
    background: var(--signal); border-radius: 2px; transform: scaleX(0); transform-origin: left;
    transition: transform .18s var(--ease);
  }
  .nav-link.is-active::after, .nav-link:hover::after { transform: scaleX(1); }
  .nav-cta-li { margin-top: 0; margin-left: .35rem; }
  .nav-cta { width: auto; }
}

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

/* ==========================================================================
   ADDED: work-example proof cards, notes, phases, budget fit, intake form
   ========================================================================== */

/* two-column grid (collapses to one on small screens) */
.grid-2 { grid-template-columns: 1fr; }

/* ----------------------------- work proof cards ---------------------------- */
.proof-card {
  --rv-y: 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--navy-3); border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  display: flex; flex-direction: column; gap: .85rem;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.proof-card:hover { transform: translateY(-3px); border-color: var(--steel); box-shadow: var(--shadow-lg); }
.proof-card-head { display: flex; flex-direction: column; gap: .6rem; }
.card-title.ondark { color: #fff; }
.proof-card-body { color: var(--steel-2); font-size: .99rem; line-height: 1.6; }
.proof-card-honesty {
  color: var(--steel-2); font-size: .9rem; line-height: 1.55;
  padding: .65rem .8rem; border-left: 3px solid var(--signal);
  background: rgba(232, 119, 42, .08); border-radius: 0 8px 8px 0;
}

.proof-status {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: .65rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.proof-status-build     { color: #f3a76a;        border-color: rgba(232, 119, 42, .4); background: rgba(232, 119, 42, .12); }
.proof-status-framework { color: var(--steel-2); border-color: var(--navy-3);          background: rgba(255, 255, 255, .04); }
.proof-status-pattern   { color: #a8c0d8;        border-color: var(--navy-3);          background: rgba(255, 255, 255, .04); }
.proof-status-live      { color: #7fd9a6;        border-color: rgba(31, 157, 90, .4);  background: rgba(31, 157, 90, .12); }

.proof-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .2rem; }
.proof-chips li {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .02em;
  color: var(--steel-2); padding: .3rem .55rem; border-radius: 7px;
  border: 1px solid var(--navy-3); background: rgba(255, 255, 255, .025);
}
.work-grid + .honesty-note { margin-top: 1.75rem; }

/* -------------------------------- light note ------------------------------- */
.note {
  --rv-y: 14px;
  margin-top: 1.5rem; padding: 1.05rem 1.25rem;
  border: 1px solid var(--line); border-left: 3px solid var(--signal);
  border-radius: var(--radius); background: var(--paper-2);
}
.note p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.note strong { color: var(--ink); }
.note-badge {
  display: inline-block; margin-right: .55rem; vertical-align: 1px;
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--signal-ink);
  border: 1px solid rgba(232, 119, 42, .4); border-radius: 6px; padding: .18rem .45rem; background: #fff;
}

/* ------------------------------ phase / budget ----------------------------- */
.phase-card { position: relative; padding-top: 1.5rem; }
.phase-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.phase-tag,
.budget-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink);
  background: var(--signal-tint); padding: .28rem .6rem; border-radius: 6px;
}
.budget-grid { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.budget-card { gap: .55rem; }
.budget-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.budget-card p { color: var(--ink-soft); }

/* -------------------------------- intake form ------------------------------ */
.intake { --rv-y: 14px; display: grid; grid-template-columns: 1fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.intake-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3.5vw, 2rem); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.intake-privacy {
  font-size: .92rem; color: var(--ink-soft); line-height: 1.55;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 10px; padding: .8rem .9rem;
}
.intake-privacy strong { color: var(--ink); }
.intake-privacy a { color: var(--signal-ink); font-weight: 600; }

.field { display: flex; flex-direction: column; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field-legend {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); padding: 0;
}
.field-legend { margin-bottom: .55rem; }
.field-hint { font-size: .82rem; color: var(--ink-mute); line-height: 1.45; }

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

.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 10px;
  padding: .7rem .8rem; min-height: 46px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f6e7b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--signal); box-shadow: 0 0 0 3px rgba(232, 119, 42, .16);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-mute); }

.choice-grid { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.choice {
  display: flex; align-items: flex-start; gap: .6rem;
  border: 1.5px solid var(--line); border-radius: 10px; padding: .6rem .75rem; min-height: 46px;
  background: var(--paper); cursor: pointer; font-size: .94rem; color: var(--ink-soft);
  transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.choice:hover { border-color: var(--line-2); }
.choice input { width: 1.15rem; height: 1.15rem; margin: .12rem 0 0; accent-color: var(--signal); flex: none; }
.choice:has(input:checked) { border-color: var(--signal); background: var(--signal-tint); color: var(--ink); }

.intake-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .35rem; }
.intake-actions .btn { flex: 1 1 auto; white-space: normal; }
.form-status { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.form-status:empty { display: none; }

.intake-side { --rv-y: 14px; }
.side-card {
  background: var(--navy); background-image: linear-gradient(165deg, #16273d 0%, #0b1521 100%);
  border: 1px solid var(--navy-3); border-radius: var(--radius-lg); padding: 1.5rem 1.4rem; color: var(--steel-2);
}
.side-title { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: #fff; margin-bottom: .5rem; }
.side-text { font-size: .96rem; color: var(--steel-2); line-height: 1.6; margin-bottom: 1.1rem; }

/* ----------------------------- added breakpoints --------------------------- */
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
  .intake { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .intake-side { position: sticky; top: 88px; }
}

/* reduced-motion: neutralize the added reveal offsets too */
@media (prefers-reduced-motion: reduce) {
  .proof-card, .phase-card, .budget-card, .note, .intake, .intake-side { --rv-y: 0; }
}
