/* Northwest DSP — site styles. Evergreen palette from the brand guide. */
:root {
  --navy: #13261D;      /* Old Growth */
  --navy-2: #1B3328;
  --teal: #2E6B4C;      /* Evergreen */
  --teal-light: #8FD1A5; /* Moss */
  --amber: #F2A541;     /* Sunrise */
  --mist: #F2F6F3;
  --glacier: #DCE9EC;   /* Glacier */
  --ink: #13261D;
  --muted: #4B5E54;
  --line: #DAE4DE;
  --white: #FFFFFF;
  --radius: 10px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .75rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #F6B95F; color: var(--navy); }
.btn-ghost { border: 2px solid rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--teal-light); color: var(--teal-light); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19,38,29,.97);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #CBD8D0; text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--white); }
.nav .btn { padding: 9px 16px; font-size: .92rem; color: var(--navy); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  padding: 72px 0 clamp(160px, 13vw, 250px);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 15em; }
.hero h1 em { font-style: normal; color: var(--teal-light); }
.hero .lead { color: #BCCCC3; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero .tagline {
  margin-top: 40px; font-size: .78rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--teal-light);
}
/* Mountain ridgelines (from the brand kit). Swap the files in assets/ to change them. */
.hero-ridge, .ridge-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  width: 100%; height: auto; pointer-events: none;
}
.hero-ridge { height: clamp(150px, 12.5vw, 240px); object-fit: cover; object-position: 70% bottom; }

#about { position: relative; padding-bottom: 150px; }
.ridge-strip { opacity: .9; }
.contact { padding-bottom: 170px; }

/* Sections */
section { padding: 88px 0; }
.section-mist { background: var(--mist); }
.section-head { margin-bottom: 44px; }

/* Service cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 18px;
  display: grid; place-items: center; background: rgba(46,107,76,.10);
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: .6em; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .93rem; }
.card li { margin-bottom: .25em; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { border-radius: var(--radius); padding: 24px 22px; color: var(--white); position: relative; }
.step:nth-child(1) { background: var(--teal); }
.step:nth-child(2) { background: #8FD1A5; color: var(--navy); }
.step:nth-child(3) { background: var(--navy); }
.step:nth-child(4) { background: var(--amber); color: var(--navy); }
.step .num { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.step h3 { margin: .35em 0 .4em; font-size: 1.2rem; }
.step p { font-size: .93rem; margin: 0; opacity: .95; }
.deliverables { margin-top: 48px; }
.deliverables ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 28px;
}
.deliverables li { padding-left: 24px; position: relative; color: var(--muted); }
.deliverables li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--teal-light);
}

/* Clients */
.client h3 { display: flex; align-items: center; gap: 10px; }
.client h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: none; }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.why h3 { color: var(--navy); }
.why p { color: var(--muted); }
.why .bar { width: 36px; height: 3px; background: var(--teal-light); margin-bottom: 16px; }

