/* CAL Projects Limited — website styles (developed from Concept B: Faceted Planes)
   Monumental, centred, Playfair-led. Geometry from the approved profile covers
   becomes the structural language: angled sections, facets, rising planes. */

.site { background: var(--ink); }
.site .container { max-width: 1180px; }

/* Matte paper grain, as on the printed cover */
.grain { position: relative; }
.bhero::before, .close::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); z-index: 1; }

/* Header */
.bh { position: fixed; top: 0; left: 0; right: 0; z-index: 120; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem var(--gutter); transition: background-color .35s var(--ease), padding .35s var(--ease); }
html:not(.clean) .bh { top: 2.1rem; }
html:not(.clean) .bh.is-scrolled { top: 0; }
.bh.is-scrolled { background: rgba(7, 9, 13, .92); padding-block: .9rem; backdrop-filter: blur(8px); }
.bh__brand img { height: 2.6rem; width: auto; transition: opacity .3s; }
.bhero-visible .bh:not(.is-scrolled) .bh__brand img { opacity: 0; }
.bh__right { display: flex; align-items: center; gap: 2rem; }
.bh__enquire { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-80); }
.bh__enquire:hover { color: var(--gold); }
.bh__menu { display: inline-flex; align-items: center; gap: .9rem; background: none; border: 0; color: var(--cream); cursor: pointer; font: 600 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: .5rem 0; }
.bh__bars { display: grid; gap: 7px; width: 2.2rem; }
.bh__bars i { display: block; height: 1px; background: var(--gold); transition: transform .35s var(--ease); }
.bh__bars i:last-child { width: 65%; justify-self: end; }
.bh__menu[aria-expanded="true"] .bh__bars i:first-child { transform: translateY(4px) rotate(18deg); }
.bh__menu[aria-expanded="true"] .bh__bars i:last-child { width: 100%; transform: translateY(-4px) rotate(-18deg); }

/* Overlay menu */
.menu { position: fixed; inset: 0; z-index: 110; background: var(--ink); display: flex; flex-direction: column; justify-content: center; padding: 6rem var(--gutter) 3rem; clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); transition: clip-path .6s var(--ease); visibility: hidden; }
.menu.is-open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; }
.menu > svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 55%; }
.menu__nav { position: relative; display: grid; gap: .2rem; max-width: var(--max); margin-inline: auto; width: 100%; }
.menu__nav a { font-family: var(--serif); font-size: clamp(2.2rem, 1.4rem + 3.5vw, 4.4rem); line-height: 1.2; color: var(--cream); width: fit-content; }
.menu__nav a:hover, .menu__nav a:focus-visible { color: var(--gold); font-style: italic; }
.menu__foot { position: relative; max-width: var(--max); margin: 3rem auto 0; width: 100%; font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
body.menu-open { overflow: hidden; }

/* Hero */
.bhero { position: relative; min-height: max(100svh, 680px); display: grid; place-items: center; overflow: hidden; background: radial-gradient(70rem 40rem at 50% 30%, #11161D 0%, var(--ink) 70%); isolation: isolate; }
.bhero__planes { position: absolute; inset: 0; z-index: 0; display: flex; align-items: flex-end; }
.bhero__planes svg { width: 100%; height: 40%; }
.bhero__content { position: relative; z-index: 2; text-align: center; padding: 5rem var(--gutter) 36vh; }
.bhero__logo { margin: 0 auto; width: clamp(15rem, 36vw, 27.5rem); }
.bhero__logo img { width: 100%; height: auto; }
.bhero__tagline { margin-top: clamp(2.5rem, 6vh, 4rem); font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.38; color: var(--cream); }
.bhero__cue { position: absolute; z-index: 2; bottom: 2rem; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: .8rem; font-size: .625rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-60); }
.bhero__cue::after { content: ""; width: 1px; height: 3.5rem; background: linear-gradient(var(--gold), transparent); }

/* The orchestrated moment: hairlines draw, then the mark and words settle */
.js .b-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: b-draw 2.6s var(--ease) forwards; }
.js .b-line:nth-of-type(2) { animation-delay: .25s; }
.js .b-line:nth-of-type(3) { animation-delay: .5s; }
.js .b-line:nth-of-type(4) { animation-delay: .75s; }
.js .b-hatch { opacity: 0; animation: b-fade 1.6s 1.6s ease forwards; }
.js .bhero__logo, .js .bhero__tagline { opacity: 0; animation: b-rise 1.6s .9s var(--ease) forwards; }
.js .bhero__tagline { animation-delay: 1.5s; }
@keyframes b-draw { to { stroke-dashoffset: 0; } }
@keyframes b-fade { to { opacity: 1; } }
@keyframes b-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Manifesto */
.manifesto { position: relative; padding-block: clamp(6rem, 12vw, 10rem) clamp(5rem, 10vw, 8rem); background: var(--ink); }
.manifesto__inner { text-align: center; max-width: 52rem; }
.diamond { display: block; width: 14px; height: 14px; margin: 0 auto 2.5rem; border: 1px solid var(--gold); transform: rotate(45deg); }
.manifesto h2 { font-size: var(--step-5); line-height: 1.06; }
.manifesto__inner p { max-width: 40rem; margin: 2.2rem auto 0; color: var(--cream-60); font-size: var(--step-1); font-weight: 300; }

.facets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(4rem, 8vw, 6rem); }
.facet { --cut: 2.6rem; background: linear-gradient(160deg, var(--gold) 0%, rgba(181,137,68,.25) 45%, rgba(181,137,68,.08) 100%); clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); padding: 1px; margin-right: calc(var(--cut) * -0.62); }
.facet:last-child { margin-right: 0; }
.facet__in { height: 100%; background: linear-gradient(180deg, var(--charcoal-2), var(--charcoal)); clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); padding: 3rem calc(var(--cut) + 1.5rem) 3.2rem; }
.facet h3 { font-size: 1.65rem; margin-bottom: 1rem; color: var(--cream); }
.facet p { font-size: .9375rem; color: var(--cream-60); }

