/* HPAD website v5: the landing page, minimal and photograph-led (Karan, 22 Oct 2026: "extremely less text",
   5 to 10% of a screen at most).
   HPAD: purple #493D51, maroon #563D40, grey #787570, ice #F4F9FD; Oxygen Mono (uppercase labels) + Kumbh Sans.
   Each place keeps its own brand: HPAC, HPAR, Monkey Forest, A Note of Zen, Museum of Dreams. */

@font-face { font-family: "Oxygen Mono"; src: url(../assets/fonts/oxygen-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kumbh Sans"; src: url(../assets/fonts/kumbh-sans.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../assets/fonts/Poppins-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../assets/fonts/Poppins-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(../assets/fonts/WorkSans-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(../assets/fonts/WorkSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url(../assets/fonts/switzer-light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Switzer"; src: url(../assets/fonts/switzer-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --purple: #493D51; --maroon: #563D40; --grey: #787570; --ice: #F4F9FD; --olive: #4E4A26;
  --aubergine: #2A2230;
  --plum: #563D40; --deep-plum: #45292B; --mauve: #7A7180; --cream: #F3EEE7;
  --forest: #568043; --canopy: #AAC779; --mf-cream: #F1EEDB;
  --zen-ink: #1F0D14; --zen-olive: #90956F; --zen-mist: #F0EFEF;
  --mod-maroon: #430F01; --mod-olive: #736A50; --mod-paper: #FDFBF7;

  --mono: "Oxygen Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Kumbh Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(20px, 4.4vw, 72px);
  --hd-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --fs-h2: clamp(2rem, .9rem + 3.6vw, 5rem);
  --fs-h3: clamp(1.3rem, 1rem + 1vw, 2.1rem);
  --fs-label: .7rem;
}
@media (max-width: 699px) { :root { --hd-h: 64px; --fs-label: .66rem; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ice); color: var(--purple); scroll-padding-top: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: var(--ice); }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--purple); color: var(--ice); }
.wrap { width: 100%; max-width: 1720px; margin-inline: auto; padding-inline: var(--gut); }
.label { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; line-height: 1.5; }
.h2 { font-family: var(--mono); text-transform: uppercase; font-size: var(--fs-h2); line-height: .98; letter-spacing: -.04em; }
.h3 { font-family: var(--mono); text-transform: uppercase; font-size: var(--fs-h3); line-height: 1.05; letter-spacing: -.03em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--purple); color: var(--ice); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* a photograph that fills its frame and drifts a little inside it */
.fill-img, .band-img, .founder-photo, .dept-img, .tile figure, .world-img, .hpac-site, .begin-img { position: relative; overflow: hidden; }
.band-img picture { display: block; width: 100%; height: 100%; }
.band-img img { object-position: 62% 50%; }
@media (orientation: portrait) { .band-img img { object-position: 50% 50%; } }
.band-img > div, .founder-photo > div, .tile figure > div, .world-img > div, .hpac-site > div, .begin-img > div { position: absolute; inset: -9% 0; }
.dept-img > div { position: absolute; inset: 0 -7%; }
.band-img img, .founder-photo img, .dept-img img, .tile img, .world-img img, .hpac-site img, .begin-img img { width: 100%; height: 100%; object-fit: cover; }

.js [data-lines] .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js [data-lines] .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js [data-lines].is-in .line > span { transform: none; }
.js [data-lines] .line:nth-child(2) > span { transition-delay: .08s; }
.js [data-lines] .line:nth-child(n+3) > span { transition-delay: .16s; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.btn-fill { background: var(--btn-bg, var(--purple)); color: var(--btn-ink, var(--ice)); border: 1px solid var(--btn-bg, var(--purple)); }
.btn-fill:hover { background: var(--btn-hover, var(--maroon)); border-color: var(--btn-hover, var(--maroon)); }
.btn-line { border: 1px solid currentColor; }
.btn-line:hover { background: color-mix(in srgb, currentColor 12%, transparent); }

/* ------------------------------------------------------------------ header: the mark, Enquire, Menu */
.hd { --hd-ink: var(--purple); position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--hd-h); display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gut); color: var(--hd-ink); transition: color .6s var(--ease); pointer-events: none; }
.hd > * { pointer-events: auto; }
html[data-theme="photo"] .hd, html[data-theme="purple"] .hd, html[data-theme="hpar"] .hd, html[data-theme="mf"] .hd, html[data-theme="zen"] .hd, html[data-theme="mod"] .hd,
html[data-theme="hero"][data-hero="ready"] .hd, html[data-theme="hero"][data-hero="static"] .hd { --hd-ink: var(--ice); }
html[data-theme="hpac"] .hd { --hd-ink: var(--plum); }
html[data-theme="mf"] .hd { --hd-ink: var(--aubergine); filter: none; }
html[data-theme="photo"] .hd, html[data-theme="mf"] .hd, html[data-theme="zen"] .hd, html[data-theme="mod"] .hd, html[data-theme="hero"][data-hero="ready"] .hd, html[data-theme="hero"][data-hero="static"] .hd { filter: drop-shadow(0 1px 8px rgba(18, 12, 24, .28)); }
html.menu-open .hd { --hd-ink: var(--ice); filter: none; }
/* the mark (Karan, 23 Oct): "hpa" never moves; only the last letter changes, d for Design, r for Realty, c for
   Construction. The left 70 percent is always hpad's (the three marks are the same there), the right 30 percent swaps.
   hpac's drawing is a touch larger in its file: scaled 97 percent and nudged so its hpa sits on hpad's to a tenth of a pixel */
.hd-marks { position: relative; display: block; width: 58px; height: 27px; }
.hd-hpa, .hd-last, .hd-mark { position: absolute; inset: 0; width: 100%; height: 100%; }
.hd-hpa { clip-path: inset(0 29.4% 0 0); }   /* overlaps the swap by a hair, so the seam never shows */
.hd-last { clip-path: inset(0 0 0 70%); }
.hd-mark { opacity: 0; transform: translateY(45%); transition: transform .55s var(--ease), opacity .35s var(--ease); }
.hd-fit-hpac use { transform: translate(-0.517%, 2.963%) scale(.97); }
html[data-studio="design"] .hd-mark[data-for="design"], html[data-studio="construction"] .hd-mark[data-for="construction"], html[data-studio="realty"] .hd-mark[data-for="realty"] { opacity: 1; transform: none; }
.hd-cta { display: flex; align-items: center; gap: 26px; }
.hd-link { position: relative; font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; padding: 8px 0; }
.hd-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hd-link:hover::after { transform: scaleX(1); transform-origin: left; }
.hd-menu { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.hd-menu-lines { position: relative; width: 26px; height: 9px; }
.hd-menu-lines::before, .hd-menu-lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.hd-menu-lines::before { top: 0; }
.hd-menu-lines::after { top: 7.5px; }
html.menu-open .hd-menu-lines::before { top: 4px; transform: rotate(45deg); }
html.menu-open .hd-menu-lines::after { top: 4px; transform: rotate(-45deg); }
@media (max-width: 699px) { .hd-marks { width: 50px; height: 23px; } .hd-cta { gap: 18px; } }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--purple); color: var(--ice); display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--hd-h) + 6vh) var(--gut) max(30px, env(safe-area-inset-bottom)); clip-path: circle(0 at calc(100% - 44px) 38px); transition: clip-path .85s var(--ease-io); }
.menu[hidden] { display: flex; visibility: hidden; }
html.menu-open .menu { visibility: visible; clip-path: circle(150vmax at calc(100% - 44px) 38px); }
html.menu-open, html.menu-open body { overflow: hidden; }
.menu-nav { display: flex; flex-direction: column; gap: .15em; }
.menu-nav a { font-family: var(--mono); text-transform: uppercase; font-size: min(clamp(2rem, 7vw, 4.6rem), 6.1vh); letter-spacing: -.045em; line-height: 1.1; opacity: .9; transition: opacity .3s; }
.menu-nav a:hover { opacity: 1; }
.menu-foot { opacity: .6; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--ice); }
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-still img { width: 100%; height: 100%; object-fit: cover; }
.js .hero-still { opacity: 0; transition: opacity 1.2s var(--ease); }
html[data-hero="static"] .hero-still { opacity: 1; }
.hero-gl { opacity: 0; touch-action: pan-y; }
.hero.is-gl .hero-gl { opacity: 1; }
.hero.over-water { cursor: crosshair; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; pointer-events: none; background: linear-gradient(to top, rgba(18, 12, 24, .42), rgba(18, 12, 24, 0)); opacity: 0; transition: opacity 1.4s var(--ease); }
html[data-hero="ready"] .hero::after, html[data-hero="static"] .hero::after { opacity: 1; }

