/* Layout: a sticky two-card column (about + testimonials, always one screen tall) beside a masonry of project
   tiles whose columns drift at slightly different speeds. Opening a project grows its tile to 2x2 inside the
   masonry and fuses the two cards into its info panel. White carries what matters, grey the rest. */
:root {
  --bg: #000;
  --card: #1a1a1a;
  --raised: #262626;
  --hi: #fff;
  --lo: rgb(255 255 255 / .52);
  --lo-2: rgb(255 255 255 / .34);
  --line: rgb(255 255 255 / .1);
  --edge: rgb(255 255 255 / .08); /* hairline around every card and tile */
  --live: #3ddc84;
  --danger: #ff8a7a;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gap: 20px;
  --r: 20px;
  --pad: 24px;
  color-scheme: dark;
}

/* Inter (OFL, fonts/OFL.txt), Latin subset with weight and optical-size axes: big type gets the Display cut on its own. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter.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; }

* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-gutter: stable; }
html.is-sheet-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--hi); font: 14px/20px var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
p, h1, h2, figure, blockquote { margin: 0; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
b { font-weight: inherit; color: var(--hi); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }

/* ---------- page grid ---------- */
.page {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  max-width: 1760px;
  margin: 0 auto;
  padding: var(--gap);
  align-items: start;
}
.side {
  position: sticky;
  top: var(--gap);
  height: calc(100vh - 2 * var(--gap));
  height: calc(100dvh - 2 * var(--gap));
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.work { --cols: 3; grid-column: span 3; min-width: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); align-items: start; }
/* main.js positions every tile itself (masonry, drift, expansion); the grid above is the no-JS fallback. */
.work.is-masonry { display: block; position: relative; }
.is-masonry > .tile { position: absolute; left: 0; top: 0; will-change: transform; }

.card { position: relative; background: var(--card); border: 1px solid var(--edge); border-radius: var(--r); min-width: 0; transition: border-color .3s; }
.label { font-size: 12px; line-height: 16px; color: var(--lo); }

/* ---------- about ---------- */
/* On short screens the about card gives up height first and scrolls inside, so its top never leaves the screen. */
.info {
  flex: 0 1 auto; min-height: 0; padding: var(--pad); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.info::-webkit-scrollbar { display: none; }
/* Scroll fades are sticky overlays in the card colour (a mask would fade the card's own edge too).
   Sticky offsets count from inside the padding, hence the negative pad. */
.info::before, .info::after {
  content: ""; position: sticky; z-index: 1; display: block; margin-inline: calc(-1 * var(--pad)); pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.info::before { top: calc(-1 * var(--pad)); height: 24px; margin-bottom: -24px; background: linear-gradient(var(--card), rgb(26 26 26 / 0)); }
.info::after { bottom: calc(-1 * var(--pad)); height: 48px; margin-top: -48px; background: linear-gradient(rgb(26 26 26 / 0), var(--card)); }
.info.fade-top::before, .info.fade-bottom::after { opacity: 1; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--raised); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.name { margin-top: 14px; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.2px; }
.role { margin-top: 2px; color: var(--lo); }
.bio { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; color: var(--lo); text-wrap: pretty; }

.social { display: flex; margin-right: -6px; }
.social a {
  position: relative; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: var(--lo); transition: color .2s, background-color .2s;
}
.social svg { width: 15px; height: 15px; fill: currentColor; }
.social a:hover, .social a:focus-visible { color: var(--hi); background: rgb(255 255 255 / .08); }
.social a::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 6px); left: 50%; z-index: 5;
  padding: 4px 8px; border-radius: 8px; background: var(--raised); color: var(--hi);
  font-size: 12px; line-height: 16px; white-space: nowrap; pointer-events: none;
  box-shadow: 0 6px 16px rgb(0 0 0 / .45);
  opacity: 0; transform: translate(-50%, -3px); transition: opacity .15s, transform .15s;
}
.social a:hover::after, .social a:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .12s; }

/* Client logos run edge to edge of the card and fade out at its padding. */
.marquee {
  display: flex; overflow: hidden; margin: 28px calc(-1 * var(--pad)) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent);
}
.logos {
  flex: none; display: flex; align-items: center; gap: 32px; margin: 0; padding: 0 32px 0 0; list-style: none;
  animation: marquee 45s linear infinite;
}
.logos li { flex: none; height: 22px; display: flex; align-items: center; color: var(--lo-2); font-size: 14px; font-weight: 600; letter-spacing: -.2px; white-space: nowrap; }
.logos img { height: 100%; width: auto; opacity: .5; filter: brightness(0) invert(1); } /* any logo file renders as flat white */
@keyframes marquee { to { transform: translateX(-100%); } }
.cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.btn-2 {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 0; background: rgb(255 255 255 / .07); color: var(--hi); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .2s;
}
.btn-2:hover { background: rgb(255 255 255 / .12); }
.btn-2:active { transform: scale(.98); }