/* Services: two planes divided by a single diagonal */
.planes { position: relative; padding-block: clamp(5rem, 10vw, 8rem); background: #0C1015; overflow: hidden; }
.planes__line { position: absolute; inset: 0; pointer-events: none; }
.planes__line svg { width: 100%; height: 100%; }
.planes__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 9vw, 9rem); }
.plane .label { margin-bottom: 1.2rem; }
.plane h2 { font-size: var(--step-4); }
.plane__intro { margin: 1.25rem 0 2.25rem; color: var(--cream-60); max-width: 28rem; }
.plane__list li { padding: 1.3rem 0 1.3rem 1.6rem; position: relative; border-top: 1px solid var(--cream-line); }
.plane__list li::before { content: ""; position: absolute; left: 0; top: 1.85rem; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.plane__list h3 { font-family: var(--sans); font-size: .9375rem; font-weight: 600; margin-bottom: .3rem; }
.plane__list p { font-size: .875rem; color: var(--cream-60); }
.plane--right { padding-top: clamp(0rem, 8vw, 7rem); }
.planes__note { position: relative; margin-top: 3rem; }

/* Founder: cream plane entering on an angle */
.bfounder { background: var(--cream); color: var(--navy); padding-block: clamp(8rem, 14vw, 12rem) clamp(5rem, 10vw, 8rem); clip-path: polygon(0 clamp(3rem, 7vw, 7rem), 100% 0, 100% 100%, 0 100%); margin-top: -1px; }
.bfounder__head { max-width: 46rem; }
.bfounder__head .label { margin-bottom: 1.3rem; color: #8a6630; }
.bfounder__head h2 { font-size: var(--step-5); line-height: 1.06; }
.ridge { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem; margin-top: clamp(3.5rem, 7vw, 5.5rem); padding-top: 2.6rem; }
.ridge::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(181,137,68,.25)); }
.ridge li { position: relative; }
.ridge li::before { content: ""; position: absolute; top: calc(-2.6rem - 6px); left: 0; width: 11px; height: 11px; background: var(--cream); border: 1px solid var(--gold); transform: rotate(45deg); }
.ridge h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.ridge p { font-size: .875rem; color: var(--navy-70); }
.bfounder__note { margin-top: 3rem; color: #6f6962; }

/* Approach: rising planes */
.ascent { background: var(--ink); padding-block: clamp(5rem, 10vw, 8rem); overflow: hidden; }
.ascent__title { font-size: var(--step-4); text-align: center; }
.ascent__intro { text-align: center; max-width: 36rem; margin: 1.4rem auto 0; color: var(--cream-60); }
.ascent__stage { position: relative; margin-top: clamp(3.5rem, 7vw, 5rem); }
.ascent__stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ascent__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.ascent__steps li { background: linear-gradient(180deg, var(--charcoal-2), rgba(19,23,29,.4)); border-top: 1px solid var(--gold); padding: 2rem 1.6rem 2.4rem; }
.ascent__steps li:nth-child(1) { margin-top: 9rem; }
.ascent__steps li:nth-child(2) { margin-top: 6rem; }
.ascent__steps li:nth-child(3) { margin-top: 3rem; }
.ascent__steps span { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold); }
.ascent__steps h3 { font-size: 1.5rem; margin: 1.1rem 0 .7rem; }
.ascent__steps p { font-size: .875rem; color: var(--cream-60); }

/* Technology */
.btech { background: var(--navy); padding-block: clamp(5rem, 10vw, 8rem); }
.btech__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5.5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.btech__text .label { margin-bottom: 1.25rem; }
.btech__text h2 { font-size: var(--step-3); margin-bottom: 1.6rem; }
.btech__text p:not(.label):not(.qualifier) { color: var(--cream-80); }
.btech__text .qualifier { margin-top: 1.5rem; }
.chevrons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chevrons li { --c: 1.4rem; display: grid; gap: .35rem; padding: 2.2rem calc(var(--c) + .9rem) 2.2rem calc(var(--c) + 1.4rem); background: var(--charcoal); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 50%, calc(100% - var(--c)) 100%, 0 100%, var(--c) 50%); margin-right: -0.9rem; }
.chevrons li:first-child { clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 50%, calc(100% - var(--c)) 100%, 0 100%); padding-left: 1.4rem; }
.chevrons li:nth-child(2) { background: var(--charcoal-2); }
.chevrons li:nth-child(3) { background: #232a33; }
.chevrons li:nth-child(4) { background: var(--gold); color: var(--ink); margin-right: 0; }
.chevrons span { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); line-height: 1; }
.chevrons li:nth-child(4) span { color: var(--ink); }
.chevrons b { font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; }
.chevrons small { font-size: .75rem; opacity: .7; }

/* Evidence */
.evidence { background: var(--ink); padding-block: clamp(5rem, 10vw, 8rem); }
.evidence__title { font-size: var(--step-4); text-align: center; }
.evidence__intro { max-width: 40rem; margin: 1.4rem auto 0; text-align: center; color: var(--cream-60); }
.cuts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.cut { --k: 1.6rem; background: var(--charcoal); padding: 2.2rem 1.7rem; clip-path: polygon(0 0, calc(100% - var(--k)) 0, 100% var(--k), 100% 100%, 0 100%); position: relative; }
.cut::after { content: ""; position: absolute; top: 0; right: 0; width: calc(var(--k) * 1.414); height: 1px; background: var(--gold); transform-origin: right top; transform: rotate(45deg) translate(0, 0); }
.cut--wide { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(200deg, var(--charcoal-2), var(--charcoal)); }
.cut__n { font-family: var(--serif); font-size: clamp(2.4rem, 1.8rem + 1.4vw, 3.2rem); line-height: 1; color: var(--gold); margin-bottom: 1rem; }
.cut--wide .cut__n { font-size: clamp(4rem, 3rem + 4vw, 7rem); }
.cut h3 { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .55rem; }
.cut p:not(.cut__n) { font-size: .8125rem; color: var(--cream-60); }
.evidence__note { margin-top: 2rem; text-align: center; }

/* Close */
.close { position: relative; padding-block: clamp(6rem, 12vw, 10rem); background: var(--ink); overflow: hidden; isolation: isolate; }
.close__planes { position: absolute; inset: 0 0 auto 0; z-index: 0; }
.close__planes svg { width: 100%; height: clamp(14rem, 30vw, 26rem); }
.close__inner { position: relative; z-index: 2; max-width: 46rem; text-align: center; }
.close h2 { font-size: var(--step-5); line-height: 1.06; }
.close__ways { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin: 2.2rem 0 1.6rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold); }
.close__ways li + li::before { content: "/"; margin-right: 1.6rem; color: var(--gold-line); font-style: normal; }
.close__inner > p { color: var(--cream-60); max-width: 36rem; margin-inline: auto; }
.close .form { margin-top: 3rem; text-align: left; }

/* Footer: echoes the profile back cover */
.bf { background: var(--ink); text-align: center; padding: 4.5rem var(--gutter) 2.5rem; border-top: 1px solid var(--cream-line); }
.bf__logo { width: 14rem; height: auto; margin: 0 auto; }
.bf__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.8rem; margin-top: 2.5rem; font-size: .8125rem; color: var(--cream-60); }
.bf__nav a:hover { color: var(--gold); }
.bf__legal { max-width: 60rem; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--cream-line); font-size: .75rem; color: var(--stone); display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; }