/* the two lines under the card: one while it is drawn, one when it comes to life */
.hero-words { position: absolute; left: 0; right: 0; top: calc(var(--card-bottom, 72vh) + clamp(22px, 4vh, 44px)); text-align: center; font-family: var(--mono); text-transform: uppercase; font-size: clamp(.78rem, .6rem + .45vw, 1.05rem); letter-spacing: .24em; color: var(--purple); pointer-events: none; }
.hw { display: inline-block; opacity: 0; transform: translateY(8px); transition: opacity .9s var(--ease), transform .9s var(--ease); margin: 0 .5em; }
html[data-hero="drawing"] .hw-1, html[data-hero="alive"] .hw-1, html[data-hero="alive"] .hw-2 { opacity: 1; transform: none; }
html[data-hero="opening"] .hw, html[data-hero="ready"] .hw { opacity: 0; transition-duration: .4s; }
html:not(.js) .hero-words, html[data-hero="static"] .hero-words { top: auto; bottom: clamp(70px, 12vh, 120px); color: var(--ice); }
html:not(.js) .hw, html[data-hero="static"] .hw { opacity: 1; transform: none; }

.hero-cap { position: absolute; left: var(--gut); bottom: clamp(22px, 4.4vh, 44px); color: var(--ice); opacity: 0; transition: opacity 1.2s var(--ease) .3s; max-width: 70vw; pointer-events: none; }
.hero-cap .credit { font-size: .72rem; opacity: .78; margin-top: 4px; }
html[data-hero="ready"] .hero-cap, html[data-hero="static"] .hero-cap, html:not(.js) .hero-cap { opacity: .95; }
.hero-down { position: absolute; right: var(--gut); bottom: clamp(22px, 4.4vh, 44px); width: 24px; height: 46px; display: grid; justify-items: center; color: var(--ice); opacity: 0; transition: opacity 1s var(--ease) .6s; }
.hero-down i { width: 1px; height: 100%; background: currentColor; transform-origin: top; animation: drip 2.2s var(--ease-io) infinite; }
html[data-hero="ready"] .hero-down, html[data-hero="static"] .hero-down { opacity: .9; }
@keyframes drip { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Enter Oxygen (Karan, 23 Oct 2026): the homepage opens, then waits, still, for one click. Browsers let sound play
   only after a click, so the music starts with it; then the intro, View projects and the way on (Scroll) come in */
html.gated, html.gated body { overflow: hidden; overscroll-behavior: none; }
.enter { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 var(--gut) clamp(96px, 21vh, 230px); pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .9s var(--ease), transform 1s var(--ease), visibility 0s 1s; }
html[data-hero="ready"] .enter, html[data-hero="static"] .enter, .enter.is-due { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
html.entered .enter { opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.enter-go { pointer-events: auto; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 66px; padding: 0 calc(36px - .22em) 0 30px; border-radius: 8px; background: var(--ice); color: var(--purple); font-family: var(--mono); font-size: clamp(.82rem, .74rem + .25vw, .98rem); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 14px 40px rgba(18, 12, 24, .35); transition: background-color .35s var(--ease), color .35s var(--ease), transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.enter-go::before, .enter-go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid var(--ice); opacity: 0; pointer-events: none; animation: enter-ring 2.6s var(--ease) infinite; }
.enter-go::after { animation-delay: 1.3s; }
@keyframes enter-ring { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22, 1.55); } }
.enter-go:hover { background: var(--maroon); color: var(--ice); transform: scale(1.05); }
.enter-go:active { transform: scale(.97); }
.enter-go:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.enter-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.enter-bars i { width: 2px; height: 5px; border-radius: 1px; background: currentColor; animation: enter-eq .9s ease-in-out infinite alternate; }
.enter-bars i:nth-child(2) { animation-duration: .62s; animation-delay: -.3s; }
.enter-bars i:nth-child(3) { animation-duration: .78s; animation-delay: -.5s; }
.enter-bars i:nth-child(4) { animation-duration: .55s; animation-delay: -.1s; }
@keyframes enter-eq { from { height: 3px; } to { height: 14px; } }
.enter-note { color: var(--ice); opacity: .85; text-shadow: 0 1px 10px rgba(18, 12, 24, .6); }
@media (prefers-reduced-motion: reduce) { .enter-go::before, .enter-go::after, .enter-bars i { animation: none; } .enter-bars i { height: 9px; } }
/* nothing else on the photograph until the visitor is in */
html.gated .hero-cap, html.gated .hero-down { opacity: 0 !important; visibility: hidden; }
html.gated .hero-cap { transform: translateY(14px); }
.hero-cap { transition: opacity 1.2s var(--ease) .3s, transform 1.2s var(--ease) .3s; }
/* the way on says itself: Scroll, beside the falling line */
.hero-down { width: auto; display: flex; align-items: flex-end; gap: 12px; }
.hero-down i { flex: none; height: 46px; }
.hero-down-l { line-height: 1; padding-bottom: 2px; }
@media (max-width: 699px) { .hero-down { bottom: calc(clamp(22px, 4.4vh, 44px) + 32px); } }   /* beside View projects, clear of the caption line */

/* ------------------------------------------------------------------ 01 studio: one number over his hands */
.band { position: relative; height: 100vh; height: 100svh; min-height: 520px; color: var(--ice); }
.band-img { position: absolute; inset: 0; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, rgba(18, 12, 24, .5), rgba(18, 12, 24, 0) 55%); pointer-events: none; }
.band-words { position: absolute; left: var(--gut); bottom: clamp(40px, 9vh, 100px); z-index: 1; }
.band-num { font-family: var(--mono); font-size: clamp(4.4rem, 1rem + 11vw, 12.5rem); line-height: .82; letter-spacing: -.07em; margin-bottom: 14px; }

.founder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; background: var(--purple); color: var(--ice); }
.founder-photo { min-height: 60vh; }
.founder-quote { align-self: center; margin: 0; padding: clamp(40px, 7vw, 120px); }
.founder-quote p { font-family: var(--mono); text-transform: uppercase; font-size: clamp(1.35rem, .7rem + 1.9vw, 2.6rem); line-height: 1.12; letter-spacing: -.035em; max-width: 18ch; }
.founder-quote footer { margin-top: 28px; opacity: .65; }
@media (max-width: 899px) { .founder { grid-template-columns: 1fr; } .founder-photo { min-height: 0; aspect-ratio: 4 / 4.4; } .founder-quote { padding: 44px var(--gut) 64px; } }

