:root {
  color-scheme: dark;
  --accent: #d9ff5b;
  --bg: #0b0b0b;
  --surface: #151515;
  --surface-2: #1d1d1d;
  --surface-3: #252525;
  --text: #f2f2ed;
  --muted: #9d9d97;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --sidebar-width: clamp(290px, 25vw, 380px);
  --page-gap: 8px;
  --page-pad: clamp(18px, 2.5vw, 42px);
  --max-copy: 720px;
  --transition: 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
  font-family: Inter, Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e9e9e4;
  --surface: #f7f7f3;
  --surface-2: #ffffff;
  --surface-3: #e2e2dc;
  --text: #10100f;
  --muted: #6c6c66;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.2);
  --shadow: 0 24px 70px rgba(31, 31, 26, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

body,
button,
a {
  font-family: inherit;
}

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

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

button {
  color: inherit;
}

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

figure,
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

button,
a,
[tabindex] {
  outline: none;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}

::selection {
  background: var(--accent);
  color: #111;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

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

.site-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: var(--page-gap);
  min-height: 100vh;
  padding: var(--page-gap);
}

.sidebar {
  position: sticky;
  top: var(--page-gap);
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto;
  gap: var(--page-gap);
  height: calc(100vh - (var(--page-gap) * 2));
  min-height: 0;
}

.panel,
.section-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.brand-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--accent);
  color: #111;
  font-size: 24px;
  font-weight: 700;
}

.brand__mark.has-image {
  background: transparent;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__name,
.brand__tagline {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__name {
  font-size: 15px;
  font-weight: 650;
}

.brand__tagline {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 19px;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
}

.icon-button:hover {
  transform: rotate(12deg);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.primary-nav {
  display: grid;
  padding: 6px;
}

.primary-nav__link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.primary-nav__link:hover,
.primary-nav__link.is-active {
  background: var(--surface-2);
  color: var(--text);
}

.primary-nav__link:hover {
  transform: translateX(2px);
}

.primary-nav__number {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.primary-nav__arrow {
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity var(--transition), transform var(--transition);
}

.primary-nav__link:hover .primary-nav__arrow,
.primary-nav__link.is-active .primary-nav__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.project-index {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 6px;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-heading h2 {
  font: inherit;
}

.project-index__list {
  display: grid;
  gap: 5px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.project-nav-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 6px;
  border-radius: 13px;
  color: var(--muted);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.project-nav-card:hover,
.project-nav-card.is-active {
  background: var(--surface-2);
  color: var(--text);
}

.project-nav-card:hover {
  transform: translateX(2px);
}

.project-nav-card__thumb {
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-3);
}

.project-nav-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-nav-card__body {
  min-width: 0;
}

.project-nav-card__body strong,
.project-nav-card__body span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-nav-card__body strong {
  color: inherit;
  font-size: 13px;
  font-weight: 560;
}

.project-nav-card__body span {
  margin-top: 2px;
  font-size: 11px;
}

.project-nav-card__arrow {
  padding-right: 7px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity var(--transition), transform var(--transition);
}

.project-nav-card:hover .project-nav-card__arrow,
.project-nav-card.is-active .project-nav-card__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.sidebar-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 10px;
}

.sidebar-footer p:last-child {
  text-align: right;
}

.empty-note {
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}

.main-content {
  min-width: 0;
}

.route-view {
  display: grid;
  gap: var(--page-gap);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
}

.route-view.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100vh - (var(--page-gap) * 2));
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: var(--page-pad);
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 31%),
    var(--surface);
}

.hero__top,
.hero__body {
  position: relative;
  z-index: 1;
}

.hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__note {
  max-width: 340px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.75fr);
  align-items: end;
  gap: clamp(28px, 6vw, 100px);
  padding-top: 160px;
}

.hero h1,
.page-hero h1,
.project-detail__hero h1,
.contact-page h1,
.not-found h1 {
  max-width: 11ch;
  font-size: clamp(3.3rem, 8.4vw, 9.2rem);
  font-weight: 520;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-wrap: balance;
}

.hero__intro {
  display: grid;
  gap: 28px;
  max-width: 460px;
}

.hero__intro > p,
.page-hero__lead,
.project-detail__intro > p,
.contact-page__intro > p {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.42;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
}

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

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #111;
}

.button--ghost {
  background: color-mix(in srgb, var(--surface-2) 85%, transparent);
}

.button--ghost:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.hero__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  pointer-events: none;
  opacity: 0.28;
}

.hero__grid span {
  border-left: 1px solid var(--line);
}

.hero__grid span:last-child {
  border-right: 1px solid var(--line);
}

.content-section {
  padding: clamp(70px, 10vw, 150px) 0 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.75fr);
  gap: clamp(30px, 8vw, 130px);
  align-items: end;
  padding: 0 var(--page-pad) clamp(24px, 3vw, 42px);
}

