/* terma.asia — VERSION 3, "the gallery room" (2026-11-28)
   One idea: you walk into a room. Day at the top, the same room at night at the bottom.
   Colour: gallery white #FAF8F4 · wall #ECEBEF · ink navy #16233F · night #0D1528
           gray #667085 / label #566074 · teal #177373 · coral #E85C4A · signal #4FE0CE
   Type:   Archivo variable (weight + width), self-hosted. */

@font-face {
  font-family: 'Archivo';
  font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url('assets/fonts/archivo-latin-standard-normal.woff2') format('woff2-variations');
}

:root {
  --white: #FAF8F4;
  --wall: #ECEBEF;
  --navy: #16233F;
  --night: #0D1528;
  --gray: #667085;
  --label: #566074;
  --gray-decor: #8B93A5;
  --teal: #177373;
  --teal-decor: #1E8A8A;
  --coral: #E85C4A;
  --signal: #4FE0CE;
  --hairline: rgba(22, 35, 63, 0.16);
  --hairline-dark: rgba(250, 248, 244, 0.18);
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --shell: 1440px;
  --gutter: clamp(22px, 5vw, 80px);
  --gap: clamp(16px, 2vw, 32px);
  --edge: max(var(--gutter), min(calc((100vw - var(--shell)) / 2 + var(--gutter)), 16.7vw));
  --room: clamp(96px, 12vw, 184px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--navy);
  font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.66;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img, picture { display: block; max-width: 100%; }
p, h1, h2, h3, figure, blockquote, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--signal); }
::selection { background: var(--navy); color: var(--white); }
.dark ::selection { background: var(--signal); color: var(--night); }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  background: var(--navy); color: var(--white); font-weight: 500; font-size: 14px;
  padding: 12px 18px; border-radius: 2px; text-decoration: none;
}
.skip:focus { top: 12px; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- type ---------- */

.label {
  font-weight: 500; font-size: 13px; line-height: 1.5; font-stretch: 106%;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--navy);
}
.dark .label { color: rgba(250, 248, 244, 0.86); }

h1, h2, h3, .thesis, .lead { text-wrap: balance; }
h1 {
  font-weight: 500; font-size: clamp(38px, 4.7vw, 92px); line-height: 1.02; letter-spacing: -0.032em;
}
h2.label { text-wrap: wrap; }
h2 {
  font-weight: 560; font-size: clamp(30px, 3.5vw, 54px); line-height: 1.05; letter-spacing: -0.026em;
}
.thesis {
  font-weight: 500; font-size: clamp(26px, 3.25vw, 52px); line-height: 1.13; letter-spacing: -0.024em;
}
.lead {
  font-weight: 500; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.38; letter-spacing: -0.01em;
  text-wrap: pretty;
}
.prose { max-width: 58ch; text-wrap: pretty; }
.muted { color: var(--gray); }
/* coral is kept for the hero rule and the name room; in running text the name is navy */
.brand-mark { font-weight: 640; letter-spacing: -0.01em; }
.hot { font-weight: 600; }

.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
  padding-bottom: 2px;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-teal { color: var(--teal); }