/* ------------------------------------------------------------------ 02 departments: a carousel the scroll turns */
.depts { background: var(--ice); }
.carousel-pin { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.carousel-label { position: absolute; left: var(--gut); top: calc(var(--hd-h) + 18px); z-index: 3; color: var(--grey); }
.carousel-stage { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 50% 44%; }
.ring { --cw: min(50vw, 860px, 100vh); --ch: min(62vh, 580px, calc(var(--cw) * .68)); position: absolute; left: 50%; top: 51%; width: var(--cw); height: var(--ch); margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2); transform-style: preserve-3d; will-change: transform; }
.card { --dim: 0; position: absolute; inset: 0; transform-style: preserve-3d; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.card-face { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 4px; background: #dfe0e6; box-shadow: 0 50px 90px rgba(30, 22, 40, .2); text-align: left; color: var(--ice); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.card-face::after { content: ""; position: absolute; inset: 0; background: var(--ice); opacity: var(--dim); pointer-events: none; }
.card-img, .card-img-in { position: absolute; inset: 0; display: block; }
.card-img-in { inset: 0 -9%; will-change: transform; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card.is-front .card-face:hover img { transform: scale(1.035); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 12, 24, .58), rgba(18, 12, 24, 0) 46%); }
.card-n { position: absolute; left: 22px; top: 18px; opacity: .9; }
.card-cap { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: center; gap: 14px; }
.card-art { flex: none; width: 50px; height: 50px; padding: 5px; border-radius: 50%; background: var(--ice); }
.card-name { font-family: var(--mono); text-transform: uppercase; font-size: clamp(1.5rem, .9rem + 2vw, 3rem); letter-spacing: -.035em; line-height: 1; }
.card-open { margin-left: auto; padding: 9px 16px; border: 1px solid rgba(244, 249, 253, .8); border-radius: 999px; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .3s; }
.card.is-front .card-open { opacity: 1; transform: none; }
.card.is-front .card-face:hover .card-open { background: rgba(244, 249, 253, .16); }
.carousel-index { position: absolute; left: 50%; bottom: clamp(18px, 4vh, 40px); transform: translateX(-50%); z-index: 3; display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; color: var(--grey); }
.carousel-index li { transition: color .4s; }
.carousel-index li.is-on { color: var(--purple); }
@media (max-width: 699px) {
  .ring { --cw: 80vw; --ch: min(60svh, 132vw); top: 50%; }
  .carousel-stage { perspective: 1300px; }
  .card-cap { left: 16px; right: 16px; bottom: 16px; gap: 10px; }
  .card-art { width: 42px; height: 42px; }
  .card-n { left: 16px; top: 14px; }
}
/* without motion: the five cards simply stand in a column */
.carousel-pin.flat { height: auto; overflow: visible; padding: calc(var(--hd-h) + 50px) var(--gut) 40px; }
.flat .carousel-label { position: static; margin-bottom: 24px; }
.flat .carousel-stage { position: static; perspective: none; }
.flat .ring { position: static; margin: 0; width: auto; height: auto; transform: none !important; display: grid; gap: 18px; }
.flat .card { position: relative; transform: none !important; aspect-ratio: 16 / 10; }
.flat .card-open { opacity: 1; transform: none; }
.flat .carousel-index { display: none; }

/* ------------------------------------------------------------------ 03 work */
.work { background: var(--ice); padding: calc(var(--hd-h) + 60px) 0 clamp(80px, 10vw, 150px); }
.work-label { color: var(--grey); margin-bottom: 40px; }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(14px, 1.8vw, 28px); row-gap: clamp(44px, 5vw, 84px); }
.tile { display: block; }
.tile figure { background: #e4e5ea; }
.tile img { transition: transform 1.4s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile .label { padding-top: 12px; color: var(--grey); }
.t1 { grid-column: 1 / span 7; } .t1 figure { aspect-ratio: 3 / 2; }
.t2 { grid-column: 9 / span 4; margin-top: 14vh; } .t2 figure { aspect-ratio: 4 / 5; }
.t3 { grid-column: 2 / span 5; } .t3 figure { aspect-ratio: 4 / 3; }
.t4 { grid-column: 7 / span 6; margin-top: 8vh; } .t4 figure { aspect-ratio: 3 / 2; }
.t5 { grid-column: 1 / span 5; margin-top: 2vh; } .t5 figure { aspect-ratio: 5 / 4; }
.t6 { grid-column: 6 / span 7; margin-top: 12vh; } .t6 figure { aspect-ratio: 16 / 10; }
.t7 { grid-column: 2 / span 4; } .t7 figure { aspect-ratio: 4 / 5; }
.t8 { grid-column: 7 / span 5; margin-top: 10vh; } .t8 figure { aspect-ratio: 4 / 3; }
.t9 { grid-column: 3 / span 8; } .t9 figure { aspect-ratio: 16 / 9; }
@media (max-width: 899px) {
  .work-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 40px; }
  .tile { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .t2, .t5, .t8 { grid-column: 2 / -1 !important; }
  .t3, .t7 { grid-column: 1 / span 5 !important; }
}

/* ------------------------------------------------------------------ 04 realty: three worlds, each in its own brand */
.world { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.world-img { position: absolute; inset: 0; }
.world-tag { position: absolute; right: var(--gut); top: calc(var(--hd-h) + 18px); font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: rgba(0, 0, 0, .38); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.world-eyebrow { position: absolute; left: var(--gut); top: calc(var(--hd-h) + 22px); color: #fff; opacity: .9; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.world-mf .world-eyebrow { color: var(--aubergine); text-shadow: none; }
.world-card { position: absolute; left: var(--gut); bottom: clamp(24px, 6vh, 64px); display: grid; gap: 18px; justify-items: start; padding: 26px 28px 28px; width: min(400px, calc(100vw - var(--gut) * 2)); border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); }
.world-line { font-size: clamp(1.4rem, 1rem + 1.1vw, 2rem); line-height: 1.08; letter-spacing: -.02em; }
.world-mf .world-card { --btn-bg: var(--canopy); --btn-ink: #2f4a24; --btn-hover: var(--mf-cream); background: var(--forest); color: var(--mf-cream); font-family: "Poppins", var(--sans); }
.world-mf .world-logo { display: flex; align-items: center; gap: 14px; color: var(--mf-cream); }
.mf-emblem { width: 58px; aspect-ratio: 895 / 547; height: auto; }
.mf-word { width: 220px; aspect-ratio: 2048 / 311; height: auto; }
.world-mf .world-line { font-weight: 600; }
.world-mf .btn { font-family: "Poppins", sans-serif; letter-spacing: .02em; text-transform: none; font-size: .9rem; font-weight: 600; }
.world-zen .world-card { --btn-bg: var(--zen-ink); --btn-ink: var(--zen-mist); --btn-hover: var(--zen-olive); background: var(--zen-mist); color: var(--zen-ink); font-family: "Switzer", var(--sans); }
.zen-word { width: 300px; max-width: 100%; aspect-ratio: 758 / 46; height: auto; color: var(--zen-ink); }
.world-zen .world-line { font-weight: 300; }
.world-zen .btn { font-family: "Switzer", sans-serif; letter-spacing: .12em; font-size: .7rem; }
.world-mod .world-card { --btn-bg: var(--mod-maroon); --btn-ink: var(--mod-paper); --btn-hover: var(--mod-olive); background: var(--mod-paper); color: var(--mod-maroon); font-family: "Work Sans", var(--sans); }
.mod-lockup { width: 190px; aspect-ratio: 1123 / 295; height: auto; color: var(--mod-maroon); }
.world-mod .world-line { font-weight: 300; }
.world-mod .btn { font-family: "Work Sans", sans-serif; letter-spacing: .12em; font-size: .7rem; }
@media (max-width: 699px) {
  .world-card { left: 14px; right: 14px; width: auto; bottom: max(14px, env(safe-area-inset-bottom)); padding: 20px 20px 22px; gap: 14px; }
  .mf-word { width: 170px; }
  .zen-word { width: 240px; }
  .mod-lockup { width: 160px; }
}

/* ------------------------------------------------------------------ 05 HPAC: the house builds itself */
.hpac { --btn-bg: var(--plum); --btn-ink: var(--cream); --btn-hover: var(--deep-plum); background: var(--cream); color: var(--plum); position: relative; z-index: 2; }
.hpac-head { padding-top: calc(var(--hd-h) + 12vh); padding-bottom: 4vh; display: grid; gap: 22px; justify-items: start; }
.hpac-mark { width: clamp(84px, 8vw, 124px); aspect-ratio: 1100 / 515; height: auto; }
.hpac .h2 { font-family: var(--sans); text-transform: none; letter-spacing: -.04em; line-height: .98; font-size: clamp(2.5rem, 1rem + 5vw, 6.4rem); max-width: 12ch; }
.hpac-head .label { opacity: .75; }
.build-pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(14px, 3vh, 34px); padding: var(--hd-h) var(--gut) 4vh; }
.build-art { width: min(1000px, 92vw, 120vh); }
.build-art svg { width: 100%; height: auto; }
.build-text { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.build-caps { list-style: none; margin: 0; padding: 0; display: grid; text-align: center; }
.build-caps li { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.build-caps li.is-on { opacity: 1; transform: none; }
.build-caps h3 { font-family: var(--sans); font-size: clamp(1.3rem, 1rem + 1vw, 2rem); letter-spacing: -.02em; }
.build-bar { width: 160px; height: 2px; background: rgba(86, 61, 64, .16); }
.build-bar span { display: block; height: 100%; background: var(--plum); transform-origin: left; transform: scaleX(.1667); }
.no-pin .build-pin { height: auto; padding: 40px var(--gut); }
.no-pin .build-caps li { grid-area: auto; opacity: 1; transform: none; }
.no-pin .build-bar { display: none; }
.hpac-site { height: 86vh; height: 86svh; color: var(--cream); }
.hpac-site figcaption { position: absolute; left: var(--gut); bottom: 22px; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.hpac-foot { display: flex; flex-direction: column; align-items: center; gap: clamp(40px, 7vh, 70px); padding-top: clamp(70px, 12vh, 130px); padding-bottom: clamp(80px, 14vh, 150px); }
.steps { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 1000px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); text-align: center; }
.steps li { display: grid; justify-items: center; gap: 12px; }
.step-art { width: clamp(72px, 7vw, 104px); }
.steps p { font-size: .95rem; color: var(--deep-plum); }
@media (max-width: 699px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 34px; } .hpac-site { height: 70svh; } }

/* ------------------------------------------------------------------ 06 begin: the studio at dusk */
.begin { position: relative; height: 100vh; height: 100svh; min-height: 560px; color: var(--ice); overflow: hidden; }
.begin-img { position: absolute; inset: 0; }
.begin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 12, 24, .62), rgba(18, 12, 24, .05) 62%); pointer-events: none; }
.begin-words { position: absolute; left: 0; right: 0; bottom: clamp(40px, 10vh, 110px); z-index: 1; display: grid; gap: clamp(22px, 4vh, 36px); }
.begin .h2 { max-width: 15ch; }
.begin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.begin .btn-fill { --btn-bg: var(--ice); --btn-ink: var(--purple); --btn-hover: #fff; }
.begin-cap { position: absolute; right: var(--gut); top: calc(var(--hd-h) + 22px); z-index: 1; opacity: .85; }

/* ------------------------------------------------------------------ the switch between studios: the ground floods, the mark changes */
.switch { position: relative; }
.switch-pin { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.sw-layer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(22px, 4vh, 40px); padding: 0 var(--gut); text-align: center; }
.sw-mark { width: min(62vw, 900px, 120vh); aspect-ratio: 1100 / 509; height: auto; }
.sw-line { font-family: var(--mono); text-transform: uppercase; font-size: clamp(.8rem, .55rem + .9vw, 1.35rem); letter-spacing: .2em; }
.sw-sub { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease); position: absolute; bottom: clamp(36px, 9vh, 90px); left: 0; right: 0; }
.switch.is-done .sw-sub { opacity: .8; transform: none; }
.switch-realty .sw-from { background: var(--ice); color: var(--purple); }
.switch-realty .sw-to { background: var(--aubergine); color: var(--ice); }
.switch-construction .sw-from { background: var(--aubergine); color: var(--ice); }
.switch-construction .sw-to { background: var(--cream); color: var(--plum); }
.sw-to { clip-path: circle(0 at 50% 50%); }
@media (max-width: 699px) { .sw-mark { width: 82vw; } .sw-line { letter-spacing: .14em; } }
.no-anim .sw-from { display: none; }
.no-anim .sw-to { position: relative; clip-path: none; min-height: 70vh; }
.no-anim .switch-pin { height: auto; }
.no-anim .sw-sub { position: static; opacity: .8; transform: none; }

/* ------------------------------------------------------------------ a department, opened from its card */
.dview { position: fixed; inset: 0; z-index: 85; }
.dview[hidden] { display: none; }
.dview-panel { --t: 0px; --r: 0px; --b: 0px; --l: 0px; --rad: 0px; position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--ice); color: var(--purple); clip-path: inset(var(--t) var(--r) var(--b) var(--l) round var(--rad)); }
.dview-close { position: fixed; right: var(--gut); top: calc(var(--hd-h) / 2 - 19px); z-index: 3; height: 38px; padding: 0 18px; border-radius: 999px; background: var(--purple); color: var(--ice); opacity: 0; transition: opacity .4s var(--ease); }
.dview.is-open .dview-close { opacity: 1; }
.dv-hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; color: var(--ice); }
.dv-hero-img { position: absolute; inset: 0; }
.dv-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.dv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 12, 24, .55), rgba(18, 12, 24, 0) 50%); }
.dv-head { position: absolute; left: 0; right: 0; bottom: clamp(36px, 8vh, 90px); z-index: 1; display: grid; gap: 14px; opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease) .15s, transform .8s var(--ease) .15s; }
.dview.is-open .dv-head { opacity: 1; transform: none; }
.dv-head .label { opacity: .8; }
.dv-line { font-size: clamp(1.05rem, .9rem + .5vw, 1.4rem); font-weight: 300; max-width: 34ch; }
.dv-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 28px); padding-top: clamp(40px, 8vh, 90px); padding-bottom: clamp(40px, 8vh, 90px); }
.dv-strip figure { overflow: hidden; background: #e4e5ea; aspect-ratio: 4 / 3; }
.dv-strip figure:nth-child(3n), .dv-strip figure:last-child:nth-child(3n+1) { grid-column: 1 / -1; aspect-ratio: 16 / 7.5; }
.dv-strip img { width: 100%; height: 100%; object-fit: cover; }
.dv-foot { display: flex; justify-content: center; padding-bottom: clamp(60px, 12vh, 120px); }
@media (max-width: 699px) { .dv-strip { grid-template-columns: 1fr; } .dv-strip figure, .dv-strip figure:nth-child(3n) { grid-column: auto; aspect-ratio: 4 / 3.4; } }
html.dview-open, html.dview-open body { overflow: hidden; }

/* ------------------------------------------------------------------ footer */
.ft { background: var(--ice); color: var(--purple); padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
.ft-art img { width: 100%; height: auto; }
.ft-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: clamp(50px, 6vw, 90px); padding-bottom: clamp(40px, 5vw, 70px); }
.ft-mark { width: min(200px, 40vw); aspect-ratio: 134.48 / 62.23; height: auto; }
.ft-family { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); flex-wrap: wrap; }
.ft-family a { display: block; opacity: .8; transition: opacity .3s; }
.ft-family a:hover { opacity: 1; }
.fam { height: auto; }
.fam-hpac { width: 64px; aspect-ratio: 1100 / 515; color: var(--plum); }
.fam-hpar { width: 64px; aspect-ratio: 1100 / 509; color: var(--aubergine); }
.fam-mf { width: 44px; aspect-ratio: 895 / 547; color: var(--forest); }
.fam-zen { width: 140px; aspect-ratio: 758 / 46; color: var(--zen-ink); }
.fam-mod { width: 96px; aspect-ratio: 1123 / 295; color: var(--mod-maroon); }
.ft-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(73, 61, 81, .16); color: var(--grey); }
#m-zen path, #m-zen polygon { stroke: currentColor; stroke-width: .7px; vector-effect: non-scaling-stroke; }

