/* =========================================================================
   Strapps Apps
   Portal system: warm paper, ink, one teal interaction accent, project art
   as the only colour source. Light and dark are cut from the same palette.
   Shape rule: media and panels use 18px, controls use a full pill.
   ========================================================================= */

@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/outfit-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  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: 'Outfit';
  src: url('../assets/fonts/outfit-var-latinext.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@property --reveal-y {
  syntax: '<length>';
  inherits: false;
  initial-value: 18px;
}

:root {
  color-scheme: light dark;

  --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SFMono-Regular', 'Cascadia Code', 'Roboto Mono', ui-monospace, monospace;

  --paper: #f2f0e7;
  --paper-raised: #faf7ef;
  --paper-soft: #e9e7dc;
  --paper-deep: #e0ddd1;
  --ink: #172620;
  --ink-soft: #4f5e58;
  --ink-faint: #58665f;
  --line: #cbd2c7;
  --line-strong: #aab5aa;
  --accent: #22695f;
  --accent-strong: #164d46;
  --accent-soft: #dce9e3;
  --accent-ink: #f7fbf7;
  --coral: #df826e;
  --focus: #2c7b70;
  --error: #a4402f;
  --grain: 0.035;
  --shadow-hue: 27 47 39;

  --shell: 1380px;
  --gutter: clamp(1.15rem, 4vw, 3.4rem);
  --section-y: clamp(4.8rem, 9vw, 8.5rem);
  --radius: 18px;
  --radius-small: 10px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);

  --z-grain: 60;
  --z-modal: 50;
  --z-menu: 40;
  --z-header: 30;
  --z-skip: 70;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #111815;
    --paper-raised: #18221e;
    --paper-soft: #1b2823;
    --paper-deep: #22312b;
    --ink: #f0ede3;
    --ink-soft: #b3bdb7;
    --ink-faint: #8c9992;
    --line: #34433c;
    --line-strong: #4e5e55;
    --accent: #83c9be;
    --accent-strong: #a5ded4;
    --accent-soft: #203a34;
    --accent-ink: #10201b;
    --coral: #e7a08d;
    --focus: #a5ded4;
    --error: #f0a08e;
    --grain: 0.055;
    --shadow-hue: 0 0 0;
  }
}

[data-theme='dark'] {
  --paper: #111815;
  --paper-raised: #18221e;
  --paper-soft: #1b2823;
  --paper-deep: #22312b;
  --ink: #f0ede3;
  --ink-soft: #b3bdb7;
  --ink-faint: #8c9992;
  --line: #34433c;
  --line-strong: #4e5e55;
  --accent: #83c9be;
  --accent-strong: #a5ded4;
  --accent-soft: #203a34;
  --accent-ink: #10201b;
  --coral: #e7a08d;
  --focus: #a5ded4;
  --error: #f0a08e;
  --grain: 0.055;
  --shadow-hue: 0 0 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

html.dialog-open {
  overflow: hidden;
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.shell {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 1rem;
  z-index: var(--z-skip);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.055em;
}

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: var(--paper);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand__word {
  display: flex;
  align-items: baseline;
  gap: 0.28rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.brand__word strong {
  font-weight: 700;
}

.brand__word span {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 2.5vw, 2.4rem);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding-block: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.89rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

.site-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0.1rem;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex: 0 0 auto;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.icon-button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--paper-raised);
}

.icon-button:active {
  transform: scale(0.96);
}

.icon-button .icon {
  width: 17px;
  height: 17px;
}

.menu-toggle {
  display: none;
}

.menu-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 17px;
}

.menu-toggle__bars i {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms var(--ease-out);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars i:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars i:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding-block: clamp(2.8rem, 5.5vw, 5.6rem) clamp(3.2rem, 6vw, 6rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5.5rem);
}

.hero__copy {
  max-width: 46rem;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(1.4rem, 2.6vw, 2.1rem);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex: 0 0 auto;
}

