@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #0a0d11;
  --page-soft: #10151b;
  --surface: rgba(23, 29, 37, 0.78);
  --surface-strong: rgba(25, 32, 40, 0.96);
  --surface-soft: rgba(247, 249, 251, 0.055);
  --text: #f2f4f6;
  --text-soft: #aeb6bf;
  --text-faint: #7d8792;
  --accent: #d96b36;
  --accent-strong: #f27d43;
  --accent-ink: #1a0e08;
  --edge: rgba(247, 249, 251, 0.12);
  --edge-strong: rgba(247, 249, 251, 0.24);
  --shadow: rgba(1, 6, 12, 0.42);
  --shadow-soft: rgba(2, 8, 14, 0.2);
  --radius-shell: 2rem;
  --radius-core: 1.55rem;
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --content: min(88rem, calc(100% - 4rem));
  --nav-layer: 20;
  --overlay-layer: 30;
  --grain-layer: 40;
}

html[data-theme="light"] {
  color-scheme: light;
  --page: #e9edf1;
  --page-soft: #dfe5ea;
  --surface: rgba(249, 251, 252, 0.76);
  --surface-strong: rgba(247, 249, 251, 0.97);
  --surface-soft: rgba(247, 249, 251, 0.54);
  --text: #12171c;
  --text-soft: #4e5964;
  --text-faint: #6f7983;
  --accent: #b95427;
  --accent-strong: #9f441d;
  --accent-ink: #fff7f2;
  --edge: rgba(247, 249, 251, 0.68);
  --edge-strong: rgba(247, 249, 251, 0.92);
  --shadow: rgba(38, 54, 68, 0.19);
  --shadow-soft: rgba(38, 54, 68, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  background: var(--page);
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 28rem),
    radial-gradient(circle at 12% 46%, color-mix(in srgb, var(--text) 5%, transparent), transparent 34rem),
    var(--page);
  color: var(--text);
  font-family: "Geist", "Avenir Next", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--grain-layer);
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.9'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
}

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

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 0.18rem solid var(--accent-strong);
  outline-offset: 0.24rem;
}

::selection {
  background: color-mix(in srgb, var(--accent) 65%, transparent);
  color: var(--text);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: calc(var(--overlay-layer) + 1);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 500ms var(--ease-out);
}

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

.glass-fixed {
  border: 1px solid var(--edge);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--text) 12%, transparent), transparent 42%),
    var(--surface);
  -webkit-backdrop-filter: blur(1.5rem) saturate(155%);
  backdrop-filter: blur(1.5rem) saturate(155%);
  box-shadow:
    inset 0 1px 0 var(--edge-strong),
    inset 0 -1px 0 color-mix(in srgb, var(--edge) 48%, transparent),
    0 1.5rem 5rem var(--shadow-soft);
}

.glass-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--edge);
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--text) 13%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--text) 7%, transparent), transparent 46%),
    var(--surface);
  box-shadow:
    inset 0 1px 0 var(--edge-strong),
    inset 0 -1px 0 color-mix(in srgb, var(--edge) 50%, transparent),
    0 1.4rem 4.5rem var(--shadow-soft);
}

.site-header {
  position: relative;
  z-index: var(--nav-layer);
}

.island-nav {
  position: fixed;
  top: 1.15rem;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(54rem, calc(100% - 2rem));
  min-height: 4.5rem;
  padding: 0.45rem 0.5rem 0.45rem 0.8rem;
  border-radius: 999px;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--text);
  color: var(--page);
  font-size: 0.92rem;
  font-weight: 760;
  letter-spacing: -0.06em;
}

.brand-name {
  font-size: 0.67rem;
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.2vw, 2.2rem);
}

.desktop-nav a,
.site-footer a {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 560;
  text-decoration: none;
  transition: color 450ms var(--ease-fluid), transform 450ms var(--ease-fluid);
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--text);
  transform: translateY(-0.08rem);
}

.theme-toggle {
  min-width: 6.35rem;
  min-height: 3.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 680;
  transition: transform 550ms var(--ease-fluid), background 550ms var(--ease-fluid);
}

.theme-toggle:hover {
  transform: scale(1.025);
}

.theme-toggle:active,
.button:active,
.segmented-control button:active {
  transform: scale(0.98);
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0.75rem;
  z-index: var(--overlay-layer);
  display: grid;
  place-items: center;
  border-radius: var(--radius-shell);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 600ms var(--ease-fluid), transform 600ms var(--ease-fluid);
}

.mobile-menu nav {
  display: grid;
  gap: 0.4rem;
  text-align: center;
}

.mobile-menu a {
  color: var(--text);
  font-size: clamp(2.6rem, 11vw, 4.5rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1.05;
  text-decoration: none;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 600ms var(--ease-fluid), transform 600ms var(--ease-fluid);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

body.menu-open .mobile-menu a {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 50ms; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 100ms; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 150ms; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(31rem, 1.14fr);
  align-items: center;
  width: var(--content);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 6rem 0 2rem;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  width: max-content;
  margin: 0 0 1.25rem;
  padding: 0.43rem 0.7rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 580;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 5.7vw, 6.3rem);
  line-height: 0.95;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.65rem, 4.8vw, 5.2rem);
  line-height: 0.98;
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  line-height: 1.04;
}

