/*
  tanvirisraque.com · version 3: bold, and complete.
  The name, a short profile, four projects (each with its own animated object, and an app tour for
  Subah and Simpletree), then the record: about, experience, education, research, ventures, decks,
  questions, contact.
  Brand: the "ti" kit, at night (his positioning: it is always night; ink ground, cream type, one coral light).
  The token names are historical: --bone is the GROUND (Midnight) and --ink is the TYPE (Bone).
*/
/* the two faces every screen needs come from this site, so nothing waits on another host */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-mono-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-mono-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* while the serif is on its way, Georgia stands in at the same width, so nothing moves when it arrives */
@font-face { font-family: "Serif Fallback"; src: local("Georgia"); size-adjust: 76%; }
:root {
  color-scheme: dark;
  --bone: #0F1222;
  --ink: #F3EEE4;
  --soft: rgba(243, 238, 228, 0.68);
  --rule: rgba(243, 238, 228, 0.17);
  --coral: #FF6B4A;
  --coral-ink: #FF6B4A;
  --plate: #1B110A;
  --sand: #1C2036;
  --midnight: #0F1222;
  --card: #171B33;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Serif Fallback", Georgia, serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --bangla: "Kohinoor Bangla", "Noto Sans Bengali", "Bangla Sangam MN", "Nirmala UI", "Vrinda", sans-serif;

  --gutter: clamp(1.1rem, 3.2vw, 3.5rem);
  --bar: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 8px); background: var(--bone); }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.5; font-weight: 500;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--coral); color: var(--midnight); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--bone); font-weight: 700; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.anchor { display: block; height: 0; }