.hero__title {
  max-width: 13ch;
  font-size: clamp(3.3rem, 6.4vw, 6.5rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.072em;
}

.hero__title span {
  display: block;
}

.hero__title span:last-child {
  color: var(--accent);
}

.hero__lede {
  max-width: 33rem;
  margin-top: clamp(1.4rem, 2.4vw, 2.1rem);
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 200ms var(--ease-out),
    color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button--primary:hover {
  background: var(--accent-strong);
}

.button--quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button--quiet:hover {
  border-color: var(--line-strong);
  background: var(--paper-raised);
}

.button__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-ink) 15%, transparent);
  font-family: var(--font-mono);
  font-size: 0.83rem;
  transition: transform 200ms var(--ease-out);
}

.button:hover .button__arrow {
  transform: translate(2px, -2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

.text-link:hover {
  color: var(--accent);
}

.text-link span {
  font-family: var(--font-mono);
  transition: transform 180ms var(--ease-out);
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

/* The hero contact sheet. Labels sit below images, never on top. */
.hero-board {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-board::before {
  content: '';
  position: absolute;
  top: 0;
  right: 11%;
  width: 54px;
  height: 15px;
  background: var(--coral);
  opacity: 0.75;
  transform: rotate(-6deg);
  z-index: 2;
  pointer-events: none;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.1rem);
  align-items: start;
}

.hero-tile {
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  transition: transform 300ms var(--ease-out);
}

.hero-tile:nth-child(1) {
  grid-column: span 7;
}

.hero-tile:nth-child(2) {
  grid-column: span 5;
}

.hero-tile:nth-child(3) {
  grid-column: span 5;
}

.hero-tile:nth-child(4) {
  grid-column: span 7;
}

.hero-tile:hover {
  transform: translateY(-4px);
}

.hero-tile__frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper-soft);
  box-shadow: 0 18px 45px -32px rgb(var(--shadow-hue) / 0.5);
}

.hero-tile:nth-child(1) .hero-tile__frame,
.hero-tile:nth-child(2) .hero-tile__frame {
  height: clamp(178px, 17vw, 250px);
}

.hero-tile:nth-child(3) .hero-tile__frame,
.hero-tile:nth-child(4) .hero-tile__frame {
  height: clamp(118px, 11vw, 160px);
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms var(--ease-out);
}

.hero-tile:nth-child(1) img {
  object-position: center 48%;
}

.hero-tile:nth-child(2) img {
  object-position: center 40%;
}

.hero-tile:hover img {
  transform: scale(1.045);
}

.hero-tile__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.28;
}

.hero-tile__label span:last-child {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.04em;
  text-align: right;
  white-space: nowrap;
}

/* --------------------------------------------------------------- index bar */
.index-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.index-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(14rem, 1.45fr);
  align-items: stretch;
}

.index-stat {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 1.1rem 0.4rem;
  color: var(--ink);
  text-decoration: none;
  border-right: 1px solid var(--line);
  transition: background-color 180ms var(--ease-out);
}

.index-stat:first-child {
  padding-left: 0;
}

.index-stat:hover {
  background: color-mix(in srgb, var(--accent-soft) 58%, transparent);
}

.index-stat__number {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 1;
}

.index-stat__label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
}

.index-strip__note {
  align-self: center;
  padding: 1.1rem clamp(0.8rem, 2vw, 1.6rem);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
  text-wrap: pretty;
}

/* --------------------------------------------------------------- catalogue */
.catalog {
  padding-block: var(--section-y) 0;
}

.catalog__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.65fr);
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(2rem, 4vw, 3.4rem);
}

