:root {
  --paper: #f7f8f7;
  --white: #fff;
  --ink: #17202a;
  --text: #34404b;
  --muted: #64727d;
  --teal: #123d4a;
  --teal-deep: #0d303b;
  --blue-soft: #e8f0f3;
  --sand: #f7efe3;
  --green-soft: #edf3ee;
  --orange: #cf8445;
  --line: #dce3e5;
  --line-strong: #b8c8ce;
  --shadow: 0 18px 48px rgba(23, 42, 50, .08);
  --font-body: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-mono: Consolas, "Liberation Mono", monospace;
  --shell: 1380px;
  --page: clamp(20px, 4vw, 64px);
  --space-section: clamp(76px, 8vw, 128px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .65, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--text); font: 17px/1.65 var(--font-body); text-rendering: optimizeLegibility; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, blockquote { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.045em; line-height: 1.04; }
h2 { font-size: clamp(38px, 4.3vw, 67px); }
h3 { line-height: 1.17; }
em { font-style: normal; color: var(--teal); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: calc(100% - 2 * var(--page)); max-width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 110; top: 12px; left: 12px; padding: 12px 16px; transform: translateY(-180%); background: var(--teal); color: var(--white); }
.skip-link:focus { transform: translateY(0); }
.kicker { margin-bottom: 20px; color: var(--teal); font: 700 12px/1.4 var(--font-body); letter-spacing: .17em; text-transform: uppercase; }
.kicker::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 12px; background: var(--orange); }
.section { padding-block: var(--space-section); }
.section-intro > p:not(.kicker), .section-heading p:not(.kicker) { max-width: 660px; color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 42px; }
.section-heading h2 { max-width: 940px; margin-bottom: 0; }
.text-link { display: inline-flex; gap: 18px; align-items: center; flex: none; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); color: var(--teal); font-size: 14px; font-weight: 700; }
.text-link:hover { border-color: var(--orange); color: var(--teal-deep); }

/* Navigation */
.site-header { position: sticky; z-index: 50; top: 0; height: 78px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(22,48,57,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 13px; }
.brand-logo { width: 48px; height: 36px; object-fit: contain; }
.brand-lockup { display: grid; gap: 1px; }
.brand-name { color: var(--ink); font-size: 19px; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.brand-lockup small { color: var(--muted); font: 700 8px/1.4 var(--font-body); letter-spacing: .13em; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 2.1vw, 34px); margin-left: auto; }
.nav-links a { position: relative; padding: 25px 0; color: var(--text); font-size: 14px; white-space: nowrap; }
.nav-links a::after { position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; content: ""; transform: scaleX(0); transform-origin: left; background: var(--teal); transition: transform .25s var(--ease); }
.nav-links a:hover::after, .nav-links a.is-active::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta, .btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; gap: 18px; padding: 12px 22px; border: 1px solid var(--teal); border-radius: var(--radius); font-size: 14px; font-weight: 700; line-height: 1.2; transition: background .2s, border-color .2s, transform .2s, color .2s; }
.nav-cta, .btn-dark { background: var(--teal); color: var(--white); }
.nav-cta:hover, .btn-dark:hover { transform: translateY(-2px); background: var(--teal-deep); }
.btn-light { background: rgba(255,255,255,.88); color: var(--teal); }
.btn-light:hover { background: var(--blue-soft); }
.nav-toggle { display: none; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink); padding: 9px 14px; font-weight: 700; }