.mono { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.bn { font-family: var(--bangla); }
.soft { color: var(--soft); }
.ul { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.ul:hover { color: var(--coral-ink); }
.h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }

/* ── buttons and links ── */
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.4rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 48px; padding: 0 1.35em; border-radius: 999px;
  background: var(--ink); color: var(--bone); font-weight: 800; font-size: 1rem; border: 2px solid var(--ink);
  transition: background 200ms, color 200ms, border-color 200ms;
}
.btn svg, .go svg { width: 1.05em; height: 1.05em; flex: none; transition: transform 300ms var(--ease); }
.btn:hover { background: var(--coral); border-color: var(--coral); color: var(--midnight); }
.btn:hover svg, .go:hover svg { transform: translate(2px, -2px); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn--coral { background: var(--coral); border-color: var(--coral); color: var(--midnight); }
.btn--coral:hover { background: var(--ink); border-color: var(--ink); }
.go { display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; font-weight: 800; font-size: 1.02rem; border-bottom: 3px solid var(--coral); }
.go:hover { color: var(--coral-ink); }
.go--small { font-size: 0.95rem; min-height: 36px; border-bottom-width: 2px; }
.copy { font-family: var(--mono); font-size: 0.85rem; min-height: 36px; padding: 0 0.7em; border: 1.5px dashed var(--rule); border-radius: 8px; color: inherit; }
.copy:hover { border-color: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips li { padding: 0.36em 0.95em; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 0.92rem; font-weight: 650; line-height: 1.3; }
.chips--small li { font-size: 0.8rem; border-color: var(--rule); color: var(--soft); }

/* ── top bar ── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar); padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(to bottom, rgba(15, 18, 34, 0.97) 55%, rgba(15, 18, 34, 0.82));
}
.bar__brand { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -6px; flex: none; }
.bar__mark { width: 30px; height: 32px; }
.lg-ink { fill: var(--ink); }
.lg-note { fill: var(--coral); }
.lg-stem { fill: none; stroke: var(--coral); stroke-width: 9; stroke-linecap: round; }
.bar__nav { display: flex; align-items: center; gap: clamp(0.8rem, 1.5vw, 1.7rem); font-weight: 700; font-size: 0.9rem; margin-left: auto; }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.bar__nav a:hover, .bar__nav a.is-here { color: var(--coral-ink); }
.bar__end { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.bar__cv, .bar__menu { display: inline-flex; align-items: center; padding: 0 1.1em; border: 2px solid var(--ink); border-radius: 999px; min-height: 40px; font-weight: 700; font-size: 0.9rem; }
.bar__cv:hover, .bar__menu:hover { background: var(--ink); color: var(--midnight); }
.bar__menu { display: none; }

/* ── the name, on a night stage ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--bar) + 2vh) var(--gutter) clamp(1rem, 2.6vh, 2rem);
  display: grid; grid-template-rows: 1fr auto auto; align-items: end; gap: clamp(1rem, 2.6vh, 2rem);
  background:
    radial-gradient(54vw 54vw at 76% 44%, #3B2212 0%, #2A180D 34%, rgba(27, 17, 10, 0) 70%),
    radial-gradient(70vw 50vh at 8% 112%, rgba(255, 107, 74, 0.2), rgba(255, 107, 74, 0) 70%);
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
/* the four things I built take turns in the light */
.hero__stage {
  position: absolute; z-index: -1; right: calc(var(--gutter) * -0.4); top: calc(var(--bar) - 2vh);
  width: min(50vw, 82vh); aspect-ratio: 1;
  -webkit-mask-image: radial-gradient(closest-side, #000 56%, transparent 98%); mask-image: radial-gradient(closest-side, #000 56%, transparent 98%);
}
.hero__obj { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 900ms ease, transform 1800ms var(--ease); }
.hero__obj.is-on { opacity: 1; transform: none; }
.hero__obj img, .hero__obj video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__obj video, .plate video { opacity: 0; transition: opacity 700ms ease; }
.hero__obj video.is-live, .plate video.is-live { opacity: 1; }
.hero__name {
  font-size: clamp(4.2rem, 15.6vw, 19rem); font-weight: 800; letter-spacing: -0.068em; line-height: 0.8;
  margin-left: -0.045em; padding-top: 0.08em; margin-bottom: 0.02em; text-shadow: 0 0 70px rgba(15, 18, 34, 0.6);
}
.hero__line { display: block; overflow: hidden; padding: 0.14em 0 0.03em; margin-top: -0.14em; }
.hero__line + .hero__line { padding-bottom: 0.16em; margin-bottom: -0.1em; }
.hero__word { display: inline-block; animation: rise 1100ms var(--ease) both; }
.hero__line + .hero__line .hero__word { animation-delay: 110ms; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
/* the dot of the i is the eighth note from his mark */
.hero__i { position: relative; display: inline-block; }
.hero__note {
  position: absolute; left: 50%; top: -0.055em; width: 0.33em; height: 0.24em; margin-left: -0.125em;
  color: var(--coral); display: block; cursor: pointer; pointer-events: auto;
  animation: note-in 700ms var(--ease) 900ms both; transform-origin: 40% 80%; filter: drop-shadow(0 0 0.14em rgba(255, 107, 74, 0.6));
}
.hero__note svg { width: 100%; height: 100%; overflow: visible; }
.hero__note:hover, .hero__note.is-hit { animation: note-hit 520ms var(--ease); }
@keyframes note-in { from { transform: translateY(-0.5em) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes note-hit { 0% { transform: none; } 35% { transform: translateY(-0.09em) rotate(-9deg); } 100% { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero__foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.2rem, 2.6vw, 2.6rem); align-items: end; animation: fade 900ms ease 700ms both; }
/* his still, in an arch, with a slow halo turning behind it */
.hero__photo { position: relative; width: clamp(92px, 8.8vw, 140px); aspect-ratio: 3 / 4; }
.hero__photo img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; border-radius: 999px 999px 10px 10px; }
.hero__halo { position: absolute; inset: -8px -8px 0; border: 1.5px solid var(--coral); border-bottom: 0; border-radius: 999px 999px 0 0; animation: glow 3.6s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 -6px 26px -8px rgba(255, 107, 74, 0.2); opacity: 0.6; } 50% { box-shadow: 0 -10px 34px -6px rgba(255, 107, 74, 0.75); opacity: 1; } }
@keyframes turn { to { transform: rotate(1turn); } }
.hero__headline { display: grid; gap: 0.1em; font-size: clamp(1rem, 0.86rem + 0.62vw, 1.5rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.hero__headline span + span { color: var(--soft); font-weight: 600; }
.hero__tag { font-family: var(--serif); font-size: clamp(1.9rem, 1rem + 3.2vw, 4.8rem); line-height: 0.96; letter-spacing: -0.01em; text-align: right; }
.hero__tag em { color: var(--coral); }
.hero__reel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--ink); animation: fade 900ms ease 900ms both; }
.hero__reel li { position: relative; min-width: 0; }
.hero__reel li + li { border-left: 1px solid var(--rule); }
.hero__reel a { display: grid; gap: 0.15rem; padding: 0.9rem clamp(0.6rem, 1.4vw, 1.4rem) 0.3rem; color: rgba(243, 238, 228, 0.5); transition: color 300ms; }
.hero__reel li:first-child a { padding-left: 0; }
.hero__reel .mono { color: inherit; font-size: 0.68rem; }
.hero__reel b { font-size: clamp(1.15rem, 0.8rem + 1.5vw, 2.3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.hero__reel a > span:last-child { font-size: 0.9rem; line-height: 1.3; }
.hero__reel li.is-on a, .hero__reel a:hover { color: var(--ink); }
.hero__reel li.is-on .mono { color: var(--coral); }
.hero__reel li::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--coral); transform: scaleX(0); transform-origin: left; }
.js .hero__reel li.is-on::before { animation: reel var(--reel, 5000ms) linear both; }
html:not(.js) .hero__reel li.is-on::before { transform: none; }
@keyframes reel { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── every section ── */
.sec { padding: clamp(3.5rem, 9vh, 7rem) var(--gutter) clamp(2.5rem, 6vh, 5rem); }
main > section { overflow-x: clip; }
/* animations rest while their part of the page is off screen (the script marks the parts that are near) */
.js main > section:not(.is-near) *, .js main > section:not(.is-near) *::before, .js main > section:not(.is-near) *::after { animation-play-state: paused !important; }
.sec__label {
  display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-bottom: 0.9rem; margin-bottom: clamp(1.6rem, 4.5vh, 3.4rem);
  border-bottom: 3px solid var(--ink); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft);
}
.sec__label span:first-child { color: var(--coral-ink); }
.sec__title { font-size: clamp(2.6rem, 1rem + 6.6vw, 8rem); font-weight: 800; letter-spacing: -0.058em; line-height: 0.9; margin-left: -0.035em; text-wrap: balance; }
.sec__title--long { font-size: clamp(2rem, 1rem + 3.5vw, 4.5rem); letter-spacing: -0.045em; line-height: 1; max-width: 17ch; }
.sec__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 1.2rem var(--gutter); align-items: end; }
.sec__lede { font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.6rem); line-height: 1.32; font-weight: 600; max-width: 32ch; text-wrap: pretty; }
.kv { display: grid; border-top: 1px solid var(--rule); }
.kv > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.kv dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.kv dd { font-weight: 650; overflow-wrap: anywhere; }
.kv--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(1rem, 2.4vw, 2.4rem); margin-top: clamp(2rem, 5vh, 3.6rem); border-top: 3px solid var(--ink); }
.kv--4 > div { grid-template-columns: 1fr; gap: 0.35rem; padding: 1rem 0 0; border-bottom: 0; align-content: start; }
.trio { margin-top: clamp(3rem, 8vh, 6rem); scroll-margin-top: calc(var(--bar) + 12px); }
.trio__cards { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.trio__cards li { padding: 1.3rem clamp(1rem, 2.2vw, 2rem) 1.2rem 0; display: grid; gap: 0.5rem; align-content: start; }
.trio__cards li + li { padding-left: clamp(1rem, 2.2vw, 2rem); border-left: 1px solid var(--rule); }
.trio__cards .mono { color: var(--coral-ink); }
.trio__cards b { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.trio__cards p { color: var(--soft); font-size: 0.98rem; text-wrap: pretty; }
.trio__cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trio__cards--six li:nth-child(n + 4) { border-top: 1px solid var(--rule); }
.trio__cards--six li:nth-child(4) { padding-left: 0; border-left: 0; }
.split { margin-top: clamp(3rem, 8vh, 6rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split .h3 { margin-bottom: 1.2rem; }
.stackblock .soft { margin-top: 1.2rem; max-width: 52ch; }
.aside { margin-top: clamp(1.6rem, 4vh, 2.6rem); padding-top: 1.1rem; border-top: 1px solid var(--rule); max-width: 62ch; color: var(--soft); }
.aside--tight { margin-top: 1.4rem; }
.linkrow { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: clamp(1.6rem, 4vh, 2.6rem); }

/* ── in short ── */
.profile__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(1.5rem, 4vw, 5rem); align-items: end; }
.profile__lede { font-size: clamp(2rem, 1rem + 4.2vw, 5.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.98; text-wrap: balance; margin-left: -0.03em; }
.profile__side { display: grid; gap: 1.2rem; font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem); }
.profile__tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); line-height: 1.05; color: var(--coral-ink); }
.figs { margin-top: clamp(2.2rem, 6vh, 4.5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.figs li { padding: clamp(1.1rem, 2.6vh, 2rem) clamp(0.8rem, 2vw, 2rem) 0 0; display: grid; gap: 0.7rem; align-content: start; min-width: 0; }
.figs li + li { padding-left: clamp(0.8rem, 2vw, 2rem); border-left: 1px solid var(--rule); }
.figs b { font-size: clamp(2.6rem, 1rem + 6.2vw, 8.4rem); font-weight: 800; letter-spacing: -0.065em; line-height: 0.9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figs span { color: var(--soft); font-size: 0.98rem; line-height: 1.4; max-width: 24ch; }

/* ── Subah and me: one bench under one arch. His words sit under him, hers under her ── */
.duo__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.8rem 3rem; }
.duo__line { font-family: var(--serif); font-size: clamp(1.7rem, 1rem + 2.6vw, 3.8rem); line-height: 1; letter-spacing: -0.01em; text-align: right; }
.duo__line em { color: var(--coral); }
.duo__scene { position: relative; margin-top: clamp(1.6rem, 5vh, 3.4rem); }
/* the picture is a wide arch whose floor dissolves into the page, so the bench stands on the page itself */
.duo__frame {
  position: relative; overflow: hidden; border-radius: clamp(60px, 17vw, 300px) clamp(60px, 17vw, 300px) 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, rgba(0, 0, 0, 0.5) 86%, transparent 100%); mask-image: linear-gradient(to bottom, #000 66%, rgba(0, 0, 0, 0.5) 86%, transparent 100%);
}
.duo__frame img { width: 100%; height: auto; }
/* the life in the picture is made in code. Every moving piece is a small copy of the same picture laid exactly over itself */
.duo__wind { position: absolute; inset: 0; pointer-events: none; }
.duo__wind i { position: absolute; background-image: url("../img/story/subah-and-tanvir-terrace-1600.webp"); background-repeat: no-repeat; }
/* an oil-lamp flame leans and stretches from its wick; a warm glow flickers over it */
.duo__wick { transform-origin: 50% 100%; animation: waver var(--t) ease-in-out var(--d) infinite;
  -webkit-mask-image: radial-gradient(ellipse 50% 58% at 50% 62%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 50% 58% at 50% 62%, #000 50%, transparent 100%); }
@keyframes waver { 0%, 100% { transform: skewX(0deg) scaleY(1); } 18% { transform: skewX(-8deg) scaleY(1.1); } 41% { transform: skewX(5deg) scaleY(0.92); } 63% { transform: skewX(-3deg) scaleY(1.06); } 82% { transform: skewX(7deg) scaleY(0.97); } }
.duo__flame { position: absolute; width: 4.4%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen; opacity: 0.5; background: radial-gradient(closest-side, rgba(255, 200, 120, 0.8) 0%, rgba(255, 150, 70, 0.32) 38%, rgba(255, 140, 60, 0) 100%); animation: flame var(--t) ease-in-out var(--d) infinite; }
.duo__flame--small { width: 1.9%; }
@keyframes flame { 0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); } 22% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.1); } 48% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.92); } 70% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.06); } }
/* city windows twinkle */
.duo__wind s { position: absolute; width: 1.5%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen; text-decoration: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 226, 170, 0.95) 0%, rgba(255, 190, 110, 0.4) 40%, rgba(255, 190, 110, 0) 100%); animation: twinkle var(--t) ease-in-out var(--d) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } 45%, 60% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } }
/* the lit windows of the old house breathe, as if a lamp inside is burning */
.duo__pane { position: absolute; mix-blend-mode: screen; opacity: 0.12; background: radial-gradient(closest-side, rgba(255, 196, 120, 0.55) 0%, rgba(255, 170, 90, 0.3) 55%, rgba(255, 170, 90, 0) 100%); animation: pane var(--t) ease-in-out var(--d) infinite; }
@keyframes pane { 0%, 100% { opacity: 0.12; } 30% { opacity: 0.85; } 38% { opacity: 0.55; } 52% { opacity: 0.95; } 76% { opacity: 0.3; } }
/* the plants at the two edges stir a little. Nothing near the two people is touched */
.duo__plant { transform-origin: var(--ox, 50%) var(--oy, 100%); animation: sway var(--t, 6.5s) ease-in-out var(--d, 0s) infinite alternate;
  -webkit-mask-image: radial-gradient(ellipse 58% 54% at var(--mx, 50%) var(--my, 50%), #000 38%, transparent 100%); mask-image: radial-gradient(ellipse 58% 54% at var(--mx, 50%) var(--my, 50%), #000 38%, transparent 100%); }
@keyframes sway { from { transform: rotate(-0.8deg) skewX(-1.2deg); } to { transform: rotate(0.8deg) skewX(1.2deg); } }
.duo__scene::before { content: ""; position: absolute; inset: -12px -12px 30%; border: 1.5px solid rgba(243, 238, 228, 0.3); border-bottom: 0; border-radius: clamp(72px, 18vw, 312px) clamp(72px, 18vw, 312px) 0 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); }
.duo__tag { position: absolute; bottom: 9%; transform: translateX(-50%); white-space: nowrap; padding: 0.4em 1em; border-radius: 999px; background: rgba(15, 18, 34, 0.82); box-shadow: 0 0 0 1px rgba(243, 238, 228, 0.25); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.duo__tag--me { left: 24%; }
.duo__tag--her { left: 75.5%; box-shadow: 0 0 0 1px var(--coral); }
.duo__grid { margin-top: clamp(0.6rem, 2vh, 1.4rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 9vw, 9rem); align-items: start; }
.duo__side { display: grid; gap: 1.1rem; align-content: start; }
.duo__name { font-size: clamp(2.6rem, 1.2rem + 5.4vw, 7rem); font-weight: 800; letter-spacing: -0.055em; line-height: 0.9; }
.duo__name small { display: inline-block; margin-left: 0.6em; font-size: max(0.22em, 1rem); font-weight: 700; letter-spacing: -0.01em; color: var(--soft); }
.duo__facts { border-top: 3px solid var(--ink); }
.duo__facts > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.3rem 1.2rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.duo__facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); padding-top: 0.25em; }
.duo__facts dd { text-wrap: pretty; }
.duo__foot { margin-top: clamp(2rem, 5vh, 3.4rem); padding-top: 1.1rem; border-top: 1px solid var(--rule); color: var(--soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 2rem; }
.duo__foot span { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink); }