/* ---------- motion ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes settle { from { transform: scale(1.045); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: none; } }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 68px;
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px);
  padding: 0 var(--edge);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s;
}
.nav.is-solid { background: rgba(250, 248, 244, 0.94); border-bottom-color: var(--hairline); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lockup { display: inline-flex; align-items: flex-end; gap: 9px; text-decoration: none; padding: 12px 0; margin-right: auto; }
.kasina { width: 13px; height: 13px; border-radius: 50%; background: var(--gray-decor); margin-bottom: 4px; }
.wordmark { font-weight: 640; font-size: 22px; line-height: 1; letter-spacing: -0.02em; color: var(--navy); }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.nav-links a, .nav-cta {
  font-weight: 500; font-size: 13px; letter-spacing: 0.01em; text-decoration: none; color: var(--navy);
  height: 44px; display: inline-flex; align-items: center; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 9px; height: 1.5px; background: var(--navy);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-current::after { transform: none; }
.nav-cta {
  padding: 0 18px; height: 40px; border: 1px solid var(--navy); border-radius: 999px;
  transition: background-color 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--navy); color: var(--white); }

/* ---------- 1. the room, by day ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  height: min(100svh, 62vw); min-height: 600px;
  background: #E6E5EA;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 0% 30%; animation: settle 2.6s var(--ease) both; }
.hero-wall {
  position: absolute; left: 0; top: 0; height: 76%; width: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 68px var(--edge) 0;
}
.hero-text, .contact-text { container-type: inline-size; width: calc(44.5vw - var(--edge)); }
.hero-text > * { animation: rise 1.1s var(--ease) both; }
.hero-text h1 { font-size: clamp(34px, min(13.2cqw, 8.2svh), 104px); }
.hero-wall .label { color: var(--navy); animation-delay: 0.25s; }
.hero-text h1 { margin-top: clamp(14px, 2.2svh, 32px); animation-delay: 0.4s; }
.coral-rule { width: 64px; height: 3px; background: var(--coral); margin: clamp(16px, 3svh, 40px) 0 clamp(14px, 2.4svh, 32px); transform-origin: 0 50%; }
.hero-wall .coral-rule { animation: draw 0.9s var(--ease) 0.9s both; }
.hero-wall .lead { max-width: 30ch; font-size: clamp(17px, min(1.55vw, 2.5svh), 24px); animation-delay: 1.05s; }
.hero-floor {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--edge) clamp(18px, 2.4vw, 34px);
  display: flex; justify-content: space-between; align-items: flex-end;
  animation: rise 1.1s var(--ease) 1.4s both;
}
.hero-floor .label { color: rgba(250, 248, 244, 0.92); }
/* ---------- sections ---------- */

.room { padding: var(--room) 0; position: relative; }
.room-wall { background: var(--wall); }
.head { display: flex; flex-direction: column; gap: clamp(16px, 1.6vw, 24px); }

/* 2. practice */
.practice .thesis { grid-column: 1 / span 11; margin-top: clamp(28px, 3vw, 48px); }
.practice .intro { grid-column: 7 / span 6; margin-top: clamp(40px, 5vw, 80px); display: flex; flex-direction: column; gap: 20px; }
.placards { margin-top: clamp(64px, 8vw, 128px); row-gap: 44px; }
.placard { grid-column: span 4; border-top: 1px solid var(--navy); padding-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.placard-mark { margin-top: 10px; }
.placard picture.placard-mark img { width: 72px; height: 72px; }
.placard img.placard-mark { width: 176px; height: auto; }
.placard .placard-langs { font-weight: 500; font-size: 21px; line-height: 30px; letter-spacing: 0; color: var(--label); max-width: none; }
.placard p { font-weight: 500; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.36; letter-spacing: -0.012em; text-wrap: pretty; max-width: 28ch; }

/* 3. clients, hung on the wall */
.room-head { margin-bottom: clamp(44px, 5vw, 80px); align-items: end; }
.room-head .head { grid-column: 1 / span 7; }
.room-head .aside { grid-column: 9 / span 4; color: var(--label); max-width: 34ch; justify-self: end; }
.wall-group { display: grid; grid-template-columns: minmax(150px, 2fr) minmax(0, 10fr); column-gap: var(--gap); border-top: 1px solid var(--hairline); padding: clamp(28px, 3vw, 44px) 0; }
.wall-group:last-child { border-bottom: 1px solid var(--hairline); }
.wall-group .label { padding-top: 8px; }
.wall-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(30px, 3.2vw, 48px); align-items: center; }
.wall-logos li { display: flex; align-items: center; min-height: 48px; }
.wall-logos img { height: auto; filter: grayscale(1) contrast(1.05); opacity: 0.62; mix-blend-mode: multiply; transition: opacity 0.3s; }
.wall-logos img.ink { filter: grayscale(1) brightness(0.6) contrast(1.25); }
.wall-logos li:hover img { opacity: 1; }

