/* Featured projects (js/story.js): the site's tokens, with the storytelling of the Caesar Palm Jumeirah page. */
.st-hero { display: grid; gap: 14px; padding-top: 130px; }
.st-eye { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 18px; }   /* above the title, whose tall letter boxes reach up over it */
.st-eye span { color: var(--ink-muted); }
.st-h { position: relative; pointer-events: none; font: 700 clamp(56px, 12vw, 200px)/.86 var(--sans); letter-spacing: -.06em; }
.st-h__bg { display: block; color: transparent; -webkit-text-stroke: 1px var(--ink); }
.st-h__fill { position: absolute; inset: 0; display: block; color: var(--ink); }
.st-hand { font: 400 clamp(28px, 2.8vw, 44px)/1 var(--hand); color: var(--spot-2); rotate: -3deg; justify-self: end; margin-right: 6vw; }
.st-hand--sm { font-size: clamp(24px, 2vw, 32px); justify-self: start; margin: 0; }
.st-hero__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.st-line { font: 500 clamp(1.2rem, 1.9vw, 1.75rem)/1.25 var(--sans); letter-spacing: -.02em; max-width: 34ch; }
.st-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.st-meta dt { font: 500 .66rem var(--mono); text-transform: uppercase; color: var(--ink-muted); margin-bottom: 3px; }
.st-meta dd { font-size: .95rem; }
.st-cover { margin: 46px var(--gut) 0; height: min(86vh, 820px); border-radius: 22px; overflow: hidden; }
.st-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--focus); transform-origin: 50% var(--focus); display: block; }

/* the signature moment: a heading block shared by all five */
.st-sig { position: relative; margin-top: 120px; }
.st-sig__head { display: grid; gap: 8px; max-width: 30rem; }
.st-sig__head h2 { font: 600 clamp(34px, 4.4vw, 72px)/1 var(--sans); letter-spacing: -.05em; }
.st-sig__text { color: var(--ink-muted); line-height: 1.6; }
.st-pin { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; gap: 28px; padding: 90px var(--gut) 30px; overflow: hidden; }

