/*
Theme Name: Sheikh Owais
Theme URI: https://www.sheikhowais.com
Author: Sheikh Owais
Description: Brand theme for sheikhowais.com. Navy and logo-blue, arch-led, editorial, animated. Pair with the Sheikh Owais Site Manager plugin.
Version: 2.3.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sheikhowais
*/

/* ---------- Tokens ---------- */
:root {
  --surface: #F4F6FA; --raised: #FFFFFF; --mist: #E4E9F2; --ink: #0E1A33; --steel: #56627A; --hair: #D3DAE7;
  --navy: #0B1F4B; --night: #07142F; --deep: #17327A; --slate: #25324D; --ivory: #EEF2FA;
  --accent: #2A4BD7; --accent-lt: #9DB2FF; --on-accent: #FFFFFF;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px); --max: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hdr-h: 76px; --bar-h: 0px;
}
body.has-bar { --bar-h: 38px; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/1.65 var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tone-dark :focus-visible, .tone-night :focus-visible, .so-nav :focus-visible, .lb :focus-visible { outline-color: var(--accent-lt); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 500; background: var(--accent); color: var(--on-accent); padding: 10px 16px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + var(--gutter) * 2); }
.sec { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.tone-light { background: var(--surface); color: var(--ink); }
.tone-mist { background: var(--mist); color: var(--ink); }
.tone-dark { background: var(--navy); color: var(--ivory); }
.tone-night { background: var(--night); color: var(--ivory); }
.tone-dark, .tone-night { position: relative; }

.eyebrow { display: flex; align-items: center; gap: 14px; font: 600 12px/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-lt); margin-bottom: 24px; }
.eyebrow::before { content: ""; width: 0; height: 1px; background: currentColor; transition: width 1s var(--ease) .2s; }
.eyebrow.is-in::before, .no-js .eyebrow::before { width: 40px; }
.tone-light .eyebrow, .tone-mist .eyebrow, .eyebrow.dark { color: var(--accent); }
.display { font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.02em; }
.display.xl { font-size: clamp(44px, 7.6vw, 108px); line-height: .97; letter-spacing: -.03em; }
.display.sm { font-size: clamp(28px, 3.6vw, 44px); }
.lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; max-width: 620px; margin-top: 28px; color: rgba(238, 242, 250, .82); }
.lead p + p { margin-top: 1em; }
.tone-light .lead, .tone-mist .lead { color: var(--steel); }
.fine { margin-top: 32px; font-size: 14px; color: var(--steel); }
.tag { font: 600 12px/1.4 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.lead-dark { color: var(--steel); font-size: 20px; }

/* word reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; }
.w.em { font-style: italic; color: var(--accent-lt); }
.tone-light .w.em, .tone-mist .w.em { color: var(--accent); }
.js [data-reveal="words"] .w > span { transform: translateY(112%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i) * 70ms + var(--d, 0s)); }
.js [data-reveal="words"].is-in .w > span { transform: none; }
/* generic reveals */
.js [data-reveal]:not([data-reveal="words"]) { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity .9s var(--ease), transform 1s var(--ease), clip-path 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="arch"] { transform: translate3d(0, 80px, 0) scale(.94); }
.js [data-reveal="left"] { transform: translate3d(-60px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(60px, 0, 0); }
.js [data-reveal="zoom"] { transform: scale(.9); }
.js [data-reveal="curtain"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); }
.js [data-reveal="curtain"] img { transform: scale(1.25); transition: transform 1.6s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="curtain"].is-in { clip-path: inset(0); }
.js [data-reveal="curtain"].is-in img { transform: scale(1); }
.js [data-reveal]:not([data-reveal="words"]).is-in { opacity: 1; transform: translate3d(0, var(--dy, 0px), 0); }
.js [data-reveal="curtain"].is-in { transform: none; }

/* ---------- Buttons and links ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 16px 30px; border: 1px solid transparent; border-radius: 2px; font: 600 12px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s, transform .3s var(--ease); cursor: pointer; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary::before { background: var(--navy); }
.tone-dark .btn-primary::before, .tone-night .btn-primary::before, .so-hdr .btn-primary::before { background: var(--ivory); }
.tone-dark .btn-primary:hover, .tone-night .btn-primary:hover { color: var(--navy); }
.btn-ghost { border-color: rgba(238, 242, 250, .45); color: var(--ivory); }
.btn-ghost::before { background: var(--ivory); }
.btn-ghost:hover { color: var(--navy); border-color: var(--ivory); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--ivory); }
.btn-sm { padding: 12px 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.link-arrow { font: 600 12px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid currentColor; transition: color .3s; }
.link-arrow::after { content: "  \2192"; }
.link-arrow:hover { color: var(--accent); }
.tone-dark .link-arrow:hover, .tone-night .link-arrow:hover { color: var(--accent-lt); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head .eyebrow { margin: 0; }

/* ---------- Page transition, progress, cursor ---------- */
.so-wipe { position: fixed; left: 0; right: 0; top: 0; height: 200vh; background: var(--navy); z-index: 400; pointer-events: none; clip-path: url(#so-arch); transform: translateY(100vh); }
.so-leave .so-wipe { transition: transform .65s cubic-bezier(.76, 0, .24, 1); transform: translateY(-85vh); }
.so-arrive .so-wipe { transform: translateY(-85vh); }
.so-arrive.so-arrive-go .so-wipe { transition: transform .85s cubic-bezier(.76, 0, .24, 1); transform: translateY(-205vh); }
.so-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.so-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.so-cursor { position: fixed; left: 0; top: 0; z-index: 350; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid var(--accent); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s; mix-blend-mode: difference; border-color: #fff; }
.so-cursor.on { opacity: .9; }
.so-cursor.big { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(255, 255, 255, .12); }
@media (hover: none), (pointer: coarse) { .so-cursor { display: none; } }

/* ---------- Header ---------- */
.so-top { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: transform .5s var(--ease); }
body.admin-bar .so-top { top: 32px; }
.so-top.is-hidden { transform: translateY(-100%); }
.so-bar { height: 38px; display: flex; align-items: center; justify-content: center; padding-inline: 16px; background: var(--accent); color: var(--on-accent); font: 500 13px/1.2 var(--f-sans); text-align: center; }
.so-bar a { text-decoration: underline; text-underline-offset: 3px; }
.so-hdr { position: relative; isolation: isolate; height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--gutter); transition: color .4s; color: var(--ink); }
.so-hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s, background .4s; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); background: rgba(244, 246, 250, .86); box-shadow: 0 1px 0 var(--hair); }
.so-hdr.is-scrolled::before { opacity: 1; }
body[data-tone="dark"] .so-hdr { color: var(--ivory); }
body[data-tone="dark"] .so-hdr::before { background: rgba(7, 20, 47, .82); box-shadow: 0 1px 0 rgba(238, 242, 250, .1); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.logo-default { display: inline-flex; align-items: center; gap: 12px; }
.logo-mk { height: 34px; width: auto; }
.logo-word { font: 600 21px/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.logo-img img { max-height: 44px; width: auto; }
.logo-on-dark { display: none; }
body[data-tone="dark"] .so-hdr .logo-on-light { display: none; }
body[data-tone="dark"] .so-hdr .logo-on-dark { display: inline-flex; }
.tone-dark .logo-on-light, .tone-night .logo-on-light { display: none; }
.tone-dark .logo-on-dark, .tone-night .logo-on-dark { display: inline-flex; }

.so-nav { display: flex; align-items: center; gap: 36px; }
.nav { display: flex; gap: 32px; }
.nav a { position: relative; font: 500 14px/1 var(--f-sans); letter-spacing: .02em; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
body[data-tone="dark"] .nav a::after { background: var(--accent-lt); }
.nav a:hover::after, .nav .current-menu-item > a::after, .nav .current_page_item > a::after { transform: scaleX(1); }
.nav-cta { padding: 13px 22px; }
.burger { display: none; position: relative; width: 44px; height: 44px; background: none; border: 0; z-index: 3; }
.burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger i:nth-child(2) { top: 16px; }
.burger i:nth-child(3) { top: 26px; }
.menu-open .burger { color: var(--ivory); }
.menu-open .burger i:nth-child(2) { top: 21px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(3) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .burger { display: block; }
  .so-nav { position: fixed; inset: 0; z-index: 2; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 96px var(--gutter) 48px; background: var(--night); color: var(--ivory); clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease); visibility: hidden; }
  .menu-open .so-nav { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
  .nav { flex-direction: column; gap: 14px; }
  .nav a { font: 600 clamp(34px, 9vw, 52px)/1.1 var(--f-display); }
  .menu-open { overflow: hidden; }
}

/* ---------- Textures ---------- */
.tex { position: absolute; inset: -6% 0; background: center / cover no-repeat; pointer-events: none; will-change: transform; }
.tex-dark { background-image: url("assets/img/contours-dark.svg"); opacity: .55; }
.tex-light { background-image: url("assets/img/contours-light.svg"); opacity: .5; }
.grain { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay; pointer-events: none; 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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(120px, 22vw, 300px); object-fit: cover; object-position: bottom; pointer-events: none; }

/* ---------- Arch frames (portraits) ---------- */
.arch-wrap { position: relative; width: 100%; }
.arch-ring { position: absolute; inset: -14px -14px 0 14px; width: calc(100% + 0px); height: 100%; overflow: visible; pointer-events: none; }
.arch-ring path { fill: none; stroke: var(--accent-lt); stroke-width: 1.4; stroke-opacity: .7; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease) .5s; }
.tone-light .arch-ring path, .tone-mist .arch-ring path { stroke: var(--accent); }
.arch-wrap.is-in .arch-ring path, .no-js .arch-ring path { stroke-dashoffset: 0; }
.arch-ring.r2 { inset: -30px -30px 0 30px; opacity: .45; }
.arch-img { position: relative; aspect-ratio: 3 / 4.2; clip-path: url(#so-arch); background: var(--deep); overflow: hidden; }
.arch-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.arch-img.plx img { height: 116%; position: absolute; top: -8%; left: 0; will-change: transform; }
.arch-img.tint::after { content: ""; position: absolute; inset: 0; background: var(--navy); mix-blend-mode: color; opacity: .6; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--hdr-h) + var(--bar-h) + 40px) 0 clamp(120px, 16vw, 200px); }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(640px circle at var(--mx, 72%) var(--my, 30%), rgba(120, 150, 255, .22), transparent 62%); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(240px, 4.4fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-alias { display: inline-block; margin-bottom: 18px; padding: 8px 14px; border: 1px solid rgba(157, 178, 255, .4); border-radius: 999px; font: 500 13px/1 var(--f-sans); letter-spacing: .06em; color: var(--accent-lt); }
.hero-photo { max-width: 440px; justify-self: end; width: 100%; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 36px; z-index: 3; width: 28px; height: 48px; border: 1.5px solid rgba(238, 242, 250, .5); border-radius: 20px; display: flex; justify-content: center; padding-top: 9px; }
.scroll-cue span { width: 3px; height: 9px; border-radius: 2px; background: var(--accent-lt); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 300px; order: -1; }
  .hero { padding-top: calc(var(--hdr-h) + var(--bar-h) + 24px); }
}

.page-hero { position: relative; overflow: hidden; padding: calc(var(--hdr-h) + var(--bar-h) + 80px) 0 clamp(88px, 11vw, 150px); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.page-hero.has-pic .page-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(200px, 3.4fr); gap: clamp(32px, 6vw, 90px); }
.page-hero .display { max-width: 900px; }
.page-pic { max-width: 340px; justify-self: end; width: 100%; }
@media (max-width: 800px) { .page-hero.has-pic .page-hero-grid { grid-template-columns: 1fr; } .page-pic { justify-self: start; max-width: 240px; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--hair); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee ul { display: flex; flex: none; align-items: center; }
.marquee li { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font: italic 400 clamp(22px, 2.6vw, 32px)/1 var(--f-display); white-space: nowrap; color: var(--ink); }
.marquee li::after { content: ""; width: 9px; height: 12px; background: var(--accent); clip-path: url(#so-arch); }
.marquee li img { height: 38px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .75; }

/* ---------- Doors ---------- */
.door-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 6vw, 80px); align-items: end; }
.door { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4.4; padding: 40px clamp(24px, 3vw, 40px); clip-path: url(#so-arch); overflow: hidden; color: var(--ivory); transition: transform .7s var(--ease), opacity .9s var(--ease), clip-path 1.2s var(--ease); }
.door:nth-child(2) { aspect-ratio: 3 / 4.8; }
.door-1 { background: var(--navy); }
.door-2 { background: var(--deep); }
.door-3 { background: var(--slate); }
.door-bg { position: absolute; inset: 0; z-index: 0; }
.door-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.door-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 20, 47, .25), rgba(7, 20, 47, .88) 75%); }
.door:hover .door-bg img { transform: scale(1.07); }
.door > *:not(.door-bg) { position: relative; z-index: 1; }
.js .door.is-in:hover, .door:hover { transform: translateY(-14px); }
.door-no { position: absolute !important; top: 20%; left: 50%; transform: translateX(-50%); font: italic 400 clamp(56px, 7vw, 92px)/1 var(--f-display); opacity: .3; }
.door h3 { font: 600 clamp(28px, 3vw, 38px)/1.1 var(--f-display); margin-bottom: 14px; }
.door p { font-size: 16px; line-height: 1.55; max-width: 32ch; opacity: .92; }
.door-go { margin-top: 24px; font: 600 12px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; color: var(--accent-lt); }
.door-go::after { content: "\2192"; transition: transform .4s var(--ease); }
.door:hover .door-go::after { transform: translateX(8px); }

/* ---------- Stats ---------- */
.stats { padding-block: clamp(64px, 9vw, 120px); overflow: hidden; }
.stat-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px; }
.stat b { display: block; font: 600 clamp(64px, 10vw, 140px)/.95 var(--f-display); color: var(--accent-lt); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 14px; font: 600 12px/1.4 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(238, 242, 250, .8); }

/* ---------- Expertise: stack (home) and groups (page) ---------- */
.stack { position: relative; }
.xcard { position: sticky; top: calc(var(--hdr-h) + var(--bar-h) + 20px + var(--i) * 18px); display: grid; grid-template-columns: 110px 1.15fr 1fr; gap: clamp(20px, 4vw, 56px); margin-bottom: 18vh; padding: clamp(28px, 4vw, 52px); min-height: 44vh; background: var(--raised); border: 1px solid var(--hair); border-radius: 12px; transform-origin: center top; will-change: transform; }
.xcard:last-child { margin-bottom: 0; }
.xnum { font: italic 400 clamp(56px, 6vw, 84px)/1 var(--f-display); color: var(--accent); }
.xmain h3 { font: 600 clamp(26px, 3vw, 40px)/1.12 var(--f-display); letter-spacing: -.01em; }
.xsum { margin-top: 18px; font-size: 19px; color: var(--steel); max-width: 46ch; }
.xside li { padding: 14px 0; border-top: 1px solid var(--hair); font-size: 16px; }
.xside li:first-child { border-top: 0; padding-top: 0; }
.xaud { margin-top: 20px; font-size: 14px; color: var(--steel); }
.xaud span, .badge { font: 600 12px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-right: 8px; }
.badge { display: inline-block; padding: 6px 10px; border: 1px solid var(--accent); border-radius: 999px; margin: 0 0 14px; }
@media (max-width: 900px) { .xcard { position: relative; top: 0; grid-template-columns: 1fr; margin-bottom: 24px; min-height: 0; } }

.xgroup + .xgroup { margin-top: clamp(64px, 9vw, 120px); }
.xgroup-head { display: grid; grid-template-columns: 90px 1fr; gap: 8px 24px; align-items: end; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--hair); }
.xgroup-no { grid-row: span 2; font: italic 400 clamp(44px, 5vw, 64px)/1 var(--f-display); color: var(--accent); }
.xgroup-head h2 { font: 600 clamp(28px, 3.4vw, 44px)/1.1 var(--f-display); letter-spacing: -.015em; }
.xgroup-head p { color: var(--steel); max-width: 60ch; }
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.xtile { display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; transition: border-color .4s, box-shadow .5s var(--ease); transform-style: preserve-3d; }
.xtile:hover { border-color: var(--accent); box-shadow: 0 24px 50px -28px rgba(11, 31, 75, .45); }
.xtile-pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.xtile-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.xtile:hover .xtile-pic img { transform: scale(1.06); }
.xtile-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.4vw, 34px); flex: 1; }
.xtile-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.xtile .xnum { font-size: 40px; }
.xtile h3 { font: 600 clamp(22px, 2vw, 27px)/1.15 var(--f-display); letter-spacing: -.01em; }
.xtile .xsum { margin: 0; font-size: 16px; }
.xtile ul { margin-top: 4px; }
.xtile li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--hair); font-size: 15px; color: var(--ink); }
.xtile li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 10px; background: var(--accent); clip-path: url(#so-arch); }
.xtile .xaud { margin-top: auto; padding-top: 8px; }

/* ---------- About ---------- */
.about { padding-block: clamp(80px, 12vw, 170px); overflow: hidden; }
.about-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(32px, 7vw, 110px); align-items: center; }
.prose-dark { margin-top: 28px; color: rgba(238, 242, 250, .86); font-size: 18px; line-height: 1.75; max-width: 58ch; }
.prose-dark p + p { margin-top: 1.1em; }
.about .cta-row { margin-top: 32px; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .about .arch-wrap { max-width: 360px; } }