/* Tablet */
@media (max-width: 1000px) {
  .facets { grid-template-columns: 1fr; gap: 1rem; max-width: 36rem; margin-inline: auto; }
  .facet { margin-right: 0; --cut: 1.6rem; }
  .planes { background: var(--charcoal); }
  .planes__line { display: none; }
  .planes__grid { grid-template-columns: 1fr; gap: 0; }
  .plane--right { padding-top: 4rem; margin-top: 4rem; position: relative; }
  .plane--right::before { content: ""; position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: 0; bottom: -10rem; background: #0C1015; clip-path: polygon(0 3rem, 100% 0, 100% 100%, 0 100%); z-index: -1; }
  .plane--right::after { content: ""; position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: 0; height: 3rem; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--gold) 50%, transparent calc(50% + 1px)); z-index: -1; }
  .planes__grid { isolation: isolate; }
  .ridge { grid-template-columns: 1fr; gap: 2rem; padding-top: 0; padding-left: 2.2rem; }
  .ridge::before { top: 0; bottom: 0; left: 0; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--gold), rgba(181,137,68,.25)); }
  .ridge li::before { top: .5rem; left: calc(-2.2rem - 5px); }
  .ascent__steps { grid-template-columns: 1fr 1fr; }
  .ascent__steps li:nth-child(n) { margin-top: 0; }
  .ascent__steps li:nth-child(odd) { margin-top: 3rem; }
  .ascent__stage > svg { display: none; }
  .btech__grid { grid-template-columns: 1fr; }
  .cuts { grid-template-columns: 1fr 1fr; }
  .cut--wide { grid-column: span 2; grid-row: auto; }
}

/* Mobile */
@media (max-width: 600px) {
  .bh { padding: 1rem var(--gutter); }
  .bh__enquire { display: none; }
  .bh__brand img { height: 2.1rem; }
  .bhero__content { padding-bottom: 32vh; }
  .bhero__planes svg { height: 40%; }
  .ascent__steps { grid-template-columns: 1fr; }
  .ascent__steps li:nth-child(odd) { margin-top: 0; }
  .ascent__steps li { margin-left: calc(var(--i, 0) * 1rem); }
  .ascent__steps li:nth-child(2) { --i: 1; } .ascent__steps li:nth-child(3) { --i: 2; } .ascent__steps li:nth-child(4) { --i: 3; }
  .chevrons { grid-template-columns: 1fr 1fr; gap: .5rem 0; }
  .chevrons li { margin-right: -.6rem; padding-block: 1.6rem; }
  .chevrons li:nth-child(3) { clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 50%, calc(100% - var(--c)) 100%, 0 100%); padding-left: 1.4rem; }
  .cuts { grid-template-columns: 1fr; }
  .cut--wide { grid-column: auto; }
  .close__ways li + li::before { display: none; }
  .close__ways { flex-direction: column; gap: .2rem; }
}

/* ==========================================================================
   Multi-page website additions
   ========================================================================== */

/* Header: inline navigation on large screens, overlay menu below */
html:not(.clean) .bh { top: 0; }
.bh__nav { display: flex; align-items: center; gap: 2rem; }
.bh__nav a { font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-80); padding-block: .4rem; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.bh__nav a:hover { color: var(--cream); border-color: var(--gold-line); }
.bh__nav a[aria-current="page"] { color: var(--gold); border-color: var(--gold); }
.bh__enquire { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1.15rem; border: 1px solid var(--gold-line); }
.bh__enquire:hover { border-color: var(--gold); }
.bh__menu { display: none; }
.bh.is-scrolled .bh__enquire { background: var(--gold); color: var(--ink); border-color: var(--gold); }
@media (max-width: 1120px) {
  .bh__nav { display: none; }
  .bh__menu { display: inline-flex; }
}
.menu__nav a[aria-current="page"] { color: var(--gold); }
.menu__nav a small { display: block; font-family: var(--sans); font-style: normal; font-size: .8125rem; letter-spacing: .02em; color: var(--stone); margin: -.2rem 0 .6rem; }

/* Home hero additions */
.bhero__services { margin-top: 2rem; font-size: .6875rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.bhero__services span { color: var(--gold-line); margin: 0 .8rem; }
.js .bhero__services { opacity: 0; animation: b-rise 1.6s 2s var(--ease) forwards; }

/* Credentials band (from Concept A) */
.creds-band { background: var(--charcoal); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--cream-line); }
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.creds > div { padding: 2.4rem 1.75rem 2.2rem; }
.creds > div:first-child { padding-left: 0; }
.creds > div + div { border-left: 1px solid var(--cream-line); }
.creds dt { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); color: var(--gold); line-height: 1; margin-bottom: .8rem; }
.creds dd { margin: 0; font-size: .8125rem; line-height: 1.6; color: var(--cream-60); }
.creds__note { padding-bottom: 1.6rem; margin: 0; }
@media (max-width: 1000px) {
  .creds { grid-template-columns: 1fr 1fr; }
  .creds > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .creds > div:nth-child(n+3) { border-top: 1px solid var(--cream-line); }
}
@media (max-width: 560px) {
  .creds { grid-template-columns: 1fr; }
  .creds > div, .creds > div + div { padding: 1.5rem 0; border-left: 0; }
  .creds > div + div { border-top: 1px solid var(--cream-line); }
}