.section-header h2,
.contact-band h2 {
  max-width: 13ch;
  margin-top: 8px;
  font-size: clamp(2.4rem, 5vw, 5.9rem);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
}

.section-header > p {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 20px);
}

.section-header--compact {
  grid-template-columns: 1fr;
}

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

.project-card {
  min-width: 0;
}

.project-card--wide {
  grid-column: 1 / -1;
}

.project-card > a {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
}

.project-card > a:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--surface-3);
}

.project-card--wide .project-card__media {
  aspect-ratio: 16 / 8.5;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter var(--transition);
}

.project-card > a:hover .project-card__image {
  transform: scale(1.018);
  filter: saturate(1.05);
}

.project-card__index,
.project-card__open {
  position: absolute;
  top: 12px;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.66);
  color: #f5f5ef;
  backdrop-filter: blur(16px);
  font-size: 11px;
}

.project-card__index {
  left: 12px;
}

.project-card__open {
  right: 12px;
  font-size: 16px;
  transition: transform var(--transition), background-color var(--transition);
}

.project-card > a:hover .project-card__open {
  transform: rotate(45deg);
  background: var(--accent);
  color: #111;
}

.project-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 20px;
}

.project-card__body h3 {
  font-size: clamp(22px, 2.1vw, 34px);
  font-weight: 540;
  letter-spacing: -0.035em;
  line-height: 1;
}

.project-card__body p {
  margin-top: 8px;
  color: var(--muted);
}

.project-card__body .project-card__meta {
  margin-top: 2px;
  font-size: 11px;
  white-space: nowrap;
}

.service-list {
  padding: 0 var(--page-pad);
}

.service-row {
  display: grid;
  grid-template-columns: 70px minmax(180px, 0.8fr) minmax(240px, 1.1fr);
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-row > span {
  color: var(--muted);
  font-size: 11px;
}

.service-row h3 {
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1;
}

.service-row p {
  max-width: 500px;
  color: var(--muted);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  min-height: 460px;
  margin-top: clamp(80px, 13vw, 190px);
  padding: var(--page-pad);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--surface);
}

.round-link {
  display: flex;
  width: clamp(170px, 18vw, 260px);
  aspect-ratio: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  transition: transform var(--transition);
}

.round-link:hover {
  transform: rotate(-4deg) scale(1.015);
}

.round-link span {
  font-size: 13px;
}

.round-link strong {
  align-self: flex-end;
  font-size: clamp(34px, 5vw, 70px);
  font-weight: 400;
}

.page-hero,
.project-detail__hero,
.contact-page,
.not-found {
  min-height: min(760px, calc(100vh - (var(--page-gap) * 2)));
  padding: var(--page-pad);
}

.page-hero,
.project-detail__hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-hero h1,
.project-detail__hero h1,
.contact-page h1,
.not-found h1 {
  margin-top: auto;
  padding-top: 120px;
}

.page-hero__lead {
  max-width: 700px;
  margin-top: 46px;
  margin-left: auto;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: var(--page-gap);
  padding-top: var(--page-gap);
}

.prose-card {
  display: grid;
  gap: 26px;
  padding: var(--page-pad);
}

.prose-card p,
.project-story__copy p {
  max-width: var(--max-copy);
  font-size: clamp(18px, 2.2vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.prose-card p + p,
.project-story__copy p + p {
  color: var(--muted);
}

.stats-grid {
  display: grid;
  gap: var(--page-gap);
}

.stat-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.stat-card strong {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: var(--page-pad);
}

.tag-cloud span {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: clamp(14px, 1.5vw, 20px);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--page-gap);
}

.process-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 20px;
}

.process-card > span {
  color: var(--muted);
  font-size: 11px;
}

.process-card h3 {
  margin-top: auto;
  font-size: clamp(24px, 2.7vw, 40px);
  font-weight: 520;
  letter-spacing: -0.04em;
}

.process-card p {
  margin-top: 12px;
  color: var(--muted);
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: end;
}

.contact-page__intro h1 {
  max-width: 10ch;
}

.contact-page__intro > p {
  max-width: 680px;
  margin-top: 36px;
}

.contact-page__details {
  display: grid;
  gap: 40px;
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(20px, 2.2vw, 34px);
  letter-spacing: -0.035em;
}

.contact-email span {
  transition: transform var(--transition);
}

.contact-email:hover span {
  transform: rotate(45deg);
}

.contact-list {
  display: grid;
  gap: 15px;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
}

.contact-list dt {
  color: var(--muted);
  font-size: 12px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color var(--transition), border-color var(--transition);
}

.social-links a:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.project-detail {
  display: grid;
  gap: var(--page-gap);
}

