/* =========================================================================
   Krish — portfolio
   "Mocha and champagne": smoked glass over golden dunes. Espresso-mocha
   grounds, champagne gold carries the accents, burnt amber marks the actions.
   ========================================================================= */

/* ------------------------------------------------------------------ 1. TOKENS */
:root {
  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Terminal only — the one place a monospace face is the honest choice. */
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* Lets <details> animate to its natural height where supported. */
  interpolate-size: allow-keywords;

  --amber: #d4762c;   /* burnt amber */
  --gold: #e6cf9e;    /* champagne gold */
  --mocha: #3b2a22;   /* mocha brown */
  --on-accent: #24170f;

  /* Metallic champagne, used for the name and other hero type. */
  --gold-foil: linear-gradient(100deg, #c8691c 0%, #e9b872 28%, #fbefd9 50%, #e6cf9e 70%, #b98a4a 100%);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Radii step down with hierarchy: big panels, then cards, then controls. */
  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --r-md: 1rem;
  --r-pill: 999px;

  --blur: 22px;

  /* Atmosphere colours as raw channels so alpha can vary per use. */
  --a1: 212 118 44;   /* amber */
  --a2: 230 207 158;  /* champagne */
  --a3: 150 98 70;    /* mocha copper */

  --ease: cubic-bezier(.2, .7, .3, 1);
  --t: .3s var(--ease);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b120d;
  --ink: #f6eee2;
  --ink-2: #d9cab4;
  --ink-3: #ab9883;
  --accent: var(--gold);
  --live: #a8d48f;

  /* Glass: a warm champagne sheen over smoked mocha. */
  --g-hi: rgb(255 244 224 / .12);
  --g-lo: rgb(255 244 224 / .035);
  --g-tint: rgb(36 23 16 / .44);
  --g-line: rgb(240 220 180 / .16);
  --g-rim: rgb(246 226 186 / .6);
  --g-shadow: 0 30px 60px -28px rgb(10 5 2 / .8);
  --chip: rgb(240 220 180 / .07);

  --veil: linear-gradient(180deg, rgb(27 18 13 / .38) 0%, rgb(27 18 13 / .7) 55%, rgb(27 18 13 / .9) 100%);
  --sky-filter: sepia(.4) saturate(1.1) brightness(.72) contrast(1.05);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5ede0;
  --ink: #2a1c14;
  --ink-2: #4e3b2f;
  --ink-3: #6e5a4b;
  --accent: #9a4d16;
  --live: #3f7a2a;

  --g-hi: rgb(255 251 244 / .72);
  --g-lo: rgb(255 248 236 / .42);
  --g-tint: rgb(255 250 240 / .1);
  --g-line: rgb(255 252 245 / .85);
  --g-rim: rgb(255 255 255 / 1);
  --g-shadow: 0 30px 60px -30px rgb(80 50 30 / .32);
  --chip: rgb(42 28 20 / .06);

  --veil: linear-gradient(180deg, rgb(245 237 224 / .4) 0%, rgb(245 237 224 / .66) 55%, rgb(245 237 224 / .84) 100%);
  --sky-filter: sepia(.25) saturate(.95) brightness(1.08);
}

/* --------------------------------------------------- 1b. BACKGROUND ATMOSPHERE */
/* Fixed, non-interactive and behind everything, so the glass always has a
   landscape to frost. `overflow: clip` keeps the blurred blobs from ever
   widening the page. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: clip;
  background: var(--bg);
}

.backdrop__sky {
  position: absolute;
  inset: -2%;
  background-image: url("https://images.unsplash.com/photo-1473580044384-7ba9967e16a0?auto=format&fit=crop&w=2200&q=72");
  background-size: cover;
  background-position: center 62%;
  filter: var(--sky-filter);
  animation: sky 60s ease-in-out infinite alternate;
}

@media (max-width: 760px) {
  .backdrop__sky {
    background-image: url("https://images.unsplash.com/photo-1473580044384-7ba9967e16a0?auto=format&fit=crop&w=1100&h=1900&q=70");
  }
}

@keyframes sky {
  from { transform: scale(1.04); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.backdrop__veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
}

/* Slow colour fields. They give the glass something saturated to refract
   once the photo is veiled further down the page. */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  mix-blend-mode: screen;
}

