@font-face {
  font-family: 'ABC Marist';
  src: url('../fonts/ABCMarist-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ABC Marist';
  src: url('../fonts/ABCMarist-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f9f9f5;
  --fg: #1d1d1b;
  --faint: rgba(29, 29, 27, 0.08);
  --font: 'ABC Marist', Georgia, 'Times New Roman', serif;
  --side: clamp(16px, 1.5vw, 24px);
  --ls: 0.02em;
  --ls-tight: 0.01em;
}

[data-theme="dark"] {
  --bg: #141413;
  --fg: #e8e5de;
  --faint: rgba(232, 229, 222, 0.1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-variant-numeric: oldstyle-nums;
  font-feature-settings: 'onum' 1;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
strong, b { font-weight: 400; }

/* ═══════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════ */

.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--fg);
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              height 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.3s ease-out,
              background 0.3s ease-out;
  mix-blend-mode: difference;
  background: transparent;
  will-change: transform;
}

.cursor--active {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

@media (pointer: coarse) {
  .cursor { display: none; }
}

/* ═══════════════════════════════════════════════════════
   PAGE ENTRANCE
   ═══════════════════════════════════════════════════════ */

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  transition: background 0.5s ease-out, color 0.5s ease-out;
  cursor: none;
}

@media (pointer: coarse) {
  body { cursor: auto; }
}

a, button { cursor: none; }

@media (pointer: coarse) {
  a, button { cursor: pointer; }
}

body { opacity: 0; }

.page-enter {
  opacity: 0;
}

.page-enter.page-visible {
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

::selection { background: rgba(29, 29, 27, 0.12); }
[data-theme="dark"] ::selection { background: rgba(232, 229, 222, 0.16); }

/* ═══════════════════════════════════════════════════════
   NAV
   Hero pages: white over image, transitions to --fg on scroll.
   Interior pages: always --fg.
   ═══════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--side);
  color: #fff;
  transition: padding 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              background 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              color 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav--scrolled {
  padding: var(--side);
  background: var(--bg);
  color: var(--fg);
}

.nav--interior {
  color: var(--fg);
}

.nav__logo {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  transition: opacity 0.3s ease-out;
}

.nav__logo:hover { opacity: 0.6; }

.nav__center {
  display: flex;
  gap: 8px;
  list-style: none;
  justify-self: center;
  padding: 0;
  margin: 0;
}

.nav__center li:not(:last-child) a::after {
  content: ',';
  margin-left: 1px;
}

.nav__center a {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  transition: opacity 0.3s ease-out;
}

.nav__center a:hover { opacity: 0.6; }

.nav__center a.active {
  font-weight: 400;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.nav__toggle {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  background: none;
  border: none;
  color: inherit;
  cursor: none;
  padding: 0;
  transition: opacity 0.3s ease-out;
}

@media (pointer: coarse) {
  .nav__toggle { cursor: pointer; }
}

.nav__toggle:hover { opacity: 0.6; }

.nav__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: none;
  width: 20px;
  height: 10px;
  position: relative;
  z-index: 110;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.nav__menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease-out, top 0.3s ease-out, bottom 0.3s ease-out;
}

.nav__menu-btn span:nth-child(1) { top: 0; }
.nav__menu-btn span:nth-child(2) { bottom: 0; }


/* ═══════════════════════════════════════════════════════
   MOBILE NAV OVERLAY
   ═══════════════════════════════════════════════════════ */

.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 105;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--side);
  padding-bottom: var(--side);
}

.nav__overlay.open {
  display: flex;
}

.nav__overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--side);
}

.nav__overlay-logo {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  color: var(--fg);
  transition: opacity 0.3s ease-out;
}

.nav__overlay-logo:hover { opacity: 0.6; }

.nav__overlay-close {
  position: relative;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
}

.nav__overlay-close::before,
.nav__overlay-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--fg);
}

.nav__overlay-close::before { transform: rotate(45deg); }
.nav__overlay-close::after { transform: rotate(-45deg); }

.nav__overlay-close:hover { opacity: 0.6; }

.nav__overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: clamp(40px, 6vh, 64px);
}