/* ------------------------------------------------------------------ the enquiry sheet */
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(20, 14, 28, .45); opacity: 0; transition: opacity .5s var(--ease); }
.sheet-panel { --btn-bg: var(--ice); --btn-ink: var(--purple); --btn-hover: #fff; position: relative; width: min(500px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--purple); color: var(--ice); padding: 26px clamp(22px, 3vw, 36px) 30px; display: flex; flex-direction: column; gap: 24px; transform: translateX(100%); transition: transform .65s var(--ease); }
.sheet.is-open .sheet-scrim { opacity: 1; }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; }
.sheet-top .label { opacity: .7; }
.sheet-close { opacity: .8; padding: 8px 0; }
.sheet-close:hover { opacity: 1; }
.sheet-foot { margin-top: auto; opacity: .55; }
@media (max-width: 699px) {
  .sheet { align-items: flex-end; }
  .sheet-panel { width: 100%; height: auto; max-height: 92svh; border-radius: 20px 20px 0 0; transform: translateY(100%); padding-bottom: max(26px, env(safe-area-inset-bottom)); }
}
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: rgba(244, 249, 253, .08); }
.tabs button { min-height: 40px; border-radius: 999px; font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; transition: background-color .35s var(--ease), color .35s var(--ease), opacity .3s; }
.tabs button[aria-selected="true"] { background: var(--ice); color: var(--purple); opacity: 1; }
.form { display: grid; gap: 22px; }
.form[hidden] { display: none; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(244, 249, 253, .3); font-size: .92rem; transition: background-color .3s, color .3s, border-color .3s; }
.chips input:checked + span { background: var(--ice); color: var(--purple); border-color: var(--ice); }
.chips input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }
.chips-place .c-mf input:checked + span { background: var(--forest); color: var(--mf-cream); border-color: var(--forest); font-family: "Poppins", sans-serif; }
.chips-place .c-zen input:checked + span { background: var(--zen-mist); color: var(--zen-ink); border-color: var(--zen-mist); font-family: "Switzer", sans-serif; }
.chips-place .c-mod input:checked + span { background: var(--mod-paper); color: var(--mod-maroon); border-color: var(--mod-paper); font-family: "Work Sans", sans-serif; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field .label { opacity: .65; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ice); background: transparent; border: 0; border-bottom: 1px solid rgba(244, 249, 253, .32); padding: 6px 0 9px; border-radius: 0; transition: border-color .3s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ice); }
.field input[type="date"] { color-scheme: dark; min-height: 40px; }
.field.is-bad input { border-bottom-color: #ffd7d2; }
.field .err { font-size: .8em; color: #ffd7d2; }
.form-send { display: flex; flex-wrap: wrap; gap: 10px; }
.sent { display: grid; gap: 14px; }
.sent[hidden] { display: none; }
.sent-text { opacity: .9; max-width: 34ch; }
.sent-again { justify-self: start; opacity: .8; padding: 6px 0; border-bottom: 1px solid currentColor; }
@media (max-width: 460px) { .fields { grid-template-columns: 1fr; } .form-send .btn { flex: 1 1 auto; } }

/* ------------------------------------------------------------------ toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 20px); background: var(--purple); color: var(--ice); padding: 12px 20px; border-radius: 999px; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transition: opacity .35s var(--ease), transform .45s var(--ease); pointer-events: none; white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }


/* ------------------------------------------------------------------ pictograms */
.hk { width: 100%; height: auto; overflow: visible; }
.no-anim .hk-pl { opacity: 1 !important; }

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-lines] .line > span { transform: none; }
}