/* Afik and Caesar: the website scrolls inside a browser window */
.st-browser { height: 320vh; }
.st-browser .st-pin { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: center; }
.st-browser__stage { position: relative; }
.st-win { border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.st-win__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.st-win__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.st-win__bar span { margin: 0 auto; padding: 4px 14px; border-radius: 99px; background: var(--paper); font: 500 .72rem var(--mono); color: var(--ink-muted); }
.st-win__view { height: min(62vh, 560px); overflow: hidden; }
.st-win__strip img { display: block; width: 100%; }
.st-phone { position: absolute; right: -2%; bottom: -8%; width: clamp(110px, 13vw, 190px); aspect-ratio: 390 / 790; border-radius: 26px; padding: 7px; background: #111; box-shadow: 0 30px 60px -20px #0008; }
.st-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; display: block; }

/* Afreman: the page turns black and white with film grain, and the mark rides from a label to a wall */
html:has(body.st-afreman) { color-scheme: dark; background: #0b0b0b; }
body.st-afreman { --paper: #0b0b0b; --surface: #1a1a1a; --card: #141414; --popover: #1c1c1c; --ink: #f2f0ea; --ink-muted: #f2f0ea8c;
  --fill: #f2f0ea12; --line: #f2f0ea14; --divider: #f2f0ea2e; --spot: #f2f0ea; --spot-2: #d9d5cb; --shadow-card: 0 12px 30px -18px #000000b3;
  background: #0b0b0b; color: var(--ink); }
body.st-afreman::after { content: ""; position: fixed; inset: -50%; z-index: 980; pointer-events: none; opacity: .09;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: st-grain .5s steps(4) infinite; }
@keyframes st-grain { 0% { translate: 0 0; } 25% { translate: -4% 3%; } 50% { translate: 3% -2%; } 75% { translate: -2% -4%; } }
body.st-afreman main img, body.st-afreman main video { filter: grayscale(1) contrast(1.06); }
body.st-afreman .st-film.is-colour video, body.st-afreman .st-film.is-colour img { filter: none; }   /* the fashion film keeps its colour */
body.st-afreman .st-ch__n span, body.st-afreman .st-room__n span { color: #0b0b0b; }
body.st-afreman .st-frame__box :is(img, video) { background: #141414; }
.st-rider { height: 300vh; }
.st-rider .st-pin { align-content: end; padding-bottom: 8vh; }
.st-rider__stage { position: absolute; inset: 0; overflow: hidden; }
.st-rider__mark { position: absolute; left: 50%; top: 50%; width: min(56vw, 760px, 96svh); aspect-ratio: 1531 / 1004; transform-origin: 50% 50%; will-change: transform; }
.st-rider__logo { position: absolute; inset: 0; width: 100%; height: 100%; filter: none !important; }

.st-rider__label { position: absolute; left: 50%; top: 50%; width: min(300px, 70vw); aspect-ratio: 2.4; border-radius: 6px; display: grid; place-items: end center; padding-bottom: 12px;
  background: repeating-linear-gradient(90deg, #1d1d1d 0 2px, #161616 2px 4px); box-shadow: 0 0 0 1px #f2f0ea22, inset 0 0 0 6px #121212, inset 0 0 0 7px #f2f0ea33, 0 30px 60px -30px #000; }
.st-rider__label span { font: 500 .78rem var(--sans); letter-spacing: .5em; color: #f2f0eaaa; }
.st-rider__say { position: absolute; right: var(--gut); top: 16vh; font: 400 clamp(30px, 3.4vw, 54px)/1 var(--hand); color: var(--spot-2); rotate: -3deg; opacity: 0; translate: 0 12px; transition: opacity .5s, translate .5s var(--ease); }
.st-rider__say.is-on { opacity: 1; translate: 0 0; }

/* Afik: the company portfolio slides past sideways */
.st-deck { height: 420vh; }
.st-deck .st-pin { padding-left: 0; padding-right: 0; }
.st-deck .st-sig__head { padding: 0 var(--gut); max-width: 44rem; }
.st-deck__track { display: flex; gap: 22px; width: max-content; padding: 0 var(--gut); will-change: transform; }
.st-deck__page { flex: none; width: min(62vw, 980px, calc((100svh - 330px) * 1.7778)); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.st-deck__page:nth-child(odd) { rotate: -.6deg; } .st-deck__page:nth-child(even) { rotate: .6deg; translate: 0 18px; }
.st-deck__page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-deck__count { padding: 0 var(--gut); font: 500 .75rem var(--mono); color: var(--ink-muted); } .st-deck__count b { color: var(--ink); }

/* Afreman: the commercial opens like a cinema screen, in the dark */
.st-film { height: 260vh; }
/* the film takes most of the width; its text sits beside it, centred, with room to breathe on both sides */
.st-film .st-pin { grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); align-items: center; column-gap: clamp(32px, 5vw, 96px); padding-inline: clamp(24px, 5vw, 96px); }
.st-film .st-sig__head { max-width: 24rem; }
.st-film__screen { position: relative; aspect-ratio: 16 / 9; max-height: 72vh; border-radius: 18px; overflow: hidden; background: #000; }
.st-film__screen video { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); }
.st-film.is-colour .st-film__screen video { filter: none; }
.st-film__sound { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 99px; border: 0; background: #fffe; color: #111; font: 500 .74rem var(--mono); text-transform: uppercase; cursor: pointer; }

/* Signature: a calm, warm page (sand paper instead of the site's grey) */
body.st-signature { --paper: #efe9df; --card: #f7f3ec; --popover: #fbf8f2; --ink: #1d1a16; --ink-muted: #1d1a1699; --line: #1d1a1614; --spot: #8a5a2b; --spot-2: #a86c35;
  background: #efe9df; color: var(--ink); }
html:has(body.st-signature) { background: #efe9df; }
body.st-signature .st-h { font-weight: 600; letter-spacing: -.05em; }

/* Signature type: an elegant serif for display, the site's sans for reading */
body.st-signature :is(.st-full__h, .st-hero .st-h, .st-sig__head h2, .ws__head h2, .ws__info h3, .st-summary, .st-ch__n, .st-made__h, .st-metrics b) { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; letter-spacing: -.01em; }
body.st-signature .st-sig__head h2, body.st-signature .ws__head h2 { font-size: clamp(38px, 4.6vw, 76px); font-style: italic; }
body.st-signature .ws__info h3 { font-size: clamp(48px, 6.4vw, 110px); line-height: .9; }
body.st-signature .st-summary { font-size: clamp(1.8rem, 3.2vw, 3.2rem); line-height: 1.12; }
body.st-signature .st-metrics b { font-size: clamp(3.4rem, 6vw, 6rem); }
/* the full-screen cover */
.st-full { position: relative; height: 100svh; margin-top: -130px;   /* sits under the page's top padding, full bleed */ overflow: hidden; color: #f6f1e8; background: #15120e; }
.st-full > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.12; animation: st-full-in 2.6s var(--ease) forwards; filter: brightness(.72); }
@keyframes st-full-in { to { scale: 1; } }
.st-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0006, transparent 35%, transparent 55%, #000a); }
.st-full__in { position: absolute; inset: auto 0 9vh; z-index: 1; display: grid; gap: 10px; }
.st-full__in .st-eye, .st-full__in .st-eye a, .st-full__in .st-eye span { color: #f6f1e8cc; }
.st-full__h { font-size: clamp(64px, 11vw, 190px); line-height: .86; letter-spacing: -.03em; font-style: italic; }
.st-full__in .st-hand { color: #e9b77f; justify-self: start; margin: 0; }
.st-full__cue { position: absolute; right: var(--gut); bottom: 9vh; z-index: 1; font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .2em; writing-mode: vertical-rl; color: #f6f1e8aa; font-style: normal; }
.st-hero--slim { padding-top: 70px; } .st-hero--slim > .st-eye, .st-hero--slim > .st-h, .st-hero--slim > .st-hand { display: none; } .st-hero--slim .st-hero__row { border-top: 0; margin-top: 0; }
/* catalogue-style chapters: roman numerals, a paper page for the pictures */
body.st-signature .st-ch__n { font-size: clamp(32px, 3.2vw, 52px); font-style: italic; }
body.st-signature .st-ch__n span { background: none; color: var(--spot); width: auto; height: auto; font: italic 500 1em "Cormorant Garamond", serif; margin-right: 6px; }
body.st-signature .st-frame__box { background: #fbf8f2; box-shadow: 0 30px 60px -36px #5a40204d, 0 0 0 1px #00000010; }
body.st-signature .st-frame__box :is(img, video) { background: #fbf8f2; padding: 4%; }
body.st-signature .st-frame figcaption em { font: italic 500 1.2rem "Cormorant Garamond", serif; }

/* the workshop: blueprint → studio → home, one piece at a time */
.ws { height: calc(var(--n) * 150vh + 100vh); margin-top: 60px; }
.ws__pin { padding: 0 !important; display: block !important; }
.ws__bg { position: absolute; inset: 0; background: #0f2b4a; transition: background-color .7s; }
.ws__grid { position: absolute; inset: 0; opacity: .5; transition: opacity .7s;
  background-image: linear-gradient(#ffffff14 1px, transparent 1px), linear-gradient(90deg, #ffffff14 1px, transparent 1px), linear-gradient(#ffffff30 1px, transparent 1px), linear-gradient(90deg, #ffffff30 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px; }
.ws[data-stage="built"] .ws__bg { background: var(--studio, #f4efe6); } .ws[data-stage="built"] .ws__grid { opacity: 0; }
.ws[data-stage="home"] .ws__bg { background: #15120e; } .ws[data-stage="home"] .ws__grid { opacity: 0; }
.ws__piece { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; pointer-events: none; }
.ws__piece.is-on { opacity: 1; }
/* the drawing, inverted to white lines on blueprint blue, plotted from the top down with a scan beam */
.ws__dwg { position: absolute; left: 50%; top: 52%; width: min(70vw, 1100px); aspect-ratio: 1.414; translate: -50% -50%; opacity: max(0, 1 - var(--build) * 2.5); }
.ws__dwg img { width: 100%; height: 100%; object-fit: contain;
  clip-path: inset(0 0 calc((1 - var(--plot)) * 100%) 0); }
/* the pen rides the scan line, with live coordinates; the stamp lands when the plot is done */
.ws__pen { position: absolute; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px #7fd0ff; animation: ws-pen 1.1s ease-in-out infinite alternate; }
@keyframes ws-pen { from { left: 6%; } to { left: 92%; } }
.ws__xy { position: absolute; right: 4%; top: 10px; font: 500 .7rem var(--mono); color: #bfe6ff; letter-spacing: .06em; white-space: pre; }
.ws__stamp { position: absolute; right: 16%; top: 14%; padding: 12px 18px 10px; border: 3px solid #ff6b5a; border-radius: 8px; color: #ff6b5a; font: 700 1.05rem/1.05 var(--mono); text-transform: uppercase; letter-spacing: .08em; font-style: normal;
  rotate: -9deg; opacity: clamp(0, (var(--plot) - .92) * 14, 1); scale: calc(1.9 - clamp(0, (var(--plot) - .92) * 14, 1) * .9); mix-blend-mode: screen; }
.ws__stamp small { display: block; margin-top: 6px; font: 500 .6rem var(--mono); letter-spacing: .1em; opacity: .85; }
.ws__scan { position: absolute; left: -4%; right: -4%; height: 2px; top: calc(var(--plot) * 100%); background: #7fd0ff; box-shadow: 0 0 18px 4px #7fd0ffaa; opacity: calc(var(--plot) * (1 - var(--plot)) * 4); }
/* the built piece rises onto a plinth in the studio */
.ws__built { position: absolute; left: 50%; top: 50%; width: min(64vw, 1000px, 110svh); aspect-ratio: 1.3; translate: -50% calc(-50% + (1 - var(--build)) * 60px); opacity: calc(var(--build) * (1 - var(--home))); scale: calc(.92 + var(--build) * .08); }
.ws__built img { width: 100%; height: 100%; object-fit: contain; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); }
.ws__plinth { display: none; }
/* home: the real photo opens from a circle at the piece */
.ws__home { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: circle(calc(var(--home) * 80%) at 50% 52%); scale: calc(1.15 - var(--home) * .15); }
.ws__piece::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, #000a); opacity: var(--home); }
/* the words: white on blueprint and home, dark in the studio */
.ws__head, .ws__info, .ws__rail { position: absolute; z-index: 2; color: #f4efe6; transition: color .6s; }
.ws[data-stage="built"]:not(.is-dark-studio) :is(.ws__head, .ws__info, .ws__rail) { color: #1d1a16; }
.ws__head { left: var(--gut); top: 96px; }
.ws__head h2 { font: 600 clamp(28px, 3vw, 48px)/1 var(--sans); letter-spacing: -.045em; }
.ws__head .st-hand { color: #e9b77f; }
.ws__info { left: var(--gut); bottom: 8vh; max-width: 30rem; }
.ws__info h3 { font: 600 clamp(36px, 5vw, 84px)/.95 var(--sans); letter-spacing: -.055em; }
.ws__info .mono { font: 500 .78rem var(--mono); letter-spacing: .08em; opacity: .7; margin-top: 8px; }
.ws__count b { opacity: 1; }
.ws__where { font: 400 clamp(24px, 2.2vw, 34px)/1 var(--hand); color: #e9b77f; margin-top: 10px; }
.ws[data-stage="built"]:not(.is-dark-studio) .ws__where { color: var(--spot); }
.ws__rail { right: var(--gut); bottom: 8vh; list-style: none; display: grid; gap: 12px; font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.ws__rail li { display: flex; align-items: center; gap: 10px; opacity: .35; transition: opacity .4s; }
.ws__rail li i { width: 26px; height: 2px; background: currentColor; transform-origin: left; scale: .4 1; transition: scale .5s var(--ease); }
.ws__rail li.is-done { opacity: .6; } .ws__rail li.is-on { opacity: 1; } .ws__rail li.is-on i { scale: 1 1; }

/* find our furniture: a full-width room, one piece annotated at a time with a hairline callout */
.rm { margin-top: 120px; }
.rm__frame { position: relative; width: min(calc(100% - 2 * var(--gut)), calc(88vh * var(--ar, 1.333))); margin: 0 auto; border-radius: 20px; overflow: hidden; background: #15120e; color: #f6f1e8; transition: width .8s var(--ease); }
.rm__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #0009 0%, transparent 28%, transparent 62%, #000a 100%); }
.rm__room { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s, visibility .9s; }
.rm__room.is-on { position: relative; opacity: 1; visibility: visible; }
.rm__room > img { display: block; width: 100%; height: auto; transform: scale(1.06); transition: transform 6s linear; }
.rm__room.is-on > img { transform: scale(1); }
/* the marker: a small dot with a breathing ring */
.rm__spot { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: 30px; height: 30px; translate: -50% -50%; padding: 0; border: 0; background: none; cursor: pointer; }
.rm__spot i { position: absolute; inset: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 #ffffff80; animation: rm-breathe 2.8s ease-in-out infinite; transition: inset .4s var(--ease); }
.rm__spot.is-on i { inset: 9px; animation: none; box-shadow: 0 0 0 6px #ffffff3d; }
@keyframes rm-breathe { 0%, 100% { box-shadow: 0 0 0 0 #ffffff70; } 50% { box-shadow: 0 0 0 9px #ffffff00; } }
/* the callout: a hairline from the dot to a small label */
.rm__tag { position: absolute; left: 30px; top: 50%; display: grid; gap: 2px; padding-left: 64px; translate: 0 -50%; text-align: left; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .5s; }
.rm__tag::before { content: ""; position: absolute; left: 0; top: 50%; width: 52px; height: 1px; background: #fff; transform-origin: left; scale: 0 1; transition: scale .6s var(--ease); }
.rm__spot.is-on .rm__tag { opacity: 1; } .rm__spot.is-on .rm__tag::before { scale: 1 1; }
.rm__spot.is-left .rm__tag { left: auto; right: 30px; padding: 0 64px 0 0; text-align: right; } .rm__spot.is-left .rm__tag::before { left: auto; right: 0; transform-origin: right; }
.rm__tag b { font: italic 500 1.6rem/1 "Cormorant Garamond", serif; color: #fff; text-shadow: 0 2px 16px #0009; }
.rm__tag small { font: 500 .62rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #ffffffc0; text-shadow: 0 1px 8px #0009; }
/* the words over the photo */
.rm__top { position: absolute; z-index: 3; left: clamp(20px, 3vw, 44px); top: clamp(20px, 3vw, 40px); max-width: 26rem; pointer-events: none; }
.rm__top h2 { font: italic 500 clamp(34px, 4vw, 64px)/1 "Cormorant Garamond", serif; }
.rm__top p { margin-top: 10px; font-size: .92rem; line-height: 1.5; color: #f6f1e8b3; }
.rm__bottom { position: absolute; z-index: 3; left: clamp(20px, 3vw, 44px); right: clamp(20px, 3vw, 44px); bottom: clamp(18px, 2.6vw, 34px); display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.rm__tabs { display: flex; gap: 26px; }
.rm__tabs button { position: relative; padding: 4px 0; border: 0; background: none; color: #f6f1e899; font: italic 500 1.5rem "Cormorant Garamond", serif; cursor: pointer; transition: color .3s; }
.rm__tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #fff; scale: 0 1; transform-origin: left; transition: scale .5s var(--ease); }
.rm__tabs button[aria-selected="true"] { color: #fff; } .rm__tabs button[aria-selected="true"]::after { scale: 1 1; }
.rm__sign { font: 500 .62rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #f6f1e8a0; }

/* the collection: four pieces large, the rest as a catalogue list; a row's photo follows the cursor */
.ix { position: relative; padding: 110px 0 60px; }
.ix .container { display: grid; gap: 34px; }
.ix__hero { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.25fr; gap: 14px; align-items: end; }
.ix__big { margin: 0; display: grid; gap: 10px; opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease) calc(var(--k) * 90ms), transform 1.1s var(--ease) calc(var(--k) * 90ms); }
.ix__big:nth-child(2), .ix__big:nth-child(3) { margin-bottom: 60px; }
.ix.is-in .ix__big { opacity: 1; transform: none; }
.ix__big > div { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; }
.ix__big img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) sepia(.08); transition: transform 1.4s var(--ease); }
.ix__big:hover img { transform: scale(1.05); }
.ix__big figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ix__big b { font: italic 500 1.4rem "Cormorant Garamond", serif; } .ix__big .mono { font: 500 .62rem var(--mono); letter-spacing: .08em; color: var(--ink-muted); }
.ix__list { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); columns: 2; column-gap: 60px; }
.ix__row { break-inside: avoid; display: grid; grid-template-columns: 34px 1fr auto; column-gap: 12px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: default;
  opacity: 0; transform: translateY(10px); transition: opacity .6s calc(var(--k) * 25ms), transform .6s var(--ease) calc(var(--k) * 25ms), background .3s, padding .4s var(--ease); }
.ix.is-list .ix__row { opacity: 1; transform: none; }
.ix__row > .mono:first-child { font: 500 .66rem var(--mono); color: var(--spot); }
.ix__row b { font: italic 500 clamp(1.25rem, 1.6vw, 1.6rem) "Cormorant Garamond", serif; }
.ix__row .ix__fam { display: none; } .ix__row > .mono:last-child { font: 500 .62rem var(--mono); letter-spacing: .08em; color: var(--ink-muted); }
.ix__row:hover { padding-left: 14px; background: #ffffff59; }
.ix__peek { position: absolute; left: 0; top: 0; z-index: 5; width: 260px; aspect-ratio: 4 / 5; pointer-events: none; opacity: 0; scale: .85; transition: opacity .3s, scale .4s var(--ease); }
.ix__peek.is-on { opacity: 1; scale: 1; }
.ix__peek img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; box-shadow: 0 30px 60px -24px #3a2a1680; }
.ix__peek [data-peek-ph] { object-fit: cover; }
.ix__peek [data-peek-bp] { object-fit: contain; padding: 8%; background: #0f2b4a; translate: 26px 22px; rotate: 4deg; }

/* the palette: tall chips that rise in one after another */
.sw .container { display: grid; gap: 30px; }
.sw__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 46vh; align-items: end; }
.sw__chip { height: 100%; border-radius: 16px; background: var(--c); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 16px; color: #fff;
  box-shadow: inset 0 0 0 1px #0000000f; clip-path: inset(100% 0 0 0 round 16px); transition: clip-path 1s var(--ease) calc(var(--k) * .1s); }
.sw__chip:nth-child(-n+3) { color: #1d1a16; }
.sw.is-in .sw__chip { clip-path: inset(0 0 0 0 round 16px); }
.sw__chip span:first-child { font-weight: 600; } .sw__chip .mono { font: 500 .7rem var(--mono); opacity: .7; }
.sw__chip:hover { flex-grow: 1; }

/* Balance Cafe: four logo directions settle into one stack of stones */
.st-stones { height: 280vh; }
.st-stones .st-pin { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); align-items: center; }
.st-stones__stage { display: flex; flex-direction: column-reverse; align-items: center; }
.st-stone { width: calc(clamp(170px, 22vw, 330px) * (1 - var(--k) * .14)); aspect-ratio: 1.5; margin-top: -2%; border-radius: 50% / 46%; overflow: hidden; background: #f1f0ea; box-shadow: 0 24px 40px -22px #0007, 0 0 0 1px var(--line); }
.st-stone img { width: 100%; height: 100%; object-fit: contain; padding: 8% 16%; display: block; }

/* Caesar Projects: the family of logos turns in, one by one */
.st-logos .container { display: grid; gap: 40px; }
.st-logos__wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; perspective: 1200px; }
.st-logo { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center;
  opacity: 0; transform: translateY(30px) rotateY(80deg); transition: transform 1s var(--ease) calc(var(--i) * 90ms), opacity .6s calc(var(--i) * 90ms); }
.st-logos__wall.is-in .st-logo { opacity: 1; transform: none; }
.st-logo img { width: 100%; height: 100%; object-fit: contain; display: block; transition: scale .6s var(--ease); }
.st-logo:hover img { scale: 1.06; }

/* the chapters: text on the left, a pinned frame whose picture changes with each chapter */
.st-story { margin-top: 140px; }
.st-summary { font: 500 clamp(1.5rem, 2.8vw, 2.6rem)/1.22 var(--sans); letter-spacing: -.03em; max-width: 30ch; margin-bottom: 80px; }
.st-story__grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.6fr); gap: 56px; }
.st-story__text { display: grid; padding-bottom: 20vh; }
.st-ch { min-height: 70vh; display: grid; align-content: center; gap: 14px; opacity: .3; transition: opacity .6s; }
.st-ch.is-on { opacity: 1; }
.st-ch__n { display: flex; align-items: center; gap: 12px; font: 600 clamp(26px, 2.6vw, 42px)/1.05 var(--sans); letter-spacing: -.04em; }
.st-ch__t { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.65; color: var(--ink-muted); max-width: 42ch; }
.st-frame { position: sticky; top: 12vh; align-self: start; display: grid; gap: 10px; }
/* slide-shaped, so the presentations and renders fill it; a click opens the current picture at full size */
.st-frame__box { position: relative; aspect-ratio: 16 / 10; max-height: 76vh; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); cursor: zoom-in; }
/* whole pictures, never cropped: a slide or a document shows edge to edge on the card */
.st-frame__box img, .st-frame__box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--card); clip-path: inset(100% 0 0 0); scale: 1.08;
  transition: clip-path .9s cubic-bezier(.7, 0, .2, 1), scale 1.4s cubic-bezier(.2, .7, .2, 1); }
.st-frame__box :is(img, video).was-on { clip-path: inset(0); scale: 1; z-index: 0; transition: none; }
.st-frame__box :is(img, video).is-on { clip-path: inset(0); scale: 1; z-index: 1; }
.st-frame figcaption { display: flex; align-items: baseline; gap: 8px; font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
.st-frame figcaption b { color: var(--ink); font-weight: 600; }
.st-frame figcaption em { font: 400 .88rem var(--sans); font-style: normal; text-transform: none; letter-spacing: 0; margin-left: 6px; }

/* what I made, and the rest of the pictures */
.st-made { padding: 60px 0 40px; display: grid; gap: 30px; }
.st-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 40px 0; border-block: 1px solid var(--line); }
.st-metrics b { display: block; font: 600 clamp(2.6rem, 5vw, 4.6rem)/1 var(--sans); letter-spacing: -.05em; }
.st-metrics span { color: var(--ink-muted); font-size: .92rem; }
.st-made__h { font: 600 clamp(28px, 3vw, 44px)/1 var(--sans); letter-spacing: -.045em; }
.st-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.st-features > div { padding: 20px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; align-content: start; gap: 6px; }
.st-features .mono { font-size: .7rem; color: var(--spot-2); }
.st-features b { font-weight: 600; } .st-features p { font-size: .92rem; line-height: 1.5; color: var(--ink-muted); }
.st-more { display: grid; gap: 26px; padding: 50px 0 100px; }
.st-gallery { columns: 3; column-gap: 12px; }
.st-gallery a { display: block; margin-bottom: 12px; border-radius: 12px; overflow: hidden; break-inside: avoid; }
.st-gallery img { width: 100%; display: block; transition: scale .8s var(--ease); }
.st-gallery a:hover img { scale: 1.04; }

@media (max-width: 1023px) {
  .st-hero { padding-top: 100px; }
  .st-hand { justify-self: start; margin: 0; }
  .st-hero__row { grid-template-columns: 1fr; gap: 20px; }
  .st-cover { height: 60vh; margin-top: 30px; }
  .st-sig { margin-top: 80px; }
  .st-pin { padding: 76px var(--gut) 20px; gap: 18px; }
  .st-browser .st-pin, .st-film .st-pin, .st-stones .st-pin { grid-template-columns: 1fr; align-content: center; }
  .st-browser { height: 260vh; } .st-win__view { height: 44vh; }
  .ws { height: calc(var(--n) * 130vh + 100vh); }
  .ws__dwg { width: 92vw; top: 46%; } .ws__built { width: 86vw; top: 44%; } .ws__head { top: 76px; }
  .ws__info { bottom: 18vh; } .ws__info h3 { font-size: 34px; } .ws__rail { left: var(--gut); right: auto; bottom: 6vh; grid-auto-flow: column; gap: 12px; font-size: .62rem; }
  .ws__rail li i { width: 12px; }
  .ix__hero { grid-template-columns: 1fr 1fr; } .ix__big:nth-child(2), .ix__big:nth-child(3) { margin-bottom: 0; } .ix__list { columns: 1; } .ix__peek { display: none; } .ix { padding: 70px 0 30px; }
  .sw__row { grid-template-columns: repeat(3, 1fr); height: auto; } .sw__chip { height: 22vh; }
  .rm__frame { width: calc(100% - 20px); } .rm__top p { display: none; } .rm__tag b { font-size: 1.15rem; } .rm__tag { padding-left: 40px; } .rm__tag::before { width: 32px; } .rm__spot.is-left .rm__tag { padding-right: 40px; } .rm__tabs { gap: 16px; } .rm__tabs button { font-size: 1.2rem; } .rm__sign { display: none; }
  .st-full__h { font-size: 22vw; } .ws__stamp { right: 6%; top: 6%; font-size: .8rem; } .rm__spot { width: 22px; height: 22px; }
  .st-deck { height: 380vh; } .st-deck__page { width: 84vw; }
  .st-rider { height: 260vh; } .st-rider__mark { width: 78vw; } .st-rider__say { top: 12vh; }
  .st-phone { width: 92px; border-radius: 16px; padding: 4px; right: 4px; bottom: -14%; } .st-phone img { border-radius: 12px; }
  .st-film__screen { order: -1; }
  .st-stone { width: calc(56vw * (1 - var(--k) * .14)); }
  .st-logos__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-story { margin-top: 90px; }
  .st-summary { margin-bottom: 30px; }
  .st-story__grid { grid-template-columns: 1fr; gap: 0; }
  .st-frame { top: 64px; z-index: 2; order: -1; background: var(--paper); padding-bottom: 10px; }
  .st-frame::before { content: ""; position: absolute; left: calc(-1 * var(--gut)); right: calc(-1 * var(--gut)); bottom: 100%; height: 70px; background: var(--paper); }   /* text scrolls away under the pinned frame, not above it */
  .st-frame__box { aspect-ratio: 16 / 10; max-height: 34vh; border-radius: 14px; }
  .st-ch { min-height: 62vh; align-content: start; padding-top: 30px; }
  .st-metrics { grid-template-columns: 1fr; gap: 16px; padding: 26px 0; }
  .st-features { grid-template-columns: 1fr 1fr; }
  .st-gallery { columns: 2; }
}

/* ================= Signature as a product page (Apple-like): black and soft grey, bold tight type ================= */
body.st-apple { --paper: #f5f5f7; --card: #fff; --ink: #1d1d1f; --ink-muted: #6e6e73; --line: #d2d2d7; --spot: #0071e3; background: #f5f5f7; color: #1d1d1f; }
html:has(body.st-apple) { background: #000; }
body.st-apple .cs { padding-top: 0; }
body.st-apple :is(.ap-hero__h, .ap-say p, .ap-piece h2, .ap-stat b, .ap-line h2, .ws__head h2, .ws__info h3) { font-family: var(--sans); font-weight: 700; letter-spacing: -.045em; }
body.st-apple .ws__head .st-hand, body.st-apple .ws__where { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; letter-spacing: 0; }
body.st-apple .ws { margin-top: 0; }
/* hero */
.ap-hero { height: 240vh; background: #000; color: #f5f5f7; }
.ap-hero__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; justify-items: center; align-content: start; padding-top: 16vh; text-align: center; }
.ap-hero__eye { font: 500 .8rem var(--sans); color: #a1a1a6; } .ap-hero__eye a { color: #a1a1a6; }
.ap-hero__h { font-size: clamp(72px, 13vw, 220px); line-height: .9; margin-top: 18px; position: relative; z-index: 2; }
.ap-hero__line { font: 600 clamp(18px, 1.8vw, 28px)/1.25 var(--sans); letter-spacing: -.02em; color: #a1a1a6; margin-top: 14px; position: relative; z-index: 2; }
.ap-hero__media { position: absolute; inset: 0; z-index: 1; }
.ap-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); }
/* statement */
.ap-say { background: #000; color: #f5f5f7; padding: 22vh var(--gut); }
.ap-say p { max-width: 1100px; margin: 0 auto; font-size: clamp(34px, 4.6vw, 76px); line-height: 1.06; }
/* showcase */
.ap-show { height: calc(var(--n) * 110vh + 100vh); }
.ap-show__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg, #fff); transition: background-color .8s; }
.ap-piece { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; }
.ap-piece.is-on { opacity: 1; }
.ap-piece img { position: absolute; right: 2vw; top: 50%; width: min(64vw, 1100px); height: 86vh; object-fit: contain; translate: 0 -50%;
  scale: calc(.9 + var(--q, 0) * .12); transition: scale .2s linear; }   /* the piece is cut out of its photo, so it sits straight on the page */
/* a studio photo with a soft gradient fills the whole screen instead, so there is no edge at all */
.ap-piece.is-full img { left: auto; right: 0; top: 0; width: 62vw; height: 100%; translate: none; object-fit: cover; object-position: 50% 50%; scale: 1; transform-origin: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.ap-piece__text { position: absolute; left: var(--gut); top: 50%; translate: 0 -50%; max-width: 30rem; z-index: 2; }
.ap-piece__n { font: 600 .8rem var(--sans); color: #86868b; }
.ap-piece h2 { font-size: clamp(48px, 6vw, 104px); line-height: .95; margin-top: 12px; }
.ap-piece__line { font: 600 clamp(20px, 1.9vw, 30px)/1.2 var(--sans); letter-spacing: -.02em; color: #6e6e73; margin-top: 16px; }
.ap-piece ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; border-top: 1px solid #0000001a; padding-top: 18px; }
.ap-piece li { font: 500 1rem var(--sans); color: #1d1d1f; }
.ap-piece li:last-child { font: 500 .78rem var(--mono); color: #86868b; letter-spacing: .06em; }
.ap-piece .ap-piece__text > * { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .8s var(--ease); }
.ap-piece.is-on .ap-piece__text > * { opacity: 1; transform: none; }
.ap-piece.is-on .ap-piece__text > :nth-child(2) { transition-delay: .06s; } .ap-piece.is-on .ap-piece__text > :nth-child(3) { transition-delay: .12s; } .ap-piece.is-on .ap-piece__text > :nth-child(4) { transition-delay: .18s; }
.ap-show__dots { position: absolute; left: 50%; bottom: 5vh; translate: -50% 0; display: flex; gap: 8px; padding: 10px 14px; border-radius: 99px; background: #0000000f; }
.ap-show__dots i { width: 8px; height: 8px; border-radius: 99px; background: #0000003b; transition: width .4s var(--ease), background .4s; }
.ap-show__dots i.is-on { width: 28px; background: #1d1d1f; }
/* stats */
.ap-stats { background: #f5f5f7; padding: 140px 0; }
.ap-stats .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ap-stat { background: #fff; border-radius: 26px; padding: 40px 34px 34px; display: grid; gap: 8px; opacity: 0; transform: translateY(30px); transition: opacity .8s calc(var(--k) * .1s), transform 1s var(--ease) calc(var(--k) * .1s); }
.ap-stats.is-in .ap-stat { opacity: 1; transform: none; }
.ap-stat b { font-size: clamp(64px, 7vw, 120px); line-height: .9; background: linear-gradient(90deg, #1d1d1f, #6e6e73); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-stat span { font: 600 1.15rem var(--sans); color: #6e6e73; letter-spacing: -.01em; }
/* lineup */
.ap-line { background: #f5f5f7; padding: 0 0 140px; }
.ap-line__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 30px; }
.ap-line h2 { font-size: clamp(36px, 4vw, 64px); }
.ap-line__arrows { display: flex; gap: 10px; }
.ap-line__arrows button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #e8e8ed; color: #1d1d1f; font-size: 1.1rem; cursor: pointer; transition: background .3s; }
.ap-line__arrows button:hover { background: #d2d2d7; }
.ap-line__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 78vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px var(--pad) 24px; scroll-padding-inline: var(--pad); --pad: max(var(--gut), calc((100vw - 76rem) / 2)); }   /* lines up with .container */
.ap-line__track::-webkit-scrollbar { display: none; }
.ap-card { margin: 0; scroll-snap-align: start; background: #fff; border-radius: 22px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.ap-card:hover { transform: scale(1.02); box-shadow: 0 20px 40px -24px #0004; }
.ap-card > div { aspect-ratio: 4 / 5; overflow: hidden; } .ap-card img { width: 100%; height: 100%; object-fit: cover; }
.ap-card figcaption { display: grid; gap: 4px; padding: 18px 20px 22px; }
.ap-card b { font: 700 1.2rem var(--sans); letter-spacing: -.02em; } .ap-card span { font: 500 .72rem var(--mono); color: #86868b; letter-spacing: .06em; }
@media (max-width: 1023px) {
  .ap-hero__pin { padding-top: 18vh; }
  .ap-piece img { right: 0; left: 0; top: 30%; width: 100%; height: 50vh; }
  .ap-piece.is-full img { width: 100%; height: 62vh; top: 0; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .ap-piece__text { top: auto; bottom: 14vh; translate: none; right: var(--gut); }
  .ap-piece h2 { font-size: 42px; } .ap-piece ul { margin-top: 16px; padding-top: 12px; }
  .ap-stats { padding: 80px 0; } .ap-stats .container { grid-template-columns: 1fr; }
  .ap-line { padding-bottom: 80px; }
}

/* ---------- Balance Cafe: an interior portfolio page. Plain type, a plan with numbered areas, renders next to the finished room ---------- */
body.st-balance { --paper: #f4f1ec; --ink: #22201c; --ink-muted: #6f6a62; --line: #ddd7cd; --spot: #5d6142; background: #f4f1ec; color: #22201c; }
html:has(body.st-balance) { background: #f4f1ec; }
body.st-balance .cs { padding-top: 0; }
.bc-h2 { font: 500 clamp(28px, 2.6vw, 40px)/1.1 var(--sans); letter-spacing: -.02em; }
.bc-fig { margin: 0; display: grid; gap: 8px; }
.bc-fig img, .bc-fig video { display: block; width: 100%; border-radius: 4px; background: #e6e0d6; }
.bc-fig figcaption { font-size: .82rem; color: var(--ink-muted); }
.bc-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; }
.bc-meta div { display: grid; gap: 4px; }
.bc-meta dt { font-size: .78rem; color: var(--ink-muted); }
.bc-meta dd { margin: 0; font-size: .95rem; }

.bc-head { padding-top: 120px; }
.bc-back { margin-bottom: 48px; font-size: .9rem; } .bc-back a { color: var(--ink-muted); }
.bc-head__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 40px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.bc-head h1 { font: 500 clamp(52px, 7vw, 116px)/.95 var(--sans); letter-spacing: -.04em; }
.bc-head__line { font-size: 1.1rem; line-height: 1.5; }
.bc-head__film { margin: 56px var(--gut) 0; }
.bc-head__film video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 86vh; object-fit: cover; border-radius: 4px; background: #e6e0d6; }

.bc-intro { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); padding-top: 140px; align-items: start; }
.bc-intro__text { display: grid; gap: 16px; position: sticky; top: 110px; }
.bc-intro__text h2 { font: 500 clamp(28px, 2.6vw, 40px)/1.1 var(--sans); letter-spacing: -.02em; margin-bottom: 6px; }
.bc-intro__text p { line-height: 1.6; color: #3d3a34; }
.bc-intro .bc-fig img { background: #fff; }

.bc-plan { padding-top: 160px; }
.bc-plan .bc-h2 { margin-bottom: 40px; }
.bc-plan__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.bc-plan__map { position: sticky; top: 100px; display: grid; gap: 18px; }
.bc-plan__img { position: relative; }
.bc-plan__img img { display: block; width: 100%; border-radius: 4px; }
.bc-pin { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; translate: -50% -50%; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #fff; color: var(--ink); font: 600 .8rem/30px var(--sans); box-shadow: 0 2px 8px #0003; transition: background .3s, color .3s, scale .3s; }
.bc-pin.is-on { background: var(--ink); color: #fff; scale: 1.15; }
.bc-plan__key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9rem; color: var(--ink-muted); }
.bc-plan__key li { display: flex; gap: 8px; align-items: center; cursor: pointer; transition: color .3s; }
.bc-plan__key span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 600; background: #e6e0d6; color: var(--ink); transition: background .3s, color .3s; }
.bc-plan__key li.is-on { color: var(--ink); } .bc-plan__key li.is-on span { background: var(--ink); color: #fff; }
.bc-plan__zones { display: grid; gap: 120px; }
.bc-zone { display: grid; gap: 14px; scroll-margin-top: 100px; }
.bc-zone__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; }
.bc-zone h3 { font: 500 clamp(24px, 2vw, 32px)/1.1 var(--sans); letter-spacing: -.02em; }
.bc-zone__sub { color: var(--ink-muted); margin-top: -8px; }
.bc-zone__t { line-height: 1.6; color: #3d3a34; margin-bottom: 10px; max-width: 34rem; }
.bc-zone__row { display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); gap: 12px; }
.bc-zone__row img { aspect-ratio: 4 / 5; object-fit: cover; }

.bc-clips { padding-top: 160px; }
.bc-clips__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.bc-clips__head p { color: var(--ink-muted); }
.bc-clips__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bc-clips video { aspect-ratio: 9 / 16; object-fit: cover; }

.bc-brand { padding-top: 160px; display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 100px); }
.bc-brand__text { display: grid; gap: 16px; align-content: start; } .bc-brand__text p { line-height: 1.6; color: #3d3a34; }
.bc-brand__marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bc-brand__marks figure { margin: 0; display: grid; gap: 10px; padding: 36px 30px 18px; background: #ebe6de; border-radius: 4px; }
.bc-brand__marks img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.bc-brand__marks figcaption, .bc-brand__art figcaption { font-size: .82rem; color: var(--ink-muted); }
.bc-brand__art { grid-column: 1 / -1; margin: 0; display: grid; gap: 8px; }
.bc-brand__art img { width: 100%; display: block; }

.bc-credit { padding: 140px 0 120px; display: grid; gap: 28px; }
.bc-credit > p { font: 500 clamp(22px, 2vw, 30px)/1.25 var(--sans); letter-spacing: -.01em; max-width: 34rem; padding-top: 28px; border-top: 1px solid var(--line); }
.bc-credit .bc-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 860px) {
  .bc-head { padding-top: 96px; } .bc-back { margin-bottom: 28px; }
  .bc-head__row, .bc-intro, .bc-plan__grid, .bc-brand { grid-template-columns: 1fr; }
  .bc-meta, .bc-credit .bc-meta { grid-template-columns: 1fr 1fr; }
  .bc-head__film { margin: 36px 0 0; } .bc-head__film video { border-radius: 0; aspect-ratio: 4 / 5; }
  .bc-intro { padding-top: 90px; } .bc-intro__text { position: static; }
  .bc-plan { padding-top: 100px; }
  .bc-plan__map { top: 64px; z-index: 2; background: var(--paper); padding: 10px 0; margin: 0 calc(var(--gut) * -1); padding-inline: var(--gut); }
  .bc-plan__key { display: none; } .bc-pin { width: 24px; height: 24px; font-size: .7rem; line-height: 24px; }
  .bc-plan__zones { gap: 80px; }
  .bc-clips__head { display: grid; } .bc-clips__row { grid-template-columns: 1fr 1fr; }
  .bc-brand__marks figure { padding: 18px 12px 10px; }
}

/* ---------- plain portfolio pages (Caesar Projects): the Balance Cafe system, plus team, logos, picture grids and links ---------- */
body.st-plain { --paper: #f5f3ef; --ink: #22201c; --ink-muted: #6f6a62; --line: #ddd7cd; --spot: #a07d2e; background: #f5f3ef; color: #22201c; }
html:has(body.st-plain) { background: #f5f3ef; }
body.st-plain .cs { padding-top: 0; }
body.st-plain .bc-head__film img { display: block; width: 100%; aspect-ratio: 21 / 9; max-height: 80vh; object-fit: cover; border-radius: 4px; }
.pl-intro { display: grid; gap: 14px; max-width: 40rem; margin-bottom: 36px; }
.pl-intro p { line-height: 1.6; color: #3d3a34; }
.pl-link { justify-self: start; font-size: .95rem; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.pl-team, .pl-logos, .pl-block, .pl-related { padding-top: 150px; }

.pl-team__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.pl-team__grid > li { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.pl-team__grid span { font-size: .8rem; color: var(--ink-muted); }
.pl-team__grid h3 { font: 500 1.35rem/1.2 var(--sans); letter-spacing: -.01em; }
.pl-team__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: #3d3a34; }

.pl-logos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pl-logos__grid figure > div { position: relative; aspect-ratio: 16 / 9; background: #ece8e1; border-radius: 4px; overflow: hidden; }
.pl-logos__grid figure.is-dark > div { background: #22201c; }
.pl-logos__grid img { position: absolute; inset: 18% 20%; width: 60%; height: 64%; object-fit: contain; border-radius: 0; background: none; }

.pl-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 28px 14px; align-items: start; }
.pl-grid--tight { gap: 0 2px; } .pl-grid--tight img { border-radius: 0; }
.pl-grid .is-w2 { grid-column: span 2; } .pl-grid .is-w4 { grid-column: span 4; }
.pl-grid .is-tall { grid-row: span 2; }
.pl-grid .is-tall img { max-height: 72vh; width: auto; max-width: 100%; }
.pl-grid .bc-fig img { background: #fff; }
.pl-grid .is-poster img { background: none; }
.pl-rel { margin-top: 28px; color: var(--ink-muted); font-size: .92rem; line-height: 1.7; }
.pl-rel a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }

.pl-related { padding-bottom: 120px; }
.pl-related .bc-h2 { margin-bottom: 24px; }
.pl-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.pl-related a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.1rem; }
.pl-related a i { font-style: normal; color: var(--ink-muted); transition: translate .3s; }
.pl-related a:hover i { translate: 6px 0; color: var(--ink); }

@media (max-width: 860px) {
  .pl-team, .pl-logos, .pl-block, .pl-related { padding-top: 96px; }
  .pl-team__grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .pl-logos__grid { grid-template-columns: 1fr 1fr; }
  .pl-grid { grid-template-columns: repeat(min(var(--cols), 2), minmax(0, 1fr)); }
  .pl-grid--tight { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .pl-grid .is-w2, .pl-grid .is-w4 { grid-column: 1 / -1; } .pl-grid .is-tall { grid-row: auto; }
  .pl-related ul { grid-template-columns: 1fr; }
  body.st-plain .bc-head__film img { aspect-ratio: 4 / 3; border-radius: 0; }
}

/* the contents list, flip strips for the books, and fixed-shape cards */
.pl-toc { padding-top: 56px; }
.pl-toc p { font-size: .8rem; color: var(--ink-muted); margin-bottom: 12px; }
.pl-toc ol { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); columns: 4 12rem; column-gap: 32px; counter-reset: toc; }
.pl-toc li { counter-increment: toc; break-inside: avoid; padding: 5px 0; }
.pl-toc a { color: var(--ink); display: flex; gap: 10px; font-size: .95rem; }
.pl-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--ink-muted); font-size: .78rem; padding-top: 2px; min-width: 1.4rem; }
.pl-toc a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }

.pl-block.is-cont { padding-top: 28px; }
.pl-grid .is-card img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }

.pl-book { padding-top: 150px; }
.pl-book__head { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 8px; }
.pl-book__head .pl-intro { margin-bottom: 0; }
.pl-book__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 4px; }
.pl-book__strip { position: relative; --pad: max(var(--gut), calc((100vw - 76rem) / 2)); margin: 28px calc(50% - 50vw) 0; padding: 0 var(--pad); scroll-padding-inline: var(--pad);
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pl-book__strip::-webkit-scrollbar { display: none; }
.pl-book__strip figure { margin: 0; flex: none; scroll-snap-align: start; }
.pl-book__strip img { display: block; width: min(1080px, 80vw); height: auto; max-height: 72vh; object-fit: contain; border-radius: 3px; box-shadow: 0 1px 3px #0000001f; background: #fff; }
.pl-book__strip.is-square img { width: auto; height: min(60vh, 38vw); max-height: none; }
.pl-book__bar { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: .9rem; color: var(--ink-muted); }
.pl-book__bar button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; font-size: 1rem; transition: background .25s; }
.pl-book__bar button:hover { background: #ebe6de; }
.pl-book__bar span { min-width: 4.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.pl-book__bar a { margin-left: auto; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }

@media (max-width: 860px) {
  .pl-toc ol { columns: 2; }
  .pl-book { padding-top: 96px; }
  .pl-book__head { grid-template-columns: 1fr; }
  .pl-book__strip img { width: 88vw; } .pl-book__strip.is-square img { width: auto; height: 44vw; }
  .pl-book__bar a { display: none; }
}

/* the website: the real pages in a browser window and a phone, scrollable, with a tab for each page */
.pl-site { padding-top: 150px; }
.pl-site__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.pl-site__tabs button { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--ink); font: 500 .9rem var(--sans); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.pl-site__tabs button:hover { background: #ebe6de; }
.pl-site__tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pl-site__stage { display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 19vw, 280px); gap: clamp(20px, 3vw, 44px); align-items: end; }
.pl-site__win { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px #0000004d, 0 0 0 1px #0000000f; }
.pl-site__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: #ece8e1; }
.pl-site__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3ccc1; }
.pl-site__bar span { margin: 0 auto; padding: 3px 16px; border-radius: 6px; background: #f8f6f2; font-size: .75rem; color: var(--ink-muted); min-width: 40%; text-align: center; }
.pl-site__view { height: min(68vh, 640px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pl-site__view img, .pl-site__screen img { display: block; width: 100%; height: auto; transition: opacity .22s; }
.pl-site__phone { padding: 10px; border-radius: 40px; background: #1d1b18; box-shadow: 0 30px 60px -30px #00000066; }
.pl-site__screen { aspect-ratio: 390 / 844; border-radius: 30px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; background: #fff; }
.pl-site__screen::-webkit-scrollbar { display: none; }
.pl-site.is-swapping :is(.pl-site__view, .pl-site__screen) img { opacity: 0; }
.pl-site__hint { margin-top: 14px; font-size: .82rem; color: var(--ink-muted); }
.pl-site__notes { list-style: none; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; font-size: .92rem; color: #3d3a34; }
@media (max-width: 860px) {
  .pl-site { padding-top: 96px; }
  .pl-site__stage { grid-template-columns: 1fr; }
  .pl-site__view { height: 56vh; }
  .pl-site__phone { width: min(260px, 70vw); justify-self: center; }
  .pl-site__notes { grid-template-columns: 1fr 1fr; }
}

/* the sales map: one large map you can zoom into, what is on it, the back, and its earlier versions */
.pl-map { padding-top: 150px; }
.pl-map__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-map__zoom { margin: 32px 0 0; display: grid; gap: 12px; }
.pl-map__frame { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 3 / 2; background: #0a1a33; cursor: zoom-in; touch-action: pan-y; }
.pl-map__frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.pl-map__zoom.is-zoomed .pl-map__frame { cursor: zoom-out; touch-action: none; }
.pl-map__zoom.is-zoomed .pl-map__frame img { transform: scale(2.6); transition: transform .45s cubic-bezier(.2, .7, .2, 1), transform-origin .12s linear; }
.pl-map__zoom figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .85rem; color: var(--ink-muted); }
.pl-map__zoom button { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--ink); font: 500 .85rem var(--sans); cursor: pointer; }
.pl-map__zoom button:hover { background: #ebe6de; }
.pl-map__lists { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.pl-map__lists > div { padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.pl-map__lists h3 { font: 500 1.1rem var(--sans); }
.pl-map__lists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: #3d3a34; font-size: .95rem; }
.pl-map__back { margin-top: 48px; }
.pl-map__h3 { font: 500 1.25rem var(--sans); margin: 56px 0 18px; }
@media (max-width: 860px) {
  .pl-map { padding-top: 96px; }
  .pl-map__lists { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .pl-map__zoom figcaption span { display: none; }
  .pl-map__zoom.is-zoomed .pl-map__frame img { transform: scale(3.2); }
}

/* plain pages for every project: a whole header picture, documents at a fixed height, galleries that keep each picture's shape */
body.st-plain .bc-head__film.is-fit img { aspect-ratio: auto; width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; }
body.st-plain .bc-head__film.is-fit { display: grid; justify-items: center; }
.pl-book.is-cont { padding-top: 48px; }
.pl-book__strip.is-auto img { width: auto; height: min(66vh, 640px); max-width: 86vw; max-height: none; object-fit: contain; box-shadow: none; background: none; border-radius: 3px; }
.pl-grid--masonry { display: block; columns: var(--cols); column-gap: 14px; }
.pl-grid--masonry figure { break-inside: avoid; margin-bottom: 14px; }
.pl-grid--masonry .bc-fig img { background: none; }
@media (max-width: 860px) {
  .pl-book__strip.is-auto img { height: auto; width: 84vw; max-height: 70vh; }
  .pl-grid--masonry { columns: 2; column-gap: 8px; } .pl-grid--masonry figure { margin-bottom: 8px; }
}

/* a page in parts (Events: expos, then resort events) */
.pl-part { padding-top: 160px; }
.pl-part h2 { font: 500 clamp(40px, 5vw, 76px)/1 var(--sans); letter-spacing: -.035em; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.pl-part + section { padding-top: 56px; }
.pl-toc ol.is-parted { columns: 2 18rem; counter-reset: none; }
.pl-toc .pl-toc__part { counter-increment: none; padding: 0 0 18px; }
.pl-toc .pl-toc__part > a { font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.pl-toc .pl-toc__part > a::before { content: none; }
.pl-toc .pl-toc__part ol { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; counter-reset: toc; }
@media (max-width: 860px) { .pl-part { padding-top: 100px; } .pl-toc .pl-toc__part ol { columns: 1; } }

/* a column of Behance presentation boards: one board per row, as wide as reads comfortably */
.pl-grid--masonry[style*="--cols:1"] { columns: 1; max-width: 1100px; margin-inline: auto; }
.pl-grid--masonry[style*="--cols:1"] figure { margin-bottom: 18px; }

/* ---------- Property Expos: dark navy and gold, square and architectural, like the stands themselves ---------- */
body.st-expo { --paper: #0e1a26; --ink: #f1ede4; --ink-muted: #93a0ad; --line: #26384a; --spot: #c9a35a; background: #0e1a26; color: #f1ede4; }
html:has(body.st-expo) { background: #0e1a26; }
body.st-expo :is(.bc-head h1, .bc-h2, .pl-part h2) { text-transform: uppercase; letter-spacing: .02em; font-weight: 500; }
body.st-expo .bc-head h1 { font-size: clamp(48px, 6.4vw, 104px); }
body.st-expo .bc-h2 { font-size: clamp(22px, 2vw, 30px); letter-spacing: .08em; }
body.st-expo .pl-intro p, body.st-expo .bc-head__line { color: #c9d1d9; }
body.st-expo .pl-block .bc-h2::before { content: ""; display: block; width: 40px; height: 2px; background: var(--spot); margin-bottom: 18px; }
body.st-expo :is(.bc-fig img, .bc-head__film img) { border-radius: 0; background: #132233; }
body.st-expo .bc-meta dt { color: var(--spot); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
body.st-expo .pl-toc a, body.st-expo .bc-back a { color: var(--ink); }
body.st-expo .pl-toc a::before { color: var(--spot); }
body.st-expo .pl-block { padding-top: 120px; }
body.st-expo .bc-head__film.is-fit img { max-height: 82vh; }

/* ---------- Resort Events: warm, bright and a little playful, like the posters ---------- */
body.st-fest { --paper: #fff4ea; --ink: #2b1712; --ink-muted: #8a6a5e; --line: #f1d9c8; --spot: #ff5a36; background: #fff4ea; color: #2b1712; }
html:has(body.st-fest) { background: #fff4ea; }
body.st-fest .bc-head h1 { font-weight: 700; letter-spacing: -.05em; font-size: clamp(56px, 8vw, 132px); }
body.st-fest .bc-head h1::after { content: ""; display: block; width: .6em; height: .12em; margin-top: .12em; border-radius: 99px; background: linear-gradient(90deg, #ff5a36, #ffb627, #3ac0a0, #6c5ce7); }
body.st-fest .bc-h2 { font-weight: 700; letter-spacing: -.03em; font-size: clamp(30px, 3vw, 46px); }
body.st-fest .pl-block .bc-h2::after { content: ""; display: inline-block; width: .32em; height: .32em; margin-left: .18em; border-radius: 50%; background: var(--dot, var(--spot)); }
body.st-fest .pl-block:nth-of-type(4n+1) { --dot: #ff5a36; } body.st-fest .pl-block:nth-of-type(4n+2) { --dot: #ffb627; }
body.st-fest .pl-block:nth-of-type(4n+3) { --dot: #3ac0a0; } body.st-fest .pl-block:nth-of-type(4n) { --dot: #6c5ce7; }
body.st-fest :is(.bc-fig img, .bc-head__film img) { border-radius: 16px; background: #fde6d4; }
body.st-fest .pl-grid--masonry figure { transition: rotate .35s cubic-bezier(.2,.7,.2,1), translate .35s cubic-bezier(.2,.7,.2,1); }
body.st-fest .pl-grid--masonry figure:nth-child(odd) { rotate: -1.2deg; } body.st-fest .pl-grid--masonry figure:nth-child(even) { rotate: 1deg; }
body.st-fest .pl-grid--masonry figure:hover { rotate: 0deg; translate: 0 -4px; }
body.st-fest .pl-toc a::before { color: var(--spot); }
@media (prefers-reduced-motion: reduce) { body.st-fest .pl-grid--masonry figure { rotate: none !important; } }

/* a live website inside the preview: the still shows first, the real site fades in over it */
.pl-site__view.is-live, .pl-site__screen.is-live { position: relative; overflow: hidden; }
.pl-site__view.is-live iframe, .pl-site__screen.is-live iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; opacity: 0; transition: opacity .5s; }
.pl-site__view.is-loaded iframe, .pl-site__screen.is-loaded iframe { opacity: 1; }
.pl-site__view.is-live img, .pl-site__screen.is-live img { height: 100%; object-fit: cover; object-position: top; }

/* results: headline numbers and plain SVG charts in the page's gold; before is the pale shade, after the deep one */
.pl-stats { padding-top: 150px; position: relative; --before: #e0a93f; --after: #8f5a0b; }
.pl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-bottom: 56px; }
.pl-kpis > div { display: grid; gap: 4px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line); }
.pl-kpis b { font: 500 clamp(44px, 4.6vw, 72px)/1 var(--sans); letter-spacing: -.04em; color: var(--ink); }
.pl-kpis span { font-size: 1rem; color: var(--ink); }
.pl-kpis small { font-size: .82rem; color: var(--ink-muted); line-height: 1.45; }
.pl-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
.pl-chart { margin: 0; display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: 6px; background: #fbfaf7; }
.pl-chart.is-wide { grid-column: 1 / -1; }
.pl-chart figcaption { font-size: .95rem; } .pl-chart figcaption span { color: var(--ink-muted); font-size: .85rem; }
.pl-chart .pl-sub { margin-top: 18px; }
.pl-chart svg { width: 100%; height: auto; overflow: visible; }
.pl-legend { display: flex; gap: 18px; font-size: .82rem; color: var(--ink-muted); }
.pl-legend span { display: inline-flex; align-items: center; gap: 6px; } .pl-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.pl-a { fill: var(--before); background: var(--before); } .pl-b { fill: var(--after); background: var(--after); }
.pl-cat { font: 400 13px var(--sans); fill: var(--ink); }
.pl-val { font: 500 12px var(--sans); fill: var(--ink-muted); } .pl-val.is-strong { fill: var(--ink); font-weight: 600; }
.pl-delta { fill: var(--ink-muted); font-weight: 400; }
.pl-axis { stroke: var(--line); stroke-width: 2; } .pl-link { stroke: var(--before); stroke-width: 2; }
.pl-hit { fill: transparent; }
.pl-mark.is-hover .pl-hit { fill: #00000008; }
.pl-pair p { font-size: .9rem; margin-top: 6px; } .pl-pair small { color: var(--ink-muted); margin-left: 6px; }
.pl-chart circle { stroke: #fbfaf7; stroke-width: 2; }
.pl-chart rect.pl-a, .pl-chart rect.pl-b { transform-box: fill-box; transform-origin: left; transition: scale 1.1s cubic-bezier(.2,.7,.2,1); scale: 0 1; }
.pl-stats.is-in rect.pl-a, .pl-stats.is-in rect.pl-b { scale: 1 1; }
.pl-table summary { cursor: pointer; font-size: .82rem; color: var(--ink-muted); }
.pl-table table { margin-top: 10px; width: 100%; border-collapse: collapse; font-size: .85rem; }
.pl-table th, .pl-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); } .pl-table th { color: var(--ink-muted); font-weight: 500; }
.pl-tip { position: absolute; z-index: 5; max-width: 280px; padding: 8px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.4; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .pl-chart rect.pl-a, .pl-chart rect.pl-b { transition: none; scale: 1 1; } }
@media (max-width: 860px) {
  .pl-stats { padding-top: 96px; }
  .pl-kpis { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .pl-charts { grid-template-columns: 1fr; } .pl-chart { padding: 16px; }
}

.pl-chart svg { stroke: none; stroke-width: 0; }
.pl-chart svg rect, .pl-chart svg text { stroke: none; }
.pl-chart svg text { font-family: var(--sans); }
.pl-chart svg .pl-axis, .pl-chart svg .pl-link { fill: none; }
.pl-chart svg .pl-axis { stroke: var(--line); stroke-width: 2; } .pl-chart svg .pl-link { stroke: var(--before); stroke-width: 2; }
.pl-chart svg circle { stroke: #fbfaf7; stroke-width: 2; }

.pl-chart svg.is-mob { display: none; }
@media (max-width: 860px) { .pl-chart svg.is-desk { display: none; } .pl-chart svg.is-mob { display: block; } }

/* the years, left to right: a thin rule with a dot for each year */
.pl-years { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.pl-years::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, #e0a93f, #8f5a0b); }
.pl-years > li { position: relative; padding-top: 30px; display: grid; gap: 6px; align-content: start; }
.pl-years > li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #8f5a0b; box-shadow: 0 0 0 4px var(--paper); }
.pl-years__y { font: 500 clamp(26px, 2.4vw, 36px)/1 var(--sans); letter-spacing: -.03em; }
.pl-years b { font-weight: 500; color: var(--ink-muted); font-size: .9rem; }
.pl-years ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; color: #3d3a34; line-height: 1.45; }
.pl-chart svg.pl-narrow { max-width: 560px; }
@media (max-width: 860px) {
  .pl-years { grid-template-columns: 1fr; gap: 22px; padding-left: 26px; }
  .pl-years::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, #e0a93f, #8f5a0b); }
  .pl-years > li { padding-top: 0; } .pl-years > li::before { left: -26px; top: 6px; }
}

/* ---------- NNP Dashboard: the system's own deep green and gold; the interface drawn without data ---------- */
body.st-nnp { --paper: #f3f1ea; --ink: #13241d; --ink-muted: #5d6b63; --line: #d7d9cf; --spot: #b8935a; --green: #0f2a21; --green-2: #173a2e; --gold: #c9a467; background: #f3f1ea; color: #13241d; }
html:has(body.st-nnp) { background: #0f2a21; }
body.st-nnp .cs { padding-top: 0; }
body.st-nnp .bc-h2 { font: 500 clamp(30px, 3vw, 46px)/1.05 var(--sans); letter-spacing: -.03em; }
.nn-hero { background: radial-gradient(120% 80% at 70% 0%, #1e4a3b 0%, var(--green) 55%); color: #eef0e8; padding: 120px 0 0; overflow: hidden; }
.nn-back a { color: #b9c4bd; font-size: .9rem; }
.nn-hero__text { max-width: 46rem; margin: 40px 0 36px; display: grid; gap: 16px; }
.nn-eye { font: 500 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.nn-hero h1 { font: 500 clamp(54px, 7.4vw, 120px)/.92 var(--sans); letter-spacing: -.045em; }
.nn-hero__line { font-size: 1.15rem; line-height: 1.55; color: #c9d2cb; }
.nn-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 56px; padding-top: 20px; border-top: 1px solid #ffffff1f; }
.nn-meta dt { font-size: .75rem; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; } .nn-meta dd { margin: 0; color: #e6ebe4; }
.nn-note { padding: 14px var(--gut) 40px; font-size: .8rem; color: #8fa196; text-align: center; }
/* the drawn app */
.nn-app { display: grid; grid-template-columns: 200px 1fr; border-radius: 14px 14px 0 0; overflow: hidden; background: #f6f5ef; box-shadow: 0 -20px 80px -20px #000a; transform-origin: 50% 100%; color: #13241d; }
.nn-app__side { background: #10261e; color: #a9b8ae; display: grid; align-content: start; gap: 2px; padding: 22px 14px; font-size: .82rem; }
.nn-app__side b { color: var(--gold); font-size: 1.1rem; letter-spacing: .08em; margin-bottom: 18px; padding-left: 10px; }
.nn-app__side span { padding: 8px 10px; border-radius: 8px; } .nn-app__side span.is-on { background: #ffffff14; color: #fff; }
.nn-app__main { padding: 22px; display: grid; gap: 16px; }
.nn-app__top { display: flex; gap: 10px; align-items: center; }
.nn-sk { display: block; height: 10px; border-radius: 99px; background: #dfe2d8; }
.nn-sk.big { height: 22px; background: #c9cfc3; margin: 10px 0; }
.w15 { width: 15%; } .w30 { width: 30%; } .w40 { width: 40%; } .w45 { width: 45%; } .w48 { width: 48%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w62 { width: 62%; } .w70 { width: 70%; }
.nn-pill { width: 90px; height: 28px; border-radius: 99px; background: #e6e8df; } .nn-app__top .nn-pill:last-child { background: var(--green); }
.nn-app__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nn-tile, .nn-card { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 1px 0 #00000010; }
.nn-tile small, .nn-card small { font-size: .72rem; color: #6c776f; }
.nn-spark { display: flex; align-items: end; gap: 3px; height: 26px; }
.nn-spark i, .nn-chart i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #d6c29a; transform-origin: bottom; scale: 1 0; transition: scale 1s cubic-bezier(.2,.7,.2,1); }
.nn-tile:nth-child(2) .nn-spark i { background: #9fc0ad; } .nn-tile:nth-child(3) .nn-spark i { background: #e2a988; } .nn-tile:nth-child(4) .nn-spark i { background: #b9b2d6; }
.nn-app__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.nn-chart { display: flex; align-items: end; gap: 6px; height: 150px; margin-top: 12px; } .nn-chart i { background: var(--green-2); } .nn-chart i:nth-child(odd) { background: var(--gold); }
.nn-line { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; margin-top: 12px; font-size: .78rem; color: #4b574f; }
.nn-line em { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--green-2) var(--w), #e5e7de var(--w)); }
.nn-rowsk { display: grid; grid-template-columns: 12px 1fr 15%; align-items: center; gap: 12px; margin-top: 12px; } .nn-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.nn-hero.is-in .nn-spark i, .nn-hero.is-in .nn-chart i { scale: 1 1; }
.nn-spark i:nth-child(n), .nn-chart i:nth-child(n) { transition-delay: calc(var(--d, 0) * 1s); }
/* sections */
.nn-sec { padding-top: 140px; }
.nn-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.nn-flow li { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; position: relative; }
.nn-flow li:not(:nth-child(3n)) { border-right: 1px solid var(--line); } .nn-flow li:not(:nth-child(3n+1)) { padding-left: 26px; }
.nn-flow span { font: 500 .8rem var(--sans); color: var(--spot); } .nn-flow b { font: 500 1.35rem var(--sans); letter-spacing: -.01em; } .nn-flow p { color: #3f4a43; line-height: 1.55; }
.nn-mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nn-mod { background: #fbfaf5; border-radius: 10px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.nn-mod b { font-weight: 500; font-size: 1.05rem; } .nn-mod p { font-size: .9rem; color: #4b574f; line-height: 1.5; }
.nn-glyph { width: 34px; height: 34px; border-radius: 9px; background: var(--green); position: relative; margin-bottom: 6px; }
.nn-glyph::after { content: ""; position: absolute; inset: 9px; border: 2px solid var(--gold); }
.nn-glyph.g1::after { border-radius: 50%; } .nn-glyph.g2::after { border-width: 2px 0; } .nn-glyph.g3::after { border-radius: 3px 3px 10px 10px; }
.nn-glyph.g4::after { border-width: 0 0 2px 2px; } .nn-glyph.g5::after { transform: rotate(45deg); inset: 11px; }
.nn-dark { background: var(--green); color: #eef0e8; margin-top: 140px; padding: 110px 0; }
.nn-dark .pl-intro { margin-bottom: 40px; }
.nn-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.nn-feats > div { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid #ffffff26; }
.nn-feats b { font: 500 1.25rem var(--sans); color: var(--gold); } .nn-feats p { color: #c9d2cb; line-height: 1.55; }
.nn-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nn-roles > div { padding: 22px; border-radius: 10px; background: #fbfaf5; display: grid; gap: 8px; align-content: start; }
.nn-access { color: var(--spot); letter-spacing: .2em; font-size: .9rem; } .nn-roles b { font-weight: 500; font-size: 1.1rem; } .nn-roles p { color: #4b574f; font-size: .92rem; line-height: 1.5; }
.nn-stack { padding-bottom: 120px; } .nn-stack ul { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nn-stack li { padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); font-size: .92rem; }
@media (prefers-reduced-motion: reduce) { .nn-spark i, .nn-chart i { scale: 1 1; transition: none; } }
@media (max-width: 860px) {
  .nn-hero { padding-top: 96px; } .nn-meta { grid-template-columns: 1fr 1fr; }
  .nn-app { grid-template-columns: 1fr; } .nn-app__side { display: none; } .nn-app__tiles { grid-template-columns: 1fr 1fr; } .nn-app__row { grid-template-columns: 1fr; }
  .nn-sec { padding-top: 90px; } .nn-flow { grid-template-columns: 1fr; } .nn-flow li { border-right: 0 !important; padding-left: 0 !important; }
  .nn-mods, .nn-roles { grid-template-columns: 1fr 1fr; } .nn-feats { grid-template-columns: 1fr; } .nn-dark { margin-top: 90px; padding: 80px 0; }
}

/* the real screens in devices */
.nn-devices { display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 18vw, 250px); gap: clamp(20px, 3vw, 48px); align-items: end; }
.nn-laptop, .nn-phone, .nn-window { margin: 0; display: grid; gap: 12px; }
.nn-laptop figcaption, .nn-phone figcaption, .nn-window figcaption { font-size: .85rem; color: var(--ink-muted); }
.nn-laptop__screen { padding: 14px 14px 18px; border-radius: 18px 18px 0 0; background: #121614; box-shadow: 0 30px 60px -30px #0007; }
.nn-laptop__screen img { display: block; width: 100%; border-radius: 4px; }
.nn-laptop__base { height: 16px; margin: 0 -4%; border-radius: 0 0 14px 14px; background: linear-gradient(#cfd2cb, #a9ada5); position: relative; }
.nn-laptop__base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 6px; border-radius: 0 0 8px 8px; background: #9a9e96; }
.nn-phone__screen { padding: 9px; border-radius: 36px; background: #121614; box-shadow: 0 30px 60px -30px #0008; }
.nn-phone__screen img { display: block; width: 100%; border-radius: 28px; }
.nn-windows { display: grid; gap: 40px; margin-top: 64px; }
.nn-window { border-radius: 12px; }
.nn-window__bar { display: flex; gap: 6px; padding: 12px 14px; background: #e6e8e0; border-radius: 12px 12px 0 0; }
.nn-window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #c6cabf; }
.nn-window img { display: block; width: 100%; margin-top: -12px; border-radius: 0 0 12px 12px; box-shadow: 0 24px 50px -30px #0006; }
@media (max-width: 860px) {
  .nn-devices { grid-template-columns: 1fr; } .nn-phone { width: min(240px, 66vw); justify-self: center; }
  .nn-windows { margin-top: 40px; gap: 28px; }
}

/* ---------- Farhad Design 2026: warm plaster and walnut; the shift, phone carousels, the content calendar, stories and the developer steps ---------- */
body.st-fd { --paper: #f1ece4; --ink: #2a241d; --ink-muted: #75695c; --line: #ddd3c5; --spot: #8b6a47; --wood: #8b6a47; --sand: #e7ded1; background: #f1ece4; color: #2a241d; }
html:has(body.st-fd) { background: #f1ece4; }
.fd-k { font-size: .78rem; color: var(--ink-muted); margin-bottom: 10px; }
.bc-head__reel { margin: 56px var(--gut) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bc-head__reel video { aspect-ratio: 9 / 16; max-height: 82vh; object-fit: cover; }

.fd-shift, .fd-phones, .fd-cal, .fd-stories, .fd-steps { padding-top: 150px; }
.fd-shift__map { display: grid; grid-template-columns: minmax(0, 15rem) 64px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.fd-shift__before { padding: 26px 24px; background: var(--sand); border-radius: 4px; align-self: start; }
.fd-shift h3 { font: 500 1.35rem/1.2 var(--sans); letter-spacing: -.01em; margin-bottom: 18px; }
.fd-shift__before ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fd-shift__before li { padding: 5px 11px; border-radius: 99px; background: var(--paper); font-size: .85rem; color: var(--ink-muted); }
.fd-shift__arrow { display: grid; place-items: center; }
.fd-shift__arrow i { width: 100%; height: 1px; background: var(--ink); position: relative; }
.fd-shift__arrow i::after { content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); rotate: 45deg; }
.fd-shift__after { padding: 26px 0 0; border-top: 2px solid var(--ink); }
.fd-div { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.fd-div li { display: grid; grid-template-columns: 2rem 1fr; gap: 2px 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fd-div span { grid-row: span 2; font-size: .78rem; color: var(--ink-muted); padding-top: 4px; }
.fd-div b { font-weight: 500; font-size: 1.1rem; }
.fd-div p { font-size: .9rem; color: var(--ink-muted); line-height: 1.45; }
.fd-pack { margin-top: 64px; }
.fd-pack ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fd-pack li { padding: 24px; border-radius: 4px; background: color-mix(in srgb, var(--wood) calc(var(--k) * 34% + 8%), var(--paper)); color: var(--ink); display: grid; gap: 8px; align-content: start; }
.fd-pack li:nth-child(3) { color: #f6f1ea; }
.fd-pack i { font-style: normal; font-size: .55rem; letter-spacing: 3px; opacity: .7; }
.fd-pack b { font: 500 1.5rem/1.1 var(--sans); letter-spacing: -.02em; }
.fd-pack p { line-height: 1.5; font-size: .95rem; opacity: .85; }
.fd-promise { margin-top: 56px; font: 500 clamp(26px, 3.4vw, 52px)/1.1 var(--sans); letter-spacing: -.03em; max-width: 22ch; }

.fd-phones__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: start; }
.fd-ph { display: grid; gap: 12px; }
.fd-ph__dev { position: relative; padding: 10px; border-radius: 34px; background: #1d1915; box-shadow: 0 20px 40px -24px #2a241d88; max-width: 340px; width: 100%; justify-self: center; }
.fd-ph__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 25px; scrollbar-width: none; aspect-ratio: 4 / 5.6; background: #fff; }
.fd-ph__strip::-webkit-scrollbar { display: none; }
.fd-ph__strip img { flex: none; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; background: #fff; }
.fd-ph__dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.fd-ph__dots i { width: 5px; height: 5px; border-radius: 50%; background: #0000002e; transition: background .3s; }
.fd-ph__dots i.is-on { background: #2a241d; }
.fd-ph__bar { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: .82rem; color: var(--ink-muted); }
.fd-ph__bar button { border: 1px solid var(--line); background: none; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; color: var(--ink); }
.fd-ph h3 { font: 500 1.15rem/1.2 var(--sans); margin-top: 6px; }
.fd-ph p { font-size: .92rem; line-height: 1.55; color: var(--ink-muted); }

.fd-cal__key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .85rem; color: var(--ink-muted); margin-bottom: 22px; }
.fd-cal__key span { display: flex; align-items: center; gap: 8px; }
.fd-cal__key i { width: 12px; height: 12px; border-radius: 3px; }
.fd-cal__key .is-reel i, .fd-day.is-reel { background: #2a241d; color: #f3ede4; }
.fd-cal__key .is-carousel i, .fd-day.is-carousel { background: #b99572; color: #241d16; }
.fd-cal__key .is-story i { border: 1px solid #b9a690; }
.fd-day.is-story { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.fd-cal__head, .fd-week { display: grid; grid-template-columns: minmax(0, 11rem) repeat(7, minmax(0, 1fr)); gap: 6px; }
.fd-cal__head { font-size: .75rem; color: var(--ink-muted); padding-bottom: 8px; }
.fd-week { padding: 6px 0; border-top: 1px solid var(--line); }
.fd-week__name { padding: 10px 10px 10px 0; display: grid; gap: 2px; align-content: start; }
.fd-week__name b { font-weight: 500; } .fd-week__name span { font-size: .78rem; color: var(--ink-muted); }
.fd-week__name p { font-size: .88rem; line-height: 1.35; margin-top: 6px; }
.fd-day { border-radius: 4px; padding: 10px; display: grid; gap: 6px; align-content: start; min-height: 128px; }
.fd-day__d { display: none; font-size: .72rem; opacity: .7; }
.fd-day em { font-style: normal; font-size: .7rem; opacity: .7; }
.fd-day p { font-size: .82rem; line-height: 1.3; }
.fd-day b { font: 600 .66rem/1 var(--sans); letter-spacing: .06em; margin-top: auto; align-self: end; }

.fd-st { list-style: none; margin: 0 calc(50% - 50vw); padding: 0 max(var(--gut), calc((100vw - 76rem) / 2)); scroll-padding-inline: max(var(--gut), calc((100vw - 76rem) / 2)); display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fd-st::-webkit-scrollbar { display: none; }
.fd-st__f { flex: none; width: clamp(180px, 17vw, 240px); aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; position: relative; background: #2a241d; color: #fff; scroll-snap-align: start; display: grid; align-content: end; padding: 16px; }
.fd-st__f img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fd-st__f::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 45%, #000a); pointer-events: none; }
.fd-st__f > :not(img) { position: relative; z-index: 1; }
.fd-st__bars { position: absolute !important; top: 10px; left: 10px; right: 10px; display: flex; gap: 3px; }
.fd-st__bars i { flex: 1; height: 2px; background: #ffffff55; border-radius: 2px; } .fd-st__bars i.is-on { background: #fff; }
.fd-st__line { font: 500 1.05rem/1.25 var(--sans); letter-spacing: -.01em; }
.fd-st__n { font-size: .72rem; opacity: .75; margin-top: 10px; }
.fd-st__f.is-plain { background: var(--wood); }
.fd-st__f.is-poll, .fd-st__f.is-cta { background: var(--sand); color: var(--ink); align-content: center; gap: 12px; }
.fd-st__f.is-poll::after, .fd-st__f.is-cta::after { display: none; }
.fd-st__q { font: 500 1.05rem/1.25 var(--sans); }
.fd-st__f ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fd-st__f ul li { background: #fff; border-radius: 8px; padding: 9px 12px; font-size: .88rem; }
.fd-st__f.is-cta b { justify-self: start; background: var(--ink); color: var(--paper); border-radius: 99px; padding: 8px 14px; font-weight: 500; font-size: .85rem; }
.fd-st__f.is-poll .fd-st__n, .fd-st__f.is-cta .fd-st__n { position: absolute; bottom: 14px; left: 16px; color: var(--ink-muted); opacity: 1; }

.fd-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.fd-steps li { padding: 20px 20px 0 0; display: grid; gap: 8px; align-content: start; position: relative; }
.fd-steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.fd-steps span { font-size: .78rem; color: var(--ink-muted); }
.fd-steps b { font: 500 1.2rem/1.2 var(--sans); }
.fd-steps p { font-size: .92rem; line-height: 1.5; color: var(--ink-muted); }
body.st-fd .pl-related { padding-top: 150px; }

@media (max-width: 860px) {
  .bc-head__reel { margin: 36px 0 0; grid-template-columns: repeat(3, 72vw); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut); scrollbar-width: none; }
  .bc-head__reel figure { scroll-snap-align: center; }
  .fd-shift, .fd-phones, .fd-cal, .fd-stories, .fd-steps { padding-top: 96px; }
  .fd-shift__map { grid-template-columns: 1fr; gap: 14px; }
  .fd-shift__arrow { height: 40px; } .fd-shift__arrow i { width: 1px; height: 100%; }
  .fd-shift__arrow i::after { right: -4px; top: auto; bottom: 0; rotate: 135deg; }
  .fd-div, .fd-pack ol { grid-template-columns: 1fr; }
  .fd-phones__row { grid-template-columns: 1fr; gap: 64px; }
  .fd-cal__head { display: none; }
  .fd-week { grid-template-columns: repeat(7, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 6px var(--gut) 20px; scrollbar-width: none; }
  .fd-week__name { grid-column: 1 / -1; position: sticky; left: 0; }
  .fd-day { scroll-snap-align: start; min-height: 110px; } .fd-day__d { display: block; }
  .fd-steps ol { grid-template-columns: 1fr; }
  .fd-steps li, .fd-steps li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- service page: Hospitality & Real Estate. Stone paper, deep sea-green ink, a terracotta accent ---------- */
body.st-hosp { --paper: #f2eee7; --ink: #18221f; --ink-muted: #66706b; --line: #d8d3c8; --spot: #b0603a; --stone: #e6e0d5; background: #f2eee7; color: #18221f; }
html:has(body.st-hosp) { background: #f2eee7; }
body.st-hosp .cs { padding-top: 0; }
.hs-hero { padding-top: 120px; }
.hs-kicker { font-size: .85rem; color: var(--spot); margin-bottom: 18px; }
.hs-hero h1 { font: 500 clamp(48px, 7.4vw, 128px)/.95 var(--sans); letter-spacing: -.045em; max-width: 13ch; }
.hs-hero h1 .word, .hs-hero h1 > div { display: inline-block; }
.hs-hero__row { display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); gap: 40px; align-items: end; margin-top: 48px; padding-bottom: 36px; }
.hs-hero__line { font-size: 1.12rem; line-height: 1.55; }
.hs-hero__stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.hs-hero__stages a { display: grid; gap: 4px; padding: 12px 10px 0 0; color: var(--ink); font-size: .95rem; }
.hs-hero__stages span { font-size: .75rem; color: var(--ink-muted); }
.hs-hero__stages a:hover { color: var(--spot); }
.hs-hero__img { margin: 0 var(--gut); overflow: hidden; border-radius: 4px; }
.hs-hero__img img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; transform-origin: 50% 60%; }
.hs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.hs-facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.hs-facts dt { font: 500 clamp(40px, 4.6vw, 72px)/1 var(--sans); letter-spacing: -.04em; }
.hs-facts dd { margin: 8px 0 0; color: var(--ink-muted); font-size: .92rem; max-width: 16rem; }

.hs-rail { position: fixed; z-index: 40; left: 50%; bottom: 20px; translate: -50% 140%; display: flex; gap: 2px; padding: 5px; border-radius: 99px; background: #18221fee; backdrop-filter: blur(8px); transition: translate .5s cubic-bezier(.2,.8,.2,1); }
.hs-rail.is-on { translate: -50% 0; }
.hs-rail a { display: flex; align-items: center; gap: 6px; padding: 8px 13px; white-space: nowrap; border-radius: 99px; color: #f2eee7aa; font-size: .8rem; transition: background .3s, color .3s; }
.hs-rail span { font-size: .7rem; opacity: .7; }
.hs-rail em { font-style: normal; }
.hs-rail a.is-on { background: #f2eee7; color: #18221f; }

.hs-stage { padding-top: 180px; }
.hs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 20px 48px; margin-bottom: 48px; align-items: end; }
.hs-n { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; color: var(--ink-muted); font-size: .9rem; border-top: 1px solid var(--ink); padding-top: 14px; }
.hs-n b { font-weight: 500; color: var(--spot); font-size: .9rem; }
.hs-head h2 { font: 500 clamp(40px, 5.6vw, 92px)/.95 var(--sans); letter-spacing: -.04em; }
.hs-head__body { display: grid; gap: 16px; }
.hs-head__body p { line-height: 1.6; color: #34403b; }
.hs-head__body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hs-head__body li { padding: 5px 12px; border-radius: 99px; background: var(--stone); font-size: .84rem; }
.hs-stage .bc-fig img { background: var(--stone); }

.hs-grid__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 14px; }
.hs-grid__g .is-lead { grid-column: 1 / -1; }
.hs-grid__g .is-lead img { aspect-ratio: 21 / 9; object-fit: cover; }
.hs-grid__g figure:not(.is-lead) img { aspect-ratio: 4 / 3; object-fit: cover; }

.hs-flow__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: start; }
.hs-flow__row > li:not(.hs-flow__arrow) { display: grid; gap: 8px; }
.hs-flow__row img { aspect-ratio: 16 / 10; object-fit: cover; }
.hs-flow__k { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: .75rem; margin-top: 10px; }
.hs-flow__row h3 { font: 500 1.3rem/1.2 var(--sans); }
.hs-flow__row p { color: var(--ink-muted); line-height: 1.5; font-size: .95rem; }
.hs-flow__arrow { align-self: center; height: 100%; display: grid; place-items: center; padding-bottom: 80px; }
.hs-flow__arrow i { width: 70%; height: 1px; background: var(--ink); position: relative; }
.hs-flow__arrow i::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); rotate: 45deg; }

.hs-wipe .hs-head { margin-bottom: 0; }
.hs-wipe__track { height: calc(var(--n) * 90vh + 100vh); position: relative; }
.hs-wipe__stick { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.hs-wipe__list { list-style: none; margin: 0; padding: 0; display: grid; }
.hs-wipe__list li { display: grid; grid-template-columns: 2rem 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--ink-muted); transition: color .4s; }
.hs-wipe__list span { font-size: .78rem; padding-top: 3px; }
.hs-wipe__list b { font-weight: 500; font-size: 1.1rem; }
.hs-wipe__list p { font-size: .88rem; line-height: 1.45; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s, opacity .5s, margin .5s; }
.hs-wipe__list li.is-on { color: var(--ink); } .hs-wipe__list li.is-on span { color: var(--spot); }
.hs-wipe__list li.is-on p { max-height: 4em; opacity: 1; margin-top: 4px; }
.hs-wipe__frame { position: relative; height: min(82vh, 60vw); aspect-ratio: 4 / 5; justify-self: center; border-radius: 4px; overflow: hidden; background: var(--stone); }
.hs-wipe__pair { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.hs-wipe__pair.is-on { opacity: 1; }
.hs-wipe__pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-wipe__line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px #0006; pointer-events: none; transition: opacity .3s; }
.hs-wipe__tag { position: absolute; top: 14px; padding: 5px 11px; border-radius: 99px; font-size: .75rem; background: #18221fcc; color: #fff; }
.hs-wipe__tag.is-l { left: 14px; background: #f2eee7e6; color: var(--ink); } .hs-wipe__tag.is-r { right: 14px; }

.hs-spec__sheet { border-top: 2px solid var(--ink); margin-bottom: 40px; }
.hs-spec__h, .hs-spec__row { display: grid; grid-template-columns: 120px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.hs-spec__h { font-size: .75rem; color: var(--ink-muted); padding: 10px 0; border-bottom: 1px solid var(--line); }
.hs-spec__h span:first-child { grid-column: 1 / 3; }
.hs-spec__row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.hs-spec__row img { width: 120px; height: 72px; object-fit: contain; }
.hs-spec__row b { font-weight: 500; font-size: 1.1rem; }
.hs-spec__row code { font: 500 .85rem var(--mono, monospace); color: var(--spot); }
.hs-spec__row span { color: var(--ink-muted); font-size: .92rem; }
.hs-spec__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hs-spec__g img { aspect-ratio: 4 / 3; object-fit: cover; }

.hs-day__row { list-style: none; margin: 0 calc(50% - 50vw); padding: 0 max(var(--gut), calc((100vw - 76rem) / 2)) 10px; scroll-padding-inline: max(var(--gut), calc((100vw - 76rem) / 2)); display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hs-day__row::-webkit-scrollbar { display: none; }
.hs-day__row > li { flex: none; width: clamp(240px, 22vw, 320px); display: grid; gap: 10px; align-content: start; scroll-snap-align: start; }
.hs-day__t { display: flex; align-items: center; gap: 10px; }
.hs-day__t b { font: 500 1.6rem/1 var(--sans); letter-spacing: -.02em; }
.hs-day__t i { flex: 1; height: 1px; background: var(--line); position: relative; }
.hs-day__t i::before { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--spot); }
.hs-day__row img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.hs-day__row h3 { font: 500 1.2rem/1.2 var(--sans); }
.hs-day__row p { color: var(--ink-muted); font-size: .92rem; line-height: 1.5; }

body.st-hosp .pl-related { padding-top: 180px; }
.hs-cta { padding: 120px 0 140px; display: grid; gap: 18px; justify-items: start; }
.hs-cta h2 { font: 500 clamp(36px, 5vw, 80px)/1 var(--sans); letter-spacing: -.04em; max-width: 16ch; }
.hs-cta p { color: var(--ink-muted); font-size: 1.1rem; }
.hs-cta a { margin-top: 10px; display: inline-flex; gap: 12px; align-items: center; padding: 16px 26px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 1rem; }
.hs-cta a i { font-style: normal; transition: translate .3s; } .hs-cta a:hover i { translate: 5px 0; }

@media (max-width: 860px) {
  .hs-hero { padding-top: 96px; }
  .hs-hero__row, .hs-head { grid-template-columns: 1fr; }
  .hs-hero__stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .hs-hero__img { margin: 0; border-radius: 0; } .hs-hero__img img { aspect-ratio: 4 / 3; }
  .hs-facts { grid-template-columns: 1fr 1fr; }
  .hs-rail { bottom: 12px; } .hs-rail em { display: none; } .hs-rail a.is-on em { display: inline; }
  .hs-stage { padding-top: 110px; }
  .hs-grid__g, .hs-spec__g { grid-template-columns: 1fr 1fr; }
  .hs-flow__row { grid-template-columns: 1fr; gap: 0; }
  .hs-flow__arrow { height: 48px; padding: 0; } .hs-flow__arrow i { width: 1px; height: 70%; }
  .hs-flow__arrow i::after { right: -4px; top: auto; bottom: 0; rotate: 135deg; }
  .hs-wipe__stick { grid-template-columns: 1fr; align-content: center; gap: 14px; padding-top: 56px; }
  .hs-wipe__list { order: 2; } .hs-wipe__list li:not(.is-on) { display: none; } .hs-wipe__list li { border: 0; padding: 0; }
  .hs-wipe__frame { height: auto; width: 100%; max-height: 62vh; }
  .hs-spec__h { display: none; }
  .hs-spec__row { grid-template-columns: 84px 1fr; gap: 4px 14px; }
  .hs-spec__row img { width: 84px; height: 60px; grid-row: span 3; }
  .hs-day__row > li { width: 72vw; }
}

/* ---------- cinematic service pages (hx): near-black green, warm ivory, brass; serif display over a plain sans ---------- */
body.st-hx { --paper: #0d1110; --ink: #ece5d8; --ink-muted: #948f85; --line: #ffffff1c; --spot: #c9a46a; --stone: #171c1a; --serif: "Cormorant Garamond", Georgia, serif; background: #0d1110; color: #ece5d8; }
html:has(body.st-hx) { background: #0d1110; }
body.st-hx .cs-next { display: none; }
body.st-hx a { color: inherit; }
.hx-display { font: 500 clamp(52px, 8.4vw, 150px)/.92 var(--serif); letter-spacing: -.02em; }
.hx-line { display: block; overflow: hidden; padding-bottom: .06em; } .hx-line > span { display: inline-block; }
.hx-kicker { display: flex; gap: 14px; font-size: .82rem; letter-spacing: .02em; color: var(--ink-muted); margin-bottom: 28px; }
.hx-kicker a { color: var(--spot) !important; } .hx-kicker a::after { content: " ·"; color: var(--ink-muted); }

.hx-hero { height: 330vh; position: relative; }
.hx-hero__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; }
.hx-hero__win { position: absolute; inset: 0; clip-path: inset(30% 30% 14% 30% round 18px); will-change: clip-path; }
.hx-hero__win img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); will-change: transform; }
.hx-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0d111000 25%, #0d1110cc 70%, #0d1110 100%); opacity: .15; }
.hx-hero__copy { position: relative; align-self: start; padding-top: 16vh; z-index: 2; mix-blend-mode: difference; color: #fff; }
.hx-hero__copy .hx-kicker { mix-blend-mode: normal; }
.hx-hero__copy h1 { font-size: clamp(56px, 10vw, 180px); }
.hx-hero__copy .hx-line:nth-child(2) { padding-left: 12vw; } .hx-hero__copy .hx-line:nth-child(3) { font-style: italic; padding-left: 4vw; }
.hx-hero__cue { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.hx-hero__after { position: absolute; left: 0; right: 0; bottom: 8vh; z-index: 2; opacity: 0; display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); gap: 40px; align-items: end; }
.hx-hero__after > p { font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.55; color: #f3eee6; }
.hx-hero__after ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #ffffff55; }
.hx-hero__after a { display: grid; gap: 4px; padding: 12px 8px 0 0; font-size: .98rem; color: #fff; }
.hx-hero__after span { font-size: .72rem; color: var(--spot); }

body.st-hx .hs-rail { background: #ece5d8f0; }
body.st-hx .hs-rail a { color: #0d1110aa; } body.st-hx .hs-rail a.is-on { background: #0d1110; color: #ece5d8; }

.hx-say { padding: 200px 0 120px; display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 40px; }
.hx-say__k { font-size: .82rem; color: var(--spot); padding-top: 18px; }
.hx-say__t { font: 500 clamp(34px, 4.6vw, 76px)/1.08 var(--serif); letter-spacing: -.01em; }
.hx-say__t span { color: #ece5d82e; transition: color .5s; } .hx-say__t span.is-on { color: var(--ink); }
.hx-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 180px; }
.hx-nums div { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; }
.hx-nums b { font: 500 clamp(72px, 9vw, 150px)/.85 var(--serif); color: var(--spot); }
.hx-nums span { color: var(--ink-muted); font-size: .95rem; max-width: 15rem; line-height: 1.45; }

.hx-open { position: relative; height: 112vh; overflow: hidden; display: grid; align-items: end; }
.hx-open__media { position: absolute; inset: 0; }
.hx-open__media > * { width: 100%; height: 100%; object-fit: cover; }
.hx-open__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0d111066 0%, #0d111000 30%, #0d111000 50%, #0d1110 100%); }
.hx-open__copy { position: relative; z-index: 1; padding-bottom: 12vh; }
.hx-open__n { font: 500 1rem var(--sans); color: var(--spot); margin-bottom: 14px; display: flex; gap: 8px; } .hx-open__n span { color: #ffffff88; }
.hx-open h2 { max-width: 12ch; }
.hx-open__line { margin-top: 22px; max-width: 30rem; font-size: 1.15rem; line-height: 1.5; color: #f3eee6; }

body.st-hx .hs-stage { padding-top: 90px; }
body.st-hx .hs-stage.is-opened { padding-top: 40px; }
.hs-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: 20px 48px; margin-bottom: 56px; align-items: start; }
.hs-lead p { font: 500 clamp(22px, 2vw, 30px)/1.3 var(--serif); color: var(--ink); max-width: 34ch; }
.hs-lead ul { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.hs-lead li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-muted); font-size: .95rem; }
.hs-lead li::before { content: "—"; color: var(--spot); margin-right: 10px; }
body.st-hx .hs-stage .bc-fig img { background: var(--stone); border-radius: 2px; }
body.st-hx .bc-fig figcaption { color: var(--ink-muted); }
body.st-hx .hs-flow__k { background: var(--spot); color: #0d1110; }
body.st-hx .hs-flow__arrow i, body.st-hx .hs-flow__arrow i::after { background: none; border-color: var(--spot); } body.st-hx .hs-flow__arrow i { background: var(--spot); }
body.st-hx .hs-flow__row h3 { font: 500 1.7rem/1.1 var(--serif); }
body.st-hx .hs-spec__sheet { border-color: var(--spot); }
body.st-hx .hs-spec__row img { background: #ece5d8; border-radius: 3px; padding: 6px; }
body.st-hx .hs-spec__row b { font: 500 1.5rem/1.1 var(--serif); }
body.st-hx .hs-wipe__list li.is-on b { color: var(--ink); }
body.st-hx .hs-wipe__list b { font: 500 1.5rem/1.1 var(--serif); }
body.st-hx .hs-wipe__frame { box-shadow: 0 40px 80px -30px #000; }
body.st-hx .pl-rel { color: var(--ink-muted); } body.st-hx .pl-rel a { color: var(--ink); text-decoration-color: #ffffff33; }

.hx-day { padding-top: 40px; }
.hx-day__track { position: relative; }
.hx-day__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: 100%; padding: 90px 0 36px; }
.hx-day__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 10px 32px; align-items: end; }
.hx-day__head p { grid-column: 1; max-width: 26rem; } .hx-day__clock { grid-column: 2; grid-row: 1 / span 2; }
.hx-day__head h2 { font-size: clamp(44px, 5.6vw, 96px); }
.hx-day__head p { color: var(--ink-muted); line-height: 1.5; }
.hx-day__clock { font: 500 clamp(56px, 7vw, 120px)/.85 var(--serif); color: var(--spot); font-variant-numeric: tabular-nums; min-width: 3.2ch; text-align: right; }
.hx-day__row { list-style: none; margin: 0; padding: 40px 0 0 max(var(--gut), calc((100vw - 76rem) / 2)); display: flex; gap: 28px; align-items: start; will-change: transform; }
.hx-day__row li { flex: none; width: clamp(240px, 24vw, 360px); display: grid; gap: 10px; opacity: .45; transition: opacity .5s; }
.hx-day__row li.is-on { opacity: 1; }
.hx-day__row figure { margin: 0; overflow: hidden; border-radius: 2px; background: var(--stone); }
.hx-day__row img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.hx-day__t { font-size: .8rem; color: var(--spot); }
.hx-day__row h3 { font: 500 1.8rem/1 var(--serif); }
.hx-day__row p:last-child { color: var(--ink-muted); font-size: .92rem; line-height: 1.5; }
.hx-day__bar { margin: 0 max(var(--gut), calc((100vw - 76rem) / 2)); height: 1px; background: var(--line); }
.hx-day__bar i { display: block; height: 100%; width: 0; background: var(--spot); }
.hx-day > .pl-rel { margin-top: 30px; }

.hx-logos { padding: 160px 0 40px; overflow: hidden; }
.hx-logos > p { font-size: .82rem; color: var(--spot); margin-bottom: 24px; }
.hx-logos__run { border-block: 1px solid var(--line); padding: 26px 0; white-space: nowrap; }
.hx-logos__run > div { display: inline-flex; gap: 40px; align-items: center; animation: hx-run 40s linear infinite; }
.hx-logos__run span { font: 500 clamp(32px, 3.4vw, 54px)/1 var(--serif); }
.hx-logos__run i { font-style: normal; color: var(--spot); font-size: .9rem; }
@keyframes hx-run { to { transform: translateX(-50%); } }
body.st-hx .pl-related { padding-top: 120px; }
body.st-hx .pl-related a { font: 500 1.6rem/1.1 var(--serif); }

.hx-cta { position: relative; margin-top: 160px; min-height: 100vh; display: grid; align-items: end; overflow: hidden; padding-bottom: 14vh; }
.hx-cta__bg { position: absolute; inset: 0; } .hx-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.hx-cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0d1110 0%, #0d111099 45%, #0d1110cc 100%); }
.hx-cta .container { position: relative; display: grid; gap: 22px; justify-items: start; }
.hx-cta h2 .hx-line:nth-child(2) { font-style: italic; }
.hx-cta p { color: #f3eee6; font-size: 1.15rem; }
.hx-btn { display: inline-flex; gap: 14px; align-items: center; padding: 18px 30px; border-radius: 99px; background: var(--spot); color: #0d1110 !important; font-size: 1.05rem; font-weight: 500; transition: background .3s; }
.hx-btn i { font-style: normal; transition: translate .3s; } .hx-btn:hover { background: #ece5d8; } .hx-btn:hover i { translate: 6px 0; }

@media (max-width: 860px) {
  .hx-hero { height: 260vh; }
  .hx-hero__copy { padding-top: 14vh; } .hx-hero__copy .hx-line:nth-child(2) { padding-left: 8vw; }
  .hx-hero__after { grid-template-columns: 1fr; bottom: 5vh; gap: 20px; }
  .hx-hero__after ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .hx-say { grid-template-columns: 1fr; padding: 120px 0 80px; gap: 12px; }
  .hx-nums { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding-bottom: 110px; }
  .hx-open { height: 92vh; } .hx-open__copy { padding-bottom: 8vh; }
  .hs-lead { grid-template-columns: 1fr; margin-bottom: 36px; }
  .hx-day__stick { padding-top: 76px; }
  .hx-day__head { gap: 8px 16px; } .hx-day__head p { grid-column: 1 / -1; grid-row: 2; } .hx-day__clock { grid-row: 1; }
  .hx-day__row { padding-top: 22px; } .hx-day__row li { width: 70vw; } .hx-day__row img { aspect-ratio: 1; }
  .hx-logos { padding-top: 100px; }
  .hx-cta { margin-top: 100px; min-height: 86vh; }
}
@media (prefers-reduced-motion: reduce) { .hx-logos__run > div { animation: none; } }

/* Prisma: the plain page with one band of spectrum, like the mark */
body.st-prisma { --spot: #6b3fd4; }
body.st-prisma .bc-head h1::after { content: ""; display: block; width: 2.2em; height: .09em; margin-top: .18em; background: linear-gradient(90deg, #e2231a, #f7a600, #f4e400, #3fb23a, #1e88e5, #6b3fd4); border-radius: 2px; }
body.st-prisma .pl-logos .bc-fig img { aspect-ratio: 4 / 3; object-fit: contain; background: #f4f2ee; }
body.st-prisma .pl-logos .is-dark img { background: #121214; }

.hx-day__stick > * { min-width: 0; }

.hs-grid__g .is-port img { aspect-ratio: 4 / 5; }
.hx-nums.has-title { padding-top: 160px; }
.hx-nums__h { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 20px 40px; align-items: end; margin-bottom: 20px; }
.hx-nums__h h2 { font-size: clamp(44px, 5.6vw, 96px); } .hx-nums__h p { color: var(--ink-muted); line-height: 1.5; }
body.st-hx .pl-team li > span { color: var(--spot); } body.st-hx .pl-team h3 { font: 500 1.6rem/1.1 var(--serif); }
body.st-hx .pl-team, body.st-hx .pl-team .pl-intro p { color: var(--ink); } body.st-hx .pl-team ul li { color: var(--ink-muted); }
body.st-hx .pl-intro p { color: #cfc8bb; }
@media (max-width: 860px) { .hx-nums__h { grid-template-columns: 1fr; } .hx-nums.has-title { padding-top: 100px; } }
body.st-hx .bc-h2 { font: 500 clamp(40px, 4.6vw, 76px)/1 var(--serif); letter-spacing: -.01em; }

/* ---------- knowledge pages (kx): type, ideas and diagrams, almost no pictures ---------- */
.kx-hero { padding-top: 22vh; padding-bottom: 60px; position: relative; }
.kx-hero h1 { font-size: clamp(54px, 9vw, 168px); }
.kx-hero h1 .hx-line:nth-child(2) { padding-left: 8vw; } .kx-hero h1 .hx-line:last-child { font-style: italic; color: var(--spot); }
.kx-hero__row { display: grid; grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); gap: 48px; align-items: end; margin-top: 64px; }
.kx-hero__line { font-size: clamp(1.1rem, 1.4vw, 1.35rem); line-height: 1.55; color: #e6dfd2; }
.kx-hero__toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.kx-hero__toc a { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 1rem; transition: color .3s, padding .3s; }
.kx-hero__toc a:hover { color: var(--spot); padding-left: 6px; }
.kx-hero__toc span { color: var(--spot); font-size: .78rem; padding-top: 3px; }
.kx-hero__art { position: absolute; left: 0; right: 0; top: 8vh; width: 100%; height: 300px; z-index: -1; opacity: .5; }
.kx-hero__art path { fill: none; stroke: var(--spot); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

.kx-sec { padding-top: 170px; }
.kx-head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 58rem; }
.kx-k { display: flex; gap: 12px; font-size: .82rem; color: var(--ink-muted); letter-spacing: .02em; } .kx-k b { color: var(--spot); font-weight: 500; }
.kx-head h2 { font-size: clamp(44px, 5.8vw, 100px); }
.kx-lede { font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.6; color: #d9d2c5; max-width: 44rem; }
.kx-book { display: inline-flex; margin-top: 14px; font-size: .86rem; color: var(--spot) !important; } .kx-book em { font-style: italic; margin: 0 .3em; }

.kx-pr { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.kx-pr li { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px 40px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.kx-pr__n { font: 500 1rem var(--sans); color: var(--spot); padding-top: 10px; }
.kx-pr h3 { font: 500 clamp(28px, 2.8vw, 46px)/1.02 var(--serif); }
.kx-pr__body p { line-height: 1.65; color: #d9d2c5; }
.kx-pr__how { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--spot); color: var(--ink) !important; }
.kx-pr__how b { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--spot); font-weight: 500; margin-bottom: 4px; }

.kx-ps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.kx-ps article { background: var(--paper); padding: 30px 28px 34px; display: grid; gap: 12px; align-content: start; transition: background .4s; }
.kx-ps article:hover { background: #141a18; }
.kx-ps h3 { font: 500 1.7rem/1.05 var(--serif); }
.kx-ps p { color: var(--ink-muted); line-height: 1.55; font-size: .95rem; }
.kx-ps__use { color: var(--ink) !important; padding-top: 12px; border-top: 1px solid var(--line); }
.kx-ps__use::before { content: "→ "; color: var(--spot); }

.kx-cmp { border-top: 1px solid var(--line); }
.kx-cmp__h, .kx-cmp__r { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.kx-cmp__h { padding: 14px 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--line); }
.kx-cmp__h span:last-child { color: var(--spot); }
.kx-cmp__r { padding: 22px 0; border-bottom: 1px solid var(--line); }
.kx-cmp__r p:first-child { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: #ffffff30; }
.kx-cmp__r p:last-child { font: 500 1.35rem/1.3 var(--serif); }

.kx-st { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border-top: 2px solid var(--spot); }
.kx-st li { padding: 22px 22px 0 0; display: grid; gap: 10px; align-content: start; }
.kx-st li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.kx-st span { color: var(--spot); font-size: .8rem; }
.kx-st h3 { font: 500 1.7rem/1.05 var(--serif); }
.kx-st p { color: var(--ink-muted); line-height: 1.55; font-size: .95rem; }
.kx-st__out { color: var(--ink) !important; font-size: .88rem !important; }

.kx-quote { padding-top: 190px; }
.kx-quote blockquote { margin: 0; max-width: 64rem; }
.kx-quote p { font: 500 clamp(34px, 4.4vw, 74px)/1.1 var(--serif); font-style: italic; }
.kx-quote p span { color: #ece5d82a; transition: color .5s; } .kx-quote p span.is-on { color: var(--ink); }
.kx-quote p::before { content: "“"; color: var(--spot); margin-left: -.45em; }

.kx-chart { margin: 0; position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 4px; background: #111614; }
.kx-chart__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .85rem; color: var(--ink-muted); margin-bottom: 8px; }
.kx-chart__legend span { display: flex; gap: 8px; align-items: center; }
.kx-chart__legend i { width: 16px; height: 2px; } .kx-chart__legend i.is-a { background: #bd8422; } .kx-chart__legend i.is-b { background: #4a8fd0; }
.kx-chart__plot svg { display: block; overflow: visible; }
.kx-chart figcaption { margin-top: 10px; font-size: .8rem; color: var(--ink-muted); }
.kx-axis { stroke: #ffffff2e; stroke-width: 1; }
.kx-ax, .kx-tick { fill: var(--ink-muted); font: 12px var(--sans); }
.kx-line { fill: none; stroke-width: 2; stroke-linecap: round; }
.kx-band { fill: #ffffff08; } .kx-band__t { fill: var(--ink-muted); font: 11px var(--sans); }
.kx-dot { stroke: #111614; stroke-width: 2; } .kx-hit { fill: transparent; cursor: pointer; }
.kx-lab { fill: var(--ink); font: 500 13px var(--sans); }
.kx-mark:focus { outline: none; } .kx-mark:focus .kx-dot, .kx-mark:hover .kx-dot { r: 7; }
.kx-tip { position: absolute; z-index: 3; width: 240px; padding: 12px 14px; background: #ece5d8; color: #0d1110; border-radius: 4px; font-size: .85rem; line-height: 1.45; pointer-events: none; box-shadow: 0 10px 30px #0008; }
.kx-tip b { display: block; margin-bottom: 4px; }
.kx-after { margin-top: 26px; max-width: 44rem; line-height: 1.6; color: #d9d2c5; }

.kx-bars { display: grid; gap: 14px; }
.kx-bar { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 5rem; gap: 18px; align-items: center; }
.kx-bar__l { color: #d9d2c5; }
.kx-bar__t { height: 10px; background: #ffffff0d; border-radius: 0 4px 4px 0; }
.kx-bar__t i { display: block; height: 100%; width: 0; background: #bd8422; border-radius: 0 4px 4px 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.kx-sec.is-in .kx-bar__t i { width: var(--w); }
.kx-bar b { font: 500 1.6rem/1 var(--serif); color: var(--ink); text-align: right; }
.kx-bar em { grid-column: 1 / -1; margin-top: -8px; font-style: normal; font-size: .78rem; color: var(--ink-muted); }
.kx-src { margin-top: 20px; font-size: .8rem; color: var(--ink-muted); }

@media (max-width: 860px) {
  .kx-hero { padding-top: 16vh; } .kx-hero__row { grid-template-columns: 1fr; margin-top: 40px; gap: 28px; }
  .kx-sec { padding-top: 110px; } .kx-head { margin-bottom: 36px; }
  .kx-pr li { grid-template-columns: 2.4rem 1fr; } .kx-pr__body { grid-column: 1 / -1; }
  .kx-ps { grid-template-columns: 1fr; }
  .kx-cmp__h, .kx-cmp__r { grid-template-columns: 1fr; gap: 6px; } .kx-cmp__h span:first-child { display: none; }
  .kx-st { grid-template-columns: 1fr; } .kx-st li, .kx-st li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .kx-quote { padding-top: 120px; }
  .kx-chart { padding: 14px; }
  .kx-bar { grid-template-columns: 1fr 4rem; } .kx-bar__t { grid-column: 1 / -1; grid-row: 2; }
}
.kx-chart svg text, .kx-band, .kx-hit { stroke: none; }
.kx-hero > :not(.kx-hero__art) { position: relative; z-index: 1; }
.kx-hero__art { z-index: 0; }

.kx-tri { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kx-tri li { position: relative; padding: 34px 28px 36px; border: 1px solid var(--line); border-radius: 4px; display: grid; gap: 14px; align-content: start; background: linear-gradient(180deg, #151b19, #0d1110); }
.kx-tri li:nth-child(2) { border-color: #bd842266; } .kx-tri li:nth-child(3) { border-color: var(--spot); }
.kx-tri span { color: var(--spot); font-size: .8rem; }
.kx-tri h3 { font: 500 clamp(30px, 2.8vw, 44px)/1 var(--serif); }
.kx-tri__sub { color: var(--ink-muted); font-size: .95rem; line-height: 1.5; }
.kx-tri p:last-child { padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.55; }
.kx-tri + .kx-book { margin-top: 22px; }
@media (max-width: 860px) { .kx-tri { grid-template-columns: 1fr; } }

/* ---------- service pages in the site's own identity: paper, Geist, mono labels, the green spot, light or dark as the visitor chose ---------- */
body.st-kx { --kx-a: #0a7d5a; --kx-b: #1460c0; --serif: var(--sans); }
[data-theme="dark"] body.st-kx, html.is-dark-zone body.st-kx { --kx-a: #24a07a; --kx-b: #4f86e0; }
body.st-kx .cs { padding-top: 0; }
body.st-kx .cs-next { display: none; }
body.st-kx .hx-display { font-weight: 600; letter-spacing: -.045em; line-height: .95; }
body.st-kx .hx-kicker, body.st-kx .kx-k { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
body.st-kx .hx-kicker a { color: var(--spot) !important; } body.st-kx .hx-kicker a::after { content: " /"; color: var(--ink-muted); }
body.st-kx .kx-k b { color: var(--spot); }
body.st-kx .kx-hero h1 { font-size: clamp(3rem, 1rem + 7.4vw, 8.5rem); }
body.st-kx .kx-hero h1 .hx-line:last-child { font-style: normal; color: var(--spot); }
body.st-kx .kx-hero__art path { stroke: var(--spot); stroke-width: 1.4; opacity: .55; }
body.st-kx .kx-hero__line, body.st-kx .kx-pr__body p, body.st-kx .kx-after, body.st-kx .kx-bar__l { color: var(--ink); }
body.st-kx .kx-lede { color: var(--ink-muted); }
body.st-kx .kx-head h2 { font-size: var(--fs-display); }
body.st-kx .kx-pr h3, body.st-kx .kx-ps h3, body.st-kx .kx-st h3, body.st-kx .kx-tri h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.03em; }
body.st-kx .kx-pr h3 { font-size: clamp(24px, 2.3vw, 38px); }
body.st-kx .kx-pr__how { border-left-color: var(--spot); }
body.st-kx .kx-pr__how b, body.st-kx .kx-st span, body.st-kx .kx-tri span, body.st-kx .kx-pr__n { font-family: var(--mono); color: var(--spot); }
body.st-kx .kx-book { color: var(--spot) !important; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
body.st-kx .kx-book em { font-style: normal; text-transform: none; font-family: var(--sans); font-size: .9rem; letter-spacing: 0; }
body.st-kx .kx-ps { background: var(--line); border-color: var(--line); border-radius: var(--r-xl); overflow: hidden; }
body.st-kx .kx-ps article { background: var(--paper); } body.st-kx .kx-ps article:hover { background: var(--card); }
body.st-kx .kx-ps__use::before { color: var(--spot); }
body.st-kx .kx-cmp__h span:last-child { color: var(--spot); }
body.st-kx .kx-cmp__h { font-family: var(--mono); font-size: .72rem; }
body.st-kx .kx-cmp__r p:first-child { text-decoration-color: var(--fill-strong); }
body.st-kx .kx-cmp__r p:last-child { font: 500 1.25rem/1.35 var(--sans); letter-spacing: -.01em; }
body.st-kx .kx-st { border-top-color: var(--ink); }
body.st-kx .kx-tri li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); }
body.st-kx .kx-tri li:nth-child(2) { border-color: var(--spot-wash); } body.st-kx .kx-tri li:nth-child(3) { border-color: var(--spot); }
body.st-kx .kx-quote p { font: 600 clamp(32px, 4.2vw, 68px)/1.05 var(--sans); letter-spacing: -.035em; font-style: normal; }
body.st-kx .kx-quote p span { color: var(--fill-strong); } body.st-kx .kx-quote p span.is-on { color: var(--ink); }
body.st-kx .kx-chart { background: var(--card); border-color: var(--line); border-radius: var(--r-xl); }
body.st-kx .kx-chart__legend i.is-a { background: var(--kx-a); } body.st-kx .kx-chart__legend i.is-b { background: var(--kx-b); }
body.st-kx .kx-line.is-a { stroke: var(--kx-a); } body.st-kx .kx-line.is-b { stroke: var(--kx-b); }
body.st-kx .kx-dot.is-a { fill: var(--kx-a); } body.st-kx .kx-dot.is-b { fill: var(--kx-b); }
body.st-kx .kx-dot { stroke: var(--card); }
body.st-kx .kx-axis { stroke: var(--divider); }
body.st-kx .kx-band { fill: var(--fill); }
body.st-kx .kx-ax, body.st-kx .kx-tick, body.st-kx .kx-band__t { fill: var(--ink-muted); font-family: var(--mono); font-size: 11px; }
body.st-kx .kx-lab { fill: var(--ink); }
body.st-kx .kx-tip { background: var(--popover); color: var(--ink); box-shadow: var(--shadow-modal); border: 1px solid var(--line); }
body.st-kx .kx-bar__t { background: var(--fill); } body.st-kx .kx-bar__t i { background: var(--spot); }
body.st-kx .kx-bar b { font: 600 1.5rem/1 var(--sans); letter-spacing: -.03em; }
body.st-kx .kx-src, body.st-kx .kx-bar em, body.st-kx .kx-chart figcaption { color: var(--ink-muted); }
body.st-kx .hx-cta { min-height: 0; margin-top: 120px; padding: 140px 0 160px; border-top: 1px solid var(--line); overflow: visible; }
body.st-kx .hx-cta h2 { font-size: var(--fs-display); } body.st-kx .hx-cta h2 .hx-line:nth-child(2) { font-style: normal; color: var(--spot); }
body.st-kx .hx-cta p { color: var(--ink-muted); }
body.st-kx .hx-btn { background: var(--btn-fill); color: var(--btn-on) !important; font-weight: 500; }
body.st-kx .hx-btn:hover { background: var(--spot); color: #fff !important; }