.nav__overlay-links a {
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fg);
  transition: opacity 0.3s ease-out;
  padding: 6px 0;
  line-height: 1.1;
}

.nav__overlay-links a.active { font-weight: 400; }
.nav__overlay-links a:hover { opacity: 0.6; }

.nav__overlay-controls {
  position: absolute;
  bottom: var(--side);
  left: var(--side);
  display: flex;
  gap: 24px;
}

.nav__overlay-controls button {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  color: var(--fg);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s ease-out;
}

.nav__overlay-controls button:hover { opacity: 0.6; }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */

.hero {
  height: 100vh;
  height: 100svh;
  position: relative;
}

.hero__img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__img img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.hero__slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero__slide.active {
  opacity: 1;
}

.hero__caption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 24px var(--side);
  display: flex;
  justify-content: center;
  color: #fff;
}

.hero__tag {
  font-size: 14px;
  font-style: italic;
  letter-spacing: var(--ls);
}

/* ═══════════════════════════════════════════════════════
   INTRO — large editorial paragraph, Sean Hazen-inspired
   ═══════════════════════════════════════════════════════ */

.intro {
  padding: clamp(80px, 12vw, 200px) clamp(40px, 14vw, 240px);
  max-width: 1400px;
  margin: 0 auto;
}

.intro__text {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-align: justify;
  text-indent: 2em;
}

.intro__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.intro__text strong {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.85em;
  text-decoration: none;
}