html[data-theme="light"] .blob {
  mix-blend-mode: normal;
  opacity: .55;
}

.blob--1 {
  width: 38rem;
  height: 38rem;
  top: -12rem;
  right: -10rem;
  background: radial-gradient(circle, rgb(var(--a1) / .45), transparent 66%);
  animation: drift-a 30s var(--ease) infinite alternate;
}

.blob--2 {
  width: 34rem;
  height: 34rem;
  top: 40%;
  left: -12rem;
  background: radial-gradient(circle, rgb(var(--a2) / .38), transparent 66%);
  animation: drift-b 38s var(--ease) infinite alternate;
}

.blob--3 {
  width: 32rem;
  height: 32rem;
  bottom: -14rem;
  right: 18%;
  background: radial-gradient(circle, rgb(var(--a3) / .42), transparent 68%);
  animation: drift-c 34s var(--ease) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-10vw, 8vh, 0) scale(1.15); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(12vw, -8vh, 0) scale(.9); }
}

@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(.95); }
  to { transform: translate3d(-8vw, -10vh, 0) scale(1.12); }
}

/* Soft light that trails the pointer. JS skips it on touch and reduced motion. */
.spotlight {
  position: absolute;
  top: -22rem;
  left: -22rem;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--a2) / .14), transparent 62%);
  opacity: 0;
  transition: opacity .6s var(--ease);
  will-change: transform;
}

.spotlight.is-on {
  opacity: 1;
}

/* Film grain — stops the big gradients from looking synthetic. */
.backdrop__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: .06;
  mix-blend-mode: overlay;
}

/* ------------------------------------------------------------------ 1c. GLASS */
/* One material, used everywhere. Rules that keep it working:
   - never put opacity/filter/mask on an ANCESTOR of .glass — that turns the
     ancestor into a backdrop root and the blur goes blank. Reveal effects
     go on the .glass element itself.
   - don't nest .glass inside .glass when the inner one must blur the page. */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(145deg, var(--g-hi), var(--g-lo)), var(--g-tint);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
  backdrop-filter: blur(var(--blur)) saturate(170%);
  border: 1px solid var(--g-line);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .25),
    inset 0 -1px 0 rgb(255 255 255 / .05),
    var(--g-shadow);
}

/* Bright rim, strongest at the top-left where the light hits. */
.glass::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg, var(--g-rim), transparent 38%, transparent 62%, rgb(var(--a2) / .45));
  -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);
}

/* Glare that follows the pointer (JS sets --mx/--my). */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(26rem circle at var(--mx, 50%) var(--my, -30%), rgb(255 255 255 / .16), transparent 45%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  z-index: -1;
}

.glass:hover::before {
  opacity: 1;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-theme="dark"] .glass { background: rgb(48 32 24 / .9); }
  html[data-theme="light"] .glass { background: rgb(255 255 255 / .92); }
}

/* --------------------------------------------------- 1d. PROGRESS · CURSOR · REVEAL */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  pointer-events: none;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, rgb(var(--a1)), rgb(var(--a3)), rgb(var(--a2)));
  box-shadow: 0 0 12px rgb(var(--a2) / .7);
}

.cursor,
.cursorRing {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.cursor {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent);
}

.cursorRing {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  transition: width .28s var(--ease), height .28s var(--ease),
    margin .28s var(--ease), opacity .3s var(--ease),
    background-color .28s var(--ease);
}

html.has-cursor .cursor,
html.has-cursor .cursorRing {
  opacity: 1;
}

