/* Inner pages — the homepage's visual system applied to About, Services, service pages, Get Involved, Contact,
   Privacy and 404. Text containers never have fixed heights or clip their content; only photo frames clip.
   Motion: inner.js. Everything here is complete and readable without it. */

/* Headline accent, shared with the homepage */
.ph__h em, .section__h em, .band__h em, .lost__h em { font-style: normal; font-weight: inherit; color: var(--blue); }

/* ---------------- Page opening ---------------- */
.ph { --bg: var(--ivory); --fg: var(--ink); --sub: var(--ink); background: var(--bg); color: var(--fg); padding: clamp(120px, 15vh, 170px) 0 clamp(56px, 7vw, 104px); }
.ph--night { --bg: #0C111B; --fg: #fff; --sub: #C5CEDC; }
.ph--blue { --bg: #0E2A4A; --fg: #fff; --sub: #D5E0EE; }
.ph--earth { --bg: #3B2416; --fg: #fff; --sub: #EADCCD; }
.ph--night .kicker, .ph--blue .kicker { color: #8FB0FF; }
.ph--earth .kicker { color: #F0C27A; }
.ph--night .ph__h em, .ph--blue .ph__h em { color: #A9C3FF; }
.ph--earth .ph__h em { color: #F0C27A; }
.ph__text { padding: 0 var(--pad); }
.ph__h { font-family: var(--sans); font-weight: 600; font-size: clamp(44px, 7.2vw, 124px); line-height: 1.02; letter-spacing: -.03em; max-width: 13.5em; margin-bottom: clamp(24px, 3vw, 44px); overflow-wrap: break-word; hyphens: manual; }
.ph__side { max-width: 46ch; }
.ph__lead { color: var(--sub); font-size: clamp(1.1rem, 1rem + .35vw, 1.35rem); margin-bottom: 28px; }
.ph__side .ph__lead:last-child { margin-bottom: 0; }
.ph__frame { margin-top: clamp(44px, 6vw, 88px); height: clamp(300px, 68vh, 780px); overflow: hidden; clip-path: inset(0 var(--pad) round 18px); }
.ph__img, .ph__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .ph__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 46ch); column-gap: 6vw; align-items: end; }
  .ph__text .kicker { grid-column: 1 / -1; }
  .ph__h { margin-bottom: 0; }
  .ph__side { padding-bottom: .6em; }
}
@media (min-width: 900px) and (max-width: 1199px) { .ph__text { grid-template-columns: 1fr; } .ph__h { margin-bottom: 36px; } }

/* ---------------- Sections ---------------- */
.section { background: var(--ivory); padding: clamp(80px, 10vw, 150px) var(--pad); }
.section--paper { background: var(--paper); }
.section__head { margin-bottom: clamp(36px, 5vw, 72px); }
.section__h { font-family: var(--sans); font-weight: 600; font-size: clamp(36px, 4.6vw, 76px); line-height: 1.03; letter-spacing: -.025em; max-width: 14em; }
.section__intro { margin-top: 24px; max-width: 62ch; color: var(--muted); }

/* Dark statement (About): words light as you scroll, as on the homepage */
.dark-statement { background: #0C111B; color: #fff; padding: clamp(88px, 12vw, 170px) var(--pad); }
.dark-statement__grid { display: grid; gap: 56px; }
.dark-statement__text { font-family: var(--sans); font-weight: 500; font-size: clamp(30px, 3.6vw, 60px); line-height: 1.16; letter-spacing: -.015em; max-width: 20em; }
.dark-statement__text .w { color: #64708A; transition: color .25s; }
.dark-statement__text .w.is-lit, html:not(.motion) .dark-statement__text .w { color: #fff; }
.dark-statement__sub { font-family: var(--sans); font-weight: 450; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.25; color: #C5CEDC; max-width: 24em; }
@media (min-width: 1000px) { .dark-statement__grid { grid-template-columns: 1.6fr 1fr; align-items: end; gap: 6vw; } }

/* Numbered points, as in the homepage's approach section */
.steps { display: grid; gap: 40px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; }
.steps__n { display: block; font-family: var(--sans); font-weight: 300; font-size: clamp(56px, 6vw, 104px); line-height: 1; color: var(--blue); margin-bottom: 14px; }
.steps h2, .steps h3 { font-family: var(--sans); font-weight: 600; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.12; margin-bottom: 10px; }
.steps p { color: var(--muted); max-width: 48ch; }
.steps .steps__lead { color: var(--ink); font-weight: 600; }
@media (min-width: 800px) {
  .steps--two, .steps--long { grid-template-columns: 1fr 1fr; column-gap: 5vw; row-gap: 64px; }
  .steps--three { grid-template-columns: repeat(3, 1fr); column-gap: 3.4vw; }
}
.note { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(48px, 6vw, 80px); }
.note p { color: var(--muted); max-width: 52ch; margin: 0; }

/* Service rows: one whole-row link each; main services lead */
.rows { border-bottom: 1px solid var(--line); }
.rows__item a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: padding .35s var(--ease); }
.rows__tag { grid-column: 1; font: 700 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rows__title { grid-column: 1; font-family: var(--sans); font-weight: 600; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.08; transition: color .2s var(--ease); }
.rows__text { grid-column: 1; color: var(--muted); max-width: 60ch; font-size: .95em; margin-top: 4px; }
.rows__item .arr { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 28px; color: var(--blue); }
.rows__item.is-primary .rows__tag { color: var(--blue); }
.rows__item.is-primary .rows__title { font-size: clamp(32px, 3.6vw, 58px); }
.rows__item a:hover .rows__title, .rows__item a:focus-visible .rows__title { color: var(--blue); }
@media (pointer: fine) { .rows__item a:hover { padding-inline: 14px; } }
@media (min-width: 1000px) {
  .rows__item a { grid-template-columns: 13em minmax(0, 1fr) minmax(0, .9fr) auto; align-items: baseline; padding: 30px 0; }
  .rows__tag { grid-column: 1; } .rows__title { grid-column: 2; } .rows__text { grid-column: 3; margin: 0; }
  .rows__item .arr { grid-column: 4; grid-row: 1; }
}

/* Main services as scenes (Services page) */
.feat { --bg: #0E2A4A; background: var(--bg); color: var(--ink); padding: clamp(64px, 8vw, 120px) var(--pad); }
.feat--earth { --bg: #3B2416; }
.feat__frame { height: clamp(300px, 60vh, 720px); border-radius: 18px; overflow: hidden; }
.feat__frame picture, .feat__frame img { width: 100%; height: 100%; object-fit: cover; }
.feat__card { position: relative; margin: -48px 14px 0; background: var(--ivory); border-radius: 18px; padding: 30px 28px 34px; }
.feat__title { font-family: var(--sans); font-weight: 600; font-size: clamp(38px, 4vw, 66px); line-height: 1; letter-spacing: -.02em; margin-bottom: 14px; }
.feat__text { font-size: 1.08em; margin-bottom: 26px; max-width: 44ch; }
@media (min-width: 1000px) {
  .feat { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; }
  .feat__frame { grid-column: 1 / span 9; grid-row: 1; height: min(82vh, 820px); }
  .feat__card { grid-column: 8 / span 5; grid-row: 1; margin: 0 0 7vh; padding: 40px 40px 44px; }
  .feat--flip .feat__frame { grid-column: 4 / span 9; }
  .feat--flip .feat__card { grid-column: 1 / span 5; }
}

/* Supporting service cards */
.cards { display: grid; gap: 40px 2.4vw; }
.card { display: flex; flex-direction: column; color: var(--ink); }
.card__img { display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.card__img picture, .card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__num { font-family: var(--sans); font-weight: 700; color: var(--blue); font-size: 18px; margin: 0; }
.card__title { font-family: var(--sans); font-weight: 600; font-size: clamp(26px, 2.1vw, 34px); line-height: 1.08; margin: 2px 0 10px; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--blue); }
.card__text { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.card__cta { font-weight: 700; margin-top: auto; text-decoration: none; padding-block: 6px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* Listings on the two main service pages */
.listing { background: var(--ivory); padding: clamp(80px, 10vw, 150px) var(--pad); display: grid; gap: 48px; }
.listing__frame { aspect-ratio: 4 / 5; max-height: 80vh; border-radius: 18px; overflow: hidden; }
.listing__frame picture, .listing__frame img { width: 100%; height: 100%; object-fit: cover; }
.notice { margin-top: 32px; background: var(--paper); border-radius: 18px; padding: clamp(26px, 3vw, 40px); max-width: 640px; box-shadow: 0 1px 0 var(--line); }
.notice p { font-size: 1.08em; margin-bottom: 24px; }
.records { margin-top: 32px; display: grid; gap: 20px; }
.record { background: var(--paper); border-radius: 18px; padding: clamp(26px, 3vw, 40px); }
.record__h { font-family: var(--sans); font-weight: 600; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; margin-bottom: 18px; overflow-wrap: anywhere; }
.record__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; margin: 0 0 20px; }
.record__facts dt { font: 700 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.record__facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.record__body { color: var(--muted); margin-bottom: 20px; }
@media (min-width: 1000px) { .listing { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 6vw; align-items: start; } .listing__frame { position: sticky; top: 110px; } }

/* Closing band: the glass tile returns, lit */
.band { position: relative; overflow: hidden; background: var(--night); color: #fff; text-align: center; padding: clamp(96px, 13vw, 170px) var(--pad) clamp(88px, 11vw, 150px); display: grid; justify-items: center; }
.band::before { content: ""; position: absolute; left: 50%; top: 18%; width: min(900px, 160vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(61, 123, 255, .26), transparent 60%); pointer-events: none; }
.band > * { position: relative; }
.band__tile { width: clamp(92px, 9vw, 130px); margin-bottom: 36px; box-shadow: inset 0 0 0 1.5px rgba(190, 212, 255, .95), 0 0 30px 2px rgba(61, 123, 255, .7), 0 0 90px 18px rgba(40, 90, 255, .28); }
.band__h { font-family: var(--sans); font-weight: 600; font-size: clamp(40px, 6vw, 104px); line-height: 1; letter-spacing: -.03em; max-width: 13em; margin-bottom: 22px; }
.band__h em { color: #A9C3FF; }
.band__body { color: #B9C3D3; max-width: 44ch; margin-bottom: 30px; }
.band .btn { margin-top: 8px; }

/* ---------------- Contact ---------------- */
.contact { background: var(--ivory); padding: clamp(56px, 7vw, 104px) var(--pad) clamp(80px, 10vw, 140px); }
.contact__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 3vw; } .office { position: sticky; top: 110px; } }
.form-card { background: var(--paper); border-radius: 22px; padding: clamp(26px, 4vw, 56px); }
.form-card__h { font-family: var(--sans); font-weight: 600; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.05; margin-bottom: 6px; }
.form-card__sub { color: var(--muted); margin-bottom: 28px; }
.form__set { border: 0; padding: 0; margin: 0; display: grid; gap: 22px; min-width: 0; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; }
.field__opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 12px 16px; border: 1.5px solid rgba(16, 24, 38, .28); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(61, 123, 255, .22); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field__error { color: #B42318; font-weight: 600; margin: 0; }
fieldset:disabled .field input, fieldset:disabled .field select, fieldset:disabled .field textarea, fieldset:disabled .btn { opacity: .55; cursor: not-allowed; }
.form__privacy { color: var(--muted); font-size: .95em; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; font-weight: 600; }
.alert ul { margin-top: 8px; padding-left: 1.2em; list-style: disc; font-weight: 400; }
.alert--ok { background: #E6F4EA; color: #14532D; }
.alert--err { background: #FDECEA; color: #8A1C12; }
.alert--info { background: #E8EFFB; color: #10345F; }
.office { background: var(--night); color: #fff; border-radius: 22px; padding: clamp(28px, 3vw, 40px); overflow-wrap: anywhere; }
.office__tile { width: 64px; margin-bottom: 26px; box-shadow: inset 0 0 0 1.5px rgba(190, 212, 255, .95), 0 0 22px 1px rgba(61, 123, 255, .7); }
.office__lines { display: grid; font-family: var(--sans); font-weight: 450; font-size: clamp(24px, 2vw, 32px); line-height: 1.2; margin-bottom: 14px; }
.office a { color: #fff; }
.office__line { margin: 10px 0 0; color: #C5CEDC; }

/* ---------------- Privacy ---------------- */
.prose { background: var(--paper); padding: clamp(64px, 8vw, 120px) var(--pad); display: grid; gap: 40px; }
.prose__toc ol { display: grid; gap: 4px; counter-reset: toc; }
.prose__toc a { display: inline-block; padding-block: 5px; color: var(--ink); text-decoration: none; }
.prose__toc a:hover { color: var(--blue); text-decoration: underline; }
.prose__body { max-width: 68ch; }
.prose__part { padding-block: 28px; border-top: 1px solid var(--line); }
.prose__part h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; margin-bottom: 14px; scroll-margin-top: 110px; }
.prose__n { display: block; font: 700 15px var(--sans); color: var(--blue); margin-bottom: 4px; }
@media (min-width: 1000px) { .prose { grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: 6vw; } .prose__toc { position: sticky; top: 120px; align-self: start; } }

/* ---------------- 404: the tile in the dark ---------------- */
.lost { position: relative; overflow: hidden; min-height: 100svh; background: radial-gradient(70% 60% at 50% 30%, #13285a 0%, #0a1430 40%, #05080f 75%); color: #fff; display: grid; align-content: center; justify-items: center; text-align: center; padding: 130px var(--pad) 80px; }
.lost__tile { width: clamp(110px, 12vw, 160px); margin-bottom: 40px; box-shadow: inset 0 0 0 1.5px rgba(190, 212, 255, .95), 0 0 34px 3px rgba(61, 123, 255, .75), 0 0 110px 24px rgba(40, 90, 255, .3); }
.lost__h { font-family: var(--sans); font-weight: 600; font-size: clamp(46px, 8vw, 132px); line-height: 1; letter-spacing: -.03em; margin-bottom: 20px; max-width: 12em; }
.lost__h em { color: #A9C3FF; }
.lost__body { color: #B9C3D3; max-width: 40ch; margin-bottom: 32px; }
.lost__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------------- Entrance (inner.js) ----------------
   Until the script runs, opening elements wait invisible; a failsafe in the page head removes the flag after 2.5s. */
html.is-entering [data-enter] { opacity: 0; }
/* Start state of framed photographs that open on scroll; must match inner.js. */
[data-reveal-frame].is-armed { clip-path: inset(8% 8% 8% 8% round 18px); }
[data-reveal-frame].is-armed img { transform: scale(1.15); }
@media (prefers-reduced-motion: reduce) { .card__img img { transition: none; } }
