:root {
  --paper: #060607;        /* page base — near-black */
  --ink: #060607;          /* bands/chips blend into the base for a seamless canvas */
  --surface: #161617;      /* raised surfaces: cards, carousels */
  --panel: #161617;
  --surface-2: #202022;    /* nested / hover surface */
  --text: #f5f5f7;         /* primary light text */
  --muted: #86868b;        /* muted gray text */
  --line: #222224;         /* subtle borders on black */
  --line-strong: #333335;  /* stronger borders / hairlines */
  --accent: #d7a33f;       /* gold accent */
  --accent-deep: #b7842a;
  --on-accent: #0a0a0b;    /* dark text for use on the gold accent */
  --white: #f5f5f7;
  --max: 1240px;

  /* legacy aliases kept so existing rules resolve to the new system */
  --red: var(--accent);
  --green: var(--surface);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0;
}

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

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

.page-shell {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 64px), var(--max));
  min-height: 76px;
  margin-inline: auto;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -1;
  width: 100vw;
  background: rgb(6 6 7 / 72%);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.wordmark span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 650;
}

.site-header nav a:not(.contact-link):hover,
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-link {
  padding: 9px 15px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 5px;
  transition: background 160ms;
}

.contact-link:hover {
  background: var(--accent-deep);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(780px, calc(100vh - 84px));
  flex-direction: column;
  justify-content: space-between;
  padding: 84px 0 62px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -84px auto 0 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(120% 80% at 82% 0%, rgb(215 163 63 / 10%), transparent 55%),
    linear-gradient(180deg, #1a1a1d 0%, #101012 54%, var(--paper) 100%);
}

.kicker,
.section-number,
.project-index,
.quote-source {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.kicker {
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 1140px;
  margin: 34px 0 60px;
  font-size: clamp(56px, 8.4vw, 122px);
  line-height: 0.93;
  font-weight: 780;
}

.hero h1 em {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
}

.round-link {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 28px;
  transition: background 160ms, color 160ms, border-color 160ms;
}

.round-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.work-section {
  padding-top: 112px;
  overflow-x: clip;
  background: var(--ink);
  color: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding-bottom: 64px;
}

.section-number {
  padding-top: 8px;
  color: var(--muted);
}

.section-heading h2 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
}

.project {
  display: grid;
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

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

.project-destiny {
  padding: 72px 0 112px;
}

.project-destiny .project-copy {
  grid-column: 2;
  grid-row: 1;
  padding: 0 0 0 64px;
}

.project-destiny .project-carousel {
  grid-column: 1;
  grid-row: 1;
}

.project-destiny .project-facts {
  grid-column: 1;
}

.project-copy {
  padding-right: 64px;
}

.project-index {
  margin-bottom: 22px;
  color: #a1a1a6;
}

.project h3 {
  margin: 0 0 22px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
}

.project-lede {
  max-width: 580px;
  margin: 0;
  color: #c7c7cc;
  font-size: 19px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-carousel {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border-radius: 8px;
  color: var(--ink);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.project-carousel:hover,
.kana-video:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px -26px rgb(0 0 0 / 60%);
}

.carousel-stage {
  position: relative;
  aspect-ratio: 1;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  place-items: center;
  background: var(--green);
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.carousel-slide[hidden] {
  display: none;
}

.carousel-slide img,
.carousel-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide > span {
  position: relative;
  z-index: 2;
}

.carousel-slide:has(img) > span,
.carousel-slide:has(video) > span {
  position: absolute;
  inset: auto auto 16px 16px;
  padding: 8px 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  text-shadow: none;
}

.carousel-video-open {
  position: absolute;
  inset: auto 16px 16px auto;
  z-index: 3;
  padding: 9px 14px;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.carousel-video-open:hover,
.carousel-video-open:focus-visible {
  background: var(--accent-deep);
}

.carousel-video-open:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

.carousel-controls {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  min-height: 54px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.carousel-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  justify-self: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
}

.carousel-controls button:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--on-accent);
}

.carousel-controls button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.carousel-controls output {
  color: #86868b;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.project-facts {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line-strong);
}

.project-facts p {
  margin: 0;
  padding: 18px 16px 18px 0;
  color: #c7c7cc;
  font-size: 13px;
}

.project-facts span {
  display: block;
  margin-bottom: 5px;
  color: #86868b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-standard {
  padding: 96px 0 112px;
}

.project-halo {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 112px 0 128px;
}

.project-halo::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 100vw;
  background:
    linear-gradient(to bottom, rgb(6 6 7 / 45%) 0%, rgb(6 6 7 / 80%) 58%, var(--ink) 100%),
    url("assets/portfolio/halo-odst-section-bg.jpg") center 48% / cover no-repeat;
  content: "";
  transform: translateX(-50%);
}

.project-halo .project-copy {
  max-width: 760px;
  padding: 0;
}

.project-halo .project-lede {
  color: #f5f5f7;
}

.project-era-line {
  margin: 38px 0 0;
  color: var(--white);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 750;
  line-height: 1.2;
}

.project-halo .project-facts {
  grid-column: auto;
  width: min(100%, 760px);
  margin-top: 54px;
  background: rgb(0 0 0 / 55%);
  border-top: 1px solid var(--line-strong);
}

.halo-archive {
  margin-top: 54px;
  padding-top: 28px;
}

.halo-archive .kicker {
  color: #a1a1a6;
}

.halo-small-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.halo-small-thumbnail {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0a0b0c;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.halo-small-thumbnail:hover,
.halo-small-thumbnail:focus-visible {
  border-color: var(--accent);
}

.halo-small-thumbnail:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.halo-small-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 160ms;
}

.halo-small-thumbnail-contain img {
  object-fit: contain;
  object-position: center;
}

.halo-small-thumbnail:hover img {
  transform: scale(1.025);
}

.companion-archive {
  grid-column: 1 / -1;
  margin-top: 54px;
  padding-top: 28px;
}

.companion-archive .kicker {
  color: var(--muted);
}

.companion-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
  perspective: 1100px;
}

.companion-concept-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transform-style: preserve-3d;
  transition: transform 300ms cubic-bezier(0.22, 0.61, 0.24, 1),
    border-color 200ms ease, box-shadow 300ms ease;
  will-change: transform;
}