.hero-intro {
  max-width: 34rem;
  margin: 1.65rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0.45rem 0.5rem 0.45rem 1.35rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 600ms var(--ease-fluid), background 600ms var(--ease-fluid), color 600ms var(--ease-fluid);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #f7f9fb 38%, transparent), 0 1rem 3rem color-mix(in srgb, var(--accent) 18%, transparent);
}

.button-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-0.18rem);
}

.button-island {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-ink) 11%, transparent);
  font-size: 1rem;
  transition: transform 600ms var(--ease-fluid);
}

.button:hover .button-island,
.project-core:hover .button-island {
  transform: translate(0.15rem, -0.12rem) scale(1.04);
}

.text-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--text);
  font-weight: 630;
  text-decoration: none;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 0.08rem;
  background: var(--text);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 600ms var(--ease-fluid);
}

.text-link:hover::after {
  transform: scaleX(1);
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.visual-shell,
.portrait-shell,
.project-shell {
  position: relative;
  padding: 0.5rem;
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius-shell) + 0.5rem);
  background: color-mix(in srgb, var(--text) 5%, transparent);
  box-shadow: inset 0 1px 0 var(--edge-strong), 0 2.5rem 7rem var(--shadow);
}

.visual-core {
  position: relative;
  min-height: min(41rem, 69dvh);
  overflow: hidden;
  border-radius: var(--radius-shell);
  background: var(--page-soft);
  box-shadow: inset 0 1px 0 var(--edge);
}

.chrome-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.04);
}

.portrait-frame {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: min(44%, 20rem);
  height: 82%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(247, 249, 251, 0.22);
  border-bottom: 0;
  border-radius: 9rem 9rem 0 0;
  background: rgba(247, 249, 251, 0.08);
  box-shadow: inset 0 1px 0 rgba(247, 249, 251, 0.42), -1.5rem 0 5rem rgba(2, 8, 14, 0.24);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  filter: saturate(0.84) contrast(1.04);
}

.hero-caption {
  position: absolute;
  bottom: 1.35rem;
  left: -2rem;
  display: grid;
  width: min(19rem, 48%);
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-core);
}

.hero-caption strong {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.hero-caption span {
  margin-top: 0.35rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.work-section,
.practice-section,
.contact-section {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(7rem, 12vw, 11rem) 0;
}

.section-heading,
.practice-heading {
  max-width: 52rem;
}

.section-heading > p:last-child,
.practice-heading p {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.work-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 3rem 0 1.25rem;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 var(--edge);
}

.segmented-control button {
  min-height: 2.8rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color 500ms var(--ease-fluid), background 500ms var(--ease-fluid), transform 500ms var(--ease-fluid);
}

.filter-short { display: none; }

.segmented-control button[aria-pressed="true"] {
  background: var(--text);
  color: var(--page);
  box-shadow: 0 0.5rem 1.8rem var(--shadow-soft);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1.25rem;
}

.project-card {
  grid-column: span 5;
  min-width: 0;
  transition: opacity 450ms var(--ease-fluid), transform 650ms var(--ease-fluid);
}

.project-card.project-feature {
  grid-column: span 7;
  grid-row: span 2;
}

.project-card.project-tall {
  grid-column: span 5;
}

.project-card.project-wide {
  grid-column: span 7;
}

.project-card[hidden] {
  display: none;
}

.spotlight-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(28rem circle at var(--spot-x, 50%) var(--spot-y, 0%), color-mix(in srgb, var(--text) 11%, transparent), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-fluid);
}

.spotlight-surface:hover::before {
  opacity: 1;
}

.project-core {
  position: relative;
  display: grid;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-shell);
  background: var(--surface-strong);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  box-shadow: inset 0 1px 0 var(--edge);
}

.project-media {
  position: relative;
  min-height: 21rem;
  overflow: hidden;
  background: var(--page-soft);
}

.project-feature .project-media {
  min-height: 39rem;
}

.project-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-fluid), filter 900ms var(--ease-fluid);
}

.project-core:hover .project-media > img {
  transform: scale(1.025);
}

.lujo-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: end center;
  gap: 1rem;
  padding: 2rem 2rem 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 107, 54, 0.18), transparent 48%),
    #111316;
}

.lujo-media > img {
  width: auto;
  max-width: 100%;
  height: 95%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 1.5rem 2.2rem rgba(1, 4, 8, 0.46));
}

.lujo-secondary {
  transform: translateY(2.25rem);
}

.project-core:hover .lujo-secondary {
  transform: translateY(1.7rem) scale(1.025);
}

.project-copy {
  display: flex;
  flex-direction: column;
  min-height: 18rem;
  padding: clamp(1.4rem, 2.7vw, 2.2rem);
}

.project-feature .project-copy {
  min-height: 20rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  color: var(--text-faint);
  font-size: 0.75rem;
  font-weight: 580;
}