/* Liquid-metal ring: two conic gradients turning at different speeds, masked to a 2px border. */
@property --ra { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --rb { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.glass {
  position: relative; isolation: isolate; height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  background: #222; color: var(--hi); font-size: 14px; font-weight: 500; cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); transition: background-color .2s;
}
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px;
  background:
    conic-gradient(from var(--rb), transparent 0deg, rgb(255 255 255 / .9) 30deg, transparent 70deg, transparent 180deg, rgb(200 230 255 / .7) 215deg, transparent 250deg),
    conic-gradient(from var(--ra), #f4f4f4, #4d4d4d 45deg, #cfcfcf 80deg, #2c2c2c 120deg, #f3cfff 152deg, #a9dcff 168deg, #fff 185deg, #383838 225deg, #bdbdbd 265deg, #ffe7ad 295deg, #474747 325deg, #f4f4f4);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ring-a 7s linear infinite, ring-b 11s linear infinite;
  transition: filter .25s;
}
.glass:hover { background: #2a2a2a; }
.glass:hover::before { filter: brightness(1.2); }
.glass:active { transform: scale(.98); }
@keyframes ring-a { to { --ra: 360deg; } }
@keyframes ring-b { to { --rb: -360deg; } }

/* ---------- inquiry form ---------- */
.back {
  display: inline-flex; align-items: center; gap: 4px; margin-left: -2px; padding: 4px 0; border: 0; background: none;
  color: var(--lo); font-size: 13px; cursor: pointer; transition: color .2s;
}
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--hi); }
.f-title { margin-top: 14px; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.2px; }
.f-sub { margin-top: 2px; color: var(--lo); }
.f-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field > span { font-size: 12px; line-height: 16px; color: var(--lo); }
.field i { font-style: normal; color: var(--lo-2); }
.span2 { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; margin: 0; padding: 6px 0 7px; border: 0; border-bottom: 1px solid rgb(255 255 255 / .16); border-radius: 0;
  background: transparent; color: var(--hi); font: 15px/22px var(--font); outline: none; appearance: none;
  transition: border-color .2s;
}
.field textarea { resize: none; field-sizing: content; min-height: 52px; max-height: 132px; }
.field select {
  padding-right: 20px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0 center / 16px;
}
.field select:invalid { color: var(--lo-2); }
.field option { background: var(--card); color: var(--hi); }
.field ::placeholder { color: var(--lo-2); }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--hi); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-bottom-color: var(--danger); }
.err { font-size: 12px; line-height: 16px; color: var(--danger); margin-top: 4px; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f-foot { margin-top: 20px; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.send {
  height: 40px; padding: 0 22px; border: 0; border-radius: 999px; background: #f2f2f2; color: #111;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, opacity .2s, transform .1s;
}
.send:hover { background: #fff; }
.send:active { transform: scale(.98); }
.send:disabled { opacity: .6; cursor: progress; }
.f-alt { font-size: 13px; color: var(--lo); }
.f-alt a, .f-status a, .p-meta a { color: var(--hi); text-decoration: underline; text-decoration-color: rgb(255 255 255 / .3); text-underline-offset: 3px; }
.f-status { margin-top: 12px; font-size: 13px; color: var(--danger); }
.f-status:empty { display: none; }
.sent-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgb(61 220 132 / .14); color: var(--live); }
.sent-mark svg { width: 20px; height: 20px; }
[data-view="sent"] .back, [data-view="booked"] .back { margin-top: 18px; }

/* ---------- book a call ---------- */
.b-head { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.b-head .avatar { flex: none; width: 40px; height: 40px; }
.b-head .f-title { margin-top: 0; }
.b-meta { margin-top: 2px; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; line-height: 18px; color: var(--lo); }
.b-meta span { display: inline-flex; align-items: center; gap: 6px; }
.b-meta svg { flex: none; width: 14px; height: 14px; }
.b-meta b { font-weight: 500; }
.b-what { margin-top: 14px; text-wrap: pretty; }
.b-days {
  display: flex; gap: 8px; margin: 18px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent);
}
.b-days::-webkit-scrollbar { display: none; }
.b-day, .b-time {
  border: 1px solid var(--line); background: none; color: var(--hi); cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.b-day { flex: none; width: 60px; padding: 8px 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 12px; line-height: 16px; color: var(--lo); }
.b-day b { font-size: 14px; line-height: 19px; font-weight: 500; color: var(--hi); }
.b-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.b-time { height: 36px; border-radius: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .b-day:hover, .b-time:hover { border-color: rgb(255 255 255 / .3); } }
.b-day[aria-pressed="true"], .b-time[aria-pressed="true"] { border-color: var(--hi); background: var(--hi); color: #000; }
.b-day[aria-pressed="true"] b { color: #000; }
.b-note { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--lo-2); }
.b-note:empty { display: none; }
.b-note a { color: var(--hi); }
/* "How did you find me?": radios drawn as chips, so keyboard and form data work as usual. */
.b-src { margin: 0; padding: 0; border: 0; min-width: 0; }
.b-src legend { padding: 0; font-size: 12px; line-height: 16px; color: var(--lo); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; line-height: 18px; color: var(--lo);
  transition: border-color .2s, background-color .2s, color .2s;
}
@media (hover: hover) { .chip:hover span { border-color: rgb(255 255 255 / .3); color: var(--hi); } }
.chip input:checked + span { border-color: var(--hi); background: var(--hi); color: #000; }
.chip input:focus-visible + span { outline: 2px solid var(--hi); outline-offset: 2px; }
.b-src.has-error .chip span { border-color: rgb(255 138 122 / .5); }

/* The booking form needs the whole column, so the testimonial card folds away under it (main.js animates it). */
.side.is-tall .info { flex: 1 1 auto; }
.side.is-tall .quotes {
  flex: 0 0 0; min-height: 0; margin-top: calc(-1 * var(--gap)); padding-block: 0; border-block-width: 0;
  opacity: 0; overflow: hidden; pointer-events: none;
}

/* ---------- testimonials ---------- */
.quotes { flex: 1 1 0; min-height: 210px; padding: var(--pad); display: flex; flex-direction: column; }
.q-stage { position: relative; flex: 1 1 auto; min-height: 0; margin-top: 14px; }
.q {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 16px;
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s;
}
.q.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease .1s; }
.q-text {
  --ft: 0px; --fb: 0px;
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  font-size: 15px; line-height: 22px; color: var(--lo); text-wrap: pretty;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--ft), #000 calc(100% - var(--fb)), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 var(--ft), #000 calc(100% - var(--fb)), transparent);
}
.q-text::-webkit-scrollbar { display: none; }
.q-text.fade-top { --ft: 24px; }
.q-text.fade-bottom { --fb: 56px; }
.q-who { flex: none; display: flex; align-items: center; gap: 12px; }
.q-ava {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--raised); color: var(--lo); font-size: 12px; font-weight: 500;
}
.q-ava::before { content: attr(data-i); }
.q-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-meta { min-width: 0; }
.q-meta b { display: block; font-size: 14px; line-height: 19px; font-weight: 500; }
.q-meta span { display: block; font-size: 13px; line-height: 18px; color: var(--lo); }
.q-meta .q-loc { display: inline; margin-left: 6px; font-weight: 400; color: var(--lo-2); }

/* Running lines: the active one fills over its reading time, then main.js moves on. */
.bars { --bh: 2px; flex: none; display: flex; gap: 4px; margin-top: 12px; }
.bars button { position: relative; flex: 1; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; transition: flex-grow .35s cubic-bezier(.2, .8, .2, 1); } /* tall invisible hit area */
.bars button:hover { flex-grow: 2.2; } /* the one under the pointer widens a little */
.bars button::before, .bars i {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--bh); border-radius: 2px;
  transform: translateY(-50%); transition: background-color .2s;
}
.bars button::before { background: rgb(255 255 255 / .16); }
.bars button:hover::before { background: rgb(255 255 255 / .3); }
.bars i { background: var(--hi); transform: translateY(-50%) scaleX(0); transform-origin: left; }
.bars .is-past i { transform: translateY(-50%) scaleX(1); background: rgb(255 255 255 / .42); }
.bars [aria-current="true"] i { animation: bar-fill var(--dur, 6s) linear forwards; }
.quotes:hover .bars i, .quotes:focus-within .bars i, .is-merged .bars i, .is-tall .bars i { animation-play-state: paused; }
@keyframes bar-fill { from { transform: translateY(-50%) scaleX(0); } to { transform: translateY(-50%) scaleX(1); } }

/* ---------- project panel: the two cards fuse while a project is open ---------- */
/* Info takes the about card's exact rect, the client quote the testimonial card's, so nothing shifts. */
.p-info, .p-quote { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; }
.p-info { padding: var(--pad); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.p-info::-webkit-scrollbar { display: none; }
.p-quote { padding: var(--pad) var(--pad) calc(var(--pad) + 34px); }
.p-quote .q-text { flex: none; margin: 14px 0 16px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.p-quote .q-who { margin-top: auto; }
.is-merged .info { overflow: hidden; border-bottom-color: transparent; }
.is-merged .quotes { border-top-color: transparent; }
.bridge { position: absolute; left: 0; right: 0; z-index: 1; background: var(--card); border-inline: 1px solid var(--edge); }
.p-brand { font-size: 15px; line-height: 20px; color: var(--lo); }
.p-title { margin-top: 8px; font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -.4px; color: var(--hi); text-wrap: balance; }
.p-desc { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--lo); text-wrap: pretty; }
.p-meta { margin: auto 0 0; padding-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.p-meta dt { font-size: 13px; line-height: 18px; color: var(--lo); }
.p-meta dd { margin: 2px 0 0; color: var(--hi); }

/* ---------- project tiles ---------- */
.tile { position: relative; display: block; border-radius: var(--r); color: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.media { position: relative; display: grid; place-items: center; width: 100%; max-width: 100%; border-radius: inherit; overflow: hidden; background: var(--c, var(--raised)); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--edge); pointer-events: none; }
.ph { font-size: 12px; letter-spacing: .04em; color: rgb(255 255 255 / .6); }
.tile::after {
  content: ""; position: absolute; inset: -5px; border: 1.5px solid rgb(255 255 255 / .5); border-radius: 25px;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile:focus-visible { outline: none; }
.caption {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 6px 10px; border-radius: 10px;
  background: rgb(0 0 0 / .88); color: var(--lo); line-height: 17.5px; opacity: 0; transition: opacity .2s;
}
.caption b { font-weight: 500; margin-right: 4px; }
.tile:hover .caption, .tile:focus-visible .caption { opacity: 1; }
@media (hover: none) { .caption { opacity: 1; } }


/* An open project dims the rest; hovering a dimmed tile hints it can be opened next. */
.tile { transition: opacity .35s ease; }
.has-open .tile { opacity: .3; }
.has-open .tile:hover { opacity: .6; }
.has-open .tile.is-open { z-index: 2; opacity: 1; cursor: zoom-out; }
.tile.is-lifted { z-index: 1; } /* stays above its neighbours while it shrinks back */
.tile.is-open::after, .tile.is-open .caption { opacity: 0 !important; }
.tile-close {
  position: absolute; left: 0; top: 0; z-index: 3; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgb(0 0 0 / .55); color: var(--hi); cursor: pointer; transition: background-color .2s;
}
.tile-close svg { width: 16px; height: 16px; }
.tile-close:hover { background: rgb(0 0 0 / .8); }

/* ---------- project sheet (below 900px) ---------- */
.stage { position: fixed; z-index: 20; background: var(--card); }
.stage-media { position: absolute; transform-origin: 0 0; border-radius: 12px; overflow: hidden; }
.stage-media .media { height: 100%; aspect-ratio: auto !important; border-radius: 0; }
.stage-info { display: none; }
.close {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgb(255 255 255 / .08); color: var(--hi); cursor: pointer; transition: background-color .2s;
}
.close svg { width: 16px; height: 16px; }
.close:hover { background: rgb(255 255 255 / .16); }
.stage.is-sheet { overflow-y: auto; overscroll-behavior: contain; transform-origin: 50% 0; }
.stage.is-sheet .close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; background: rgb(0 0 0 / .6); }
.stage.is-sheet .stage-info { display: flex; flex-direction: column; position: absolute; left: 20px; right: 20px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.stage.is-sheet .p-meta { margin-top: 0; padding-top: 24px; }
.stage-info .s-quote { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.stage-info .q-text { overflow: visible; -webkit-mask-image: none; mask-image: none; }

/* ---------- smaller screens ---------- */
/* Four columns only where the about card is wide enough to stay short. */
@media (max-width: 1359px) {
  .page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work { --cols: 2; grid-column: span 2; }
}
/* Below 900px the cards sit on top and scroll with the page; projects open as a full-screen sheet. */
@media (max-width: 899px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .info { overflow: visible; }
  .info::before, .info::after { display: none; }
  .side.is-tall .info { grid-column: 1 / -1; }
  .side.is-tall .quotes { display: none; }
  .work { grid-column: auto; }
  .q-stage { display: grid; }
  .q { position: relative; inset: auto; grid-area: 1 / 1; }
  .q-text { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  /* Tap the left or right side of the card to step through quotes; the lines only show progress here. */
  .quotes { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
  .bars { pointer-events: none; }
}
@media (max-width: 599px) {
  :root { --gap: 16px; --pad: 20px; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .work { --cols: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .glass::before { animation: none; }
  .logos { animation: none; }
  .q, .q.is-active { transition: none; }
  .bars [aria-current="true"] i { animation: none; transform: translateY(-50%) scaleX(1); }
}