/* one story, three addresses */
.story { padding: clamp(3rem, 9vh, 6rem) var(--gutter) clamp(2rem, 5vh, 3rem); border-top: 1px solid var(--rule); background: radial-gradient(70vw 40vh at 50% 120%, rgba(255, 107, 74, 0.18), rgba(255, 107, 74, 0) 70%); }
.story__line { font-family: var(--serif); font-size: clamp(2.2rem, 1rem + 5vw, 6.4rem); line-height: 0.98; letter-spacing: -0.015em; }
.story__line em { color: var(--coral); }
.story__sites { margin-top: clamp(1.4rem, 4vh, 2.6rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.story__sites li { padding: 1.1rem clamp(1rem, 2vw, 2rem) 0 0; display: grid; gap: 0.3rem; align-content: start; }
.story__sites li + li { padding-left: clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--rule); }
.story__sites .mono { color: var(--coral); }
.story__sites b { font-size: clamp(1.15rem, 0.9rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.story__sites a:hover b { color: var(--coral); }
.story__sites li > span:last-child { color: var(--soft); font-size: 0.95rem; }

/* ── a project ── */
.proj__gap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 1rem; align-items: baseline; padding: 0.7rem 0; border-block: 1px solid var(--rule); font-weight: 650; max-width: 58ch; }
.proj__gap span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-ink); white-space: nowrap; }
.proj__head { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: clamp(1.5rem, 4vw, 5rem); align-items: center; }
.proj__text { display: grid; gap: clamp(0.9rem, 2vh, 1.4rem); justify-items: start; }
.proj__name { font-size: clamp(3rem, 1.2rem + 8.2vw, 10rem); font-weight: 800; letter-spacing: -0.058em; line-height: 0.88; margin-left: -0.04em; text-wrap: balance; }
.proj__name small { display: block; margin: 0.5em 0 0 0.14em; font-size: max(0.26em, 1.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.proj__name small.bn { letter-spacing: 0; font-weight: 700; }
.proj__line { font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.7rem); line-height: 1.3; max-width: 30ch; font-weight: 650; text-wrap: pretty; }
.proj__body { max-width: 58ch; color: var(--soft); text-wrap: pretty; }
.plate { position: relative; isolation: isolate; width: 100%; max-width: 78vh; aspect-ratio: 1; justify-self: center; }
.plate::before { content: ""; position: absolute; inset: -6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, #3B2212 0%, #2A180D 46%, rgba(27, 17, 10, 0) 100%); }
/* a thin orbit, with one small light travelling round it */
.plate::after {
  content: ""; position: absolute; inset: 3%; border-radius: 50%; border: 1px dashed rgba(255, 107, 74, 0.38); pointer-events: none;
  background: radial-gradient(circle 7px at 50% 0, var(--coral) 0 5px, rgba(255, 107, 74, 0.35) 6px, transparent 7px) no-repeat; background-origin: border-box; background-position: 50% -4px;
  animation: turn 46s linear infinite;
}
.proj:nth-of-type(even) .plate::after { animation-direction: reverse; }
.plate video, .plate img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: bob 8s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 97%); mask-image: radial-gradient(closest-side, #000 60%, transparent 97%);
}
@keyframes bob { 0%, 100% { transform: scale(1.16) translateY(-1.2%); } 50% { transform: scale(1.16) translateY(1.2%); } }

/* ── the app tours (Subah and Simpletree) ── */
.tour { margin-top: clamp(3rem, 8vh, 6rem); scroll-margin-top: calc(var(--bar) + 12px); }
.tour__head { display: flex; align-items: end; justify-content: space-between; gap: 0.8rem 2rem; flex-wrap: wrap; }
.tour__toggle { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1em; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 0.9rem; }
.tour__toggle:hover { background: var(--ink); color: var(--bone); }
.tour__toggle span { display: inline-flex; align-items: center; gap: 0.45em; }
.tour__toggle svg { width: 1em; height: 1em; }
.tour__toggle .tour__play, .tour__toggle[aria-pressed="false"] .tour__pause { display: none; }
.tour__toggle[aria-pressed="false"] .tour__play { display: inline-flex; }
html:not(.js) .tour__toggle, html:not(.js) .tour__tabs { display: none; }
.tour__tabs { margin-top: 1.4rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 3px solid var(--ink); }
.tour__tab { position: relative; display: grid; gap: 0.2rem; justify-items: start; text-align: left; padding: 1rem 1rem 1.1rem 0; min-height: 44px; color: rgba(243, 238, 228, 0.45); transition: color 200ms; }
.tour__tab .mono { color: inherit; font-size: 0.72rem; }
.tour__tabname { font-weight: 800; font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem); letter-spacing: -0.02em; line-height: 1.15; }
.tour__tab:hover, .tour__tab[aria-selected="true"] { color: var(--ink); }
.tour__bar { position: absolute; left: 0; right: 1rem; top: -3px; height: 3px; overflow: hidden; }
.tour__bar i { display: block; height: 100%; background: var(--coral); transform-origin: left; transform: scaleX(0); }
.tour__tab[aria-selected="true"] .tour__bar i { transform: none; }
/* while the tour plays, the bar of the open tab fills once; when it is full the script opens the next tab */
.tour.is-playing .tour__tab[aria-selected="true"] .tour__bar i { animation: tourbar 8s linear both; }
.tour.is-playing:hover .tour__bar i, .tour.is-playing:focus-within .tour__bar i { animation-play-state: paused; }
@keyframes tourbar { from { transform: scaleX(0); } to { transform: none; } }
.tour__panels { margin-top: clamp(1.4rem, 3vh, 2.2rem); }
.tour__panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
html:not(.js) .tour__panel + .tour__panel { margin-top: 3rem; }
.tour__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; display: flex; gap: 0.8rem; align-items: baseline; }
.tour__title .mono { color: var(--coral-ink); }
.tour__sum { margin-top: 0.9rem; font-size: clamp(1.1rem, 0.98rem + 0.55vw, 1.45rem); line-height: 1.34; font-weight: 600; text-wrap: pretty; }
.tour__points { margin-top: 1.4rem; border-bottom: 1px solid var(--rule); }
.tour__points li { padding: 0.62rem 0; border-top: 1px solid var(--rule); color: var(--soft); font-weight: 600; }