.catalog__head h2 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.catalog__head p {
  max-width: 42ch;
  padding-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.catalog__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem 2rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter {
  min-height: 38px;
  padding: 0.52rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.filter:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter:active {
  transform: scale(0.98);
}

.filter[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.search-field {
  display: grid;
  gap: 0.4rem;
  width: min(100%, 19rem);
}

.search-field label {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.search-field input {
  width: 100%;
  height: 40px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  transition:
    border-color 180ms var(--ease-out),
    background-color 180ms var(--ease-out);
}

.search-field input::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

.search-field input:hover,
.search-field input:focus {
  border-color: var(--accent);
  background: var(--paper-raised);
}

.catalog__feedback {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1.7rem;
  padding-top: 0.85rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.025em;
}

.category {
  padding-top: clamp(3.2rem, 6vw, 5.5rem);
}

.category__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: clamp(1.4rem, 2.5vw, 2.4rem);
}

.category__head h2 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.category__head p {
  max-width: 58ch;
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.category__count {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.7rem) clamp(0.9rem, 1.8vw, 1.7rem);
  align-items: stretch;
}

.project-card {
  grid-column: span 4;
  min-width: 0;
}

.project-card[data-span='7'] {
  grid-column: span 7;
  --card-ratio: 1.75;
}

.project-card[data-span='6'] {
  grid-column: span 6;
  --card-ratio: 1.45;
}

.project-card[data-span='5'] {
  grid-column: span 5;
  --card-ratio: 1.25;
}

.project-card[data-span='4'] {
  grid-column: span 4;
  --card-ratio: 1.2;
}

.project-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.85rem;
  color: var(--ink);
  text-decoration: none;
}

.project-card__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--card-ratio, 1.2);
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: 0 22px 50px -38px rgb(var(--shadow-hue) / 0.5);
}

.project-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 0.11);
  border-radius: inherit;
  pointer-events: none;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.project-card__link:hover .project-card__media img {
  transform: scale(1.035);
}

/* A small set of real app screens is a cleaner, more honest cover for portrait
   tools than cropping their Play Store feature art into a square. */
.project-card__media--app {
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background: color-mix(in srgb, var(--project-accent) 13%, var(--paper-soft));
}

.project-card__media--app::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--project-accent) 24%, transparent);
  transform: translateX(-50%);
  z-index: -1;
}

.app-card__glow {
  position: absolute;
  right: 8%;
  bottom: -24%;
  width: 50%;
  height: 50%;
  border: 1px solid color-mix(in srgb, var(--project-accent) 48%, transparent);
  border-radius: 50%;
  z-index: -1;
}

.app-card__deck {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 86%;
  height: 86%;
}

.project-card__media--app .app-card__shot {
  width: auto;
  height: 92%;
  max-width: 34%;
  border-radius: 11px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgb(var(--shadow-hue) / 0.26));
  transition: transform 650ms var(--ease-out);
}

.project-card__media--app .app-card__shot--1 {
  height: 100%;
  transform: rotate(-2.2deg);
}

.project-card__media--app .app-card__shot--2 {
  height: 92%;
  transform: translateY(2.5%) rotate(1.4deg);
}

.project-card__media--app .app-card__shot--3 {
  height: 85%;
  transform: translateY(4%) rotate(3deg);
}

.project-card__link:hover .project-card__media--app .app-card__shot--1 {
  transform: rotate(-3.2deg) translateY(-1.5%);
}

.project-card__link:hover .project-card__media--app .app-card__shot--2 {
  transform: translateY(1%) rotate(2.2deg);
}

.project-card__link:hover .project-card__media--app .app-card__shot--3 {
  transform: translateY(2%) rotate(4deg);
}

.app-card__icon {
  position: absolute;
  left: 5%;
  bottom: 5%;
  width: clamp(36px, 4vw, 52px);
  height: clamp(36px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 11px;
  background: var(--paper-raised);
  box-shadow: 0 10px 24px rgb(var(--shadow-hue) / 0.2);
  z-index: 3;
}

.project-card__media--app .app-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__body {
  display: grid;
  gap: 0.46rem;
  padding-inline: 0.15rem;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.9rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.035em;
  text-transform: none;
}

.project-card__meta > span + span::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 0.9rem;
  vertical-align: middle;
  background: var(--line-strong);
}