/* ---------- Ventures ---------- */
.ventures { overflow: hidden; }
.ventures .wrap { position: relative; z-index: 2; }
.venture-bg { position: absolute; inset: 0; opacity: .18; }
.venture-bg img { width: 100%; height: 100%; object-fit: cover; }
.venture-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.venture { display: flex; flex-direction: column; gap: 14px; min-height: 280px; padding: clamp(26px, 3vw, 38px); background: rgba(238, 242, 250, .05); border: 1px solid rgba(238, 242, 250, .16); border-radius: 12px; transition: background .5s, border-color .5s, transform .6s var(--ease), opacity .9s var(--ease); }
.js .venture.is-in:hover, .venture:hover { background: rgba(238, 242, 250, .1); border-color: var(--accent-lt); transform: translateY(-6px); }
.venture-mark { height: 56px; display: flex; align-items: center; }
.venture-mark img { max-height: 56px; width: auto; max-width: 70%; }
.venture-mark b { font: 600 clamp(24px, 2.4vw, 30px)/1.1 var(--f-display); }
.venture .tag { color: var(--accent-lt); }
.venture p { color: rgba(238, 242, 250, .82); font-size: 16px; }
.venture .link-arrow { margin-top: auto; align-self: flex-start; color: var(--accent-lt); }

/* ---------- Big quote (scroll-fill) ---------- */
.bigquote { position: relative; overflow: hidden; padding-block: clamp(96px, 16vw, 210px); text-align: center; }
.bigquote-bg { position: absolute; inset: 0; opacity: .12; }
.bigquote-bg img { width: 100%; height: 100%; object-fit: cover; }
.bigquote .wrap { position: relative; z-index: 2; }
.bigquote blockquote { max-width: 980px; margin-inline: auto; }
.qm { display: block; font: 600 clamp(120px, 18vw, 240px)/.6 var(--f-display); color: var(--accent); height: .42em; margin-bottom: 8px; }
.bigquote p { font: italic 400 clamp(32px, 5.6vw, 76px)/1.14 var(--f-display); letter-spacing: -.02em; }
.fill-w { transition: opacity .2s linear; }
.bigquote footer { margin-top: 36px; font: 600 12px/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }

/* ---------- Workshops ---------- */
.ws-list { margin-top: clamp(32px, 5vw, 56px); }
.ws { display: grid; grid-template-columns: 130px 1fr auto; gap: clamp(20px, 3vw, 44px); align-items: center; padding: 32px 0; border-top: 1px solid var(--hair); transition: padding .5s var(--ease); }
.ws:last-child { border-bottom: 1px solid var(--hair); }
.ws:hover { padding-left: 16px; }
.ws-date b { display: block; font: 600 clamp(48px, 5.5vw, 72px)/.9 var(--f-display); color: var(--accent); }
.ws-date span { display: block; margin-top: 8px; font: 600 12px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.ws-body h3 { font: 600 clamp(22px, 2.4vw, 30px)/1.2 var(--f-display); }
.ws-body p { margin-top: 10px; color: var(--steel); max-width: 60ch; }
.ws-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: 14px; color: var(--steel); }
.ws-meta li + li::before { content: "\00b7"; margin-right: 22px; color: var(--accent); font-weight: 700; }
.ws-empty { padding: 36px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-block: 1px solid var(--hair); }
.ws-empty p { font: italic 400 clamp(20px, 2.2vw, 28px)/1.3 var(--f-display); max-width: 30ch; }
@media (max-width: 700px) { .ws { grid-template-columns: 90px 1fr; } .ws .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Events (past) ---------- */
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.rail .evt { flex: 0 0 min(380px, 82vw); scroll-snap-align: start; }
.evt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; margin-top: clamp(32px, 5vw, 56px); }
.evt { display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; transition: transform .6s var(--ease), box-shadow .5s, opacity .9s var(--ease), border-color .4s; }
.js .evt.is-in:hover, .evt:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(11, 31, 75, .5); border-color: var(--accent); }
.evt-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); display: block; width: 100%; padding: 0; border: 0; text-align: left; }
.evt-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.evt:hover .evt-cover img { transform: scale(1.06); }
.evt-date { position: absolute; left: 14px; top: 14px; padding: 8px 12px; background: var(--navy); color: var(--ivory); font: 600 12px/1.2 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; }
.evt-count { position: absolute; right: 14px; bottom: 14px; padding: 6px 10px; background: rgba(7, 20, 47, .8); color: var(--ivory); font: 600 12px/1 var(--f-sans); border-radius: 999px; }
.evt-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px; flex: 1; }
.evt-body h3 { font: 600 22px/1.2 var(--f-display); }
.evt-body p { color: var(--steel); font-size: 15px; }
.evt-meta { font-size: 14px; color: var(--steel); }
.evt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.ph { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: var(--navy) url("assets/img/contours-dark.svg") center / cover; color: var(--ivory); text-align: center; padding: 16px; }
.ph b { font: italic 400 clamp(22px, 3vw, 32px)/1.1 var(--f-display); }
.ph img { width: 44px; opacity: .9; }

