/* =====================================================================
   BAIG — Architectural Intelligence
   Design system · final palette (client board, Nov 2026) — Navy & Cream:
   Cream #F7F4EB · Beige #E7E0C9 · Sage #C1CFC0 · Slate Blue #6B7AA1 · Navy #11324D
   ===================================================================== */

:root {
  --bg: #F7F4EB;            /* Cream */
  --accent: #6B7AA1;        /* Slate Blue */
  --ink: #11324D;           /* Navy */
  --paper: #E7E0C9;         /* Beige */
  --sage: #C1CFC0;          /* Sage */
  --ink-2: rgba(17, 50, 77, .78);
  --ink-3: rgba(17, 50, 77, .55);
  --line: rgba(17, 50, 77, .28);
  --line-2: rgba(107, 122, 161, .55);
  --on-accent: #F7F4EB;
  --shadow: 0 30px 60px -30px rgba(17, 50, 77, .35);
  --lg-a: #FFFFFF; --lg-b: #EFEADB; --lg-c: #E7E0C9;
  --ov: rgba(17, 50, 77, .6); --on-ov: #FFFFFF; --lb: rgba(9, 28, 44, .95); --lb-line: rgba(255, 255, 255, .4);
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  /* 1u = 1% of the 16:9 drawing sheet that fits the screen */
  --u: min(1vw, 1.7778vh);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(18px, 2.2vw, 44px);
  color-scheme: light;
}
@supports (height: 1svh) { :root { --u: min(1vw, 1.7778svh); } }

html[data-theme="dark"] {
  --bg: #11324D;            /* Navy */
  --accent: #9FB0D6;        /* light slate */
  --ink: #F7F4EB;           /* Cream */
  --paper: #183D5C;
  --sage: #2A4A63;
  --ink-2: rgba(247, 244, 235, .82);
  --ink-3: rgba(247, 244, 235, .58);
  --line: rgba(247, 244, 235, .26);
  --line-2: rgba(159, 176, 214, .7);
  --on-accent: #11324D;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  --lg-a: #2A5274; --lg-b: #1E4462; --lg-c: #183A55;
  --ov: rgba(6, 22, 36, .65);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .7s var(--ease), color .7s var(--ease);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: 13px; letter-spacing: .1em; }
.skip:focus { top: 12px; }

/* paper grain + faint drafting grid, very subtle */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--accent) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--accent) 6%, transparent) 1px, transparent 1px);
  background-size: calc(var(--u) * 4) calc(var(--u) * 4);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
}
main, header, footer, section { position: relative; z-index: 1; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::after { content: ""; width: 56px; height: 1px; background: currentColor; }
.eyebrow.no-line::after { display: none; }
.h-display { font-weight: 800; letter-spacing: -.02em; line-height: 1.02; margin: 0; }
.h-serif { font-family: var(--serif); font-style: italic; font-weight: 500; }
.lead { font-size: clamp(17px, 1.25vw, 21px); line-height: 1.6; color: var(--ink-2); }
.tracked { letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }
.accent { color: var(--accent); }

/* ---------- logo ---------- */
.logo-svg { display: block; width: 100%; height: auto; overflow: visible; }
.lg-build path { stroke: var(--ink); stroke-width: 1.2; fill: none; opacity: .85; }
.lg-line { stroke: var(--ink); }
.lg-i { stroke: var(--accent); }
.lg-fa { stop-color: var(--lg-a); } .lg-fb { stop-color: var(--lg-b); } .lg-fc { stop-color: var(--lg-c); }
.lg-word { fill: var(--ink); font-family: var(--sans); font-weight: 700; font-size: 19px; }
.brand { display: block; width: calc(var(--u) * 15.5); min-width: 150px; }
.brand:hover .lg-build path { stroke-dasharray: 1; animation: draw 1.4s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }

/* ---------- contrast toggle ---------- */
.contrast {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  height: max(34px, calc(var(--u) * 2.46)); padding: 0 max(16px, calc(var(--u) * 1.3));
  border-radius: 99px; background: var(--ink); color: var(--bg);
  font-size: max(10.5px, calc(var(--u) * .78)); font-weight: 700; letter-spacing: .2em;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.contrast:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--ink) 60%, transparent); }
.contrast .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); position: relative; overflow: hidden; }
.contrast .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); transform: translateX(60%); transition: transform .6s var(--ease); }
html[data-theme="dark"] .contrast .dot::after { transform: translateX(110%); }
.contrast .t-dark, html[data-theme="dark"] .contrast .t-light { display: inline; }
.contrast .t-light, html[data-theme="dark"] .contrast .t-dark { display: none; }

/* ---------- inner-page top bar ---------- */
.topbar {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 2vw;
  padding: max(14px, calc(var(--u) * 1.2)) var(--pad) 0;
}
.topnav { justify-self: center; display: flex; border: 1px solid var(--ink); margin-top: max(4px, calc(var(--u) * .5)); }
.topnav a {
  position: relative; display: grid; place-items: center; white-space: nowrap;
  padding: 0 max(12px, calc(var(--u) * 1.15)); height: max(34px, calc(var(--u) * 2.35));
  font-size: max(10.5px, calc(var(--u) * .74)); letter-spacing: .14em; font-weight: 600; text-transform: uppercase;
  border-left: 1px solid var(--ink); transition: color .35s var(--ease); isolation: isolate;
}
/* beige / sage tabs, slate for the current page (approved Navy & Cream header) */
html:not([data-theme="dark"]) .topnav a { background: var(--paper); }
html:not([data-theme="dark"]) .topnav a:nth-child(2n+3) { background: var(--sage); }
.topnav a:first-child { border-left: 0; }
.topnav a::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out); z-index: -1; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--on-accent); }
.topnav a:hover::before, .topnav a[aria-current="page"]::before { transform: scaleY(1); }
.topbar .contrast { margin-top: max(4px, calc(var(--u) * .5)); }
.menu-btn { display: none; }

/* ---------- landing header ---------- */
.lhead { position: absolute; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: flex-start; padding: calc(var(--u) * 1.1) calc(var(--u) * 2.2) 0 calc(var(--u) * 1.8); }
.lhead .brand { width: calc(var(--u) * 19.5); }
.lhead .tagline { margin-left: auto; margin-top: calc(var(--u) * 2.1); font-size: max(10.5px, calc(var(--u) * .8)); font-weight: 650; letter-spacing: .24em; white-space: nowrap; }
.lhead .vrule { width: 1px; height: calc(var(--u) * 2.6); background: var(--accent); margin: calc(var(--u) * 1.4) calc(var(--u) * 2.8) 0; }
.lhead .contrast { margin-top: calc(var(--u) * 1.5); }