.project-card__meta .is-live {
  color: var(--accent);
}

.project-card__title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-card h3 {
  font-size: clamp(1.32rem, 2vw, 2.05rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.project-card[data-span='7'] h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.55rem);
}

.project-card__arrow {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition:
    color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.project-card__link:hover .project-card__arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  transform: translate(2px, -2px);
}

.project-card__pitch {
  display: -webkit-box;
  max-width: 48ch;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category__empty,
.catalog__empty {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.catalog__empty {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

.catalog__empty h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.catalog__empty p {
  max-width: 42ch;
  color: var(--ink-soft);
}

.catalog__empty .button {
  margin-top: 0.7rem;
}

/* ----------------------------------------------------------------- studio */
.studio {
  margin-top: var(--section-y);
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
}

.studio__grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.studio__figure {
  position: relative;
  margin: 0;
  min-width: 0;
}

.studio__figure::before {
  content: '';
  position: absolute;
  inset: 10% 15% 14%;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(1px);
}

.studio__figure img {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  filter: drop-shadow(0 28px 35px rgb(var(--shadow-hue) / 0.17));
}

.studio__caption {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 31rem;
  margin: 1.2rem auto 0;
  padding-top: 0.8rem;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 80%, transparent);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.035em;
}

.studio__copy {
  max-width: 44rem;
}

.studio__copy h2 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 4.5vw, 4.8rem);
}

.studio__copy > p {
  max-width: 57ch;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.principles {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-strong);
}

