:root {
  --bg: #0e0d0b;
  --bg-2: #171613;
  --text: #efece6;
  --muted: #b7b1a6;
  --faint: #8f897f;
  --line: rgba(239, 236, 230, 0.14);
  --line-strong: rgba(239, 236, 230, 0.28);
  --accent: #e4d2a8;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Onest", "Segoe UI", sans-serif;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

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

.sound {
  position: fixed;
  left: 22px;
  bottom: 20px;
  z-index: 45;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.sound span {
  width: 1px;
  height: 16px;
  background: var(--text);
  opacity: 0.35;
  transform: scaleY(0.16);
  transform-origin: center;
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease);
}

.sound[aria-pressed="true"] span {
  opacity: 0.9;
  transform: scaleY(1);
  animation: wave 1.35s ease-in-out infinite;
}

.sound[aria-pressed="false"] span {
  transform: scaleY(0.12);
  animation: none;
}

.sound[aria-pressed="true"] span:nth-child(1) { animation-delay: 0.05s; }
.sound[aria-pressed="true"] span:nth-child(2) { animation-delay: 0.18s; }
.sound[aria-pressed="true"] span:nth-child(3) { animation-delay: 0.32s; }
.sound[aria-pressed="true"] span:nth-child(4) { animation-delay: 0.14s; }
.sound[aria-pressed="true"] span:nth-child(5) { animation-delay: 0.26s; }

.sound:hover span,
.sound:focus-visible span {
  opacity: 1;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: screen;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav.scrolled,
.nav.menu-open {
  background: rgba(14, 13, 11, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand .mag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

#site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s var(--ease);
}

.mag {
  position: relative;
  display: inline-block;
}

#site-nav a .mag::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

#site-nav a:hover,
#site-nav a[aria-current="true"] {
  color: var(--text);
}

#site-nav a:hover .mag::after,
#site-nav a[aria-current="true"] .mag::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: 0 0 28px;
  overflow: hidden;
  background: #070706;
}

.fx-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4vw;
  pointer-events: none;
}

.poster-word {
  margin: 0;
  font-family: var(--font);
  font-size: min(20vw, 42vh);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.8;
  white-space: nowrap;
  background: linear-gradient(180deg, #f6f3ec 0%, #9c978e 42%, #e7e1d6 68%, #5e5b56 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: url(#poster-fx);
}

.poster-n {
  position: relative;
}

.poster-base {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: baseline;
}

.fisher {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 0;
  height: auto;
  overflow: visible;
  color: #e9e4da;
  opacity: 0;
  transition: opacity 1.2s var(--ease) 0.5s;
}

.fisher.is-placed {
  opacity: 0.95;
}

@media (max-width: 880px), ((pointer: coarse) and (max-width: 1080px)) {
  .fisher,
  .fishing-line {
    display: none;
  }
}


.fishing-line {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 1px;
  height: 0;
  pointer-events: none;
  transform-origin: 50% 0;
  animation: line-sway 7s ease-in-out infinite;
}

.fishing-line span {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(233, 228, 218, 0.75) 0, rgba(233, 228, 218, 0.32) 420px, rgba(233, 228, 218, 0.22) 100%);
  transform-origin: 50% 0;
  transform: scaleY(0);
}

.fishing-line.is-cast span {
  transform: scaleY(1);
  transition: transform 2.6s cubic-bezier(0.65, 0, 0.35, 1) 0.9s;
}

.fishing-line span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  width: 7px;
  height: 10px;
  border: 1.5px solid rgba(233, 228, 218, 0.55);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  transform: translateX(0.5px);
}

.fishing-catch {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  font-family: var(--font);
  font-size: clamp(34px, 4.4vw, 72px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #f6f3ec 0%, #9c978e 42%, #e7e1d6 68%, #5e5b56 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: url(#catch-fx);
  transform-origin: 50% 0;
  translate: -50% 0;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.9s var(--ease) 3.2s, scale 0.45s var(--ease);
  animation: catch-swing 3.6s ease-in-out infinite;
}

.fishing-catch::before {
  content: "";
  position: absolute;
  inset: -14px -18px;
}

.fishing-catch:hover,
.fishing-catch:focus-visible {
  scale: 1.06;
}

.fishing-line.is-cast .fishing-catch {
  opacity: 1;
}

@keyframes catch-swing {
  0%, 100% { rotate: 6deg; }
  50% { rotate: -6deg; }
}

@keyframes line-sway {
  0%, 100% { transform: rotate(0.035deg); }
  50% { transform: rotate(-0.035deg); }
}

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

#cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483646;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
}

.has-cursor #cursor {
  opacity: 1;
}

