:root {
  --graphite: #121310;
  --slate: #191a17;
  --rail: #2e302a;
  --ivory: #f4f0e9;
  --ink: #22262d;
  --muted: #b9bdc6;
  --blue: #2684ff;
  --blue-focus: #74b2ff;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

[hidden] { display: none !important; }

button {
  font: inherit;
  cursor: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue-focus);
  outline-offset: 3px;
}

body {
  --gutter: clamp(17px, 5.3vw, 34px);
  margin: 0;
  background: var(--graphite);
  color: var(--ivory);
  line-height: 1.55;
}

.header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgb(255 255 255 / .1);
  background: var(--graphite);
  color: var(--ivory);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 16px var(--gutter) 18px;
  border-top: 1px solid var(--rail);
  color: var(--muted);
  font-size: .75rem;
}

.site-footer a:hover { color: var(--blue-focus); }

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

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 44px;
  color: var(--ivory);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .035em;
  white-space: nowrap;
}

.wordmark img {
  display: block;
  width: 32px;
  height: auto;
}

.header nav {
  display: flex;
  gap: clamp(12px, 3vw, 34px);
  align-items: center;
}

.header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  font-size: clamp(12px, 1.45vw, 14px);
  color: var(--muted);
  font-weight: 500;
}

.header nav a:hover {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: var(--blue-focus);
  text-underline-offset: 5px;
}

.hero {
  display: grid;
  gap: 22px;
  padding: 27px 0 17px;
}

.intro { padding-inline: var(--gutter); }

.intro h1 {
  font-size: clamp(43px, 11.5vw, 62px);
  line-height: 1.14;
  font-weight: 580;
  letter-spacing: -.055em;
}

.intro h1::before {
  display: block;
  width: clamp(28px, 3vw, 45px);
  height: 2px;
  margin-bottom: clamp(15px, 2vw, 24px);
  background: linear-gradient(90deg, var(--blue-focus), var(--blue));
  content: "";
}

.phrase { white-space: nowrap; }

.intro p {
  max-width: 27em;
  margin-top: 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 46px;
  margin-top: 20px;
  padding: 0 16px;
  border: 1px solid var(--ivory);
  border-radius: 3px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.hero-cta:hover { background: #e1eaf7; }
.hero-cta:active { background: #cbdbee; }

.hero-cta-arrow {
  position: relative;
  flex: 0 0 12px;
  height: 12px;
  color: #0b65d4;
  background: linear-gradient(currentColor, currentColor) center top / 1.5px 10px no-repeat;
}

.hero-cta-arrow::after {
  position: absolute;
  bottom: 2px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-inline-end: 1.5px solid;
  border-block-end: 1.5px solid;
  transform: rotate(45deg);
  content: "";
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 8px solid #0b65d4;
  border-block: 5px solid transparent;
}

.poster {
  min-width: 0;
}

.image-layer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--graphite);
}

.image-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 629px) {
  .image-layer::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--graphite), transparent 9%);
    content: "";
    pointer-events: none;
  }
}

.works-section { --works-tab-height: 48px; }

.works-navigation {
  position: sticky;
  z-index: 5;
  top: 0;
  padding-inline: var(--gutter);
  border-block: 1px solid var(--rail);
  background: linear-gradient(180deg, #1c1e1b, var(--slate));
}

.tabs {
  --tab-inset: 13px;
  position: relative;
  display: flex;
  max-width: 1280px;
  margin-inline: auto;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.tab-indicator {
  position: absolute;
  display: none;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transform-origin: left;
  pointer-events: none;
}

.tabs-ready .tab-indicator { display: block; }
.tabs-ready button[aria-selected="true"]::after { content: none; }

.tabs button {
  position: relative;
  flex: 1 0 76px;
  min-height: var(--works-tab-height);
  min-width: max-content;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  text-align: center;
}

.tabs button:hover { color: var(--ivory); }

.tabs button[aria-selected="true"] {
  color: var(--ivory);
  font-weight: 630;
}

.tabs button[aria-selected="true"]::after {
  position: absolute;
  right: var(--tab-inset);
  bottom: 0;
  left: var(--tab-inset);
  height: 2px;
  background: var(--blue);
  content: "";
}

.tabs button:focus-visible { outline-offset: -3px; }

@media (max-width: 629px) {
  .tabs { --tab-inset: 6px; }
  .tabs button {
    flex-basis: auto;
    padding-inline: clamp(4px, calc(4vw - 10px), 12px);
    font-size: clamp(12px, 3.25vw, 13px);
  }
}

.works {
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--rail);
  background: var(--slate);
}

.works-section > #about { scroll-margin-top: calc(var(--works-tab-height) + 2px); }

.panel {
  padding: 12px 8px 13px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.sample-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 2vw, 20px);
  width: min(100%, 1280px);
  margin: 18px auto 10px;
}