.companion-concept-thumbnail img,
.companion-concept-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.companion-concept-thumbnail > span {
  position: absolute;
  inset: auto auto 10px 10px;
  padding: 7px 9px;
  background: rgb(0 0 0 / 82%);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.companion-concept-thumbnail:hover,
.companion-concept-thumbnail:focus-visible {
  border-color: var(--accent);
  transform: translateY(-12px) rotateX(7deg) scale(1.04);
  box-shadow:
    0 38px 64px -22px rgb(0 0 0 / 85%),
    0 0 0 1px rgb(215 163 63 / 45%);
  z-index: 3;
}

.companion-concept-thumbnail:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.project-kana {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  padding: 112px 0;
}

.kana-video {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  background: #08090d;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.kana-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-sound-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgb(255 255 255 / 55%);
  background: rgb(0 0 0 / 80%);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.video-sound-toggle:hover,
.video-sound-toggle:focus-visible {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.video-sound-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.project-kana .project-copy {
  padding: 32px 0 32px 72px;
}

.kana-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 40px;
}

.kana-links .text-link {
  margin-top: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-weight: 750;
}

.text-link span {
  transition: transform 160ms;
}

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

.patent-credit {
  margin-top: 28px;
  border-bottom-color: var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.ux-gallery {
  padding: 72px 0 120px;
  border-top: 1px solid var(--line-strong);
}

.ux-gallery-heading {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  margin-bottom: 34px;
}

.ux-gallery-heading h3 {
  grid-column: 2;
  margin: 8px 0 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

.ux-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.2fr) minmax(230px, 0.5fr);
  height: clamp(620px, 64vw, 840px);
  gap: 18px;
  align-items: stretch;
}

.ux-gallery-card-mobile {
  grid-column: 3;
}

.ux-gallery-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: 0;
  gap: 18px;
}

.ux-gallery-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.ux-gallery-card-dark {
  background: var(--surface);
}

.ux-gallery-card-dark img {
  object-position: center top;
}

.ux-gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ux-gallery-card-mobile img {
  object-position: center top;
}

.ux-gallery-card figcaption {
  position: absolute;
  inset: auto 14px 14px;
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.image-modal {
  width: min(96vw, 1600px);
  max-width: none;
  height: 92vh;
  max-height: none;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.image-modal::backdrop {
  background: rgb(0 0 0 / 86%);
}

.image-modal-toolbar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  background: var(--ink);
  color: var(--white);
}

.image-modal-toolbar > strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-modal-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.image-modal-actions button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  background: #32322e;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 21px;
  line-height: 1;
}

.image-modal-actions button:hover {
  background: var(--red);
  color: var(--on-accent);
}

.image-modal-actions button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.image-modal-actions output {
  width: 50px;
  color: #c6c5be;
  font-size: 11px;
  text-align: center;
}

.image-modal-viewport {
  height: calc(92vh - 58px);
  padding: 24px;
  overflow: auto;
  text-align: center;
}

.image-modal-viewport img {
  width: 100%;
  max-width: none;
  height: auto;
  margin-inline: auto;
  border-radius: 6px;
}

.image-modal-viewport img[src=""] {
  display: none;
}

.video-modal {
  width: min(92vw, 1100px);
  max-width: none;
  padding: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--white);
}