html.has-cursor.is-linking .cursorRing {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

@media (hover: none), (pointer: coarse) {
  .cursor,
  .cursorRing {
    display: none;
  }
}

/* Reveal — inert until JS marks the document as scripted. Lives on .glass
   elements themselves (see the glass rules above). */
.js .rv {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition: opacity .8s var(--ease), transform .8s var(--ease), border-color var(--t);
}

.js .rv.is-in {
  opacity: 1;
  transform: none;
}

.js [data-tilt] {
  will-change: transform;
}

/* Once revealed, tilt cards follow the pointer quickly instead of easing
   over the long reveal duration. */
.js .rv.is-in[data-tilt] {
  transition: opacity .8s var(--ease), transform .25s var(--ease);
}

/* ------------------------------------------------------------------ 2. BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--gold);
  color: var(--on-accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 300;
  padding: .6rem 1rem;
  border-radius: var(--r-md);
  background: var(--gold);
  color: var(--on-accent);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform .18s var(--ease);
}

.skip:focus {
  transform: none;
}

.dot {
  width: .55rem;
  height: .55rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 .55rem transparent; }
}

/* ---------------------------------------------------------------- 3. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .75rem 1.4rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .98rem;
  white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background-color var(--t);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

.btn--primary {
  color: var(--on-accent);
  background: linear-gradient(120deg, var(--amber), #f0c98a 45%, var(--gold));
  background-size: 180% 100%;
  background-position: 0 0;
  box-shadow: 0 10px 30px -10px rgb(var(--a1) / .7), inset 0 1px 0 rgb(255 255 255 / .6);
  transition: transform var(--t), box-shadow var(--t), background-position .6s var(--ease);
}

.btn--primary:hover {
  background-position: 100% 0;
  box-shadow: 0 14px 36px -10px rgb(var(--a2) / .75), inset 0 1px 0 rgb(255 255 255 / .6);
}

.btn--glass {
  color: var(--ink);
  --blur: 14px;
}

.btn--small {
  min-height: 2.4rem;
  padding: .45rem 1.05rem;
  font-size: .9rem;
}

.btn.is-done {
  color: var(--live);
}

.iconBtn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--chip);
  transition: color var(--t), background-color var(--t), transform var(--t);
}

.iconBtn:hover {
  color: var(--ink);
  transform: rotate(-12deg);
}

.iconBtn svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] .i-moon,
html[data-theme="light"] .i-sun {
  display: none;
}

/* -------------------------------------------------------------------- 4. NAV */
.nav {
  position: fixed;
  top: .9rem;
  left: 50%;
  z-index: 60;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem .5rem .45rem .7rem;
  border-radius: var(--r-pill);
  --blur: 18px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border-radius: var(--r-pill);
}

.mark__logo {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .6);
}

.nav__links {
  display: flex;
  gap: .2rem;
}

.nav__links a {
  position: relative;
  padding: .45rem .9rem;
  border-radius: var(--r-pill);
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--t), background-color var(--t);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__links a.is-active {
  color: var(--ink);
  background: var(--chip);
  box-shadow: inset 0 0 0 1px var(--g-line);
}

.nav__tools {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.nav__menuBtn {
  display: none;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t), opacity var(--t);
}