/* Text links with a drawn gold rule */
.more { display: inline-flex; align-items: center; gap: .8rem; margin-top: 2rem; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.more::after { content: ""; width: 2.5rem; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.more:hover::after { width: 4rem; }
.bfounder .more { color: #8a6630; }
.center { text-align: center; }

/* Inner-page hero */
.phero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(30rem, 72vh, 44rem); padding: 9rem 0 clamp(3.5rem, 7vw, 5.5rem); background: radial-gradient(60rem 36rem at 20% 20%, #11161D 0%, var(--ink) 70%); }
.phero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: screen; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.phero__planes { position: absolute; inset: 0; z-index: 0; display: flex; align-items: flex-end; }
.phero__planes svg { width: 100%; height: 62%; }
.phero__content { position: relative; z-index: 2; width: 100%; }
.crumb { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.crumb a { color: var(--cream-60); }
.crumb a:hover { color: var(--cream); }
.crumb span[aria-hidden] { color: var(--gold-line); }
.phero h1 { font-size: clamp(2.6rem, 1.6rem + 3.8vw, 5.2rem); line-height: 1.04; letter-spacing: -.015em; max-width: 15ch; }
.phero__lead { max-width: 38rem; margin-top: 1.8rem; font-size: var(--step-1); font-weight: 300; color: var(--cream-80); }
.js .phero .b-line { animation-duration: 2s; }

/* Generic content sections */
.sect { padding-block: clamp(5rem, 10vw, 8rem); }
.sect--ink { background: var(--ink); }
.sect--charcoal { background: var(--charcoal); }
.sect--navy { background: var(--navy); }
.sect--cream { background: var(--cream); color: var(--navy); }
.sect--cream .label { color: #8a6630; }
.sect--cream .qualifier { color: #6f6962; }
.sect__head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.sect__head .label { margin-bottom: 1.2rem; }
.sect__head h2 { font-size: var(--step-4); }
.sect__head p { margin-top: 1.4rem; color: var(--cream-60); }
.sect--cream .sect__head p { color: var(--navy-70); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.split__aside { position: sticky; top: 7rem; }
.split h2 { font-size: var(--step-4); }
.split .label { margin-bottom: 1.2rem; }
.prose p { font-size: 1.0625rem; color: var(--cream-80); max-width: 40rem; }
.sect--cream .prose p { color: var(--navy-70); }
.prose p.prose__lead { font-family: var(--serif); font-size: var(--step-2); line-height: 1.45; color: var(--cream); }
.sect--cream .prose p.prose__lead { color: var(--navy); }
.pull { margin: 0; padding-left: 1.75rem; border-left: 3px solid var(--gold); }
.pull p { font-family: var(--serif); font-style: italic; font-size: var(--step-3); line-height: 1.3; }

/* Service detail blocks */
.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2.5rem, 5vw, 3.75rem); border-top: 1px solid var(--cream-line); }
.detail:last-child { border-bottom: 1px solid var(--cream-line); }
.detail h3 { font-size: var(--step-3); margin-bottom: 1rem; }
.detail__summary { color: var(--cream-60); }
.detail__list li { position: relative; padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid var(--cream-line); font-size: .9375rem; color: var(--cream-80); }
.detail__list li:last-child { border-bottom: 0; }
.detail__list li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.detail__list-title { font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }

/* Sector band */
.sector { display: grid; grid-template-columns: auto 1fr; gap: 2rem 4rem; align-items: center; }
.sector p:last-child { font-family: var(--serif); font-size: var(--step-3); line-height: 1.3; color: var(--cream); }

/* Engagement models */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ways article { --k: 1.4rem; position: relative; padding: 2rem 1.6rem 2.4rem; background: var(--charcoal-2); clip-path: polygon(0 0, calc(100% - var(--k)) 0, 100% var(--k), 100% 100%, 0 100%); }
.ways article::after { content: ""; position: absolute; top: 0; right: 0; width: calc(var(--k) * 1.414); height: 1px; background: var(--gold); transform-origin: right top; transform: rotate(45deg); }
.ways h3 { font-size: 1.4rem; margin-bottom: .8rem; }
.ways p { font-size: .875rem; color: var(--cream-60); }
.sect--cream .ways article { background: var(--cream-2); }
.sect--cream .ways p { color: var(--navy-70); }

/* Capability grid (technology) */
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--cream-line); border: 1px solid var(--cream-line); }
.caps article { background: var(--ink); padding: clamp(2rem, 4vw, 3rem); }
.caps h3 { font-size: var(--step-2); margin-bottom: .9rem; }
.caps p { color: var(--cream-60); font-size: .9375rem; }
.caps ul { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.caps li { font-size: .75rem; padding: .35rem .7rem; border: 1px solid var(--gold-line); color: var(--cream-80); }

/* Systems diagram (from Concept C) */
.diagram { margin: 0; border: 1px solid var(--gold-line); padding: clamp(1rem, 2.4vw, 2rem); background: rgba(7, 9, 13, .5); position: relative; }
.diagram::before, .diagram::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--gold); }
.diagram::before { top: -7px; left: -7px; border-width: 1px 0 0 1px; }
.diagram::after { bottom: -7px; right: -7px; border-width: 0 1px 1px 0; }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--cream-line); font-size: .75rem; color: var(--stone); }
.c-flow { stroke-dasharray: 4 10; animation: c-march 1.8s linear infinite; }
@keyframes c-march { to { stroke-dashoffset: -28; } }
.c-sys--tall { display: none; }
@media (max-width: 640px) { .c-sys--wide { display: none; } .c-sys--tall { display: block; } }

/* Platform specification (from Concept C) */
.spec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; margin-top: clamp(3rem, 6vw, 4.5rem); }
.spec__table { border: 1px solid var(--gold-line); margin: 0; background: rgba(7, 9, 13, .4); }
.spec__table > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--cream-line); }
.spec__table > div:last-child { border-bottom: 0; }
.spec__table dt { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: .2rem; }
.spec__table dd { margin: 0; font-size: .9rem; color: var(--cream-80); }
.note { margin-top: 1.6rem; padding: 1rem 1.2rem; border: 1px dashed var(--gold-line); font-size: .8125rem; color: var(--stone); }

/* Founder title block (from Concept C) */
.tblock { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--navy); margin: 0; }
.tblock > div { padding: 1rem 1.25rem; border-bottom: 1px solid var(--navy); }
.tblock > div.half:nth-of-type(2) { border-right: 1px solid var(--navy); }
.tblock > div:last-child { border-bottom: 0; }
.tblock .wide { grid-column: span 2; }
.tblock dt { font-size: .625rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-bottom: .3rem; }
.tblock dd { margin: 0; font-size: .9375rem; font-weight: 500; }
.tblock .name { font-family: var(--serif); font-size: 2.4rem; font-weight: 400; line-height: 1.1; }

/* Evidence ledger (from Concept C) */
.ledger { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.ledger th { text-align: left; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); padding: .9rem 1.25rem; border-bottom: 1px solid var(--gold); }
.ledger td { padding: 1.3rem 1.25rem; border-bottom: 1px solid var(--cream-line); vertical-align: middle; color: var(--cream-80); font-size: .9375rem; }
.ledger .fig { font-family: var(--serif); font-size: 2rem; color: var(--gold); white-space: nowrap; width: 11rem; }
.tag { display: inline-block; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; padding: .3rem .6rem; border: 1px solid var(--gold-line); color: var(--cream); white-space: nowrap; }

/* Big numbered approach steps (approach page) */
.stages { counter-reset: s; }
.stage { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--navy-line); align-items: start; }
.stage:last-child { border-bottom: 1px solid var(--navy-line); }
.stage__n { font-family: var(--serif); font-size: clamp(3.5rem, 2.5rem + 3vw, 6rem); line-height: .9; color: var(--gold); }
.stage h3 { font-size: var(--step-3); margin-bottom: .8rem; }
.stage p { color: var(--navy-70); }
.stage ul li { position: relative; padding: .55rem 0 .55rem 1.5rem; border-bottom: 1px solid var(--navy-line); font-size: .9375rem; color: var(--navy-70); }
.stage ul li:last-child { border-bottom: 0; }
.stage ul li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* Outcome statement */
.outcome { text-align: center; max-width: 50rem; margin-inline: auto; }
.outcome .diamond { margin-bottom: 2rem; }
.outcome p { font-family: var(--serif); font-size: var(--step-3); line-height: 1.3; }

/* Contact page */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 7vw, 7rem); }
.details { margin: 2.5rem 0 0; border-top: 1px solid var(--cream-line); }
.details > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--cream-line); }
.details dt { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: .2rem; }
.details dd { margin: 0; color: var(--cream-60); }

/* Legal / long-form text */
.legal { max-width: 46rem; }
.legal h2 { font-size: var(--step-3); margin: 3rem 0 1rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--cream-80); }
.legal ul { margin: 0 0 1em; }
.legal li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
.legal li::before { content: ""; position: absolute; left: 0; top: .7rem; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* Closing band links */
.close__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }

/* Footer, developed */
.bf { text-align: left; padding: clamp(4rem, 8vw, 5.5rem) 0 2.5rem; }
.bf__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2.4fr)); gap: 2.5rem; }
.bf__logo { width: 17.5rem; margin: 0; }
.bf__tag { margin-top: 1.6rem; font-family: var(--serif); font-style: italic; color: var(--cream-80); line-height: 1.5; }
.bf__col h2 { font-family: var(--sans); font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.bf__col li { margin-bottom: .55rem; font-size: .875rem; color: var(--cream-60); }
.bf__col a:hover { color: var(--cream); }
.bf__legal { max-width: none; justify-content: space-between; margin-top: 3.5rem; }

/* Responsive for additions */
@media (max-width: 1000px) {
  .split, .detail, .spec, .contact { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .ways { grid-template-columns: 1fr 1fr; }
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); }
  .stage > div:last-child { grid-column: 2; }
  .bf__grid { grid-template-columns: 1fr 1fr; }
  .bf__brand { grid-column: 1 / -1; }
  .sector { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .phero { min-height: 32rem; padding-top: 8rem; }
  .phero__planes svg { height: 45%; }
  .ways, .caps { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; gap: 1rem; }
  .stage > div:last-child { grid-column: auto; }
  .spec__table > div, .details > div { grid-template-columns: 1fr; gap: .3rem; }
  .tblock { grid-template-columns: 1fr; }
  .tblock .wide { grid-column: auto; }
  .tblock > div.half:nth-of-type(2) { border-right: 0; }
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--cream-line); }
  .ledger td { padding: 0; border: 0; }
  .ledger td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .ledger td:nth-child(3) { justify-self: end; align-self: center; }
  .ledger .fig { width: auto; font-size: 1.75rem; }
  .bf__grid { grid-template-columns: 1fr 1fr; }
  .bf__logo { width: 15rem; }
  .bhero__services { line-height: 2; }
  .bhero__services span { margin: 0 .4rem; }
}

/* Utilities and small components */
.mt-2 { margin-top: 2rem; }
.creds__note a { text-decoration: underline; text-underline-offset: 2px; }
.creds__note a:hover { color: var(--gold); }
.ways--two { grid-template-columns: 1fr 1fr; margin-top: 2.5rem; }
.split__text { margin-top: 1.5rem; }
.chevrons--wide { margin-bottom: 1rem; }
.chevrons--wide li { padding-block: 2.4rem; }
.chevrons--wide small { font-size: .8125rem; }
.contact__title { font-size: var(--step-3); margin: 1.2rem 0 0; max-width: 24ch; }
.contact .form { margin-top: 2.2rem; }
.ways .more { margin-top: 1.4rem; }
.sect--cream .tblock { color: var(--navy); }
.sect--cream .prose p.prose__lead:first-child { margin-top: 0; }
@media (max-width: 640px) {
  .ways--two { grid-template-columns: 1fr; }
  .chevrons--wide { grid-template-columns: 1fr 1fr; }
}

/* QA refinements */
.site .bhero__planes svg { height: 34%; }
.site .bhero__content { padding-bottom: 38vh; }
.bhero__tagline { margin-top: clamp(2rem, 5vh, 3.25rem); }
.phero__content::before { content: ""; position: absolute; z-index: -1; top: -6rem; bottom: -4rem; left: -50vw; right: 32%; background: linear-gradient(90deg, rgba(7, 9, 13, .94) 0%, rgba(7, 9, 13, .9) 70%, rgba(7, 9, 13, 0) 100%); pointer-events: none; }
.phero__content { isolation: isolate; }
.close h2 { font-size: var(--step-4); max-width: 22ch; margin-inline: auto; }
.close__inner > p { margin-top: 1.6rem; }
@media (max-width: 640px) {
  .phero__content::before { right: -2rem; background: linear-gradient(180deg, rgba(7,9,13,.92) 70%, rgba(7,9,13,0)); }
  .site .bhero__planes svg { height: 30%; }
}
@media (max-width: 600px) { .site .bh__enquire { display: none; } }
.outcome p.label { font-family: var(--sans); font-size: .6875rem; line-height: 1.6; margin-bottom: 1.2rem; }

