/* Verulam Construction Planning
   Layout: a calm white page carrying "drawing sheets". The sheets (programme, logistics plan, PEP page,
   axonometric, massing models) are the imagery, set out like issued documents with title blocks.
   Deep navy for type and actions; survey orange only for annotation (markers, critical path, rules). */
:root {
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --wash: #F5F6F8;
  --ink: #0C1524;
  --muted: #5A6474;
  --line: #E3E6EB;
  --line-2: #CDD3DB;
  --navy: #0C1626;
  --navy-2: #16233A;
  --on-navy: #EEF1F6;
  --on-navy-muted: #9AA6B8;
  --accent: #E0602A;
  --brand: #0C1626;
  --brand-ink: #FFFFFF;
  --link: #1F4FD1;
  --blue: #2F63D6;
  --red: #E0602A;
  --green: #1F9D6B;
  --amber: #E9A23B;
  --font-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 6px;
  --wrap: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A111C; --surface: #101A2A; --wash: #0D1522; --ink: #E9EDF3; --muted: #9AA5B6;
    --line: #1E2A3C; --line-2: #2B3A50; --navy: #060B14; --navy-2: #121D30;
    --brand: #E9EDF3; --brand-ink: #0A111C; --link: #8DB0FF; --blue: #7C9FFF; --green: #3CC58E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A111C; --surface: #101A2A; --wash: #0D1522; --ink: #E9EDF3; --muted: #9AA5B6;
  --line: #1E2A3C; --line-2: #2B3A50; --navy: #060B14; --navy-2: #121D30;
  --brand: #E9EDF3; --brand-ink: #0A111C; --link: #8DB0FF; --blue: #7C9FFF; --green: #3CC58E;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.62; letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 600; letter-spacing: -0.032em; line-height: 1.08; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; width: fit-content;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--accent); }
.lede { font-size: 1.2rem; line-height: 1.55; max-width: 58ch; color: var(--muted); }
.prose { max-width: 64ch; display: grid; gap: 1.1rem; align-content: start; }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand-text { display: grid; gap: 3px; line-height: 1; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.bm-tile { fill: var(--ink); } .bm-bar { fill: var(--paper); } .bm-crit { fill: #E0602A; } .bm-ms { fill: #E0602A; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.035em; line-height: 0.95; }
.brand-sub { display: block; font-family: var(--font-mono); font-size: 0.54rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.nav { display: flex; gap: 0.2rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.96rem; padding: 0.5rem 0.85rem; border-radius: var(--radius); }
.nav a:hover { background: var(--wash); }
.nav a.cta { background: var(--brand); color: var(--brand-ink); font-weight: 600; margin-left: 0.6rem; padding-inline: 1.1rem; }
.nav a.cta:hover { opacity: 0.9; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 0.5rem 0.95rem; border: 1px solid var(--line-2); border-radius: var(--radius); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 40px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.4rem; display: grid; gap: 2px; box-shadow: 0 24px 48px -12px rgba(12, 21, 36, 0.22);
}
.menu-panel a { color: var(--ink); text-decoration: none; padding: 0.75rem 0.9rem; border-radius: 4px; font-weight: 500; }
.menu-panel a:hover { background: var(--wash); }
.menu-panel a:last-child { background: var(--brand); color: var(--brand-ink); text-align: center; font-weight: 600; margin-top: 4px; }
@media (max-width: 860px) { .nav { display: none; } .menu { display: block; } }

/* Bands */
.band { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); background: linear-gradient(var(--paper), var(--wash)); }
.page-hero .wrap { display: grid; gap: 1.15rem; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 0.9rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 68ch; }
.alt { background: var(--wash); border-block: 1px solid var(--line); }
.alt + .section, .dark + .section { padding-top: clamp(3.5rem, 8vw, 6.5rem); }
.section + .section.alt, .section + .section.dark { padding-top: clamp(3.5rem, 8vw, 6.5rem); }
.dark { background: var(--navy); color: var(--on-navy); }
.dark h2, .dark h3 { color: var(--on-navy); }
.dark .lede { color: var(--on-navy-muted); }
.dark .eyebrow { color: var(--on-navy-muted); }
.sub-head { display: grid; gap: 0.35rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem; }
.sub-head p { color: var(--muted); }
.more-link { margin-top: 2rem; }

.crumbs { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.45rem; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { opacity: 0.5; }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  padding: 0.9rem 1.35rem; border-radius: var(--radius); border: 1px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer;
}
.btn::after { content: "\2192"; transition: transform .15s ease; }
.btn:hover::after { transform: translateX(3px); }
.btn:hover { opacity: 0.92; }
.btn-ghost, .section .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); opacity: 1; }
.btn-light { background: #FFFFFF; color: #0C1524; border-color: #FFFFFF; }

.badges { display: flex; flex-wrap: wrap; gap: 0 1.1rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.badges span { display: inline-flex; align-items: center; gap: 0.45rem; }
.badges span::before { content: ""; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.stats div { padding: 1.6rem 1.5rem 1.8rem 0; display: grid; gap: 0.35rem; align-content: start; }
.stats div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stats b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 0.93rem; line-height: 1.4; max-width: 24ch; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Drawing sheets: always paper-white, like an issued document */
.sheet {
  --s-ink: #0C1524; --s-muted: #5F6977; --s-line: #DADFE6; --s-faint: #EEF1F4;
  margin: 0; background: #FFFFFF; color: var(--s-ink); border: 1px solid #D5DBE3; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(12, 21, 36, .05), 0 30px 60px -30px rgba(12, 21, 36, .32);
  display: grid; min-width: 0; overflow: hidden;
}
.sheet-body { padding: 1rem 1.1rem 0.9rem; min-width: 0; display: grid; gap: 0.75rem; align-content: start; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.4rem 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--s-line); }
.sheet-head b { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; color: var(--s-ink); }
.sheet-head .pg { font-family: var(--font-mono); font-size: 0.64rem; color: var(--s-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.tb { display: flex; flex-wrap: wrap; border-top: 1.5px solid var(--s-ink); }
.tb div { flex: 1 1 auto; padding: 0.45rem 0.65rem; border-left: 1px solid var(--s-line); min-width: 0; display: grid; gap: 1px; }
.tb div:first-child { flex-grow: 3; }
.tb div:first-child { border-left: 0; }
.tb span { font-family: var(--font-mono); font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--s-muted); }
.tb b { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; color: var(--s-ink); white-space: nowrap; }

.legend { display: flex; flex-wrap: wrap; gap: 0.25rem 0.85rem; font-family: var(--font-mono); font-size: 0.6rem; color: var(--s-muted); }
.legend i { display: inline-block; width: 12px; height: 5px; border-radius: 1px; margin-right: 5px; vertical-align: middle; }
.k-crit { background: #E0602A; } .k-act { background: #2F63D6; } .k-log { background: #1F9D6B; } .k-ms { background: #E9A23B; }

/* Hero axonometric */
.sheet-hero .sheet-body { padding-bottom: 0.6rem; }
.iso { display: block; width: 100%; height: auto; }
.iso polygon { stroke: #0C1524; stroke-width: 0.55; stroke-linejoin: round; stroke-opacity: 0.75; }
.iso polyline { fill: none; }
.g-site { fill: #F4F6F8; } .g-road { fill: #E2E6EB; } .g-path { fill: #ECEFF2; } .g-lay { fill: #FBEBD2; } .g-wash { fill: #DCE6F6; }
.l-centre { stroke: #FFFFFF; stroke-width: 1.3; stroke-dasharray: 7 7; }
.l-radius { stroke: #E0602A; stroke-width: 1; stroke-dasharray: 4 4; }
.l-veh { stroke: #0C1524; stroke-width: 1.6; stroke-dasharray: 8 3; }
.l-ped { stroke: #1F9D6B; stroke-width: 2.2; stroke-dasharray: 0.5 4.5; stroke-linecap: round; }
.l-floor { stroke: #0C1524; stroke-opacity: 0.3; stroke-width: 0.6; }
.l-mullion { stroke: #0C1524; stroke-opacity: 0.12; stroke-width: 0.5; }
.l-col { stroke: #0C1524; stroke-width: 0.9; stroke-opacity: 0.8; }
.l-lattice { stroke: #A8441A; stroke-width: 0.5; }
.l-tie, .l-hook { stroke: #0C1524; stroke-width: 0.6; }
.l-edge { stroke: #E9A23B; stroke-width: 1.5; }
.m-hoard .t { fill: #FFFFFF; } .m-hoard .l { fill: #E7EAEF; } .m-hoard .r { fill: #F3F5F8; }
.m-cabin .t { fill: #D9E4FA; } .m-cabin .l { fill: #93AEE6; } .m-cabin .r { fill: #B6C9F0; }
.m-facade .t { fill: #E4E8EE; } .m-facade .l { fill: #BFC9D6; } .m-facade .r { fill: #D3DAE4; }
.m-core .t { fill: #EEF0F3; } .m-core .l { fill: #C7CED8; } .m-core .r { fill: #DCE1E8; }
.m-slab .t { fill: #FFFFFF; } .m-slab .l { fill: #D5DBE3; } .m-slab .r { fill: #E7EBF0; }
.m-pour .t { fill: #FCE3D3; } .m-pour .l { fill: #E8A27A; } .m-pour .r { fill: #F2BE9F; }
.m-base .t, .m-weight .t { fill: #C9CFD8; } .m-base .l, .m-weight .l { fill: #8F98A6; } .m-base .r, .m-weight .r { fill: #ACB4C0; }
.m-mast .t, .m-jib .t, .m-cabw .t { fill: #F59A63; } .m-mast .l, .m-jib .l, .m-cabw .l { fill: #C9541F; } .m-mast .r, .m-jib .r, .m-cabw .r { fill: #E2712F; }
.m-mast polygon { fill-opacity: 0.18; }
.m-load .t, .m-pallet .t { fill: #F6DDB0; } .m-load .l, .m-pallet .l { fill: #D6AE68; } .m-load .r, .m-pallet .r { fill: #E8C78B; }
.m-trailer .t { fill: #E3E9F1; } .m-trailer .l { fill: #9FACBD; } .m-trailer .r { fill: #C2CCD8; }
.m-lorry .t { fill: #3B4D6E; } .m-lorry .l { fill: #1A273F; } .m-lorry .r { fill: #27375A; }
.mk line { stroke: #0C1524; stroke-width: 0.8; }
.mk circle { fill: #0C1524; stroke: #FFFFFF; stroke-width: 1.5; }
.mk .mk-dot { fill: #E0602A; stroke: none; }
.mk text { fill: #FFFFFF; font: 600 9.5px var(--font-mono); text-anchor: middle; }
.key { list-style: none; margin: 0; padding: 0.7rem 0 0; border-top: 1px solid var(--s-line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem 1rem; }
.key li { display: flex; gap: 0.5rem; align-items: center; font-size: 0.74rem; color: var(--s-muted); line-height: 1.3; }
.key b { flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--s-ink); color: #FFFFFF; display: grid; place-items: center; font: 600 0.6rem var(--font-mono); }
@media (max-width: 560px) { .key { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Programme sheet */
.scroll-x { overflow-x: auto; }
.gantt {
  --cols: 24; --lab: 8.2rem;
  position: relative; display: grid;
  grid-template-columns: var(--lab) repeat(var(--cols), minmax(10px, 1fr));
  row-gap: 7px; min-width: 420px; padding-bottom: 16px;
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--s-muted);
  background-image: linear-gradient(90deg, var(--s-faint) 1px, transparent 1px);
  background-size: calc((100% - var(--lab)) / 6) 100%; background-position: var(--lab) 0; background-repeat: repeat-x;
}
.gantt .wk { font-size: 0.56rem; padding: 0 0 5px 4px; border-bottom: 1px solid var(--s-line); color: var(--s-muted); }
.gantt .lbl { grid-column: 1; color: var(--s-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 0.5rem; align-self: center; font-size: 0.66rem; }
.gantt .bar { height: 10px; border-radius: 2px; align-self: center; background: #2F63D6; }
.gantt .bar.crit { background: #E0602A; }
.gantt .bar.log { background: #1F9D6B; height: 4px; }
.gantt .ms { width: 10px; height: 10px; background: #E9A23B; transform: rotate(45deg); align-self: center; justify-self: center; }
.gantt .today { position: absolute; top: 0; bottom: 13px; width: 1.5px; background: #0C1524; left: calc(var(--lab) + (100% - var(--lab)) * 0.36); }
.gantt .today::before { content: "Data date"; position: absolute; bottom: -13px; left: -20px; font-size: 0.52rem; color: var(--s-ink); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 560px) {
  .gantt { --lab: 6.2rem; min-width: 0; grid-template-columns: var(--lab) repeat(var(--cols), minmax(0, 1fr)); }
  .gantt .lbl { font-size: 0.6rem; } .gantt .wk { font-size: 0.5rem; padding-left: 2px; }
}

/* Logistics plan sheet */
.plan { display: block; width: 100%; height: auto; }
.lp-ground { fill: #FFFFFF; }
.lp-nb { fill: #F2F4F7; stroke: #B8C0CB; stroke-width: 0.6; }
.lp-h-nb { stroke: #C9D0D9; stroke-width: 0.6; }
.lp-road { fill: #E7EAEE; }
.lp-foot { fill: #F4F5F7; }
.lp-kerb { stroke: #9AA3AF; stroke-width: 0.8; }
.lp-red { stroke: #D6312B; stroke-width: 0.7; }
.lp-centre { stroke: #FFFFFF; stroke-width: 1.6; stroke-dasharray: 10 8; }
.lp-ctx { fill: #8A93A1; font: 500 7px var(--font-mono); letter-spacing: 0.12em; }
.lp-redline { fill: none; stroke: #D6312B; stroke-width: 1.1; stroke-dasharray: 12 3 2 3; }
.lp-hoard { fill: none; stroke: #0C1524; stroke-width: 2.4; }
.lp-gate { fill: none; stroke: #0C1524; stroke-width: 1.4; }
.lp-swing { fill: none; stroke: #0C1524; stroke-width: 0.5; stroke-dasharray: 2 2; }
.lp-turn { fill: #FFFFFF; stroke: #1F9D6B; stroke-width: 1.4; }
.lp-grid line { stroke: #9AA3AF; stroke-width: 0.5; stroke-dasharray: 9 2 2 2; }
.lp-bub circle { fill: #FFFFFF; stroke: #5F6977; stroke-width: 0.7; }
.lp-bub text { fill: #3B4554; font: 500 7px var(--font-mono); text-anchor: middle; }
.lp-p1 { fill: #E9EDF3; stroke: #0C1524; stroke-width: 1.4; }
.lp-p2 { fill: #FFFFFF; stroke: #0C1524; stroke-width: 1.4; }
.lp-h-frame { stroke: #2F63D6; stroke-opacity: 0.22; stroke-width: 1; }
.lp-core { fill: #C9D2DF; stroke: #0C1524; stroke-width: 0.9; }
.lp-hoist { fill: #2F63D6; stroke: #0C1524; stroke-width: 0.8; }
.lp-crane { fill: #E0602A; fill-opacity: 0.035; stroke: #E0602A; stroke-width: 1.1; stroke-dasharray: 6 4; }
.lp-jib { stroke: #E0602A; stroke-width: 2.6; stroke-linecap: round; }
.lp-cj { stroke-width: 3.6; stroke: #B44A1C; }
.lp-crane-base { fill: #FFFFFF; stroke: #E0602A; stroke-width: 1.6; }
.lp-x { stroke: #E0602A; stroke-width: 1; }
.lp-rad { fill: #C4521F; font: 600 7.5px var(--font-mono); }
.lp-cabin { fill: #DCE6FA; stroke: #2F63D6; stroke-width: 1; }
.lp-cabin-l { stroke: #2F63D6; stroke-width: 0.6; }
.lp-lay { fill: #FDF3E1; stroke: #E9A23B; stroke-width: 1; }
.lp-h-lay { stroke: #E9A23B; stroke-opacity: 0.55; stroke-width: 1; }
.lp-skip { fill: #FFFFFF; stroke: #5F6977; stroke-width: 0.9; }
.lp-ap { fill: #1F9D6B; }
.lp-ap-t { fill: #FFFFFF; font: 600 7px var(--font-mono); text-anchor: middle; }
.lp-bay { fill: #FFF8E8; stroke: #0C1524; stroke-width: 1; stroke-dasharray: 3 2; }
.lp-wash { fill: #E6EEF9; stroke: #5F6977; stroke-width: 0.8; }
.lp-veh { fill: none; stroke: #0C1524; stroke-width: 1.8; marker-end: url(#arr); }
.lp-arrow { fill: #0C1524; }
.lp-ped { fill: none; stroke: #1F9D6B; stroke-width: 2.4; stroke-dasharray: 0.5 5; stroke-linecap: round; }
.lp-barrier { fill: none; stroke: #1F9D6B; stroke-width: 0.8; }
.lp-lbl { fill: #0C1524; font: 600 7.5px var(--font-mono); letter-spacing: 0.04em; }
.lp-sub { fill: #5F6977; font: 400 7px var(--font-mono); }
.lp-g { fill: #157A52; }
.lp-scale text { fill: #3B4554; font: 400 7px var(--font-mono); }
.lp-sb1 { fill: #0C1524; } .lp-sb2 { fill: #FFFFFF; stroke: #0C1524; stroke-width: 0.6; }
.lp-note { fill: #5F6977; font: 400 7px var(--font-mono); }
.lp-north circle { fill: none; stroke: #0C1524; stroke-width: 0.8; }
.lp-north path { fill: #0C1524; }
.lp-north text { fill: #0C1524; font: 600 7px var(--font-mono); text-anchor: middle; }
.k-red { height: 0 !important; border-top: 1.5px dashed #D6312B; }
.k-crane { height: 0 !important; border-top: 1.5px dashed #E0602A; }
.k-veh { background: #0C1524; height: 2px !important; }
.k-ped { height: 0 !important; border-top: 2px dotted #1F9D6B; }

/* PEP sheet */
.org { display: grid; gap: 14px; padding: 0.4rem 0 0.2rem; }
.org-row { display: flex; justify-content: center; gap: 8px; position: relative; }
.org-row + .org-row::before { content: ""; position: absolute; top: -14px; left: 50%; height: 14px; border-left: 1px solid #AEB7C3; }
.org-row.org-three::before { height: 7px; }
.org-three { gap: 6px; }
.org-three::after { content: ""; position: absolute; top: -7px; left: 16%; right: 16%; border-top: 1px solid #AEB7C3; }
.org-three .org-box { position: relative; }
.org-three .org-box::before { content: ""; position: absolute; top: -8px; left: 50%; height: 7px; border-left: 1px solid #AEB7C3; }
.org-box { font-family: var(--font-mono); font-size: 0.62rem; padding: 0.4rem 0.55rem; border: 1px solid #AEB7C3; border-radius: 2px; background: #FFFFFF; text-align: center; color: var(--s-ink); }
.org-top { background: #0C1524; color: #FFFFFF; border-color: #0C1524; }
.org-key { border-color: #E0602A; color: #B4441A; }
.org-three .org-box { flex: 1 1 0; min-width: 0; font-size: 0.56rem; padding-inline: 0.3rem; overflow-wrap: anywhere; }
.sheet .sub { font-family: var(--font-mono); font-size: 0.64rem; color: var(--s-ink); padding-top: 0.5rem; border-top: 1px solid var(--s-line); }
.raci { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.6rem; }
.raci th, .raci td { padding: 0.32rem 0.4rem; border-bottom: 1px solid var(--s-faint); text-align: center; }
.raci th:first-child { text-align: left; font-weight: 500; color: var(--s-ink); }
.raci thead th { color: var(--s-muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.54rem; }
.raci td { font-weight: 600; }
.raci-r { color: #E0602A; } .raci-a { color: #0C1524; } .raci-c { color: #2F63D6; } .raci-i { color: #9AA3B0; }

/* Sample documents */
.samples { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.samples .sheet-plan { grid-column: 1 / -1; }
@media (max-width: 900px) { .samples { grid-template-columns: minmax(0, 1fr); } }
.plan-x { min-width: 760px; }
.plan-scroll { margin-inline: -0.25rem; }

/* Cards */
.grid { display: grid; gap: 1px; }
.grid > * { box-shadow: 0 0 0 1px var(--line); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.service-card, .region-card {
  position: relative; display: grid; gap: 0.75rem; align-content: start;
  background: var(--paper); padding: 1.6rem 1.5rem 1.7rem; text-decoration: none; color: var(--ink);
  transition: background .2s ease;
}
.alt .service-card, .alt .region-card { background: var(--surface); }
.service-card:hover, .region-card:hover { background: var(--wash); }
.alt .service-card:hover, .alt .region-card:hover { background: var(--paper); }
.service-card p, .region-card p { color: var(--muted); font-size: 0.96rem; }
.service-card .more { font-weight: 600; color: var(--ink); font-size: 0.92rem; display: inline-flex; gap: 0.4rem; margin-top: 0.25rem; }
.service-card .more::after { content: "\2192"; transition: transform .15s ease; }
.service-card:hover .more::after { transform: translateX(3px); }
.c-blue { --c: var(--blue); } .c-amber { --c: var(--amber); } .c-red { --c: var(--red); } .c-green { --c: var(--green); }
.tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.tag::before { content: ""; width: 12px; height: 4px; background: var(--c, var(--accent)); }
.region-card .count { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); letter-spacing: 0.08em; }

.link-list { list-style: none; padding: 0; margin: 0; display: grid; }
.link-list a { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.link-list a:hover { color: var(--link); }
.link-list small { color: var(--muted); font-weight: 400; font-family: var(--font-mono); font-size: 0.68rem; text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.chips a, .chips span { display: inline-block; padding: 0.5rem 0.9rem; border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: transparent; font-size: 0.93rem; }
.chips a:hover { border-color: var(--ink); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 1.5px; background: var(--c, var(--accent)); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 820px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: 1.1rem; align-content: start; }
.alt .panel { background: var(--paper); }
.founder { align-self: start; display: grid; gap: 0.8rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.founder h3 { font-size: 1.5rem; letter-spacing: -0.025em; }
.founder p { color: var(--muted); }
.founder a { font-weight: 600; color: var(--ink); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 0.6rem; align-content: start; padding: 1.25rem 0 1.5rem; border-top: 1.5px solid var(--ink); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); }
.steps p { color: var(--muted); font-size: 0.96rem; }

.faq { display: grid; max-width: 72ch; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }

.notes { display: grid; gap: 1rem; max-width: 70ch; }
.notes p { padding-left: 1.1rem; border-left: 1.5px solid var(--accent); }

.cta-band { background: var(--navy); color: var(--on-navy); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: clamp(2.75rem, 6vw, 4rem); }
.cta-band h2 { color: var(--on-navy); font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 24ch; }
.cta-band .btn { background: #FFFFFF; color: #0C1524; border-color: #FFFFFF; }

/* Older drawing wrapper kept for compatibility */
.drawing { margin: 0; }

/* About */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.timeline .when { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); padding-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 520px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; } }

/* Form */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 0.75rem 0.85rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
.field textarea { min-height: 130px; resize: vertical; }
.field input[type="file"] { padding: 0.55rem; }
.checks { border: 0; padding: 0; margin: 0; }
.checks legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.55rem; padding: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.5rem 1rem; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.94rem; cursor: pointer; }
.check input { width: 1.05rem; height: 1.05rem; margin-top: 0.24rem; accent-color: var(--ink); flex: none; }
.hint { font-size: 0.8rem; color: var(--muted); }
.form-status { font-weight: 600; }
.form-status[data-state="ok"] { color: var(--green); }
.form-status[data-state="err"] { color: var(--red); }
.hp { position: absolute; left: -9999px; }

/* Project experience */
.project-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); background: var(--paper); transition: background .2s ease; }
.project-card:hover { background: var(--wash); }
.dark .grid > * { box-shadow: 0 0 0 1px var(--navy-2); }
.dark .project-card { background: var(--navy); color: var(--on-navy); }
.dark .project-card:hover { background: #111C30; }
.dark .project-card h3 { color: var(--on-navy); }
.dark .project-card p, .dark .pc-meta { color: var(--on-navy-muted); }
.pc-head, .project-visual { position: relative; aspect-ratio: 16 / 10; max-width: 100%; background: #F4F6F8; overflow: hidden; display: grid; place-items: center; }
.dark .pc-head { margin: 1.25rem 1.25rem 0; border-radius: 3px; }
.project-visual { border: 1px solid var(--line); border-radius: 3px; align-self: start; }
.pc-head img, .project-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iso-mass { width: 82%; height: 82%; }
.m-mass .t { fill: #FFFFFF; } .m-mass .l { fill: #D7DCE4; } .m-mass .r { fill: #E9ECF1; }
.m-hi .t { fill: #FCE3D3; } .m-hi .l { fill: #E39A70; } .m-hi .r { fill: #F0B994; }
.pc-note { position: absolute; left: 0.7rem; bottom: 0.55rem; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8A93A1; }
.pc-body { display: grid; gap: 0.45rem; align-content: start; padding: 1.25rem 1.4rem 1.6rem; }
.pc-meta { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pc-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pc-num-txt { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); padding-block: 0.35rem; }
.pc-num small { font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.dark .pc-num small { color: var(--on-navy-muted); }
.pc-body h3 { font-size: 1.1rem; }
.pc-body p { color: var(--muted); font-size: 0.95rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0.75rem 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 0.85rem 1.2rem 0.85rem 0; min-width: 0; }
.facts dt { font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: 0.3rem 0 0; color: var(--ink); font-weight: 600; }

/* Experience panel */
.xp { align-self: start; display: grid; gap: 1.1rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.xp ul { list-style: none; margin: 0; padding: 0; display: grid; }
.xp li { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 600; letter-spacing: -0.03em; padding: 0.7rem 0; border-bottom: 1px solid var(--line-2); }
.xp li:first-child { border-top: 1px solid var(--line-2); }
.xp p { color: var(--muted); }
.alt .xp { background: var(--paper); }

/* Hero photo */
.hero-photo { margin: 0; background: #FFFFFF; border: 1px solid #D5DBE3; border-radius: 3px; overflow: hidden; display: grid; min-width: 0;
  box-shadow: 0 1px 2px rgba(12, 21, 36, .05), 0 30px 60px -30px rgba(12, 21, 36, .32); --s-ink: #0C1524; --s-muted: #5F6977; --s-line: #DADFE6; }
.hp-img { position: relative; aspect-ratio: 825 / 510; max-width: 100%; }
.hp-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pin { position: absolute; transform: translate(-13px, -13px); display: inline-flex; align-items: center; gap: 0.4rem; }
.pin b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0C1524; color: #FFFFFF;
  font: 600 0.72rem var(--font-mono); box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 5px rgba(224, 96, 42, 0.55); }
.pin i { font-style: normal; font: 500 0.68rem var(--font-mono); color: #0C1524; background: rgba(255, 255, 255, 0.94);
  padding: 0.25rem 0.5rem; border-radius: 2px; white-space: nowrap; box-shadow: 0 4px 12px rgba(12, 21, 36, 0.2); }
.hp-key { padding: 0.75rem 1rem 0.8rem; border-top: 0; }
@media (min-width: 981px) { .hp-key { display: none; } }
@media (max-width: 980px) { .pin i { display: none; } }

/* Insights */
.guide-card { display: grid; gap: 0.7rem; align-content: start; background: var(--paper); padding: 1.6rem 1.5rem 1.7rem; text-decoration: none; color: var(--ink); transition: background .2s ease; }
.alt .guide-card { background: var(--surface); }
.guide-card:hover { background: var(--wash); }
.alt .guide-card:hover { background: var(--paper); }
.gc-meta { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.guide-card h3 { font-size: 1.22rem; }
.guide-card p { color: var(--muted); font-size: 0.96rem; }
.guide-card .more { font-weight: 600; font-size: 0.92rem; display: inline-flex; gap: 0.4rem; }
.guide-card .more::after { content: "\2192"; }
.guide-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 22ch; }
.guide-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .article-wrap { grid-template-columns: minmax(0, 1fr); } }
.article { max-width: 68ch; font-size: 1.1rem; line-height: 1.72; }
.article > * + * { margin-top: 1.15rem; }
.article h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 2.6rem; letter-spacing: -0.025em; }
.article ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.article li::marker { color: var(--accent); }
.article strong { font-weight: 600; }
.sources { margin-top: 3rem !important; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sources h2 { font-size: 0.72rem !important; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 0 !important; }
.sources ul { list-style: none; padding: 0; font-size: 0.92rem; margin-top: 0.8rem; }
.article-aside { display: grid; gap: 1rem; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); }
@media (max-width: 900px) { .article-aside { position: static; } }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: 0.8rem; background: var(--paper); }
.aside-cta { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.aside-cta h3 { color: var(--on-navy); }
.aside-cta p { color: var(--on-navy-muted); font-size: 0.95rem; }
.aside-cta .btn { background: #FFFFFF; color: #0C1524; border-color: #FFFFFF; justify-self: start; }

/* Footer */
.site-foot { background: var(--navy); color: var(--on-navy-muted); border-top: 1px solid var(--navy-2); }
.site-foot .wrap { padding-block: 4rem 2.25rem; display: grid; gap: 2.5rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.foot-grid h3 { color: var(--on-navy); font-size: 0.68rem; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.foot-grid a { color: var(--on-navy-muted); text-decoration: none; font-size: 0.92rem; }
.foot-grid a:hover { color: var(--on-navy); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.78rem; border-top: 1px solid var(--navy-2); padding-top: 1.4rem; font-family: var(--font-mono); }

@media (prefers-reduced-motion: reduce) {
  .service-card, .region-card, .project-card, .btn::after, .service-card .more::after { transition: none; }
}

/* Direct contact: top strip, header call button, footer, CTA band, contact page */
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }
.topbar { background: var(--navy); color: var(--on-navy-muted); font-size: 0.86rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar-note { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.topbar-links { display: flex; gap: 1.5rem; align-items: center; }
.topbar a { color: var(--on-navy); text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 500; }
.topbar a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.topbar .ic { color: var(--accent); }
@media (max-width: 640px) { .topbar-note { display: none; } .topbar .wrap { justify-content: center; } .topbar-links { gap: 1rem; flex-wrap: wrap; justify-content: center; } .tb-mail span { font-size: 0.8rem; } }
.head-mobile { display: none; align-items: center; gap: 0.5rem; }
.call-btn { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 600; padding: 0.5rem 0.9rem; border-radius: var(--radius); }
@media (max-width: 860px) { .head-mobile { display: flex; } }
.menu-panel a.mp-contact { background: transparent; color: var(--ink); text-align: left; font-weight: 600; margin-top: 0; border-top: 1px solid var(--line); }
.foot-contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--navy-2); }
.foot-contact h3 { color: var(--on-navy); font-size: 0.68rem; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.5rem; }
.foot-contact p { margin: 0; }
.foot-contact-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.fc-link { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--on-navy); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.5rem); letter-spacing: -0.01em; min-width: 0; overflow-wrap: anywhere; }
.fc-link .ic { color: var(--accent); }
.fc-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.cta-band .btn-line { background: transparent; color: var(--on-navy); border-color: rgba(255,255,255,0.4); }
.cta-band .btn-line:hover { border-color: #FFFFFF; }
.cta-form { color: var(--on-navy-muted); font-size: 0.92rem; }
.cta-form:hover { color: var(--on-navy); }
.contact-cards { display: grid; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin-top: 0.75rem; max-width: 820px; }
.contact-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: 0.2rem; align-items: center; padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.contact-card:hover { border-color: var(--accent); }
.contact-card .ic { grid-row: span 2; width: 1.6rem; height: 1.6rem; color: var(--accent); }
.cc-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cc-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.55rem); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.form-head { display: grid; gap: 0.3rem; }
.form-head h2 { font-size: 1.35rem; }
.form-head p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.82em; }
.more-fields { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.more-fields summary { cursor: pointer; padding: 0.85rem 1rem; font-weight: 600; font-size: 0.95rem; }
.more-inner { display: grid; gap: 1rem; padding: 0 1rem 1rem; }

.page-hero .wrap > * { min-width: 0; }
.contact-card > * { min-width: 0; }
@media (max-width: 560px) { .cta-actions { flex-direction: column; align-items: stretch; width: 100%; } .cta-actions .btn { text-align: center; justify-content: center; } }