/* 4. coaching */
.work .side { grid-column: 1 / span 5; align-self: start; position: sticky; top: 112px; display: flex; flex-direction: column; gap: clamp(20px, 2vw, 28px); }
.work .side h2 { max-width: 13ch; }
.work .side .prose { max-width: 40ch; color: var(--gray); }
.work .qa { grid-column: 7 / span 6; }
.enquiry { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.enquiry a { font-weight: 500; font-size: clamp(19px, 1.5vw, 23px); letter-spacing: -0.01em; width: fit-content; }

details { border-top: 1px solid var(--hairline); }
details:last-child { border-bottom: 1px solid var(--hairline); }
summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: clamp(20px, 2vw, 28px) 0;
  font-weight: 500; font-size: clamp(19px, 1.6vw, 25px); line-height: 1.25; letter-spacing: -0.014em;
  transition: color 0.2s;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--teal); }
summary .n { font-size: 13px; font-weight: 500; letter-spacing: 0.13em; color: var(--label); margin-right: 18px; font-stretch: 108%; }
summary .q { flex: 1; }
summary .x { position: relative; width: 14px; height: 14px; flex-shrink: 0; align-self: center; }
summary .x::before, summary .x::after { content: ''; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease); }
summary .x::after { transform: rotate(90deg); }
details[open] summary .x::after { transform: rotate(0deg); }
details .a { padding: 0 38px clamp(24px, 2.4vw, 34px) 0; max-width: 56ch; color: var(--navy); text-wrap: pretty; }
details[open] .a { animation: rise 0.5s var(--ease) both; }
details .a a { color: var(--teal); }