/* ==========================================================================
   Scroll motion (active only when html.motion is set by motion.js)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .motion .rv { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 120ms); }
  .motion .rv-group.in .rv, .motion .rv-self.in { opacity: 1; transform: none; }
  .motion .facet.rv { transform: translate(-28px, 18px); }
  .motion .chevrons .rv { transform: translateX(-30px); transition-delay: calc(var(--i, 0) * 170ms + 200ms); }
  .motion .ascent__steps .rv { transform: translateY(60px); transition-duration: 1.2s, 1.4s; transition-delay: calc(var(--i, 0) * 200ms + 350ms); }

  /* Drawn gold lines */
  .motion .s-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease) .2s; }
  .motion .in .s-line, .motion .in.s-line { stroke-dashoffset: 0; }

  .motion .creds-band { position: relative; border-top-color: transparent; }
  .motion .creds-band::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); transform: scaleX(0); transition: transform 2s var(--ease); }
  .motion .creds-band.in::before { transform: scaleX(1); }

  .motion .ridge::before { transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease) .15s; }
  .motion .ridge.in::before { transform: scaleX(1); }
  @media (max-width: 1000px) { .motion .ridge::before { transform: scaleY(0); transform-origin: top; } .motion .ridge.in::before { transform: scaleY(1); } }

  .motion .ascent__steps .rv { border-top-color: transparent; position: relative; }
  .motion .ascent__steps .rv::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 200ms + 900ms); }
  .motion .ascent__steps.in .rv::before { transform: scaleX(1); }

  .motion .detail, .motion .stage { position: relative; }
  .motion .detail::before, .motion .stage::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .1s; }
  .motion .detail.in::before, .motion .stage.in::before { transform: scaleX(1); }

  .motion .sect__head { position: relative; }
  .motion .sect__head::after { content: ""; display: block; width: 4rem; height: 1px; margin-top: 1.8rem; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .5s; }
  .motion .sect__head.in::after { transform: scaleX(1); }

  .motion .pull { border-left-color: transparent; position: relative; }
  .motion .pull::before { content: ""; position: absolute; left: -3px; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .2s; }
  .motion .pull.in::before { transform: scaleY(1); }

  .motion .ledger thead th { border-bottom-color: transparent; }
  .motion .ledger thead { background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: left bottom; background-size: 0% 1px; transition: background-size 1.8s var(--ease); }
  .motion .ledger.in thead { background-size: 100% 1px; }

  .motion .diagram.rv { transform: translateY(26px) scale(.985); }

  /* The travelling light along hero ridges */
  .b-glint { stroke-dasharray: .07 1; stroke-dashoffset: .07; opacity: 0; animation: b-glint 9s 3.2s linear infinite; }
  .b-glint--late { animation-delay: 4.5s; }
  @keyframes b-glint { 0% { stroke-dashoffset: .07; opacity: 0; } 4% { opacity: .95; } 46% { opacity: .95; } 50% { stroke-dashoffset: -1; opacity: 0; } 100% { stroke-dashoffset: -1; opacity: 0; } }
}
.b-glint { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .js .b-glint { opacity: 0; } }

/* ==========================================================================
   Audit fixes and polish (round 2)
   ========================================================================== */
/* Browser support */
.bhero { min-height: 680px; min-height: max(100vh, 680px); min-height: max(100svh, 680px); }
.bh.is-scrolled, .ch, .hdr.is-scrolled { -webkit-backdrop-filter: blur(8px); }

/* Home hero: ridge now sits inside the visible band */
.site .bhero__planes svg { height: 36%; }
@media (max-width: 640px) { .site .bhero__planes svg { height: 32%; } }

/* Inner hero scrim: lighter so the ridge and glint read on the right */
.phero__content::before { right: 45%; background: linear-gradient(90deg, rgba(7,9,13,.9) 0%, rgba(7,9,13,.8) 60%, rgba(7,9,13,0) 100%); }

/* Scroll cue: a line of light runs down it */
.bhero__cue::after { background: linear-gradient(var(--gold-line), transparent); position: relative; }
.bhero__cue { overflow: hidden; }
.bhero__cue span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .bhero__cue::before { content: ""; position: absolute; left: 50%; bottom: 2.3rem; width: 1px; height: 1.2rem; margin-left: -.5px; background: var(--gold); animation: cue 2.4s 3s var(--ease) infinite; opacity: 0; }
  @keyframes cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(3.5rem); opacity: 0; } }
}

/* Tap targets of at least 24px (WCAG 2.2) */
.more { min-height: 2.75rem; margin-top: 1.4rem; }
.bf__col a { display: inline-block; padding-block: .3rem; }
.bf__col li { margin-bottom: .2rem; }
.crumb a { display: inline-block; padding-block: .35rem; }
.creds__note a { display: inline-block; padding-block: .25rem; }
.bf__top { display: inline-block; margin-left: 1rem; padding-block: .3rem; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Contrast: small labels on cream */
.sect--cream .tblock dt { color: #6a645d; }

/* Clickable cards on the contact page */
.ways--links article { position: relative; transition: background-color .3s var(--ease); }
.ways--links .more::before { content: ""; position: absolute; inset: 0; }
.ways--links article:hover { background: #222932; }
.ways--links article:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.ways--links .more:focus-visible { outline: none; }

/* Form validation */
.form__hint { font-size: .8125rem; color: var(--stone); margin: 0; }
.field label span { color: var(--gold); }
.field__error { margin: 0; min-height: 1.2em; font-size: .8125rem; color: #E8A27A; }
.field.has-error input, .field.has-error textarea { border-color: #E8A27A; box-shadow: 0 1px 0 0 #E8A27A; }
.form__status.is-ok { padding: 1rem 1.2rem; border: 1px solid var(--gold-line); background: rgba(181,137,68,.08); color: var(--cream); }
.form__status.is-error { padding: 1rem 1.2rem; border: 1px solid rgba(232,162,122,.5); background: rgba(232,162,122,.07); color: var(--cream); }
.form .btn[disabled] { opacity: .65; cursor: progress; }

/* Overlay menu reads as a dialog */
.menu[aria-modal] { overscroll-behavior: contain; overflow-y: auto; }

/* Calm motion for visitors who prefer reduced motion:
   content and gold lines fade and draw in place; nothing moves, nothing loops. */
.motion-calm .rv { opacity: 0; transition: opacity 1s ease; transition-delay: calc(var(--i, 0) * 80ms + 80ms); }
.motion-calm .rv-group.in .rv, .motion-calm .rv-self.in { opacity: 1; }
.motion-calm .s-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s ease .1s; }
.motion-calm .in .s-line { stroke-dashoffset: 0; }
.motion-calm .ridge::before, .motion-calm .detail::before, .motion-calm .stage::before { transition: opacity 1.4s ease; }
.motion-calm .detail::before, .motion-calm .stage::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--gold); opacity: 0; }
.motion-calm .detail, .motion-calm .stage { position: relative; }
.motion-calm .ridge::before { opacity: 0; }
.motion-calm .ridge.in::before, .motion-calm .detail.in::before, .motion-calm .stage.in::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .b-glint, .c-flow, .bhero__cue::before { animation: none !important; }
  .b-glint { display: none; }
  .js .b-line { animation-duration: 1.6s; }
  .js .bhero__logo, .js .bhero__tagline, .js .bhero__services { animation-name: b-fade; }
  .menu { transition: none; }
}

/* Glint: brighter and more frequent */
@media (prefers-reduced-motion: no-preference) {
  .b-glint { stroke-dasharray: .1 1; stroke-dashoffset: .1; animation: b-glint 7s 2.8s linear infinite; }
  .b-glint--late { animation-delay: 5.2s; animation-duration: 8s; }
  @keyframes b-glint { 0% { stroke-dashoffset: .1; opacity: 0; } 5% { opacity: 1; } 52% { opacity: 1; } 58% { stroke-dashoffset: -1; opacity: 0; } 100% { stroke-dashoffset: -1; opacity: 0; } }
}

/* Print */
@media print {
  .bh, .menu, .bhero__cue, .skip-link, form, .close__planes, .bhero__planes, .phero__planes { display: none !important; }
  body, .sect, .phero, .bhero, .close, .bf, .creds-band, .planes, .btech, .ascent, .manifesto { background: #fff !important; color: #0A131E !important; }
  .phero__content::before { display: none; }
  * { color: #0A131E !important; box-shadow: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}
picture { display: contents; }

/* Phone safe areas (notches, rounded corners, side system bars) */
:root { color-scheme: dark; }
.container { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.site .bh { padding-top: calc(1.5rem + env(safe-area-inset-top, 0px)); padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.site .bh.is-scrolled { padding-top: calc(.9rem + env(safe-area-inset-top, 0px)); }
.site .menu { padding-top: calc(6rem + env(safe-area-inset-top, 0px)); padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 600px) { .site .bh { padding-top: calc(1rem + env(safe-area-inset-top, 0px)); padding-bottom: 1rem; } }

/* Hosted preview: content is readable before it animates */
.motion .site--preview .rv, .motion-calm .site--preview .rv { opacity: .55; }
.motion .site--preview .rv-group.in .rv, .motion .site--preview .rv-self.in { opacity: 1; }
@media (max-width: 640px) {
  .site .bhero__planes svg { height: 50%; }
  .site .bhero__content { padding-bottom: 30vh; }
}

/* ==========================================================================
   Building Works & Property Maintenance — third service pillar
   ========================================================================== */
/* Header navigation: five items fit cleanly; tighten in the mid range */
@media (max-width: 1360px) { .bh__nav { gap: 1.45rem; } .bh__nav a { letter-spacing: .14em; } .bh__right { gap: 1.5rem; } }
@media (max-width: 1240px) { .bh__nav { display: none; } .bh__menu { display: inline-flex; } }

/* Homepage: three planes divided by two diagonals */
.planes--three .container { max-width: 1360px; }
.planes--three .planes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4.4vw, 4rem); }
.planes--three .plane h2 { font-size: clamp(1.75rem, 1.2rem + 1.1vw, 2.4rem); line-height: 1.1; min-height: 2.2em; }
.planes--three .plane--mid { padding-top: clamp(0rem, 3.5vw, 3.5rem); }
.planes--three .plane--right { padding-top: clamp(0rem, 7vw, 7rem); }
.planes--three .plane__intro { min-height: 4.8em; }
@media (max-width: 1000px) {
  .planes--three .planes__grid { grid-template-columns: 1fr; gap: 0; max-width: 40rem; }
  .planes--three .plane h2, .planes--three .plane__intro { min-height: 0; }
  .planes--three .plane--right::before { display: none; }
  .planes--three .plane + .plane { position: relative; padding-top: 4.5rem; margin-top: 4rem; }
  .planes--three .plane + .plane::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.5rem; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--gold-line) 50%, transparent calc(50% + 1px)); }
}

/* Card grids for three and four columns */
.ways--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ways--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ways--flush { margin-top: 0; }
@media (max-width: 1000px) { .ways--three, .ways--four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ways--three, .ways--four { grid-template-columns: 1fr; } }

/* Audience chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.chips li { font-size: .875rem; padding: .55rem .95rem; border: 1px solid var(--gold-line); color: var(--cream-80); background: rgba(7, 9, 13, .25); }

/* Calls to action inside content */
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
@media (max-width: 560px) { .cta-row .btn { flex: 1 1 100%; } }

/* Inline text links */
a.inline { color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; transition: text-decoration-color .25s; }
a.inline:hover { text-decoration-color: var(--gold); }
.sect--cream a.inline { color: #8a6630; }

/* ==========================================================================
   Logo descriptor as live text (approved artwork used down to its gold rule)
   ========================================================================== */
.descriptor { display: flex; justify-content: center; align-items: center; flex-wrap: nowrap; margin: 0; font-family: var(--sans); font-weight: 500; text-transform: uppercase; color: var(--cream); white-space: nowrap; }
.descriptor span + span::before { content: "|"; color: var(--gold); margin: 0 .95em; font-weight: 400; }
.bhero__descriptor { margin-top: clamp(.85rem, 1.6vw, 1.3rem); font-size: clamp(.6rem, .45rem + .42vw, .8rem); letter-spacing: .3em; }
.bhero__descriptor span:last-child { margin-right: -.3em; }
.js .bhero__descriptor { opacity: 0; animation: b-rise 1.6s 1.15s var(--ease) forwards; }
@media (prefers-reduced-motion: reduce) { .js .bhero__descriptor { animation-name: b-fade; } }
.bf__descriptor { justify-content: flex-start; margin-top: .7rem; font-size: .5625rem; letter-spacing: .22em; color: var(--gold); }
.bf__descriptor span + span::before { color: var(--gold-line); margin: 0 .7em; }
@media (max-width: 600px) {
  .bhero__descriptor { flex-direction: column; gap: .55rem; font-size: .6875rem; letter-spacing: .26em; }
  .bhero__descriptor span + span::before { content: none; }
  .bhero__descriptor span:last-child { margin-right: 0; }
  .bhero__descriptor span { margin-right: -.26em; }
}
@media (max-width: 600px) { .bf__descriptor { flex-wrap: wrap; white-space: normal; row-gap: .35rem; } }

/* ==========================================================================
   Homepage services: dividers anchored to the column grid, not the viewport
   ========================================================================== */
.planes--three .planes__line { display: none; }
.planes--three .planes__grid { --g: clamp(2rem, 4.4vw, 4rem); --col: calc((100% - 2 * var(--g)) / 3); gap: var(--g); }
.planes--three { --pad: clamp(5rem, 10vw, 8rem); }
.planes__panel, .planes__rule { position: absolute; top: calc(var(--pad) * -1); bottom: calc(var(--pad) * -1); pointer-events: none; z-index: -1; transform: skewX(-1.6deg); }
.planes--three .planes__grid { isolation: isolate; }
.planes__panel--1 { right: calc(100% - var(--col) - var(--g) / 2); width: 100vw; background: #13171D; }
.planes__panel--3 { left: calc(2 * var(--col) + 1.5 * var(--g)); width: 100vw; background: #10141A; }
.planes__rule { width: 1px; background: linear-gradient(180deg, rgba(181,137,68,.15), rgba(181,137,68,.7) 30%, rgba(181,137,68,.7) 70%, rgba(181,137,68,.15)); }
.planes__rule--1 { left: calc(var(--col) + var(--g) / 2); }
.planes__rule--2 { left: calc(2 * var(--col) + 1.5 * var(--g)); }
@media (prefers-reduced-motion: no-preference) {
  .motion .planes__rule { transform: skewX(-1.6deg) scaleY(0); transform-origin: top; transition: transform 2.2s var(--ease) .2s; }
  .motion .planes__rule--2 { transition-delay: .55s; }
  .motion .planes.in .planes__rule { transform: skewX(-1.6deg) scaleY(1); }
}
.motion-calm .planes__rule { opacity: 0; transition: opacity 1.6s ease; }
.motion-calm .planes.in .planes__rule { opacity: 1; }
@media (max-width: 1000px) { .planes__panel, .planes__rule { display: none; } }
/* Descriptor sized to sit within the wordmark, like the original lockup */
.bhero__descriptor { font-size: clamp(.56rem, .42rem + .34vw, .69rem); letter-spacing: .2em; }
.bhero__descriptor span + span::before { margin: 0 .7em; }
.bhero__descriptor span:last-child { margin-right: -.2em; }
@media (max-width: 600px) { .bhero__descriptor { gap: .45rem; font-size: .6875rem; letter-spacing: .24em; } }
/* Gentler slant and wider gutters keep the dividers clear of text at every width */
.planes--three .planes__grid { --g: clamp(3rem, 5.4vw, 5.25rem); }
.planes__panel, .planes__rule { transform: skewX(-.75deg); }
@media (prefers-reduced-motion: no-preference) {
  .motion .planes__rule { transform: skewX(-.75deg) scaleY(0); }
  .motion .planes.in .planes__rule { transform: skewX(-.75deg) scaleY(1); }
}
@media (max-width: 1180px) {
  .planes--three .planes__grid { grid-template-columns: 1fr; gap: 0; max-width: 40rem; }
  .planes--three .plane h2, .planes--three .plane__intro { min-height: 0; }
  .planes--three .plane--mid, .planes--three .plane--right { padding-top: 4.5rem; }
  .planes--three .plane + .plane { position: relative; margin-top: 4rem; }
  .planes--three .plane + .plane::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.5rem; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--gold-line) 50%, transparent calc(50% + 1px)); }
  .planes__panel, .planes__rule { display: none; }
}
/* Descriptor after rename: slightly tighter tracking keeps it close to the wordmark width */
.bhero__descriptor { letter-spacing: .16em; }
.bhero__descriptor span + span::before { margin: 0 .6em; }
.bhero__descriptor span:last-child { margin-right: -.16em; }
@media (max-width: 900px) {
  .bhero__descriptor { flex-direction: column; gap: .5rem; font-size: .6875rem; letter-spacing: .24em; }
  .bhero__descriptor span + span::before { content: none; }
  .bhero__descriptor span, .bhero__descriptor span:last-child { margin-right: -.24em; }
}
/* Phones: keep the scroll cue clear of the hero's gold ridge */
@media (max-width: 640px) {
  .bhero__cue { bottom: .9rem; gap: .55rem; }
  .bhero__cue::after { height: 2rem; }
  .bhero__cue::before { bottom: 1.1rem !important; }
  @keyframes cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(1.8rem); opacity: 0; } }
}

/* ==========================================================================
   Digital repositioning — content components built from existing tokens
   ========================================================================== */
/* Homepage introduction band (replaces the figures band) */
.intro-band { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.intro-band__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.intro-band__lead { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 1rem + 1vw, 1.85rem); line-height: 1.4; color: var(--cream); max-width: 34ch; }
.intro-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; }
@media (max-width: 900px) { .intro-band__grid { grid-template-columns: 1fr; } .intro-band__actions { justify-content: flex-start; } }
@media (max-width: 560px) { .intro-band__actions .btn { flex: 1 1 100%; } }

/* Compact service rows: title left, benefit right */
.detail--compact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; padding-block: clamp(1.6rem, 3vw, 2.2rem); }
.detail--compact h3 { margin: 0; font-size: var(--step-2); }
.detail--compact .detail__summary { margin: 0; color: var(--cream-80); }
@media (max-width: 1000px) { .detail--compact { gap: .6rem; } }

/* Six rising approach steps on the homepage */
.ascent__steps--six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.ascent__steps--six li { padding: 1.6rem 1.15rem 1.9rem; }
.ascent__steps--six li h3 { font-size: 1.25rem; }
.ascent__steps--six li:nth-child(1) { margin-top: 10rem; }
.ascent__steps--six li:nth-child(2) { margin-top: 8rem; }
.ascent__steps--six li:nth-child(3) { margin-top: 6rem; }
.ascent__steps--six li:nth-child(4) { margin-top: 4rem; }
.ascent__steps--six li:nth-child(5) { margin-top: 2rem; }
.ascent__steps--six li:nth-child(6) { margin-top: 0; }
@media (max-width: 1180px) {
  .ascent__steps--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ascent__steps--six li:nth-child(n) { margin-top: 0; }
  .ascent__steps--six li:nth-child(-n+3) { margin-top: 3rem; }
  .ascent__steps--six li:nth-child(1) { margin-top: 6rem; }
  .ascent__steps--six li:nth-child(4) { margin-top: 3rem; }
}
@media (max-width: 760px) {
  .ascent__steps--six { grid-template-columns: 1fr 1fr; }
  .ascent__steps--six li:nth-child(n) { margin-top: 0; }
  .ascent__steps--six li:nth-child(odd) { margin-top: 2rem; }
}
@media (max-width: 600px) {
  .ascent__steps--six { grid-template-columns: 1fr; }
  .ascent__steps--six li:nth-child(n) { margin-top: 0; margin-left: 0; }
}

/* Sectors on the cream plane */
.bfounder__lead { max-width: 44rem; margin-top: 1.6rem; color: var(--navy-70); font-size: 1.0625rem; }
.chips--cream { margin-top: 2.4rem; }
.chips--cream li { color: var(--navy); border-color: rgba(10, 19, 30, .22); background: transparent; }

/* Work teaser beside the homepage text */
.work-teaser li:first-child { border-top: 0; }

/* Our Work entries */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; }
.tag--status { border-color: var(--gold); color: var(--gold); }
.work-entry h2 { font-size: var(--step-4); }
.work-entry__summary { margin-top: 1.4rem; color: var(--cream-80); max-width: 32rem; }
.work-entry .qualifier { margin-top: 1rem; }

/* Contact: not sure where to start */
.unsure-note { margin-top: 2.5rem; padding: 1.6rem 1.6rem 1.7rem; border: 1px solid var(--gold-line); background: rgba(181, 137, 68, .06); }
.unsure-note h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.unsure-note p { margin: 0; color: var(--cream-80); font-size: .9375rem; }
/* Six navigation items: switch to the menu button below 1280px to keep generous spacing */
@media (max-width: 1279px) { .bh__nav { display: none; } .bh__menu { display: inline-flex; } }
/* Phones: footer descriptor stacks without separators */
@media (max-width: 600px) {
  .bf__descriptor { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .bf__descriptor span + span::before { content: none; }
}
