/* Self-hosted Google Fonts (OFL), Latin subset: Instrument Serif for display, Manrope for text. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #0049b7;
  /* The pill's height, its gap from the top and the space below it before the hero card. */
  --nav-bar: 3.875rem;
  --nav-top: clamp(0.75rem, 2.15vw, 2rem);
  --nav-gap: clamp(1.5rem, 4.2vw, 4rem);
  /* The blue frame around the hero card and the content sheet. */
  --frame: 5vw;
  --radius: clamp(1.25rem, 3.3vw, 3rem);
  --paper: #e9e8e5;
  --ivory: #f3f0ec;
  --pearl: #ebe5ef;
  --lavender: #c9b6e9;
  --violet: #6c40a6;
  --ink: #17141a;
  --muted: #655f6b;
  --line: rgba(23, 20, 26, 0.18);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #0049b6;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

::selection {
  color: #fff;
  background: var(--violet);
}

:focus-visible {
  outline: 2px solid #7f4bb8;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/*
 * The page's blue gradient, fixed behind everything: the hero's frame, and the sides of the
 * content sheet as it scrolls.
 */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    /* Light from the top, right of centre, falling off fast towards the top-right corner. */
    radial-gradient(26% 30% at 100% 0%, rgba(0, 70, 178, 0.9), rgba(0, 70, 178, 0)),
    radial-gradient(90% 40% at 74% 8%, rgba(225, 236, 255, 0.46), rgba(225, 236, 255, 0.18) 50%, rgba(225, 236, 255, 0)),
    /* A long glow down the right edge, brightest low down; a softer one high on the left. */
    radial-gradient(9% 50% at 100% 84%, rgba(225, 236, 255, 0.34), rgba(225, 236, 255, 0)),
    radial-gradient(12% 48% at 0% 15%, rgba(225, 236, 255, 0.16), rgba(225, 236, 255, 0)),
    linear-gradient(180deg, #0a4db8, #0049b6);
}

/*
 * Pill navigation: wordmark and menu button, centred over the page. The blue pill itself
 * grows downward into the menu (rows 0fr -> 1fr). Its radius is half the bar height, so
 * it is a pill when closed and a rounded panel when open.
 *
 * It is frosted blue glass: translucent blue (a shade deeper than --blue, so it reads as
 * --blue over the off-white page) over a blurred backdrop, a sheen across the
 * top of the bar (a fixed height, so the open panel doesn't stretch it), a lit top edge,
 * a shaded lower body and a soft shadow lifting it off the page.
 */
.site-header {
  --bar: var(--nav-bar);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 18, 60, 0.3), inset 0 -0.75rem 1.5rem -0.5rem rgba(0, 22, 75, 0.35);
  position: fixed;
  z-index: 100;
  top: var(--nav-top);
  left: 50%;
  border-radius: calc(var(--bar) / 2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05) calc(var(--bar) * 0.5), rgba(255, 255, 255, 0) var(--bar)),
    rgba(0, 62, 170, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--glass-edge), 0 0.6rem 1.5rem rgba(0, 40, 110, 0.22), 0 1px 3px rgba(0, 30, 80, 0.18);
  transform: translateX(-50%);
  transition: box-shadow 300ms ease, background-color 300ms ease;
}

.site-header.is-open {
  background-color: rgba(0, 62, 170, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--glass-edge), 0 1.5rem 3rem rgba(0, 28, 80, 0.28), 0 2px 6px rgba(0, 30, 80, 0.16);
}

/* Without backdrop blur, see-through blue would be hard to read over the splash. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .site-header.is-open { background-color: var(--blue); }
}

.nav-pill {
  display: flex;
  height: var(--bar);
  padding: 0.375rem 0.5rem 0.375rem 2.4rem;
  align-items: center;
  /* Fixed, so the open menu is always wide enough for its longest line. Owner, 2026-11-15: the
     full name "Anjni Raol Singh" and the pill 10% longer than it was with "Anjni Singh"
     (367 -> 404 px), so the gap went from 6.25rem to 4.05rem. */
  gap: 4.05rem;
}

.brand {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 22, 70, 0.3);
}