/* the illustrative screens: a dark, product-like window on the paper */
.mini {
  --m-bg: #181C36; --m-line: rgba(243, 238, 228, 0.1); --m-fg: #F3EEE4; --m-soft: rgba(243, 238, 228, 0.66); --m-card: rgba(243, 238, 228, 0.05);
  --ok: #7FD1A5; --warn: #F4B45F; --danger: #FF8A73; --acc: var(--coral);
  background: var(--m-bg); color: var(--m-fg); border-radius: 20px; overflow: hidden; font-size: 0.92rem;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(243, 238, 228, 0.1), 0 0 80px -20px rgba(255, 107, 74, 0.16);
  min-height: 440px; display: grid; grid-template-rows: auto 1fr; min-width: 0;
}
.mini--subah { --m-bg: #221F3F; --m-fg: #FAF6EF; --m-soft: rgba(250, 246, 239, 0.66); --m-line: rgba(250, 246, 239, 0.11); --m-card: rgba(250, 246, 239, 0.06); --acc: #E8704F; --warn: #F4A340; }
.mini__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--m-line); font-weight: 700; }
.mini__bar > span:first-child { display: inline-flex; align-items: center; gap: 0.7rem; min-width: 0; }
.mini__bar > span:first-child::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 15px 0 0 var(--warn), 30px 0 0 var(--ok); margin-right: 30px; flex: none; }
.mini__tag { font-family: var(--mono); font-size: 0.66rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--m-soft); border: 1px dashed var(--m-line); border-radius: 999px; padding: 0.25em 0.8em; white-space: nowrap; }
.mini__body { padding: 1.2rem; display: grid; gap: 0.9rem; align-content: start; min-width: 0; }

/* Simpletree screens */
.st-chip { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.22em 0.75em; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.st-chip svg { width: 0.95em; height: 0.95em; }
.st-chip--ok { background: rgba(127, 209, 165, 0.16); color: var(--ok); }
.st-chip--warn { background: rgba(244, 180, 95, 0.16); color: var(--warn); }
.st-chip--danger { background: rgba(255, 138, 115, 0.16); color: var(--danger); }
.st-chip--muted { background: rgba(243, 238, 228, 0.08); color: var(--m-soft); }
.st-lead { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; background: var(--m-card); border-radius: 12px; }
.st-lead small { display: block; color: var(--m-soft); }
.st-lead time { margin-left: auto; font-family: var(--mono); font-size: 0.8rem; color: var(--m-soft); }
.st-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: var(--midnight); font-weight: 800; font-size: 0.85rem; flex: none; }
.st-flow { display: grid; gap: 0.75rem; padding-left: 0.2rem; }
.st-flow li { display: flex; gap: 0.8rem; align-items: center; color: var(--m-soft); }
.st-flow b { color: var(--m-fg); }
.st-flow__dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(127, 209, 165, 0.16); color: var(--ok); flex: none; }
.st-flow__dot svg { width: 12px; height: 12px; }
.st-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.st-kpis div { background: var(--m-card); border-radius: 12px; padding: 0.8rem 0.9rem; }
.st-kpis b { display: block; font-family: var(--mono); font-size: 1.5rem; font-weight: 500; }
.st-kpis small { color: var(--m-soft); }
.st-voice { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; background: var(--m-card); border-radius: 12px; }
.st-voice__play { width: 36px; height: 36px; border-radius: 50%; background: var(--coral); color: var(--midnight); display: grid; place-items: center; flex: none; }
.st-voice__play svg { width: 16px; height: 16px; }
.st-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 34px; min-width: 0; }
.st-wave i { flex: 1; height: var(--h); background: var(--m-soft); border-radius: 2px; opacity: 0.55; }
.st-voice__meta { font-family: var(--mono); font-size: 0.75rem; color: var(--m-soft); white-space: nowrap; }
.st-polish { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warn); }
.st-note { background: var(--m-card); border-radius: 12px; padding: 1rem; display: grid; gap: 0.8rem; border-left: 2px solid var(--coral); }
.st-note__foot { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.st-review { display: inline-grid; }
.st-review > * { grid-area: 1 / 1; justify-self: start; }
.js .st-review__done { opacity: 0; }
html:not(.js) .st-review__pending { display: none; }
.st-next { color: var(--m-soft); font-weight: 600; padding-left: 1rem; position: relative; }
.st-next::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.st-legend { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.st-stack { display: grid; grid-template-columns: 2.2rem repeat(4, minmax(0, 1fr)); gap: 4px; align-items: center; }
.st-stack__label { font-family: var(--mono); font-size: 0.68rem; color: var(--m-soft); text-align: center; }
.st-unit { height: 26px; border-radius: 6px; font-family: var(--mono); font-size: 0.7rem; color: var(--m-bg); font-weight: 500; transition: transform 200ms, background 400ms; }
.st-unit--av { background: var(--ok); }
.st-unit--bk { background: var(--warn); }
.st-unit--sd { background: rgba(243, 238, 228, 0.14); color: var(--m-soft); }
.st-unit:hover, .st-unit:focus-visible { transform: scale(1.06); outline: 2px solid var(--m-fg); outline-offset: 1px; }
.st-unit.is-flash { animation: st-flash 1.4s var(--ease); }
@keyframes st-flash { 0% { box-shadow: 0 0 0 0 rgba(244, 180, 95, 0.9); transform: scale(1.15); } 100% { box-shadow: 0 0 0 14px rgba(244, 180, 95, 0); transform: none; } }
.st-readout { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; flex-wrap: wrap; color: var(--m-soft); font-size: 0.85rem; }
.st-fakebtn { border: 1px solid var(--m-line); border-radius: 999px; padding: 0.35em 0.9em; font-weight: 700; color: var(--m-fg); }
.st-table-wrap { overflow-x: auto; }
.st-table { width: 100%; font-size: 0.85rem; }
.st-table th { text-align: left; font-family: var(--mono); font-size: 0.66rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--m-soft); padding: 0 0.5rem 0.5rem 0; }
.st-table td { padding: 0.55rem 0.5rem 0.55rem 0; border-top: 1px solid var(--m-line); white-space: nowrap; }
.st-table .num { text-align: right; font-family: var(--mono); padding-right: 1rem; }
.st-table .is-overdue td:first-child { color: var(--danger); }
.st-sum { display: flex; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; color: var(--m-soft); font-size: 0.85rem; }
.st-sum b { color: var(--m-fg); font-family: var(--mono); font-weight: 500; }
.st-progress { display: flex; justify-content: space-between; align-items: center; }
.st-bar { height: 8px; border-radius: 999px; background: rgba(243, 238, 228, 0.1); overflow: hidden; }
.st-bar i { display: block; height: 100%; width: 58%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--warn)); transform-origin: left; }
.st-ms { display: grid; gap: 0.55rem; }
.st-ms li { display: grid; grid-template-columns: 22px 1fr auto; gap: 0.8rem; align-items: center; color: var(--m-soft); }
.st-ms li.is-done, .st-ms li.is-now { color: var(--m-fg); }
.st-ms__dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--m-line); }
.st-ms__dot svg { width: 12px; height: 12px; }
.is-done .st-ms__dot { background: rgba(127, 209, 165, 0.16); border-color: transparent; color: var(--ok); }
.is-now .st-ms__dot { border-color: var(--warn); box-shadow: 0 0 0 4px rgba(244, 180, 95, 0.16); }