.sample-grid:empty { display: none; }

.sample-card {
  display: block;
  min-width: 0;
  border: 1px solid var(--rail);
  background: var(--graphite);
  color: var(--ivory);
  text-align: left;
}

.sample-card:hover {
  border-color: var(--blue);
}

.sample-card:focus-visible { border-color: var(--blue-focus); }
.sample-card:active { border-color: var(--blue-focus); }

.sample-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--graphite);
}

.sample-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample-card--portrait .sample-thumb img {
  object-position: center 30%;
}

#panel-avatar .sample-card--portrait .sample-thumb img {
  object-position: center 4%;
}

.sample-time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  background: rgb(10 11 8 / .86);
  color: var(--ivory);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.sample-copy {
  padding: 12px 14px 14px;
}

.sample-label {
  color: var(--muted);
  font-size: 12px;
}

.sample-card h2 {
  color: var(--ivory);
  font-size: clamp(16px, 1.65vw, 22px);
  font-weight: 620;
}

@media (min-width: 360px) {
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1120px) {
  .sample-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.image-case {
  grid-column: 1 / -1;
  min-width: 0;
  padding: clamp(10px, 2vw, 24px);
  border: 1px solid var(--rail);
  background: var(--graphite);
  color: var(--ivory);
  text-align: start;
}

.case-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(12px, 3vw, 36px) minmax(0, 1fr);
  align-items: start;
}

.case-shot { display: grid; min-width: 0; gap: 7px; cursor: zoom-in; }

.case-shot-heading {
  display: flex;
  min-height: 1.55em;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: var(--muted);
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 560;
  white-space: nowrap;
}

[data-case-view="result"] .case-shot-heading { color: var(--blue-focus); }
.case-count { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }

.case-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rail);
  background: #0d0e0b;
}

.case-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-shot:is(:hover, :focus-visible) .case-frame { border-color: var(--blue-focus); }

.case-direction {
  position: relative;
  align-self: center;
  width: min(57%, 15px);
  height: 1px;
  margin: 22px auto 0;
  background: var(--blue-focus);
}

.case-direction::after {
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--blue-focus);
  border-right: 1px solid var(--blue-focus);
  transform: rotate(45deg);
  content: "";
}

.case-enlarge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: clamp(20px, 2vw, 26px);
  height: clamp(20px, 2vw, 26px);
  border: 1px solid rgb(255 255 255 / .3);
  background: rgb(12 14 11 / .76);
}

.case-enlarge::before, .case-enlarge::after {
  position: absolute;
  inset: 0;
  width: 9px;
  height: 1px;
  margin: auto;
  background: var(--ivory);
  content: "";
}

.case-enlarge::after { transform: rotate(90deg); }

.case-results {
  display: grid;
  grid-column: 3;
  min-width: 0;
  gap: 4px;
  padding-top: 8px;
}

.case-result-name { overflow-wrap: anywhere; font-size: 13px; }

.case-options {
  position: relative;
  display: flex;
  min-width: 0;
  gap: 5px;
  padding: 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.case-options button {
  flex: 0 0 clamp(44px, 6vw, 72px);
  height: clamp(44px, 4.6vw, 58px);
  padding: 2px;
  border: 1px solid var(--rail);
  background: #0d0e0b;
  cursor: pointer;
}

.case-options button[aria-pressed="true"] { border: 2px solid var(--blue-focus); padding: 1px; }
.case-options button:focus-visible { outline-offset: 1px; }
.case-options img { display: block; width: 100%; height: 100%; object-fit: contain; }

.case-copy {
  margin-top: clamp(12px, 2vw, 22px);
  padding-top: clamp(11px, 1.8vw, 20px);
  border-top: 1px solid var(--rail);
}

.case-copy h2 { font-size: clamp(18px, 2.2vw, 30px); line-height: 1.3; font-weight: 600; }
.case-copy h2 a:hover { color: var(--blue-focus); }
.case-copy p { margin-top: 7px; color: var(--muted); font-size: clamp(13px, 1.3vw, 15px); }

.image-case--drawings .case-copy {
  margin: 0 0 clamp(14px, 2vw, 24px);
  padding: 0;
  border: 0;
}

.image-case--drawings .case-frame { aspect-ratio: 3 / 2; }

.case-drawings {
  margin-top: clamp(14px, 2vw, 24px);
  padding-top: clamp(12px, 1.5vw, 18px);
  border-top: 1px solid var(--rail);
}

.case-drawings-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 9px;
}