.project-copy h3 {
  max-width: 16ch;
}

.project-copy p {
  max-width: 39rem;
  margin: 1rem 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.84rem;
  font-weight: 660;
}

.project-link .button-island {
  width: 2.2rem;
  height: 2.2rem;
  background: var(--surface-soft);
}

.empty-state {
  margin-top: 1.25rem;
  padding: 2rem;
  border-radius: var(--radius-shell);
}

.empty-state h3 {
  font-size: 1.6rem;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(22rem, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  width: var(--content);
  margin: 0 auto;
  padding: clamp(7rem, 11vw, 10rem) 0;
  gap: clamp(3rem, 9vw, 9rem);
}

.about-portrait {
  transform: rotate(-2deg);
}

.portrait-core {
  min-height: 41rem;
  overflow: hidden;
  border-radius: var(--radius-shell);
  background: var(--surface-strong);
}

.portrait-core img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 41rem;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

.about-copy > p {
  max-width: 42rem;
  margin: 1.45rem 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.experience-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2.6rem 0 1.4rem;
}

.experience-facts div {
  min-height: 8.5rem;
  padding: 1.2rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius-core);
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 var(--edge);
}

.experience-facts dt {
  color: var(--text-faint);
  font-size: 0.73rem;
}

.experience-facts dd {
  margin: 2rem 0 0;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.practice-section {
  padding-top: clamp(5rem, 8vw, 8rem);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3.4rem;
}

.practice-item {
  display: grid;
  grid-column: span 6;
  grid-template-columns: 3.3rem 1fr;
  align-content: start;
  min-height: 25rem;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid var(--edge);
  border-radius: var(--radius-shell);
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 var(--edge);
}

.practice-item:nth-child(2),
.practice-item:nth-child(5) {
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 45%),
    var(--surface);
}

.practice-item:nth-child(3), .practice-item:nth-child(4) { grid-column: span 4; min-height: 27rem; }
.practice-item:nth-child(5), .practice-item:nth-child(6) { grid-column: span 4; min-height: 27rem; }

.practice-item > span {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--text);
  color: var(--page);
  font-size: 0.72rem;
  font-weight: 730;
}

.practice-item h3 {
  max-width: 14ch;
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  line-height: 1.04;
}

.practice-item > div > p:not(.practice-label) {
  max-width: 29rem;
  margin: 1rem 0 0;
  color: var(--text-soft);
}

.practice-label {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.practice-item ul {
  display: flex;
  flex-wrap: wrap;
  margin: auto 0 0;
  padding: 2.1rem 0 0;
  gap: 0.45rem;
  list-style: none;
}

.practice-item > div { display: flex; flex-direction: column; min-width: 0; }

.practice-item li {
  padding: 0.42rem 0.68rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: var(--text-faint);
  font-size: 0.7rem;
  line-height: 1.2;
}

.contact-section {
  padding-top: 5rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: clamp(2rem, 5vw, 5rem);
  border-radius: calc(var(--radius-shell) + 0.4rem);
  gap: 2rem;
}

.contact-panel h2 {
  max-width: 15ch;
}

.contact-panel p {
  max-width: 43rem;
  margin: 1.3rem 0 0;
  color: var(--text-soft);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  width: var(--content);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  gap: 2rem;
  color: var(--text-soft);
}

.not-found {
  display: grid;
  place-items: center;
  width: var(--content);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 2rem 0;
}

.not-found-panel {
  width: min(54rem, 100%);
  padding: clamp(2rem, 7vw, 5rem);
  border-radius: var(--radius-shell);
}

.not-found-panel h1 {
  max-width: 13ch;
  font-size: clamp(3.5rem, 7vw, 6.2rem);
}

.not-found-panel > p:not(.eyebrow) {
  max-width: 31rem;
  margin: 1.5rem 0 2rem;
  color: var(--text-soft);
}

.footer-brand {
  display: grid;
}

.footer-brand strong {
  color: var(--text);
}

.footer-brand span,
.site-footer p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.media-shell {
  isolation: isolate;
}

.media-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, var(--surface-soft), color-mix(in srgb, var(--text) 10%, transparent), var(--surface-soft));
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}

.media-shell.is-loading::before {
  opacity: 0.75;
  animation: skeleton-pass 1.4s var(--ease-fluid) infinite;
}

.media-shell.is-error::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--surface-strong);
  color: var(--text-soft);
  text-align: center;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(2.8rem);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 68rem) {
  :root {
    --content: min(88rem, calc(100% - 2.5rem));
  }

  .hero {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
  }

  .visual-core {
    min-height: 34rem;
  }

  .hero-caption {
    left: -1rem;
  }

  .project-feature .project-media {
    min-height: 32rem;
  }

  .project-card,
  .project-card.project-tall {
    grid-column: span 6;
  }

  .project-card.project-feature,
  .project-card.project-wide {
    grid-column: span 12;
  }
}