/* A raised paper button set into the glass. */
.menu-toggle {
  display: grid;
  width: 3.875rem;
  height: 100%;
  padding: 0;
  border: 0;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7f6f3, var(--paper) 55%, #d9d7d1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 1px rgba(0, 30, 80, 0.16),
    0 1px 2px rgba(0, 22, 70, 0.35), 0 3px 8px rgba(0, 22, 70, 0.18);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.menu-toggle:active {
  transform: scale(0.96);
  box-shadow: inset 0 1px 2px rgba(0, 30, 80, 0.2), 0 1px 1px rgba(0, 22, 70, 0.3);
}

.menu-icon {
  display: grid;
  width: 2.45rem;
  gap: 0.4rem;
}

.menu-icon i {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--blue);
  transition: transform 250ms ease, opacity 200ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(calc(0.4rem + 2px)) rotate(35deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(calc(-0.4rem - 2px)) rotate(-35deg); }

.site-header :focus-visible {
  outline-color: var(--paper);
  outline-offset: 3px;
}

.menu-toggle:focus-visible {
  outline-color: var(--blue);
}

/* width 0 + min-width 100%: fills the pill without making the closed pill wider. */
.nav-drawer {
  display: grid;
  width: 0;
  min-width: 100%;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-open .nav-drawer {
  grid-template-rows: 1fr;
}

.primary-nav {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 0s linear 420ms;
}

.site-header.is-open .primary-nav {
  opacity: 1;
  visibility: visible;
  transition: opacity 280ms ease 100ms, visibility 0s;
}

.nav-inner {
  margin: 0 1.1rem;
  padding: 0.4rem 1.3rem 1.5rem;
  border-top: 1px solid rgba(233, 232, 229, 0.2);
}

.nav-label {
  margin: 1rem 0 0.3rem;
  color: rgba(233, 232, 229, 0.6);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: flex;
  min-height: 2.5rem;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.nav-list small {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.55;
}

.nav-list a:hover span,
.nav-list a:focus-visible span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.nav-list-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
}

.nav-list-row a {
  font-size: 1.4rem;
}

.nav-mail {
  display: inline-block;
  margin-top: 1rem;
  color: rgba(233, 232, 229, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.nav-mail:hover {
  color: var(--paper);
}

/*
 * Hero: a rounded off-white card framed by a blue gradient, after the homepage mockup. The card
 * starts below a blue band that holds the pill (--band) and runs on below the first screen
 * to just past the bottom of the splash (--card-h, --peek). The hero scrolls that far, then
 * holds while the content sheet rolls up over it.
 *
 * In the card: Anjni's splash render, a square image whose background is --paper.
 * --art is its size: 1.8255 x the card's visible height (1758 px at 1446 x 1087 with the
 * mockup's 124 px band), never wider than 150vw. --pull lifts it above the card's top edge
 * and --nudge shifts it right, both as fractions of --art; the strap's tip ends up 2.9% of
 * --art above the card. The top of the splash, cut out (hero-splash-top*.webp,
 * design/source/cutout-hero.py), is laid over the blue band in the same place, so the strap
 * breaks out over the card's top edge.
 */
.hero {
  --band: calc(var(--nav-top) + var(--nav-bar) + var(--nav-gap));
  /* --scale enlarges the splash past the mockup's size (1 = mockup) so its crown reaches,
     and is cut off by, the bottom of the card; the card's length stays set by the mockup size. */
  --scale: 1.08;
  --art: calc(min(150vw, (100vh - var(--band)) * 1.8255) * var(--scale));
  --art: calc(min(150vw, (100svh - var(--band)) * 1.8255) * var(--scale));
  --pull: 0.1849;
  --nudge: 0.025;
  /* The card is at least a screen tall (plus 2.5rem past the fold), and ends where the red
     line in the 2026-11-12 screenshot cuts the crown: just under its right spike, above the
     highlight on its base (row 1720 of 2000, --cut). --peek is how far it runs past the
     first screen. */
  --cut: 0.86;
  --card-h: max(100vh - var(--band) + 2.5rem, var(--art) * (var(--cut) - var(--pull)));
  --card-h: max(100svh - var(--band) + 2.5rem, var(--art) * (var(--cut) - var(--pull)));
  --peek: calc(var(--card-h) - (100svh - var(--band)));
  /* Scrolls until its bottom edge meets the bottom of the screen, then holds there while the
     content sheet slides up over it. */
  position: sticky;
  top: calc(-1 * (var(--peek) + var(--frame)));
  z-index: 0;
  height: calc(var(--band) + var(--card-h) + var(--frame));
  overflow: hidden;
}

.hero-card {
  position: absolute;
  top: var(--band);
  right: var(--frame);
  left: var(--frame);
  height: var(--card-h);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
}

/* Same placement in both layers. */
.hero-art,
.hero-art-top {
  position: absolute;
  left: calc(50% - var(--art) * (0.5 - var(--nudge)));
  width: var(--art);
  max-width: none;
  height: auto;
}

.hero-art {
  top: calc(var(--art) * var(--pull) * -1);
}

/* The blue band above the card: shows only the part of the cut-out above the card's edge. */
.hero-break {
  position: absolute;
  top: 0;
  right: var(--frame);
  left: var(--frame);
  height: var(--band);
  overflow: hidden;
  pointer-events: none;
}

.hero-art-top {
  top: calc(var(--band) - var(--art) * var(--pull));
}

/* WebGL copy of the hero image, laid over it and shown only while ripples run (hero-ripple.js). */
.hero-ripple {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

/* "Let's Dive In": an invitation to scroll, bottom right of the card. */
.hero-cta {
  position: absolute;
  right: calc(var(--frame) * 0.7);
  bottom: calc(var(--peek) + 1.4rem);
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: var(--blue);
}

.hero-cta-label {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.hero-cta-ring {
  display: block;
  width: 4.625rem;
  height: 3.75rem;
  border: 1.5px solid currentColor;
  border-radius: 42% / 46%; /* a soft, slightly squared oval */
  transition: background-color 250ms ease, color 250ms ease;
}

.hero-cta-ring svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-cta-arrow {
  transition: transform 250ms ease;
}

.hero-cta:hover .hero-cta-ring,
.hero-cta:focus-visible .hero-cta-ring {
  background: var(--blue);
  color: var(--paper);
}

.hero-cta:hover .hero-cta-arrow,
.hero-cta:focus-visible .hero-cta-arrow {
  transform: translateY(3px);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

/* Portrait: centre the splash across the card (it sits at 45.5% of the image width), and
   place it a little above the middle of the card's visible height (the splash's middle is
   55.4% down the image), leaving room for Let's Dive In. */
@media (orientation: portrait) {
  .hero { --scale: 1; --nudge: 0.0445; }

  .hero-art { top: calc((100vh - var(--band)) * 0.42 - var(--art) * 0.554); top: calc((100svh - var(--band)) * 0.42 - var(--art) * 0.554); }
  .hero-art-top { top: calc((100vh - var(--band)) * 0.42 - var(--art) * 0.554 + var(--band)); top: calc((100svh - var(--band)) * 0.42 - var(--art) * 0.554 + var(--band)); }
}

@media (max-width: 560px) {
  .hero-cta { right: var(--frame); bottom: calc(var(--peek) + 1rem); }
  .hero-cta-label { font-size: 1.2rem; }
  .hero-cta-ring { width: 3.7rem; height: 3rem; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/*
 * The content after the hero: an off-white sheet inside the same blue frame as the hero card.
 * It slides up over the held hero, all the way to the top under the pill, and runs to the end
 * of the page. Sections keep their own backgrounds inside it.
 */
.sheet {
  position: relative;
  z-index: 1;
  margin: 0 var(--frame) var(--frame);
  overflow: hidden;
  overflow: clip;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 -0.75rem 2.5rem rgba(0, 25, 80, 0.2);
}

.work-section {
  position: relative;
  z-index: 0;
  padding: clamp(8rem, 14vw, 14rem) 2.2rem clamp(7rem, 10vw, 11rem);
  overflow: hidden;
}

/* Like the hero: once its bottom edge meets the bottom of the screen, the work section holds
   and the blue contact panel rolls up over it. script.js measures its height (--work-h) and
   adds .is-held; without that it simply scrolls. */
.work-section.is-held {
  position: sticky;
  top: calc(100vh - var(--work-h));
  top: calc(100svh - var(--work-h));
}

/*
 * Welcome: the opening of the content sheet, after the 2026-11-12 mockup. A centred column
 * in blue Instrument Serif; at 1446 px wide the text is 35 px with 43 px lines, and the
 * 28.8em column breaks the lines where the mockup does. WELCOME. takes the section-title
 * size (shared rule below), centred.
 */
.welcome {
  max-width: 28.8em;
  margin: 0 auto clamp(4rem, 7.9vw, 7.2rem);
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.43vw, 2.6rem);
}

.welcome p {
  margin: 0;
  font-style: italic;
  line-height: 1.216;
  text-wrap: pretty;
}

.welcome p + p {
  margin-top: 1.216em;
}

.eyebrow {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.welcome h2,
.archive-intro h2,
.lab-header h2,
.about-content h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(6rem, 11vw, 12.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.86; /* Instrument Serif's capitals are 0.72em tall */
  text-transform: uppercase;
}

.welcome h2 {
  margin-bottom: clamp(1.75rem, 3.4vw, 3.25rem);
  text-align: center;
}

.archive-intro h2 em,
.lab-header h2 em,
.about-content h2 em,
.contact-section h2 em {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.6em;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 0.8;
  text-transform: none;
}

.project-gallery {
  border-top: 1px solid var(--line);
}

.project-card {
  position: relative;
  display: grid;
  min-height: 13rem;
  padding: 2.2rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  /* label | title (its own width) | side slot (description, or the pill photo on hover) | arrow */
  grid-template-columns: 14% max-content minmax(0, 1fr) 4rem;
  align-items: center;
  isolation: isolate;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding-right: 1.25rem; /* long labels wrap rather than touch the title */
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.project-card h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--blue);
  font-family: var(--serif);
  /* 7vw, but smaller on narrow laptops so the longest title, "DIGITAL Product Creation"
     (6.3em), stays on one line in its column. */
  font-size: clamp(2.8rem, min(7vw, 10.4vw - 2.9rem), 8.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.86;
  text-transform: uppercase;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), color 250ms ease;
}

.project-card h3 em {
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.66em;
  text-transform: none;
}

.project-side {
  position: relative;
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding-left: 2.5rem; /* keeps the description clear of a long title */
}

.project-desc {
  max-width: 22rem;
  margin: 0 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
  transition: opacity 250ms ease;
}

.project-arrow {
  position: relative;
  z-index: 2;
  justify-self: end;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 2.2rem;
  transition: transform 350ms ease;
}

/* On hover the description gives way to a pill of the project's photo, filling the slot
   between the title and the arrow (up to 31rem wide), growing out from the arrow side. */
.project-art {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 1rem;
  width: min(100% - 4rem, 31rem);
  height: calc(100% + 2.2rem);
  overflow: hidden;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-50%) scale(0.82);
  transform-origin: right center;
  transition: opacity 350ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-art::before,
.project-art::after {
  position: absolute;
  inset: 0;
  content: "";
}

.project-art::before {
  z-index: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(26, 14, 31, 0.16));
}

.project-art picture { display: contents; }

.project-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 350ms ease;
}

.project-art::after {
  inset: 10%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 42% 58% 40% 60% / 57% 38% 62% 43%;
  box-shadow: inset 1rem 1rem 3rem rgba(255, 255, 255, 0.35);
  animation: art-spin 12s linear infinite;
}

.art-orbit {
  position: absolute;
  z-index: 2;
  inset: 22% -10%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  transform: rotate(28deg);
}

.art-plane {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: -10%;
  width: 60%;
  height: 80%;
  border-radius: 55% 45% 30% 70%;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(8px);
  transform: rotate(-24deg);
}

.concept-tag {
  display: none; /* the arrow says it's a link; the tag only added clutter */
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.5rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tone-golf { --tone-a: #d5dfc6; --tone-b: #7c9180; }
.tone-kali { --tone-a: #d5b6e9; --tone-b: #924fe4; }
.tone-print { --tone-a: #f0c7b5; --tone-b: #8f455a; }
.tone-ai { --tone-a: #b8d9ee; --tone-b: #5948b3; }
.tone-collab { --tone-a: #e8d4a8; --tone-b: #be706f; }

@keyframes art-spin {
  to { transform: rotate(360deg); }
}

.project-card:hover .project-art,
.project-card:focus-visible .project-art {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.project-card:hover .project-art img,
.project-card:focus-visible .project-art img {
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.04);
}

.project-card:hover h3,
.project-card:focus-visible h3 {
  color: var(--blue);
  transform: translateX(0.8rem);
}

.project-card:hover .project-desc,
.project-card:focus-visible .project-desc {
  opacity: 0;
}

.project-card:hover .project-arrow,
.project-card:focus-visible .project-arrow {
  transform: rotate(45deg);
}

.swipe-hint {
  display: none;
}

/*
 * Gallery: six portrait images (3:4) after the project list, three across in two rows.
 * When a card is about a third on screen and its photo has loaded, it rises 6rem and
 * settles with a soft spring; cards arriving together follow one another left to right
 * (script.js adds .is-in and the delay, and starts loading the photos early).
 */
.work-gallery {
  display: grid;
  margin-top: clamp(4rem, 8vw, 8rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.75rem);
}

.work-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: clamp(0.75rem, 1.2vw, 1.25rem);
  background: rgba(0, 73, 183, 0.06);
  aspect-ratio: 3 / 4;
}

.work-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.js .work-gallery-item {
  opacity: 0;
  transform: translateY(6rem) scale(0.96);
  transition: opacity 700ms ease, transform 1300ms cubic-bezier(0.34, 1.5, 0.64, 1);
}

/* A soft spring: overshoots ~11%, dips ~1% back, settles. */
@supports (transition-timing-function: linear(0, 1)) {
  .js .work-gallery-item {
    transition-timing-function: ease, linear(0, 0.024, 0.088, 0.18, 0.288, 0.403, 0.52, 0.631, 0.733, 0.824, 0.902, 0.966, 1.016, 1.054, 1.081, 1.097, 1.105, 1.107, 1.103, 1.095, 1.085, 1.073, 1.06, 1.048, 1.036, 1.026, 1.016, 1.008, 1.002, 0.997, 0.993, 0.991, 0.989, 0.989, 0.989, 0.989, 0.99, 0.991, 0.993, 0.994, 0.995, 0.996, 0.998, 0.999, 1);
  }
}

.js .work-gallery-item.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .work-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .js .work-gallery-item { opacity: 1; transform: none; }
}

.archive-section {
  position: relative;
  z-index: 2;
  padding: clamp(7rem, 12vw, 13rem) 2.2rem clamp(8rem, 13vw, 14rem);
  color: #f5f0f7;
  background: #241b2b;
}

.archive-intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.archive-intro > .eyebrow {
  grid-column: 1 / 4;
  padding-top: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
}

.archive-intro > div {
  display: grid;
  grid-column: 4 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.45fr);
  align-items: end;
  gap: 3rem;
}

.archive-intro h2 {
  font-size: clamp(6rem, 11vw, 12.5rem);
}

.archive-intro p {
  max-width: 32rem;
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  line-height: 1.75;
}

.archive-stats {
  display: grid;
  margin: clamp(5rem, 9vw, 10rem) 0 clamp(5rem, 8vw, 8rem) 25%;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  grid-template-columns: repeat(3, 1fr);
}

.archive-stats p {
  display: flex;
  min-height: 11rem;
  margin: 0;
  padding: 1.5rem;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.archive-stats p:last-child { border-right: 0; }

.archive-stats strong {
  font-family: var(--serif);
  font-size: clamp(4rem, 7vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.8;
}

.archive-stats span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.archive-list {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.archive-loading {
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.archive-collection {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  scroll-margin-top: 5rem;
}

.archive-collection summary {
  position: relative;
  display: grid;
  min-height: 8.5rem;
  padding: 1.3rem 0;
  cursor: pointer;
  list-style: none;
  grid-template-columns: 7rem minmax(0, 1fr) minmax(10rem, 22%) 3rem;
  align-items: center;
  gap: 1rem;
}

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

.archive-index,
.archive-count {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.archive-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.6vw, 6.5rem);
  letter-spacing: -0.02em;
  line-height: 0.86;
  text-transform: uppercase;
}

.archive-name em {
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.7em;
  text-transform: none;
}

.archive-cover {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 18%;
  width: min(18rem, 24vw);
  height: 82%;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%) scale(0.82);
  transition: opacity 300ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.archive-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-toggle {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  place-items: center;
  font-size: 1.2rem;
  transition: transform 350ms ease, background 250ms ease;
}

.archive-collection summary:hover .archive-cover,
.archive-collection summary:focus-visible .archive-cover,
.archive-collection[open] .archive-cover {
  opacity: 0.76;
  transform: translateY(-50%) scale(1);
}

.archive-collection[open] .archive-toggle {
  color: var(--ink);
  background: #f2ecf5;
  transform: rotate(45deg);
}

.archive-grid {
  display: grid;
  padding: 2rem 0 5rem 7rem;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.8rem;
}

.archive-art {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  grid-column: span 4;
}

.archive-art:nth-child(5n + 1) { grid-column: span 7; }
.archive-art:nth-child(5n + 2) { grid-column: span 5; }

.archive-art img {
  width: 100%;
  min-height: 16rem;
  max-height: 42rem;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), filter 350ms ease;
}

.archive-art:hover img {
  filter: saturate(1.05);
  transform: scale(1.015);
}

.archive-art figcaption {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.28rem 0.42rem;
  color: var(--ink);
  background: rgba(247, 242, 248, 0.82);
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-section {
  position: relative;
  min-height: 100svh;
  padding: clamp(7rem, 11vw, 12rem) 2.2rem;
  overflow: hidden;
  color: #f5eff8;
  background: #17101e;
  isolation: isolate;
}

.lab-section::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(156, 98, 221, 0.1), transparent 44%),
    radial-gradient(circle at 84% 30%, rgba(130, 86, 190, 0.26), transparent 30%);
}

.lab-glow {
  position: absolute;
  z-index: -1;
  top: 30%;
  left: 45%;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: rgba(153, 94, 212, 0.18);
  filter: blur(85px);
  pointer-events: none;
  transition: background 500ms ease, transform 700ms ease;
}

.lab-section[data-active="materials"] .lab-glow { background: rgba(179, 116, 232, 0.28); transform: translate(-10%, -5%) scale(1.15); }
.lab-section[data-active="forms"] .lab-glow { background: rgba(99, 139, 218, 0.27); transform: translate(15%, 4%) scale(0.9); }
.lab-section[data-active="motion"] .lab-glow { background: rgba(230, 128, 179, 0.24); transform: translate(-4%, 14%) scale(1.3); }

.lab-header {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.lab-header .eyebrow {
  grid-column: 1 / 4;
  padding-top: 0.85rem;
}

.lab-header h2 {
  grid-column: 4 / -1;
}

.lab-stage {
  display: grid;
  max-width: 90rem;
  margin: clamp(5rem, 8vw, 9rem) auto 0;
  grid-template-columns: minmax(0, 0.82fr) minmax(20rem, 0.72fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 10rem);
}

.lab-figure {
  position: relative;
  margin: 0;
}

.lab-figure::before {
  position: absolute;
  z-index: 1;
  inset: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  content: "";
  pointer-events: none;
}

.lab-figure img {
  width: 100%;
  max-height: 74svh;
  object-fit: cover;
  box-shadow: 0 3rem 8rem rgba(0, 0, 0, 0.38);
  filter: saturate(0.9) contrast(1.02);
  transition: filter 500ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lab-section[data-active="materials"] .lab-figure img { filter: hue-rotate(-8deg) saturate(1.12); transform: scale(1.012); }
.lab-section[data-active="forms"] .lab-figure img { filter: hue-rotate(28deg) saturate(0.84); transform: scale(1.02) rotate(0.3deg); }
.lab-section[data-active="motion"] .lab-figure img { filter: hue-rotate(-30deg) saturate(1.18); transform: scale(1.025) rotate(-0.35deg); }

.lab-figure figcaption {
  display: flex;
  margin-top: 0.8rem;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.55rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lab-lede {
  max-width: 38rem;
  margin: 0 0 clamp(3rem, 6vw, 6rem);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 4rem);
  line-height: 1.08;
}

.lab-index {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.lab-index button {
  display: grid;
  width: 100%;
  min-height: 4.7rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: inherit;
  background: transparent;
  cursor: pointer;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  text-align: left;
  transition: padding 250ms ease, background 250ms ease;
}

.lab-index button span {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.lab-index button i {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: normal;
}

.lab-index button:hover,
.lab-index button:focus-visible,
.lab-index button.is-active {
  padding: 0 0.85rem;
  background: rgba(255, 255, 255, 0.08);
}

.lab-response {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.about-section {
  position: relative;
  display: grid;
  min-height: 90svh;
  padding: clamp(7rem, 11vw, 12rem) 2.2rem;
  overflow: hidden;
  background: var(--paper);
  grid-template-columns: 0.42fr 1fr;
  align-items: center;
  gap: 3rem;
}

.about-number {
  font-family: var(--serif);
  font-size: clamp(15rem, 36vw, 42rem);
  letter-spacing: -0.08em;
  line-height: 0.7;
  opacity: 0.13;
  transform: translateX(-10%);
}

.about-number span {
  font-family: var(--serif);
  font-size: 0.28em;
  vertical-align: top;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 70rem;
}

.about-content h2 {
  margin: clamp(3rem, 6vw, 6rem) 0;
  color: var(--blue);
  font-size: clamp(5.3rem, 10vw, 12rem);
}

.about-copy {
  display: grid;
  max-width: 52rem;
  margin-left: auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about-copy p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.8;
}

.contact-section {
  position: relative;
  z-index: 1;
  padding: clamp(7rem, 12vw, 14rem) 2.2rem 2.2rem;
  border-radius: var(--radius) var(--radius) 0 0; /* the sheet rounds its bottom */
  color: var(--paper);
  background: var(--blue);
  box-shadow: 0 -0.75rem 2.5rem rgba(0, 25, 80, 0.2); /* same lift as the sheet over the hero */
}

.contact-section :focus-visible {
  outline-color: var(--paper);
}

.contact-section > .eyebrow {
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.contact-section h2 {
  text-wrap: balance; /* the shared section-title size; balance keeps narrow screens tidy */
}

.contact-link {
  display: flex;
  max-width: 70rem;
  min-height: 7rem;
  margin: clamp(5rem, 9vw, 10rem) 0 0; /* lined up on the left under the heading */
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  align-items: center;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 4.5rem);
  transition: padding 250ms ease, background 250ms ease;
}

.contact-link i {
  font-style: normal;
}

.contact-link:hover,
.contact-link:focus-visible {
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.06);
}

/* Instagram, LinkedIn and Behance, lined up under the email address. */
.contact-social {
  display: flex;
  max-width: 70rem;
  margin: 2rem 0 0;
  padding: 0;
  gap: 0.75rem;
  list-style: none;
}

.contact-social a {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(233, 232, 229, 0.55);
  border-radius: 50%;
  color: var(--paper);
  transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease;
}

.contact-social a:hover,
.contact-social a:focus-visible {
  border-color: var(--paper);
  color: var(--blue);
  background: var(--paper);
}

.contact-social svg {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
}

.contact-section footer {
  display: grid;
  margin-top: clamp(6rem, 12vw, 13rem);
  grid-template-columns: repeat(3, 1fr);
  color: rgba(233, 232, 229, 0.75);
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-section footer span:nth-child(2) { text-align: center; }
.contact-section footer a { justify-self: end; }

@media (max-width: 900px) {
  .work-section {
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .project-gallery {
    display: grid;
    margin: 0 -1.1rem;
    padding: 0 1.1rem 1.5rem;
    overflow-x: auto;
    border: 0;
    grid-auto-columns: min(82vw, 26rem);
    grid-auto-flow: column;
    gap: 0.75rem;
    scroll-padding-left: 1.1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .project-gallery::-webkit-scrollbar { display: none; }

  .project-card {
    display: flex;
    min-height: 67svh;
    padding: 1rem;
    border: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    color: #fff;
    scroll-snap-align: start;
  }

  .project-art {
    z-index: -1;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    opacity: 1;
    transform: none;
  }

  .project-art::before {
    background: linear-gradient(180deg, transparent 32%, rgba(19, 12, 24, 0.78));
  }

  /* The side slot steps aside: the photo fills the whole card, the description sits below
     the title and stays put when tapped. */
  .project-side { position: static; display: block; align-self: auto; }
  .project-card:hover .project-desc,
  .project-card:focus-visible .project-desc { opacity: 1; }

  .project-card:hover .project-art,
  .project-card:focus-visible .project-art { transform: none; }

  .project-meta {
    width: 100%;
    margin-bottom: auto;
    flex-direction: row;
    justify-content: space-between;
  }

  .project-card h3 {
    margin-bottom: 1.4rem;
    font-size: clamp(4.4rem, 19vw, 7rem);
  }

  .project-desc {
    max-width: 92%;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
  }

  .project-arrow {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    color: #fff;
  }

  /* Here the titles sit on the photo, so they stay white, tapped or not. */
  .project-card h3,
  .project-card:hover h3,
  .project-card:focus-visible h3 { color: #fff; }

  .swipe-hint {
    display: flex;
    margin: 1.4rem 0 0;
    align-items: center;
    gap: 1rem;
    font-size: 0.57rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .swipe-hint i {
    width: 4rem;
    height: 1px;
    background: currentColor;
  }

  .archive-section {
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .archive-intro {
    display: block;
  }

  .archive-intro > .eyebrow {
    padding: 0 0 3rem;
  }

  .archive-intro > div {
    display: block;
  }

  .archive-intro h2 {
    margin-bottom: 3rem;
  }

  .archive-stats {
    margin: 4rem 0;
  }

  .archive-stats p {
    min-height: 8.5rem;
    padding: 1rem;
  }

  /* The count sits under the name, so long names ("ILLUSTRATION") get the full width. */
  .archive-collection summary {
    min-height: 7rem;
    grid-template-columns: 2rem minmax(0, 1fr) 2.5rem;
    grid-template-areas:
      "index name toggle"
      ". count toggle";
    row-gap: 0.5rem;
  }

  .archive-index { grid-area: index; }
  .archive-name { grid-area: name; }
  .archive-count { grid-area: count; }
  .archive-toggle { grid-area: toggle; }

  .archive-cover {
    display: none;
  }

  .archive-name {
    font-size: clamp(1.8rem, 9vw, 4.5rem);
  }

  .archive-grid {
    padding: 1rem 0 3rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }

  .archive-art,
  .archive-art:nth-child(5n + 1),
  .archive-art:nth-child(5n + 2) {
    grid-column: span 1;
  }

  .archive-art:nth-child(3n + 1) {
    grid-column: span 2;
  }

  .archive-art img {
    min-height: 12rem;
    max-height: 32rem;
  }

  .lab-section,
  .about-section,
  .contact-section {
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .lab-header { display: block; }
  .lab-header .eyebrow { margin-bottom: 3rem; padding: 0; }

  .lab-stage {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .lab-figure { width: min(92%, 36rem); }

  .about-section {
    display: block;
    min-height: auto;
  }

  .about-number {
    position: absolute;
    top: 6rem;
    left: -2rem;
    font-size: 22rem;
  }

  .about-content { position: relative; }
  .about-content h2 { margin-top: 13rem; }

  .contact-section footer {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .contact-section footer span:nth-child(2) { display: none; }
}

@media (max-width: 560px) {
  :root { --nav-bar: 3.25rem; }

  .nav-pill {
    padding: 0.3rem 0.35rem 0.3rem 1.6rem;
    gap: 1.5rem; /* the full name needs the room: 245 -> 283 px on phones (2.5rem with "Anjni Singh") */
  }

  .brand { font-size: 1.75rem; }
  .menu-toggle { width: 3.3rem; }
  .menu-icon { width: 2rem; gap: 0.34rem; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(calc(0.34rem + 2px)) rotate(35deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(calc(-0.34rem - 2px)) rotate(-35deg); }
  .nav-inner { margin: 0 0.6rem; padding: 0.2rem 1rem 1.2rem; }
  .nav-list a { min-height: 2.2rem; font-size: 1.3rem; }
  .nav-list small { display: none; }
  .nav-list-row { display: block; }
  .nav-list-row a { font-size: 1.3rem; }

  /* 20vw: the widest word, "WELCOME." (3.81em in Instrument Serif), fits a 320 px phone. */
  .welcome h2,
  .archive-intro h2,
  .lab-header h2,
  .about-content h2 { font-size: 20vw; }

  .archive-stats strong { font-size: 17vw; }
  .archive-stats span { font-size: 0.46rem; }

  .lab-figure { width: 100%; }

  .lab-figure figcaption {
    flex-direction: column;
    gap: 0.4rem;
  }

  .about-copy {
    grid-template-columns: 1fr;
  }

  .contact-section h2 { font-size: 18vw; } /* "TOGETHER?" (4.24em) fits a 320 px phone */

  .contact-link {
    min-height: 5.5rem;
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}