.case-drawings-heading :is(h2, h3) { font-size: clamp(15px, 1.8vw, 19px); font-weight: 600; }
.case-drawings-heading span { color: var(--muted); font-size: .75rem; }

.case-drawing-sheets {
  display: grid;
  grid-template-columns: repeat(5, minmax(124px, 1fr));
  grid-auto-columns: minmax(124px, 1fr);
  grid-auto-flow: column;
  gap: clamp(7px, 1vw, 12px);
  padding: 3px 3px 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.case-drawing {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--rail);
  background: var(--slate);
  cursor: zoom-in;
}

.case-drawing:hover { border-color: var(--blue-focus); }
.case-drawing:focus-visible { outline-offset: 1px; }
.case-drawing img { display: block; width: 100%; height: clamp(64px, 8vw, 105px); object-fit: contain; background: #deddd9; }
.case-drawing span { padding: 6px 3px 2px; font-size: .75rem; overflow-wrap: anywhere; }

.case-viewer {
  width: min(1120px, calc(100% - 20px));
  max-height: calc(100dvh - 20px);
  padding: 0;
  border: 1px solid #383a34;
  background: var(--graphite);
  color: var(--ivory);
  overflow: auto;
}

.case-viewer::backdrop { background: rgb(7 8 6 / .88); }

.case-viewer-header, .case-viewer-modes {
  display: flex;
  align-items: center;
  padding-inline: clamp(10px, 3vw, 24px);
}

.case-viewer-header {
  min-height: 56px;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--rail);
}

.case-viewer-header h2 { padding-block: 8px; font-size: clamp(17px, 2vw, 24px); font-weight: 600; }
.case-viewer-modes { flex-wrap: wrap; gap: 5px; padding-block: 7px; }

.case-viewer-header button, .case-viewer-modes button {
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: .8125rem;
  white-space: nowrap;
  cursor: pointer;
}

.case-viewer-header button:hover, .case-viewer-modes button:hover { color: var(--ivory); }
.case-viewer-modes button[aria-pressed="true"] {
  border-color: #455d76;
  background: #202b3a;
  color: var(--ivory);
}

.case-viewer-modes [data-view-full] {
  margin-inline-start: auto;
  border-color: var(--rail);
}

.viewer-image { position: relative; }

.viewer-image-feedback {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--muted);
  font-size: .8125rem;
  text-align: center;
}

.viewer-image[data-image-state="loading"] > img,
.viewer-image[data-image-state="error"] > img { visibility: hidden; }

.viewer-image[data-image-state="loading"] .viewer-image-feedback,
.viewer-image[data-image-state="error"] .viewer-image-feedback { display: grid; }

.viewer-image-feedback button {
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--rail);
  background: var(--slate);
  color: var(--ivory);
  cursor: pointer;
}

.case-viewer-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 17px);
  padding: 0 clamp(8px, 2vw, 18px) 9px;
}

.case-viewer:not([data-mode="both"]) .case-viewer-stage { grid-template-columns: minmax(0, 1fr); }
.case-viewer-stage figure { min-width: 0; }
.case-viewer-stage img {
  display: block;
  width: 100%;
  height: min(54dvh, 620px);
  object-fit: contain;
  background: #0d0e0b;
}

.case-viewer-stage figcaption { padding-top: 5px; color: var(--muted); font-size: .75rem; text-align: center; }
.case-viewer-options { margin: 0 clamp(8px, 2vw, 18px) 12px; }