/* About */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.about .portrait {
  aspect-ratio: 1; border-radius: var(--radius); background: var(--navy);
  display: grid; place-items: center; padding: 34px;
}
.placeholder {
  background: #FFF4DE; border: 1px dashed var(--amber); border-radius: 6px;
  padding: 2px 6px; color: #7A5212;
}
.facts { margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.facts div { border-top: 1px solid var(--line); padding: 12px 0; }
.facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.facts dd { margin: 2px 0 0; }

/* Contact */
.contact { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.contact .wrap { position: relative; z-index: 2; text-align: center; }
.contact .lead { color: #BCCCC3; margin: 0 auto 30px; }
.contact .email { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; color: var(--teal-light); text-decoration: none; }
.contact .email:hover { color: var(--white); }
.contact .meta { margin-top: 18px; color: #93A89C; font-size: .95rem; }

/* Footer */
.site-footer { background: #0C1913; color: #93A89C; font-size: .88rem; padding: 32px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer img { height: 28px; width: auto; }
.site-footer a { color: #BCCCC3; }


/* Specialization strip */
.spec-strip { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.spec-strip li {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-light); border: 1px solid rgba(143,209,165,.35); border-radius: 999px; padding: 6px 12px;
}

/* Split layouts and figures */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.split .section-head { margin-bottom: 0; }
.split-test { align-items: start; margin-bottom: 0; grid-template-columns: 1.15fr 1fr; }
.fig { margin: 0; }
.fig img { width: 100%; height: auto; border-radius: 14px; }
.split-test .fig { margin-top: 28px; }

/* Problems we help solve */
.problems-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.problems { list-style: none; counter-reset: p; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.problems li { counter-increment: p; position: relative; padding: 16px 0 16px 44px; border-top: 1px solid var(--line); }
.problems li::before {
  content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 17px;
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--amber);
}
.problems h3 { font-size: 1.02rem; margin: 0 0 .25em; }
.problems p { margin: 0; color: var(--muted); font-size: .95rem; }
.fig-const { position: sticky; top: 96px; max-width: 340px; justify-self: end; }
.fig figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); line-height: 1.45; }

/* Service cards: summary list, details, page link */
.services .card { display: flex; flex-direction: column; }
.services details { margin-top: 8px; color: var(--muted); font-size: .93rem; }
.services summary { cursor: pointer; font-weight: 700; color: var(--teal); list-style: none; }
.services summary::-webkit-details-marker { display: none; }
.services summary::after { content: " +"; }
.services details[open] summary::after { content: " \2212"; }
.services details ul { margin-top: 6px; }
.more-link { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: .95rem; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* RF testing checklist */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.checks li { padding: 11px 0 11px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: .97rem; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg);
}
.note { margin-top: 18px; font-size: .88rem; color: var(--muted); }

/* RF engagement types */
.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.engage h3 { font-size: 1.05rem; }
.engage p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Founder photo, credentials, demos (templates) */
.about .portrait .photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about .portrait:has(.photo) { padding: 0; }
.creds { margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.creds div { border-top: 1px solid var(--line); padding: 10px 0; }
.creds dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.creds dd { margin: 2px 0 0; }
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; }
.demo dl { margin: 0; }
.demo dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-top: 12px; }
.demo dd { margin: 2px 0 0; color: var(--muted); }
.demo-fig { margin: 0; }

/* Sub-pages */
.hero-sub { padding: 56px 0 clamp(160px, 13vw, 250px); }
.hero-sub h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.crumbs { font-size: .88rem; margin-bottom: 18px; color: #93A89C; }
.crumbs a { color: #BCCCC3; text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.svc-block h2 { font-size: 1.3rem; }
.svc-block > p { color: var(--muted); }
.svc-block .checks { grid-template-columns: 1fr; }
.related { margin: 36px 0 0; color: var(--muted); }
.contact-slim { text-align: center; padding-top: 72px; }
.contact-slim .lead { margin: 0 auto 26px; }
.legal { padding: 64px 0 88px; }
.narrow { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.meta-date { color: var(--muted); }

/* Verification list */
.verify { margin-top: 32px; }
.verify ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.verify li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .93rem; }

/* Applications */
.subhead { margin: 56px 0 22px; font-size: 1.35rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.apps > div { border-top: 3px solid var(--teal-light); padding-top: 16px; }
.apps h4 { margin: 0 0 10px; font-size: 1rem; line-height: 1.3; }
.apps ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .93rem; }
.apps li { margin-bottom: .25em; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; text-align: left !important; align-items: start; }
.contact-copy .lead { margin: 0 0 28px; }
.direct { margin: 0 0 14px; display: flex; flex-direction: column; }
.direct span { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #93A89C; }
.direct a { color: var(--teal-light); font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.direct a:hover { color: var(--white); }
.contact-form { background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 28px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: .85rem; font-weight: 600; color: #CBD8D0; margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-size: .97rem; font-weight: 400;
  color: var(--white); background: #0F1F17; border: 1px solid #335240; border-radius: 8px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--teal-light); outline-offset: 1px; border-color: transparent; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .82rem; color: #93A89C; margin: 0 0 18px; }
.contact-form .btn { border: 0; cursor: pointer; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 14px 0 0; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--teal-light); }
.form-status.err { color: #F6B95F; }

/* Footer info */
.foot-info { display: flex; flex-direction: column; gap: 4px; text-align: right; }

/* Constellation notes */
.fig-notes { margin: 18px 0 0; font-size: .88rem; line-height: 1.45; }
.fig-notes div { border-top: 1px solid var(--line); padding: 9px 0; }
.fig-notes dt { display: inline; font-weight: 700; color: var(--ink); margin-right: .3em; }
.fig-notes dd { display: inline; margin: 0; color: var(--muted); }

/* Ways to start */
.start { margin-top: 8px; }
.start .lead { margin-top: -8px; margin-bottom: 0; }
.engage-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 26px; }
.engage-5 .card { padding: 18px; }
.engage-5 h3 { font-size: 1rem; }
.engage-5 p { font-size: .9rem; }
.engage-start .card { padding: 22px; }

/* About page */
.subhead-sm { font-size: 1.1rem; margin: 32px 0 12px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-top: 1px solid var(--line); padding: 10px 0; }
.timeline .when { display: inline-block; min-width: 110px; font-weight: 700; color: var(--teal); }
.muted { color: var(--muted); }
.facts-dl { grid-template-columns: repeat(3, 1fr); margin-top: 0; }

/* Demonstration pages (templates/demo.html) */
.demo-card img { width: 100%; height: auto; border-radius: 10px; margin-bottom: 14px; }
.demo-card { display: flex; flex-direction: column; }
.demo-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.demo-meta span { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 12px; font-size: .82rem; color: #CBD8D0; }
.demo-sec { max-width: 860px; }
.demo-sec + .demo-sec { margin-top: 48px; }
.demo-sec h2 { font-size: 1.45rem; }
.demo-sec figure { margin: 22px 0 0; }
.demo-sec figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.demo-sec figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.data-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .95rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.data-table td.num { font-variant-numeric: tabular-nums; }
.plot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.disclosure { margin-top: 40px; padding: 16px 18px; border-left: 3px solid var(--amber); background: var(--white); font-size: .9rem; color: var(--muted); }

/* Responsive */
@media (max-width: 1100px) {
  .nav a[href="#applications"], .nav a[href="#approach"] { display: none; }
}
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split-test, .contact-grid, .problems-grid, .svc-grid, .demo { grid-template-columns: 1fr; gap: 32px; }
  .fig-const { position: static; justify-self: start; max-width: 280px; }
  .engage { grid-template-columns: 1fr; }
  .facts-dl, .plot-grid, .engage-5 { grid-template-columns: 1fr 1fr; }
  .grid-3, .why { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .deliverables ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .brand img { height: 30px; }
  .hero-ridge { height: 150px; object-position: 68% bottom; }
  .ridge-strip { height: 70px; object-fit: cover; object-position: 80% bottom; }
  section { padding: 64px 0; }
  .hero { padding: 52px 0 160px; }
  #about { padding-bottom: 110px; }
  .contact { padding-bottom: 130px; }
  .grid-3, .grid-2, .grid-4, .why, .steps, .deliverables ul, .facts, .checks, .contact-form .row, .problems, .creds, .plot-grid { grid-template-columns: 1fr; }
  .hero-sub { padding: 48px 0 160px; }
  .contact-form .row { gap: 0; }
  .contact-form { padding: 20px; }
  .foot-info { text-align: left; }
  .engage-5 { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about .portrait { max-width: 160px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