.project-detail__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.text-link span {
  transition: transform var(--transition);
}

.text-link:hover span {
  transform: translateX(-3px);
}

.project-detail__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  max-width: 920px;
  margin-top: 46px;
  margin-left: auto;
}

.project-cover {
  overflow: hidden;
  padding: 0;
}

.project-cover__image {
  width: 100%;
  max-height: 92vh;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-story {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: var(--page-gap);
  padding-top: var(--page-gap);
}

.project-story__copy,
.project-facts {
  padding: var(--page-pad);
}

.project-story__copy {
  display: grid;
  gap: 28px;
}

.project-facts {
  display: grid;
  align-content: start;
}

.project-facts > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.project-facts > div:first-child {
  padding-top: 0;
}

.project-facts > div:last-child {
  border-bottom: 0;
}

.project-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--page-gap);
  padding-top: var(--page-gap);
}

.gallery-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.gallery-item--wide {
  grid-column: 1 / -1;
}

.gallery-item__image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.gallery-item--wide .gallery-item__image {
  aspect-ratio: 16 / 9;
}

.gallery-item--square .gallery-item__image {
  aspect-ratio: 1;
}

.gallery-item--portrait .gallery-item__image {
  aspect-ratio: 3 / 4;
}

.gallery-item figcaption {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.empty-state,
.not-found {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  padding: var(--page-pad);
}

.empty-state h3 {
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1;
}

.empty-state > p:last-child,
.not-found > p {
  max-width: 560px;
  color: var(--muted);
}

.not-found .button {
  margin-top: 12px;
}

.noscript-message,
.fatal-error {
  position: fixed;
  inset: auto 12px 12px;
  z-index: 999;
  padding: 14px;
  border-radius: 12px;
  background: #ffebe8;
  color: #6f1811;
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  :root {
    --sidebar-width: 300px;
  }

  .hero__body,
  .section-header,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .hero__intro,
  .page-hero__lead,
  .project-detail__intro {
    margin-left: 0;
  }

  .hero__note {
    display: none;
  }

  .hero h1,
  .page-hero h1,
  .project-detail__hero h1,
  .contact-page h1,
  .not-found h1 {
    max-width: 13ch;
  }

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

@media (max-width: 820px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
    z-index: 20;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
  }

  .brand-panel {
    position: sticky;
    top: var(--page-gap);
    z-index: 21;
    box-shadow: 0 8px 30px color-mix(in srgb, var(--bg) 60%, transparent);
  }

  .primary-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .primary-nav__link {
    grid-template-columns: 1fr auto;
  }

  .primary-nav__number {
    display: none;
  }

  .project-index {
    display: block;
  }

  .project-index__list {
    display: grid;
    grid-auto-columns: minmax(230px, 72vw);
    grid-auto-flow: column;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
  }

  .sidebar-footer {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .about-layout,
  .project-story,
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section .section-header {
    padding-bottom: 24px;
  }

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

@media (max-width: 620px) {
  :root {
    --page-gap: 5px;
    --page-pad: 20px;
    --radius-md: 15px;
  }

  body {
    font-size: 14px;
  }

  .site-shell {
    padding: var(--page-gap);
  }

  .brand__mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .project-index__list {
    grid-auto-columns: minmax(220px, 84vw);
  }

  .hero {
    min-height: 640px;
  }

  .hero__body {
    gap: 28px;
    padding-top: 110px;
  }

  .hero h1,
  .page-hero h1,
  .project-detail__hero h1,
  .contact-page h1,
  .not-found h1 {
    font-size: clamp(3rem, 15vw, 5.4rem);
    line-height: 0.91;
  }

  .hero__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__grid span:nth-child(n + 4) {
    display: none;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-header h2,
  .contact-band h2 {
    font-size: clamp(2.5rem, 12vw, 4.6rem);
  }

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

  .project-card--wide,
  .gallery-item--wide {
    grid-column: auto;
  }

  .project-card--wide .project-card__media,
  .project-card__media {
    aspect-ratio: 4 / 3;
  }

  .project-card__body {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .project-card__body .project-card__meta {
    margin-top: 0;
  }

  .service-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .service-row p {
    grid-column: 2;
  }

  .contact-band {
    grid-template-columns: 1fr;
    min-height: 520px;
    align-items: start;
  }

  .round-link {
    width: 170px;
    align-self: end;
    justify-self: end;
  }

  .page-hero,
  .project-detail__hero,
  .contact-page,
  .not-found {
    min-height: 620px;
  }

  .contact-page {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
  }

  .contact-page__details {
    margin-top: 80px;
  }

  .contact-list > div,
  .project-facts > div {
    grid-template-columns: 82px minmax(0, 1fr);
  }
}

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

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