.principle {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.principle h3 {
  font-family: var(--font-ui);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
}

.principle p {
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ---------------------------------------------------------------- contact */
.contact {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -8rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid color-mix(in srgb, var(--line-strong) 65%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.contact::after {
  content: '';
  position: absolute;
  right: 10%;
  bottom: 15%;
  width: 13rem;
  height: 13rem;
  border: 1px solid color-mix(in srgb, var(--coral) 45%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 54rem;
}

.contact h2 {
  max-width: 11ch;
  font-size: clamp(3rem, 6.4vw, 6.8rem);
  line-height: 0.92;
}

.contact__body {
  max-width: 44ch;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

/* ----------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(8rem, 0.45fr) minmax(8rem, 0.45fr);
  gap: 3rem;
  padding-block: clamp(2.6rem, 5vw, 4rem);
}

.footer-brand {
  max-width: 28rem;
}

.footer-brand__mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}

.footer-brand__mark img {
  width: 30px;
  height: 30px;
}

.footer-brand p {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h3 {
  margin-bottom: 1rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 0.58rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.025em;
}

.footer-base__right {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-base a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-base a:hover {
  color: var(--accent);
}

/* ----------------------------------------------------------- project pages */
.project-main {
  padding-bottom: var(--section-y);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.035em;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span[aria-hidden='true'] {
  color: var(--line-strong);
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(2.3rem, 5vw, 5rem);
  padding-block: clamp(2.2rem, 4.5vw, 4.8rem) clamp(3rem, 6vw, 6rem);
}

.project-hero__copy {
  min-width: 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: clamp(1.1rem, 2vw, 1.7rem);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.025em;
}

.project-meta__category {
  color: var(--ink-faint);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
}

.status-tag[data-status='live'] {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 70%, transparent);
  color: var(--accent);
}

.project-title {
  max-width: 12ch;
  font-size: clamp(3.1rem, 6.4vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
  overflow-wrap: anywhere;
}

.project-title--long {
  font-size: clamp(2.5rem, 5.2vw, 5.6rem);
}

.project-descriptor {
  margin-top: 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.project-pitch {
  max-width: 42ch;
  margin-top: 1.35rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2rem;
}

.project-actions__note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.45;
}

.project-actions__note::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.project-cover {
  margin: 0;
  min-width: 0;
}

.project-cover__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-soft);
  box-shadow: 0 32px 80px -48px rgb(var(--shadow-hue) / 0.65);
}

.project-cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-cover figcaption {
  margin-top: 0.65rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  line-height: 1.45;
}

.project-hero__wash {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 1.4rem;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--project-accent, var(--accent)), transparent);
}

.project-note {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.6rem;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--project-accent, var(--accent));
  background: var(--paper-soft);
  color: var(--ink-soft);
}

.project-note strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-note p {
  font-size: 0.84rem;
  line-height: 1.55;
}

.project-section {
  display: grid;
  grid-template-columns: minmax(11rem, 0.32fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.8rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}

.project-section__head {
  align-self: start;
}

.project-section h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
}

.project-section__head p {
  max-width: 24ch;
  margin-top: 0.75rem;
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.5;
}

.project-section--wide {
  display: block;
}

.project-section--wide .project-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.project-section--wide .feature-list {
  margin-top: 0;
}

.project-copy {
  max-width: 65ch;
}

.project-copy p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.72;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 0.4rem;
  border-top: 1px solid var(--line-strong);
}

.feature {
  min-width: 0;
  padding: 1.25rem 1.3rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.feature:nth-child(odd) {
  padding-right: 1.8rem;
  border-right: 1px solid var(--line);
}

.feature:nth-child(even) {
  padding-left: 1.8rem;
}

.feature-list--three {
  grid-template-columns: 1.06fr 0.88fr 1.06fr;
}

.feature-list--three .feature,
.feature-list--three .feature:nth-child(odd),
.feature-list--three .feature:nth-child(even) {
  padding: 1.25rem 1.35rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.feature-list--three .feature:first-child {
  padding-left: 0;
}

.feature-list--three .feature:last-child {
  padding-right: 0;
  border-right: 0;
}

.feature h3 {
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.feature p {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.project-gallery {
  padding-block: clamp(2.8rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  margin-bottom: 1.25rem;
}

.gallery-head h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
}

.gallery-head p {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.025em;
}

.gallery-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.gallery-item {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.gallery-item__frame {
  overflow: hidden;
  width: clamp(18rem, 38vw, 32rem);
  border-radius: 12px;
  background: var(--paper-soft);
}

.gallery-item[data-orientation='portrait'] .gallery-item__frame {
  width: clamp(11rem, 17vw, 15rem);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.gallery-item[data-orientation='portrait'] img {
  aspect-ratio: 9 / 16;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-item__caption {
  display: flex;
  gap: 0.5rem;
  max-width: 32rem;
  color: var(--ink-faint);
  font-size: 0.73rem;
  line-height: 1.4;
}

.gallery-item__caption span {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding-top: 0.1rem;
}

.project-sheet {
  padding-block: clamp(2.8rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}

.project-sheet h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem 1.5rem;
  margin: 0;
}

.spec {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.spec dt {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.035em;
}

.spec dd {
  margin: 0.3rem 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.spec dd a {
  text-decoration: none;
}

.spec dd a:hover {
  text-decoration: underline;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.platform-list span {
  display: inline-flex;
  padding: 0.18rem 0.48rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.4;
}

.project-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.pager-link {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 180ms var(--ease-out);
}

.pager-link:hover {
  background: var(--paper-raised);
}

.pager-link--next {
  text-align: right;
}

.pager-link__label {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.025em;
}

.pager-link__title {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  width: min(96vw, 76rem);
  max-width: none;
  max-height: 94dvh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #0d1412;
  color: #f2efe5;
  box-shadow: 0 40px 110px rgb(0 0 0 / 0.45);
}

.lightbox::backdrop {
  background: rgb(5 9 8 / 0.9);
  backdrop-filter: blur(8px);
}

.lightbox__inner {
  display: flex;
  flex-direction: column;
  max-height: 94dvh;
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.13);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.03em;
}

.lightbox__counter {
  color: #9fc7bf;
}

.lightbox__close {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  background: transparent;
  color: #f2efe5;
  font: inherit;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgb(255 255 255 / 0.1);
}

.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 0;
  padding: 0.9rem;
}

.lightbox__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.lightbox__image {
  width: auto;
  max-width: 100%;
  max-height: calc(94dvh - 10.5rem);
  border-radius: 10px;
  object-fit: contain;
}

.lightbox__arrow {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.06);
  color: #f2efe5;
  font-family: var(--font-mono);
  cursor: pointer;
}

.lightbox__arrow:hover {
  background: rgb(255 255 255 / 0.14);
}

.lightbox__arrow[hidden] {
  display: none;
}

.lightbox__caption {
  padding: 0 1.2rem 1rem;
  color: #b8c4be;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

/* ------------------------------------------------------------------- 404 */
.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--header-h));
  padding-block: var(--section-y);
}

.not-found__inner {
  max-width: 48rem;
}

.not-found h1 {
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.82;
}

.not-found h2 {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.not-found p {
  max-width: 40ch;
  margin-top: 1.2rem;
  color: var(--ink-soft);
}

/* ----------------------------------------------------------------- motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > *:nth-child(2) {
  transition-delay: 55ms;
}
.reveal-stagger > *:nth-child(3) {
  transition-delay: 110ms;
}
.reveal-stagger > *:nth-child(4) {
  transition-delay: 165ms;
}
.reveal-stagger > *:nth-child(5) {
  transition-delay: 220ms;
}

.hero-tile {
  animation: tile-in 900ms var(--ease-snap) both;
}

.hero-tile:nth-child(2) {
  animation-delay: 80ms;
}
.hero-tile:nth-child(3) {
  animation-delay: 160ms;
}
.hero-tile:nth-child(4) {
  animation-delay: 240ms;
}

@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(0.8deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero__grid {
    gap: 2.8rem;
  }

  .hero__title {
    font-size: clamp(3.1rem, 6.4vw, 5.4rem);
  }

  .project-card[data-span='7'],
  .project-card[data-span='6'],
  .project-card[data-span='5'],
  .project-card[data-span='4'] {
    grid-column: span 6;
    --card-ratio: 1.5;
  }

  .studio__grid {
    grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .brand__word span {
    display: none;
  }

  .brand__word {
    font-size: 1.02rem;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: var(--gutter);
    left: var(--gutter);
    display: grid;
    gap: 0;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-raised);
    box-shadow: 0 22px 55px -24px rgb(var(--shadow-hue) / 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 180ms var(--ease-out),
      visibility 180ms var(--ease-out),
      transform 180ms var(--ease-out);
  }

  .site-nav[data-open='true'] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.9rem 0.8rem;
    border-radius: 10px;
    color: var(--ink);
    font-size: 1rem;
  }

  .site-nav a:hover {
    background: var(--paper-soft);
  }

  .site-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero__grid,
  .project-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__grid {
    gap: 2.8rem;
  }

  .hero__copy {
    max-width: 40rem;
  }

  .hero__title {
    max-width: 12ch;
    font-size: clamp(3.5rem, 10.5vw, 6rem);
  }

  .hero-board {
    max-width: 48rem;
  }

  .hero-tile:nth-child(1) .hero-tile__frame,
  .hero-tile:nth-child(2) .hero-tile__frame {
    height: clamp(180px, 30vw, 240px);
  }

  .hero-tile:nth-child(3) .hero-tile__frame,
  .hero-tile:nth-child(4) .hero-tile__frame {
    height: clamp(120px, 20vw, 160px);
  }

  .catalog__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .catalog__head h2 {
    max-width: 15ch;
  }

  .catalog__head p {
    max-width: 52ch;
  }

  .index-strip__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .index-strip__note {
    grid-column: 1 / -1;
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
  }

  .studio__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio__figure {
    max-width: 28rem;
    margin-inline: auto;
  }

  .studio__caption {
    margin-inline: 0;
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 1.3fr) minmax(8rem, 0.7fr) minmax(8rem, 0.7fr);
    gap: 2rem;
  }

  .project-hero {
    padding-top: 1.8rem;
  }

  .project-title {
    max-width: 16ch;
  }

  .project-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .project-section__head p {
    max-width: 48ch;
  }

  .spec-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 1.15rem;
    --section-y: 4.4rem;
  }

  .header-tools {
    gap: 0.3rem;
  }

  .icon-button {
    min-width: 44px;
    min-height: 44px;
    padding-inline: 0.6rem;
  }

  .filter {
    min-height: 44px;
  }

  .search-field input {
    height: 44px;
  }

  .text-link {
    min-height: 44px;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .kicker {
    font-size: 0.6rem;
  }

  .hero__title {
    font-size: clamp(3.2rem, 15vw, 4.8rem);
  }

  .hero__lede {
    max-width: 29ch;
    font-size: 1rem;
  }

  .hero-mosaic {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .hero-mosaic::-webkit-scrollbar {
    display: none;
  }

  .hero-tile {
    flex: 0 0 68vw;
    scroll-snap-align: start;
  }

  .hero-tile:nth-child(1) .hero-tile__frame,
  .hero-tile:nth-child(2) .hero-tile__frame,
  .hero-tile:nth-child(3) .hero-tile__frame,
  .hero-tile:nth-child(4) .hero-tile__frame {
    height: 38vw;
    min-height: 118px;
    max-height: 190px;
  }

  .hero-board::before {
    display: none;
  }

  .index-strip__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-stat:nth-child(2) {
    border-right: 0;
  }

  .index-stat:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .index-strip__note {
    grid-column: 1 / -1;
  }

  .catalog__head h2 {
    font-size: clamp(2.35rem, 11vw, 3.7rem);
  }

  .catalog__tools {
    align-items: stretch;
  }

  .filters {
    gap: 0.4rem;
  }

  .filter {
    padding-inline: 0.75rem;
  }

  .search-field {
    width: 100%;
  }

  .project-card[data-span='7'],
  .project-card[data-span='6'],
  .project-card[data-span='5'],
  .project-card[data-span='4'] {
    grid-column: span 12;
    --card-ratio: 1.55;
  }

  .project-card h3,
  .project-card[data-span='7'] h3 {
    font-size: clamp(1.45rem, 7vw, 2.05rem);
  }

  .project-card__pitch {
    -webkit-line-clamp: 3;
  }

  .project-grid {
    gap-block: 2.2rem;
  }

  .principle {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .contact h2 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.4rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .project-hero {
    gap: 1.8rem;
    padding-bottom: 3.3rem;
  }

  .project-title {
    font-size: clamp(2.75rem, 13vw, 4.4rem);
  }

  .project-title--long {
    font-size: clamp(2.25rem, 10.5vw, 3.6rem);
  }

  .project-pitch {
    max-width: 34ch;
  }

  .feature-list,
  .feature-list--three {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature,
  .feature:nth-child(odd),
  .feature:nth-child(even),
  .feature-list--three .feature,
  .feature-list--three .feature:nth-child(odd),
  .feature-list--three .feature:nth-child(even) {
    padding: 1.1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gallery-item__frame {
    width: min(82vw, 28rem);
  }

  .gallery-item[data-orientation='portrait'] .gallery-item__frame {
    width: min(48vw, 13rem);
  }

  .spec-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .pager-link--next {
    text-align: left;
  }

  .lightbox__stage {
    gap: 0.35rem;
    padding: 0.6rem;
  }

  .lightbox__arrow {
    width: 32px;
    height: 32px;
  }

  .lightbox__image {
    max-height: calc(94dvh - 9.5rem);
  }

  .lightbox__caption {
    padding-inline: 0.8rem;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-stagger > *,
  .hero-tile {
    opacity: 1;
    transform: none;
  }
}

.status-tag[data-status='closed-testing'] {
  border-color: color-mix(in srgb, var(--coral) 55%, var(--line));
  color: var(--coral);
}