.intro__text em {
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════
   FEED — editorial project grid
   Three caption lines: NAME bold uppercase,
   description italic, year book weight.
   ═══════════════════════════════════════════════════════ */

.feed {
  padding: clamp(80px, 10vw, 160px) var(--side);
}

.feed__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.feed__heading {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
}

.feed__view-all {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feed__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.feed__link {
  display: block;
}

.feed__img {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.feed__img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.feed__img img:not(:first-child) {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.feed__img img.slide-active {
  opacity: 1;
}

.feed__caption { line-height: 1.15; }

.feed__name {
  display: block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  line-height: 1.15;
}

.feed__desc {
  display: block;
  font-size: 15px;
  font-style: italic;
  letter-spacing: var(--ls-tight);
  margin-top: 2px;
  line-height: 1.2;
}

.feed__year {
  display: block;
  font-size: 14px;
  margin-top: 1px;
  color: var(--fg);
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════
   TICKER — archive marquee on homepage
   ═══════════════════════════════════════════════════════ */

.ticker {
  padding: clamp(80px, 10vw, 160px) 0;
}

.ticker__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 0 var(--side);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.ticker__heading {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
}

.ticker__view-all {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ticker__track {
  overflow: hidden;
  width: 100%;
}

.ticker__strip {
  display: flex;
  gap: clamp(12px, 1.5vw, 20px);
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}

.ticker__strip:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker__item {
  flex-shrink: 0;
  display: block;
}

.ticker__img {
  position: relative;
  overflow: hidden;
  width: clamp(240px, 22vw, 360px);
  aspect-ratio: 3 / 4;
}

.ticker__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticker__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ticker__item:hover .ticker__overlay {
  opacity: 1;
}

.ticker__name {
  display: block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}

.ticker__year {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════
   SECTION LABEL — used on Work, Thinking
   ═══════════════════════════════════════════════════════ */

.section-label {
  padding: 140px var(--side) 48px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  color: var(--fg);
}

/* ═══════════════════════════════════════════════════════
   WORK INDEX — typographic list, serif project names
   ═══════════════════════════════════════════════════════ */

.work-index {
  padding: 0 var(--side) clamp(80px, 10vw, 160px);
  position: relative;
}

.work-index__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--faint);
  transition: opacity 0.35s ease-out;
}

.work-index__item:last-child { border-bottom: 1px solid var(--faint); }

.work-index:hover .work-index__item { opacity: 0.2; }
.work-index:hover .work-index__item:hover { opacity: 1; }

.work-index__name {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.work-index__cat {
  font-size: 16px;
  font-style: italic;
  letter-spacing: var(--ls-tight);
}

/* ═══════════════════════════════════════════════════════
   WORK GRID — image thumbnails, Sean Hazen-inspired
   ═══════════════════════════════════════════════════════ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  padding: 0 var(--side) clamp(80px, 10vw, 160px);
}

.work-grid__item {
  display: block;
  transition: opacity 0.35s ease-out;
}

.work-grid:hover .work-grid__item { opacity: 0.4; }
.work-grid:hover .work-grid__item:hover { opacity: 1; }

.work-grid__img {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.work-grid__img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.work-grid__img img:not(:first-child) {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.work-grid__img img.slide-active {
  opacity: 1;
}

.work-grid__name {
  display: block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  line-height: 1;
}

.work-grid__desc {
  display: block;
  font-size: 15px;
  font-style: italic;
  letter-spacing: var(--ls-tight);
  margin-top: 2px;
  line-height: 1.2;
}

.work-grid__year {
  display: block;
  font-size: 14px;
  margin-top: 1px;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════
   PROJECT DETAIL
   ═══════════════════════════════════════════════════════ */

.proj-cover {
  overflow: hidden;
}
.proj-cover img {
  width: 100%;
  will-change: transform;
}

.proj-head {
  padding: clamp(64px, 8vw, 120px) var(--side) clamp(48px, 6vw, 80px);
  max-width: 900px;
}

.proj-name {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.proj-meta {
  display: flex;
  gap: clamp(32px, 4vw, 64px);
}

.proj-meta__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proj-meta__label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proj-meta__value {
  font-size: 14px;
  font-style: italic;
  letter-spacing: var(--ls-tight);
}

.proj-body {
  padding: clamp(48px, 6vw, 96px) var(--side);
  max-width: 720px;
}

.proj-body p {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  letter-spacing: 0.005em;
}

.proj-body p + p { margin-top: 1.4em; }

.proj-section {
  padding: 0 var(--side);
  max-width: 720px;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.proj-section__label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.proj-section p {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  letter-spacing: 0.005em;
}

.proj-section p + p { margin-top: 1.4em; }

.proj-credits {
  display: flex;
  gap: clamp(48px, 6vw, 96px);
  padding: clamp(56px, 7vw, 96px) var(--side) clamp(40px, 5vw, 64px);
  max-width: 720px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

.proj-credits__col {
  flex: 1;
}

.proj-credits__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proj-credits__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proj-credits__role {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proj-credits__name {
  font-size: 14px;
  font-style: italic;
  letter-spacing: var(--ls-tight);
}

.proj-download {
  padding: 0 var(--side);
}

.proj-download__link {
  font-size: 14px;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  color: inherit;
  transition: opacity 0.3s ease;
}

.proj-download__link:hover {
  opacity: 0.5;
}

.proj-full {
  padding: 0 var(--side);
  margin-bottom: clamp(56px, 7vw, 96px);
}
.proj-full img { width: 100%; cursor: pointer; }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(80px) saturate(1.2);
  transform: scale(1.3);
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88vw;
  height: 100vh;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
  border-radius: 2px;
}

.lightbox__close {
  position: absolute;
  top: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  z-index: 2;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.lightbox__close::before,
.lightbox__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--fg);
}

.lightbox__close::before { transform: rotate(45deg); }
.lightbox__close::after  { transform: rotate(-45deg); }
.lightbox__close:hover { opacity: 0.5; }

.lightbox__controls {
  position: absolute;
  bottom: clamp(20px, 3vh, 36px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.lightbox__arrow {
  background: none;
  border: none;
  color: var(--fg);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: opacity 0.3s ease;
}

.lightbox__arrow:hover { opacity: 0.5; }

.lightbox__dots {
  display: flex;
  gap: 8px;
}

.lightbox__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 25%, transparent);
  transition: background 0.3s ease;
}

.lightbox__dot.active {
  background: var(--fg);
}

.proj-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  padding: 0 var(--side);
  margin-bottom: clamp(56px, 7vw, 96px);
}

.proj-pair img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  cursor: pointer;
}

.proj-nav {
  display: flex;
  justify-content: center;
  gap: clamp(120px, 20vw, 360px);
  padding: clamp(48px, 6vw, 80px) var(--side);
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  margin-top: clamp(40px, 5vw, 72px);
}

.proj-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: opacity 0.35s ease-out;
}

.proj-nav__link:hover { opacity: 0.6; }

.proj-nav__label {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
}

.proj-nav__arrow {
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════
   THINKING — index grid
   ═══════════════════════════════════════════════════════ */

.thinking {
  padding: 0 var(--side) clamp(80px, 10vw, 160px);
  max-width: 900px;
}

a.thinking__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  color: inherit;
  text-decoration: none;
  padding: clamp(20px, 3vw, 32px) 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  transition: opacity 0.35s ease-out;
}

.thinking__item:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

.thinking:hover .thinking__item { opacity: 0.2; }
.thinking:hover .thinking__item:hover { opacity: 1; }

.thinking__title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.thinking__date {
  font-size: 14px;
  white-space: nowrap;
}

.thinking__preview {
  position: fixed;
  right: var(--side);
  top: 50%;
  transform: translateY(-50%) scale(0.96);
  width: clamp(300px, 30vw, 480px);
  aspect-ratio: 3 / 4;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.thinking__preview.visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.thinking__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════
   ESSAY — article detail
   ═══════════════════════════════════════════════════════ */

.essay {
  padding-bottom: clamp(80px, 10vw, 160px);
}

.essay__header {
  text-align: center;
  padding: clamp(120px, 18vw, 280px) var(--side) clamp(40px, 6vw, 80px);
}

.essay__title {
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: none;
  margin: 0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.essay__date {
  font-size: 14px;
  font-style: italic;
  letter-spacing: var(--ls-tight);
  margin-top: 8px;
  display: inline-block;
}

.essay__body {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--side);
}

.essay__body p {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.7;
  letter-spacing: var(--ls-tight);
  margin-bottom: 1.4em;
}

.essay__body p:last-child { margin-bottom: 0; }

.essay__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 24px);
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--side);
}

.essay__img img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.essay__full {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--side);
}

.essay__full img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════ */

.about {
  padding: 160px var(--side) clamp(80px, 10vw, 160px);
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}

.about__photo img {
  width: 100%;
  object-fit: cover;
}

.about__label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 28px;
}

.about__text {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  margin-bottom: 64px;
}

.about__text p + p { margin-top: 1.4em; }

.about__cv-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--faint);
}