.drawing-viewer-tools span {
  min-width: 36px;
  text-align: center;
  color: var(--muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.drawing-viewer-tools button:disabled { opacity: .5; cursor: default; }
.drawing-viewer-tools [data-drawing-zoom] { margin-left: auto; border-color: var(--rail); }

.drawing-viewer-sheet {
  display: grid;
  place-items: center;
  width: calc(100% - clamp(16px, 4vw, 36px));
  margin: 0 auto 12px;
  max-height: 70dvh;
  overflow: auto;
  overscroll-behavior: contain;
  background: #161712;
}

.drawing-viewer-sheet:focus-visible { outline: 2px solid var(--blue-focus); outline-offset: -2px; }
.drawing-viewer-sheet img { display: block; max-width: 100%; max-height: 70dvh; object-fit: contain; }
.drawing-viewer-sheet.is-zoomed { display: block; place-items: start; }
.drawing-viewer-sheet.is-zoomed img { max-width: none; max-height: none; }
.drawing-viewer-sheet:is([data-image-state="loading"], [data-image-state="error"]) { min-height: min(44dvh, 360px); }
.drawing-viewer-sheet:is([data-image-state="loading"], [data-image-state="error"]) > img { display: none; }

@media (max-width: 620px) {
  .case-comparison { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); }
  .case-viewer[data-mode="both"] .case-viewer-stage img { height: clamp(125px, 52vw, 310px); }
}

.about {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 31px var(--gutter) 36px;
}

.about::before {
  position: absolute;
  top: -1px;
  left: var(--gutter);
  width: min(230px, 55%);
  height: 1px;
  background: linear-gradient(90deg, var(--blue-focus), transparent);
  content: "";
}

.about-logo {
  display: block;
  width: 140px;
  height: auto;
}

.about h2 {
  margin-top: 13px;
  font-size: clamp(26px, 3.55vw, 42px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.about-copy p {
  max-width: 40em;
  margin-top: 13px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.contact-button {
  display: inline-flex;
  min-width: 148px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 10px 26px;
  border: 1px solid var(--ivory);
  border-radius: 4px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.contact-button:hover { background: #dfe8f5; }

.contact-dialog {
  width: min(390px, calc(100% - 34px));
  max-height: calc(100% - 34px);
  padding: clamp(16px, 4vw, 26px);
  border: 1px solid var(--rail);
  border-radius: 8px;
  background: var(--slate);
  color: var(--ivory);
}

.contact-dialog:not([open]) { display: none; }

.contact-dialog::backdrop { background: rgb(7 8 6 / .78); }

.contact-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.contact-dialog-heading h2 {
  font-size: 22px;
  font-weight: 600;
}

.contact-dialog-heading button {
  min-width: 48px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.contact-dialog-heading button:hover { background: var(--rail); }

.contact-qr { text-align: center; }

.contact-qr img {
  display: block;
  width: min(100%, 234px);
  height: auto;
  margin: 0 auto 12px;
  border: 12px solid #fff;
  border-radius: 4px;
}

.contact-qr figcaption {
  color: var(--muted);
  font-size: 14px;
}

.contact-phone {
  display: block;
  padding: 12px 0 8px;
  color: var(--blue-focus);
  text-align: center;
  overflow-wrap: anywhere;
}

.contact-phone:hover { text-decoration: underline; }

.work-page {
  width: min(1060px, calc(100% - var(--gutter) - var(--gutter)));
  margin: 0 auto;
  padding-block: clamp(22px, 3vw, 38px) 48px;
}

.work-page--portrait {
  width: min(410px, calc(100% - var(--gutter) - var(--gutter)));
}

.work-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76vh;
  margin-inline: auto;
  object-fit: contain;
}

.work-heading {
  margin-bottom: clamp(16px, 2vw, 23px);
}

.work-heading h1 {
  margin-top: 5px;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.work-note {
  max-width: 42em;
  margin-top: clamp(18px, 2.4vw, 28px);
  color: #d1d0c6;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.95;
  text-wrap: pretty;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.video-stage {
  background: #080907;
}

.video-frame {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  -webkit-touch-callout: none;
}

.work-page--portrait .video-frame video {
  width: auto;
  max-width: 100%;
  max-height: clamp(210px, calc(100vh - 220px), 710px);
  max-height: clamp(210px, calc(100svh - 220px), 710px);
}

.video-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  grid-template-areas: "play seek time mute fullscreen";
  align-items: center;
  gap: 4px 10px;
  padding: 4px 10px;
  border-top: 1px solid var(--rail);
  background: var(--slate);
}

.video-toolbar button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ivory);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.video-toolbar button:hover { background: var(--rail); }

.video-toggle {
  grid-area: play;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-toggle .play-icon {
  flex: 0 0 8px;
  border-left-color: currentColor;
}

.video-toggle[data-playing="true"] .play-icon {
  height: 10px;
  border: 0;
  border-inline: 2px solid currentColor;
}

.video-seek {
  grid-area: seek;
  width: 100%;
  min-width: 0;
  height: 36px;
  margin: 0;
  accent-color: var(--blue-focus);
  cursor: pointer;
}

.video-seek:focus-visible {
  outline: 2px solid var(--blue-focus);
  outline-offset: -4px;
}

.video-time {
  grid-area: time;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.video-mute { grid-area: mute; }
.video-fullscreen { grid-area: fullscreen; }

.video-status {
  padding: 6px 12px;
  color: var(--ivory);
  font-size: 13px;
}

.video-status:empty { display: none; }

.video-stage:fullscreen {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.video-stage:fullscreen .video-frame video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 510px) {
  .video-toolbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "seek seek seek seek" "play time mute fullscreen";
    column-gap: 6px;
    row-gap: 0;
  }
}

@media (min-width: 630px) {
  body { --gutter: clamp(27px, 4.3vw, 55px); }
  .header { min-height: 68px; }
  .hero {
    --hero-height: clamp(410px, 53vw, 680px);
    position: relative;
    isolation: isolate;
    min-height: var(--hero-height);
    overflow: hidden;
    align-items: center;
    gap: 0;
    padding-block: 32px;
  }
  .intro {
    position: relative;
    z-index: 1;
    max-width: 45%;
    padding: 0 0 12px var(--gutter);
  }
  .intro h1 { font-size: clamp(42px, 6.4vw, 88px); }
  .intro p {
    margin-top: 21px;
    max-width: clamp(165px, 26vw, 282px);
    font-size: clamp(13px, 1.46vw, 16px);
  }
  .hero-cta { margin-top: 24px; }
  .poster {
    position: absolute;
    inset: 0 0 0 19%;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .poster .image-layer {
    max-width: calc(var(--hero-height) * 16 / 9);
  }
  .image-layer::after {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, var(--graphite) 0%, rgb(18 19 16 / .52) 7%, transparent 16%),
      linear-gradient(0deg, var(--graphite), rgb(18 19 16 / .26) 7%, transparent 21%, transparent 89%, var(--graphite));
    content: "";
    pointer-events: none;
  }
  .works-section { --works-tab-height: 58px; }
  .tabs button { font-size: clamp(13px, 1.6vw, 16px); }
  .panel { padding-block: 14px; }
  .about {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(27px, 8vw, 91px);
    padding-block: clamp(42px, 5.6vw, 70px);
  }
  .contact-button { justify-self: end; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes enter {
    from { opacity: .22; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes settle-poster {
    from { opacity: .62; transform: scale(1.04); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes reveal-work {
    from { opacity: .62; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fade-panel {
    from { opacity: .65; }
    to { opacity: 1; }
  }

  .intro > * { animation: enter 540ms var(--ease-out) backwards; }
  .intro p { animation-delay: 65ms; }
  .intro .hero-cta { animation-delay: 125ms; }
  .image-layer img { animation: settle-poster 880ms var(--ease-out) backwards; }
  .panel:not([hidden]) { animation: fade-panel 280ms var(--ease-out); }
  .reveal-in { animation: reveal-work 480ms var(--ease-out) backwards; }
  .about .contact-button.reveal-in { animation-delay: 70ms; }

  .header nav a,
  .tabs button { transition: color 180ms ease; }
  .hero-cta,
  .contact-button { transition: background-color 200ms ease; }
  .hero-cta-arrow { transition: transform 240ms var(--ease-out); }
  .hero-cta:is(:hover, :focus-visible, :active) .hero-cta-arrow { transform: translateY(2px); }
  .sample-card { transition: border-color 220ms ease; }
  .sample-thumb img { transition: transform 430ms var(--ease-out); }
  .sample-card:focus-visible .sample-thumb img { transform: scale(1.04); }

  @media (min-width: 360px) {
    .sample-card:nth-child(even).reveal-in { animation-delay: 45ms; }
  }

  @media (min-width: 1120px) {
    .sample-card:nth-child(4n + 3).reveal-in { animation-delay: 90ms; }
    .sample-card:nth-child(4n + 4).reveal-in { animation-delay: 135ms; }
  }

  @media (hover: hover) and (pointer: fine) {
    .sample-card:hover .sample-thumb img { transform: scale(1.04); }
  }
}