#cursor .dot,
#cursor .ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
}

#cursor .dot {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: #fff;
}

#cursor .ring {
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 1px solid #fff;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease);
}

.has-cursor.cursor-hot #cursor .ring {
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
}

.has-cursor,
.has-cursor * {
  cursor: none !important;
}

.section {
  padding: clamp(28px, 4vw, 48px) 0;
  scroll-margin-top: 84px;
}

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  flex: none;
}

#contact {
  padding-bottom: clamp(56px, 7vw, 80px);
}

.section-h {
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.lead {
  max-width: 38rem;
  margin: 28px 0 0;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.lead-short {
  color: var(--muted);
  font-size: 1.05rem;
}

.jobs,
.study {
  margin-top: 28px;
}

.job,
.study {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.study {
  margin-top: 0;
}

.job-date,
.job-org,
.eyebrow {
  margin: 0;
}

.job-date,
.eyebrow {
  color: var(--accent);
  font-size: 13px;
}

.job-org {
  margin-top: 6px;
  color: var(--faint);
  font-size: 14px;
}

.job h3,
.study h3 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.job p,
.study p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
}

.courses {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.courses li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 8px 0;
  color: var(--muted);
  border-top: 1px solid transparent;
}

.courses li span {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.practices,
.toward {
  max-width: 46rem;
  margin: 28px 0 0;
  color: var(--muted);
}

.practices span,
.toward {
  letter-spacing: -0.01em;
}

.practices span {
  color: var(--text);
}

.toward a {
  color: var(--text);
  text-underline-offset: 3px;
}

.toward a:hover {
  color: var(--accent);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.section-head .section-h {
  margin: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 10px;
}

.filters button {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 14px;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.filters button:hover,
.filters button[aria-pressed="true"] {
  color: var(--text);
}

.filters button[aria-pressed="true"] {
  border-bottom-color: var(--accent);
}

.tools-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
}

.note,
.count {
  margin: 0;
  color: var(--faint);
  font-size: 14px;
}

.note {
  max-width: 46ch;
}

.count {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
}

.subnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s var(--ease);
}

.subnav a:hover {
  color: var(--accent);
}

.group {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px 36px;
  padding: 36px 0 12px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  scroll-margin-top: 96px;
}

.group + .group {
  margin-top: 0;
}

.group-h {
  position: sticky;
  top: 92px;
  align-self: start;
}

.group-h h3 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(239, 236, 230, 0.08);
  border-radius: 4px;
  background: transparent;
  cursor: default;
}

.mono,
.tool-name {
  position: relative;
  z-index: 1;
}

.mono {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(239, 236, 230, 0.16);
  border-radius: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.tool-name {
  font-size: 14.5px;
  letter-spacing: -0.01em;
}

.study-block {
  margin-top: 72px;
  scroll-margin-top: 96px;
}

.study-block h3 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.study-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px 28px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.study-row:last-child {
  border-bottom: 1px solid var(--line);
}

.study-row p {
  margin: 0;
}

.study-row p:first-child {
  color: var(--faint);
  font-size: 14px;
}

.study-names {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.study-names span:not(:last-child)::after {
  content: "  ·  ";
  color: var(--faint);
}

.pieces {
  margin-top: 48px;
}

.piece {
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}

.piece:last-child {
  border-bottom: 1px solid var(--line);
}

.piece-title {
  margin: 0;
}

.piece-name {
  padding: 0;
  border: 0;
  background: none;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 236, 230, 0.55);
  font: 500 clamp(2rem, 3.4vw, 2.8rem) / 1 var(--font);
  letter-spacing: -0.045em;
  text-align: left;
  cursor: pointer;
  transition: color 0.45s var(--ease);
}

.piece:hover .piece-name,
.piece.is-open .piece-name,
.piece-name:focus-visible {
  color: var(--text);
  -webkit-text-stroke-color: transparent;
}

.piece-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.45s var(--ease);
}

.piece-panel-inner {
  overflow: hidden;
  padding-bottom: 20px;
}

.piece.is-open .piece-panel-inner {
  overflow: visible;
}

h3.piece-name {
  cursor: default;
}

.piece-panel-inner > p:not(.job-date) {
  margin: 8px 0 0;
  max-width: 46ch;
  color: var(--muted);
}

.piece-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
}

.piece-media {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.clip {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.piece-media video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #070706;
  display: block;
}

.clip figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 42px 14px 12px;
  background: linear-gradient(to top, rgba(7, 7, 6, 0.86), transparent);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.clip:hover figcaption,
.clip:focus-within figcaption {
  opacity: 1;
}

@media (hover: none) {
  .piece.is-open .clip figcaption {
    opacity: 1;
  }
}

.piece-media img {
  width: 100%;
  height: auto;
  display: block;
  background: #070706;
}

.piece-media video,
.piece-media img {
  border-radius: 12px;
  transition: transform 0.45s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .frame:hover img,
  .piece-media video:hover {
    transform: scale(1.04);
  }
}

.piece-rail {
  position: relative;
  margin-top: 18px;
}

.piece-phones {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 20px 24px 20px 16px;
  overflow-x: auto;
  overflow-y: clip;
  overflow-clip-margin: 24px;
  scroll-snap-type: none;
  scroll-padding-inline: 12px;
  scrollbar-width: none;
  cursor: grab;
}

.piece-phones.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.piece-phones::-webkit-scrollbar {
  display: none;
}

.piece-phones > video,
.piece-phones > .reel-video,
.shot {
  flex: 0 0 auto;
  width: auto;
  height: min(500px, 68vh);
  scroll-snap-align: start;
  background: transparent;
}

.reel-video {
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.45s var(--ease);
}

.reel-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  clip-path: inset(0 round 16px);
  transform: translateZ(0);
  background: #fff;
}

.piece-phones > video {
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

.shot {
  padding: 0;
  border: 0;
  cursor: grab;
}

.piece-phones.is-dragging,
.piece-phones.is-dragging .shot {
  cursor: grabbing;
}

.shot img {
  display: block;
  height: 100%;
  width: auto;
  pointer-events: none;
}

.shot img {
  border-radius: 12px;
  transition: transform 0.45s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .shot:hover img {
    transform: scale(1.04);
  }

  .piece-phones.is-dragging .shot:hover img {
    transform: none;
  }
}

@media (pointer: coarse) {
  .piece video {
    pointer-events: none;
  }
}

.zoom {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #070706;
  user-select: none;
  -webkit-user-select: none;
}

.zoom-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}

.zoom-field img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.zoom .viewer-bar {
  pointer-events: none;
}

.zoom .viewer-bar button,
.zoom .viewer-count {
  pointer-events: auto;
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #070706;
}

.viewer-bar,
.viewer-arrow {
  position: absolute;
  z-index: 2;
}

.viewer-bar {
  top: 22px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.viewer-actions {
  display: flex;
  gap: 22px;
}

.viewer-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.viewer-close,
.viewer-arrow {
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 8px 0;
}

.viewer-close:hover,
.viewer-close:focus-visible,
.viewer-arrow:hover,
.viewer-arrow:focus-visible {
  color: var(--accent);
}

.viewer-arrow:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.viewer-prev { left: 28px; top: 50%; }
.viewer-next { right: 28px; top: 50%; }

.minimap {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 8px;
  background: rgba(7, 7, 6, 0.78);
  border: 1px solid rgba(239, 236, 230, 0.12);
}

.minimap-screen {
  width: 32px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  opacity: 0.45;
}

.minimap-screen img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.minimap-screen.is-current,
.minimap-screen:hover,
.minimap-screen:focus-visible {
  border-color: var(--accent);
  opacity: 1;
}

.viewer-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}

.viewer-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.viewer-track.is-drag {
  transition: none;
}

.viewer-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px 72px 40px;
  margin: 0;
}