.burger {
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before { top: -6px; }
.burger::after { top: 6px; }

.nav__menuBtn[aria-expanded="true"] .burger { background: transparent; }
.nav__menuBtn[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav__menuBtn[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.nav__menuBtn:hover { transform: none; }

.menu {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-top: .6rem;
  padding: .75rem;
  border-radius: var(--r-lg);
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transform-origin: top center;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.menu[hidden] {
  display: none;
}

.menu.is-open {
  opacity: 1;
  transform: none;
}

.menu a {
  padding: .8rem 1rem;
  border-radius: var(--r-md);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
}

.menu a:hover,
.menu a.is-active {
  background: var(--chip);
}

.menu__status {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .5rem;
  padding: .9rem 1rem .4rem;
  border-top: 1px solid var(--g-line);
  color: var(--ink-3);
  font-size: .9rem;
}

/* Animated name. JS splits it into per-letter spans; without JS it is plain text. */
.name {
  display: inline-flex;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -.01em;
  cursor: default;
  user-select: none;
}

.name__ch {
  display: inline-block;
  white-space: pre;
  --i: 0;
  transition: color .2s var(--ease);
}

.js .name__ch {
  animation: ch-in .6s var(--ease) backwards;
  animation-delay: calc(var(--i) * 60ms + 150ms);
}

@keyframes ch-in {
  from {
    opacity: 0;
    transform: translateY(-.6em) rotateX(-70deg);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.name.is-hot .name__ch {
  animation: ch-wave .55s var(--ease);
  animation-delay: calc(var(--i) * 42ms);
}

@keyframes ch-wave {
  0%, 100% { transform: translateY(0); }
  38% { transform: translateY(-.28em); }
}

.mark .name.is-hot .name__ch {
  color: var(--accent);
}

/* ------------------------------------------------------------------- 5. MAIN */
.main {
  /* Lifts the column above the fixed backdrop. Deliberately no opacity,
     filter or mask here — see the glass notes. */
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.sec {
  padding-block: clamp(4rem, 10vw, 7rem);
}

.sec__title {
  font-size: clamp(2.9rem, 6.8vw, 4.9rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.lede {
  max-width: 48ch;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.body {
  max-width: 62ch;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------- 6. HERO */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 8rem 4rem;
}

.hero__hello {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ink-2);
}

.hero__name {
  margin: .1rem 0 .4rem -.04em;
  line-height: .9;
}

.hero__name .name {
  font-size: clamp(5.75rem, 17vw, 13rem);
  font-weight: 700;
  letter-spacing: -.03em;
  cursor: pointer;
  /* Room for descender-free glyphs to animate without clipping. */
  padding-bottom: .06em;
  perspective: 600px;
}

/* Gradient fill. Painted per letter when JS has split the name (so each
   animating letter keeps its slice), or on the whole word without JS. */
html:not(.js) .hero__name .name,
.hero__name .name__ch {
  background-image: var(--gold-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"]:not(.js) .hero__name .name,
html[data-theme="light"] .hero__name .name__ch {
  background-image: linear-gradient(100deg, #9a4d16 0%, #6b4430 45%, #a8782c 100%);
}

.hero__name .name__ch {
  background-size: calc(var(--n, 5) * 100%) 100%;
  background-position: calc(var(--i) / (var(--n, 5) - 1) * 100%) 0;
  filter: drop-shadow(0 8px 30px rgb(var(--a1) / .25));
}

.hero__role {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.005em;
  max-width: 24ch;
}

.hero__lede {
  max-width: 46ch;
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 27rem);
}

.portrait {
  margin: 0;
  padding: .7rem;
  border-radius: var(--r-xl);
  transition: transform .5s var(--ease);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: calc(var(--r-xl) - .6rem);
}

.portrait figcaption {
  padding: .8rem .5rem .3rem;
  font-size: .86rem;
  color: var(--ink-2);
  text-align: center;
}

.photoFallback {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--r-xl) - .6rem);
  background: linear-gradient(135deg, rgb(var(--a1) / .3), rgb(var(--a2) / .3));
  font-family: var(--display);
  font-weight: 700;
  font-size: 3rem;
}

/* Floating status chips overlap the frame edge to show the depth of the glass. */
.float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.05rem;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  --blur: 16px;
  animation: bob 7s ease-in-out infinite;
}

.float svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.float--a {
  top: 9%;
  left: -2.5rem;
}

.float--b {
  bottom: 18%;
  right: -2rem;
  animation-delay: -3.5s;
}

/* Picture-in-picture intro clip, tucked over the portrait's lower-left corner. */
.pip {
  position: absolute;
  z-index: 3;
  left: -3rem;
  bottom: 4.5rem;
  display: block;
  width: 10.5rem;
  padding: .4rem;
  border-radius: 1.4rem;
  --blur: 16px;
  transition: transform .35s var(--ease);
}

.pip:hover {
  transform: translateY(-4px) scale(1.04);
}

.pip__video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  background: var(--on-accent);
}

.pip__badge {
  position: absolute;
  left: .85rem;
  top: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .55rem;
  border-radius: var(--r-pill);
  background: rgb(20 13 9 / .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f6eee2;
  font-size: .7rem;
  font-weight: 600;
}

.pip__live {
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: #ff6b6b;
  animation: pulse 2s ease-out infinite;
}

.pip__expand {
  position: absolute;
  right: .85rem;
  bottom: .85rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgb(20 13 9 / .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: .85;
  transition: opacity var(--t), transform var(--t);
}

.pip:hover .pip__expand {
  opacity: 1;
  transform: scale(1.1);
}

.pip__expand svg {
  width: .9rem;
  height: .9rem;
  fill: none;
  stroke: #f6eee2;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------------------------------------------------------------- 7. MARQUEE */
.marquee {
  display: flex;
  overflow: hidden;
  border-radius: var(--r-pill);
  padding: 1rem 0;
  --blur: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee li {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 600;
  font-style: italic;
  white-space: nowrap;
  color: var(--ink-2);
}

.marquee li::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--gold));
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ------------------------------------------------------------------ 8. ABOUT */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fact {
  padding: 1.3rem 1.25rem;
  border-radius: var(--r-lg);
}

.fact dt {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .35rem;
}

.fact dd {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

/* --------------------------------------------------------------- 9. SERVICES */
.svc {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.svc__item {
  padding: clamp(1.5rem, 2.8vw, 2rem);
  border-radius: var(--r-lg);
}

.svc__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.3rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgb(var(--a1) / .32), rgb(var(--a2) / .28));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 0 0 1px rgb(255 255 255 / .14);
}

.svc__icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc__item h3 {
  font-size: 1.75rem;
  margin-bottom: .7rem;
}

.svc__item p {
  color: var(--ink-2);
  font-size: .97rem;
}

.svc__item ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--g-line);
}

.svc__item li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .92rem;
  color: var(--ink-2);
}

.svc__item li::before,
.ticks li::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.2 2.2 4.8-5' fill='none' stroke='%2324170f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat,
    linear-gradient(135deg, var(--amber), var(--gold));
}

/* ------------------------------------------------------------------- 10. WORK */
.work {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.work__item {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  align-items: center;
  padding: clamp(.75rem, 1.5vw, 1rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--r-xl);
}

.work__item--flip {
  padding-right: clamp(.75rem, 1.5vw, 1rem);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
}

.work__item--flip .work__media {
  order: 2;
}

.work__media {
  margin: 0;
}

.work__zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  line-height: 0;
  overflow: hidden;
  border-radius: calc(var(--r-xl) - .75rem);
  cursor: zoom-in;
}

.work__zoom img {
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.work__zoom::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(27 18 13 / .45));
  pointer-events: none;
}

.work__zoom:hover img {
  transform: scale(1.05);
}

.work__text {
  padding-block: 1rem;
}

.work__tag {
  display: inline-block;
  margin-bottom: .8rem;
  padding: .3rem .8rem;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
}

.work__item h3 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin-bottom: .8rem;
}

.work__item p:not(.work__tag) {
  max-width: 52ch;
  color: var(--ink-2);
  font-size: .97rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.25rem;
}

.chips li {
  padding: .3rem .8rem;
  border-radius: var(--r-pill);
  background: var(--chip);
  box-shadow: inset 0 0 0 1px var(--g-line);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- 11. PROCESS */
/* A real sequence, so it gets numbers and a connecting line. */
.steps {
  position: relative;
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps::before {
  content: "";
  position: absolute;
  top: 2.6rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, rgb(var(--a1) / .0), rgb(var(--a1) / .7), rgb(var(--a3) / .7), rgb(var(--a2) / .7), rgb(var(--a2) / 0));
}

.step {
  padding: 1.5rem 1.35rem 1.6rem;
  border-radius: var(--r-lg);
}

.step__num {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 700;
  box-shadow: 0 0 0 5px rgb(var(--a2) / .14), 0 6px 20px -6px rgb(var(--a2) / .8);
}

.step h3 {
  font-size: 1.6rem;
  margin-bottom: .5rem;
}

.step p {
  color: var(--ink-2);
  font-size: .95rem;
}

.step em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

/* ---------------------------------------------------------------- 12. CONTACT */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: var(--r-xl);
  overflow: hidden;
  /* Warm glow welling up from the bottom of the panel, cool light top-right. */
  background:
    radial-gradient(60% 80% at 50% 125%, rgb(var(--a1) / .38), transparent 70%),
    radial-gradient(40% 60% at 90% -15%, rgb(var(--a2) / .28), transparent 70%),
    linear-gradient(145deg, var(--g-hi), var(--g-lo)),
    var(--g-tint);
}

.contact__title {
  max-width: 16ch;
  font-size: clamp(2.7rem, 6.8vw, 4.9rem);
  font-weight: 700;
}

.contact__lede {
  max-width: 52ch;
  margin-top: 1.1rem;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.contact__mail {
  margin-top: 2rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  background: linear-gradient(90deg, currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: .15rem;
  transition: background-size .4s var(--ease), color var(--t);
}

.contact__mail:hover {
  color: var(--accent);
  background-size: 100% 2px;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.75rem;
}

.contact__tips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--g-line);
  font-size: .94rem;
  color: var(--ink-2);
}

.contact__tips > p {
  font-weight: 600;
  color: var(--ink);
}

.contact__tips .ticks {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.25rem;
}

/* ------------------------------------------------------------------ 13. FOOT */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 2rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--g-line);
  color: var(--ink-3);
  font-size: .9rem;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
}

.foot__links a,
.foot__copy a {
  color: var(--ink-2);
  transition: color var(--t);
}

.foot__links a:hover,
.foot__copy a:hover {
  color: var(--ink);
}

.foot__copy {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid var(--g-line);
}

/* ---------------------------------------------------------------- 14. VIEWER */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
}