/* 5. programs — the painting */
.canvas { position: relative; isolation: isolate; color: var(--white); padding: var(--room) 0; overflow: hidden; background: #131E38; }
.canvas-bg, .canvas-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.canvas-bg img { object-fit: cover; }
.canvas::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 21, 40, 0.5), rgba(13, 21, 40, 0.16)); }
.canvas .head { grid-column: 1 / span 5; }
.canvas h2 { max-width: 11ch; }
.canvas .body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 22px; }
.canvas .body p { color: rgba(250, 248, 244, 0.94); max-width: 54ch; text-wrap: pretty; }
.subjects { grid-column: 1 / -1; margin-top: clamp(56px, 7vw, 112px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; }
.subjects li { border-top: 1px solid var(--hairline-dark); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.subjects strong { font-weight: 500; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.subjects p { color: rgba(250, 248, 244, 0.8); font-size: 15.5px; line-height: 1.55; max-width: 34ch; text-wrap: pretty; }

/* 6. in their words */
blockquote { display: flex; flex-direction: column; gap: 18px; }
blockquote p { text-indent: -0.42em; text-wrap: pretty; }
cite { text-wrap: balance; font-style: normal; font-weight: 500; font-size: 12.5px; line-height: 1.6; letter-spacing: 0.13em; text-transform: uppercase; color: var(--label); font-stretch: 108%; }
.quote-feature { grid-column: 1 / span 11; }
.quote-feature p { font-weight: 500; font-size: clamp(28px, 4.1vw, 68px); line-height: 1.05; letter-spacing: -0.032em; text-wrap: balance; }
.quote-set { margin-top: clamp(56px, 7vw, 112px); }
.quote-set > .label { display: block; border-top: 1px solid var(--navy); padding-top: 18px; margin-bottom: clamp(28px, 3vw, 44px); }
.quotes-3 { row-gap: 44px; }
.quotes-3 blockquote { grid-column: span 4; }
/* training and coaching quotes share one size: the long coaching quotes set the ceiling */
.quotes-3 p { font-weight: 500; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.42; letter-spacing: -0.012em; }

/* 7. the name */
.name { padding: clamp(72px, 9vw, 140px) 0; overflow: hidden; }
.name-word { grid-column: 1 / span 8; font-weight: 640; font-size: clamp(64px, 13.4vw, 232px); line-height: 0.8; letter-spacing: -0.03em; color: var(--navy); white-space: nowrap; }
.name-word i { display: inline-block; width: 0.57em; height: 0.57em; border-radius: 50%; background: var(--coral); vertical-align: -0.028em; margin-right: 0.3em; }
.name-def { grid-column: 9 / span 4; align-self: end; padding-bottom: 0.5vw; display: flex; flex-direction: column; gap: 16px; }

/* 8. about */
.about .portrait-col { grid-column: 1 / span 4; }
.about .body { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 24px; }
.about h2 { margin: 6px 0 10px; }
.line { display: block; }
.portrait { background: var(--wall); border-radius: 2px; overflow: hidden; aspect-ratio: 4 / 5; }
.portrait picture { width: 100%; height: 100%; }
/* colour portrait; the street behind is knocked back in the file itself, not in CSS */
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.facts { margin-top: clamp(20px, 2.4vw, 36px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.facts div { border-top: 1px solid var(--hairline); padding: 16px 0 20px; display: flex; flex-direction: column; gap: 6px; }
.facts dd { font-weight: 500; font-size: 17px; letter-spacing: -0.008em; }

/* ---------- 9. the room, by night ---------- */

.contact {
  --p: 1;
  position: relative; overflow: hidden; isolation: isolate; color: var(--white);
  height: min(100svh, 62vw); min-height: 640px; background: var(--night);
}
.contact picture, .contact picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact picture img { object-fit: cover; object-position: 0% 30%; }
.contact .room-night {
  opacity: var(--p);
  /* a pool of light: the night layer thins over the painting and chair, letting a little of the day room through */
  -webkit-mask-image: radial-gradient(ellipse 36% 62% at 71% 44%, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.84) 45%, #000 100%);
  mask-image: radial-gradient(ellipse 36% 62% at 71% 44%, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.84) 45%, #000 100%);
}
.contact-wall {
  position: absolute; left: 0; top: 0; height: 76%; width: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 24px var(--edge) 0;
  opacity: clamp(0, calc((var(--p) - 0.55) * 2.4), 1);
}
.contact h2 { font-weight: 500; font-size: clamp(28px, 10.2cqw, 72px); line-height: 1.06; letter-spacing: -0.028em; margin-top: clamp(16px, 1.8vw, 28px); }
.signal {
  display: inline-block; margin-top: clamp(28px, 3.2vw, 52px); padding: 4px 0;
  font-weight: 500; font-size: clamp(25px, 10.4cqw, 70px); line-height: 1.1; letter-spacing: -0.028em;
  color: var(--signal); text-decoration: none;
  text-shadow: 0 0 1px rgba(79, 224, 206, 0.55), 0 0 26px rgba(79, 224, 206, 0.16), 0 0 70px rgba(79, 224, 206, 0.09);
  transition: text-shadow 0.4s;
}
.signal:hover { text-shadow: 0 0 1px rgba(79, 224, 206, 0.9), 0 0 26px rgba(79, 224, 206, 0.34), 0 0 90px rgba(79, 224, 206, 0.2); }
.contact-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; margin-top: clamp(20px, 2.2vw, 34px); }
.contact-meta a { font-weight: 500; font-size: 13px; letter-spacing: 0.13em; text-transform: uppercase; font-stretch: 108%; min-height: 44px; display: inline-flex; align-items: center; }
.contact-meta a span { border-bottom: 1px solid var(--signal); padding-bottom: 3px; }
.contact-floor {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--edge) clamp(14px, 2vw, 28px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.contact-floor .kasina { background: var(--signal); width: 10px; height: 10px; margin-bottom: 3px; }
.contact-floor .wordmark { color: var(--white); font-size: 18px; }
.contact-floor .lockup { margin-right: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 28px; align-items: center; }
.foot-links a, .foot-links span { font-size: 12.5px; color: rgba(250, 248, 244, 0.78); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--white); }

/* ---------- plain pages ---------- */

.page { padding: clamp(132px, 14vw, 200px) 0 var(--room); }
.page .inner { max-width: 62ch; display: flex; flex-direction: column; gap: 22px; }
.page h1 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 10px; }
.page h2 { font-size: 22px; letter-spacing: -0.012em; margin-top: 20px; }
.page a { color: var(--teal); }
.page-footer { border-top: 1px solid var(--hairline); padding: 22px 0 32px; }
.page-footer .shell { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.page-footer .lockup { margin-right: 0; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .work .side { position: static; grid-column: 1 / span 8; }
  .work .qa { grid-column: 1 / -1; margin-top: 48px; }
  .placard { grid-column: span 6; }
  .placard:last-child { grid-column: 1 / -1; }
  .wall-group { grid-template-columns: 1fr; row-gap: 26px; }
  .practice .intro { grid-column: 5 / span 8; }
  .name-word { grid-column: 1 / -1; }
  .name-def { grid-column: 1 / span 8; margin-top: 40px; }
}

@media (max-width: 900px) {
  /* the room stacks: wall text first, then the photograph */
  .hero, .contact { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .hero { background: var(--white); }
  .hero-bg, .contact .rooms { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 5 / 6; max-height: 78svh; order: 2; }
  .hero-bg img, .contact picture img { object-position: 50% 50%; }
  .hero-wall, .contact-wall { position: static; height: auto; padding: 116px var(--gutter) 48px; }
  .hero-text, .contact-text { width: 100%; max-width: 640px; }
  .hero-wall .lead { font-size: clamp(18px, 2.6vw, 22px); }
  .hero-text h1 { font-size: clamp(34px, 13.2cqw, 84px); margin-top: 20px; }
  .coral-rule { margin: 28px 0 24px; }
  .hero-floor { order: 3; }
  .contact { background: var(--night); }
  .contact .rooms { order: 1; }
  .contact-wall { order: 2; padding: 56px var(--gutter) 56px; opacity: 1; }
  .contact-floor { position: static; order: 3; padding: 20px var(--gutter) 24px; border-top: 1px solid var(--hairline-dark); flex-direction: column; align-items: flex-start; gap: 4px; }
  .practice .thesis, .practice .intro, .quote-feature, .room-head .head, .room-head .aside,
  .canvas .head, .canvas .body, .about .portrait-col, .about .body, .name-def { grid-column: 1 / -1; }
  .room-head .aside { justify-self: start; margin-top: 20px; }
  .canvas .body, .about .body { margin-top: 36px; }
  .portrait { max-width: 320px; }
  .quotes-3 blockquote { grid-column: 1 / -1; }
}
@media (min-width: 901px) {
  .contact .rooms { position: absolute; inset: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .nav { height: 60px; }
  .placard, .placard:last-child { grid-column: 1 / -1; }
  .wall-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .wall-logos img { max-width: 100%; }
  .subjects { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .work .side { grid-column: 1 / -1; }
  summary .n { display: none; }
  details .a { padding-right: 0; }
  .hero-floor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .hero-bg, .contact picture, .skip { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- small additions ---------- */
.d1 { --d: 0.12s; } .d2 { --d: 0.24s; } .d3 { --d: 0.36s; }
.nav.is-night .wordmark, .nav.is-night .nav-links a, .nav.is-night .nav-cta { color: var(--white); }
.nav.is-night .nav-links a::after { background: var(--white); }
.nav.is-night .nav-cta { border-color: rgba(250, 248, 244, 0.7); }
.nav.is-night .nav-cta:hover { background: var(--white); color: var(--night); }
.subjects .label { color: rgba(250, 248, 244, 0.66); }
.nav-links { transition: opacity 0.3s, visibility 0.3s; }
.nav:not(.is-solid):not(.is-night) .nav-links { opacity: 0; visibility: hidden; }
.nav:not(.is-solid):not(.is-night) .nav-cta { background: var(--white); border-color: var(--white); }
.nav:not(.is-solid):not(.is-night) .nav-cta:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }
