/* The main chapters alternate between a navy stage and a cooler working surface. */
:root {
  --stage: #060d1c;
  --stage-text: #f0f5ff;
  --stage-muted: #b4c4dd;
  --stage-blue: #9bbcff;
  --stage-line: rgba(164, 195, 255, .23);
  --working-surface: #edf3ff;
  --working-panel: #f9fbff;
  --working-line: #c6d7f3;
  --working-blue: #1b50c1;
  --chapter-space: clamp(76px, 10vw, 144px);
}

.intro.section,
.services.section,
.process.section,
.founders.section,
.contact.section {
  padding-block: var(--chapter-space);
}

.section-heading h2,
.intro-copy h2,
.contact h2 {
  font-size: clamp(32px, 4.55vw, 66px);
  line-height: 1.08;
  text-wrap: balance;
}

.section-heading > p,
.intro-copy p,
.contact-copy > p {
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.75;
}

.section-heading .section-label,
.intro > .section-label,
.contact .section-label {
  font-size: 10px;
  margin-bottom: clamp(16px, 3vw, 28px);
}

.expertise-strip {
  background: #0a1427;
  border-color: var(--stage-line);
}

.expertise-strip .shell { min-height: 68px; }
.expertise-strip span { color: var(--stage-muted); }
.expertise-strip i { background: var(--stage-blue); }
.expertise-strip .strip-end { display: none; }

.intro.section {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  align-items: start;
  column-gap: clamp(36px, 7vw, 110px);
}

.intro-copy { max-width: 900px; }
.intro-copy p { max-width: 655px; }
.intro-orbit {
  left: 0;
  bottom: clamp(45px, 7vw, 100px);
  width: clamp(80px, 11vw, 160px);
  height: clamp(38px, 5.5vw, 82px);
}

/* Capability rows form a single frosted surface beside the headline. */
.services {
  background:
    radial-gradient(ellipse at 78% 3%, #204176 0%, #101e3a 31%, transparent 64%),
    var(--stage);
  color: var(--stage-text);
  border-color: #253655;
}

.services > .shell {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.28fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}

.services .section-heading {
  display: block;
  margin: 0;
  padding-top: clamp(8px, 2vw, 28px);
}

.services .section-heading > p {
  color: var(--stage-muted);
  margin-top: 24px;
  max-width: 37ch;
}

.services .section-label { color: var(--stage-muted); }
.services .small-dot { background: var(--stage-blue); }

.service-list {
  border: 1px solid var(--stage-line);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(190, 215, 255, .11), rgba(88, 126, 177, .045));
  box-shadow: 0 30px 85px rgba(0, 8, 30, .28);
  padding: 8px clamp(12px, 2.5vw, 34px);
}

.service-row { border-bottom: 1px solid var(--stage-line); }
.service-row:last-child { border-bottom: 0; }

.service-row summary {
  grid-template-columns: minmax(22px, .16fr) minmax(0, 1fr) 38px;
  column-gap: clamp(12px, 2vw, 24px);
  row-gap: 8px;
  padding: clamp(17px, 2.4vw, 32px) 0;
}

.service-number {
  align-self: center;
  color: var(--stage-blue);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.service-row h3 {
  font-size: clamp(19px, 2.14vw, 31px);
  line-height: 1.22;
}

.service-row[open] h3,
.service-row summary:hover h3 { color: var(--stage-blue); }

.service-summary {
  grid-column: 2;
  grid-row: 2;
  max-width: 47ch;
  color: var(--stage-muted);
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.55;
}

.service-toggle {
  grid-column: 3;
  grid-row: 1;
  width: 38px;
  height: 38px;
  border-color: #6f8dba;
  color: #d9e7ff;
}

.service-row[open] .service-toggle {
  background: #cddfff;
  border-color: #cddfff;
  color: #102e67;
}

.service-expanded {
  display: grid;
  grid-template-columns: minmax(22px, .16fr) minmax(0, 1fr) 38px;
  column-gap: clamp(12px, 2vw, 24px);
  row-gap: 16px;
  padding: 0 0 clamp(20px, 2.5vw, 32px);
}

.service-expanded > * { grid-column: 2 / -1; }
.service-tags { margin-bottom: 0; }
.service-tags span {
  border-color: #46618a;
  border-radius: 999px;
  background: #17335882;
  color: #d0e0fb;
  font-size: 10px;
}

.service-detail ul {
  color: #c2d0e6;
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.55;
}

.service-detail li::before { background: var(--stage-blue); }
.service-detail .text-link { color: var(--stage-blue); }
.services :focus-visible { outline-color: #b3ccff; }

/* The existing four diagrams gain space and a shared blue progression line. */
.process {
  background: radial-gradient(ellipse at 90% 0%, #d6e6fc 0, transparent 48%), var(--working-surface);
}

.process .section-heading { margin-bottom: clamp(42px, 6vw, 86px); }
.process-steps { gap: 0; }
.process-step {
  min-width: 0;
  border-top: 1px solid var(--working-blue);
  border-right: 1px solid var(--working-line);
  padding: clamp(20px, 3vw, 38px) clamp(12px, 2.2vw, 36px) clamp(16px, 2.2vw, 30px);
  background: linear-gradient(to bottom, transparent 55%, var(--working-panel));
}

.process-step:first-child { border-left: 1px solid var(--working-line); }
.process-step::before {
  top: -4px;
  width: 7px;
  height: 7px;
  background: var(--working-blue);
}

.step-top { min-height: clamp(76px, 9vw, 132px); }
.step-top > span { color: var(--working-blue); font-size: 12px; }
.step-art { margin: 8px 4px 0; transform: scale(1.08); transform-origin: top right; }
.process-step h3 { font-size: clamp(19px, 2vw, 28px); line-height: 1.24; margin: 10px 0 14px; }
.process-step p { font-size: clamp(13px, 1.1vw, 15px); line-height: 1.65; }

.founder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(18px, 3.8vw, 54px);
}

.founder-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(155deg, #f1f6ff 0%, #fff 62%);
  border-color: var(--working-line);
  border-radius: 18px;
  padding: clamp(26px, 4vw, 56px);
}

.founder-top { margin-bottom: clamp(22px, 4vw, 50px); }
.founder-index { display: none; }
.founder-monogram { width: clamp(84px, 10vw, 128px); height: clamp(84px, 10vw, 128px); }
.founder-card h3 { font-size: clamp(23px, 2.9vw, 38px); }
.founder-role { min-height: 0; font-size: clamp(11px, 1.05vw, 14px); }
.founder-bio { min-height: 0; font-size: clamp(14px, 1.08vw, 16px); line-height: 1.7; }
.founder-card .text-link { align-self: flex-start; margin-top: auto; font-size: 13px; }

.contact {
  background: radial-gradient(ellipse at 0% 0%, #1b3776, transparent 64%), var(--stage);
  border-top: 1px solid #203d73;
  color: var(--stage-text);
}

.contact-grid { column-gap: clamp(24px, 7vw, 110px); }
.contact-copy > p { color: var(--stage-muted); }
.contact-glow { border-color: #6097ff61; }
.direct-contacts a > span:first-child { font-size: 12px; }
.direct-contacts a > span:last-child { overflow-wrap: anywhere; }
.contact-mark { display: none; }

.project-form {
  min-width: 0;
  background: linear-gradient(145deg, #182c4e, #111e34);
  border-color: var(--stage-line);
  border-radius: 20px;
  padding: clamp(22px, 3.5vw, 42px);
  box-shadow: 0 24px 75px #0005;
}

.field input,
.field select,
.field textarea {
  background-color: #091528;
  border-color: #56729a;
}

.footer { background: #050b16; color: var(--stage-text); border-top: 1px solid var(--stage-line); }
.footer .brand-period { color: var(--stage-blue); }
.footer-top > p, .footer-bottom { color: var(--stage-muted); }
.footer-bottom { border-top-color: var(--stage-line); }
.footer-bottom button { color: var(--stage-muted); }
.footer-bottom button:hover, .back-link:hover { color: var(--stage-blue); }

@media (prefers-color-scheme: dark) {
  :root {
    --working-surface: #111f36;
    --working-panel: #192c48;
    --working-line: #415a81;
    --working-blue: #a2c4ff;
  }

  .process { background: radial-gradient(ellipse at 90% 0%, #213d65 0, transparent 53%), var(--working-surface); }
  .founder-card { background: linear-gradient(155deg, #1d3356 0%, #101d31 62%); }
}

@media (max-width: 960px) {
  .services > .shell { grid-template-columns: 1fr; }
  .services .section-heading { max-width: 640px; padding-top: 0; }
  .process-step:nth-child(odd) { border-left: 1px solid var(--working-line); }
  .process-steps { row-gap: 26px; }
}

@media (max-width: 700px) {
  .intro.section { display: block; }
  .section-heading h2, .intro-copy h2, .contact h2 { font-size: clamp(30px, 7.3vw, 45px); }
  .service-list { border-radius: 14px; }
  .service-row summary, .service-expanded { grid-template-columns: 22px minmax(0, 1fr) 34px; }
  .service-toggle { width: 34px; height: 34px; }
  .service-summary { grid-column: 2 / -1; }
  .step-art { transform: scale(.9); }
  .founder-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .process-step { border-left: 1px solid var(--working-line); }
}
