/* Northline PR — shared site styles */

:root {
  --ink: #0E1726;
  --ink-2: #18233A;
  --paper: #F4F0E8;
  --paper-2: #ECE6DA;
  --card: #FBF9F4;
  --muted: #5A6375;
  --line: rgba(14, 23, 38, .12);
  --line-strong: rgba(14, 23, 38, .24);
  --accent: #E0552F;
  --accent-deep: #B8401D;
  --accent-soft: #FF8A65;
  --on-dark: #EDE8DE;
  --on-dark-muted: #A3AAB8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-outline-light { border-color: rgba(255,255,255,.28); color: var(--on-dark); }
.btn-outline-light:hover { border-color: var(--on-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-outline-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-white:hover { border-color: #fff; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 3px; }
.text-link:hover { color: var(--accent-deep); }
.dark .text-link { color: #fff; }
.contact .text-link { color: #fff; border-color: var(--ink); }
.contact .text-link:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 240, 232, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.brand-name small { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .2em; margin-left: 6px; color: var(--accent-deep); vertical-align: middle; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--accent-deep); }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--accent-deep); box-shadow: inset 0 -1.5px 0 var(--accent); }
.nav-links .btn { padding: 11px 18px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1.5px solid var(--line-strong); border-radius: 50%;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s, background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 110px) 0 clamp(64px, 8vw, 110px); }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(600px 380px at 85% 20%, rgba(224, 85, 47, .10), transparent 70%),
    repeating-linear-gradient(to bottom, transparent 0 63px, rgba(14, 23, 38, .045) 63px 64px);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 {
  font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 144;
  font-size: clamp(46px, 7.2vw, 96px); line-height: .98; letter-spacing: -.028em; margin: 0 0 26px;
}
h1 em, h2 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 34em; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 40px 0 0; padding: 0; font-size: 14.5px; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Newswire card */
.wire {
  background: var(--ink); color: var(--on-dark); border-radius: 22px; padding: 22px 24px 8px;
  box-shadow: 0 40px 70px -40px rgba(14, 23, 38, .65), 0 2px 0 rgba(255,255,255,.04) inset;
}
.wire-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted);
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.wire-head .title { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); }
.wire-head .title svg { width: 20px; height: 20px; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-soft); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.wire ol { list-style: none; margin: 0; padding: 0; }
.wire li {
  display: grid; grid-template-columns: 50px 1fr auto; gap: 14px; align-items: start;
  padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.wire li:last-child { border-bottom: 0; }
.wire time { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--on-dark-muted); padding-top: 2px; }
.wire p { margin: 0; font-size: 15px; line-height: 1.45; }
.tag {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--on-dark-muted);
}
.tag.hot { background: var(--accent); color: #fff; }
.wire-foot { font-size: 12px; color: var(--on-dark-muted); padding: 12px 0 14px; border-top: 1px solid rgba(255,255,255,.1); margin: 0; }

.js .wire li { opacity: 0; transform: translateY(8px); animation: wireIn .5s ease forwards; }
.js .wire li:nth-child(1) { animation-delay: .25s; }
.js .wire li:nth-child(2) { animation-delay: .55s; }
.js .wire li:nth-child(3) { animation-delay: .85s; }
.js .wire li:nth-child(4) { animation-delay: 1.15s; }
.js .wire li:nth-child(5) { animation-delay: 1.45s; }
@keyframes wireIn { to { opacity: 1; transform: none; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding: clamp(48px, 7vw, 100px) 0 clamp(48px, 6vw, 84px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 88px); max-width: 13em; }
.page-hero .lede { max-width: 38em; margin-bottom: 0; }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 24px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs .sep { color: var(--accent); }
.chip-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 0; list-style: none; }
.chip-index a {
  display: inline-block; font-size: 14px; font-weight: 500; padding: 9px 15px;
  border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; background: rgba(251, 249, 244, .6);
}
.chip-index a:hover { border-color: var(--ink); background: var(--card); }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex; align-items: center; gap: 34px; padding: 22px 34px 22px 0; margin: 0; list-style: none;
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.6vw, 32px); white-space: nowrap;
}
.ticker-group .sep { color: var(--accent); font-style: normal; font-size: .7em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
[id] { scroll-margin-top: 88px; }
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section.tint { background: var(--paper-2); }
.section.tight-top { padding-top: clamp(28px, 4vw, 48px); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > p { color: var(--muted); font-size: 18px; margin: 0; max-width: 34em; }
.section-foot { margin-top: 40px; }
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep);
}
.kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
h2 {
  font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 144;
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.022em; margin: 0;
}