@media (max-width: 48rem) {
  :root {
    --content: calc(100% - 2rem);
    --radius-shell: 1.55rem;
    --radius-core: 1.15rem;
  }

  html {
    scroll-padding-top: 6rem;
  }

  .island-nav {
    grid-template-columns: auto 1fr auto;
    max-width: calc(100vw - 2rem);
    min-height: 4.1rem;
    padding: 0.35rem 0.4rem 0.35rem 0.65rem;
  }

  .brand-mark {
    width: 2.6rem;
    height: 2.6rem;
  }

  .brand-name {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .theme-toggle {
    justify-self: end;
    width: 2.9rem;
    min-width: 2.9rem;
    min-height: 2.9rem;
    margin-right: 0.35rem;
    padding: 0;
  }

  .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .theme-toggle::before { content: "◐"; font-size: 1rem; }

  .menu-toggle {
    position: relative;
    z-index: calc(var(--overlay-layer) + 1);
    display: block;
    width: 2.9rem;
    height: 2.9rem;
    border: 0;
    border-radius: 50%;
    background: var(--surface-soft);
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.05rem;
    height: 0.08rem;
    border-radius: 1rem;
    background: var(--text);
    transition: transform 600ms var(--ease-fluid);
  }

  .menu-toggle span:first-child {
    transform: translate(-50%, -0.22rem);
  }

  .menu-toggle span:last-child {
    transform: translate(-50%, 0.22rem);
  }

  body.menu-open .menu-toggle span:first-child {
    transform: translate(-50%, 0) rotate(45deg);
  }

  body.menu-open .menu-toggle span:last-child {
    transform: translate(-50%, 0) rotate(-45deg);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 7.2rem 0 4rem;
    gap: 3.5rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3.15rem, 14.7vw, 5.5rem);
  }

  h2 {
    max-width: 13ch;
    font-size: clamp(2.55rem, 11vw, 4.5rem);
  }

  .hero-intro {
    width: 100%;
    max-width: 27rem;
    overflow-wrap: anywhere;
  }

  .visual-core {
    min-height: min(36rem, 72dvh);
  }

  .portrait-frame {
    right: 4%;
    width: 47%;
  }

  .hero-caption {
    position: relative;
    bottom: auto;
    left: auto;
    width: calc(100% - 2rem);
    margin: -2.5rem auto 0;
  }

  .work-section,
  .practice-section,
  .contact-section {
    padding: 6rem 0;
  }

  .work-toolbar {
    justify-content: flex-start;
    overflow-x: auto;
    margin-right: -1rem;
    padding-right: 1rem;
  }

  .segmented-control {
    min-width: max-content;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.project-feature,
  .project-card.project-tall,
  .project-card.project-wide {
    grid-column: 1;
    grid-row: auto;
  }

  .project-feature .project-media,
  .project-media {
    min-height: 24rem;
  }

  .lujo-media {
    min-height: 33rem;
    padding-inline: 1rem;
  }

  .project-copy,
  .project-feature .project-copy {
    min-height: 17rem;
  }

  .about-section {
    grid-template-columns: 1fr;
    padding: 6rem 0;
    gap: 4rem;
  }

  .about-portrait {
    transform: none;
  }

  .portrait-core,
  .portrait-core img {
    min-height: 35rem;
  }

  .experience-facts {
    grid-template-columns: 1fr;
  }

  .experience-facts div {
    min-height: 7rem;
  }

  .experience-facts dd {
    margin-top: 1.2rem;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .practice-item,
  .practice-item:nth-child(3),
  .practice-item:nth-child(4),
  .practice-item:nth-child(5),
  .practice-item:nth-child(6) {
    grid-column: 1;
    min-height: 23rem;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-panel .button {
    width: max-content;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

}

@media (max-width: 28rem) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .project-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .lujo-media {
    min-height: 27rem;
  }
}

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

  .chrome-art,
  .menu-icon,
  .project-media img,
  .button-island,
  .case-progress {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 280ms; animation-timing-function: var(--ease-out); }

.case-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, var(--text)));
  box-shadow: 0 0 1.2rem color-mix(in srgb, var(--accent) 54%, transparent);
  transform: scaleX(0);
  transform-origin: left;
}

@supports (animation-timeline: scroll()) {
  .case-progress { animation: main-reading-progress linear both; animation-timeline: scroll(root); }
  @keyframes main-reading-progress { to { transform: scaleX(1); } }
}

.js .reveal {
  transform: translateY(2rem);
  transition:
    opacity 680ms var(--ease-out) calc(var(--reveal-index, 0) * 55ms),
    transform 680ms var(--ease-out) calc(var(--reveal-index, 0) * 55ms);
}

.js .reveal[data-reveal="left"] { transform: translateX(-2.4rem); }
.js .reveal[data-reveal="scale"] { transform: scale(0.965); }
.js .reveal.is-visible { transform: none; }

.practice-item {
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .practice-item:hover { transform: translateY(-0.35rem); border-color: var(--edge-strong); box-shadow: 0 1.8rem 5rem var(--shadow); }
}

@media (prefers-reduced-motion: reduce) {
  .case-progress { display: none; }
  .js .reveal, .js .reveal[data-reveal] { opacity: 1; transform: none; transition: opacity 120ms linear; }
  .practice-item { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-fixed,
  .glass-surface {
    background: var(--surface-strong);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@supports not ((backdrop-filter: blur(1rem)) or (-webkit-backdrop-filter: blur(1rem))) {
  .glass-fixed,
  .glass-surface {
    background: var(--surface-strong);
  }
}

/* Portfolio refinement: minimal seniority with a Liquid Glass web approximation. */
.island-nav { width: min(64rem, calc(100% - 2rem)); min-height: 4.25rem; }

.hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(30rem, 1.08fr);
  gap: clamp(3rem, 6vw, 6rem);
}

.hero h1 { max-width: 9ch; font-size: clamp(4rem, 6.4vw, 6.8rem); font-weight: 620; line-height: 0.91; }
.hero-intro { max-width: 32rem; }
.work-section { padding-top: clamp(6.5rem, 10vw, 9rem); }

.work-toolbar {
  position: sticky;
  top: 5.9rem;
  z-index: 10;
  justify-content: stretch;
  width: 100%;
  margin: 3rem 0 1.5rem;
}

.segmented-control {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(max-content, 1fr));
  width: 100%;
  padding: 0.4rem;
  border-color: var(--edge);
  background: linear-gradient(135deg, color-mix(in srgb, var(--text) 10%, transparent), transparent 38%), var(--surface);
  -webkit-backdrop-filter: blur(1.35rem) saturate(160%);
  backdrop-filter: blur(1.35rem) saturate(160%);
  box-shadow: inset 0 1px 0 var(--edge-strong), 0 1rem 3rem var(--shadow-soft);
}

.segmented-control button {
  min-width: 0;
  min-height: 3rem;
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out), transform 140ms var(--ease-out);
}

.project-grid { gap: 1.5rem; }
.project-card, .project-card.project-tall, .project-card.project-wide { grid-column: span 6; grid-row: auto; transition: opacity 180ms var(--ease-out), transform 360ms var(--ease-out); }
.project-card.project-feature { grid-column: span 12; grid-row: auto; }
.project-card.is-filtering-out, .project-card.is-filter-prep { opacity: 0; transform: translateY(0.8rem) scale(0.985); pointer-events: none; }

.project-shell {
  position: relative;
  height: 100%;
  padding: 0.45rem;
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius-shell) + 0.42rem);
  background: linear-gradient(145deg, color-mix(in srgb, var(--text) 8%, transparent), transparent 40%), var(--surface-soft);
  box-shadow: inset 0 1px 0 var(--edge-strong), 0 1.6rem 5rem var(--shadow-soft);
}

.project-core { border-radius: var(--radius-shell); }
.project-feature .project-core { grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr); }
.project-feature .project-media, .project-feature .project-copy { min-height: 38rem; }
.project-media { min-height: 26rem; }
.project-copy { min-height: 15.5rem; }
.project-copy h3 { font-weight: 620; }
.project-copy p { max-width: 34rem; }
.project-meta { margin-bottom: 1.4rem; }

.practice-section { padding-top: clamp(6rem, 10vw, 9rem); }
.practice-heading { max-width: 48rem; }
.practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }

.practice-item,
.practice-item:nth-child(2),
.practice-item:nth-child(3),
.practice-item:nth-child(4) {
  position: relative;
  display: grid;
  grid-column: auto;
  grid-template-columns: 1fr auto;
  min-height: 20rem;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--radius-shell);
  background: radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 15rem), linear-gradient(145deg, color-mix(in srgb, var(--text) 7%, transparent), transparent 44%), var(--surface-strong);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--edge-strong), 0 1.25rem 4rem var(--shadow-soft);
  cursor: pointer;
  text-align: left;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.practice-item > .practice-number { display: none; }
.practice-item > .practice-content {
  display: flex;
  place-items: initial;
  flex-direction: column;
  min-width: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.practice-label { margin: 0 0 3.4rem; color: var(--accent-strong); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: none; }
.practice-item strong { max-width: 15ch; font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 610; line-height: 1.02; letter-spacing: -0.05em; }
.practice-summary { max-width: 30rem; margin-top: 1rem; color: var(--text-soft); line-height: 1.55; transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out); }

.practice-detail {
  position: absolute;
  right: 2.4rem;
  bottom: 2.2rem;
  left: 2.4rem;
  display: grid;
  gap: 0.8rem;
  color: var(--text-soft);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out);
}

.practice-outputs { color: var(--text); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.045em; }
.practice-item > .practice-toggle { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 1px solid var(--edge); border-radius: 50%; background: var(--surface-soft); color: var(--text); font-size: 1.15rem; font-weight: 500; transition: transform 220ms var(--ease-out), background-color 220ms var(--ease-out); }
.practice-item[aria-expanded="true"] .practice-detail, .practice-item:focus-visible .practice-detail { opacity: 1; transform: none; }
.practice-item[aria-expanded="true"] .practice-summary, .practice-item:focus-visible .practice-summary { opacity: 0; transform: translateY(-0.25rem); }
.practice-item[aria-expanded="true"] .practice-toggle { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }

@media (hover: hover) and (pointer: fine) {
  .practice-item:hover { transform: translateY(-0.35rem); border-color: var(--edge-strong); box-shadow: 0 1.8rem 5rem var(--shadow); }
  .practice-item:hover .practice-detail { opacity: 1; transform: none; }
  .practice-item:hover .practice-summary { opacity: 0; transform: translateY(-0.25rem); }
  .practice-item:hover .practice-toggle { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
}

@media (max-width: 68rem) {
  .hero { grid-template-columns: 1fr 1fr; }
  .project-feature .project-core { grid-template-columns: 1fr; }
  .project-feature .project-media, .project-feature .project-copy { min-height: 30rem; }
}

@media (max-width: 48rem) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 8ch; font-size: clamp(3.2rem, 14vw, 4.7rem); }
  .work-toolbar { top: 5.25rem; }
  .segmented-control { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; min-width: 0; }
  .segmented-control button { min-height: 2.8rem; padding-inline: 0.5rem; }
  .filter-long { display: none; }
  .filter-short { display: inline; }
  .project-card, .project-card.project-feature, .project-card.project-tall, .project-card.project-wide { grid-column: 1; }
  .project-feature .project-media, .project-feature .project-copy, .project-media { min-height: 24rem; }
  .project-copy { min-height: 14.5rem; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-item, .practice-item:nth-child(2), .practice-item:nth-child(3), .practice-item:nth-child(4) { grid-column: 1; min-height: 19rem; }
  .practice-detail { right: 1.5rem; bottom: 1.5rem; left: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card, .practice-item, .practice-summary, .practice-detail, .practice-toggle { transform: none !important; transition: opacity 140ms linear, color 140ms linear, background-color 140ms linear; }
}

.desktop-nav a, .site-footer a { transition: color 180ms var(--ease-out), transform 140ms var(--ease-out); }
.theme-toggle { transition: transform 140ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms var(--ease-out); }
.button { transition: transform 140ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms var(--ease-out); }
.button-island { transition: transform 180ms var(--ease-out); }
.mobile-menu { transition: opacity 220ms var(--ease-out), transform 280ms var(--ease-drawer); }
.mobile-menu a { transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-drawer); }

/* Curated work index: one hierarchy, no second sticky header. */
.work-section { padding-top: clamp(7rem, 11vw, 10rem); }
.work-section .section-heading { max-width: 42rem; }
.work-section .section-heading h2 { max-width: 11ch; font-size: clamp(3rem, 5.4vw, 5.3rem); }
.work-section .section-heading > p:last-child { max-width: 39rem; margin-top: 1.15rem; }

.work-toolbar {
  position: relative;
  top: auto;
  z-index: 1;
  justify-content: flex-start;
  width: auto;
  margin: 2.2rem 0 3rem;
}

.segmented-control {
  display: flex;
  width: auto;
  padding: 0;
  gap: clamp(0.35rem, 1.5vw, 1.2rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.segmented-control button {
  position: relative;
  min-height: 2.6rem;
  padding: 0.15rem 0.2rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.segmented-control button::after {
  content: "";
  position: absolute;
  right: 0.2rem;
  bottom: 0.2rem;
  left: 0.2rem;
  height: 0.12rem;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out);
}

.segmented-control button[aria-pressed="true"] {
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.segmented-control button[aria-pressed="true"]::after { opacity: 1; transform: none; }

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(24rem, 0.65fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4.5rem);
}

.work-preview {
  position: sticky;
  top: 6.25rem;
  height: min(42rem, calc(100dvh - 7.75rem));
  min-height: 32rem;
  margin: 0;
  padding: 0.45rem;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius-shell) + 0.4rem);
  background: linear-gradient(145deg, color-mix(in srgb, var(--text) 8%, transparent), transparent 42%), var(--surface-soft);
  box-shadow: inset 0 1px 0 var(--edge-strong), 0 1.8rem 5rem var(--shadow-soft);
}

.work-preview-link { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--radius-shell); color: var(--text); text-decoration: none; }
.work-preview-media { position: absolute; inset: 0; overflow: hidden; background: var(--page-soft); }
.work-preview-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 46%, color-mix(in srgb, var(--page) 92%, transparent)); pointer-events: none; }
.work-preview-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 160ms var(--ease-out), transform 520ms var(--ease-out); }
.work-preview.is-swapping .work-preview-media img { opacity: 0.24; transform: scale(1.012); }

.work-preview figcaption {
  position: absolute;
  right: clamp(1.4rem, 3vw, 2.5rem);
  bottom: clamp(1.4rem, 3vw, 2.5rem);
  left: clamp(1.4rem, 3vw, 2.5rem);
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.65rem 1.5rem;
}

.work-preview figcaption > span:first-child { grid-column: 1 / -1; color: color-mix(in srgb, var(--text) 72%, transparent); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.07em; }
.work-preview figcaption strong { max-width: 14ch; font-size: clamp(2.2rem, 4.2vw, 4.6rem); font-weight: 620; line-height: 0.94; letter-spacing: -0.055em; }
.work-preview-action { display: flex; align-items: center; gap: 0.7rem; font-size: 0.8rem; font-weight: 650; white-space: nowrap; }
.work-preview-action .button-island { width: 2.35rem; height: 2.35rem; background: color-mix(in srgb, var(--text) 12%, transparent); }

.project-grid { display: grid; grid-template-columns: 1fr; grid-auto-flow: row; gap: 0; counter-reset: work-item; }
.project-card, .project-card.project-feature, .project-card.project-tall, .project-card.project-wide {
  grid-column: 1;
  grid-row: auto;
  counter-increment: work-item;
}
.project-card + .project-card { border-top: 1px solid var(--edge); }
.project-shell { height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.project-shell::before { display: none; }
.project-core, .project-feature .project-core {
  position: relative;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  min-height: 10rem;
  padding: 1.35rem 1rem;
  overflow: visible;
  border-radius: var(--radius-core);
  background: transparent;
  box-shadow: none;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.project-core::before { content: "0" counter(work-item); grid-column: 1; grid-row: 1; padding-top: 0.15rem; color: var(--text-faint); font-size: 0.68rem; font-weight: 680; font-variant-numeric: tabular-nums; }
.project-media, .project-feature .project-media { display: none; }
.project-copy, .project-feature .project-copy { grid-column: 2; grid-row: 1; min-height: 0; padding: 0; }
.project-meta { order: 0; margin: 0 0 1rem; font-size: 0.69rem; }
.work-priority { order: 1; width: max-content; margin-bottom: 0.6rem; color: var(--accent-strong); font-size: 0.7rem; font-weight: 680; }
.project-copy h3 { order: 2; max-width: 17ch; font-size: clamp(1.65rem, 2.5vw, 2.65rem); }
.project-copy p { order: 3; max-width: 31rem; margin-top: 0.75rem; font-size: 0.88rem; line-height: 1.48; }
.project-link { order: 4; margin-top: 1.15rem; padding-top: 0; color: var(--text); }
.project-link .button-island { width: 1.9rem; height: 1.9rem; }
.project-feature .project-core { background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 58%); }
.project-card.is-preview-active .project-core { background-color: var(--surface-soft); }

@media (hover: hover) and (pointer: fine) {
  .project-core:hover { background-color: var(--surface-soft); transform: translateX(0.25rem); }
  .work-preview-link:hover .work-preview-media img { transform: scale(1.018); }
}

@media (max-width: 64rem) {
  .work-layout { grid-template-columns: minmax(0, 1.12fr) minmax(21rem, 0.88fr); gap: 1.5rem; }
  .work-preview { min-height: 28rem; }
}

@media (max-width: 48rem) {
  .work-section .section-heading h2 { font-size: clamp(2.8rem, 13vw, 4.25rem); }
  .work-toolbar { margin: 1.7rem 0 2.4rem; }
  .segmented-control { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 0.25rem; }
  .segmented-control button { padding-inline: 0.25rem; }
  .work-layout { display: block; }
  .work-preview { display: none; }
  .project-grid { gap: 1.2rem; }
  .project-card + .project-card { border-top: 0; }
  .project-shell { padding: 0.35rem; border: 1px solid var(--edge); border-radius: calc(var(--radius-shell) + 0.32rem); background: var(--surface-soft); box-shadow: inset 0 1px 0 var(--edge-strong); }
  .project-core, .project-feature .project-core { display: grid; grid-template-columns: 1fr; min-height: 0; padding: 0; overflow: hidden; }
  .project-core::before { position: absolute; top: 1rem; left: 1rem; z-index: 2; padding: 0.35rem 0.48rem; border-radius: 999px; background: color-mix(in srgb, var(--page) 74%, transparent); color: var(--text); }
  .project-media, .project-feature .project-media { display: block; grid-column: 1; grid-row: 1; min-height: 20rem; }
  .project-copy, .project-feature .project-copy { grid-column: 1; grid-row: 2; min-height: 0; padding: 1.35rem; }
  .project-meta { margin-bottom: 1rem; }
  .project-copy p { font-size: 0.94rem; }
  .project-link { margin-top: 1.5rem; }
  .lujo-media, .project-feature .lujo-media { display: grid; min-height: 24rem; }
}

@media (prefers-reduced-motion: reduce) {
  .work-preview-media img, .project-core { transform: none !important; transition: opacity 140ms linear, color 140ms linear, background-color 140ms linear; }
}

/* Purposeful motion: masked hero type, responsive work preview, and a clear active project. */
.hero-line {
  display: block;
  margin-bottom: -0.04em;
  padding-bottom: 0.04em;
  overflow: hidden;
}

.hero-line > span { display: block; }
.hero-line:nth-child(1) { --line-index: 0; }
.hero-line:nth-child(2) { --line-index: 1; }

.js .hero h1.reveal { transform: none; transition: opacity 420ms var(--ease-out); }
.js .hero h1.reveal .hero-line > span {
  opacity: 0.15;
  transform: translateY(112%);
  transition:
    opacity 360ms var(--ease-out) calc(120ms + var(--line-index) * 80ms),
    transform 620ms var(--ease-out) calc(120ms + var(--line-index) * 80ms);
}

.js .hero h1.reveal.is-visible .hero-line > span { opacity: 1; transform: none; }

.work-preview-media img {
  transition: opacity 220ms var(--ease-out), transform 420ms var(--ease-out);
}

.work-preview.is-swapping .work-preview-media img { will-change: opacity, transform; }

.work-preview figcaption {
  transition: opacity 160ms var(--ease-out), transform 220ms var(--ease-out);
}

.work-preview.is-swapping figcaption { opacity: 0; transform: translateY(0.55rem); }

.project-core::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  left: 0;
  width: 0.12rem;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.25);
  transform-origin: center;
  transition: opacity 140ms var(--ease-out), transform 180ms var(--ease-out);
}

.project-card.is-preview-active .project-core::after { opacity: 1; transform: none; }

@supports (content-visibility: auto) {
  .about-section,
  .practice-section,
  .contact-section,
  .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 48rem;
  }

  .practice-section { contain-intrinsic-size: auto 60rem; }
}

@media (max-width: 48rem) {
  .project-core::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero h1.reveal .hero-line > span,
  .js .hero h1.reveal.is-visible .hero-line > span,
  .work-preview figcaption,
  .project-core::after {
    transform: none;
    transition: opacity 140ms linear;
  }
}

/* Work filters: glass pill categories with visible project counts. */
.work-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 2.2rem 0 3rem;
}

.segmented-control {
  display: flex;
  width: max-content;
  max-width: 100%;
  padding: 0.38rem;
  gap: 0.3rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--text) 8%, transparent), transparent 60%),
    color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow: inset 0 1px 0 var(--edge-strong), 0 1rem 3rem var(--shadow-soft);
}

.segmented-control button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 0.65rem 0.5rem 1rem;
  gap: 0.58rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
  white-space: nowrap;
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out), transform 140ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.segmented-control button::after { display: none; }

.filter-count {
  display: grid;
  place-items: center;
  min-width: 1.72rem;
  height: 1.72rem;
  padding-inline: 0.38rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--text-faint);
  font-size: 0.67rem;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.segmented-control button[aria-pressed="true"] {
  background: var(--text);
  color: var(--page);
  box-shadow: 0 0.55rem 1.5rem color-mix(in srgb, var(--shadow) 78%, transparent);
}

.segmented-control button[aria-pressed="true"] .filter-count {
  border-color: color-mix(in srgb, var(--page) 18%, transparent);
  background: color-mix(in srgb, var(--page) 12%, transparent);
  color: var(--page);
}

.segmented-control button:active { transform: translateY(1px); }

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

@media (hover: hover) and (pointer: fine) {
  .segmented-control button:not([aria-pressed="true"]):hover {
    background: color-mix(in srgb, var(--text) 7%, transparent);
    color: var(--text);
  }
}

@media (max-width: 48rem) {
  .work-toolbar { margin: 1.7rem 0 2.4rem; }
  .segmented-control { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 0.2rem; padding: 0.3rem; }
  .segmented-control button { min-width: 0; min-height: 2.8rem; padding: 0.4rem 0.35rem; gap: 0.35rem; font-size: 0.7rem; }
  .filter-long { display: none; }
  .filter-short { display: inline; }
  .filter-count { min-width: 1.35rem; height: 1.35rem; padding-inline: 0.24rem; font-size: 0.6rem; }
}

@media (prefers-reduced-transparency: reduce) {
  .segmented-control {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .segmented-control button,
  .filter-count { transform: none; transition: color 140ms linear, background-color 140ms linear; }
}

/* One-time scroll storytelling: headings wipe into view without delaying reading. */
.js .scroll-heading h2 {
  opacity: 0.18;
  clip-path: inset(0 0 100% 0);
  transform: translateY(1.1rem);
  transition:
    opacity 320ms var(--ease-out) 70ms,
    clip-path 640ms var(--ease-in-out) 70ms,
    transform 640ms var(--ease-out) 70ms;
}

.js .scroll-heading.is-visible h2 {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: none;
}

/* Project imagery settles as each card enters the selected-work narrative. */
.js .project-card .project-media img {
  transform: scale(1.025);
  transition: transform 720ms var(--ease-out);
}

.js .project-card.is-visible .project-media img { transform: none; }

@media (hover: hover) and (pointer: fine) {
  .js .project-card.is-visible:hover .project-media img { transform: scale(1.018); }
}

@media (prefers-reduced-motion: reduce) {
  .js .scroll-heading h2,
  .js .scroll-heading.is-visible h2,
  .js .project-card .project-media img,
  .js .project-card.is-visible .project-media img {
    opacity: 1;
    clip-path: none;
    transform: none;
    transition: opacity 140ms linear;
  }
}