/* ---- HPAC: on site, then handed over (23 Oct 2026, replaces the house that built itself) */
.ba-pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: var(--hd-h) var(--gut) 3vh; }
.ba-stage { position: relative; height: min(74vh, 74svh); aspect-ratio: 3 / 4; max-width: 92vw; overflow: hidden; border-radius: 4px; background: #d9d0c8; box-shadow: 0 30px 70px rgba(69, 41, 43, .18); }
.ba-pair { position: absolute; inset: 0; margin: 0; opacity: 0; }
.ba-pair.is-on { opacity: 1; }
.ba-before, .ba-after { position: absolute; inset: 0; }
.ba-before img, .ba-after img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(100% 0 0 0); }
.ba-edge { position: absolute; left: 0; right: 0; top: 100%; height: 2px; background: var(--cream); box-shadow: 0 0 18px rgba(0, 0, 0, .35); opacity: 0; }
.ba-caps { display: flex; gap: 28px; align-items: center; }
.ba-caps span { transition: opacity .4s var(--ease); }
.ba-caps .ba-cap-after { opacity: .35; }
.ba-caps.is-after .ba-cap-before { opacity: .35; }
.ba-caps.is-after .ba-cap-after { opacity: 1; }
.no-pin .ba-pin { height: auto; padding: 30px var(--gut); }
.no-pin .ba-pair { position: relative; opacity: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.no-pin .ba-before, .no-pin .ba-after { position: relative; aspect-ratio: 3 / 4; clip-path: none; }
.no-pin .ba-stage { height: auto; aspect-ratio: auto; max-width: 100%; background: none; box-shadow: none; }
.world-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sw-link { display: inline-block; margin-top: 18px; color: inherit; text-decoration: underline; text-underline-offset: 5px; opacity: .85; }
.hero-realty { background: var(--aubergine); }
@media (max-width: 699px) { .ba-stage { height: auto; width: 92vw; max-height: 70svh; } }

/* ---- Selected work on a curved wall (23 Oct 2026, after naya-studio-dubai.webflow.io) */
.curve { position: relative; background: var(--purple); color: var(--ice); }
.curve-pin { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; overflow: clip; }
.curve-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--ease); }
.curve.is-gl .curve-gl, .curve-pin.is-gl .curve-gl { opacity: 1; }
.curve-label { position: absolute; left: var(--gut); top: calc(var(--hd-h) + 18px); z-index: 3; opacity: .85; text-shadow: 0 1px 8px rgba(18, 12, 24, .5); }
.curve-count { position: absolute; right: var(--gut); bottom: clamp(20px, 4vh, 40px); z-index: 2; opacity: 0; transition: opacity .4s var(--ease); }
.is-live .curve-count { opacity: .7; }
.curve-list { position: absolute; width: 1px; height: 1px; overflow: hidden; overflow: clip; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; list-style: none; }
.curve-foot { display: flex; justify-content: center; padding: clamp(36px, 6vh, 64px) var(--gut) clamp(70px, 12vh, 120px); }
.curve-foot .btn-line { color: var(--ice); }
.curve-flat .curve-gl { display: none; }
.curve-pin.curve-flat { height: auto; min-height: 0; padding: calc(var(--hd-h) + 60px) 0 10px; }
.curve-flat .curve-list { position: static; width: auto; height: auto; clip: auto; overflow-x: auto; display: flex; gap: 14px; padding: 0 var(--gut) 18px; scroll-snap-type: x mandatory; white-space: normal; }
.curve-flat .curve-list li { flex: none; width: min(72vw, 420px); scroll-snap-align: center; }
.curve-flat .curve-list a { display: grid; grid-template-columns: 1fr auto; gap: 10px; color: var(--ice); }
.curve-flat .curve-list img { grid-column: 1 / -1; width: 100%; aspect-ratio: .86; object-fit: cover; border-radius: 8px; }
.curve-flat .curve-name, .curve-flat .curve-code { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.curve-flat .curve-count { display: none; }
.curve-list .curve-name, .curve-list .curve-code { display: block; }

/* ---- the company changes go sideways (23 Oct 2026, Karan: "we shift from left to right... especially when there is a company change") */
.hrun { position: relative; }
.hrun-pin { position: relative; overflow: hidden; overflow: clip; }   /* clip: focus can never scroll it sideways */
.hrun-track { display: flex; flex-direction: column; }
.hpanel { position: relative; }
.hrun.is-h .hrun-pin { height: 100vh; height: 100svh; min-height: 520px; }
.hrun.is-h .hrun-track { flex-direction: row; height: 100%; width: max-content; will-change: transform; }
.hrun.is-h .hpanel { flex: none; width: 100vw; height: 100%; }
.hp-from, .hp-to { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 0 var(--gut) clamp(54px, 13vh, 130px); gap: 14px; }
.hp-line { font-family: var(--mono); text-transform: uppercase; font-size: clamp(.8rem, .55rem + .9vw, 1.35rem); letter-spacing: .2em; }
.hp-sub { opacity: .8; }
.hp-link { color: inherit; text-decoration: underline; text-underline-offset: 5px; opacity: .85; }
.hrun-realty .hp-from { background: var(--ice); color: var(--purple); }
.hrun-realty .hp-to { background: var(--aubergine); color: var(--ice); }
.hrun-construction .hp-from { background: var(--aubergine); color: var(--ice); }
.hrun-construction .hp-to { background: var(--cream); color: var(--plum); }
.hrun-marks { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none; }
.hrun.is-h .hrun-marks { display: block; will-change: transform; }
.hm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 8vh; }
.hm-mark { width: min(62vw, 900px, 110vh); aspect-ratio: 1100 / 509; height: auto; }
.hrun-realty .hm-from { color: var(--purple); }
.hrun-realty .hm-to { color: var(--ice); }
.hrun-construction .hm-from { color: var(--ice); }
.hrun-construction .hm-to { color: var(--plum); }
.hrun:not(.is-h) .hp-from { display: none; }
.hrun.is-h .world { position: relative; top: auto; height: 100%; min-height: 0; }
.hrun.is-h .world-img-in { position: absolute; inset: 0 -9%; }
.world-img-in { position: absolute; inset: 0; }
.world-img-in img { width: 100%; height: 100%; object-fit: cover; }
.hrun.is-h .world-card { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.hrun.is-h .world.is-in .world-card { opacity: 1; transform: none; }
.hrun.is-h .world-card > * { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.hrun.is-h .world.is-in .world-card > * { opacity: 1; transform: none; }
.hrun.is-h .world.is-in .world-card > *:nth-child(2) { transition-delay: .08s; }
.hrun.is-h .world.is-in .world-card > *:nth-child(3) { transition-delay: .16s; }
@media (max-width: 699px) { .hm-mark { width: 82vw; } .hp-line { letter-spacing: .14em; } }

/* ---- down again between the two runs: the long water */
.interlude { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; color: var(--ice); background: var(--aubergine); }
.interlude-img { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.interlude-img > div { position: absolute; inset: -9% 0; }
.interlude-img img { width: 100%; height: 100%; object-fit: cover; }
.interlude::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 14, 26, .6), rgba(20, 14, 26, 0) 55%); pointer-events: none; }
.interlude-words { position: absolute; left: 0; right: 0; bottom: clamp(40px, 10vh, 100px); z-index: 1; display: grid; gap: 22px; justify-items: start; }
.interlude-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.interlude .btn-fill { --btn-bg: var(--ice); --btn-ink: var(--aubergine); --btn-hover: #fff; }
.interlude .btn-line { color: var(--ice); }

/* ---- departments: five chapters that slide sideways (23 Oct 2026, Karan chose "sideways chapters", Koto style) */
.hrun-depts { background: var(--ice); color: var(--purple); }
.dch { background: var(--ice); color: var(--purple); overflow: hidden; overflow: clip; }
.hrun:not(.is-h) .dch { min-height: 100vh; min-height: 100svh; }
.dch-kicker { position: absolute; left: var(--gut); top: calc(var(--hd-h) + 14px); z-index: 3; color: var(--grey); }
.dch-n { position: absolute; left: var(--gut); top: calc(var(--hd-h) + 52px); display: flex; align-items: center; gap: 14px; }
.dch-art { display: inline-block; width: 46px; height: 46px; }
.dch-art svg { width: 100%; height: 100%; }
.dch-line { position: absolute; left: var(--gut); top: calc(var(--hd-h) + 118px); max-width: 24ch; font-weight: 300; font-size: clamp(1.05rem, .9rem + .55vw, 1.45rem); line-height: 1.3; }
.dch-open { position: absolute; left: var(--gut); top: calc(var(--hd-h) + 210px); }
.dch-img { position: absolute; top: calc(var(--hd-h) + 18px); right: var(--gut); width: 60vw; height: 58vh; height: 58svh; padding: 0; border-radius: 6px; overflow: hidden; background: #dfe2e8; cursor: pointer; }
.dch-img .world-img-in { position: absolute; inset: 0; }
.dch-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dch-img:hover img { transform: scale(1.03); }
.dch-name { position: absolute; left: calc(var(--gut) - .04em); right: var(--gut); bottom: clamp(18px, 5vh, 56px); margin: 0; font-family: var(--mono); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 10.5vw, 12rem); letter-spacing: -.03em; line-height: .86; white-space: nowrap; }
.hrun.is-h .dch-name, .hrun.is-h .dch-line, .hrun.is-h .dch-open { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.hrun.is-h .dch.is-in .dch-name, .hrun.is-h .dch.is-in .dch-line, .hrun.is-h .dch.is-in .dch-open { opacity: 1; transform: none; }
.hrun.is-h .dch.is-in .dch-line { transition-delay: .08s; }
.hrun.is-h .dch.is-in .dch-open { transition-delay: .16s; }
@media (max-width: 899px) {
  .dch-n { top: calc(var(--hd-h) + 40px); }
  .dch-line { top: calc(var(--hd-h) + 96px); max-width: none; right: var(--gut); }
  .dch-open { top: auto; bottom: calc(clamp(18px, 5vh, 56px) + 15vw); }
  .dch-img { top: calc(var(--hd-h) + 168px); left: var(--gut); right: var(--gut); width: auto; height: 42vh; height: 42svh; }
  .dch-name { font-size: 11.2vw; }
}

/* ------------------------------------------------------------------ playful layer (js/play.js, js/sound.js) */
/* the family, under the mark: hover the mark and HPAR and HPAC drop down; the mark changes colour and leans */
.hd { --hd-panel: rgba(244, 249, 253, .88); --hd-hover: var(--maroon); }
html[data-theme="photo"] .hd, html[data-theme="purple"] .hd, html[data-theme="hpar"] .hd, html[data-theme="zen"] .hd, html[data-theme="mod"] .hd, html[data-theme="night"] .hd,
html[data-theme="hero"][data-hero="ready"] .hd, html[data-theme="hero"][data-hero="static"] .hd { --hd-panel: rgba(30, 22, 36, .52); --hd-hover: #D9CFDF; }
html[data-theme="night"] .hd { --hd-ink: var(--ice); }
.hd-logo { position: relative; display: flex; align-items: center; }
.hd-logo::after { content: ""; position: absolute; left: -16px; right: -90px; top: 100%; height: 16px; }
.hd-brand { display: block; padding: 6px 0; }
.hd-marks { transition: color .45s var(--ease); }
.hd-logo:hover .hd-marks, .hd-logo:focus-within .hd-marks { color: var(--hd-hover); }   /* the mark stays put: only its colour answers */
.hd-drop { position: absolute; left: -12px; top: calc(100% + 6px); display: grid; gap: 2px; min-width: 210px; padding: 8px; border-radius: 16px; background: var(--hd-panel); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 14px 40px rgba(28, 20, 34, .16); opacity: 0; visibility: hidden; transform: translateY(-10px); clip-path: inset(0 0 100% 0 round 16px); transition: opacity .3s var(--ease), transform .5s var(--ease), clip-path .55s var(--ease), visibility 0s linear .55s; }
.hd-logo.is-open .hd-drop { opacity: 1; visibility: visible; transform: none; clip-path: inset(0 0 0 0 round 16px); transition-delay: 0s; }
.hd-drop a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 12px; border-radius: 10px; opacity: 0; transform: translateY(-8px); transition: background-color .3s, opacity .35s var(--ease), transform .5s var(--ease); }
.hd-logo.is-open .hd-drop a { opacity: 1; transform: none; }
.hd-logo.is-open .hd-drop a:nth-child(2) { transition-delay: .07s; }
.hd-drop a:hover, .hd-drop a:focus-visible { background: color-mix(in srgb, currentColor 11%, transparent); }
.hd-drop-mark { width: 56px; height: 26px; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.hd-drop a:hover .hd-drop-mark { transform: translateX(3px); }
.hd-drop .label { opacity: .72; }
html .hd[data-peek] .hd-mark { opacity: 0; transform: translateY(-45%); }
html .hd[data-peek="realty"] .hd-mark[data-for="realty"], html .hd[data-peek="construction"] .hd-mark[data-for="construction"] { opacity: 1; transform: none; }

/* the two menu lines wave when touched (and when Enquire is), and stretch once in a while on their own */
.hd-menu-lines::before { transform-origin: right center; }
.hd-menu-lines::after { transform-origin: left center; }
.hd-menu:hover .hd-menu-lines::before, .hd-menu.is-sym .hd-menu-lines::before { animation: hd-line .8s var(--ease-io) infinite alternate; }
.hd-menu:hover .hd-menu-lines::after, .hd-menu.is-sym .hd-menu-lines::after { animation: hd-line .8s var(--ease-io) -.4s infinite alternate; }
.hd-menu.is-nudge .hd-menu-lines::before { animation: hd-line .45s var(--ease-io) 2 alternate; }
.hd-menu.is-nudge .hd-menu-lines::after { animation: hd-line .45s var(--ease-io) .12s 2 alternate; }
@keyframes hd-line { to { transform: scaleX(.42); } }
html.menu-open .hd-menu-lines::before, html.menu-open .hd-menu-lines::after { animation: none; transform-origin: center; }

/* sound: four little bars that dance while it plays */
.hd-sound { display: inline-flex; align-items: flex-end; justify-content: center; gap: 2.5px; width: 20px; height: 13px; padding: 10px 6px; box-sizing: content-box; color: inherit; }
.hd-sound { position: relative; }
.hd-sound i { display: block; width: 2px; height: 40%; border-radius: 1px; background: currentColor; opacity: .55; transition: height .4s var(--ease), opacity .4s; }
.hd-sound i:nth-child(2) { height: 75%; } .hd-sound i:nth-child(3) { height: 55%; } .hd-sound i:nth-child(4) { height: 90%; }
html.sound-on .hd-sound i { opacity: 1; }
.hd-sound::after { content: attr(data-label); position: absolute; left: 50%; top: calc(100% + 2px); transform: translate(-50%, -4px); font-family: var(--mono); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.hd-sound:hover::after, .hd-sound:focus-visible::after { opacity: .8; transform: translate(-50%, 0); }
html.sound-on .hd-sound i { animation: hd-eq .9s ease-in-out infinite alternate; }
html.sound-on .hd-sound i:nth-child(2) { animation-duration: .62s; animation-delay: -.3s; }
html.sound-on .hd-sound i:nth-child(3) { animation-duration: .78s; animation-delay: -.5s; }
html.sound-on .hd-sound i:nth-child(4) { animation-duration: .55s; animation-delay: -.1s; }
@keyframes hd-eq { from { height: 18%; } to { height: 100%; } }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.menu-sound { color: inherit; padding: 8px 0; }
@media (max-width: 699px) { .hd-cta { gap: 16px; } }

/* a soft ring wherever you tap */
.tap-ring { position: fixed; z-index: 190; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 1.5px solid var(--purple); pointer-events: none; animation: tap-ring .7s var(--ease) forwards; }
.tap-ring.on-dark { border-color: var(--ice); }
@keyframes tap-ring { from { transform: scale(.25); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }

/* labels roll: the word slides up and its twin rises from below, letter by letter */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll-a, .roll-b { display: block; white-space: nowrap; }
.roll-b { position: absolute; left: 0; top: 0; }
.roll i { display: inline-block; font-style: normal; transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 13ms); }
.roll-b i { transform: translateY(112%); }
a:hover > .roll .roll-a i, button:hover > .roll .roll-a i, a:focus-visible > .roll .roll-a i, button:focus-visible > .roll .roll-a i { transform: translateY(-112%); }
a:hover > .roll .roll-b i, button:hover > .roll .roll-b i, a:focus-visible > .roll .roll-b i, button:focus-visible > .roll .roll-b i { transform: none; }

/* big letters hop away from the cursor */
.hop-w { display: inline-block; white-space: nowrap; }
.hop { display: inline-block; transition: transform .38s cubic-bezier(.34, 1.56, .64, 1); }

/* the cursor: a dot, and a ring that follows a beat behind and reads what it is over */
html.has-cur, html.has-cur * { cursor: none !important; }
html.has-cur input, html.has-cur textarea { cursor: text !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; color: var(--purple); opacity: 0; transition: opacity .3s, color .3s; }
.cur.is-on { opacity: 1; }
.cur.on-dark { color: var(--ice); }
.cur[data-mode="text"] { opacity: 0; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; will-change: transform; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: currentColor; transition: opacity .25s; }
.cur-ring-in { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; transition: transform .5s var(--ease), background-color .3s, border-color .3s, opacity .3s; }
.cur-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-family: var(--mono); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .25s, transform .4s var(--ease); }
.cur[data-mode="link"] .cur-ring-in { transform: scale(1.55); background: color-mix(in srgb, currentColor 9%, transparent); }
.cur[data-mode="view"] .cur-ring-in { transform: scale(2.4); background: currentColor; border-color: transparent; }
.cur[data-mode="view"] .cur-dot { opacity: 0; }
.cur[data-mode="view"] .cur-label { opacity: 1; color: var(--ice); }
.cur.on-dark[data-mode="view"] .cur-label { color: var(--purple); }
.cur[data-mode="lens"] .cur-ring-in { transform: scale(.3); opacity: 0; }
.cur[data-mode="lens"] .cur-label { opacity: 1; color: var(--ice); transform: translate(-50%, 34px); padding: 6px 11px; border-radius: 999px; background: rgba(30, 22, 36, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cur.is-down .cur-ring-in { transform: scale(.75); }

/* photographs tilt to the cursor, with a little light following it */
.tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease); }
.tilt.is-tilt { transition: transform .18s linear; }
.tilt::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 46%); opacity: 0; transition: opacity .45s; }
.tilt.is-tilt::before { opacity: 1; }

/* the footer mark and the family answer the cursor too */
.ft-mark { transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), color .4s; }
.ft-mark:hover { transform: rotate(-4deg) scale(1.06); color: var(--maroon); }
.ft-family a { transition: opacity .3s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.ft-family a:hover { transform: translateY(-4px) rotate(-3deg); }
.ft-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ft-links a { position: relative; opacity: .82; transition: opacity .3s; }
.ft-links a:hover { opacity: 1; }
.begin-cap { top: auto; bottom: clamp(22px, 4.4vh, 44px); }
@media (max-width: 699px) { .begin-cap { display: none; } }

/* ------------------------------------------------------------------ HPAD Learning: the studio's courses (their own site) */
.learn { background: var(--ice); color: var(--purple); padding: clamp(80px, 12vh, 150px) 0; overflow: hidden; }
.learn-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 72px); }
.learn-title { margin: 0; font-family: var(--mono); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 7.4vw, 8.8rem); line-height: .88; letter-spacing: -.045em; color: var(--maroon); }
.learn-art { position: relative; display: block; border-radius: 6px; overflow: hidden; animation: learn-float 7s ease-in-out infinite alternate; }
.learn-art img { width: 100%; height: auto; display: block; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; }
@keyframes learn-float { from { translate: 0 -6px; } to { translate: 0 6px; } }
.learn-kicker { color: var(--grey); margin-bottom: 18px; }
.learn-line { margin-top: 26px; max-width: 34ch; font-weight: 300; font-size: clamp(1.05rem, .95rem + .4vw, 1.35rem); line-height: 1.35; }
.learn-actions { margin-top: 30px; }
@media (max-width: 899px) { .learn-in { grid-template-columns: 1fr; } .learn-title { font-size: 15vw; } }
@media (prefers-reduced-motion: reduce) { .learn-art { animation: none; } }