/* Bordered cell grids (services on home, values, measures) */
.services, .cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; }
.cells.four { grid-template-columns: repeat(4, 1fr); }
.service, .cell { background: var(--paper); padding: 34px 30px 38px; transition: background .25s; }
.tint .cell { background: var(--paper-2); }
.service:hover, .cell:hover { background: var(--card); }
.num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent-deep); }
.service h3, .cell h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; margin: 18px 0 10px; }
.service p, .cell p { color: var(--muted); font-size: 16px; margin: 0 0 20px; }
.cell p { margin: 0; }
.service ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.service li { font-size: 12.5px; font-weight: 500; padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); }
a.service { text-decoration: none; color: inherit; display: block; }
a.service .more { display: inline-flex; gap: 6px; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--accent-deep); }

/* Method steps (home) */
.method { background: var(--paper-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 0; top: 22px; height: 1.5px; background: var(--ink); }
.steps::after {
  content: ""; position: absolute; right: -2px; top: 17px;
  border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.step-n {
  position: relative; z-index: 1; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; background: var(--paper-2); border: 1.5px solid var(--ink);
  font-family: var(--serif); font-style: italic; font-size: 16px;
}
.steps li:last-child .step-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; margin: 24px 0 8px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }

/* Engagements (dark) */
.dark { background: var(--ink); color: var(--on-dark); }
.dark h2 { color: #fff; }
.dark .kicker { color: var(--accent-soft); }
.dark .section-head > p { color: var(--on-dark-muted); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 34px 30px; border-radius: 20px; background: var(--ink-2); border: 1px solid rgba(255,255,255,.1); }
.plan.featured { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.plan-meta { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); display: flex; justify-content: space-between; gap: 12px; }
.plan.featured .plan-meta { color: var(--muted); }
.plan .badge { color: var(--accent-deep); }
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 38px; letter-spacing: -.02em; margin: 16px 0 10px; line-height: 1; }
.plan .for { margin: 0; font-size: 16px; color: var(--on-dark-muted); }
.plan.featured .for { color: var(--muted); }
.plan ul { list-style: none; margin: 24px 0 30px; padding: 22px 0 0; display: grid; gap: 11px; border-top: 1px solid rgba(255,255,255,.1); }
.plan.featured ul { border-top-color: var(--line); }
.plan li { position: relative; padding-left: 24px; font-size: 15.5px; line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: 0; top: .66em; width: 12px; height: 1.5px; background: var(--accent); }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* Ruled rows (sectors, working rhythm) */
.sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1px solid var(--ink); }
.sectors li { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 26px 0; border-bottom: 1px solid var(--line-strong); }
.sectors h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; margin: 0; }
.sectors p { grid-column: 1; margin: 0; color: var(--muted); font-size: 16px; }
.sectors .idx { grid-row: 1 / span 2; grid-column: 2; font-family: var(--serif); font-style: italic; color: var(--accent-deep); font-size: 15px; padding-top: 4px; }
.sectors.single { grid-template-columns: 1fr; }

/* Principle quote */
.principle { text-align: center; padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.needle { width: 44px; margin: 0 auto 34px; color: var(--ink); }
blockquote { margin: 0 auto; max-width: 1000px; }
blockquote p {
  font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(36px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.025em; margin: 0 auto; max-width: 13em;
}
blockquote em { font-style: italic; color: var(--accent); font-weight: 400; }
blockquote footer { margin-top: 28px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* FAQ */
.faq { background: var(--paper-2); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px 72px; align-items: start; }
.faq-grid .intro p:not(.kicker) { color: var(--muted); margin: 20px 0 0; max-width: 26em; }
.faq-list { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--line-strong); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); font-weight: 500; line-height: 1.25;
}
summary::-webkit-details-marker { display: none; }
summary .plus { position: relative; width: 28px; height: 28px; flex: none; border: 1.5px solid var(--line-strong); border-radius: 50%; transition: transform .25s, background .25s, border-color .25s; }
summary .plus::before, summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] summary .plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
details[open] summary .plus::before, details[open] summary .plus::after { background: #fff; }
summary:hover { color: var(--accent-deep); }
details > p { margin: -6px 0 26px; color: var(--muted); max-width: 40em; }

/* Contact band (home) and CTA band (inner pages) */
.contact { background: var(--accent); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px 72px; align-items: center; }
.contact .kicker { color: #fff; opacity: .85; }
.contact h2 { color: #fff; }
.contact h2 em { color: var(--ink); }
.contact-grid > div > p:not(.kicker) { font-size: 18px; margin: 24px 0 0; max-width: 30em; color: rgba(255,255,255,.9); }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 48px; }
.cta-inner h2 { max-width: 13em; }

.contact-card { background: var(--ink); color: var(--on-dark); border-radius: 22px; padding: clamp(28px, 4vw, 40px); }
.contact-card .label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 10px; }
.contact-card .mail { display: inline-block; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); color: #fff; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; word-break: break-word; }
.contact-card .mail:hover { color: var(--accent-soft); }
.contact-card ol { list-style: none; counter-reset: c; margin: 26px 0 30px; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 12px; }
.contact-card ol:last-child { margin-bottom: 0; }
.contact-card li { counter-increment: c; display: grid; grid-template-columns: 26px 1fr; font-size: 15.5px; }
.contact-card li::before { content: counter(c, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--accent-soft); font-size: 14px; padding-top: 1px; }

/* ---------- Prose & split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px 72px; align-items: start; }
.split h2 + .lede { margin: 20px 0 0; }
.prose p { font-size: 18px; color: var(--ink-2); margin: 0 0 20px; max-width: 38em; }
.prose p:last-child { margin-bottom: 0; }
.prose p.big { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.checks.one { grid-template-columns: 1fr; }
.checks li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.45; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.mini-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 34px); }
.prose + .panel { margin-top: 32px; }

/* About: what we won't do */
.nots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1px solid rgba(255,255,255,.18); }
.nots li { position: relative; padding: 26px 0 26px 46px; border-bottom: 1px solid rgba(255,255,255,.1); }
.nots li::before {
  content: "✕"; position: absolute; left: 0; top: 28px; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--accent-soft); color: var(--accent-soft); font-size: 11px; display: grid; place-items: center;
}
.nots h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; margin: 0 0 6px; color: #fff; }
.nots p { margin: 0; color: var(--on-dark-muted); font-size: 16px; }