.viewer[hidden] {
  display: none;
}

.viewer__scrim {
  position: absolute;
  inset: 0;
  background: rgb(20 13 9 / .55);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  transition: opacity var(--t);
}

.viewer__figure {
  position: relative;
  margin: 0;
  opacity: 0;
  transform: scale(.96);
  transition: opacity var(--t), transform var(--t);
}

.viewer.is-open .viewer__scrim,
.viewer.is-open .viewer__figure {
  opacity: 1;
  transform: none;
}

.viewer__figure video {
  display: block;
  width: min(88vw, 72vh);
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  background: var(--on-accent);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8);
}

.viewer__figure img[hidden],
.viewer__figure video[hidden] {
  display: none;
}

.viewer__figure img {
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8);
}

.viewer__caption {
  margin-top: .9rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  color: #f6eee2;
}

.viewer__close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: var(--on-accent);
  font-size: 1.5rem;
  line-height: 1;
  padding-bottom: .15rem;
  transition: transform var(--t);
}

.viewer__close:hover {
  transform: rotate(90deg);
}

/* ------------------------------------------------------------ 14b. ADDITIONS */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: 1.6rem;
  font-size: .9rem;
  color: var(--ink-3);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero__meta li::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--gold));
}

.sec--tight {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.body + .body {
  margin-top: 1rem;
}

.lede code {
  font-family: var(--mono);
  font-size: .82em;
  padding: .12em .45em;
  border-radius: .4em;
  background: var(--chip);
  box-shadow: inset 0 0 0 1px var(--g-line);
}

/* Sub-headings inside a section. */
.sub {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin: clamp(2.75rem, 6vw, 4rem) 0 1.25rem;
}

/* What you can expect */
.promises,
.skills,
.models {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}

.promise,
.skill,
.model {
  padding: 1.4rem 1.35rem 1.5rem;
  border-radius: var(--r-lg);
}

.promise::marker {
  content: none;
}

/* A short gradient stroke marks each commitment. */
.promise h4::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-bottom: 1rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber), var(--gold));
}