/* ---------- Updates ---------- */
.upd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 28px; }
.upd { display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; transition: transform .6s var(--ease), box-shadow .5s, opacity .9s var(--ease), border-color .4s; text-align: left; padding: 0; width: 100%; }
.upd[hidden] { display: none; }
.js .upd.is-in:hover, .upd:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(11, 31, 75, .5); border-color: var(--accent); }
.upd-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); display: block; }
.upd-thumb img.cover { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.upd:hover .upd-thumb img.cover { transform: scale(1.06); }
.upd-pf { position: absolute; left: 14px; top: 14px; padding: 7px 11px; background: var(--navy); color: var(--ivory); font: 600 11px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; z-index: 2; }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(244, 246, 250, .94); display: grid; place-items: center; transition: transform .5s var(--ease), background .3s; z-index: 2; }
.play::after { content: ""; margin-left: 4px; border-left: 16px solid var(--navy); border-block: 10px solid transparent; }
.upd:hover .play { transform: scale(1.12); background: #fff; }
.upd-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.upd-body h3 { font: 600 clamp(19px, 1.8vw, 23px)/1.22 var(--f-display); letter-spacing: -.005em; }
.upd-body p { color: var(--steel); font-size: 15px; }
.upd-go { margin-top: auto; padding-top: 6px; font: 600 12px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.upd-go::after { content: "  \2192"; }
.so-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.so-filter button { padding: 11px 20px; background: none; border: 1px solid var(--hair); border-radius: 999px; font: 600 12px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; transition: background .35s, color .35s, border-color .35s; }
.so-filter button:hover { border-color: var(--ink); }
.so-filter button.is-on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.empty-note { padding: 40px 0; font: italic 400 clamp(20px, 2.2vw, 28px)/1.35 var(--f-display); color: var(--steel); max-width: 40ch; }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--hair); }
.follow h2 { font: 600 clamp(22px, 2.4vw, 30px)/1.1 var(--f-display); margin-right: 12px; }
.follow a { font: 600 12px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; padding-bottom: 5px; border-bottom: 1px solid var(--accent); transition: color .3s; }
.follow a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 450; display: none; align-items: center; justify-content: center; padding: 56px 16px 24px; background: rgba(5, 12, 30, .94); opacity: 0; transition: opacity .35s; }
.lb.open { display: flex; }
.lb.show { opacity: 1; }
.lb-stage { position: relative; max-width: min(1100px, 100%); max-height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: translateY(24px) scale(.96); transition: transform .5s var(--ease); }
.lb.show .lb-stage { transform: none; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: 4px; background: #000; }
.lb-frame { width: 100%; max-height: 80vh; background: #000; border-radius: 4px; overflow: hidden; margin-inline: auto; }
.lb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb-cap { margin-top: 14px; color: rgba(238, 242, 250, .85); font-size: 14px; text-align: center; }
.lb-cap a { color: var(--accent-lt); text-decoration: underline; text-underline-offset: 3px; margin-left: 10px; }
.lb button { position: absolute; background: rgba(238, 242, 250, .1); border: 1px solid rgba(238, 242, 250, .3); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; line-height: 1; transition: background .3s; }
.lb button:hover { background: rgba(238, 242, 250, .25); }
.lb-x { top: 14px; right: 14px; }
.lb-p { left: 14px; top: 50%; margin-top: -23px; }
.lb-n { right: 14px; top: 50%; margin-top: -23px; }
.lb-single .lb-p, .lb-single .lb-n { display: none; }

/* ---------- Testimonials ---------- */
.quotes { overflow: hidden; }
.quote-rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px var(--gutter) 8px; scrollbar-width: thin; scrollbar-color: var(--accent-lt) transparent; }
.quote-card { flex: 0 0 min(540px, 84vw); scroll-snap-align: start; padding: clamp(28px, 3vw, 44px); background: #10285F; border: 1px solid rgba(238, 242, 250, .12); border-radius: 12px; }
.quote-card blockquote { font: italic 400 clamp(20px, 2vw, 26px)/1.4 var(--f-display); }
.quote-card figcaption { margin-top: 28px; display: flex; flex-direction: column; gap: 4px; }
.quote-card strong { font-weight: 600; }
.quote-card span { font-size: 14px; color: rgba(238, 242, 250, .78); }

/* ---------- Posts (blog posts still render) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(28px, 4vw, 56px); }
.post-card { display: flex; flex-direction: column; gap: 22px; }
.post-thumb { display: block; aspect-ratio: 4 / 4.6; clip-path: url(#so-arch); background: var(--mist); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-body h3 { margin: 10px 0 12px; font: 600 clamp(22px, 2.2vw, 28px)/1.18 var(--f-display); letter-spacing: -.01em; }
.post-body p:last-child { color: var(--steel); font-size: 16px; }
.pager { margin-top: 64px; }
.pager .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pager .page-numbers { padding: 12px 18px; border: 1px solid var(--hair); font: 600 13px/1 var(--f-sans); }
.pager .page-numbers:hover, .pager .current { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* ---------- Clients ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.client { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; aspect-ratio: 4 / 3; padding: 26px; background: var(--raised); border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; text-align: center; transition: transform .6s var(--ease), border-color .4s, box-shadow .5s, opacity .9s var(--ease); }
.client[hidden] { display: none; }
.js .client.is-in:hover, .client:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 44px -28px rgba(11, 31, 75, .5); }
.client-mark { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.client-mark img { max-height: 84px; max-width: 78%; width: auto; height: auto; object-fit: contain; transition: filter .5s, opacity .5s, transform .6s var(--ease); }
.logos-grey .client-mark img { filter: grayscale(1); opacity: .72; }
.client:hover .client-mark img { filter: none; opacity: 1; transform: scale(1.05); }
.client-name { font: 600 clamp(20px, 1.9vw, 25px)/1.15 var(--f-display); letter-spacing: -.01em; }
.client-label { font: 600 12px/1.3 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.client-over { position: absolute; inset: auto 0 0 0; padding: 18px 16px; background: var(--navy); color: var(--ivory); font-size: 14px; line-height: 1.4; transform: translateY(101%); transition: transform .55s var(--ease); }
.client:hover .client-over, .client:focus-visible .client-over { transform: none; }
.client-over b { display: block; margin-bottom: 4px; font: 600 12px/1.2 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-lt); }

/* ---------- Method ---------- */
.method { padding-block: clamp(80px, 12vw, 160px); overflow: hidden; }
.method .wrap { position: relative; z-index: 2; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 7vw, 96px); align-items: end; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step-arch { display: block; width: 100%; height: calc(var(--h) * 2.2); clip-path: url(#so-arch); background: var(--accent); transition: transform .8s var(--ease); }
.step:nth-child(2) .step-arch { background: #3B5BC4; }
.step:nth-child(3) .step-arch { background: #6F8BE0; }
.step:nth-child(4) .step-arch { background: var(--ivory); }
.step:hover .step-arch { transform: translateY(-10px); }
.step h3 { font: 600 clamp(26px, 2.6vw, 34px)/1.1 var(--f-display); }
.step p { color: rgba(238, 242, 250, .82); font-size: 16px; }

/* ---------- Closing band and footer ---------- */
.closing { position: relative; overflow: hidden; padding-block: clamp(96px, 14vw, 190px) clamp(160px, 20vw, 280px); }
.closing .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(200px, 3.6fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.closing .display { max-width: 14ch; font-size: clamp(38px, 6.4vw, 88px); line-height: 1; }
.closing .lead { margin-bottom: 40px; }
.closing-pic { max-width: 340px; justify-self: end; width: 100%; }
@media (max-width: 800px) { .closing .wrap { grid-template-columns: 1fr; } .closing-pic { justify-self: start; max-width: 240px; order: -1; } }
.so-foot { position: relative; padding-top: clamp(64px, 8vw, 100px); font-size: 15px; color: rgba(238, 242, 250, .8); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1.3fr 1fr; gap: 40px; padding-bottom: 64px; }
.foot-brand p { margin-top: 22px; max-width: 34ch; }
.so-foot h4 { margin-bottom: 18px; font: 600 12px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-lt); }
.foot-nav, .foot-list { display: flex; flex-direction: column; gap: 10px; }
.so-foot a:hover { color: var(--accent-lt); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; border-top: 1px solid rgba(238, 242, 250, .14); font-size: 14px; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact and form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-card { padding: clamp(28px, 3vw, 44px); background: var(--navy); color: var(--ivory); border-radius: 12px; }
.contact-card h2 { font: 600 28px/1.2 var(--f-display); margin-bottom: 24px; }
.contact-card h3 { margin: 36px 0 14px; font: 600 12px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-lt); }
.contact-list li { padding: 14px 0; border-top: 1px solid rgba(238, 242, 250, .16); display: flex; flex-direction: column; gap: 4px; }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list span { font: 600 12px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(238, 242, 250, .72); }
.contact-list a:hover, .contact-social a:hover { color: var(--accent-lt); }
.contact-social { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.so-form label { display: block; margin-bottom: 22px; font: 600 12px/1.2 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.so-form input, .so-form select, .so-form textarea { display: block; width: 100%; margin-top: 10px; padding: 15px 16px; background: var(--raised); border: 1px solid var(--hair); border-radius: 2px; color: var(--ink); font: 400 17px/1.4 var(--f-sans); letter-spacing: 0; text-transform: none; transition: border-color .3s, box-shadow .3s; }
.so-form input:focus, .so-form select:focus, .so-form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42, 75, 215, .2); }
.so-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .so-row { grid-template-columns: 1fr; } }
.so-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.so-notice { margin-bottom: 28px; padding: 18px 20px; border-radius: 2px; font-size: 16px; }
.so-ok { background: #E3EBFA; border-left: 4px solid var(--accent); color: #12266B; }
.so-err { background: #F3E4E4; border-left: 4px solid #8C2D2D; color: #5A1A1A; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Single and prose ---------- */
.post-feature { margin-bottom: 56px; }
.post-feature img { width: 100%; border-radius: 12px; }
.prose { font-size: 19px; line-height: 1.8; }
.prose > * + * { margin-top: 1.3em; }
.prose h2, .prose h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.2; margin-top: 2em; letter-spacing: -.01em; }
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 26px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { padding: 6px 0 6px 28px; border-left: 3px solid var(--accent); font: italic 400 26px/1.4 var(--f-display); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img { border-radius: 8px; }
.byline { display: flex; align-items: center; gap: 18px; margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--hair); }
.byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.byline p { display: flex; flex-direction: column; font-size: 15px; color: var(--steel); }
.byline strong { color: var(--ink); font-size: 17px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-reveal="words"] .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .arch-ring path { stroke-dashoffset: 0; }
  .eyebrow::before { width: 40px; }
  .marquee-track { width: auto; flex-wrap: wrap; }
  .so-wipe, .so-cursor { display: none; }
  .xcard { position: relative; top: 0; margin-bottom: 24px; }
}

/* footer menu from the fallback or a WordPress menu */
.so-foot .nav { flex-direction: column; gap: 10px; }
.so-foot .nav a { font: 400 15px/1.4 var(--f-sans); padding: 0; }
.so-foot .nav a::after { display: none; }
.so-foot nav ul { display: flex; flex-direction: column; gap: 10px; }

.so-bar { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-bar a, .so-bar span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 760px) { .so-bar { font-size: 12px; } }

/* ===== v2.1 additions ===== */
/* centred figures */
.stat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px clamp(48px, 8vw, 120px); text-align: center; }
.stat { min-width: 200px; }

/* credentials */
.creds { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(238, 242, 250, .18); max-width: 58ch; }
.creds h3 { font: 600 12px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-lt); margin-bottom: 14px; }
.creds li { position: relative; padding: 6px 0 6px 22px; font-size: 16px; color: rgba(238, 242, 250, .88); }
.creds li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 10px; background: var(--accent-lt); clip-path: url(#so-arch); }

/* timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 80px); padding-top: 40px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-lt)); transform-origin: left; animation: tlgrow 1.8s var(--ease) .3s backwards; }
@keyframes tlgrow { from { transform: scaleX(0); } }
.tl-item { position: relative; display: flex; flex-direction: column; gap: 10px; }
.tl-dot { position: absolute; top: -34px; left: 0; width: 18px; height: 24px; background: var(--accent); clip-path: url(#so-arch); }
.tl-year { font: italic 400 clamp(40px, 4.4vw, 60px)/1 var(--f-display); color: var(--accent); }
.tl-item h3 { font: 600 clamp(20px, 1.9vw, 24px)/1.2 var(--f-display); }
.tl-item p { color: var(--steel); font-size: 16px; }
.tl-item .link-arrow { align-self: flex-start; margin-top: 6px; }
@media (max-width: 700px) {
  .timeline { grid-template-columns: 1fr; padding: 0 0 0 36px; }
  .timeline::before { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tl-dot { left: -36px; top: 8px; }
}

/* ventures divisions */
.divs { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.divs li { position: relative; padding: 8px 0 8px 18px; border-top: 1px solid rgba(238, 242, 250, .14); font-size: 15px; color: rgba(238, 242, 250, .9); }
.divs li::before { content: ""; position: absolute; left: 0; top: 16px; width: 7px; height: 9px; background: var(--accent-lt); clip-path: url(#so-arch); }
.divs a:hover { color: var(--accent-lt); text-decoration: underline; text-underline-offset: 3px; }

/* tools */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: clamp(36px, 5vw, 56px); }
.tool { display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--hair); border-top: 4px solid var(--accent); border-radius: 12px; overflow: hidden; transition: box-shadow .5s var(--ease), border-color .4s, opacity .9s var(--ease), transform .6s var(--ease); }
.tool:hover { box-shadow: 0 28px 50px -30px rgba(11, 31, 75, .5); }
.tool-pic { aspect-ratio: 16 / 9; background: var(--navy); }
.tool-pic img { width: 100%; height: 100%; object-fit: cover; }
.tool-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(26px, 2.6vw, 36px); flex: 1; }
.tool-body h3 { font: 600 clamp(24px, 2.2vw, 30px)/1.15 var(--f-display); letter-spacing: -.01em; }
.tool-body p:not(.tag) { color: var(--steel); }
.tool-body .btn { margin-top: auto; }
.tool-body .btn::after { content: "\2197"; margin-left: 10px; }

/* expertise frameworks */
.fw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fw-tags span { padding: 7px 12px; border: 1px solid var(--hair); background: var(--surface); border-radius: 999px; font: 500 12px/1.2 var(--f-sans); color: var(--steel); }

/* clients as buttons */
button.client { font: inherit; color: inherit; cursor: pointer; }
.client-more { position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; font: 400 17px/1 var(--f-sans); color: var(--steel); transition: background .3s, color .3s, border-color .3s, transform .5s var(--ease); }
.client:hover .client-more { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(90deg); }
.client-mark img.fav { width: 64px; height: 64px; max-height: none; max-width: none; object-fit: contain; filter: none; opacity: 1; border-radius: 12px; }
.hint { margin: 0 0 20px; }
.lb-card { width: min(560px, 100%); padding: clamp(28px, 4vw, 44px); background: var(--raised); color: var(--ink); border-radius: 12px; text-align: left; }
.lb-card .lc-logo { height: 64px; display: flex; align-items: center; margin-bottom: 20px; }
.lb-card .lc-logo img { max-height: 64px; max-width: 70%; width: auto; border-radius: 8px; }
.lb-card h3 { font: 600 clamp(26px, 3vw, 34px)/1.12 var(--f-display); letter-spacing: -.01em; }
.lb-card .tag { margin-top: 8px; }
.lb-card h4 { margin: 24px 0 8px; font: 600 12px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lb-card p { color: var(--ink); font-size: 17px; line-height: 1.65; }
.lb-card .btn { margin-top: 24px; }

/* embeds and sections on the Latest page */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feat-grid .upd:first-child { grid-column: span 2; grid-row: span 2; }
.feat-grid .upd:first-child .upd-thumb { aspect-ratio: 16 / 11; }
.feat-grid .upd:first-child h3 { font-size: clamp(24px, 2.6vw, 34px); }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } .feat-grid .upd:first-child { grid-column: auto; grid-row: auto; } }
.emb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; margin-top: 40px; }
.emb-grid.emb-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.emb { background: var(--raised); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.emb-frame { width: 100%; background: var(--mist); }
.emb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.emb figcaption { padding: 12px 16px; font: 600 12px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; }
.emb figcaption a { color: var(--accent); }
.sec-more { margin-top: 40px; }
.tone-dark .upd { color: var(--ink); }
.lb-card .lb-mark{width:84px;height:84px;border-radius:16px;background:#fff;display:grid;place-items:center;margin:0 0 14px;overflow:hidden}
.lb-card .lb-mark img{max-width:80%;max-height:80%;object-fit:contain}

/* ---------- v2.2 additions ---------- */
.so-top.is-hidden { transform: none; }
.stat { text-align: center; max-width: 620px; }
.stat small { display: block; margin: 14px auto 0; max-width: 36ch; font: 400 clamp(15px, 1.6vw, 18px)/1.5 var(--f-sans); letter-spacing: 0; text-transform: none; color: rgba(238, 242, 250, .78); }
.xcard { margin-bottom: 12vh; }
.xcard:last-child { margin-bottom: 0; }

.venture-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .venture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .venture-grid { grid-template-columns: 1fr; } }
.venture h3.v-title { font: 600 24px/1.15 var(--f-display); }

.upd-five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.upd-five > :nth-child(-n+3) { grid-column: span 2; }
.upd-five > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 900px) { .upd-five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .upd-five > :nth-child(n) { grid-column: span 1; } .upd-five > :nth-child(5) { grid-column: span 2; } }
@media (max-width: 600px) { .upd-five { grid-template-columns: 1fr; } .upd-five > :nth-child(n) { grid-column: span 1; } }

/* credentials table */
.creds-table-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 12px; background: var(--raised); }
.creds-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 16px; }
.creds-table thead th { padding: 16px 22px; font: 600 12px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-accent, #fff); background: var(--navy); text-align: left; }
.creds-table td { padding: 16px 22px; border-top: 1px solid var(--hair); vertical-align: top; }
.creds-table td:first-child { font-weight: 600; color: var(--ink); }
.creds-table td:last-child { white-space: nowrap; color: var(--steel); }
.creds-table tr.grp th { padding: 14px 22px; text-align: left; background: var(--mist); font: italic 600 18px/1.2 var(--f-display); color: var(--accent); border-top: 1px solid var(--hair); }
.creds-table tbody tr:not(.grp):hover td { background: rgba(42, 75, 215, .05); }
.nace { margin-top: 36px; }
.nace h3 { font: 600 clamp(20px, 2.2vw, 26px)/1.2 var(--f-display); margin-bottom: 16px; }
@media (max-width: 700px) {
  .creds-table thead { display: none; }
  .creds-table, .creds-table tbody, .creds-table tr, .creds-table td { display: block; width: 100%; }
  .creds-table tr:not(.grp) { padding: 14px 18px; border-top: 1px solid var(--hair); }
  .creds-table td { padding: 2px 0; border: 0; }
  .creds-table td:last-child { white-space: normal; }
  .creds-table td::before { content: attr(data-label) ": "; font: 600 11px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
  .creds-table td:first-child::before { content: ""; }
  .creds-table tr.grp th { display: block; width: 100%; }
}
.about .creds a.link-arrow { display: inline-block; margin-top: 18px; }

/* organisations */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; margin-top: 44px; }
.help { padding: 30px 28px; background: var(--raised); border: 1px solid var(--hair); border-radius: 12px; transition: border-color .4s, box-shadow .5s var(--ease), transform .6s var(--ease), opacity .9s var(--ease); }
.help:hover { border-color: var(--accent); box-shadow: 0 24px 50px -30px rgba(11, 31, 75, .45); }
.help-no { display: block; font: italic 400 38px/1 var(--f-display); color: var(--accent); margin-bottom: 16px; }
.help h3 { font: 600 21px/1.25 var(--f-display); margin-bottom: 10px; }
.help p { color: var(--steel); font-size: 16px; }
.sector-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sector-tags span { padding: 12px 20px; border: 1px solid var(--ink); border-radius: 999px; font: 600 13px/1 var(--f-sans); letter-spacing: .06em; }

/* young talent */
.aud-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .aud-grid { grid-template-columns: 1fr; } }
.aud { padding: clamp(26px, 3vw, 40px); background: var(--raised); border: 1px solid var(--hair); border-radius: 12px; }
.aud header { display: flex; align-items: baseline; gap: 18px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--hair); }
.aud-no { font: italic 400 44px/1 var(--f-display); color: var(--accent); }
.aud h2 { font: 600 clamp(24px, 2.6vw, 32px)/1.15 var(--f-display); }
.aud-row { padding-top: 18px; }
.aud-row h3 { font: 600 12px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.aud-row p { font-size: 17px; }
.aud-row ul { list-style: none; padding: 0; margin: 0; }
.aud-row li { padding: 8px 0 8px 22px; position: relative; font-size: 16px; }
.aud-row li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 2px; background: var(--accent); }