/* Subah screens */
.sb-lbl { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--m-soft); }
.sb-said { display: grid; gap: 0.55rem; justify-items: start; padding: 0.9rem 1rem; background: var(--m-card); border-radius: 14px; border-left: 2px solid var(--acc); }
.sb-say { max-width: 88%; padding: 0.6rem 0.9rem; border-radius: 14px 14px 14px 4px; background: var(--m-card); line-height: 1.4; justify-self: start; }
.sb-say--me { background: rgba(232, 112, 79, 0.2); border-radius: 14px 14px 4px 14px; justify-self: end; }
.sb-said .sb-say--me { justify-self: start; max-width: 100%; }
.sb-say.bn { font-size: 1rem; line-height: 1.55; }
.sb-tool { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--m-soft); padding: 0.3em 0.8em; border: 1px dashed var(--m-line); border-radius: 999px; justify-self: start; }
.sb-tool b { color: var(--warn); font-weight: 500; margin-right: 0.5em; }
.sb-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.sb-apps li { background: var(--m-card); border-radius: 14px; padding: 0.8rem; display: grid; gap: 0.5rem; align-content: start; font-size: 0.84rem; line-height: 1.38; }
.sb-apps b { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warn); }
.sb-q { color: var(--m-soft); }
.sb-a { padding-top: 0.5rem; border-top: 1px solid var(--m-line); }
.sb-call { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; background: var(--m-card); border-radius: 14px; }
.sb-call small { display: block; color: var(--m-soft); }
.sb-orb { width: 38px; height: 38px; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 70%, #E8704F 0 30%, #F4A340 31% 55%, #F7C873 56% 78%, transparent 79%); animation: orb 2.6s ease-in-out infinite; }
@keyframes orb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.sb-wave { margin-left: auto; display: flex; align-items: center; gap: 3px; height: 28px; }
.sb-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--acc); animation: sbwave 1.1s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 90ms); transform: scaleY(0.3); }
.sb-wave i:nth-child(2n) { --n: 2; } .sb-wave i:nth-child(3n) { --n: 4; } .sb-wave i:nth-child(5n) { --n: 7; } .sb-wave i:nth-child(7n) { --n: 3; }
@keyframes sbwave { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.sb-balance { display: grid; gap: 0.1rem; }
.sb-balance small { color: var(--m-soft); }
.sb-balance b { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.sb-up { color: var(--ok); font-weight: 700; font-size: 0.85rem; }
.sb-bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; }
.sb-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(to top, rgba(232, 112, 79, 0.5), #F4A340); transform-origin: bottom; }
.sb-rows li, .sb-agenda li { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0; border-top: 1px solid var(--m-line); }
.sb-rows b { margin-left: auto; font-family: var(--mono); font-weight: 500; }
.sb-warn { color: var(--warn); }
.sb-agenda time { font-family: var(--mono); font-size: 0.78rem; color: var(--m-soft); width: 3.2rem; flex: none; }
.sb-agenda span { flex: 1; min-width: 0; }
.sb-agenda em, .sb-chip { font-style: normal; font-size: 0.72rem; font-weight: 700; padding: 0.2em 0.7em; border-radius: 999px; background: rgba(250, 246, 239, 0.08); color: var(--m-soft); white-space: nowrap; }
.sb-chip--acc { background: rgba(232, 112, 79, 0.22) !important; color: #FFB199 !important; }
.sb-chip--warn { background: rgba(244, 163, 64, 0.2) !important; color: var(--warn) !important; }
.sb-agenda .is-done span { color: var(--m-soft); text-decoration: line-through; text-decoration-color: rgba(250, 246, 239, 0.3); }
.sb-foot { display: flex; justify-content: space-between; gap: 0.6rem 1rem; flex-wrap: wrap; color: var(--m-soft); font-size: 0.85rem; padding-top: 0.3rem; }
.sb-sync::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 0.5em; }
.sb-streak b { color: var(--warn); font-family: var(--mono); font-weight: 500; font-size: 1.1rem; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sb-threads { display: grid; gap: 0.5rem; }
.sb-threads li { display: flex; gap: 0.8rem; align-items: center; padding: 0.7rem 0.8rem; background: var(--m-card); border-radius: 12px; min-width: 0; }
.sb-threads div { min-width: 0; }
.sb-threads small { display: block; color: var(--m-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(244, 163, 64, 0.2); color: var(--warn); font-size: 0.7rem; font-weight: 800; }
.sb-av--file { border-radius: 8px; font-family: var(--mono); font-weight: 500; }
.sb-done, .sb-vault { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(127, 209, 165, 0.1); }
.sb-done svg, .sb-vault svg { width: 20px; height: 20px; color: var(--ok); flex: none; }
.sb-done small, .sb-vault small { display: block; color: var(--m-soft); }
.sb-done em { margin-left: auto; font-style: normal; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.sb-vault { background: var(--m-card); border: 1px solid var(--m-line); }
.sb-vault svg { color: var(--warn); }
.sb-search { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1rem; border: 1px solid var(--m-line); border-radius: 999px; }
.sb-search svg { width: 18px; height: 18px; color: var(--m-soft); flex: none; }
.sb-xfer { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--m-soft); }
.sb-xfer > span { padding: 0.25em 0.8em; border: 1px solid var(--m-line); border-radius: 8px; color: var(--m-fg); }
.sb-xfer i { flex: 1; min-width: 40px; height: 2px; background: linear-gradient(90deg, var(--acc), var(--warn)); border-radius: 2px; }
.sb-xfer em { font-style: normal; width: 100%; }

/* each screen plays its small story when its tab opens */
.js .tour__panel.is-live .seq { animation: st-in 520ms var(--ease) both; animation-delay: calc(250ms + var(--i) * 420ms); }
.js .tour__panel.is-live .sb-bars i { animation: st-rise 700ms var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.js .tour__panel.is-live .st-flow li { animation: st-in 500ms var(--ease) both; animation-delay: calc(350ms + var(--i) * 700ms); }
.js .tour__panel.is-live .st-wave i { animation: st-wave 900ms ease-in-out both; animation-delay: calc(var(--k) * 28ms); }
.js .tour__panel.is-live .st-note { animation: st-in 600ms var(--ease) 1200ms both; }
.js .tour__panel.is-live .st-review__pending { animation: st-out 400ms var(--ease) 3600ms both; }
.js .tour__panel.is-live .st-review__done { animation: st-in 500ms var(--ease) 3800ms both; }
.js .tour__panel.is-live .st-next { animation: st-in 500ms var(--ease) 4400ms both; }
.js .tour__panel.is-live .st-table tbody tr { animation: st-in 450ms var(--ease) both; }
.js .tour__panel.is-live .st-table tbody tr:nth-child(2) { animation-delay: 150ms; }
.js .tour__panel.is-live .st-table tbody tr:nth-child(3) { animation-delay: 300ms; }
.js .tour__panel.is-live .st-table tbody tr:nth-child(4) { animation-delay: 450ms; }
.js .tour__panel.is-live .st-table tbody tr:nth-child(5) { animation-delay: 600ms; }
.js .tour__panel.is-live .st-bar i { animation: st-grow 1400ms cubic-bezier(0.65, 0, 0.35, 1) 200ms both; }
.js .tour__panel.is-live .st-ms li { animation: st-in 450ms var(--ease) both; animation-delay: calc(300ms + var(--i) * 220ms); }
@keyframes st-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes st-out { to { opacity: 0; } }
@keyframes st-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes st-rise { from { transform: scaleY(0); } to { transform: none; } }
@keyframes st-wave { 0% { transform: scaleY(0.25); opacity: 0.2; } 60% { transform: scaleY(1.15); opacity: 1; } 100% { transform: none; opacity: 0.55; } }

/* numbers, and the live box */
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.nums li { padding: 1.1rem 1rem 1.3rem 0; display: grid; gap: 0.4rem; align-content: start; border-bottom: 1px solid var(--rule); }
.nums li:nth-child(2n) { padding-left: clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--rule); }
.nums b { font-size: clamp(2.6rem, 1.4rem + 4vw, 5.6rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; }
.nums span { color: var(--soft); font-size: 0.95rem; max-width: 24ch; }
.live { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--rule), 0 0 90px -30px rgba(255, 107, 74, 0.35); border-radius: clamp(18px, 2.2vw, 30px); padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1rem; justify-items: start; }
.live .h3 { margin-bottom: 0; }
.live p { color: rgba(243, 238, 228, 0.78); max-width: 44ch; }
.live__note { font-size: 0.92rem; }
.live--subah { background: #221F3F; }
.live__creds { display: grid; gap: 0.6rem; width: 100%; }
.live__creds div { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 1rem; border-top: 1px solid rgba(243, 238, 228, 0.16); padding-top: 0.6rem; }
.live__creds dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243, 238, 228, 0.55); }
.live .copy { min-height: 44px; color: var(--ink); border-color: rgba(243, 238, 228, 0.35); font-size: 1rem; }

/* ── songs ── */
.songs { margin-top: clamp(3rem, 8vh, 6rem); scroll-margin-top: calc(var(--bar) + 12px); }
.songs__grid { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 3px solid var(--ink); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.8rem) clamp(0.8rem, 1.6vw, 1.4rem); }
.song { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
/* every cover is a record sleeve: the disc slides out when you point at it, and spins while it plays */
.song__play { position: relative; display: block; width: 100%; aspect-ratio: 1; transition: transform 300ms var(--ease); }
.song__play img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8); background: var(--sand); }
button.song__play::before {
  content: ""; position: absolute; top: 4%; right: 2%; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background:
    conic-gradient(from 20deg, rgba(255, 255, 255, 0) 0 8%, rgba(255, 255, 255, 0.16) 12%, rgba(255, 255, 255, 0) 18% 58%, rgba(255, 255, 255, 0.12) 63%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(circle, #0F1222 0 2.5%, var(--coral) 3% 17%, #08080C 17.5%, #2B2B38 30%, #0B0B10 31%, #262632 46%, #0B0B10 47%, #2A2A36 62%, #0B0B10 63%, #23232D 100%);
  box-shadow: 0 0 0 1px rgba(243, 238, 228, 0.14);
  transition: transform 600ms var(--ease);
}
.song { position: relative; }
.song:hover, .song.is-on { z-index: 3; }
button.song__play:hover::before, .song.is-on button.song__play::before { transform: translateX(46%); }
.song.is-playing button.song__play::before { animation: spin 2.4s linear infinite; }
@keyframes spin { from { transform: translateX(46%) rotate(0); } to { transform: translateX(46%) rotate(360deg); } }
.song__icon { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--midnight); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(15, 18, 34, 0.35); transition: background 200ms, transform 300ms var(--ease); }
.song__icon svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.song__i-pause, .song.is-playing .song__i-play { display: none; }
.song.is-playing .song__i-pause { display: block; }
.song.is-on .song__icon { background: var(--coral); transform: scale(1.08); }
.song.is-on .song__play img { box-shadow: 0 0 0 3px var(--coral), 0 14px 30px -14px rgba(0, 0, 0, 0.8); }
.song__name { display: grid; line-height: 1.25; }
.song__name b { font-weight: 800; letter-spacing: -0.02em; }
.song__name .bn { color: var(--soft); font-size: 0.92rem; }
.song__spot { display: inline-flex; align-items: center; gap: 0.3em; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); min-height: 28px; justify-self: start; }
.song__spot svg { width: 1em; height: 1em; }
.song__spot:hover { color: var(--coral-ink); }
.song--all .song__play { display: grid; align-content: space-between; justify-items: start; padding: clamp(0.7rem, 1.2vw, 1.1rem); background: var(--ink); color: var(--midnight); text-align: left; border-radius: 10px; }
.song--all b { font-size: clamp(2.2rem, 1rem + 3.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; }
.song--all span { font-weight: 700; font-size: clamp(0.82rem, 0.7rem + 0.4vw, 1.05rem); line-height: 1.2; }
.song--all svg { width: 1.6rem; height: 1.6rem; color: var(--coral); }
.song--all .song__play:hover { background: var(--coral); }
.song--all .song__play:hover svg { color: var(--midnight); }
.now {
  position: fixed; left: 50%; bottom: 18px; z-index: 60; transform: translateX(-50%); width: min(560px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 0.9rem; padding: 0.6rem 1.1rem 0.6rem 0.6rem; border-radius: 999px; background: var(--ink); color: var(--midnight);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.9);
}
.now__toggle { width: 46px; height: 46px; border-radius: 50%; background: var(--coral); color: var(--midnight); display: grid; place-items: center; flex: none; }
.now__toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.now__i-play, .now.is-paused .now__i-pause { display: none; }
.now.is-paused .now__i-play { display: block; }
.now__info { flex: 1; min-width: 0; display: grid; gap: 0.15rem; }
.now__info .mono { color: rgba(15, 18, 34, 0.62); font-size: 0.64rem; }
.now__title { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now__bar { height: 3px; border-radius: 3px; background: rgba(15, 18, 34, 0.2); overflow: hidden; }
.now__bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--coral); }
.now__link { font-size: 0.85rem; min-height: 36px; border-bottom-width: 2px; white-space: nowrap; }
.now__link:hover { color: #B03A22; }

/* ── about: the maker, drawn the way Subah's own page draws him ── */
.about { position: relative; }
/* his name drifts behind in outline, in both scripts */
.about__name { position: absolute; left: 0; right: 0; top: clamp(15rem, 34vw, 30rem); pointer-events: none; overflow: hidden; }
.about__name-track { display: flex; gap: clamp(30px, 5vw, 90px); width: max-content; animation: drift 80s linear infinite; }
.about__name span { font-size: clamp(5rem, 15vw, 14rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(243, 238, 228, 0.13); }
.about__name .bn { letter-spacing: 0; font-weight: 700; }
@keyframes drift { to { transform: translateX(-50%); } }
.about__title { position: relative; max-width: 20ch; }
.trip { position: relative; margin-top: clamp(2rem, 6vh, 4rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.8rem); align-items: center; }
.trip__card { display: grid; gap: 0.8rem; align-content: start; justify-items: start; padding: clamp(1.3rem, 2.6vw, 2.1rem); border-radius: clamp(18px, 2vw, 28px); border: 1px solid var(--rule); background: rgba(23, 27, 51, 0.88); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9); transition: transform 500ms var(--ease), border-color 300ms; }
.trip__card:hover { transform: translateY(-6px); border-color: rgba(255, 107, 74, 0.5); }
.trip__card--day { text-align: right; justify-items: end; }
.trip__card--day .chips { justify-content: flex-end; }
.trip__card .mono { color: var(--coral); }
.trip__card h3 { font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.4rem); font-weight: 800; letter-spacing: -0.055em; line-height: 0.95; padding-bottom: 0.06em; -webkit-background-clip: text; background-clip: text; color: transparent; }
.trip__card--day h3 { background-image: linear-gradient(95deg, #F7C873, #F4A340); }
.trip__card--night h3 { background-image: linear-gradient(95deg, #FF6B4A, #B98AD8); }
.trip__card p { color: var(--soft); text-wrap: pretty; }
.trip__card .chips li { color: var(--ink); border-color: rgba(243, 238, 228, 0.3); }
.trip__fig { position: relative; display: grid; gap: 1rem; justify-items: center; text-align: center; }
.trip__fig img { position: relative; width: 100%; height: auto; border-radius: 999px 999px 26px 26px; box-shadow: 0 40px 110px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(243, 238, 228, 0.2); }
.trip__halo { position: absolute; left: -12px; right: -12px; top: -12px; height: 62%; border: 1.5px solid var(--coral); border-bottom: 0; border-radius: 999px 999px 0 0; animation: glow 3.6s ease-in-out infinite; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.trip__fig figcaption { display: grid; gap: 0.2rem; justify-items: center; }
.trip__fig figcaption .mono { color: var(--coral); }
.trip__fig figcaption b { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.trip__fig figcaption .bn { color: var(--soft); }
.motto { margin-top: clamp(2.6rem, 8vh, 5.5rem); display: grid; justify-items: center; gap: 1rem; text-align: center; }
.motto__line { font-size: clamp(2.8rem, 1rem + 9.4vw, 10.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.92; background-image: linear-gradient(180deg, #F3EEE4 30%, rgba(243, 238, 228, 0.55)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.motto__note { color: var(--soft); max-width: 58ch; font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.2rem); text-wrap: pretty; }
.motto .btns { justify-content: center; }
/* the route: four stops on one line, with a light that travels along it */
.route { margin-top: clamp(3rem, 8vh, 6rem); }
.route__stops { position: relative; margin-top: 1.6rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.4rem); padding-top: 2.2rem; }
.route__stops::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, rgba(243, 238, 228, 0.35), rgba(243, 238, 228, 0.35) 78%, var(--coral)); }
.route__stops::after { content: ""; position: absolute; top: 2px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 18px 4px rgba(255, 107, 74, 0.7); animation: travel 9s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
@keyframes travel { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 88% { left: calc(100% - 12px); opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
.route__stops li { position: relative; display: grid; gap: 0.35rem; align-content: start; }
.route__stops li::before { content: ""; position: absolute; left: 0; top: calc(-2.2rem + 1px); width: 14px; height: 14px; border-radius: 50%; background: var(--bone); border: 2px solid var(--ink); }
.route__stops li.is-now::before { background: var(--coral); border-color: var(--coral); }
.route__stops .mono { color: var(--coral); }
.route__stops b { font-size: clamp(1.6rem, 1.1rem + 2vw, 3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.route__stops p { color: var(--soft); font-size: 0.96rem; text-wrap: pretty; }
.about__story { margin-top: clamp(3rem, 8vh, 6rem); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.prose { display: grid; gap: 1.1rem; max-width: 62ch; font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.2rem); line-height: 1.6; }

/* ── experience ── */
.jobs { margin-top: clamp(1.8rem, 5vh, 3.4rem); border-bottom: 3px solid var(--ink); }
.job { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 1rem clamp(1.5rem, 4vw, 5rem); padding: clamp(1.4rem, 4vh, 2.6rem) 0; border-top: 3px solid var(--ink); }
.job + .job { border-top-width: 1px; border-top-color: var(--rule); }
.job__when { display: grid; gap: 0.6rem; justify-items: start; align-content: start; font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.job__now { background: var(--coral); color: var(--midnight); padding: 0.2em 0.8em; border-radius: 999px; font-size: 0.72rem; }
.job__role { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.job__org { margin-top: 0.5rem; font-weight: 750; font-size: 1.08rem; }
.job__detail { color: var(--soft); }
.job__points { margin-top: 1.1rem; display: grid; gap: 0.55rem; max-width: 70ch; }
.job__points li { position: relative; padding-left: 1.3rem; color: var(--soft); }
.job__points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 3px; background: var(--coral); }
.job__points b { color: var(--ink); font-weight: 750; }

/* ── education ── */
.edu { margin-top: clamp(1.8rem, 5vh, 3.4rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.edu__list { border-bottom: 1px solid var(--rule); }
.edu__list li { display: grid; grid-template-columns: minmax(8.5rem, 0.36fr) minmax(0, 1fr); gap: 1rem clamp(1rem, 3vw, 3rem); padding: clamp(1.1rem, 3vh, 1.8rem) 0; border-top: 3px solid var(--ink); align-items: start; }
.edu__list li + li { border-top-width: 1px; border-top-color: var(--rule); }
.edu__score { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 5rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; }
.edu__score small { display: block; margin-top: 0.7em; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.edu__school { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.edu__degree { margin-top: 0.3rem; font-weight: 700; }
.edu__when { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--soft); margin-top: 0.3rem; }
.edu__note { margin-top: 0.7rem; color: var(--soft); max-width: 56ch; }
.ielts { border: 3px solid var(--ink); border-radius: clamp(16px, 2vw, 26px); padding: clamp(1.2rem, 2.6vw, 2rem); display: grid; gap: 1.2rem; }
.ielts__top { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.ielts__overall { font-size: clamp(3rem, 2rem + 4vw, 5.6rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; margin-top: 0.3rem; }
.ielts__cefr { display: grid; justify-items: end; gap: 0.3rem; text-align: right; }
.ielts__cefr b { font-size: 1.25rem; font-weight: 800; }
.bands { display: grid; gap: 0.6rem; }
.bands li { display: grid; grid-template-columns: 5.4rem 1fr 2.2rem; gap: 0.8rem; align-items: center; font-weight: 650; font-size: 0.95rem; }
.bands__track { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.bands__track i { display: block; height: 100%; width: calc(var(--v) / 9 * 100%); background: var(--ink); border-radius: inherit; }
.bands b { font-family: var(--mono); font-weight: 500; text-align: right; }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.langs dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.langs dd { font-weight: 750; }
.awards { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1rem, 2.4vw, 2.4rem); border-top: 3px solid var(--ink); }
.awards li { padding: 1.2rem 0 1.3rem; border-bottom: 1px solid var(--rule); display: grid; gap: 0.35rem; align-content: start; justify-items: start; }
.awards b { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.awards p { color: var(--soft); font-size: 0.95rem; }
.skills { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 3px solid var(--ink); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem clamp(1rem, 2.4vw, 2.4rem); }
.skills h4 { margin-bottom: 0.8rem; }

/* ── research ── */
.thesis { margin-top: clamp(1.8rem, 5vh, 3.4rem); padding: clamp(1.2rem, 3vw, 2.2rem) 0 clamp(1.2rem, 3vw, 2.2rem) clamp(1.2rem, 3vw, 2.6rem); border-left: 6px solid var(--coral); display: grid; gap: 0.8rem; }
.thesis__text { font-size: clamp(1.3rem, 1rem + 1.7vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.16; max-width: 34ch; text-wrap: pretty; }
.phases { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 3px solid var(--ink); counter-reset: ph; }
.phases li { padding: 1.2rem clamp(0.7rem, 1.4vw, 1.4rem) 1.2rem 0; display: grid; gap: 0.5rem; align-content: start; }
.phases li + li { padding-left: clamp(0.7rem, 1.4vw, 1.4rem); border-left: 1px solid var(--rule); }
.phases .mono { color: var(--coral-ink); }
.phases b { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.phases p { color: var(--soft); font-size: 0.93rem; }
.phases__loop { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--rule); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.hypo { border-top: 3px solid var(--ink); }
.hypo li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); font-weight: 600; }
.hypo b { font-family: var(--mono); font-weight: 500; color: var(--coral-ink); }

/* ── ventures ── */
.ventures { margin-top: clamp(1.8rem, 5vh, 3.4rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 3rem); }
.venture { display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.venture__plate { width: min(100%, 420px); justify-self: center; margin-bottom: 0.6rem; }
.venture:nth-child(even) .plate::after { animation-direction: reverse; }
.venture__kind { display: flex; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; margin-top: 0.4rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.venture__name { font-size: clamp(1.7rem, 1.2rem + 2vw, 3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.venture__sum { font-weight: 650; font-size: 1.08rem; line-height: 1.35; text-wrap: pretty; }
.venture__points { display: grid; gap: 0.45rem; color: var(--soft); font-size: 0.96rem; }
.venture__points li { position: relative; padding-left: 1.2rem; }
.venture__points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 3px; background: var(--coral); }
.venture__points b { color: var(--ink); font-weight: 750; }
.venture__links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }

/* ── decks ── */
.filters { margin-top: clamp(1.4rem, 4vh, 2.4rem); display: flex; flex-wrap: wrap; gap: 0.5rem; }
html:not(.js) .filters { display: none; }
.filter { display: inline-flex; align-items: center; gap: 0.5em; min-height: 40px; padding: 0 1.1em; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 0.92rem; }
.filter span { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; opacity: 0.6; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.decks { margin-top: 1.4rem; padding-top: 1.6rem; border-top: 3px solid var(--ink); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1rem, 2vw, 2rem); }
.deck { display: grid; gap: 0.5rem; align-content: start; scroll-margin-top: calc(var(--bar) + 20px); min-width: 0; }
.deck__link { display: grid; gap: 0.55rem; }
.deck__stack { position: relative; display: block; }
.deck__stack::before, .deck__stack::after { content: ""; position: absolute; inset: 0; border-radius: 12px; background: #2A2F52; transition: transform 500ms var(--ease); }
.deck__stack::before { transform: rotate(-2.2deg) translate(-3px, 4px); background: #23284A; }
.deck__stack::after { transform: rotate(1.8deg) translate(4px, 3px); }
.deck__link:hover .deck__stack::before { transform: rotate(-5deg) translate(-12px, 6px); }
.deck__link:hover .deck__stack::after { transform: rotate(4.5deg) translate(14px, 4px); }
.deck__cover { position: relative; z-index: 1; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--sand); box-shadow: 0 0 0 1px var(--rule); }
.deck__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.deck__link:hover .deck__cover img { transform: scale(1.04); }
.deck__count { position: absolute; right: 8px; bottom: 8px; background: var(--ink); color: var(--bone); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3em 0.8em; border-radius: 999px; }
.deck__meta { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.deck__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.deck__link:hover .deck__title { color: var(--coral-ink); }
.deck__context { font-size: 0.9rem; font-weight: 650; }
.deck__sum { font-size: 0.93rem; color: var(--soft); text-wrap: pretty; }
.deck__stats { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding-top: 0.6rem; border-top: 1px solid var(--rule); }
.deck__stats dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.deck__stats dd { font-weight: 800; font-size: 0.95rem; }

/* the slide viewer */
.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0B0D19; color: var(--ink); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer::backdrop { background: rgba(11, 13, 25, 0.9); }
.viewer-open { overflow: hidden; }
.viewer__top { display: flex; align-items: center; gap: 1rem; padding: 0.9rem clamp(1rem, 3vw, 2rem); border-bottom: 1px solid rgba(243, 238, 228, 0.12); }
.viewer__heading { flex: 1; min-width: 0; }
.viewer__context, .viewer__count { color: rgba(243, 238, 228, 0.6); font-size: 0.7rem; }
.viewer__title { font-size: clamp(1.1rem, 1rem + 0.8vw, 1.6rem); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__count { white-space: nowrap; }
.viewer__close, .viewer__nav { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(243, 238, 228, 0.3); display: grid; place-items: center; flex: none; }
.viewer__close svg, .viewer__nav svg { width: 20px; height: 20px; }
.viewer__close:hover, .viewer__nav:hover { background: var(--ink); color: var(--midnight); }
.viewer__nav:disabled { opacity: 0.25; pointer-events: none; }
.viewer__stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(0.4rem, 1.5vw, 1.4rem); padding: clamp(0.6rem, 2vh, 1.4rem) clamp(0.6rem, 2vw, 1.6rem); min-height: 0; }
.viewer__figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.8rem; height: 100%; min-height: 0; justify-items: center; }
.viewer__img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 8px; background: #151831; }
.viewer__caption { text-align: center; color: rgba(243, 238, 228, 0.8); font-weight: 600; max-width: 70ch; }
.viewer__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 0.7rem clamp(1rem, 3vw, 2rem) 1rem; border-top: 1px solid rgba(243, 238, 228, 0.12); scrollbar-width: thin; }
.viewer__thumb { flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; opacity: 0.45; outline-offset: 2px; }
.viewer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.viewer__thumb[aria-current="true"] { opacity: 1; outline: 2px solid var(--coral); }

/* ── questions ── */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 5rem); align-items: start; }
.faq .sec__title { font-size: clamp(2.4rem, 1rem + 4.6vw, 5.6rem); position: sticky; top: calc(var(--bar) + 20px); }
.faq__list { border-top: 3px solid var(--ink); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.qa summary::after { content: "+"; font-family: var(--mono); font-size: 1.5rem; line-height: 1; color: var(--coral-ink); flex: none; transition: transform 300ms var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 2.4rem 1.3rem 0; color: var(--soft); max-width: 64ch; }

/* ── contact ── */
.contact__hello { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.6rem); line-height: 1; color: var(--coral-ink); }
.contact__mail {
  display: block; margin-top: 0.3rem; padding-block: 0.08em;
  font-size: clamp(2.1rem, 0.4rem + 8.6vw, 10.4rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.95; margin-left: -0.04em;
  transition: color 200ms;
}
.contact__mail:hover { color: var(--coral-ink); }
.contact__grid { margin-top: clamp(1.6rem, 5vh, 3.4rem); padding-top: clamp(1.4rem, 4vh, 2.4rem); border-top: 3px solid var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.contact__lede { font-size: clamp(1.1rem, 0.98rem + 0.6vw, 1.5rem); font-weight: 650; line-height: 1.32; max-width: 36ch; margin-bottom: 1.6rem; text-wrap: pretty; }
.contact .kv dd { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; }
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.field { display: grid; gap: 0.3rem; }
.field span { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.field input, .field textarea { width: 100%; font: inherit; font-weight: 600; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 0.55rem 0; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--coral); box-shadow: 0 2px 0 var(--coral); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; }
.form__status { color: var(--soft); font-size: 0.92rem; }

.foot { padding: 1.4rem var(--gutter) 2rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.foot__nav a:hover { color: var(--coral-ink); }

/* back to the top */
.totop { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: 18px; z-index: 55; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--midnight); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(243, 238, 228, 0.2); transition: opacity 300ms, transform 300ms var(--ease), background 200ms; }
.totop svg { width: 22px; height: 22px; transform: rotate(180deg); }
.totop:hover { background: var(--coral); transform: translateY(-3px); }
.has-now .totop { bottom: 92px; }
.js .totop:not(.is-on) { opacity: 0; pointer-events: none; transform: translateY(12px); }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 90; transform: translate(-50%, 20px); background: var(--ink); color: var(--bone); font-weight: 700; font-size: 0.92rem; padding: 0.7em 1.2em; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity 300ms, transform 300ms var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── narrower screens: the nav folds into a menu ── */
@media (max-width: 1240px) {
  .bar__menu { display: inline-flex; }
  html:not(.js) .bar__menu { display: none; }
  .bar__nav {
    position: fixed; inset: var(--bar) 0 auto 0; margin: 0; padding: 0.6rem var(--gutter) 1.4rem; background: var(--bone); border-bottom: 3px solid var(--ink);
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 1.4rem; font-size: 1.05rem;
    max-height: calc(100vh - var(--bar)); overflow-y: auto;
  }
  .bar__nav a { min-height: 48px; border-bottom: 1px solid var(--rule); }
  .js .bar__nav { display: none; }
  .js .bar.is-open .bar__nav { display: grid; }
  .bar.is-open { background: var(--bone); }
  html:not(.js) .bar__nav { position: static; display: flex; overflow-x: auto; padding: 0; border: 0; background: none; font-size: 0.9rem; }
  html:not(.js) .bar__nav a { border: 0; }
}
@media (max-width: 1100px) {
  .duo__facts > div { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .songs__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .trio__cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio__cards--four li:nth-child(3) { padding-left: 0; border-left: 0; }
  .trio__cards--four li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .phases li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .ventures { grid-template-columns: 1fr; gap: 2.6rem; }
  .venture { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: clamp(1rem, 3vw, 2rem); }
  .venture__plate { grid-row: 1 / span 6; align-self: start; order: 0; }
  .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { padding-top: calc(var(--bar) + 1vh); min-height: 0; grid-template-rows: auto auto auto auto; gap: 1.2rem; background: radial-gradient(120vw 120vw at 50% 42%, #3B2212 0%, #2A180D 30%, rgba(27, 17, 10, 0) 62%); }
  .hero__name { font-size: clamp(4rem, 25.4vw, 13rem); position: relative; z-index: 1; }
  .hero > * { min-width: 0; }
  .hero__stage { position: relative; right: auto; top: auto; width: min(100vw, 62vh); margin: -12vw calc(var(--gutter) * -1) -9vw; justify-self: center; }
  .hero__foot { grid-template-columns: auto minmax(0, 1fr); }
  .hero__tag { grid-column: 1 / -1; text-align: left; }
  .hero__reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__reel li:nth-child(3) { border-left: 0; }
  .hero__reel li:nth-child(3) a { padding-left: 0; }
  .hero__reel li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .hero__reel li:nth-child(n + 3)::before { top: -1px; }
  .hero__reel a { padding-bottom: 0.9rem; }
  .plate { order: -1; max-width: min(92vw, 60vh); }
  .story__sites { grid-template-columns: 1fr; }
  .duo__line { text-align: left; }
  .duo__scene { margin-inline: calc(var(--gutter) * -1); }
  .duo__scene::before { display: none; }
  .duo__tag { font-size: 0.56rem; bottom: 4%; padding: 0.3em 0.7em; }
  .duo__wind i { background-image: url("../img/story/subah-and-tanvir-terrace-900.webp"); }
  .duo__grid { gap: 1.2rem; }
  .duo__name small { display: block; margin: 0.4em 0 0; }
  .duo__facts dd { font-size: 0.92rem; }
  .story__sites li, .story__sites li + li { padding: 1rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .proj__gap { grid-template-columns: 1fr; }
  .sec__head, .profile__grid, .proj__head, .tour__panel, .split, .split--even, .about__story, .edu, .faq, .contact__grid { grid-template-columns: 1fr; }
  .trip { grid-template-columns: 1fr; }
  .trip__fig { order: -1; width: min(100%, 340px); margin-inline: auto; }
  .trip__card--day { text-align: left; justify-items: start; }
  .trip__card--day .chips { justify-content: flex-start; }
  .route__stops { grid-template-columns: 1fr; padding: 0 0 0 2rem; gap: 1.6rem; }
  .route__stops::before { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, rgba(243, 238, 228, 0.35) 78%, var(--coral)); }
  .route__stops::after { display: none; }
  .route__stops li::before { left: -2rem; top: 0.2rem; }
  .about__name { top: 22rem; }
  .proj__head { gap: 1.6rem; }
  .proj__name { font-size: clamp(2.9rem, 15.5vw, 6rem); }
  .figs, .kv--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs li:nth-child(3) { padding-left: 0; border-left: 0; }
  .figs li:nth-child(n + 3) { border-top: 1px solid var(--rule); margin-top: 1.1rem; }
  .figs b { font-size: clamp(2rem, 10.4vw, 4.4rem); }
  .kv--4 > div { padding-bottom: 0.6rem; }
  .tour__tabs { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-top: 0; box-shadow: inset 0 3px 0 var(--ink); }
  .tour__tabs::-webkit-scrollbar { display: none; }
  .tour__tab { flex: 0 0 auto; padding-right: 1.6rem; scroll-snap-align: start; }
  .tour__bar { top: 0; }
  .mini { min-height: 0; }
  .trio__cards, .trio__cards--six { grid-template-columns: 1fr; }
  .trio__cards li, .trio__cards li + li { padding: 1.1rem 0; border-left: 0; border-top: 1px solid var(--rule); }
  .trio__cards li:first-child { border-top: 0; }
  .sb-apps { grid-template-columns: 1fr; }
  .job, .edu__list li { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .faq .sec__title { position: static; }
  .form__row { grid-template-columns: 1fr; }
  .venture { grid-template-columns: 1fr; }
  .venture__plate { grid-row: auto; }
  .now__link { display: none; }
  .decks { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; margin-inline: calc(var(--gutter) * -1); padding: 1.4rem var(--gutter) 1rem; border-top: 0; box-shadow: inset 0 3px 0 var(--ink); scrollbar-width: none; }
  .decks::-webkit-scrollbar { display: none; }
  .deck { flex: 0 0 min(78vw, 320px); scroll-snap-align: center; }
  .songs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer__nav { position: absolute; bottom: 92px; z-index: 2; background: #0B0D19; }
  .viewer__nav--prev { left: 12px; } .viewer__nav--next { right: 12px; }
  .viewer__stage { grid-template-columns: minmax(0, 1fr); position: relative; padding-bottom: 64px; }
  .viewer__thumb { width: 72px; }
}
@media (max-width: 560px) {
  .trio__cards--four, .phases, .awards { grid-template-columns: 1fr; }
  .trio__cards--four li, .phases li { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--rule); }
  .trio__cards--four li:first-child, .phases li:first-child { border-top: 0; }
  .kv:not(.kv--4) > div { grid-template-columns: 6.6rem minmax(0, 1fr); }

  .mini__body { padding: 0.9rem; }
  .st-kpis b { font-size: 1.2rem; }
  .st-unit { font-size: 0.62rem; }
  .mini__bar > span:first-child::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .st-review__done { opacity: 1; }
  .st-review__pending { display: none; }
  .tour__toggle { display: none; }
}
@media print {
  .bar, .toast, .now, .totop, .tour__toggle, .tour__tabs, .filters { display: none !important; }
  .tour__panel[hidden] { display: grid !important; }
  .sec { padding-block: 1.5rem; }
}