/* Services page: detailed service rows */
.svc { display: grid; grid-template-columns: .9fr 1.4fr; gap: 28px 72px; padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line-strong); }
.svc:first-child { border-top-color: var(--ink); }
.svc h2 { font-size: clamp(32px, 3.6vw, 48px); margin-top: 14px; }
.svc .best { margin: 22px 0 0; font-size: 15.5px; color: var(--muted); max-width: 24em; }
.svc .best strong { color: var(--ink); font-weight: 600; }
.svc-body .prose { margin-bottom: 32px; }

.addons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.addon { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; }
.addon h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; margin: 0 0 8px; }
.addon p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Approach page: phases */
.phases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.phase { display: grid; grid-template-columns: 170px 1.2fr 1fr; gap: 20px 56px; padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--line-strong); }
.phase-mark { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.phase-mark .step-n { background: var(--paper); }
.phase:last-child .step-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.phase .when { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
.phase h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 12px; }
.phase p { color: var(--muted); margin: 0; font-size: 17px; }

/* Contact page */
.contact-page-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 48px 64px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .pills legend { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--card);
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230E1726' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(224, 85, 47, .16); }
.pills { border: 0; margin: 0; padding: 0; min-width: 0; }
.pills legend { padding: 0; margin-bottom: 10px; }
.pills .options { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span {
  display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  font-size: 15px; font-weight: 500; cursor: pointer; background: var(--card); transition: background .2s, color .2s, border-color .2s;
}
.pills label:hover span { border-color: var(--ink); }
.pills input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; max-width: 30em; }
.form-status { font-size: 15px; font-weight: 500; margin: 0; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--ink); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 14px 18px; }
.form-status.is-error { color: #A8321A; }
.btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.side-stack { display: grid; gap: 20px; }
.side-stack .contact-card .mail { font-size: clamp(20px, 1.8vw, 24px); }
.side-stack .panel h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 8px; }
.side-stack .panel p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: 15px; }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand-name small { color: var(--accent-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid p { margin: 16px 0 0; max-width: 22em; }
.footer-grid h4 { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--on-dark); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13.5px; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .wire { max-width: 560px; }
  .services, .cells { grid-template-columns: repeat(2, 1fr); }
  .cells.four { grid-template-columns: repeat(2, 1fr); }
  .addons { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 620px; }
  .phase { grid-template-columns: 140px 1fr; }
  .phase > :last-child { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links a[aria-current="page"] { box-shadow: none; }
  .nav-links li:last-child { padding-top: 16px; }
  .section-head, .faq-grid, .contact-grid, .split, .svc, .contact-page-grid { grid-template-columns: 1fr; }
  .sectors, .nots { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before { left: 21px; right: auto; top: 22px; bottom: 0; width: 1.5px; height: auto; }
  .steps::after { display: none; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; }
  .steps .step-n { grid-row: span 2; }
  .steps h3 { margin: 8px 0 6px; }
  .phase { grid-template-columns: 1fr; }
  .phase > :last-child { grid-column: auto; }
  .phase-mark { flex-direction: row; align-items: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .services, .cells, .cells.four, .addons { grid-template-columns: 1fr; }
  .service, .cell { padding: 28px 22px 32px; }
  .wire { padding: 18px 18px 6px; border-radius: 18px; }
  .wire li { grid-template-columns: 44px 1fr; gap: 6px 12px; }
  .wire .tag { grid-column: 2; justify-self: start; }
  .plan { padding: 28px 22px; }
  .checks { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
}

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