.promise h4,
.model h4 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin-bottom: .45rem;
}

.promise p,
.model p {
  color: var(--ink-2);
  font-size: .95rem;
}

/* Capabilities */
.skill h3 {
  font-size: 1.4rem;
}

.skill .chips {
  margin-top: .85rem;
}

/* Engagement models */
.model {
  display: flex;
  flex-direction: column;
}

.model p.model__fit {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .9rem;
}

.model > p:not(.model__fit) {
  margin-bottom: 1rem;
}

.model__fit {
  border-top: 1px solid var(--g-line);
}

.model__fit strong {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
}

.model--featured {
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(var(--a1) / .24), transparent 60%),
    linear-gradient(145deg, var(--g-hi), var(--g-lo)),
    var(--g-tint);
}

/* Work: challenge and approach */
.work__detail dt {
  margin: 1rem 0 .3rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
}

.work__detail dt:first-child {
  margin-top: 0;
}

.work__detail dd {
  max-width: 54ch;
  font-size: .96rem;
  color: var(--ink-2);
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.ticks li::before {
  margin-top: .22em;
}

/* Process outcome */
.step {
  display: flex;
  flex-direction: column;
}

.step > p:not(.step__out) {
  margin-bottom: 1.1rem;
}

.step p.step__out {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--g-line);
  font-size: .9rem;
  color: var(--ink);
}

