/* ===================== ABOUT ===================== */

/* ---------- hero ---------- */
.ah-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.about-hero .h-display { font-size: clamp(42px, 5.6vw, 84px); max-width: 14ch; }
.entity-win { max-width: 520px; margin-left: auto; }
.entity-code { margin: 0; padding: 22px 24px 26px; font-size: clamp(12.5px, 1.05vw, 14.5px); line-height: 1.85; white-space: pre-wrap; word-break: break-word; color: var(--muted); }
.entity-code .ln { display: block; }
html.js .ah-visual .entity-code .ln { opacity: 0; transform: translateX(-8px); }
html.js .ah-visual.is-in .entity-code .ln { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transition-delay: calc(0.45s + var(--i) * 0.09s); }
.t-p { color: var(--text); } .t-k { color: #b9cbff; } .t-s { color: var(--mint); } .t-n { color: var(--amber); } .t-c { color: var(--dim); }
.ah-note { margin-top: 14px; font-size: 12px; text-align: right; }
@media (max-width: 960px) {
  .ah-grid { grid-template-columns: 1fr; }
  .entity-win { margin-left: 0; }
  .ah-note { text-align: left; }
}

/* ---------- first 7 days: default = vertical (mobile / no GSAP / reduced motion) ---------- */
.history { position: relative; padding: clamp(64px, 8vw, 110px) 0; }
.hist-grid { display: block; }
.hist-left { display: contents; } /* lets the HUD stick across the whole timeline on mobile */
.hist-right { margin-top: 26px; }
.hist-sub { margin-top: 14px; font-size: 16px; max-width: 46ch; }
.hist-hud { position: sticky; top: calc(var(--header-h) + 10px); z-index: 5; margin-top: 26px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 18px; padding: 14px 20px; border-radius: 18px; background: rgba(8, 14, 40, 0.88); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); }
.hist-year { grid-row: span 2; font-size: clamp(40px, 9vw, 56px); font-weight: 600; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hist-name { font-size: 15px; color: var(--text); white-space: nowrap; }
.hn-b { color: var(--accent); }
.hist-name [data-hist-name] { text-transform: lowercase; }
.hist-bar { position: relative; height: 4px; border-radius: 2px; background: var(--line-2); margin-bottom: 14px; }
.hist-bar i { position: absolute; inset: 0; border-radius: 2px; background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform 0.6s var(--ease); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8); }
.hist-bar .mono { position: absolute; top: 8px; font-size: 10px; color: var(--dim); }
.hb-l { left: 0; } .hb-r { right: 0; }
.hist-list { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 30px; }
.hist-list::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.ms { position: relative; padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: opacity 0.5s var(--ease), border-color 0.5s, background 0.5s, transform 0.6s var(--ease); }
.ms::before { content: ""; position: absolute; left: -29px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: all 0.4s var(--ease); }
.ms-meta { font-size: 11.5px; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.ms h3 { font-size: clamp(22px, 2.2vw, 30px); margin: 8px 0 8px; }
.ms p { color: var(--muted); font-size: 15.5px; max-width: 52ch; }
.ms.is-active { border-color: rgba(var(--accent-rgb), 0.65); background: rgba(var(--accent-rgb), 0.08); }
.ms.is-active::before, .ms.is-past::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.ms-key.is-active { border-color: rgba(87, 242, 176, 0.65); background: rgba(87, 242, 176, 0.07); }

/* ---------- history: pinned desktop mode ---------- */
.history.hist-pinned { padding: 0; }
.hist-pinned .hist-pin { height: 100vh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.hist-pinned .hist-left { display: block; }
.hist-pinned .hist-right { margin-top: 0; }
.hist-pinned .hist-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 5vw, 80px); align-items: center; height: 100%; }
.hist-pinned .hist-hud { position: relative; top: 0; margin-top: 34px; display: block; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hist-pinned .hist-year { font-size: clamp(110px, 13vw, 200px); line-height: 0.85; }
.hist-pinned .hist-name { display: block; margin-top: 18px; font-size: clamp(20px, 2vw, 28px); }
.hist-pinned .hist-bar { margin-top: 26px; max-width: 420px; }
.hist-pinned .hist-right { position: relative; height: min(72vh, 640px); overflow: hidden; -webkit-mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.hist-pinned .hist-list { transition: transform 0.8s var(--ease); will-change: transform; }
.hist-pinned .hist-list::before { display: none; }
.hist-pinned .ms { opacity: 0.28; transform: scale(0.96); transform-origin: left center; }
.hist-pinned .ms::before { display: none; }
.hist-pinned .ms.is-past { opacity: 0.45; }
.hist-pinned .ms.is-active { opacity: 1; transform: none; }
.hist-pinned .hist-list { padding-left: 0; }

/* ---------- numbers ---------- */
.numbers .stat-num.is-word { font-size: clamp(34px, 4.2vw, 60px); white-space: nowrap; }

/* ---------- who we work with ---------- */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.person { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; transform-style: preserve-3d; }
.person h3 { font-size: 20px; margin: 4px 0 0; }
.person p { font-size: 14.5px; }
.p-link { margin-top: auto; padding-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--cyan); opacity: 0.8; transition: opacity 0.3s, transform 0.3s var(--ease); }
.person:hover .p-link, .person:focus-visible .p-link { opacity: 1; transform: translateX(3px); }
.person-you { border-style: dashed; border-color: rgba(var(--accent-rgb), 0.45); }
.person-you .mono-av span { color: var(--cyan); }
.mono-av { position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; isolation: isolate; }
.mono-av::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -2; background: conic-gradient(from 0deg, #5b8cff, #9a83ff, #46e1ff, #5b8cff); animation: avspin 8s linear infinite; }
.mono-av::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; z-index: -1; background: radial-gradient(circle at 30% 25%, #16245e, #070d24 75%); }
.mono-av span { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
@keyframes avspin { to { transform: rotate(360deg); } }
.person:hover .mono-av::before { animation-duration: 2.5s; }
.p-code { font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.team-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.team-facts li { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; background: var(--bg); }
.team-facts b { font-size: 15px; color: var(--text); }
.team-facts span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 1060px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .people { grid-template-columns: 1fr; }
  .team-facts { grid-template-columns: 1fr; }
}

/* ---------- principles + values ---------- */
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.four-card { display: flex; flex-direction: column; min-height: 220px; }
.four-n { font-size: 13px; color: var(--accent); margin-bottom: auto; padding-bottom: 24px; }
.values { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(26px, 5vw, 70px); margin-top: clamp(60px, 8vw, 100px); align-items: start; }
.values-head .h-3 { margin: 10px 0 10px; }
.values-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; border-top: 1px solid var(--line); }
.values-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.values-list .mono { font-size: 12px; color: var(--accent); padding-top: 3px; }
.values-list b { font-size: 17px; letter-spacing: -0.015em; }
.values-list p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
@media (max-width: 1000px) { .four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .values { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .four { grid-template-columns: 1fr; } .four-card { min-height: 0; } .values-list { grid-template-columns: 1fr; } }

/* ---------- london + services orbit ---------- */
.pub-strip { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(5, 10, 28, 0.55); }
.marquee-item.pub { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.01em; color: rgba(243, 245, 252, 0.5); }
.network { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-top: clamp(60px, 8vw, 100px); }
.net-copy .h-3 { margin: 10px 0 12px; }
.net-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 26px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); font-style: normal; font-size: 15px; color: var(--muted); }
.net-contact .mono-label { margin-bottom: 4px; font-size: 11.5px; }
.net-contact a { color: var(--text); font-weight: 500; }
.net-contact a:hover { color: var(--cyan); }
.orbit-net { --r: clamp(130px, 15vw, 190px); position: relative; width: calc(var(--r) * 2 + 150px); max-width: 100%; aspect-ratio: 1; margin: 0 auto; }
.orbit-net::before, .orbit-net::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); border: 1px dashed var(--line-2); }
.orbit-net::before { width: calc(var(--r) * 2); height: calc(var(--r) * 2); }
.orbit-net::after { width: calc(var(--r) * 1.1); height: calc(var(--r) * 1.1); border-style: solid; border-color: var(--line); }
.on-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; align-items: center; gap: 10px; font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 14px 20px; border-radius: 18px; background: rgba(8, 14, 40, 0.9); border: 1px solid rgba(var(--accent-rgb), 0.6); box-shadow: 0 0 60px -10px rgba(var(--accent-rgb), 0.8); white-space: nowrap; }
.on-core img { width: 34px; height: auto; }
.on-ring span { position: absolute; left: 50%; top: 50%; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--text); background: rgba(10, 18, 48, 0.92); border: 1px solid var(--line-2); transform: translate(-50%, -50%) rotate(calc(var(--i) * var(--step, 45deg))) translateX(var(--r)) rotate(calc(var(--i) * var(--step, 45deg) * -1)); animation: orbit 60s linear infinite; transition: border-color 0.3s, color 0.3s; }
.on-ring span:hover { border-color: var(--cyan); color: var(--cyan); }
.orbit-net:hover .on-ring span { animation-play-state: paused; }
@keyframes orbit {
  from { transform: translate(-50%, -50%) rotate(calc(var(--i) * var(--step, 45deg))) translateX(var(--r)) rotate(calc(var(--i) * var(--step, 45deg) * -1)); }
  to { transform: translate(-50%, -50%) rotate(calc(var(--i) * var(--step, 45deg) + 360deg)) translateX(var(--r)) rotate(calc(var(--i) * var(--step, 45deg) * -1 - 360deg)); }
}
@media (max-width: 900px) { .network { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .orbit-net { width: 100%; aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .orbit-net::before, .orbit-net::after { display: none; }
  .on-core { position: static; transform: none; }
  .on-ring { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .on-ring span { position: static; transform: none; animation: none; }
}

/* ---------- day theme ---------- */
html[data-theme="light"] .hist-hud { background: rgba(255, 255, 255, 0.92); box-shadow: 0 12px 30px -20px rgba(20, 40, 110, 0.4); }
html[data-theme="light"] .hist-pinned .hist-hud { background: none; box-shadow: none; }
html[data-theme="light"] .hist-bar i { box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.45); }
html[data-theme="light"] .ms { background: #fff; }
html[data-theme="light"] .ms.is-active { background: #fff; box-shadow: 0 16px 36px -24px rgba(var(--accent-rgb), 0.55); }
html[data-theme="light"] .mono-av::before { background: conic-gradient(from 0deg, #3461f0, #7356ee, #0a9cc4, #3461f0); }
html[data-theme="light"] .mono-av::after { background: radial-gradient(circle at 30% 25%, #ffffff, #e4eafb 75%); }
html[data-theme="light"] .team-facts li { background: #fff; }
html[data-theme="light"] .pub-strip { background: rgba(255, 255, 255, 0.65); }
html[data-theme="light"] .marquee-item.pub { color: rgba(10, 17, 48, 0.6); }
html[data-theme="light"] .marquee-item.pub:hover { color: var(--text); }
html[data-theme="light"] .on-core { background: #fff; box-shadow: 0 18px 44px -18px rgba(var(--accent-rgb), 0.5); }
html[data-theme="light"] .on-ring span { background: #fff; box-shadow: 0 6px 16px -10px rgba(20, 40, 110, 0.35); }
html[data-theme="light"] .net-contact { background: #fff; box-shadow: 0 12px 30px -24px rgba(20, 40, 110, 0.35); }
html[data-theme="light"] .person-you { background: linear-gradient(180deg, #ffffff, #f2f6ff); }