/* ---------- footer bar (the drawing "title block") ---------- */
.footbar { position: relative; z-index: 5; padding: 0 var(--pad); }
.footbar .explore { text-transform: uppercase; display: flex; align-items: center; gap: 18px; font-size: max(12px, calc(var(--u) * .92)); font-weight: 750; letter-spacing: .26em; padding: 0 0 calc(var(--u) * 1.2); }
.footbar .explore i { display: block; width: calc(var(--u) * 6.4); height: 1px; background: var(--accent); transform-origin: left; animation: breathe 3.2s var(--ease) infinite; }
.footbar .explore:hover i { animation-duration: 1.2s; }
.titleblock {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  border-top: 1px solid var(--accent);
  font-size: max(9.5px, calc(var(--u) * .68)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  min-height: calc(var(--u) * 3.6);
}
.titleblock > * { padding: calc(var(--u) * .9) 0; }
.titleblock .mid { text-align: center; border-left: 1px solid var(--accent); border-right: 1px solid var(--accent); margin: calc(var(--u) * .9) calc(var(--u) * 3.2); padding: 0 1vw; }
.titleblock a:hover { color: var(--accent); }

/* ---------- screens (16:9 drawing sheets) ---------- */
.screen { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.screen > .stage { position: relative; flex: 1; min-height: 0; }
.screen-inner { min-height: max(620px, 100svh); }

/* ---------- home · approved "Architecture with Intelligence" landing (Navy & Cream) ---------- */
.home .hhead { position: relative; z-index: 20; display: flex; align-items: center; gap: calc(var(--u) * 1.6); padding: calc(var(--u) * 1.2) var(--pad) 0 calc(var(--pad) * .8); }
.home .hhead .brand { width: max(150px, calc(var(--u) * 13.5)); flex: 0 0 auto; }
.home .lnav { margin-left: auto; display: flex; gap: calc(var(--u) * 2.3); }
.home .lnav a { position: relative; padding: 8px 0; font-size: max(10.5px, calc(var(--u) * .76)); font-weight: 750; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.home .lnav a::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 0; height: 2px; background: var(--sage); transform: scaleX(0); transition: transform .45s var(--ease-out); }
.home .lnav a:hover::after, .home .lnav a[aria-current]::after { transform: none; }
.home .lnav a[aria-current]::after { background: color-mix(in srgb, var(--ink) 35%, var(--sage)); }
.home .hhead .vrule { width: 1px; height: calc(var(--u) * 2.4); background: var(--ink); opacity: .5; margin: 0 calc(var(--u) * .6); }
.home .menu-btn.show { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); }
.home .menu-btn.show svg { width: 26px; height: 26px; }
.home .hero { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; }
.home .hero-art.home-art .pic { right: 0; bottom: 0; }
.home .hero-art .art-light.colour { filter: none; }
/* dark contrast: the same approved villa, drawn as light lines on navy, so it keeps its size */
html[data-theme="dark"] .home .hero-art .art-light.colour { opacity: 1; filter: url(#duo-d); }
html[data-theme="dark"] .home .hero-art .art-dark { opacity: 0; }
.home .hcopy { position: relative; z-index: 2; width: min(46%, 640px); padding: 0 0 calc(var(--u) * 2) calc(var(--pad) * 1.15); }
.home .kicker { display: flex; align-items: center; gap: 18px; font-size: max(11px, calc(var(--u) * .82)); font-weight: 650; letter-spacing: .3em; text-transform: uppercase; }
.home .kicker::after { content: ""; width: calc(var(--u) * 4.5); height: 1px; background: var(--sage); }
.home h1 { margin: calc(var(--u) * 1.9) 0 0; font-size: max(40px, calc(var(--u) * 4.9)); line-height: 1.02; font-weight: 300; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.home h1 b { font-weight: 800; letter-spacing: .015em; }
.home .sub { margin: calc(var(--u) * 1.6) 0 0; max-width: 31em; font-size: max(15px, calc(var(--u) * 1.12)); line-height: 1.5; color: var(--ink); }
.home .acts { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 1.1); margin-top: calc(var(--u) * 2.4); }
.home .acts .btn { height: max(44px, calc(var(--u) * 3.1)); padding: 0 max(20px, calc(var(--u) * 1.6)); font-size: max(11px, calc(var(--u) * .78)); }
.btn.ghost svg { width: 20px; height: 20px; }
.home .band { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--paper) 55%, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: calc(var(--u) * 1.4) var(--pad); }
.home .band .pl { display: flex; align-items: center; gap: calc(var(--u) * 1.2); padding: 0 calc(var(--u) * 1.8); border-left: 1px solid var(--line); }
.home .band .pl:first-child { border-left: 0; padding-left: 0; }
.home .band b { display: block; font-size: max(11.5px, calc(var(--u) * .86)); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home .band span { display: block; margin-top: 3px; font-size: max(11px, calc(var(--u) * .76)); color: var(--ink-2); }
.home .gl { flex: 0 0 auto; height: max(30px, calc(var(--u) * 2.7)); width: auto; overflow: visible; }
.home .gl .o path { fill: none; stroke: var(--ink); stroke-width: 24; stroke-miterlimit: 12; }
.home .gl .f path { fill: none; stroke: color-mix(in srgb, var(--paper) 55%, var(--bg)); stroke-width: 17; stroke-miterlimit: 12; }
.home .gl-I .f path { stroke: var(--accent); }
.home .home-foot { display: grid; padding-top: calc(var(--u) * .8); }
.home .chips { justify-self: end; display: flex; gap: 3px; margin: calc(var(--u) * -.8 - 1px) 0 calc(var(--u) * .2); position: relative; z-index: 4; }
.home .chips i { width: calc(var(--u) * 2.2); height: calc(var(--u) * .55); min-width: 22px; min-height: 5px; }

/* edge captions on the landing sheet */
.edge { position: absolute; z-index: 4; font-size: max(9.5px, calc(var(--u) * .66)); font-weight: 650; letter-spacing: .2em; white-space: nowrap; text-transform: uppercase; }
.edge-l { left: calc(var(--u) * 1.95); top: 56.8%; transform: translate(-50%, -50%) rotate(-90deg); }
.edge-r { right: calc(var(--u) * 1.95); top: 40.6%; transform: translate(50%, -50%) rotate(90deg); }
.rule { position: absolute; z-index: 3; width: 1px; background: var(--accent); }

/* ---------- hero artwork ---------- */
.hero-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-art.faint { opacity: .32; }
.hero-art .pic { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; }
@supports (width: 1cqw) {
  .hero-art { container-type: size; }
  /* keep the whole 16:9 drawing visible on any window shape — never zoomed or cropped */
  .hero-art .pic { width: min(100cqw, 177.78cqh); height: auto; aspect-ratio: 16 / 9; }
}
.hero-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 34%, #000 54%);
  mask-image: linear-gradient(90deg, transparent 0, transparent 34%, #000 54%);
  transition: opacity 1s var(--ease), transform 1.6s var(--ease-out);
  will-change: transform;
}
.hero-art .art-light { filter: url(#duo-hl); }
.hero-art .art-dark { opacity: 0; mix-blend-mode: lighten; filter: url(#duo-h); }
html[data-theme="dark"] .hero-art .art-dark { opacity: 1; }
html[data-theme="dark"] .hero-art .art-light { opacity: 0; }
.hero-art.reveal img { clip-path: inset(0 0 0 100%); }
.hero-art.reveal.in img { clip-path: inset(0 0 0 0); transition: clip-path 2.2s var(--ease-out) .35s, opacity 1s var(--ease); }

/* ---------- radial fan navigation ---------- */
.fan { position: absolute; z-index: 6; left: 0; top: 50%; transform: translateY(-50%); }
.fan svg.fan-geo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fan .g { fill: none; stroke: var(--accent); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.fan .g-dash { stroke-dasharray: 2 6; }
.fan .g-dash2 { stroke-dasharray: 14 8 2 8; }
.fan .ray { fill: none; stroke: var(--ink); stroke-width: 1.05; vector-effect: non-scaling-stroke; transition: stroke .4s, stroke-width .4s; }
.fan .conn { stroke: var(--accent); stroke-width: 1.05; vector-effect: non-scaling-stroke; }
.fan .nd { fill: var(--bg); stroke: var(--accent); stroke-width: 1.3; vector-effect: non-scaling-stroke; transition: fill .4s, r .4s; }
.fan .nd-s { fill: var(--bg); stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.fan .nd-o { fill: var(--bg); stroke: var(--ink); stroke-width: 1.45; vector-effect: non-scaling-stroke; transition: fill .4s; }
.fan .hub { fill: var(--bg); stroke: var(--ink); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.fan .ray-grp.on .ray { stroke: var(--accent); stroke-width: 2; }
.fan .ray-grp.on .nd, .fan .ray-grp.on .nd-o { fill: var(--accent); }
.fan .spin { transform-box: view-box; animation: spin 140s linear infinite; }
.fan .spin.rev { animation-duration: 210s; animation-direction: reverse; }
.fan .spin.fast { animation-duration: 38s; }
.fan .needle { transition: transform 1.1s var(--ease-out); transform-box: view-box; }
.fan .needle line { stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.fan .needle circle { fill: var(--accent); }
.fan .orbit { fill: var(--accent); }
.fan .pulse { fill: none; stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: pulse 3.6s var(--ease) infinite; }

.fan .tab {
  position: absolute; display: flex; align-items: center; background: var(--bg);
  border: 1px solid var(--ink); color: var(--ink);
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s, transform .6s var(--ease-out), opacity .6s var(--ease);
}
.fan .tab .n { flex: 0 0 auto; width: 21.5%; text-align: center; color: var(--accent); font-weight: 700; font-size: calc(var(--k) * 18px); letter-spacing: .03em; transition: color .45s; }
.fan .tab .bar { flex: 0 0 1px; align-self: stretch; margin: 18% 0; background: var(--accent); transition: background .45s; }
.fan .tab .tx { padding: 0 6% 0 4.5%; min-width: 0; }
.fan .tab b { display: block; font-size: max(9.5px, calc(var(--k) * 14px)); font-weight: 760; letter-spacing: .11em; text-transform: uppercase; line-height: 1.25; white-space: nowrap; overflow: hidden; }
.fan .tab small { display: block; font-size: max(10px, calc(var(--k) * 10.8px)); font-weight: 500; line-height: 1.35; margin-top: .3em; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:not([data-theme="dark"]) .fan .tab.s1:not(:hover):not(:focus-visible):not(.on):not(.solid) { background: var(--paper); }
html:not([data-theme="dark"]) .fan .tab.s2:not(:hover):not(:focus-visible):not(.on):not(.solid) { background: var(--sage); }
.fan .tab:hover, .fan .tab:focus-visible, .fan .tab.on, .fan .tab.solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fan .tab:hover .n, .fan .tab:focus-visible .n, .fan .tab.on .n, .fan .tab.solid .n { color: var(--on-accent); }
.fan .tab:hover .bar, .fan .tab:focus-visible .bar, .fan .tab.on .bar, .fan .tab.solid .bar { background: var(--on-accent); }
/* phones (client 26 Nov): only one tab lit at a time - once a category is active, the solid last tab goes back to normal */
.fan.list:has(.tab.on) .tab.solid:not(.on):not(:hover):not(:focus-visible) { background: var(--bg); border-color: var(--ink); color: var(--ink); }
html:not([data-theme="dark"]) .fan.list:has(.tab.on) .tab.s1.solid:not(.on):not(:hover):not(:focus-visible) { background: var(--paper); }
html:not([data-theme="dark"]) .fan.list:has(.tab.on) .tab.s2.solid:not(.on):not(:hover):not(:focus-visible) { background: var(--sage); }
.fan.list:has(.tab.on) .tab.solid:not(.on):not(:hover):not(:focus-visible) .n { color: var(--accent); }
.fan.list:has(.tab.on) .tab.solid:not(.on):not(:hover):not(:focus-visible) .bar { background: var(--accent); }
.fan .tab:hover { transform: translateX(6px); }
.fan .tab.c { justify-content: center; text-align: center; }
.fan .tab.c .tx { padding: 0 6%; }
.fan .hub-btn {
  position: absolute; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  font-size: calc(var(--k) * 15px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .5s var(--ease-out), background .4s, color .4s;
}
.fan .hub-btn.big { background: var(--ink); color: var(--bg); box-shadow: 0 0 0 calc(var(--k) * 10px) color-mix(in srgb, var(--accent) 12%, transparent); }
.fan .hub-btn.big:hover { transform: scale(1.06); }
.fan .hub-btn.ring { border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-size: calc(var(--k) * 10px); }
.fan .hub-btn.ring:hover { background: var(--accent); color: var(--on-accent); }

/* intro state: tabs slide out from the hub */
.fan.pre .tab { opacity: 0; transform: translateX(-30px); }
.fan.pre .ray-grp path, .fan.pre .arc { stroke-dashoffset: 1; }
.fan .ray-grp path, .fan .arc { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease-out); }
.fan .ray-grp .nd, .fan .ray-grp .nd-o { transition: opacity .5s, fill .4s; }
.fan.pre .ray-grp .nd, .fan.pre .ray-grp .nd-o { opacity: 0; }

/* no-JS fallback: plain list */
.fan:not(.ready) { position: relative; top: auto; transform: none; padding: 40px var(--pad); display: grid; gap: 10px; max-width: 420px; }
.fan:not(.ready) .tab { position: relative; height: 56px; }
.fan:not(.ready) svg { display: none; }

/* ---------- landing ---------- */
.landing .fan { top: 53.4%; }
.landing .screen { min-height: max(560px, 100svh); }
.landing .footbar { padding: 0 calc(var(--u) * 3.3) 0 calc(var(--u) * 2.2); }
.landing .footbar .explore { padding-left: calc(var(--u) * 1.2); }
.landing .titleblock { margin: 0 calc(var(--u) * -1.1); }
.cursor-xy { position: absolute; right: calc(var(--u) * 4.6); bottom: calc(var(--u) * 6.4); z-index: 4; font: 600 10px/1 var(--sans); letter-spacing: .18em; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- section scaffolding ---------- */
.sec { padding: clamp(80px, 9vw, 160px) var(--pad); }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; margin-bottom: clamp(36px, 4vw, 70px); }
.sec-head h2 { font-size: clamp(34px, 4.2vw, 72px); font-weight: 800; letter-spacing: -.025em; line-height: 1; margin: 16px 0 0; }
.sec-head h2 em { font-family: var(--serif); font-weight: 500; color: var(--accent); }
.sec-head p { max-width: 460px; margin: 0; color: var(--ink-2); }
.wrap { max-width: 1480px; margin: 0 auto; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 26px;
  border: 1px solid var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), border-color .45s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform .5s var(--ease-out); z-index: -1; }
.btn:hover { color: var(--on-accent); border-color: var(--accent); }
.btn:hover::before { transform: none; }
.btn.solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.solid::before { background: var(--accent); }
.btn.solid:hover { color: var(--on-accent); }
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 6px; }
.link-arrow:hover { color: var(--accent); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; } .rv-d4 { transition-delay: .32s; }
.draw-line { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); }
.in .draw-line, .draw-line.in { transform: none; }

/* image frames */
.ph { position: relative; overflow: hidden; background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), opacity .8s var(--ease); }
.ph img.lazy { opacity: 0; }
.ph img.loaded { opacity: 1; }
.ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }

/* ---------- home: selected works ---------- */
.works-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 34vw); gap: 22px; overflow-x: auto; padding: 4px var(--pad) 26px; margin: 0 calc(var(--pad) * -1); scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; cursor: grab; }
.works-strip.drag { cursor: grabbing; scroll-snap-type: none; }
.works-strip.drag a { pointer-events: none; }
.wcard { scroll-snap-align: start; display: block; }
.wcard .ph { aspect-ratio: 4 / 3; }
.wcard:hover .ph img { transform: scale(1.05); }
.wcard .meta { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px; }
.wcard .meta .no { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.wcard .meta h3 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -.01em; }
.wcard .meta span { font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
.wcard .cat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: 6px; display: block; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.pillar { position: relative; padding: clamp(26px, 2.6vw, 44px) clamp(18px, 2vw, 34px) clamp(30px, 3vw, 52px); border-left: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.pillar:first-child { border-left: 0; }
.pillar .L { font-size: clamp(90px, 10vw, 180px); line-height: .8; font-weight: 200; color: transparent; -webkit-text-stroke: 1.2px var(--accent); transition: -webkit-text-stroke-color .5s, color .5s; display: block; margin-bottom: 24px; }
.pillar h3 { margin: 0 0 4px; font-size: 21px; font-weight: 780; }
.pillar .k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; transition: color .5s; }
.pillar p { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; transition: color .5s; }
.pillar::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform .7s var(--ease-out); z-index: -1; }
.pillar:hover { color: var(--on-accent); }
.pillar:hover::before { transform: none; }
.pillar:hover .L { -webkit-text-stroke-color: var(--on-accent); }
.pillar:hover .k, .pillar:hover p { color: var(--on-accent); }

/* ---------- meet the architect (home) ---------- */
.meet { display: grid; grid-template-columns: minmax(260px, .8fr) 2fr; gap: clamp(30px, 5vw, 90px); align-items: start; }
.meet figure { margin: 0; border: 1px solid var(--accent); padding: 8px; position: relative; }
.meet figure .ph { aspect-ratio: 3 / 4; }
.meet figure figcaption { position: absolute; right: -1px; bottom: 26px; transform: translateX(30%); background: var(--bg); border: 1px solid var(--accent); padding: 12px 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.meet figure figcaption span { display: block; font-family: var(--serif); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 18px; font-weight: 500; color: var(--accent); }
@media (max-width: 860px) { .meet { grid-template-columns: 1fr; } .meet figure { max-width: 380px; } .meet figure figcaption { transform: none; right: 12px; } }

/* ---------- facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fact { padding: 34px 26px 10px 0; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-size: clamp(44px, 5vw, 84px); font-weight: 200; line-height: 1; letter-spacing: -.03em; }
.fact b sup { font-size: .4em; color: var(--accent); font-weight: 600; margin-left: 4px; }
.fact span { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6vw; align-items: end; }
.cta h2 { font-size: clamp(40px, 6vw, 108px); line-height: .98; letter-spacing: -.035em; font-weight: 800; margin: 18px 0 0; }
.cta h2 em { font-family: var(--serif); font-weight: 500; color: var(--accent); }
.cta .acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta dl { margin: 0; display: grid; gap: 18px; }
.cta dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.cta dd { margin: 4px 0 0; font-size: clamp(18px, 1.6vw, 26px); font-weight: 600; }
.cta dd a:hover { color: var(--accent); }

/* ---------- site footer ---------- */
.site-foot { padding: clamp(60px, 6vw, 110px) var(--pad) 0; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 60px; }
.site-foot .brand { width: 230px; }
.site-foot h4 { margin: 0 0 18px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.site-foot a:hover { color: var(--accent); }
.site-foot .note { margin-top: 22px; max-width: 340px; color: var(--ink-2); font-size: 14px; }
.site-foot .footbar { padding: 0; }

/* ---------- projects landing ---------- */
.pj .fan { top: 54%; }
.pj-intro { position: absolute; z-index: 4; left: 46.5%; top: 24%; width: 23%; text-align: center; font-family: var(--serif); font-size: max(15px, calc(var(--u) * 1.3)); line-height: 1.35; color: var(--ink); transition: opacity .7s var(--ease), transform .9s var(--ease-out); }
.pj-intro p { margin: 0 0 1.1em; }
.pj-intro .closing { font-family: var(--serif); font-size: 1.05em; color: var(--ink); }
.pj .hero-art { transition: opacity .8s var(--ease), transform 1.2s var(--ease-out); }
.pj.has-cat .hero-art { opacity: .12; transform: translateX(4%); }
.pj.has-cat .pj-intro { opacity: 0; transform: translateY(-14px); pointer-events: none; }

.cat-panel { position: absolute; z-index: 7; left: 45%; right: calc(var(--u) * 2.2); top: 4%; bottom: 1%; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateX(40px); transition: opacity .7s var(--ease), transform .9s var(--ease-out), visibility 0s .9s; }
.cat-panel.on { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
.cat-panel header { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--accent); }
.cat-panel h2 { margin: 6px 0 0; font-size: max(24px, calc(var(--u) * 2.5)); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.cat-panel header p { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.cat-panel .ctrl { display: flex; gap: 8px; }
.sq-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--ink); transition: background .35s, color .35s, border-color .35s; }
.sq-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sq-btn svg { width: 18px; height: 18px; }
.cat-track { flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 20px; overflow-x: auto; overflow-y: hidden; padding: 20px 0 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.pcard { position: relative; display: flex; flex-direction: column; scroll-snap-align: start; min-height: 0; height: 100%; }
.pcard .ph { height: calc(100% - 74px); min-height: 120px; aspect-ratio: 4 / 3; width: auto; }
.pcard .cap { max-width: 100%; width: 0; min-width: 100%; }
.pcard:hover .ph img { transform: scale(1.06); }
.pcard .ov { position: absolute; left: 0; right: 0; top: 0; bottom: 74px; display: flex; align-items: flex-end; padding: 18px; background: linear-gradient(to top, var(--ov), transparent 45%); color: var(--on-ov); opacity: 0; transition: opacity .5s var(--ease); font-size: 11px; letter-spacing: .22em; font-weight: 700; text-transform: uppercase; }
.pcard:hover .ov { opacity: 1; }
.pcard .cap { height: 74px; padding-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-content: start; }
.pcard .cap .no { grid-row: span 2; font-size: 12px; font-weight: 700; color: var(--accent); padding-top: 4px; }
.pcard .cap h3 { margin: 0; font-size: 17px; font-weight: 760; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .cap span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* index of works */
.idx-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.chip { height: 38px; padding: 0 16px; border: 1px solid var(--line-2); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; transition: background .35s, color .35s, border-color .35s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip sup { font-size: 9px; margin-left: 4px; opacity: .75; }
.search { margin-left: auto; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); height: 38px; min-width: 240px; }
.search input { border: 0; background: none; color: var(--ink); font: 500 15px var(--sans); outline: none; width: 100%; }
.search input::placeholder { color: var(--ink-3); }
.idx { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--accent); }
.idx li { border-bottom: 1px solid var(--line); }
.idx a { display: grid; grid-template-columns: 70px 2.2fr 1.4fr 1.2fr 1.3fr 30px; gap: 16px; align-items: center; padding: 18px 6px; position: relative; transition: padding .45s var(--ease-out), color .3s; }
.idx a::before { content: ""; position: absolute; inset: 0; background: var(--accent); opacity: 0; transition: opacity .35s; z-index: -1; }
.idx a:hover { padding-left: 20px; color: var(--on-accent); }
.idx a:hover::before { opacity: 1; }
.idx .no { font-size: 12px; font-weight: 700; color: var(--accent); }
.idx a:hover .no, .idx a:hover .dim { color: var(--on-accent); }
.idx .t { font-size: clamp(17px, 1.4vw, 22px); font-weight: 720; letter-spacing: -.01em; }
.idx .dim { font-size: 13.5px; color: var(--ink-2); }
.idx .arr { justify-self: end; transition: transform .4s var(--ease-out); }
.idx a:hover .arr { transform: translateX(4px); }
.idx li.hide { display: none; }
.peek { position: fixed; z-index: 50; width: 320px; aspect-ratio: 4/3; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .35s var(--ease), transform .45s var(--ease-out); box-shadow: var(--shadow); overflow: hidden; background: var(--paper); }
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- project detail ---------- */
.pd .lcol { position: absolute; z-index: 6; left: var(--pad); top: 3%; width: 33%; }
.pd .lcol .eyebrow { font-size: max(10px, calc(var(--u) * .7)); }
.pd .lcol h1 { margin: calc(var(--u) * .8) 0 0; font-size: max(26px, calc(var(--u) * 2.7)); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; }
.pd .lcol .loc { margin-top: calc(var(--u) * .7); font-size: max(12.5px, calc(var(--u) * .9)); color: var(--ink-2); }
.pd .fan { top: 58%; }
.frame { position: absolute; z-index: 5; left: 37.5%; right: calc(var(--u) * 1.4); top: 6%; bottom: 13%; border: 1px solid var(--accent); padding: calc(var(--u) * .5); }
.frame .slides { position: relative; width: 100%; height: 100%; overflow: hidden; background: color-mix(in srgb, var(--accent) 18%, var(--bg)); cursor: zoom-in; }
.frame .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.frame .slide.on { opacity: 1; }
.frame .slide:not(.on):not(.near) { display: none; } /* speed: hidden photos are not downloaded until needed */
.frame .slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the whole image is always shown — copyright marks and watermarks are never cropped */
.frame .slide img.fg { object-fit: contain; z-index: 1; }
.frame .slide img.bg { object-fit: cover; filter: blur(26px) saturate(1.1) brightness(.85); transform: scale(1.2); opacity: .6; }
.frame .count { position: absolute; z-index: 3; left: calc(var(--u) * 1.4); top: calc(var(--u) * 1.2); color: var(--on-ov); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.frame .crn { position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; z-index: 2; }
.frame .crn.a { left: -7px; top: -7px; border-width: 1px 0 0 1px; } .frame .crn.b { right: -7px; top: -7px; border-width: 1px 1px 0 0; }
.frame .crn.c { left: -7px; bottom: -7px; border-width: 0 0 1px 1px; } .frame .crn.d { right: -7px; bottom: -7px; border-width: 0 1px 1px 0; }
.frame .copy-note { position: absolute; z-index: 4; left: 50%; bottom: calc(var(--u) * 1.4); transform: translate(-50%, 20px); width: min(560px, 86%); background: var(--bg); color: var(--ink); padding: 18px 22px; border: 1px solid var(--accent); font-size: 13px; line-height: 1.55; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), transform .55s var(--ease-out), visibility 0s .55s; }
.frame .copy-note.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.frame .copy-note b { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.fbtns { position: absolute; z-index: 5; left: 37.5%; right: calc(var(--u) * 1.4); bottom: 2.6%; display: grid; grid-template-columns: auto 1fr auto auto; gap: calc(var(--u) * 1.4); align-items: center; }
.fbtn { height: max(32px, calc(var(--u) * 2.3)); padding: 0 max(14px, calc(var(--u) * 1.4)); border: 1px solid var(--accent); font-size: max(9.5px, calc(var(--u) * .66)); letter-spacing: .14em; font-weight: 700; text-transform: uppercase; white-space: nowrap; transition: background .35s, color .35s; }
.fbtn:hover, .fbtn.on { background: var(--accent); color: var(--on-accent); }
.fbtn.mid { justify-self: center; }
.fbtn.mid span { display: inline-block; animation: nudge 2.4s var(--ease) infinite; margin-left: 8px; }
/* small landscape screens (~1024px, e.g. iPad landscape): keep all four gallery buttons inside the screen */
@media (min-width: 961px) and (max-width: 1150px) and (min-aspect-ratio: 5001/4000) {
  .fbtns { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; }
  .fbtn { padding: 0 11px; letter-spacing: .08em; }
  .fbtn.mid { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}

.pd-body { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: clamp(30px, 6vw, 110px); }
.facts-dl { margin: 0; border-top: 1px solid var(--accent); position: sticky; top: 30px; align-self: start; }
.facts-dl div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts-dl dt { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--accent); padding-top: 3px; }
.facts-dl dd { margin: 0; font-size: 15px; font-weight: 550; }
.story { display: grid; gap: clamp(30px, 3vw, 50px); }
.story h1 { font-size: clamp(40px, 5vw, 86px); line-height: .98; font-weight: 800; letter-spacing: -.035em; margin: 16px 0 0; }
.story .ty { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 32px); line-height: 1.3; color: var(--accent); margin: 0; }
.story section { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding-top: 26px; border-top: 1px solid var(--line); }
.story section .no { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.story section h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
.story section p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.gal { columns: 3; column-gap: 16px; }
.gal a { display: block; break-inside: avoid; margin-bottom: 16px; }
.gal a .ph img { height: auto; }
.gal a:hover img { transform: scale(1.03); }
.pn { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.pn a { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; padding: 26px 0; transition: background .4s; }
.pn a + a { border-left: 1px solid var(--line); padding-left: 26px; grid-template-columns: 1fr 120px; text-align: right; }
.pn a + a .ph { order: 2; }
.pn .ph { aspect-ratio: 4/3; }
.pn small { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.pn b { display: block; font-size: clamp(18px, 1.8vw, 28px); font-weight: 760; margin-top: 6px; letter-spacing: -.01em; }
.pn a:hover b { color: var(--accent); }

/* lightbox */
.lb { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; max-height: 100%; overflow: hidden; z-index: 200; background: var(--lb); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; color: var(--on-ov); }
.lb.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.lb .bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; font-size: 12px; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; }
.lb .bar button { width: 44px; height: 44px; border: 1px solid var(--lb-line); display: grid; place-items: center; }
.lb .bar button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lb figure { position: relative; margin: 0 70px; min-width: 0; min-height: 0; overflow: hidden; }
/* A definite image box prevents intrinsic image height from exceeding the screen. */
.lb figure img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.lb .bar { gap: 12px; min-width: 0; }
.lb .bar .t { min-width: 0; overflow-wrap: anywhere; }
.lb .bar .c { flex: 0 0 auto; }
.lb .bar button { flex: 0 0 44px; }
.lb .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 1px solid var(--lb-line); display: grid; place-items: center; }
.lb .nav:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lb .prev { left: 14px; } .lb .next { right: 14px; }
.lb .cap { text-align: center; padding: 16px; font-size: 12px; letter-spacing: .14em; opacity: .7; }

/* ---------- about ---------- */
.ab .stage { display: grid; grid-template-columns: 44% 1fr; gap: calc(var(--u) * 4); padding: calc(var(--u) * 2.5) var(--pad) calc(var(--u) * 1.5) calc(var(--pad) * .6); }
.ab h1.four { margin: 0 0 calc(var(--u) * 2); font-family: var(--serif); font-size: max(20px, calc(var(--u) * 2.15)); line-height: 1.12; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.ab h1.four::after, .ab .rcol h2::after { content: ""; display: block; width: calc(var(--u) * 3.4); height: 3px; margin-top: calc(var(--u) * .9); background: var(--sage); }
.ab .rows { display: grid; gap: calc(var(--u) * 1.15); }
.ab .row { display: grid; grid-template-columns: calc(var(--u) * 5.6) 1fr; gap: calc(var(--u) * 2.3); align-items: stretch; min-height: calc(var(--u) * 6.1); }
.ab .lt { position: relative; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--paper); font-family: var(--serif); font-size: calc(var(--u) * 3.8); font-weight: 500; color: var(--ink); transition: background .5s var(--ease), color .5s; overflow: hidden; }
.ab .lt::before, .ab .lt::after { content: ""; position: absolute; background: var(--accent); }
.ab .lt::before { left: 50%; top: 0; bottom: 0; width: 1px; opacity: .25; }
.ab .lt::after { top: 50%; left: 0; right: 0; height: 1px; opacity: .25; }
.ab .row:nth-child(2) .lt { background: var(--sage); }
.ab .row:nth-child(3) .lt { background: var(--accent); }
.ab .card { border: 1px solid var(--ink); background: color-mix(in srgb, var(--paper) 35%, var(--bg)); padding: calc(var(--u) * .8) calc(var(--u) * 1.3); display: flex; flex-direction: column; justify-content: center; transition: background .5s var(--ease), border-color .5s; }
.ab .card h3 { margin: 0; font-family: var(--serif); font-size: max(16px, calc(var(--u) * 1.4)); font-weight: 700; line-height: 1.1; color: var(--ink); }
.ab .card .k { font-family: var(--serif); font-style: italic; font-size: max(13px, calc(var(--u) * .95)); letter-spacing: .01em; color: var(--ink); font-weight: 600; margin: 2px 0 4px; }
.ab .card p { margin: 0; font-family: var(--serif); font-size: max(13.5px, calc(var(--u) * .98)); line-height: 1.35; color: var(--ink); }
.ab .row:hover .lt { background: var(--ink); color: var(--bg); }
.ab .row:hover .card { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ab .stage { position: relative; }
.ab .lcol { position: relative; z-index: 2; }
.ab .rcol { position: relative; z-index: 2; padding-right: 38%; display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto; gap: calc(var(--u) * 1.8) calc(var(--u) * 2.6); align-content: start; align-self: start; }
.ab .rcol h2 { margin: 0; font-family: var(--serif); font-size: max(28px, calc(var(--u) * 2.9)); line-height: 1.05; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.ab .rcol .intro { margin: calc(var(--u) * 1.6) 0 0; font-family: var(--serif); font-size: max(18px, calc(var(--u) * 1.55)); line-height: 1.35; font-weight: 500; color: var(--ink); }
.ab .rcol .intro b { font-weight: 700; }
.ab .hero-art.ab-villa { left: 28%; z-index: 1; }
.ab .hero-art.ab-villa img { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 50%, #000 66%); mask-image: linear-gradient(90deg, transparent 0, transparent 50%, #000 66%); }
.ab .portrait { align-self: start; aspect-ratio: 3/4; border: 1px solid var(--accent); padding: calc(var(--u) * .5); }
.ab .portrait .ph { height: 100%; }
.ab .more { grid-column: 1 / -1; font-family: var(--serif); font-size: max(15px, calc(var(--u) * 1.12)); line-height: 1.5; color: var(--ink); }
.ab .more p { margin: 0 0 .9em; }
.ab .sig { font-family: var(--serif); font-style: italic; font-size: max(18px, calc(var(--u) * 1.5)); color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 0 28px 0 0; position: relative; }
.step .n { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .12em; margin-bottom: 26px; }
.step .n::after { content: ""; flex: 1; height: 1px; background: var(--accent); }
.step .n i { width: 11px; height: 11px; border: 1.3px solid var(--accent); border-radius: 50%; background: var(--bg); }
.step h3 { margin: 0 0 10px; font-size: clamp(22px, 2vw, 30px); font-weight: 780; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-2); }
.svc { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--accent); }
.svc > div { padding: 34px 30px 40px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.svc svg { width: 40px; height: 40px; stroke: var(--accent); fill: none; stroke-width: 1.3; }
.svc h3 { margin: 4px 0 8px; font-size: 19px; font-weight: 760; }
.svc p { margin: 0; font-size: 15px; color: var(--ink-2); }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; width: max-content; gap: 60px; animation: marq 40s linear infinite; }
.marquee span { font-size: clamp(22px, 2.4vw, 40px); font-weight: 300; letter-spacing: -.01em; white-space: nowrap; display: inline-flex; align-items: center; gap: 60px; }
.marquee span::after { content: ""; width: 9px; height: 9px; border: 1.3px solid var(--accent); border-radius: 50%; }
.marquee:hover .track { animation-play-state: paused; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { border: 1px solid var(--line-2); padding: 10px 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }

/* ---------- journey ---------- */
.jy .stage { display: grid; grid-template-columns: 24.5% 1fr; }
.jy .side { position: relative; border-right: 1px solid var(--accent); padding: calc(var(--u) * 1) calc(var(--u) * 1.6) 0 var(--pad); display: flex; flex-direction: column; }
.jy .side .pf { position: relative; margin: 0; border: 1px solid var(--accent); padding: calc(var(--u) * .45); }
.jy .side .pf .crn { position: absolute; width: 12px; height: 12px; border-color: var(--accent); border-style: solid; }
.jy .side .pf .crn.a { left: -6px; top: -6px; border-width: 1px 0 0 1px; } .jy .side .pf .crn.b { right: -6px; top: -6px; border-width: 1px 1px 0 0; }
.jy .side .pf .crn.c { left: -6px; bottom: -6px; border-width: 0 0 1px 1px; } .jy .side .pf .crn.d { right: -6px; bottom: -6px; border-width: 0 1px 1px 0; }
.jy .side .ph { aspect-ratio: 1 / 1.04; background: transparent; }
.jy .side .ph img { object-position: 50% 12%; }
.jy .side .ph::after { display: none; }
.jy .side h2 { margin: calc(var(--u) * 1.3) 0 0; font-size: max(14px, calc(var(--u) * 1.2)); letter-spacing: .2em; font-weight: 750; }
.jy .side .rl { width: calc(var(--u) * 3.4); height: 2px; background: var(--accent); margin: calc(var(--u) * .9) 0; }
.jy .side .role { font-size: max(12px, calc(var(--u) * .86)); font-weight: 700; line-height: 1.45; }
.jy .side .intro { font-size: max(11.5px, calc(var(--u) * .76)); line-height: 1.55; color: var(--ink-2); margin: calc(var(--u) * .8) 0 0; }
.jy .side .sketch { margin-top: auto; width: 100%; opacity: .95; mix-blend-mode: darken; filter: url(#duo-l); }
html[data-theme="dark"] .jy .side .sketch { mix-blend-mode: lighten; opacity: .85; filter: url(#duo-d); }
.jy .main { position: relative; padding: calc(var(--u) * 1.4) var(--pad) 0 calc(var(--u) * 2.6); display: flex; flex-direction: column; }
.jy .eyebrow { font-size: max(10px, calc(var(--u) * .74)); }
.jy h1 { margin: calc(var(--u) * .8) 0 0; font-size: max(30px, calc(var(--u) * 3.35)); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; max-width: 13.5em; }
.jy .sub { margin: calc(var(--u) * .8) 0 0; font-size: max(13px, calc(var(--u) * .98)); max-width: 30em; color: var(--ink-2); }
.jy .sub::after { content: ""; display: block; width: calc(var(--u) * 3.4); height: 2px; background: var(--accent); margin-top: calc(var(--u) * 1); }
.tl { position: relative; flex: 1; min-height: calc(var(--u) * 19); margin-top: calc(var(--u) * -6); }
.tl svg.rise { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tl .rise .area { opacity: 0; transition: opacity 1.6s var(--ease) 1.4s; }
.tl.in .rise .area { opacity: 1; }
.tl .rise .base { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-out) .3s; }
.tl.in .rise .base { stroke-dashoffset: 0; }
.tl .rise .prog { fill: none; stroke: var(--accent); stroke-width: 2.8; stroke-linecap: round; }
.tl .rise .drop { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0; transition: opacity .6s var(--ease), stroke-dasharray .4s; }
.tl.in .rise .drop { opacity: .7; transition-delay: calc(1.2s + var(--i) * .25s); }
.tl .rise .drop.on { stroke-dasharray: none; opacity: 1; }
.tl .node { position: absolute; transform: translate(-50%, -100%); text-align: center; opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease-out); transition-delay: calc(.5s + var(--i) * .28s); }
.tl.in .node { opacity: 1; }
.tl .node b { display: block; font-size: max(20px, calc(var(--u) * 2.1)); font-weight: 500; color: var(--accent); line-height: 1; }
.tl .node span { display: block; font-size: max(9.5px, calc(var(--u) * .68)); font-weight: 700; letter-spacing: .05em; margin-top: 4px; white-space: nowrap; }
.tl .node { cursor: pointer; }
.tl .node.on i::after { content: ""; position: absolute; inset: -6px; border: 1px solid var(--accent); border-radius: 50%; animation: pulse 2.6s var(--ease) infinite; }
.tl .node i { position: relative; display: block; width: calc(var(--u) * .95); height: calc(var(--u) * .95); margin: calc(var(--u) * .55) auto 0; border: 1.5px solid var(--accent); border-radius: 50%; background: var(--bg); transform: translateY(50%); transition: background .4s, transform .4s var(--ease-out); }
.tl .node.on i { background: var(--accent); transform: translateY(50%) scale(1.35); }
.stages { position: absolute; left: 0; right: 0; bottom: 0; height: 47%; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 0; }
.stages .st { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(.7s + var(--i) * .28s), 0s; }
.tl.in .stages .st { clip-path: inset(0 0 0 0); }
/* journey artwork band — the approved panorama, sketch to finished building */
.jart { position: relative; width: min(100%, calc(56svh * 2.551)); container-type: inline-size; }
.art-head { position: absolute; z-index: 3; left: 2.2cqw; top: 1.2cqw; width: 34cqw; }
.art-head .eyebrow { font-size: max(10px, .78cqw); }
.jy .art-head h1 { margin: .9cqw 0 0; font-size: 2.95cqw; line-height: 1.04; letter-spacing: -.02em; max-width: none; }
.jy .art-head .sub { margin: 1cqw 0 0; font-size: max(12px, 1.12cqw); line-height: 1.45; max-width: 28em; }
.jy .art-head .sub::after { width: 3.6cqw; margin-top: 1.2cqw; }
.art { position: relative; }
.art-img { position: relative; width: 100%; aspect-ratio: 2.551; overflow: hidden; }
.art-img > img {
  position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none;
  clip-path: inset(0 100% 0 0); transition: clip-path 2.8s cubic-bezier(.65,.05,.25,1) .2s;
  /* melt the artwork's paper into the page: lines stay, the paper takes the page colour */
  mix-blend-mode: darken; filter: url(#duo-l);
}
.art.in .art-img > img { clip-path: inset(0 0 0 0); }
/* dark contrast: the same drawing as a gold-line night blueprint */
html[data-theme="dark"] .art-img > img { filter: url(#duo-d); mix-blend-mode: lighten; }
.jart { --paper: var(--bg); background: var(--bg); transition: background-color .7s var(--ease); }
html[data-theme="dark"] .jart { --paper: var(--bg); }
/* soft patches of paper cover the headline that is printed into the artwork (the live headline sits on top) */
.art .patch { position: absolute; z-index: 1; left: -2%; top: -3%; background: var(--paper); box-shadow: 0 0 1.2cqw 1.1cqw var(--paper); pointer-events: none; opacity: 0; transition: opacity .5s var(--ease) .15s, background-color .7s var(--ease), box-shadow .7s var(--ease); }
.art.in .patch { opacity: 1; }
/* feather the band's edges into the page */
.art-img::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 1.6cqw 1cqw var(--bg); transition: box-shadow .7s var(--ease); }
.art .p1 { width: 39%; height: 27%; }
.art .p2 { width: 33.5%; height: 39%; }
.art .p3 { width: 10%; height: 47%; }
.art .scan { position: absolute; z-index: 4; top: 4%; bottom: 4%; left: 0; width: 2px; background: linear-gradient(to bottom, transparent, var(--accent) 20%, var(--accent) 80%, transparent); box-shadow: 0 0 18px 2px color-mix(in srgb, var(--accent) 55%, transparent); opacity: 0; pointer-events: none; }
.art.in .scan { animation: scan 2.8s cubic-bezier(.65,.05,.25,1) .2s forwards; }
@keyframes scan { 0% { left: 6%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: 99%; opacity: 0; } }
.art .cols { position: absolute; inset: 0; z-index: 2; }
.art .col { position: absolute; top: 30%; bottom: 0; cursor: pointer; }
.art .col::before { content: ""; position: absolute; left: 0; right: 0; top: 10%; bottom: 0; background: var(--paper); opacity: 0; transition: opacity .7s var(--ease); }
.jy.hovering .art .col:not(.on)::before { opacity: .42; }
.art .col::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 6%; height: 2px; background: var(--accent); box-shadow: 0 0 16px 2px color-mix(in srgb, var(--accent) 60%, transparent); transform: scaleX(0); transition: transform .7s var(--ease-out); }
.art .col.on::after { transform: scaleX(1); }
.art .col:focus-visible { outline-offset: -4px; }
.art .ring { position: absolute; z-index: 3; width: max(16px, 1.9cqw); height: max(16px, 1.9cqw); margin: 0; border: 1.5px solid var(--accent); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: left .9s var(--ease-out), top .9s var(--ease-out), opacity .6s; }
.art.in .ring { opacity: 1; transition-delay: 0s, 0s, 2.6s; }
.art .ring::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--accent); border-radius: 50%; animation: pulse 2.4s var(--ease) infinite; }

/* building stages — drawn line by line, growing from sketch to skyline */
.stage-g { stroke: var(--ink); stroke-width: 1.45; transition: stroke .5s var(--ease); }
.stage-g .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.tl.in .stage-g .d { animation: draw 1.8s var(--ease-out) forwards; animation-delay: calc(.9s + var(--i, 0) * .3s); }
.stage-g .a { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity 1s var(--ease); }
.stage-g .g { stroke: var(--accent); stroke-width: 1.1; }
.stage-g .f { fill: var(--accent); stroke: none; opacity: 0; transition: opacity 1s var(--ease); }
.tl.in .stage-g .a { opacity: 1; transition-delay: calc(1.6s + var(--i, 0) * .3s); }
.tl.in .stage-g .f { opacity: .16; transition-delay: calc(1.8s + var(--i, 0) * .3s); }
.stages .st { cursor: pointer; }
.stages .st.on .stage-g { stroke: var(--accent); }
.tl.in .stages .st.on .stage-g .f { opacity: .34; transition-delay: 0s; }
.stages .st svg { --i: inherit; }
.stages .st img { max-height: 100%; width: auto; max-width: 104%; object-fit: contain; object-position: bottom; mix-blend-mode: multiply; }
.stages .st.on { transform: translateY(-6px); }
.stages::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); }
.chapters { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: calc(var(--u) * .6); border-top: 1px solid var(--line-2); padding-top: calc(var(--u) * .9); }
.chap { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; padding: calc(var(--u) * .9) calc(var(--u) * 1.1) calc(var(--u) * 1); border-left: 1px solid var(--line-2); transition: background .5s var(--ease), color .5s; min-height: calc(var(--u) * 8.4); }
.chap:first-child { border-left: 0; padding-left: 0; }
.chap .n { display: block; font-size: max(18px, calc(var(--u) * 1.75)); color: var(--accent); font-weight: 400; line-height: 1; transition: color .5s; }
.chap h3 { margin: calc(var(--u) * .5) 0 0; font-size: max(13px, calc(var(--u) * 1.05)); line-height: 1.2; font-weight: 780; }
.chap .org { display: block; margin-top: calc(var(--u) * .55); font-size: max(10.5px, calc(var(--u) * .72)); font-weight: 600; }
.chap .yr { display: block; font-size: max(10.5px, calc(var(--u) * .72)); color: var(--ink-2); transition: color .5s; }
.chap.on, .chap:hover { background: var(--accent); color: var(--on-accent); border-radius: 4px; padding-left: calc(var(--u) * 1.1); }
.chap.on .n, .chap:hover .n, .chap.on .yr, .chap:hover .yr { color: var(--on-accent); }
.chap .more { display: none; }
.msg { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: calc(var(--u) * 2); border-top: 1px solid var(--line-2); margin-top: calc(var(--u) * 1); padding: calc(var(--u) * 1) 0 calc(var(--u) * 1.2); }
.msg .eyebrow { font-size: max(10px, calc(var(--u) * .72)); }
.msg .q { font-family: var(--serif); font-size: calc(var(--u) * 3.6); line-height: .6; color: var(--accent); }
.msg blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: max(15px, calc(var(--u) * 1.22)); line-height: 1.4; }
.msg .sign { height: calc(var(--u) * 3.6); width: auto; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 55% 55% at 62% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 55% 55% at 62% 50%, #000 55%, transparent 100%); }
.msg .sign { mix-blend-mode: darken; filter: url(#duo-l); }
html[data-theme="dark"] .msg .sign { mix-blend-mode: lighten; filter: url(#duo-d); }
.chap-detail { position: fixed; z-index: 120; right: var(--pad); bottom: var(--pad); width: min(420px, calc(100vw - 2 * var(--pad))); background: var(--bg); border: 1px solid var(--accent); padding: 26px 26px 24px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .45s var(--ease), transform .55s var(--ease-out), visibility 0s .55s; }
.chap-detail.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.chap-detail .x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; }
.chap-detail .x:hover { color: var(--accent); }
.chap-detail b { font-size: 34px; color: var(--accent); font-weight: 400; display: block; line-height: 1; }
.chap-detail h3 { margin: 8px 0 2px; font-size: 22px; font-weight: 780; }
.chap-detail .m { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.chap-detail p { margin: 12px 0 0; color: var(--ink-2); }
.chap-detail .rel { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chap-detail .rel a { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; border: 1px solid var(--line-2); padding: 6px 10px; }
.chap-detail .rel a:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- learn & collaborate (fan + preview) ---------- */
.lr .fan { top: 55%; }
.preview { position: absolute; z-index: 5; left: 52%; right: calc(var(--u) * 3.4); top: 12%; bottom: 8%; display: flex; flex-direction: column; justify-content: center; }
.preview .pv { display: none; animation: fadeUp .8s var(--ease-out) both; }
.preview .pv.on { display: block; }
.preview .kicker { display: flex; gap: 18px; align-items: center; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.preview h2 { margin: 18px 0 0; font-size: max(30px, calc(var(--u) * 3.3)); line-height: 1.03; font-weight: 800; letter-spacing: -.025em; }
.preview p { margin: 22px 0 0; font-size: max(15px, calc(var(--u) * 1.15)); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.preview ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.preview li { display: flex; gap: 14px; align-items: baseline; font-size: max(14px, calc(var(--u) * 1)); }
.preview li::before { content: ""; width: 7px; height: 7px; border: 1.3px solid var(--accent); border-radius: 50%; flex: 0 0 auto; transform: translateY(-1px); }
.preview .acts { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.big-no { position: absolute; z-index: 2; right: calc(var(--u) * 2); bottom: 1%; font-size: calc(var(--u) * 17); line-height: .8; font-weight: 200; color: transparent; -webkit-text-stroke: 1px var(--line-2); pointer-events: none; transition: opacity .6s; }

.article { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2.4fr); gap: clamp(30px, 6vw, 110px); }
.article aside { position: sticky; top: 30px; align-self: start; border-top: 1px solid var(--accent); }
.article aside div { display: grid; grid-template-columns: 90px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.article aside dt { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; padding-top: 2px; }
.article aside dd { margin: 0; font-weight: 600; }
.prose { max-width: 760px; font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.prose h1 { font-size: clamp(38px, 4.6vw, 76px); line-height: 1; letter-spacing: -.03em; font-weight: 800; color: var(--ink); margin: 18px 0 26px; }
.prose .dek { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.35; color: var(--accent); margin: 0 0 40px; }
.prose h2 { color: var(--ink); font-size: 26px; letter-spacing: -.01em; margin: 46px 0 12px; display: flex; gap: 16px; align-items: baseline; }
.prose h2::before { content: ""; width: 26px; height: 1px; background: var(--accent); flex: 0 0 auto; transform: translateY(-8px); }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border: 1.3px solid var(--accent); border-radius: 50%; }
.prose strong { color: var(--ink); }

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 17px var(--sans); padding: 10px 0 12px; outline: none; border-radius: 0; transition: border-color .3s; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.form .acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.form .hint { font-size: 13px; color: var(--ink-3); }
.form .ok { display: none; font-size: 14px; color: var(--accent); font-weight: 600; }
.form.sent .ok { display: block; }

.ct .stage { display: grid; grid-template-columns: 1.15fr .85fr; gap: calc(var(--u) * 5); padding: calc(var(--u) * 3) var(--pad) calc(var(--u) * 2); align-items: center; }
.ct h1 { margin: 18px 0 0; font-size: max(40px, calc(var(--u) * 5.6)); line-height: .96; letter-spacing: -.035em; font-weight: 800; }
.ct h1 em { font-family: var(--serif); font-weight: 500; color: var(--accent); }
.ct .lead { margin-top: calc(var(--u) * 1.6); max-width: 30em; }
.ct .channels { margin-top: calc(var(--u) * 2.4); display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--accent); }
.ct .channels a { padding: calc(var(--u) * 1.2) 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; transition: padding .4s var(--ease-out), color .3s; }
.ct .channels a:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.ct .channels a:nth-child(even) { padding-left: 20px; }
.ct .channels a:hover { color: var(--accent); }
.ct .channels small { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.ct .channels b { font-size: max(16px, calc(var(--u) * 1.3)); font-weight: 650; }
.ct .pframe { position: relative; aspect-ratio: 4/5; max-height: 74svh; border: 1px solid var(--accent); padding: calc(var(--u) * .6); justify-self: end; width: 100%; max-width: calc(74svh * .8); }
.ct .pframe .ph { height: 100%; }
.ct .pframe figcaption { position: absolute; left: calc(var(--u) * -3); bottom: calc(var(--u) * 3); background: var(--bg); border: 1px solid var(--accent); padding: 14px 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.ct .pframe figcaption span { display: block; font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 20px; font-weight: 500; color: var(--accent); }

/* intro loader */
.boot { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: grid; place-items: center; transition: opacity .9s var(--ease) .1s, visibility 0s 1s; }
.boot .logo-svg { width: min(520px, 70vw); }
.boot .boot-logo { transition: opacity .6s var(--ease); }
.boot .vbox { position: absolute; left: 50%; top: 50%; width: min(1500px, 100vw, 177.78vh); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); overflow: hidden; opacity: 0; transition: opacity 1s var(--ease);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
.boot .vbox video { width: 100%; height: 100%; object-fit: cover; filter: url(#duo-lv); }
html[data-theme="dark"] .boot .vbox video { filter: url(#duo-dv); }
.boot.vid .vbox { opacity: 1; }
.boot.vid .boot-logo { opacity: 0; }
.boot-skip { position: absolute; right: var(--pad); bottom: var(--pad); height: 40px; padding: 0 18px; border: 1px solid var(--line-2); font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: 0; animation: fadeIn .6s var(--ease) 1.2s forwards; }
.boot-skip:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.boot.vid .meter::after { animation-duration: 7.4s; }
.boot .lg-build path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 45ms); }
.boot .lg-face, .boot .lg-line, .boot .lg-i { opacity: 0; animation: fadeIn .9s var(--ease) .75s forwards; }
.boot .lg-word { opacity: 0; letter-spacing: .5em; animation: fadeIn 1s var(--ease) 1.1s forwards; }
.boot.out { opacity: 0; visibility: hidden; }
.boot .meter { position: absolute; left: 50%; bottom: 12vh; width: 160px; height: 1px; background: var(--line); transform: translateX(-50%); overflow: hidden; }
.boot .meter::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: grow 1.6s var(--ease-out) forwards; }

/* page transition veil */
.veil { position: fixed; inset: 0; z-index: 400; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.veil i { background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out); }
.veil i:nth-child(2) { transition-delay: .04s; } .veil i:nth-child(3) { transition-delay: .08s; } .veil i:nth-child(4) { transition-delay: .12s; } .veil i:nth-child(5) { transition-delay: .16s; }
.veil.on i { transform: scaleY(1); }
.veil.lift i { transform: scaleY(0); transform-origin: top; }

/* cursor (fine pointers only) */
.cur { position: fixed; z-index: 600; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; border: 1px solid var(--accent); border-radius: 50%; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), opacity .3s, background .3s; opacity: 0; mix-blend-mode: normal; }
.cur::before, .cur::after { content: ""; position: absolute; background: var(--accent); }
.cur::before { left: 50%; top: -6px; bottom: -6px; width: 1px; opacity: .5; }
.cur::after { top: 50%; left: -6px; right: -6px; height: 1px; opacity: .5; }
.cur.on { opacity: 1; }
.cur.hot { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cur.hot::before, .cur.hot::after { opacity: 0; }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: flex; flex-direction: column; padding: 18px var(--pad) 26px; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.mnav.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.mnav .top { display: flex; justify-content: space-between; align-items: center; }
.mnav .top .brand { width: 150px; min-width: 0; }
.mnav ol { list-style: none; margin: auto 0; padding: 0; counter-reset: m; }
.mnav li { border-bottom: 1px solid var(--line); overflow: hidden; }
.mnav li a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; font-size: clamp(26px, 8vw, 40px); font-weight: 780; letter-spacing: -.02em; transform: translateY(100%); transition: transform .7s var(--ease-out); }
.mnav.on li a { transform: none; }
.mnav li:nth-child(2) a { transition-delay: .04s; } .mnav li:nth-child(3) a { transition-delay: .08s; } .mnav li:nth-child(4) a { transition-delay: .12s; } .mnav li:nth-child(5) a { transition-delay: .16s; } .mnav li:nth-child(6) a { transition-delay: .2s; } .mnav li:nth-child(7) a { transition-delay: .24s; }
.mnav li a small { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.mnav li a[aria-current="page"] { color: var(--accent); }
.mnav .foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }

/* ---------- keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; letter-spacing: normal; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes breathe { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.55); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes marq { to { transform: translateX(-50%); } }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1180px) {
  .topnav a { padding: 0 10px; letter-spacing: .1em; }
  .idx a { grid-template-columns: 54px 2fr 1.3fr 1.2fr 30px; }
  .idx a .st { display: none; }
}

@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  .home .lnav, .home .hhead .vrule { display: none; }
  .home .hhead { padding: 14px var(--pad) 0; }
  .home .hhead .contrast { margin-left: auto; }
  .home .hero { flex-direction: column; align-items: stretch; }
  .home .hero-art.home-art { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; order: 2; margin-top: 10px; container-type: normal; }
  .home .hero-art.home-art .pic { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .home .hero-art.home-art img { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 22%, #000 46%); mask-image: linear-gradient(90deg, transparent 0, transparent 22%, #000 46%); }
  .home .hcopy { width: 100%; padding: 34px var(--pad) 6px; }
  .home h1 { font-size: clamp(36px, 10.5vw, 64px); }
  .home .band { grid-template-columns: 1fr 1fr; gap: 18px 0; padding: 20px var(--pad); }
  .home .band .pl { padding: 0 12px; }
  .home .band .pl:nth-child(odd) { border-left: 0; padding-left: 0; }
  .home .chips { margin-top: 0; }
  :root { --u: 1.6vw; }
  .topbar { grid-template-columns: 1fr auto auto; align-items: center; padding-top: 14px; }
  .topnav { display: none; }
  .topbar .brand { width: 170px; }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink); }
  .menu-btn svg { width: 20px; height: 20px; }
  .contrast { height: 44px; padding: 0 14px; letter-spacing: .14em; font-size: 10px; }
  .contrast .lbl { display: none; }
  .contrast { width: 44px; padding: 0; justify-content: center; }

  .screen { min-height: 0; overflow: visible; }
  .screen > .stage { display: flex; flex-direction: column; }
  .lhead { position: relative; padding: 16px var(--pad) 0; align-items: center; flex-wrap: wrap; }
  .lhead .brand { width: 200px; }
  .lhead .tagline { order: 5; width: 100%; margin: 14px 0 0; font-size: 10.5px; letter-spacing: .26em; }
  .lhead .vrule { display: none; }
  .lhead .contrast { margin: 0 0 0 auto; }
  .lhead .menu-btn { margin-left: 10px; }
  .edge, .rule, .cursor-xy { display: none; }

  .hero-art { position: relative; inset: auto; height: 46vw; min-height: 240px; margin: 10px 0 0; order: 2; }
  .hero-art img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); object-position: 85% 85%; }
  .fan { position: relative; top: auto; transform: none; margin: 8px 0 10px; order: 3; }
  .landing .fan, .pj .fan, .pd .fan, .lr .fan { top: auto; }
  /* phones: tabs sit in one straight column; titles may wrap to two lines instead of shrinking */
  .fan .tab .n { width: 18%; font-size: 15px; }
  .fan .tab .bar { margin: 14px 0; }
  .fan .tab .tx { padding: 0 10px 0 11px; }
  .fan .tab b { white-space: normal; font-size: 11px; letter-spacing: .07em; line-height: 1.22; }
  .fan .tab small { font-size: 11.5px; margin-top: .25em; }
  .fan .tab:hover { transform: none; }
  .fan .tab small { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; }
  .fan .hub-btn.ring { font-size: 10px; }
  .dz-row h3 br, .dz-feat h3 br { display: none; }
  .home .acts .btn { flex: 1 1 100%; justify-content: center; }
  .footbar .explore { padding-top: 20px; }
  .titleblock { grid-template-columns: 1fr; text-align: center; font-size: 10px; }
  .titleblock .mid { border: 0; margin: 0; padding: 4px 0; order: 2; }
  .titleblock > * { padding: 8px 0; }
  .landing .titleblock { margin: 0; }
  .landing .footbar { padding: 0 var(--pad); }

  .pj-intro { position: relative; left: auto; top: auto; width: auto; padding: 0 var(--pad); order: 1; text-align: left; font-size: 16px; margin-top: 18px; }
  .pj .hero-art { display: none; }
  .pj.has-cat .pj-intro { display: none; }
  .cat-panel { position: relative; left: auto; right: auto; top: auto; bottom: auto; order: 4; display: none; padding: 0 var(--pad) 30px; transform: none; }
  .cat-panel.on { display: flex; }
  .cat-track { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; overflow: visible; gap: 22px 14px; }
  .pcard { height: auto; }
  .pcard .cap { height: auto; padding-bottom: 4px; }
  .pcard .cap h3 { white-space: normal; font-size: 15px; }
  .pcard .cap span { white-space: normal; }
  .pcard .ph { height: auto; width: 100%; aspect-ratio: 4/3; }
  .pcard .ov { display: none; }
  .cat-panel .ctrl .sq-btn.scroll { display: none; }

  .pd .lcol { position: relative; left: auto; top: auto; width: auto; padding: 18px var(--pad) 0; order: 1; }
  .frame { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 18px var(--pad) 0; aspect-ratio: 16/10; order: 2; }
  .fbtns { position: relative; left: auto; right: auto; bottom: auto; margin: 12px var(--pad) 0; order: 3; grid-template-columns: 1fr auto auto; }
  .fbtns .fbtn.mid { display: none; }
  .pd .fan { order: 4; }

  .ab .stage, .ct .stage { grid-template-columns: 1fr; padding: 24px var(--pad); }
  .ab .rcol { order: -1; grid-template-columns: 1fr; padding-right: 0; }
  .ab .hero-art.ab-villa { display: none; }
  .ab .portrait { grid-row: auto; max-width: 420px; }
  .ab .row { grid-template-columns: 64px 1fr; gap: 14px; }
  .ab .lt { font-size: 34px; }
  .ab .card h3 { font-size: 16px; } .ab .card .k { font-size: 10px; } .ab .card p { font-size: 14px; }
  .ab .card { padding: 12px 16px; }

  .jy .stage { grid-template-columns: 1fr; }
  .jy .side { border-right: 0; padding: 20px var(--pad) 0; display: grid; grid-template-columns: 130px 1fr; gap: 0 18px; align-items: start; }
  .jy .side .pf { grid-row: span 5; align-self: start; }
  .jy .side .ph { aspect-ratio: 3/4; }
  .stage-g .d { stroke-dashoffset: 0 !important; animation: none !important; }
  .stage-g .a, .stage-g .f { opacity: 1 !important; } .stage-g .f { opacity: .16 !important; }
  .jy .side .sketch { display: none; }
  .jy .main { padding: 26px var(--pad) 0; }
  .tl { margin-top: 20px; min-height: 0; flex: none; }
  .jart { width: 100%; container-type: normal; }
  .art-head { position: static; width: auto; }
  .art-head .eyebrow { font-size: 11px; }
  .jy .art-head h1 { font-size: clamp(30px, 8.4vw, 44px); margin-top: 12px; }
  .jy .art-head .sub { font-size: 15px; margin-top: 12px; }
  .jy .art-head .sub::after { width: 46px; margin-top: 14px; }
  .art { margin: 14px calc(var(--pad) * -1) 0; overflow-x: auto; scrollbar-width: none; }
  .art::-webkit-scrollbar { display: none; }
  .art-img { width: 640px; aspect-ratio: auto; height: 251px; }
  .art .ring { width: 16px; height: 16px; }
  .art .patch { box-shadow: 0 0 10px 9px var(--paper); }
  .art-img::after { box-shadow: inset 0 0 14px 8px var(--bg); }
  .tl svg.rise, .tl .node { display: none; }
  .stages { position: relative; height: auto; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stages .st { clip-path: none; height: 90px; }
  .chapters { grid-template-columns: 1fr 1fr; gap: 0; }
  .chap { border-left: 0; border-top: 1px solid var(--line-2); padding: 14px 12px; min-height: 0; }
  .chap:first-child { padding-left: 12px; }
  .chap .n { font-size: 22px; } .chap h3 { font-size: 15px; } .chap .org, .chap .yr { font-size: 12px; }
  .msg { grid-template-columns: 1fr; gap: 10px; }
  .msg .q { display: none; }
  .msg blockquote { font-size: 19px; }
  .msg .sign { height: 44px; }

  .preview { position: relative; left: auto; right: auto; top: auto; bottom: auto; padding: 0 var(--pad) 30px; order: 4; }
  .big-no { display: none; }

  .ct .pframe { justify-self: start; max-width: 440px; }
  .ct .pframe figcaption { left: 12px; }
}

@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .cta { grid-template-columns: 1fr; }
  .site-foot .cols { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .site-foot .cols > :first-child { grid-column: 1 / -1; }
  .site-foot .brand { width: 200px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .svc { grid-template-columns: 1fr; }
  .pd-body, .article { grid-template-columns: 1fr; }
  .facts-dl, .article aside { position: relative; top: auto; }
  .gal { columns: 2; column-gap: 10px; }
  .gal a { margin-bottom: 10px; }
  .pn { grid-template-columns: 1fr; }
  .pn a + a { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .idx a { grid-template-columns: 40px 1fr 30px; padding: 16px 2px; }
  .idx a .dim { display: none; }
  .idx a .t small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
  .search { margin-left: 0; width: 100%; }
  .form { grid-template-columns: 1fr; }
  .ct .channels { grid-template-columns: 1fr; }
  .ct .channels a:nth-child(odd) { border-right: 0; padding-right: 0; }
  .ct .channels a:nth-child(even) { padding-left: 0; }
  .works-strip { grid-auto-columns: 78vw; }
  .story section { grid-template-columns: 1fr; gap: 8px; }
  .lb figure { margin: 0 10px; }
  .lb .bar { padding: 12px; font-size: 10px; letter-spacing: .1em; }
  .lb .cap { padding: 12px 12px 80px; font-size: 10px; letter-spacing: .08em; }
  .lb .nav { top: auto; bottom: 14px; transform: none; }
}
@media (min-width: 861px) { .idx a .t small { display: none; } }

@media (hover: none) { .cur { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- placeholder for projects whose visuals are still to come ---------- */
.pvis { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: var(--accent); background: color-mix(in srgb, var(--paper) 55%, var(--bg)); }
.pvis svg { width: min(46%, 220px); height: auto; opacity: .75; }
.pvis b { font-size: max(10px, calc(var(--u) * .72)); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); font-weight: 750; margin-top: 4px; }
.pvis small { font-size: max(9px, calc(var(--u) * .6)); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ph.empty { position: relative; }
.ph.empty::after { display: none; }
.frame.empty .slides { cursor: default; }
.frame.empty .count { color: var(--ink-3); text-shadow: none; }
.frame .pv-empty .pvis { background: transparent; }
.frame .pv-empty .pvis::before { content: ""; position: absolute; inset: calc(var(--u) * 1); border: 1px solid var(--line); pointer-events: none; }

/* ---------- approved inside page: filled buttons ---------- */
html:not([data-theme="dark"]) .pd .fbtn { background: var(--paper); border-color: var(--ink); color: var(--ink); }
html:not([data-theme="dark"]) .pd .fbtn.mid { background: var(--sage); }
html:not([data-theme="dark"]) .pd .fbtn:hover, html:not([data-theme="dark"]) .pd .fbtn.on { background: var(--ink); color: var(--bg); }

/* ---------- approved Project Dossier ---------- */
.dossier { border-top: 2px solid var(--ink); position: relative; overflow: hidden; }
.dossier::before, .dossier::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.dossier::before { width: 34vw; height: 34vw; right: -6vw; top: -3vw; }
.dossier::after { width: 26vw; height: 26vw; right: -2vw; top: 1vw; }
.dossier .wrap { position: relative; z-index: 1; }
.dz-head { position: relative; padding-bottom: clamp(26px, 3vw, 44px); border-bottom: 1px solid var(--line-2); }
.dz-head .eyebrow { display: inline-flex; align-items: center; gap: 14px; }
.dz-head .eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--accent); }
.dz-no { position: absolute; right: 0; top: 4px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.dz-head h2 { margin: clamp(16px, 1.6vw, 26px) 0 0; font-family: var(--serif); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 4.4vw, 74px); line-height: 1; letter-spacing: .005em; max-width: 18em; }
.dz-meta { margin: 14px 0 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.dz-tag { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.6vw, 24px); color: var(--accent); }
.dossier h3 { margin: 0; display: flex; gap: 12px; align-items: baseline; font-size: clamp(14px, 1.15vw, 18px); letter-spacing: .14em; text-transform: uppercase; font-weight: 800; line-height: 1.2; }
.dossier h3 .no { font-size: 11px; letter-spacing: .1em; color: var(--accent); font-weight: 700; white-space: nowrap; }
.dz-row { display: grid; grid-template-columns: minmax(200px, 26%) 1fr; gap: clamp(20px, 3vw, 54px); padding: clamp(24px, 2.6vw, 40px) 0; border-bottom: 1px solid var(--line-2); }
.dz-row .tx { max-width: 46em; }
.dz-row p { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.45vw, 23px); font-weight: 500; line-height: 1.55; color: var(--ink); }
.dz-row p.note { margin-top: 10px; font-size: clamp(14px, 1vw, 16px); color: var(--accent); }
.dz-feat { padding: clamp(26px, 2.8vw, 44px) 0; border-bottom: 1px solid var(--line-2); }
.dz-feat .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 22px); margin-top: clamp(16px, 1.6vw, 24px); }
.dz-feat .card { border: 1px solid var(--ink); padding: clamp(16px, 1.6vw, 26px); background: var(--paper); min-height: 120px; }
.dz-feat .card:nth-child(2) { background: var(--sage); }
.dz-feat .card .n { display: block; font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.dz-feat .card b { display: block; margin-top: 12px; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; line-height: 1.35; }
.dz-feat .card p { margin: 8px 0 0; font-family: var(--serif); font-size: 16px; line-height: 1.45; color: var(--ink-2); }
html[data-theme="dark"] .dz-feat .card { background: color-mix(in srgb, var(--paper) 70%, var(--bg)); border-color: var(--line-2); }
html[data-theme="dark"] .dz-feat .card:nth-child(2) { background: var(--sage); }
.dz-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 70px); padding: clamp(26px, 2.8vw, 44px) 0; border-bottom: 2px solid var(--ink-3); }
.dz-pair dl { margin: 16px 0 0; display: grid; gap: 0; }
.dz-pair dl div { display: grid; grid-template-columns: minmax(120px, 36%) 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.dz-pair dt { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent); padding-top: 4px; }
.dz-pair dd { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.45; }
.dz-end { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 22px; }
.dz-end .fbtn { display: inline-flex; align-items: center; height: 38px; background: var(--sage); border-color: var(--ink); color: var(--ink); font-size: 10.5px; }
.dz-end .fbtn:hover { background: var(--ink); color: var(--bg); }
.dz-end span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; }
@media (max-width: 860px) {
  .dz-row { grid-template-columns: 1fr; gap: 12px; }
  .dz-feat .cards, .dz-pair { grid-template-columns: 1fr; }
  .dz-no { position: static; display: block; margin-top: 8px; }
  .dossier::before, .dossier::after { display: none; }
  .dz-end { flex-direction: column; align-items: flex-start; }
}

/* ---------- My Journey: approved Navy & Cream artwork (full-colour panorama) ---------- */
/* the approved 4K page is used directly; this crop shows the same band as the original strip */
.art-img > img.navy { height: 192%; top: -18.333%; }
html:not([data-theme="dark"]) .art-img > img.navy { filter: none; mix-blend-mode: darken; }
html:not([data-theme="dark"]) .jart { --paper: #F5F0E7; }
html:not([data-theme="dark"]) .chap.on, html:not([data-theme="dark"]) .chap:hover { background: var(--sage); color: var(--ink); }
html:not([data-theme="dark"]) .chap.on .n, html:not([data-theme="dark"]) .chap:hover .n { color: var(--ink); }
html:not([data-theme="dark"]) .chap.on .yr, html:not([data-theme="dark"]) .chap:hover .yr { color: var(--ink-2); }
.chap .n { font-family: var(--serif); font-weight: 600; }
/* portrait sits edge to edge in the left column, without a frame */
.jy .side .pf { border: 0; padding: 0; margin-left: calc(-1 * var(--pad)); margin-right: calc(var(--u) * -1.6); }
.jy .side .pf .crn { display: none; }
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  .jy .side .pf { margin: 0; }
}
/* tablets: the journey artwork fills the column instead of the fixed phone strip */
@media (min-width: 700px) and (max-width: 1300px) {
  .art-img { width: 100%; height: auto; aspect-ratio: 2.551; }
}
/* About, dark contrast: the same line villa as light mode, drawn light on navy */
html[data-theme="dark"] .ab .hero-art.ab-villa .art-light { opacity: 1; filter: url(#duo-d); mix-blend-mode: lighten; }
html[data-theme="dark"] .ab .hero-art.ab-villa .art-dark { opacity: 0; }
.dz-head .eyebrow::after { display: none; }
.dz-row p + p { margin-top: 12px; }
.dz-row p.lead { font-style: italic; color: var(--accent); font-size: clamp(19px, 1.55vw, 25px); margin-bottom: 4px; }

/* ---------- BAIG Learn (approved Navy & Cream design) ---------- */
.ln .wrap { padding-left: var(--pad); padding-right: var(--pad); }
.ln .kick { display: block; font-size: max(12px, calc(var(--u) * .95)); letter-spacing: .3em; font-weight: 750; text-transform: uppercase; }
.ln .rule { position: static; display: block; width: 96px; height: 5px; background: var(--sage); margin: 16px 0 22px; }
html[data-theme="dark"] .ln .rule { background: var(--accent); }
.ln h1, .ln h2 { font-family: Georgia, "Times New Roman", var(--serif); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.ln-top { position: relative; }
.ln-hero { position: relative; display: grid; grid-template-columns: 47% 1fr; min-height: clamp(380px, 34vw, 560px); align-items: center; }
.ln-hero .copy { position: relative; z-index: 3; padding: 20px 0; }
.ln-hero h1 { font-size: clamp(36px, 3.9vw, 62px); line-height: 1.04; margin: 0 0 18px; white-space: nowrap; }
.ln-hero p { font-size: clamp(16px, 1.45vw, 22px); line-height: 1.45; max-width: 30em; margin: 0; color: var(--ink); }
.ln-hero .hero-art { position: absolute; inset: -90px 0 -30px 27%; z-index: 1; }
.ln-hero .hero-art .pic { right: 0; bottom: 0; top: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.ln-hero .hero-art img { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 26%, #000 46%); mask-image: linear-gradient(90deg, transparent 0, transparent 26%, #000 46%); }
.ln-hero .hero-art .art-light.colour { filter: none; }
html[data-theme="dark"] .ln-hero .hero-art .art-light.colour { opacity: 1; filter: url(#duo-d); }
.ln-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.2vw, 18px); position: relative; z-index: 3; padding-bottom: clamp(36px, 4vw, 60px); }
.ln-topic { position: relative; display: block; border: 1px solid var(--ink); background: var(--paper); padding: clamp(18px, 1.8vw, 28px) clamp(18px, 1.8vw, 28px) 54px; transition: transform .4s var(--ease-out), box-shadow .4s; }
.ln-topic:nth-child(even) { background: var(--sage); }
.ln-topic .ic { width: 52px; height: 52px; color: var(--ink); }
.ln-topic h3 { margin: 14px 0 10px; font-size: clamp(20px, 1.85vw, 30px); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.ln-topic p { margin: 0; font-size: clamp(14px, 1.05vw, 16.5px); line-height: 1.45; color: var(--ink); }
.ln .go { position: absolute; right: 18px; bottom: 16px; color: var(--ink); transition: transform .4s var(--ease-out); }
.ln a:hover .go { transform: translateX(5px); }
.ln-topic:hover, .ln-res:hover, .ln-art:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(17,50,77,.45); }
.ln-band { background: var(--paper); padding: clamp(36px, 4vw, 64px) 0; }
html[data-theme="dark"] .ln-band { background: color-mix(in srgb, var(--paper) 60%, var(--bg)); }
.ln-band h2, .ln-sec h2 { font-size: clamp(26px, 2.7vw, 44px); line-height: 1.15; margin: 0 0 clamp(22px, 2.4vw, 36px); }
.ln-arts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.2vw, 18px); }
.ln-art { position: relative; display: block; border: 1px solid var(--ink); background: var(--bg); padding-bottom: 50px; transition: transform .4s var(--ease-out), box-shadow .4s; }
.ln-art .pic { aspect-ratio: 1.6; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.ln-art .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-out); }
html[data-theme="dark"] .ln-art .pic img { filter: url(#duo-d); }
.ln-art:hover .pic img { transform: scale(1.05); }
.ln-art h3 { margin: 16px 22px 0; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.22; font-weight: 800; }
.ln-sec { padding: clamp(36px, 4vw, 64px) 0 clamp(20px, 2vw, 30px); }
.ln-ress { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.2vw, 18px); }
.ln-res { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: clamp(16px, 2vw, 30px); border: 1px solid var(--ink); background: var(--paper); padding: clamp(20px, 2vw, 30px) 50px clamp(20px, 2vw, 30px) clamp(18px, 2vw, 28px); transition: transform .4s var(--ease-out), box-shadow .4s; }
.ln-res:nth-child(2) { background: var(--sage); }
.ln-res .ic { width: 64px; height: 64px; color: var(--ink); }
.ln-res .vr { width: 1px; align-self: stretch; background: var(--ink); opacity: .7; }
.ln-res h3 { margin: 0; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.2; font-weight: 750; }
.ln-cta { padding: clamp(20px, 3vw, 50px) 0 clamp(40px, 5vw, 80px); overflow: hidden; }
.ln-cta .wrap { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: clamp(20px, 3vw, 50px); }
.ln-cta .radial { width: clamp(150px, 18vw, 260px); height: auto; color: var(--ink); opacity: .8; margin-left: calc(-1 * var(--pad)); }
.ln-cta .vline { width: 1px; height: 150px; background: var(--ink); }
.ln-cta h2 { font-size: clamp(28px, 3.2vw, 52px); margin: 0 0 22px; }
.ln-cta .acts { display: flex; flex-wrap: wrap; gap: 16px; }
.btn.slate { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.slate::before { background: var(--ink); }
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  .ln-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 10px; }
  .ln-hero .hero-art { position: relative; inset: auto; aspect-ratio: 16 / 9; margin: -10px calc(-1 * var(--pad)) 0; }
  .ln-hero .hero-art .pic { position: absolute; inset: 0; width: 100%; height: 100%; }
  .ln-hero .hero-art img { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 22%, #000 46%); mask-image: linear-gradient(90deg, transparent 0, transparent 22%, #000 46%); }
  .ln-topics, .ln-arts { grid-template-columns: 1fr 1fr; }
  .ln-ress { grid-template-columns: 1fr; }
  .ln-cta .wrap { grid-template-columns: 1fr; }
  .ln-cta .radial, .ln-cta .vline { display: none; }
}
@media (max-width: 560px) {
  .ln-topics, .ln-arts { grid-template-columns: 1fr; }
}
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  .ln-hero h1 { white-space: normal; }
  .ln-hero .hero-art { inset: auto; }
  .ln-hero .hero-art .pic { top: 0; }
}

/* ---------- Contact (approved Navy & Cream design) ---------- */
.ctx .wrap { padding-left: var(--pad); padding-right: var(--pad); position: relative; z-index: 2; }
.ctx .kick { display: inline-flex; align-items: center; gap: 18px; font-size: max(13px, calc(var(--u) * 1.05)); letter-spacing: .14em; font-weight: 600; color: var(--accent); }
.ctx .kick::after { content: ""; width: 80px; height: 1px; background: var(--accent); }
.ct-top { position: relative; overflow: hidden; }
.ct-lines { position: absolute; color: var(--sage); pointer-events: none; z-index: 1; }
html[data-theme="dark"] .ct-lines { color: var(--line-2); }
.ct-lines.a { right: 0; top: 70px; width: min(56vw, 860px); height: auto; }
.ct-lines.b { left: 0; bottom: 0; width: min(26vw, 380px); height: auto; }
.ct-hero { padding-top: clamp(30px, 4vw, 70px); padding-bottom: clamp(30px, 3vw, 50px); }
.ct-hero h1 { margin: clamp(18px, 2vw, 30px) 0 clamp(28px, 3.4vw, 54px); font-size: clamp(44px, 6vw, 104px); line-height: .95; font-weight: 800; letter-spacing: -.035em; max-width: 9.6em; color: var(--ink); }
.ct-chs { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.6vw, 24px); margin-bottom: clamp(26px, 2.8vw, 44px); }
.ct-ch { display: flex; align-items: center; gap: 18px; border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px 26px 14px 16px; background: color-mix(in srgb, var(--bg) 70%, var(--paper)); transition: transform .4s var(--ease-out), box-shadow .4s; }
.ct-ch:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(17,50,77,.5); }
.ct-ch .ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 8px; background: var(--sage); color: var(--ink); }
.ct-ch .ic svg { width: 30px; height: 30px; }
.ct-ch .vr, .ct-card .vr { width: 1px; align-self: stretch; background: var(--ink); opacity: .6; }
.ct-ch small { display: block; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.ct-ch b { display: block; margin-top: 4px; font-size: clamp(16px, 1.35vw, 21px); font-weight: 600; color: var(--ink); }
.ct-types { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); }
.ct-type { display: flex; gap: clamp(20px, 2.2vw, 34px); text-align: left; border: 1px solid var(--line-2); border-radius: 10px; padding: clamp(18px, 1.8vw, 28px) clamp(18px, 2vw, 32px); background: color-mix(in srgb, var(--paper) 55%, var(--bg)); color: var(--ink); transition: transform .4s var(--ease-out), box-shadow .4s, border-color .3s; }
.ct-type i { flex: none; width: 4px; border-radius: 2px; background: #9DBA8E; }
.ct-type.slate i { background: var(--accent); }
.ct-type b { display: block; font-size: clamp(21px, 2.1vw, 34px); font-weight: 800; letter-spacing: -.015em; line-height: 1.1; }
.ct-type small { display: block; margin-top: 8px; font-size: clamp(14px, 1.15vw, 18px); line-height: 1.45; color: var(--ink-2); }
.ct-type:hover, .ct-type.on { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(17,50,77,.5); border-color: var(--ink); }
.ct-form { position: relative; padding: clamp(40px, 5vw, 80px) 0 clamp(50px, 6vw, 100px); overflow: hidden; }
.ct-form .wrap { display: grid; grid-template-columns: 37% 1fr; gap: clamp(30px, 4vw, 70px); align-items: start; }
.ct-form h2 { margin: 26px 0 26px; font-size: clamp(32px, 3.6vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.ct-form .copy p { font-size: clamp(16px, 1.45vw, 22px); line-height: 1.6; color: var(--ink-2); margin: 0; }
.ct-form .copy a b { color: var(--ink); }
.ct-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 22px; border: 1px solid var(--line-2); border-radius: 12px; padding: clamp(22px, 2.4vw, 38px); background: color-mix(in srgb, var(--paper) 62%, var(--bg)); }
.ct-card .full { grid-column: 1 / -1; }
.ct-card .f span { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.ct-card .f em { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--accent); margin-left: 8px; }
.ct-card input, .ct-card select, .ct-card textarea { width: 100%; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--bg); color: var(--ink); font: 500 16px var(--sans); padding: 14px 16px; outline: none; }
.ct-card textarea { min-height: 140px; resize: vertical; }
.ct-card input:focus, .ct-card select:focus, .ct-card textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.ct-card .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.ct-card .send { height: 56px; padding: 0 44px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 17px; font-weight: 700; transition: background .3s; }
.ct-card .send:hover { background: var(--accent); }
.ct-card .acts .vr { height: 24px; align-self: center; }
.ct-card .hint { font-size: 15px; color: var(--ink-2); }
.ct-card .alt { text-decoration: underline; color: var(--accent); font-size: 14px; margin-left: 6px; }
.ct-card .ok { display: none; width: 100%; font-weight: 700; color: var(--accent); }
.ct-card.sent .ok { display: block; }
.ct-foot { border-top: 1.5px solid var(--ink); padding: clamp(24px, 2.6vw, 40px) 0 clamp(30px, 3vw, 50px); margin: 0 var(--pad); }
.ct-foot .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 0; }
.ct-foot b { font-size: clamp(17px, 1.5vw, 22px); color: var(--ink); }
.ct-foot p { margin: 8px 0 18px; color: var(--ink-2); font-size: 14.5px; }
.ct-foot .soc { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-foot .soc a { border: 1.5px solid var(--ink); border-radius: 99px; padding: 9px 20px; font-size: 14.5px; font-weight: 600; color: var(--ink); transition: background .3s, color .3s; }
.ct-foot .soc a:hover { background: var(--ink); color: var(--bg); }
.ct-foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; color: var(--ink); align-self: start; }
.ct-foot nav a:hover { color: var(--accent); }
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  .ct-lines.a { opacity: .5; width: 90vw; }
  .ct-types, .ct-form .wrap { grid-template-columns: 1fr; }
  .ct-card { grid-template-columns: 1fr; }
  .ct-ch { flex: 1 1 260px; }
}
.ln-pic { position: absolute; right: calc(-1 * var(--pad)); top: -70px; bottom: -20px; left: 40%; z-index: 1; display: flex; align-items: center; justify-content: flex-end; }
.ln-pic img { width: 100%; height: 100%; object-fit: contain; object-position: right center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
html[data-theme="dark"] .ln-pic img, html[data-theme="dark"] .ln-cta .plant { filter: url(#duo-d); }
.ln-cta .wrap { grid-template-columns: auto auto 1fr auto; }
.ln-cta .plant { width: clamp(160px, 18vw, 290px); height: auto; align-self: end; }
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  .ln-pic { position: relative; inset: auto; margin: 0 calc(-1 * var(--pad)); }
  .ln-pic img { height: auto; }
  .ln-cta .plant { display: none; }
}

/* ---------- one page background on every page (client, 20 Nov):
   the cream villa in light mode, the night villa for the dark-contrast version ---------- */
.hero-art .art-light.colour { filter: none !important; mix-blend-mode: normal; }
.hero-art .art-dark.night { filter: none !important; mix-blend-mode: normal; opacity: 0; }
html[data-theme="dark"] .hero-art .art-light.colour { opacity: 0 !important; }
html[data-theme="dark"] .hero-art .art-dark.night { opacity: 1 !important; }
.ct-top { isolation: isolate; }
.ct-top .hero-art.ct-art { inset: 40px 0 auto 30%; height: min(640px, 48vw); z-index: -1; }
.pj .hero-art { left: 47%; }
.lr .hero-art.faint { left: 44%; opacity: .45; }
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  .pj .hero-art, .lr .hero-art.faint { left: auto; }
}
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  /* keep the logo that is drawn into the background picture hidden on phones too */
  .hero-art img { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 24%, #000 46%); mask-image: linear-gradient(90deg, transparent 0, transparent 24%, #000 46%); }
  .ct-top .hero-art.ct-art { position: absolute; inset: 64px 0 auto 22%; height: 56vw; min-height: 0; margin: 0; }
}
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  /* phones: the same background picture on About and Projects too */
  .pj .hero-art, .ab .hero-art.ab-villa { display: block; position: relative; inset: auto; left: auto; height: 50vw; min-height: 0; margin: 0 calc(-1 * var(--pad)); order: -1; }
  .ab .hero-art.ab-villa img, .pj .hero-art img { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 24%, #000 46%); mask-image: linear-gradient(90deg, transparent 0, transparent 24%, #000 46%); }
}

/* ---------- logo 2.0 — approved visiting-card logo (23 Nov 2026) ---------- */
.logo-img { display: block; width: 100%; height: auto; }
.logo-img.logo-dk { display: none; }
html[data-theme="dark"] .logo-img.logo-lt { display: none; }
html[data-theme="dark"] .logo-img.logo-dk { display: block; }
/* header logo draws itself like the client's animation: B, A, I, G top-down, then the wordmark */
.topbar .brand .logo-img { animation: logoDraw 4.05s cubic-bezier(.45,0,.35,1) .15s both; }
.topbar .brand.replay .logo-img { animation-name: logoDraw2; }
@media (prefers-reduced-motion: reduce) { .topbar .brand .logo-img { animation: none; } }
@keyframes logoDraw {
  0% { clip-path: polygon(-1% -2%, 30.95% -2%, 30.95% -2%, -1% -2%, -1% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  2.47% { clip-path: polygon(-1% -2%, 30.95% -2%, 30.95% -2%, -1% -2%, -1% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  20.99% { clip-path: polygon(-1% -2%, 30.95% -2%, 30.95% 87.19%, -1% 87.19%, -1% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  21.0% { clip-path: polygon(-1% -2%, 60.44% -2%, 60.44% -2%, 30.95% -2%, 30.95% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  22.22% { clip-path: polygon(-1% -2%, 60.44% -2%, 60.44% -2%, 30.95% -2%, 30.95% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  40.74% { clip-path: polygon(-1% -2%, 60.44% -2%, 60.44% 87.19%, 30.95% 87.19%, 30.95% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  40.75% { clip-path: polygon(-1% -2%, 69.72% -2%, 69.72% -2%, 60.44% -2%, 60.44% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  43.21% { clip-path: polygon(-1% -2%, 69.72% -2%, 69.72% -2%, 60.44% -2%, 60.44% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  53.09% { clip-path: polygon(-1% -2%, 69.72% -2%, 69.72% 87.19%, 60.44% 87.19%, 60.44% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  53.1% { clip-path: polygon(-1% -2%, 101% -2%, 101% -2%, 69.72% -2%, 69.72% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  55.56% { clip-path: polygon(-1% -2%, 101% -2%, 101% -2%, 69.72% -2%, 69.72% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  74.07% { clip-path: polygon(-1% -2%, 101% -2%, 101% 87.19%, 69.72% 87.19%, 69.72% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  74.08% { clip-path: polygon(-1% -2%, 101% -2%, 101% 87.19%, 101% 87.19%, 101% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  75.31% { clip-path: polygon(-1% -2%, 101% -2%, 101% 87.19%, 101% 87.19%, 101% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  100% { clip-path: polygon(-1% -2%, 101% -2%, 101% 87.19%, 101% 87.19%, 101% 87.19%, 101% 87.19%, 101% 102%, -1% 102%); }
}
@keyframes logoDraw2 {
  0% { clip-path: polygon(-1% -2%, 30.95% -2%, 30.95% -2%, -1% -2%, -1% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  2.47% { clip-path: polygon(-1% -2%, 30.95% -2%, 30.95% -2%, -1% -2%, -1% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  20.99% { clip-path: polygon(-1% -2%, 30.95% -2%, 30.95% 87.19%, -1% 87.19%, -1% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  21.0% { clip-path: polygon(-1% -2%, 60.44% -2%, 60.44% -2%, 30.95% -2%, 30.95% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  22.22% { clip-path: polygon(-1% -2%, 60.44% -2%, 60.44% -2%, 30.95% -2%, 30.95% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  40.74% { clip-path: polygon(-1% -2%, 60.44% -2%, 60.44% 87.19%, 30.95% 87.19%, 30.95% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  40.75% { clip-path: polygon(-1% -2%, 69.72% -2%, 69.72% -2%, 60.44% -2%, 60.44% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  43.21% { clip-path: polygon(-1% -2%, 69.72% -2%, 69.72% -2%, 60.44% -2%, 60.44% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  53.09% { clip-path: polygon(-1% -2%, 69.72% -2%, 69.72% 87.19%, 60.44% 87.19%, 60.44% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  53.1% { clip-path: polygon(-1% -2%, 101% -2%, 101% -2%, 69.72% -2%, 69.72% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  55.56% { clip-path: polygon(-1% -2%, 101% -2%, 101% -2%, 69.72% -2%, 69.72% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  74.07% { clip-path: polygon(-1% -2%, 101% -2%, 101% 87.19%, 69.72% 87.19%, 69.72% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  74.08% { clip-path: polygon(-1% -2%, 101% -2%, 101% 87.19%, 101% 87.19%, 101% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  75.31% { clip-path: polygon(-1% -2%, 101% -2%, 101% 87.19%, 101% 87.19%, 101% 87.19%, -1% 87.19%, -1% 102%, -1% 102%); }
  100% { clip-path: polygon(-1% -2%, 101% -2%, 101% 87.19%, 101% 87.19%, 101% 87.19%, 101% 87.19%, 101% 102%, -1% 102%); }
}

/* Copyright holders: bold + highlighted names (popup) — client request 23 Nov */
.frame .copy-note mark.own, .dz-pair .hi-copy mark.own { background: var(--sage); color: var(--ink); font-weight: 800; padding: 1px 6px; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Project credits: "My role" + "Copyright" as highlighted boxes, like the client's Word file */
.dz-pair dl div.hi { display: block; margin-top: 14px; padding: 14px 18px 16px; border-top: 0; border-left: 4px solid var(--accent); background: var(--paper); }
.dz-pair dl div.hi + div:not(.hi) { margin-top: 14px; }
.dz-pair div.hi dt { padding: 0 0 6px; font-size: 11px; font-weight: 800; color: var(--accent); }
.dz-pair div.hi dd { font-size: clamp(19px, 1.4vw, 22px); font-weight: 600; -webkit-text-stroke: .45px currentColor; line-height: 1.35; color: var(--ink); }
.dz-pair .hi-copy mark.own { background: var(--sage); }

/* Journey — dark contrast uses a real night version of the artwork (made from the same picture):
   sketches 01–04 as light lines on navy, finished buildings 05–06 in their own colours */
.art-img > img.night { display: none; }
html[data-theme="dark"] .art-img > img.navy:not(.night) { display: none; }
html[data-theme="dark"] .art-img > img.night { display: block; filter: none; mix-blend-mode: normal; }
/* portrait: settle the warm daylight photo into the navy page */
html[data-theme="dark"] .jy .side .ph img { filter: brightness(.92) saturate(.94); }
html[data-theme="dark"] .jy .side .ph::after { display: block; border: 0; background: linear-gradient(to bottom, transparent 60%, color-mix(in srgb, var(--bg) 88%, transparent)); }
/* chapter cards: a calm navy panel with a slate top line instead of a bright block */
html[data-theme="dark"] .chap.on, html[data-theme="dark"] .chap:hover { background: color-mix(in srgb, var(--accent) 20%, var(--bg)); color: var(--ink); box-shadow: inset 0 3px 0 var(--accent); }
html[data-theme="dark"] .chap.on .n, html[data-theme="dark"] .chap:hover .n { color: var(--accent); }
html[data-theme="dark"] .chap.on .yr, html[data-theme="dark"] .chap:hover .yr { color: var(--ink-2); }

/* ---------- phones (23 Nov 2026): fixes from the mobile check ---------- */
/* a page must never slide sideways on a phone (clip = no extra scroll box, sticky still works) */
html, body { overflow-x: clip; }
.idx a .th { display: none; }
@media (hover: none) { .hov-only { display: none; } }
@media (hover: hover) { .tap-only { display: none; } }
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  /* home: the four principle icons get the same width so their text lines up */
  .home .band .pl > .gl { flex: 0 0 34px; width: 34px; }
  /* Learn: the intro text was wider than the screen and got cut off */
  .ln-hero { grid-template-columns: minmax(0, 1fr); }
  /* Projects list: the top picture no longer pokes past the screen edge */
  .pj .hero-art { margin: 0; }
  /* Project pages: Previous / Next side by side, Reserved copyrights full width under them */
  .fbtns { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fbtns .fbtn[data-copyright] { grid-column: 1 / -1; order: 2; }
  /* the small strip under the first screen repeats the real footer — not needed on phones */
  body:has(.site-foot) .footbar { display: none; }
  /* Contact: the picture sits above the heading instead of behind the text */
  .ct-top .hero-art.ct-art { position: relative; inset: auto; height: 50vw; min-height: 0; margin: 0; z-index: 0; }
}
@media (max-width: 860px) {
  /* Learn articles: title and text first, the details table after them */
  .article aside { order: 2; }
  /* footer links: easier to tap */
  .site-foot li a { display: inline-block; padding: 6px 0; }
  /* Projects list: phones cannot hover, so every row shows its photo */
  .idx a { grid-template-columns: 76px minmax(0, 1fr) 20px; gap: 14px; padding: 12px 2px; }
  .idx a .no { display: none; }
  .idx a .th { display: block; width: 76px; aspect-ratio: 4 / 3; object-fit: cover; background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
}

/* ---------- client requests 23 Nov, 5:42 pm ---------- */
/* "My role" in its own colour (Sage), Copyright stays Beige */
.dz-pair dl div.hi-role { background: var(--sage); border-left-color: var(--ink); }
.dz-pair div.hi-role dt { color: var(--ink); opacity: .78; }
html[data-theme="dark"] .dz-pair dl div.hi-role { background: color-mix(in srgb, var(--accent) 30%, var(--bg)); border-left-color: var(--ink); }
html[data-theme="dark"] .dz-pair div.hi-role dt { color: var(--ink); }
/* gallery stops at the last image: a note + "Next project →" button */
.frame .end-note { position: absolute; z-index: 4; right: calc(var(--u) * 1.4); top: calc(var(--u) * 1.1); max-width: min(72%, 560px); display: flex; align-items: center; gap: 12px; padding: 9px 16px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 600; box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .4s var(--ease), transform .5s var(--ease-out), visibility 0s .5s, background .3s; }
.frame .end-note.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.frame .end-note b { flex: none; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .72; }
.frame .end-note span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame .end-note:hover { background: var(--accent); color: var(--on-accent); }
.pd .fbtns .fbtn.go, html:not([data-theme="dark"]) .pd .fbtns .fbtn.go { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pd .fbtns .fbtn:disabled { opacity: .4; cursor: default; pointer-events: none; }
.lb .nav:disabled { opacity: .25; pointer-events: none; }
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  .frame .end-note { left: 10px; right: 10px; top: auto; bottom: 10px; max-width: none; font-size: 12px; padding: 8px 12px; }
}
.frame:has(.copy-note.on) .end-note { opacity: 0; visibility: hidden; }

/* Collaborate enquiry: let columns and controls fit narrow phones. */
.collab-enquiry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(40px, 6vw, 110px);
}
.collab-enquiry > *, .collab-enquiry .field { min-width: 0; }
.collab-enquiry .field input,
.collab-enquiry .field select,
.collab-enquiry .field textarea { min-width: 0; max-width: 100%; }
.collab-enquiry .hint, .collab-enquiry .ok { overflow-wrap: anywhere; }

/* Consistent, readable initials for the four home-page principles. */
.home .band .principle-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 48px;
  font-family: var(--sans);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

/* A compact fifth enquiry option, aligned with the contact cards. */
.ct-type.ct-other {
  width: calc((100% - clamp(14px, 1.6vw, 24px)) / 2);
  margin: 18px 0 0 auto;
  padding: 16px 22px;
  gap: 20px;
  min-width: 0;
}
.ct-type.ct-other b { font-size: 17px; }
.ct-type.ct-other small { margin-top: 5px; font-size: 14px; }

/* Empty concepts category: a deliberate, useful preview rather than an empty gallery. */
.concept-panel .concept-note {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(22px, 3vw, 48px);
  margin-top: 20px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--paper) 50%, var(--bg));
}
.concept-drawing { width: clamp(120px, 15vw, 220px); max-width: 100%; margin-bottom: 20px; color: var(--accent); }
.concept-drawing svg { display: block; width: 100%; height: auto; }
.concept-note h3 { font-size: clamp(26px, 3vw, 44px); line-height: 1.1; margin: 12px 0; }
.concept-note p { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 32em; margin: 0 0 22px; }
.concept-link { font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--accent); padding-bottom: 5px; }
.concept-index-note { padding: 26px; border: 1px solid var(--line-2); background: var(--paper); }
.concept-index-note[hidden] { display: none; }
.concept-index-note b { font-size: 20px; }
.concept-index-note p { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin-bottom: 0; }
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  .ct-type.ct-other { width: 100%; }
  .concept-panel .concept-note { padding: 24px; }
}

/* Give the homepage principles room to read on narrow phones. */
@media (max-width: 480px) {
  .home .band { grid-template-columns: 1fr; gap: 18px; }
  .home .band .pl { min-width: 0; padding: 0; border-left: 0; gap: 18px; }
  .home .band .pl > div { min-width: 0; }
  .home .band .principle-initial { flex: 0 0 34px; }
}

/* Match the framed gallery's final-image link in the enlarged view. */
.lb-end-note { position: absolute; z-index: 2; top: 12px; right: 12px; max-width: min(75%, 650px); display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: #11324d; color: #f6f3ea; border: 1px solid rgba(246,243,234,.35); box-shadow: 0 6px 24px rgba(0,0,0,.2); font-size: 14px; line-height: 1.4; font-weight: 600; }
.lb-end-note[hidden] { display: none; }
.lb-end-note b { flex: none; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.lb-end-note span { min-width: 0; overflow-wrap: anywhere; }
.lb-end-note:hover, .lb-end-note:focus-visible { background: #6b7aa1; color: #fff; }
.lb-end-note:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) {
  .lb-end-note { top: 8px; right: 8px; left: 8px; max-width: none; padding: 10px 12px; gap: 4px; flex-direction: column; align-items: flex-start; font-size: 13px; }
  .lb-end-note b { font-size: 11px; }
}

/* About (client 26 Nov): green-coat portrait in the first screen; "Four letters" section moved below it */
.ab .stage.has-portrait { grid-template-columns: auto 1fr; }
/* client 26 Nov: intro text stops before the villa drawing (the drawing fills the right ~45% of its box) */
.ab .stage.has-portrait .rcol { padding-right: calc(45% + 70px); }
.ab .lcol .portrait { margin: 0; height: min(calc(100svh - var(--u) * 14), 700px); width: auto; aspect-ratio: 3 / 4; background: var(--bg); }
.ab .lcol .portrait .ph { height: 100%; }
.ab .lcol .portrait img { position: absolute; inset: 0; object-position: 50% 18%; }
.ab .rcol h1 { margin: 0; font-family: var(--serif); font-size: max(28px, calc(var(--u) * 2.9)); line-height: 1.05; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.ab .rcol h1::after, .ab h2.four::after { content: ""; display: block; width: calc(var(--u) * 3.4); height: 3px; margin-top: calc(var(--u) * .9); background: var(--sage); }
.ab h2.four { margin: 0 0 calc(var(--u) * 2.4); font-family: var(--serif); font-size: max(22px, calc(var(--u) * 2.4)); line-height: 1.12; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
/* client 26 Nov: B, A, I, G stacked one under the other, as before */
.ab .ab-four .rows { grid-template-columns: 1fr; }
/* client 26 Nov: no empty right side / bottom gap: full-width rows, name + keywords left, text right */
#principles.ab-four { padding-bottom: calc(var(--u) * 2); }
.ab .ab-four .row { grid-template-columns: calc(var(--u) * 7.2) 1fr; min-height: calc(var(--u) * 7.2); }
.ab .ab-four .lt { font-size: calc(var(--u) * 4.4); }
.ab .ab-four .card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); column-gap: calc(var(--u) * 3); align-content: center; align-items: center; padding: calc(var(--u) * 1.3) calc(var(--u) * 2.4); }
.ab .ab-four .card h3 { grid-column: 1; grid-row: 1; align-self: end; font-size: max(20px, calc(var(--u) * 1.75)); }
.ab .ab-four .card .k { grid-column: 1; grid-row: 2; align-self: start; font-size: max(14px, calc(var(--u) * 1.02)); }
.ab .ab-four .card p { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; font-size: max(15px, calc(var(--u) * 1.12)); line-height: 1.55; }
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  .ab .stage.has-portrait { grid-template-columns: 1fr; }
  .ab .stage.has-portrait .lcol { order: -2; }
  .ab .stage.has-portrait .rcol { padding-right: 0; }
  .ab .lcol .portrait { height: auto; width: 100%; max-width: 420px; }
  .ab .ab-four .row { grid-template-columns: 64px 1fr; min-height: 0; }
  .ab .ab-four .lt { font-size: 34px; }
  .ab .ab-four .card { display: flex; align-items: stretch; padding: 12px 16px; }
  .ab .ab-four .card h3, .ab .ab-four .card .k, .ab .ab-four .card p { align-self: auto; }
  .ab .ab-four .card h3 { font-size: 17px; } .ab .ab-four .card .k { font-size: 12px; } .ab .ab-four .card p { font-size: 14px; margin-top: 4px; }
}
/* small phones: project highlights / credits read label-above-answer instead of two squeezed columns */
@media (max-width: 600px) {
  .dz-pair dl div { grid-template-columns: 1fr; gap: 3px; padding: 12px 0; }
  .dz-pair dt { padding-top: 0; }
}
/* ---------- phones (client 26 Nov): the compass becomes a vertical drafting line ----------
   hub on top, one line down the left, a node + short tick into each full-width tab */
.fan.list { --hub: 46px; position: relative; top: auto; transform: none; width: auto; height: auto; display: grid; gap: 10px; padding: 0 0 0 calc(var(--hub) + 10px); margin: 22px var(--pad) 30px; }
.fan.list::before { content: ""; position: absolute; left: calc(var(--hub) / 2); top: calc(var(--hub) / 2); bottom: var(--spine-b, 34px); width: 1px; background: var(--accent); }
.fan.list .hub-btn { position: relative; left: auto; top: auto; width: var(--hub); height: var(--hub); margin: 0 0 8px calc(-1 * (var(--hub) + 10px)); font-size: 10.5px; letter-spacing: .07em; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); }
.fan.list .hub-btn.ring { border: 0; }
.fan.list .tab { position: relative; min-height: 64px; padding: 11px 38px 11px 0; transform: none; }
.fan.list .tab::before { content: ""; position: absolute; box-sizing: border-box; width: 11px; height: 11px; left: calc(-1 * var(--hub) / 2 - 15.5px); top: 50%; margin-top: -5.5px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--bg); transition: background .4s, border-color .4s; }
.fan.list .tab .n::before { content: ""; position: absolute; left: calc(5.5px - var(--hub) / 2 - 10px); width: calc(var(--hub) / 2 + 4.5px); top: 50%; height: 1px; background: var(--accent); }
.fan.list .tab::after { content: "\2192"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 17px; line-height: 1; color: var(--accent); transition: color .4s, transform .4s; }
.fan.list .tab.on::before, .fan.list .tab.solid::before, .fan.list .tab.pt::before { background: var(--accent); border-color: var(--accent); }
.fan.list .tab.on::after, .fan.list .tab.solid::after, .fan.list .tab:hover::after, .fan.list .tab:focus-visible::after { color: var(--on-accent); }
.fan.list:has(.tab.on) .tab.solid:not(.on):not(.pt)::before { background: var(--bg); border-color: var(--ink); }
.fan.list:has(.tab.on) .tab.solid:not(.on):not(:hover):not(:focus-visible)::after { color: var(--accent); }
.fan.list .tab:active::after { transform: translate(4px, -50%); }
.fan.list .tab .n { width: 50px; font-size: 16px; }
.fan.list .tab .bar { margin: 4px 0; }
.fan.list .tab .tx { padding: 0 0 0 13px; flex: 1 1 auto; }
.fan.list .tab b { white-space: normal; font-size: 11.5px; letter-spacing: .08em; line-height: 1.25; }
.fan.list .tab small { font-size: 12.5px; line-height: 1.3; margin-top: 3px; white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.fan.list.pre .tab { opacity: 0; transform: translateX(-18px); }

/* ---------- Phones only (client 26 Nov, Option B): fixed bottom bar with the main pages ----------
   Always visible while scrolling; hidden only while a photo is open full screen (the lightbox sits above it).
   Approved palette only: light = Navy bar, Cream labels, Sage for the current page;
   dark contrast = the dark-navy surface, Cream labels, light Slate for the current page. Desktop unchanged. */
.bbar { display: none; }
@media (max-width: 960px), (orientation: portrait) and (max-width: 1100px), (max-aspect-ratio: 5/4) and (max-width: 1300px) {
  :root { --bbar-h: 62px; }
  body { padding-bottom: calc(var(--bbar-h) + env(safe-area-inset-bottom, 0px)); }
  .bbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--bbar-h) + env(safe-area-inset-bottom, 0px)); padding: 0 4px env(safe-area-inset-bottom, 0px);
    background: #11324D; color: #F7F4EB; border-top: 1px solid #11324D; box-shadow: 0 -8px 24px -12px rgba(17, 50, 77, .45); }
  .bbar a, .bbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    color: inherit; opacity: .6; font: 700 9.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
    background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; transition: opacity .3s, color .3s; }
  .bbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
  .bbar a[aria-current] { opacity: 1; color: #C1CFC0; }
  .bbar a[aria-current]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; background: #C1CFC0; }
  .bbar a[aria-current] svg { stroke-width: 1.9; }
  .bbar a:active, .bbar button:active { opacity: 1; }
  html[data-theme="dark"] .bbar { background: #183D5C; border-top-color: rgba(247, 244, 235, .26); box-shadow: none; }
  html[data-theme="dark"] .bbar a[aria-current] { color: #9FB0D6; }
  html[data-theme="dark"] .bbar a[aria-current]::before { background: #9FB0D6; }
  body:has(.lb.on) .bbar { display: none; }
  .chap-detail { bottom: calc(var(--pad) + var(--bbar-h) + env(safe-area-inset-bottom, 0px)); }
}

/* developer credit (26 Nov): small line at the very bottom of every footer, phones and desktop */
.madeby { margin: 0; padding: 16px 0 20px; border-top: 1px solid var(--line); text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.madeby b, .ct-foot .madeby b { display: inline; margin: 0; font-size: inherit; letter-spacing: inherit; line-height: inherit; color: var(--ink-2); font-weight: 700; }
.ct-foot .madeby { margin-top: 28px; font-size: 11px; letter-spacing: .14em; line-height: 1.6; color: var(--ink-3); }
@media (max-width: 600px) { .madeby, .ct-foot .madeby { font-size: 10px; letter-spacing: .06em; } }