/* Home hero */
.hero { padding: clamp(76px, 8vw, 128px) 0 0; background: linear-gradient(105deg, #fff 0%, #f8faf9 56%, #edf3f4 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: clamp(28px, 5vw, 82px); min-height: 550px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 50px; }
.hero h1 { max-width: 800px; margin-bottom: 24px; font-size: clamp(52px, 5.35vw, 84px); }
.hero .lead { max-width: 660px; margin-bottom: 30px; color: var(--text); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.57; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; align-self: stretch; min-width: 0; min-height: 500px; margin: 0; overflow: hidden; background: #f0f4f4; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.hero-media::after { position: absolute; inset: auto 0 0; height: 35%; content: ""; background: linear-gradient(transparent, rgba(13,48,59,.68)); pointer-events: none; }
.hero-media figcaption { position: absolute; z-index: 1; right: 32px; bottom: 28px; left: 32px; display: grid; gap: 8px; color: var(--white); }
.hero-media figcaption span { font: 700 10px/1.2 var(--font-mono); letter-spacing: .16em; }
.hero-media figcaption strong { max-width: 400px; font: 400 clamp(20px, 2vw, 28px)/1.17 var(--font-display); }
.hero-service-line { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; min-height: 70px; border-top: 1px solid var(--line); color: var(--text); font-size: 12px; font-weight: 650; }
.hero-service-line i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }

/* Three services */
.services-section { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-tile { position: relative; display: flex; flex-direction: column; min-height: 430px; overflow: hidden; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.service-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-tile--diagnosis { background: linear-gradient(145deg, #fcf8f2, #f4eadd); }
.service-tile--infrastructure { background: linear-gradient(145deg, #f3f8fa, #e7f0f3); }
.service-tile--software { background: linear-gradient(145deg, #f3f7f2, #e6efe8); }
.service-tile::before { position: absolute; top: 17%; right: -9%; width: 55%; aspect-ratio: 1; border: 1px solid rgba(18,61,74,.1); border-radius: 50%; content: ""; box-shadow: 0 0 0 28px rgba(255,255,255,.14), 0 0 0 57px rgba(255,255,255,.11); }
.service-tile__top { position: relative; display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.pill { padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.65); color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.service-tile__number { color: rgba(18,61,74,.42); font: 400 32px/1 var(--font-display); }
.service-tile__symbol { display: grid; place-items: center; width: 60px; height: 60px; margin: 42px 0 22px; border: 1px solid rgba(18,61,74,.16); border-radius: 50%; background: rgba(255,255,255,.48); color: var(--teal); font: 37px/1 var(--font-display); }
.service-tile h3 { position: relative; max-width: 390px; margin-bottom: 14px; font: 400 clamp(28px, 2.65vw, 40px)/1.08 var(--font-display); letter-spacing: -.035em; }
.service-tile p { position: relative; max-width: 440px; margin-bottom: 26px; color: var(--text); font-size: 15px; line-height: 1.55; }
.service-tile > a { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: auto; padding-top: 17px; border-top: 1px solid rgba(18,61,74,.2); color: var(--teal); font-size: 14px; font-weight: 750; }
.service-tile > a:hover { color: var(--orange); }

/* Integrated view */
.approach-section { background: #f8faf9; }
.approach-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(410px, 1.1fr) minmax(160px, .38fr); align-items: center; gap: clamp(20px, 3vw, 46px); }
.approach-copy h2 { max-width: 530px; margin-bottom: 24px; }
.approach-copy p:not(.kicker) { max-width: 510px; margin-bottom: 28px; color: var(--muted); }
.system-model { position: relative; width: min(100%, 560px); min-height: 470px; margin-inline: auto; }
.system-model__orbit { position: absolute; inset: 15% 19%; border: 1px dashed var(--line-strong); border-radius: 50%; }
.system-model__center { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; place-items: center; width: 168px; height: 168px; transform: translate(-50%, -39%); border-radius: 50%; background: var(--teal); color: var(--white); text-align: center; font: 400 27px/1.12 var(--font-display); box-shadow: 0 0 0 13px rgba(18,61,74,.07); }
.system-model__part { position: absolute; display: grid; place-content: center; gap: 5px; width: 172px; height: 172px; padding: 22px; border: 1px solid rgba(18,61,74,.13); border-radius: 50%; background: rgba(220,235,240,.68); color: var(--teal); text-align: center; }
.system-model__part span { font-size: 14px; font-weight: 800; letter-spacing: .1em; }
.system-model__part strong { font-size: 13px; font-weight: 500; line-height: 1.35; }
.system-model__part--process { top: 0; left: 50%; transform: translateX(-50%); }
.system-model__part--infrastructure { bottom: 0; left: 3%; }
.system-model__part--software { right: 3%; bottom: 0; }
.approach-quote { align-self: center; margin: 0; padding-left: 18px; border-left: 2px solid var(--orange); color: var(--teal); font: italic 23px/1.3 var(--font-display); }

/* Method */
.home-method { background: var(--white); }
.home-method__intro { display: grid; grid-template-columns: minmax(0, .95fr) minmax(280px, .5fr); align-items: end; gap: 35px; margin-bottom: 52px; }
.home-method__intro .kicker { grid-column: 1 / -1; margin-bottom: -13px; }
.home-method__intro h2, .home-method__intro p:last-child { margin-bottom: 0; }
.home-method__intro p:last-child { color: var(--muted); }
.home-method__board { position: relative; overflow: hidden; padding: 42px 38px 58px; border: 1px solid var(--line); background-color: #fbfcfb; background-image: linear-gradient(rgba(18,61,74,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(18,61,74,.045) 1px, transparent 1px); background-size: 36px 36px; }
.home-method__board-label { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 54px; color: var(--muted); font: 700 10px/1.2 var(--font-mono); letter-spacing: .1em; }
.home-method__timeline { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.home-method__timeline::before { position: absolute; top: 27px; right: 0; left: 0; height: 2px; content: ""; background: var(--orange); }
.home-method__step { position: relative; min-width: 0; padding-top: 62px; list-style: none; }
.home-method__step::marker { content: ""; }
.home-method__node { position: absolute; top: 18px; left: 0; width: 20px; height: 20px; border: 4px solid var(--orange); border-radius: 50%; background: var(--white); transition: background .25s; }
.home-method__step:hover .home-method__node { background: var(--orange); }
.home-method__connector { position: absolute; top: 36px; left: 9px; height: 26px; border-left: 1px solid var(--orange); }
.home-method__number { display: block; margin-bottom: 12px; color: var(--orange); font: 700 12px/1 var(--font-mono); }
.home-method__module h3 { margin-bottom: 10px; color: var(--teal); font: 400 26px/1.1 var(--font-display); }
.home-method__module p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.48; }

/* Work, insights, founder */
.work-section { background: var(--blue-soft); }
.work-layout, .insights-layout { display: grid; grid-template-columns: minmax(250px, .5fr) minmax(0, 1.5fr); gap: clamp(28px, 4vw, 60px); }
.work-layout .section-intro h2, .insights-layout .section-intro h2 { font-size: clamp(37px, 3.7vw, 56px); }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.work-card { display: flex; flex-direction: column; min-height: 294px; padding: 21px; border: 1px solid var(--line); background: var(--white); }
.work-card__mark { margin-bottom: 56px; color: var(--orange); font: 700 12px/1.4 var(--font-mono); }
.work-card h3 { margin-bottom: 9px; font: 400 23px/1.15 var(--font-display); }
.work-card p { margin-bottom: 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.work-card a, .insight-card a { margin-top: auto; color: var(--teal); font-size: 13px; font-weight: 750; }
.work-card a:hover, .insight-card a:hover { color: var(--orange); }
.insights-section { background: var(--white); }
.insights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.insight-card { display: flex; flex-direction: column; min-height: 295px; padding: 24px; border: 1px solid var(--line); background: #fbfcfb; }
.insight-card span { display: block; margin-bottom: 58px; color: var(--orange); font: 700 11px/1.2 var(--font-mono); }
.insight-card h3 { margin-bottom: 12px; font: 400 25px/1.18 var(--font-display); }
.insight-card p { margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.founder-section { background: #f3f5f4; }
.founder-grid { display: grid; grid-template-columns: minmax(280px, .68fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 7vw, 110px); }
.founder-photo { margin: 0; overflow: hidden; background: var(--teal); }
.founder-photo img { width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; filter: grayscale(1); }
.founder-copy h2 { margin-bottom: 28px; }
.founder-copy p { max-width: 680px; }
.founder-copy blockquote { max-width: 700px; margin: 32px 0; padding-left: 23px; border-left: 2px solid var(--orange); color: var(--teal); font: italic 26px/1.35 var(--font-display); }
.signature { color: var(--ink); font-weight: 800; }
.signature span { color: var(--muted); font-weight: 500; }
.cta-section { padding: clamp(80px, 9vw, 140px) 0; background: linear-gradient(115deg, #e9f0f2, #f8f9f7 55%, #f4ecdf); }
.cta-box { max-width: 940px; text-align: center; }
.cta-box .kicker::before { margin-inline: auto; }
.cta-box h2 { margin-bottom: 22px; }
.cta-box p:not(.kicker) { max-width: 660px; margin: 0 auto 27px; }
.faq-section { padding: var(--space-section) 0; background: var(--white); }
.faq-section h2 { margin-bottom: 35px; }
.faq-section details { border-top: 1px solid var(--line); padding: 21px 0; }
.faq-section details:last-child { border-bottom: 1px solid var(--line); }
.faq-section summary { cursor: pointer; color: var(--ink); font-size: 20px; font-weight: 650; }
.faq-section summary:hover { color: var(--teal); }
.faq-section details p { max-width: 780px; margin: 15px 0 0; color: var(--muted); }
.footer { padding: 54px 0 24px; border-top: 1px solid var(--line); background: #edf1f1; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 35px; }
.footer-grid > div:first-child { display: contents; }
.footer strong { color: var(--teal); font-size: 20px; }
.footer p { grid-column: 1 / -1; grid-row: 2; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.footer-links { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-content: start; gap: 12px 24px; }
.footer-links a { font-size: 14px; }
.footer-links a:hover { color: var(--orange); }

/* Service pages extend the v3 visual language. */
.service-hero { padding: clamp(80px, 9vw, 135px) 0; background: linear-gradient(110deg, #fff, #eef4f5); }
.service-hero__grid, .software-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .88fr); align-items: center; gap: clamp(36px, 5vw, 80px); }
.service-hero h1 { max-width: 850px; margin-bottom: 26px; font-size: clamp(52px, 5.5vw, 82px); }
.service-hero .lead { max-width: 700px; margin-bottom: 32px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.56; }
.split-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr); align-items: end; gap: clamp(32px, 5vw, 80px); margin-bottom: 38px; }
.split-intro h2 { max-width: 850px; margin-bottom: 0; }
.split-intro > p, .split-intro > div > p { color: var(--muted); }
.infrastructure-layers { margin: 0; padding: 27px; border: 1px solid var(--line-strong); background: #f7fbfb; }
.infrastructure-layers figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 18px; color: var(--teal); font-size: 17px; font-weight: 700; }
.infrastructure-layers figcaption span { color: var(--muted); font: 700 10px/1.4 var(--font-mono); letter-spacing: .04em; text-align: right; }
.infrastructure-layers ol { position: relative; display: grid; gap: 5px; margin: 0; padding: 0 0 0 21px; list-style: none; }
.infrastructure-layers ol::before { position: absolute; top: 22px; bottom: 22px; left: 7px; width: 2px; background: var(--orange); content: ""; }
.infrastructure-layers li { position: relative; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 49px; padding: 8px 12px; border: 1px solid var(--line); background: var(--white); }
.infrastructure-layers li::before { position: absolute; top: calc(50% - 4px); left: -18px; width: 8px; height: 8px; border: 2px solid var(--orange); border-radius: 50%; background: #f7fbfb; content: ""; }
.infrastructure-layers li span { color: var(--orange); font: 700 11px/1 var(--font-mono); }
.infrastructure-layers li strong { color: var(--teal); font-size: 15px; line-height: 1.25; }
.infrastructure-layers li small { color: var(--muted); font-size: 11px; text-align: right; }
.infrastructure-layers li:last-child { border-color: var(--orange); }
.infrastructure-layers > p { margin: 17px 0 0; color: var(--muted); font-size: 13px; }
.infrastructure-signals { background: var(--white); }
.signal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; }
.signal-list p { position: relative; min-height: 84px; margin: 0; padding: 20px 20px 20px 36px; border-top: 1px solid var(--line); color: var(--ink); font-size: 18px; }
.signal-list p::before { position: absolute; top: 31px; left: 5px; width: 14px; height: 14px; border: 2px solid var(--orange); border-radius: 50%; content: ""; }
.infrastructure-scope { background: var(--blue-soft); }
.scope-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.scope-grid article { min-height: 230px; padding: 25px; border: 1px solid var(--line); background: var(--white); }
.scope-grid span { display: block; margin-bottom: 28px; color: var(--orange); font: 700 11px var(--font-mono); }
.scope-grid h3 { margin-bottom: 10px; font: 400 24px/1.16 var(--font-display); }
.scope-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.infrastructure-path { background: var(--white); }
.architecture-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; margin-block: 0; padding: 0; list-style: none; }
.architecture-flow li { position: relative; min-height: 116px; padding: 19px; border-top: 3px solid var(--orange); background: var(--paper); color: var(--teal); font: 400 22px/1.2 var(--font-display); }
.architecture-flow li span { display: block; margin-bottom: 13px; color: var(--orange); font: 700 11px/1 var(--font-mono); }
.independence-section { background: var(--teal); color: var(--white); }
.independence-layout { display: grid; grid-template-columns: minmax(180px, .4fr) minmax(0, 1fr); gap: 45px; align-items: start; }
.independence-section .kicker { color: #d1e3e4; }
.independence-section h2 { max-width: 920px; color: var(--white); }
.independence-section em { color: #d1e3e4; }
.independence-section p:last-child { max-width: 760px; color: #e4eced; font-size: 20px; }
.infrastructure-outcomes { background: var(--paper); }
.output-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.output-grid span { min-height: 98px; padding: 22px; border: 1px solid var(--line); background: var(--white); color: var(--teal); font-weight: 650; }

/* Software page uses a different rhythm: composition, choices and flow. */
.software-hero { background: linear-gradient(110deg, #fff, #f4f7f2); }
.product-map { display: grid; align-content: space-between; gap: 21px; min-height: 475px; padding: 34px; border: 1px solid var(--line-strong); background: #eef4ee; }
.product-map > span { color: var(--teal); font: 700 11px var(--font-mono); letter-spacing: .1em; }
.product-map__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-map__row b { padding: 18px 14px; border: 1px solid var(--line-strong); background: var(--white); color: var(--teal); font: 700 12px/1.3 var(--font-body); letter-spacing: .07em; text-align: center; }
.product-map > strong { display: block; padding: 19px; background: var(--teal); color: var(--white); font-size: 18px; letter-spacing: .06em; text-align: center; }
.software-principle { background: var(--teal); color: var(--white); }
.principle-layout { display: grid; grid-template-columns: minmax(160px, .38fr) minmax(0, 1fr); gap: 45px; }
.software-principle .kicker { color: #d1e3e4; }
.software-principle h2 { max-width: 990px; color: var(--white); }
.software-principle em { color: #d1e3e4; }
.software-principle p:last-child { max-width: 800px; color: #e4eced; font-size: 20px; }
.software-process { background: var(--white); }
.development-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: 0; padding: 0; list-style: none; }
.development-flow li { display: flex; align-items: center; gap: 15px; min-height: 75px; padding: 16px 21px; border: 1px solid var(--line); background: var(--paper); color: var(--teal); font-size: 18px; font-weight: 650; }
.development-flow span { color: var(--orange); font: 700 12px var(--font-mono); }
.software-solutions { background: var(--paper); }
.solution-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.solution-grid span { min-height: 118px; padding: 20px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 400 22px/1.15 var(--font-display); }
.build-choice { background: var(--white); }
.build-choice > .shell > p:not(.kicker) { max-width: 700px; margin-bottom: 38px; color: var(--muted); }
.build-choice h2 { max-width: 940px; }
.choice-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.choice-options article { min-height: 235px; padding: 23px; border: 1px solid var(--line); background: var(--paper); }
.choice-options span { display: block; margin-bottom: 55px; color: var(--orange); font: 700 11px var(--font-mono); }
.choice-options h3 { font: 400 25px/1.13 var(--font-display); }
.choice-options p { color: var(--muted); font-size: 14px; }
.system-design { background: var(--blue-soft); }
.design-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.design-chain li { display: flex; align-items: center; gap: 10px; color: var(--teal); font-size: 15px; font-weight: 750; }
.design-chain li:not(:last-child)::after { content: "→"; color: var(--orange); font-size: 22px; }
.design-chain li:last-child { padding: 13px 18px; border: 1px solid var(--teal); }
.development-principles { background: var(--white); }
.development-principles ul { columns: 2; gap: 35px; margin: 0; padding-left: 21px; }
.development-principles li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* General contact: separate from the diagnosis modal. */
.contact-hero { padding: clamp(80px, 9vw, 130px) 0 clamp(65px, 7vw, 105px); background: linear-gradient(110deg, #fff, #eaf1f2); }
.contact-hero h1 { max-width: 920px; font-size: clamp(53px, 5.6vw, 84px); }
.contact-hero .lead { max-width: 750px; margin-bottom: 0; font-size: clamp(18px, 1.6vw, 22px); }
.contact-section { background: var(--white); }
.contact-layout { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); align-items: start; gap: clamp(30px, 6vw, 100px); }
.contact-aside h2 { font-size: clamp(36px, 3.4vw, 52px); }
.contact-aside > p:not(.kicker) { color: var(--muted); }
.contact-topics { display: grid; margin: 35px 0; }
.contact-topics a { padding: 14px 0; border-top: 1px solid var(--line); color: var(--teal); font-weight: 700; }
.contact-topics a:last-child { border-bottom: 1px solid var(--line); }
.contact-note { padding-left: 18px; border-left: 2px solid var(--orange); font-size: 14px; }
.contact-note a { color: var(--teal); text-decoration: underline; }
.contact-card { padding: clamp(27px, 4vw, 54px); border: 1px solid var(--line); background: var(--paper); }
.contact-card h2 { margin-bottom: 8px; font-size: 43px; }
.contact-card p { color: var(--muted); }
.contact-form { margin-top: 28px; }
.contact-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.contact-form__wide { grid-column: 1 / -1; }
.contact-form label { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 49px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--white); color: var(--ink); font-size: 16px; font-weight: 400; }
.contact-form textarea { min-height: 170px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid rgba(18,61,74,.2); border-color: var(--teal); }
.contact-form [aria-invalid="true"] { border-color: #a74d3d; }
.contact-form > .btn { margin-top: 22px; }
.contact-form__error { margin: 20px 0 0; padding: 14px 17px; border-left: 3px solid #a74d3d; background: #fff1ee; color: #79382d !important; }
.contact-form button[disabled] { opacity: .65; cursor: wait; }
.contact-success { padding: 35px 0; }
.contact-success > span { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 23px; border-radius: 50%; background: var(--teal); color: var(--white); font-size: 28px; }

@media (max-width: 1180px) {
  .scope-grid, .output-grid, .choice-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .architecture-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .solution-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .service-hero__grid, .software-hero__grid, .split-intro, .independence-layout, .principle-layout, .contact-layout { grid-template-columns: 1fr; }
  .infrastructure-layers, .product-map { max-width: 650px; width: 100%; }
  .architecture-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .development-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .service-hero h1, .contact-hero h1 { font-size: clamp(43px, 11vw, 60px); }
  .infrastructure-layers { padding: 19px; }
  .infrastructure-layers figcaption { display: grid; font-size: 16px; }
  .infrastructure-layers figcaption span { text-align: left; }
  .infrastructure-layers li { grid-template-columns: 23px minmax(0, 1fr); }
  .infrastructure-layers li strong { font-size: 14px; }
  .infrastructure-layers li small { display: none; }
  .product-map { min-height: 390px; padding: 20px; }
  .signal-list, .scope-grid, .output-grid, .solution-grid, .choice-options, .contact-form__grid { grid-template-columns: 1fr; }
  .contact-form__wide { grid-column: auto; }
  .architecture-flow, .development-flow { grid-template-columns: 1fr; }
  .architecture-flow li, .development-flow li { min-height: 70px; }
  .development-principles ul { columns: 1; }
  .contact-card { padding: 26px 20px; }
}

/* Existing content pages share the same editorial system. */
.page-main { min-height: 70vh; }
.page-hero { padding: clamp(90px, 10vw, 150px) 0 clamp(70px, 8vw, 116px); border-bottom: 1px solid var(--line); background: linear-gradient(115deg, #fff, #eaf1f2); }
.page-hero h1 { max-width: 950px; margin-bottom: 25px; font-size: clamp(53px, 6vw, 88px); }
.page-hero .lead { max-width: 800px; margin-bottom: 30px; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.55; }
.content-section { padding: var(--space-section) 0; border-bottom: 1px solid var(--line); background: var(--white); }
.content-section:nth-of-type(odd) { background: var(--paper); }
.two-column { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); gap: clamp(30px, 6vw, 90px); }
.content-stack { display: grid; gap: 20px; }
.content-stack article { padding: 26px 0; border-top: 1px solid var(--line); }
.content-stack h3 { font: 400 29px/1.15 var(--font-display); }
.card-grid, .step-grid, .page-card-grid, .process-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.card-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid article, .step-grid article, .page-card, .method-card, .process-list article { padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); background: var(--white); }
.card-grid article h3, .step-grid article h3, .page-card h3, .method-card h3, .process-list article h3 { font: 400 28px/1.15 var(--font-display); }
.step-grid article > span, .page-card > span, .method-card > span { display: block; margin-bottom: 35px; color: var(--orange); font: 700 12px/1 var(--font-mono); }
.section-intro { margin-bottom: 38px; }
.section-intro h2 { max-width: 960px; }
.section-intro p:last-child { max-width: 750px; }
.process-layout { display: grid; grid-template-columns: minmax(250px, .6fr) minmax(0, 1.4fr); gap: 55px; }
.process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dark-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: clamp(30px, 5vw, 70px); background: var(--teal); color: var(--white); }
.dark-panel h2, .dark-panel h3 { color: var(--white); }
.dark-panel .kicker { color: #cde0e4; }
.principle-list { display: grid; gap: 18px; }
.principle-list article { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.22); }
.principle-list h3 { margin-bottom: 6px; font: 400 25px/1.2 var(--font-display); }
.principle-list span { margin-right: 16px; color: #eeb174; font: 700 12px var(--font-mono); }
.page-cta { padding: var(--space-section) 0; background: var(--blue-soft); text-align: center; }
.page-cta .shell { max-width: 850px; }
.page-cta h2 { margin-bottom: 20px; }
.page-cta p { margin-bottom: 25px; }
.table-wrapper { overflow-x: auto; border: 1px solid var(--line); }
.matrix-table { width: 100%; min-width: 690px; border-collapse: collapse; }
.matrix-table th, .matrix-table td { padding: 17px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix-table th { background: var(--teal); color: var(--white); }
.matrix-table td:first-child { color: var(--teal); font-weight: 750; }
.notice-box, .answer-box { padding: clamp(26px, 4vw, 54px); border: 1px solid var(--line); background: var(--blue-soft); }
.answer-box p { font-size: clamp(19px, 1.5vw, 24px); }
.direct-answer { max-width: 900px; padding-left: 20px; border-left: 3px solid var(--orange); font-size: 20px; }
.geo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; }

/* Request form: selectors and data contract remain intact. */
.modal-shell { position: fixed; z-index: 100; inset: 0; display: none; padding: 24px; }
.modal-shell.is-open { display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,30,37,.7); }
.analysis-modal { position: relative; width: min(100%, 860px); max-height: min(92vh, 980px); overflow-y: auto; padding: clamp(27px, 4vw, 55px); border-top: 4px solid var(--orange); background: var(--white); box-shadow: 0 35px 100px rgba(4,22,29,.27); }
.modal-close { position: absolute; top: 14px; right: 17px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--white); color: var(--teal); font-size: 29px; line-height: 1; }
.modal-intro { padding-right: 35px; }
.modal-intro h2, .analysis-thanks h2 { margin-bottom: 15px; font-size: clamp(39px, 4vw, 58px); }
.modal-intro p:not(.kicker), .analysis-thanks p { max-width: 680px; color: var(--muted); }
.analysis-form { display: grid; gap: 25px; margin-top: 30px; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
.analysis-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.analysis-form legend { width: 100%; margin-bottom: 17px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--teal); font-size: 19px; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid .wide { grid-column: 1 / -1; }
.analysis-form label { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.analysis-form input:not([type="checkbox"]):not([type="radio"]), .analysis-form select, .analysis-form textarea { width: 100%; min-height: 47px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 2px; background: #fcfdfc; color: var(--ink); font-size: 16px; font-weight: 400; }
.analysis-form textarea { min-height: 120px; resize: vertical; }
.analysis-form input:focus, .analysis-form select:focus, .analysis-form textarea:focus { border-color: var(--teal); outline: 2px solid rgba(18,61,74,.15); }
.field-help { margin-bottom: 15px; color: var(--muted); font-size: 15px; }
.choice-grid, .radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-grid label, .radio-grid label { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 500; line-height: 1.4; }
.choice-grid input, .radio-grid input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--teal); }
.radio-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.conditional-field { display: none !important; margin-top: 17px; }
.conditional-field.is-visible { display: grid !important; }
.form-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 11px; }
.form-error { margin: 0; padding: 17px 19px; border-left: 3px solid #a74d3d; background: #fff1ee; color: #79382d; font-size: 14px; }
.form-error strong { display: block; margin-top: 12px; }
.form-error pre { max-height: 170px; overflow: auto; white-space: pre-wrap; font: 12px/1.5 var(--font-mono); }
.analysis-form button[disabled] { opacity: .65; cursor: wait; }
.analysis-thanks { padding: 35px 0 15px; }
.request-code { display: inline-block; padding: 10px 15px; border: 1px solid var(--line-strong); color: var(--teal) !important; font-weight: 800; }

.reveal { opacity: 1; transform: none; }
section[id], div[id="services"] { scroll-margin-top: 90px; }

@media (max-width: 1180px) {
  .nav-links { gap: 15px; }
  .brand-lockup small { display: none; }
  .approach-layout { grid-template-columns: minmax(0, 1fr) minmax(400px, 1.2fr); }
  .approach-quote { grid-column: 1 / -1; max-width: 650px; }
  .work-layout, .insights-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .site-header, .nav { height: 70px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links { position: absolute; top: 69px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px var(--page); border-bottom: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links a::after { bottom: 7px; }
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { padding-bottom: 15px; }
  .hero-media { min-height: 380px; max-height: 500px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-tile:last-child { grid-column: 1 / -1; }
  .approach-layout { grid-template-columns: 1fr; }
  .approach-quote { grid-column: auto; }
  .home-method__intro { grid-template-columns: 1fr; gap: 12px; }
  .home-method__intro .kicker { grid-column: auto; margin-bottom: 0; }
  .home-method__timeline { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .home-method__timeline::before { display: none; }
  .home-method__step { border-top: 2px solid var(--orange); }
  .home-method__node { top: -11px; }
  .home-method__connector { top: 9px; height: 52px; }
  .founder-grid, .two-column, .process-layout, .dark-panel { grid-template-columns: 1fr; }
  .founder-photo { max-width: 550px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --page: 20px; --space-section: 68px; }
  body { font-size: 16px; }
  .site-header, .nav { height: 64px; }
  .brand-logo { width: 37px; height: 30px; }
  .brand-name { font-size: 15px; }
  .nav-cta { display: none; }
  .nav-links { top: 63px; }
  .hero { padding-top: 49px; }
  .hero h1 { font-size: clamp(43px, 11vw, 64px); }
  .hero-media { min-height: 295px; height: 320px; }
  .hero-media figcaption { right: 19px; bottom: 18px; left: 19px; }
  .hero-service-line { gap: 9px; padding-block: 15px; font-size: 11px; }
  .hero-service-line i { flex: none; }
  .section-heading { display: block; }
  .section-heading .text-link { margin-top: 17px; }
  .services-grid, .work-grid, .insights-grid, .card-grid, .card-grid--six, .step-grid, .page-card-grid, .process-list, .geo-list { grid-template-columns: 1fr; }
  .service-tile:last-child { grid-column: auto; }
  .service-tile { min-height: 385px; }
  .system-model { min-height: 380px; }
  .system-model__part { width: 138px; height: 138px; padding: 16px; }
  .system-model__center { width: 138px; height: 138px; font-size: 22px; }
  .system-model__part--infrastructure { left: 0; }
  .system-model__part--software { right: 0; }
  .home-method__board { padding: 25px 22px 35px; }
  .home-method__board-label { margin-bottom: 30px; }
  .home-method__timeline { display: grid; grid-template-columns: 1fr; gap: 0; padding-left: 30px; }
  .home-method__timeline::before { display: block; top: 0; right: auto; bottom: 0; left: 0; width: 2px; height: auto; }
  .home-method__step { min-height: 125px; padding: 0 0 22px; border: 0; }
  .home-method__node { top: 0; left: -39px; }
  .home-method__connector { display: none; }
  .home-method__module h3 { font-size: 24px; }
  .work-card, .insight-card { min-height: 240px; }
  .work-card__mark, .insight-card span { margin-bottom: 35px; }
  .founder-copy blockquote { font-size: 23px; }
  .page-hero { padding: 80px 0 70px; }
  .page-hero h1 { font-size: 48px; }
  .form-grid, .choice-grid, .radio-grid { grid-template-columns: 1fr; }
  .radio-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-shell { padding: 0; }
  .analysis-modal { width: 100%; max-height: 100dvh; min-height: 100dvh; padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { grid-column: 1; grid-row: 2; }
  .footer p { grid-row: 3; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 14px; }
  .hero h1 { font-size: 41px; }
  .hero-service-line i { display: none; }
  .hero-service-line span { display: block; width: 100%; }
  .system-model__part { width: 120px; height: 120px; padding: 11px; }
  .system-model__part strong { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