/* ideas */
.init-list { margin-top: 44px; border-top: 1px solid var(--hair); }
.init { display: grid; grid-template-columns: 90px 1fr; gap: 12px 28px; padding: clamp(26px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--hair); align-items: start; }
.init:has(.init-pic) { grid-template-columns: 90px 1fr minmax(180px, 280px); }
.init-no { font: italic 400 clamp(40px, 5vw, 60px)/1 var(--f-display); color: var(--accent); }
.init h3 { font: 600 clamp(26px, 3vw, 38px)/1.12 var(--f-display); margin: 4px 0 12px; }
.init p { max-width: 62ch; color: var(--steel); font-size: 18px; }
.init .tag { color: var(--accent); }
.init .link-arrow { display: inline-block; margin-top: 18px; }
.init-pic img { width: 100%; border-radius: 10px; }
@media (max-width: 700px) { .init, .init:has(.init-pic) { grid-template-columns: 1fr; } }
.sec-more { margin-top: 48px; }

/* social media presence */
.soc-banner { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 88px); }
.soc-banner .wrap { position: relative; z-index: 2; }
.soc-icons { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 40px); }
.soc-icons a { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 108px; text-align: center; color: var(--ivory); }
.soc-ic { display: grid; place-items: center; width: 76px; height: 76px; border: 1.5px solid rgba(238, 242, 250, .35); border-radius: 50%; transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease); }
.soc-ic svg { width: 32px; height: 32px; }
.soc-icons a:hover .soc-ic, .soc-icons a:focus-visible .soc-ic { background: var(--accent-lt); color: var(--night); border-color: var(--accent-lt); transform: translateY(-6px); }
.soc-lb { font: 600 12px/1.3 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.soc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.soc-card { display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; transition: transform .6s var(--ease), box-shadow .5s, border-color .4s, opacity .9s var(--ease); }
.soc-card[hidden] { display: none; }
.soc-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 28px 50px -30px rgba(11, 31, 75, .5); }
.soc-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--navy) url("assets/img/contours-dark.svg") center / cover; overflow: hidden; }
.soc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.soc-badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(7, 20, 47, .82); color: var(--ivory); backdrop-filter: blur(6px); }
.soc-badge svg { width: 18px; height: 18px; }
.soc-badge b { font: 600 11px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; }
.soc-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.soc-body h3 { font: 600 20px/1.25 var(--f-display); }
.soc-body p { color: var(--steel); font-size: 15px; }
.soc-body .upd-go { margin-top: auto; padding-top: 8px; }