.step__out strong {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: 7rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.qa {
  border-radius: var(--r-lg);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: inherit;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

.qa summary::-webkit-details-marker {
  display: none;
}

/* Plus that turns into a cross when open. */
.qa summary::after {
  content: "";
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 42% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 42% no-repeat,
    var(--chip);
  transition: transform var(--t);
}

.qa[open] summary::after {
  transform: rotate(45deg);
}

.qa p {
  max-width: 62ch;
  padding: 0 1.35rem 1.25rem;
  color: var(--ink-2);
}

.qa::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .35s var(--ease), content-visibility .35s allow-discrete;
}

.qa[open]::details-content {
  block-size: auto;
}

/* ---------------------------------------------------------------- TERMINAL */
/* Always a dark pane, in both themes — it's a terminal. Still glass, just
   smoked: the mountains show faintly through. */
.term {
  --blur: 26px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(160deg, rgb(255 255 255 / .08), rgb(255 255 255 / .02)),
    rgb(18 12 8 / .8);
  color: #eadfcd;
  font-family: var(--mono);
  font-size: .88rem;
  line-height: 1.6;
}

.term:focus-within {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .2),
    0 0 0 2px rgb(var(--a2) / .55),
    var(--g-shadow);
}

.term__bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgb(255 255 255 / .08);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: rgb(255 255 255 / .04);
}

.term__lights {
  display: flex;
  gap: .45rem;
}

.term__lights i {
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: #ff6b6b;
}

.term__lights i:nth-child(2) { background: #ffc35a; }
.term__lights i:nth-child(3) { background: #5fd38d; }

.term__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: .8em;
  color: #a8968a;
}

.term__clear {
  padding: .25rem .7rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / .07);
  font-family: var(--mono);
  font-size: .75rem;
  color: #c7b6a3;
  transition: color var(--t), background-color var(--t);
}

.term__clear:hover {
  color: #fff;
  background: rgb(255 255 255 / .14);
}

.term__body {
  height: clamp(20rem, 58vh, 30rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.15rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / .2) transparent;
  cursor: text;
}