.cv-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.55;
}

.cv-row__year { color: var(--fg); }

.cv-row__text { font-style: italic; }

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */

.contact {
  padding: 0 var(--side);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.contact__inner { max-width: 620px; }

.contact__heading {
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 32px;
}

.contact__text {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg);
  max-width: 440px;
  margin-bottom: 48px;
}

.contact__links {
  display: flex;
  gap: 28px;
}

.contact__link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  transition: opacity 0.3s ease-out;
  position: relative;
}

.contact__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.35s ease-out;
}

.contact__link:hover { opacity: 0.6; }
.contact__link:hover::after { width: 100%; }

/* ═══════════════════════════════════════════════════════
   ARCHIVE — staggered masonry grid
   ═══════════════════════════════════════════════════════ */

.archive {
  padding: 0 var(--side) clamp(80px, 10vw, 160px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--side);
  row-gap: var(--side);
  align-items: start;
}

.archive__item:nth-child(even) {
  margin-top: clamp(80px, 14vw, 220px);
}

.archive__item--wide {
  grid-column: 1 / -1;
  max-width: 70%;
}

.archive__item--wide:nth-child(even) {
  margin-left: auto;
}

.archive__img {
  position: relative;
  overflow: hidden;
}

.archive__img img {
  width: 100%;
  display: block;
}