.soc-big { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(238, 242, 250, .9); }
.soc-big svg { width: 64px; height: 64px; }
.soc-icons { justify-content: center; }
.soc-banner .eyebrow { justify-content: center; }
.soc-icons a { width: 120px; }
.soc-ic { width: 88px; height: 88px; }
.soc-ic svg { width: 36px; height: 36px; }

/* v2.3: compact expertise table (home) */
.xt-wrap { margin-top: 8px; border-top: 1px solid var(--hair); }
.xt-head, .xt li a { display: grid; grid-template-columns: 56px minmax(180px, 1.1fr) minmax(0, 2.2fr) minmax(0, 1.2fr) 36px; gap: 20px; align-items: center; }
.xt-head { padding: 14px 18px; font: 600 11px/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.xt { list-style: none; margin: 0; padding: 0; }
.xt li { border-bottom: 1px solid var(--hair); position: relative; overflow: hidden; }
.xt li::before { content: ""; position: absolute; inset: 0; background: var(--navy, #0B1F4B); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: 0; }
.xt li a { position: relative; z-index: 1; padding: 15px 18px; color: var(--ink); text-decoration: none; transition: color .35s, padding .4s var(--ease); }
.xt li:hover::before, .xt li:focus-within::before { transform: scaleX(1); }
.xt li:hover a, .xt li:focus-within a { color: #fff; padding-left: 28px; }
.xt-n { font: 600 13px/1 var(--f-sans); letter-spacing: .1em; color: var(--accent); transition: color .35s; }
.xt-t { font: 400 21px/1.2 var(--f-display); }
.xt-d { font-size: 14.5px; line-height: 1.45; color: var(--steel); transition: color .35s; }
.xt-a { font-size: 13px; line-height: 1.4; color: var(--steel); transition: color .35s; }
.xt li:hover .xt-n, .xt li:hover .xt-d, .xt li:hover .xt-a { color: #C9D3F5; }
.xt-go { font-size: 20px; color: var(--accent); transition: transform .4s var(--ease), color .35s; justify-self: end; }
.xt li:hover .xt-go { transform: translateX(6px); color: #fff; }
.js .xt li { opacity: 0; transform: translateX(-26px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js .xt-wrap.is-in .xt li { opacity: 1; transform: none; }
.xt-cta { margin-top: 36px; text-align: center; }
@media (max-width: 860px) {
  .xt-head { display: none; }
  .xt li a { grid-template-columns: 40px 1fr 28px; gap: 4px 12px; padding: 14px 6px; }
  .xt-n { grid-row: 1; } .xt-t { grid-column: 2; font-size: 19px; } .xt-go { grid-column: 3; grid-row: 1; }
  .xt-d { grid-column: 2 / 4; grid-row: 2; } .xt-a { display: none; }
}
@media (prefers-reduced-motion: reduce) { .js .xt li { opacity: 1; transform: none; transition: none; } .xt li::before { transition: none; } }

/* captcha */
.so-cap-wrap { margin: 0 0 22px; }
.so-cap-wrap label { margin-bottom: 0; }
.login .so-cap-wrap label, .comment-form-so-cap label { display: block; font-weight: 600; margin-bottom: 6px; }
.comment-form-so-cap input[type=text], .login .so-cap-wrap input[type=text] { width: 100%; max-width: 220px; }
.js .xt-wrap[data-reveal] { opacity: 1; transform: none; }
.xtile { scroll-margin-top: 110px; }