.term__out > * {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.term__out > * + * {
  margin-top: .15rem;
}

.term__line {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-top: .15rem;
}

.term__prompt {
  flex-shrink: 0;
  white-space: nowrap;
  cursor: text;
}

.t-user { color: var(--gold); }
.t-path { color: #e59a5c; }
.t-head { color: var(--amber); font-weight: 700; }
.t-dim { color: #9a8878; }
.t-err { color: #ff9a9a; }
.t-ok { color: #b9dc94; }
.t-acc { color: var(--gold); }

.t-cmd {
  margin-top: .6rem;
}

.term__out a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.term__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  color: #fff;
  font: inherit;
  caret-color: var(--amber);
}

.term__input:focus-visible {
  outline: none;
}

/* Two-column listings (help, skills, neofetch info). */
.t-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .1rem 1.5rem;
  white-space: normal !important;
}

.t-grid > :nth-child(odd) {
  color: var(--gold);
}

.t-fetch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 2rem;
  margin-block: .5rem;
  white-space: normal !important;
}

.t-art {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1.02;
  background: var(--gold-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.t-swatches {
  display: flex;
  gap: .3rem;
  margin-top: .5rem;
}

.t-swatches i {
  width: 1.4rem;
  height: .8rem;
  border-radius: 3px;
}

.term__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.chipBtn {
  padding: .45rem .9rem;
  border-radius: var(--r-pill);
  background: var(--chip);
  box-shadow: inset 0 0 0 1px var(--g-line);
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--ink-2);
  transition: color var(--t), background-color var(--t), transform var(--t);
}

.chipBtn:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-1px);
}

.term__hint {
  margin-top: .75rem;
  font-size: .86rem;
  color: var(--ink-3);
}

/* The tip is about keyboard shortcuts; touch visitors have the chips. */
@media (hover: none) {
  .term__hint {
    display: none;
  }
}

/* ------------------------------------------------------------ 15. RESPONSIVE */
@media (max-width: 1020px) {
  .nav__links {
    display: none;
  }

  .nav__menuBtn {
    display: grid;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: 7.5rem 3rem;
  }

  .hero__visual {
    width: min(100%, 23rem);
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .work__item,
  .work__item--flip {
    grid-template-columns: minmax(0, 1fr);
    padding: .75rem .75rem 1.25rem;
  }

  .work__item--flip .work__media {
    order: 0;
  }

  .work__text {
    padding: .5rem .75rem 0;
  }

  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq__intro {
    position: static;
  }
}

@media (max-width: 560px) {
  .nav__cta {
    display: none;
  }

  .float--a {
    left: -.5rem;
    top: 5%;
  }

  .float--b {
    right: -.5rem;
  }

  .pip {
    left: -.5rem;
    bottom: 3.75rem;
    width: 7.5rem;
    padding: .3rem;
    border-radius: 1.1rem;
  }

  .pip__video {
    border-radius: .8rem;
  }

  .pip__badge {
    left: .6rem;
    top: .6rem;
    font-size: .62rem;
  }

  .pip__expand {
    right: .6rem;
    bottom: .6rem;
    width: 1.5rem;
    height: 1.5rem;
  }

  .float {
    font-size: .82rem;
    padding: .55rem .85rem;
  }

  .facts,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Terminal: smaller text so ~40 columns fit, a 16px input so iOS doesn't
     zoom on focus, and quick commands as one swipeable row. */
  .term {
    font-size: .78rem;
  }

  .term__body {
    height: clamp(19rem, 62vh, 26rem);
    padding: .85rem .9rem 1rem;
  }

  .term__input {
    font-size: 16px;
  }

  .term__lights i {
    width: .65rem;
    height: .65rem;
  }

  .term__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: .15rem var(--gutter);
  }

  .term__chips::-webkit-scrollbar {
    display: none;
  }

  .chipBtn {
    flex-shrink: 0;
  }

  .qa summary {
    padding: 1rem 1.1rem;
    font-size: 1.18rem;
  }

  .qa p {
    padding: 0 1.1rem 1.1rem;
  }
}

/* --------------------------------------------------------- 16. MOTION/PRINT */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .blob,
  .spotlight,
  .backdrop__sky,
  .float,
  .dot,
  .pip__live {
    animation: none !important;
  }

  .spotlight,
  .cursor,
  .cursorRing {
    display: none;
  }

  .marquee__track {
    animation: none !important;
  }

  .marquee {
    flex-wrap: wrap;
  }

  .marquee__track[aria-hidden] {
    display: none;
  }

  .js .name__ch {
    animation: none;
  }

  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js [data-tilt] {
    transform: none !important;
  }
}

@media print {
  .nav,
  .viewer,
  .skip,
  .backdrop,
  .progress,
  .marquee,
  .float,
  .hero__actions,
  .contact__actions,
  #terminal {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .glass {
    background: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: 1px solid #ccc;
  }

  .js .rv {
    opacity: 1;
    transform: none;
  }

  .sec,
  .work__item,
  .svc__item {
    break-inside: avoid;
  }
}