/* ------------------------------------------------------------------ departments: Landscape all green, Visions black and white */
.dch[data-dept="landscape"] { color: var(--olive); --btn-bg: var(--olive); --btn-hover: #36341A; }
.dch[data-dept="landscape"] .dch-art [fill="#493D51"], .dch[data-dept="landscape"] .dch-art [fill="#563D40"] { fill: var(--olive); }
.dch[data-dept="landscape"] .dch-art [fill="#A3A48F"] { fill: #A4AC6B; }
.dch[data-dept="visions"] { background: #0E0D10; color: var(--ice); --btn-bg: var(--ice); --btn-ink: #0E0D10; --btn-hover: #D9CFDF; }
.dch[data-dept="visions"] .dch-art svg { filter: grayscale(1) invert(1) brightness(1.15); }
.dch[data-dept="visions"] .dch-img { background: #1b1a1f; }
.dch[data-dept="visions"] .dch-img img { filter: grayscale(1) contrast(1.06); object-position: 18% 50%; transition: transform 1.2s var(--ease), filter .9s var(--ease); }
.dch[data-dept="visions"] .dch-img:hover img { filter: grayscale(0); }
.hrun-depts .dch-kicker { z-index: 6; mix-blend-mode: difference; color: #8f8c86; }

/* the doodles (js/doodles.js): one field over the departments run that stays with the visitor while the panels slide
   under it; the objects route around the words and photographs, so the field can sit on top, never in the way of a
   click. Karan 23 Oct: Architecture, Interior and Styling mix HPAD purple, maroon and green (dd-p, dd-m, dd-g),
   Landscape is all green (dd-l), Visions white and grey on its night panel (dd-v) */
.dd-field { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; overflow: clip; }
.dch > .dch-n, .dch > .dch-line, .dch > .dch-open, .dch > .dch-img, .dch > .dch-name { z-index: 2; }
.dd { position: absolute; left: 0; top: 0; perspective: 420px; will-change: transform; }
.dd-flip { position: absolute; inset: 0; }
.dd-in { position: absolute; inset: 0; }
.dd-pc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hrun.dd-measure .dch > * { transition: none !important; transform: none !important; }
.dd-p { --dd-ink: #3B3142; --dd-fill: #8F829B; --dd-soft: #E6E1EC; --dd-accent: #563D40; }
.dd-m { --dd-ink: #4A3336; --dd-fill: #A27B7F; --dd-soft: #F0E4E2; --dd-accent: #493D51; }
.dd-g { --dd-ink: #4E4A26; --dd-fill: #A4AC6B; --dd-soft: #E8EBD8; --dd-accent: #563D40; }
.dd-l { --dd-ink: #4E4A26; --dd-fill: #A4AC6B; --dd-soft: #DDE2C0; --dd-accent: #563D40; }
.dd-v { --dd-ink: #F4F9FD; --dd-fill: #9A979F; --dd-soft: #6F6C78; --dd-accent: #F4F9FD; }

/* ------------------------------------------------------------------ founder: Hiren, then Karan, then Anushri (js/founder.js) */
#founder { display: block; min-height: 0; }
.founder-pin { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); height: 100vh; height: 100svh; background: var(--purple); }
#founder .founder-photo { min-height: 0; height: 100%; }
#founder .founder-photo img { transition: filter 1s var(--ease); }
#founder[data-who="karan"] .founder-photo img, #founder[data-who="anushri"] .founder-photo img { filter: brightness(.82); }
.founder-side { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 120px); }
.founder-quotes { display: grid; }
.fq { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .8s var(--ease); }
.fq.is-on { opacity: 1; transform: none; }
.fq-text { font-family: var(--mono); text-transform: uppercase; font-size: clamp(1.35rem, .7rem + 1.9vw, 2.6rem); line-height: 1.12; letter-spacing: -.035em; max-width: 18ch; }
.fq footer { margin-top: 28px; opacity: .65; }
/* each word lights up as it is spoken, a wipe from left to right inside the word */
.kw { --p: 0%; background: linear-gradient(90deg, var(--ice) var(--p), rgba(244, 249, 253, .44) var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.founder-faces { display: flex; gap: 14px; margin-top: 36px; min-height: 60px; }
.ff { width: clamp(52px, 4.4vw, 72px); aspect-ratio: 1; margin: 0; border-radius: 4px; overflow: hidden; opacity: 0; transform: scale(.3) translateY(12px); transition: opacity .4s var(--ease), transform .7s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s var(--ease); }
.ff.is-in { opacity: .7; transform: none; }
.ff.is-speaking { opacity: 1; box-shadow: 0 0 0 1.5px var(--ice); }
.ff img { display: block; width: 100%; height: 100%; object-fit: cover; }
#founder.is-static .fq { grid-area: auto; opacity: 1; transform: none; margin-bottom: 34px; }
#founder.is-static .founder-pin { height: auto; min-height: 100vh; }
@media (max-width: 899px) {
  .founder-pin { grid-template-columns: 1fr; grid-template-rows: 47% 1fr; }
  #founder .founder-photo { aspect-ratio: auto; height: 100%; }
  .founder-side { justify-content: flex-start; padding: 26px var(--gut) 30px; }
  .fq footer { margin-top: 16px; }
  .founder-faces { margin-top: 20px; }
  #founder.is-static .founder-pin { grid-template-rows: auto auto; }
  #founder.is-static .founder-photo { aspect-ratio: 4 / 4.4; }
}

/* the header tucks away while scrolling down (js/site.js tuck) */
.hd { transition: color .6s var(--ease), transform .55s var(--ease); }
html.hd-hide .hd { transform: translateY(-115%); }
@media (prefers-reduced-motion: reduce) { html.hd-hide .hd { transform: none; } }

/* small things rise into place as they arrive (js/play.js) */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) var(--rvd, 0s), transform 1.05s var(--ease) var(--rvd, 0s); }
.rv.is-rv { opacity: 1; transform: none; }

/* QC 23 Oct: the header stays readable over the bright places; the hero caption over foliage on phones */
.world-img::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 24%; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(18, 12, 24, .34), rgba(18, 12, 24, 0)); }
.hero-cap .label { text-shadow: 0 1px 10px rgba(18, 12, 24, .55); }
.hero-hint { display: none; }
@media (hover: none) {
  html[data-hero="ready"] .hero-hint { display: block; position: absolute; left: 50%; bottom: calc(clamp(22px, 4.4vh, 44px) + 38px); transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(30, 22, 36, .48); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ice); white-space: nowrap; animation: hint-in .8s var(--ease) .8s both; transition: opacity .5s var(--ease); }
  .hero.is-touched .hero-hint { opacity: 0; }
}
@keyframes hint-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* how far down the page you are: a 2 px line along the top edge, in the header's ink */
body::after { content: ""; position: fixed; left: 0; top: 0; z-index: 61; width: 100%; height: 2px; background: var(--maroon); opacity: .8; transform: scaleX(var(--prog, 0)); transform-origin: left center; pointer-events: none; }
html[data-theme="photo"] body::after, html[data-theme="purple"] body::after, html[data-theme="hpar"] body::after, html[data-theme="zen"] body::after,
html[data-theme="mod"] body::after, html[data-theme="night"] body::after, html[data-theme="hero"] body::after { background: var(--ice); }

/* Karan, 23 Oct: the departments' objects in HPAD maroon and green only, never purple */
.dch:not([data-dept="visions"]):not([data-dept="landscape"]) .dch-art [fill="#493D51"] { fill: var(--maroon); }
.dch:not([data-dept="visions"]):not([data-dept="landscape"]) .dch-art [fill="#BDB6C6"], .dch:not([data-dept="visions"]):not([data-dept="landscape"]) .dch-art [fill="#A99A9C"] { fill: #A4AC6B; }
.dch:not([data-dept="visions"]):not([data-dept="landscape"]) .dch-art [fill="#DCD8E1"] { fill: #E3E6CF; }
.dch:not([data-dept="visions"]):not([data-dept="landscape"]) .dch-art [fill="#787570"] { fill: var(--olive); }

/* QC round 2 (23 Oct) */
/* focus is always visible: filled buttons ring in their own fill colour, the sheet's tabs in ice; the header shows when it holds focus */
.btn-fill:focus-visible { outline: 2px solid var(--btn-bg, var(--purple)); outline-offset: 3px; }
.sheet-panel [role="tab"]:focus-visible, .sheet-panel :focus-visible { outline-color: var(--ice); }
html.hd-hide .hd:focus-within { transform: none; }
/* the still hero (reduced motion, no WebGL, slow phones): words readable over the pale path */
html[data-hero="static"] .hero-words { text-shadow: 0 2px 18px rgba(18, 12, 24, .65); }
html[data-hero="static"] .hero::after { height: 48%; background: linear-gradient(to top, rgba(18, 12, 24, .62), rgba(18, 12, 24, 0)); }
/* the footer's A Note of Zen mark: its hairlines thickened a touch at small size */
.fam-zen { filter: drop-shadow(0 0 .35px currentColor) drop-shadow(0 0 .35px currentColor); }
/* phones: the touch hint stays inside the gutters; the scroll cue waits until the first touch */
@media (hover: none) {
  html[data-hero="ready"] .hero-hint { max-width: calc(100vw - 2 * var(--gut)); white-space: normal; text-align: center; }
  html[data-hero="ready"] .hero:not(.is-touched) .hero-down { opacity: 0; }
}
/* the enquiry sheet's thank-you state */
.tabs[hidden] { display: none !important; }
.sent:focus { outline: none; }
/* the copyright line on a narrow phone */
@media (max-width: 400px) { .ft-base .label { letter-spacing: .1em; } }
/* email addresses in lowercase wherever they are set in capitals */
a[href^="mailto:"] { text-transform: none; }

/* QC round 2: a section that takes the focus from a skip or anchor link shows no ring */
[tabindex="-1"]:focus { outline: none; }
/* QC round 2: the curved wall's keyboard pill (the focused project's name, under the lit card) */
.curve-pill { position: absolute; left: 50%; bottom: clamp(22px, 5vh, 50px); z-index: 4; margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--ice); color: var(--purple); white-space: pre; pointer-events: none;
  outline: 2px solid var(--ice); outline-offset: 3px; opacity: 0; transform: translate(-50%, 8px); transition: opacity .3s var(--ease), transform .45s var(--ease); }
.curve-pin.is-focus .curve-pill { opacity: 1; transform: translate(-50%, 0); }
.curve-flat .curve-pill { display: none; }
/* QC round 2: the header bars follow the real sound level (js/sound.js), so the looping dance stops while they do */
html.sound-on.sound-live .hd-sound i { animation: none; transition: height .09s linear, opacity .4s; }
/* QC round 2: a phrase that must not break across lines */
.nw { white-space: nowrap; }

/* the footer's last word, said quietly */
.ft-credit { opacity: .7; }

/* the departments, minimal (Karan, 23 Oct): no doodles (js/doodles.js and assets/doodles are kept, not loaded); each
   department has its own slightly different paper and that is the only transition. In the sideways run the panels are
   clear and the run's colour blends from one paper to the next as the page scrolls (js/site.js); Visions keeps its night */
.dch[data-dept="architecture"] { --paper: #F4F9FD; background: var(--paper); }
.dch[data-dept="interior"] { --paper: #F7F1EE; background: var(--paper); }
.dch[data-dept="landscape"] { --paper: #EFF3E6; background: var(--paper); }
.dch[data-dept="styling"] { --paper: #F4EFF6; background: var(--paper); }
.hrun-depts.is-h .dch:not([data-dept="visions"]) { background: transparent; }
.hrun-depts.is-h .hrun-pin { background: var(--dept-bg, #F4F9FD); }

/* review 01, 23 Oct (marketing): */
/* the enquiry: the project it is about, optional fields marked, the studio visit with its day and directions */
.sheet-about { margin: 0 0 14px; opacity: .8; }
.field .opt { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .6; margin-left: 6px; }
.visit-note { display: none; margin: 0 0 16px; opacity: .85; }
.visit-note a { text-decoration: underline; text-underline-offset: 3px; }
.form:has(input[value="studio"]:checked) .visit-note { display: block; }
.form:has(input[value="studio"]:checked) [data-via="whatsapp"] { display: none; }   /* the studio answers by email */
/* the homepage says what HPAD is, and offers the work */
.hero-intro { margin: 0 0 16px; max-width: 34ch; font-weight: 300; font-size: clamp(1.02rem, .92rem + .45vw, 1.35rem); line-height: 1.35; text-shadow: 0 1px 12px rgba(18, 12, 24, .55); }
.hero-go { pointer-events: auto; margin-bottom: 18px; }
@media (max-width: 699px) { .hero-cap { max-width: none; right: var(--gut); } .hero-intro { font-size: 1.02rem; } }
html[data-hero="ready"] .hero-hint { display: none; }   /* the intro takes the hint's place once the photograph is open */
/* the contact page holds more addresses: long ones wrap */
.contact-big { overflow-wrap: anywhere; }
/* larger touch targets in the header */
@media (pointer: coarse) { .hd-sound { padding: 15px 10px; } .hd-link { padding: 14px 4px; } .hd-menu { width: 44px; height: 44px; } }
.ft-top { text-decoration: underline; text-underline-offset: 4px; }
/* the intro line needs a deeper shade under it than the caption alone did */
html[data-hero="ready"] .hero::after { height: 50%; background: linear-gradient(to top, rgba(18, 12, 24, .62), rgba(18, 12, 24, .28) 55%, rgba(18, 12, 24, 0)); }
/* the intro line sits on dark glass, readable over any part of the photograph */
.hero-intro { display: inline-block; padding: 12px 16px; border-radius: 14px; background: rgba(24, 20, 28, .42); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); text-shadow: none; }
/* the button under the intro: a line of its own, the label centred, softer corners than a pill (Karan, 23 Oct) */
.hero-intro + .hero-go { display: flex; width: fit-content; }
.hero-go { border-radius: 8px; padding-right: calc(24px - .16em); }   /* the last letter's spacing trails it: the right side gives it back */