.viewer-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

html.viewer-open,
html.viewer-open body {
  overflow: hidden;
}

.piece.is-open .piece-panel,
.reduce .piece-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

@media (hover: none) {
  .piece-panel {
    grid-template-rows: 1fr;
    opacity: 1;
  }
}

.focus {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.focus li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.focus li:last-child {
  border-bottom: 1px solid var(--line);
}

.focus li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease);
}

.fn {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.ft {
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.contacts {
  margin-top: 12px;
  font-style: normal;
}

.crow {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.contacts .crow:last-child {
  border-bottom: 1px solid var(--line);
}

.crow span:first-child {
  color: var(--faint);
  font-size: 14px;
}

.crow span:last-child {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

a.crow[target="_blank"] span:last-child::after {
  content: " ↗";
  font-size: 0.72em;
  color: var(--faint);
}

.site-foot {
  padding: 28px 0 36px;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

.foot-row p {
  margin: 0;
}

.js:not(.reduce) .reveal.in .section-h {
  animation: wipe 0.95s var(--ease) both;
}

.js:not(.reduce) .reveal:not(.in) .section-h {
  animation: none;
}

.js:not(.reduce) .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js:not(.reduce) .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.28); }
  50% { transform: scaleY(2.15); }
}

@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

@keyframes fade {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wipe {
  from { clip-path: inset(0 100% -0.24em 0); }
  to { clip-path: inset(0 0 -0.24em 0); }
}

@media (hover: hover) and (pointer: fine) {
  .focus li:hover::after {
    transform: scaleX(1);
  }

  a.crow:hover span:last-child {
    color: var(--accent);
  }
}

@media (max-width: 980px) {
  .job,
  .study,
  .group,
  .study-row,
  .piece {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .group-h {
    position: static;
  }
}

@media (max-width: 880px), ((pointer: coarse) and (max-width: 1080px)) {
  #cursor {
    display: none !important;
  }

  .has-cursor,
  .has-cursor * {
    cursor: auto !important;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .wrap,
  .piece,
  .piece-panel,
  .piece-panel-inner,
  .piece-rail,
  .piece-phones,
  .piece-media {
    min-width: 0;
    max-width: 100%;
  }

  .piece.is-open .piece-panel-inner {
    overflow-x: clip;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .wrap {
    width: min(1180px, calc(100% - 32px));
  }

  .poster-word {
    font-size: 17vw;
  }

  .nav {
    height: auto;
    min-height: var(--nav-h);
  }

  .nav-inner {
    min-height: var(--nav-h);
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    flex: none;
    margin-left: 12px;
    margin-right: 52px;
  }

  .nav-side {
    display: contents;
  }

  .sound {
    top: 18px;
    right: 16px;
    bottom: auto;
    left: auto;
    z-index: 50;
    width: 36px;
    height: 36px;
  }

  #site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 4px 0 18px;
  }

  #site-nav.open {
    display: flex;
  }

  .section-head,
  .tools-intro,
  .foot-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .count {
    white-space: normal;
  }

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

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

  .study-row {
    grid-template-columns: 1fr;
  }

  .viewer-slide {
    padding: 72px 20px 64px;
  }

  .piece-media {
    grid-template-columns: 1fr;
  }

  .piece-phones {
    scroll-snap-type: x mandatory;
    padding-inline: 0;
  }

  .piece-phones > video,
  .piece-phones > .reel-video,
  .piece-phones .shot {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .piece-phones .shot img,
  .piece-phones > video,
  .reel-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .viewer-prev,
  .viewer-next {
    display: none;
  }
}

@media (pointer: coarse) {
  .viewer-prev,
  .viewer-next {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 881px) {
  .poster-word {
    font-size: min(16vw, 36vh);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

@media print {
  .nav,
  .progress,
  .noise,
  .sound,
  .viewer,
  .zoom,
  .mark,
  #cursor,
  .fisher,
  .fishing-line,
  .catch-entry,
  .depth,
  .filters,
  .subnav,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  a {
    color: #111;
    text-decoration: underline;
  }

  .hero {
    min-height: 0;
  }
}

html.game-open,
html.game-open body {
  overflow: hidden;
}

.catch-entry {
  display: none;
}

.depth {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #0e0d0b;
  color: var(--text);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  user-select: none;
  clip-path: circle(0px at 50% 100%);
  transition: opacity 0.45s var(--ease), clip-path 0.8s var(--ease);
}

.depth.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.depth canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.depth-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.45);
}

.depth-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 28px 32px;
  pointer-events: none;
}

.depth-bar,
.depth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.depth button {
  pointer-events: auto;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 8px 0;
  cursor: pointer;
}

.depth button:hover,
.depth button:focus-visible {
  color: var(--accent);
}

.depth-score {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.05em;
  pointer-events: none;
}

.depth-score[hidden] {
  display: none !important;
}

.depth-ticks,
.depth-wear {
  display: flex;
  gap: 8px;
  margin: 0;
}

.depth-ticks i,
.depth-wear i {
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(239, 236, 230, 0.28);
}

.depth-ticks i.is-on {
  background: var(--accent);
}

.depth-wear i.is-on {
  background: rgba(239, 236, 230, 0.72);
}

.depth-hint,
.depth-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: opacity 0.4s var(--ease);
}

.depth-hint.is-gone {
  opacity: 0;
}

.depth-end {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 3;
}

.depth-end[hidden] {
  display: none !important;
}

.depth-title {
  margin: 0 0 8px;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.depth-end .depth-sub {
  max-width: 28ch;
}

@media (max-width: 880px), ((pointer: coarse) and (max-width: 1080px)) {
  .catch-entry {
    position: fixed;
    right: 22px;
    bottom: 18px;
    z-index: 45;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font: 600 22px/1 var(--font);
    letter-spacing: -0.04em;
    cursor: pointer;
    opacity: 0.72;
  }

  .catch-entry:hover,
  .catch-entry:focus-visible {
    opacity: 1;
    color: var(--accent);
  }

  .depth-ui {
    padding: 18px 18px 24px;
  }
}