.archive__img img:not(:first-child) {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.archive__img img.slide-active {
  opacity: 1;
}

.archive__caption {
  padding-top: 14px;
}

.archive__type {
  display: block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  line-height: 1;
}

.archive__title {
  display: block;
  font-size: 16px;
  font-style: italic;
  letter-spacing: var(--ls-tight);
  margin-top: 2px;
  line-height: 1.2;
}

a.archive__item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.archive__year {
  display: block;
  font-size: 14px;
  margin-top: 1px;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════
   ARCHIVE DETAIL
   ═══════════════════════════════════════════════════════ */

.archive-detail__header {
  text-align: center;
  padding: clamp(120px, 18vw, 280px) var(--side) clamp(80px, 12vw, 200px);
}

.archive-detail__type {
  display: none;
}

.archive-detail__title {
  font-size: 18px !important;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0;
}

.archive-detail__subtitle {
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: var(--ls-tight);
  margin: 4px 0 0;
  line-height: 1.3;
}

.archive-detail__year {
  display: block;
  font-size: 18px;
  margin-top: 4px;
  letter-spacing: var(--ls);
}

.archive-detail__grid {
  padding: 0 clamp(16px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(16px, 4vw, 64px);
  row-gap: clamp(16px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(80px, 10vw, 160px);
}

.archive-detail__img {
  overflow: hidden;
}

.archive-detail__img img {
  width: 100%;
  display: block;
}

.archive-detail__img:nth-child(even) {
  margin-top: clamp(80px, 14vw, 220px);
}

.archive-detail__img--full {
  grid-column: 1 / -1;
  max-width: 70%;
}

.archive-detail__img--full:nth-child(even) {
  margin-left: auto;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.footer {
  padding: clamp(32px, 4vw, 56px) var(--side) var(--side);
}

.footer__top {
  margin-bottom: clamp(12px, 2vw, 20px);
}

.footer__name {
  display: inline-block;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 0;
}

.footer__tagline {
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: var(--ls);
  text-align: center;
  color: var(--fg);
  margin: 0;
}

.footer__year {
  display: block;
  margin-top: clamp(16px, 2vw, 28px);
  font-size: 11px;
  letter-spacing: var(--ls);
  text-align: center;
  text-transform: uppercase;
  color: var(--fg);
}

/* ═══════════════════════════════════════════════════════
   REVEAL — subtle, Apple-like
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   WORK INDEX HOVER PREVIEW — floating image follows cursor
   ═══════════════════════════════════════════════════════ */

.work-index__preview {
  position: fixed;
  width: 320px;
  height: 220px;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.work-index__preview.visible {
  opacity: 1;
  transform: scale(1);
}

.work-index__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════
   REVEAL — staggered cascade, area17-inspired
   ═══════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* Line-by-line text reveal */
.line-reveal {
  overflow: hidden;
  display: block;
}

.line-reveal__inner {
  display: block;
  transform: translateY(105%);
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.revealed .line-reveal__inner {
  transform: none;
}

.line-reveal:nth-child(2) .line-reveal__inner { transition-delay: 0.06s; }
.line-reveal:nth-child(3) .line-reveal__inner { transition-delay: 0.12s; }
.line-reveal:nth-child(4) .line-reveal__inner { transition-delay: 0.18s; }

/* Image reveal with clip */
[data-reveal-image] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-reveal-image].revealed {
  clip-path: inset(0 0 0 0);
}

/* Horizontal line grow */
.line-grow {
  width: 0;
  height: 1px;
  background: var(--faint);
  transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.line-grow.revealed {
  width: 100%;
}

/* Counter / number animation handled in JS */

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — tablet archive detail (touch devices)
   ═══════════════════════════════════════════════════════ */

@media (pointer: coarse) and (max-width: 1400px) {
  .archive-detail__grid {
    grid-template-columns: 1fr;
    padding: 0 var(--side);
    column-gap: var(--side);
    row-gap: var(--side);
  }
  .archive-detail__img:nth-child(even) {
    margin-top: 0;
  }
  .archive-detail__img--full {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — 1024px (tablet), 768px (mobile)
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .nav__center { gap: 20px; }
  .nav__center a { font-size: 18px; }
  .nav__toggle { font-size: 18px; }

  .work-index__name { font-size: 16px; }
  .work-index__cat { font-size: 15px; }

}

@media (max-width: 1024px) {
  :root { --side: 16px; }

  .nav__center,
  .nav__toggle { display: none; }
  .work-index__preview { display: none; }

  .nav {
    display: flex;
    justify-content: space-between;
    padding: var(--side);
  }

  .nav__menu-btn { display: block; }

  /* Hero */
  .hero__caption {
    padding: 20px var(--side);
  }

  .hero__tag { font-size: 13px; }

  /* Intro */
  .intro { padding: 48px clamp(24px, 8vw, 60px); }
  .intro__text { font-size: 24px; text-align: left; }

  /* Feed */
  .feed { padding: 56px var(--side); }
  .feed__grid { grid-template-columns: 1fr; gap: 40px; }

  .feed__name { font-size: 11px; }
  .feed__desc { font-size: 15px; }
  .feed__year { font-size: 11px; }
  .feed__img { margin-bottom: 16px; }

  /* Section label */
  .section-label {
    padding: 110px var(--side) 32px;
    font-size: 14px;
  }

  /* Work index */
  .work-index__item {
    flex-direction: column;
    gap: 6px;
    padding: 22px 0;
  }

  .work-index__name { font-size: 26px; }
  .work-index__cat { font-size: 15px; }

  /* Work grid */
  .work-grid { grid-template-columns: 1fr 1fr; }

  /* Project detail */
  .proj-cover { }

  .proj-head {
    padding: 40px var(--side) 36px;
  }

  .proj-name { font-size: 28px; }

  .proj-meta { flex-wrap: wrap; gap: 24px; }
  .proj-meta__label { font-size: 11px; }
  .proj-meta__value { font-size: 14px; }

  .proj-body {
    padding: 40px var(--side);
    max-width: 100%;
  }

  .proj-body p { font-size: 17px; line-height: 1.5; }

  .proj-section { max-width: 100%; margin-bottom: 40px; }
  .proj-section p { font-size: 17px; line-height: 1.5; }
  .proj-section__label { margin-bottom: 12px; }

  .proj-full { margin-bottom: 40px; }
  .proj-pair { grid-template-columns: 1fr; margin-bottom: 40px; }

  .proj-credits { flex-direction: column; gap: 32px; max-width: 100%; padding: 40px var(--side) 32px; }

  .proj-download { margin-bottom: 0; }

  .proj-nav { gap: 80px; padding: 48px var(--side); margin-top: 40px; }

  /* Thinking index */
  .thinking__item { flex-direction: column; gap: 4px; padding: 20px 0; }
  .thinking__title { font-size: clamp(22px, 5vw, 28px); }
  .thinking__date { font-size: 13px; }
  .thinking__preview { display: none; }

  /* Essay detail */
  .essay__header { padding: 100px var(--side) 32px; }
  .essay__body { padding: clamp(32px, 5vw, 56px) var(--side); }
  .essay__body p { font-size: 17px; }

  /* About */
  .about {
    grid-template-columns: 1fr;
    padding-top: 110px;
    gap: 36px;
  }

  .about__text { font-size: 17px; line-height: 1.5; margin-bottom: 48px; }
  .about__cv-label { font-size: 11px; }
  .cv-row { font-size: 14px; }

  /* Archive */
  .archive {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--side);
    row-gap: var(--side);
  }

  .archive__item:nth-child(even) {
    margin-top: 40px;
  }

  .archive__item--wide {
    max-width: 100%;
  }

  .archive__type { font-size: 11px; }
  .archive__title { font-size: 15px; }
  .archive__year { font-size: 11px; }

  /* Archive Detail */
  .archive-detail__grid {
    grid-template-columns: 1fr;
    padding: 0 var(--side);
    column-gap: var(--side);
    row-gap: var(--side);
  }
  .archive-detail__img:nth-child(even) {
    margin-top: 0;
  }
  .archive-detail__img--full {
    max-width: 100%;
  }

  /* Contact */
  .contact__heading { font-size: 16px; margin-bottom: 24px; }
  .contact__text { font-size: 16px; margin-bottom: 36px; }
  .contact__links { flex-direction: column; gap: 16px; }
  .contact__link { font-size: 14px; padding: 4px 0; }

  /* Footer */
  .footer {
    padding: 48px var(--side) var(--side);
  }

  .footer__top {
    margin-bottom: 16px;
  }
}