.video-modal::backdrop {
  background: rgb(0 0 0 / 88%);
}

.video-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  background: var(--surface);
}

.video-modal-bar strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.video-modal-bar button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 21px;
  line-height: 1;
}

.video-modal-bar button:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.video-modal video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
}

/* the companion prototype tile is a <button> opening the video modal */
.companion-concept-video {
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.practice,
.about {
  padding-top: 120px;
  padding-bottom: 120px;
}

.compact-heading {
  border-bottom: 1px solid var(--line);
}

.practice-list {
  margin-left: 112px;
}

.practice-list article {
  display: grid;
  grid-template-columns: 54px 0.75fr 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.practice-list article > span {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.practice-list h3 {
  margin: 0;
  font-size: 29px;
}

.practice-list p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}

.quotes-section {
  padding: 112px 0;
  background: var(--surface);
  color: var(--white);
}

.quotes-layout {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 48px;
}

.quotes-layout .section-number {
  color: #86868b;
}

.quotes-layout .kicker {
  color: #a1a1a6;
}

blockquote {
  margin: 28px 0 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
}

.quotes-layout blockquote::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-bottom: 26px;
  background: var(--accent);
}

.quote-source {
  color: #a1a1a6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  margin: 56px 0 0 112px;
}

.about-copy p {
  margin: 0 0 22px;
  font-size: 20px;
}

.about-portrait {
  float: right;
  width: 156px;
  margin: 4px 0 16px 28px;
}

.about-portrait img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
}

.about-portrait figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: 40px;
}

.about-actions .text-link {
  margin-top: 0;
}

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

.timeline > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time,
.timeline span {
  color: var(--muted);
  font-size: 12px;
}

.timeline p,
.timeline strong,
.timeline span {
  display: block;
  margin: 0;
}

.contact-section {
  padding: 104px 0;
  background: var(--accent);
  color: var(--on-accent);
}

.contact-section .kicker {
  color: rgb(12 21 38 / 72%);
}

.contact-section a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  font-size: clamp(44px, 7vw, 98px);
  font-weight: 800;
  line-height: 1;
}

.contact-section a span {
  font-size: 0.7em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 850px) {
  .page-shell,
  .site-header,
  .project {
    width: min(calc(100% - 40px), var(--max));
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav a:not(.contact-link) {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 84px);
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(50px, 15vw, 76px);
  }

  .hero-bottom,
  .project-destiny,
  .project-standard,
  .project-kana,
  .quotes-layout,
  .about-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .round-link {
    width: 54px;
    height: 54px;
  }

  .section-heading {
    grid-template-columns: 45px 1fr;
    gap: 12px;
  }

  .project-destiny,
  .project-standard,
  .project-kana {
    gap: 42px;
    padding: 62px 0 80px;
  }

  .project-copy,
  .project-kana .project-copy,
  .project-destiny .project-copy {
    grid-column: auto;
    grid-row: auto;
    padding: 0;
  }

  .project-destiny .project-carousel {
    grid-column: auto;
    grid-row: auto;
  }

  .project-facts {
    grid-column: auto;
  }

  .project-halo {
    padding: 82px 0 96px;
  }

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

  .kana-video {
    grid-row: 2;
  }

  .ux-gallery-heading {
    grid-template-columns: 1fr;
  }

  .ux-gallery-heading h3 {
    grid-column: auto;
  }

  .practice-list,
  .about-grid {
    margin-left: 0;
  }

  .practice-list article {
    grid-template-columns: 40px 1fr;
  }

  .practice-list article p {
    grid-column: 2;
  }

  .quotes-layout {
    gap: 54px;
  }

  .quotes-layout > div + div {
    padding-top: 44px;
    border-top: 1px solid rgb(255 255 255 / 18%);
  }

  .about-grid {
    gap: 56px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .page-shell,
  .site-header,
  .project {
    width: calc(100% - 28px);
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero h1 {
    margin-top: 26px;
    font-size: 47px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .project h3 {
    font-size: 48px;
  }

  .ux-gallery-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .ux-gallery-stack .ux-gallery-card {
    aspect-ratio: 16 / 9;
  }

  .ux-gallery-card-mobile {
    grid-column: auto;
    aspect-ratio: 3 / 4;
  }

  .halo-small-grid {
    grid-template-columns: 1fr 1fr;
  }

  .image-modal {
    width: 100vw;
    height: 100vh;
  }

  .image-modal-toolbar {
    align-items: flex-start;
    gap: 8px;
    padding-left: 12px;
  }

  .image-modal-toolbar > strong {
    display: none;
  }

  .image-modal-viewport {
    height: calc(100vh - 58px);
    padding: 12px;
  }

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

  .video-sound-toggle {
    right: 12px;
    bottom: 12px;
  }

  .contact-section a {
    align-items: flex-end;
    font-size: 43px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
