@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --background: #ffffff;
  --foreground: #000000;
  --muted: #f2f2f2;
  --accent: #ff3000;
  --border: #000000;
  --font-sans: "Inter", Helvetica, Arial, sans-serif;
  --border-strong: 4px;
  --border-standard: 2px;
  --motion-fast: 160ms linear;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--background); scroll-behavior: smooth; }
body { margin: 0; color: var(--foreground); background: var(--background); font-family: var(--font-sans); line-height: 1.62; -webkit-font-smoothing: antialiased; }
body::before { position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: .016; content: ""; filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3C/svg%3E%23n"); }
img { max-width: 100%; }
a { color: inherit; }
figure { margin: 0; }
::selection { color: var(--foreground); background: var(--accent); }
.theme-toggle { display: none !important; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.section-page { width: min(calc(100% - 48px), 1380px); margin: 0 auto; padding: 22px 0 100px; }
.back { min-height: 48px; display: inline-flex; align-items: center; margin: 0 6px 24px 0; padding: 0 16px; border: 2px solid var(--foreground); color: var(--foreground); background: var(--background); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast); }
.back:hover { color: var(--foreground); background: var(--accent); transform: translateY(-1px); }

.section-hero {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(440px,7fr);
  gap: 0;
  align-items: stretch;
  min-height: 700px;
  border: 4px solid var(--foreground);
  background-color: var(--muted);
  background-image:
    linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px),
    linear-gradient(90deg,rgba(0,0,0,.035) 1px,transparent 1px);
  background-size: 24px 24px;
}
.section-hero > div { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px,6vw,84px); border-right: 4px solid var(--foreground); }
.label { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; color: var(--foreground); font-size: 10px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.label::before { width: 34px; height: 4px; background: var(--accent); content: ""; }
.section-hero h1 { max-width: 100%; margin: 0 0 28px; font-size: clamp(48px,5.4vw,72px); font-weight: 900; letter-spacing: -.055em; line-height: .9; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; text-transform: uppercase; text-wrap: balance; }
.section-hero p { max-width: 56ch; margin: 0; font-size: 15px; line-height: 1.75; }
.section-hero img { width: 100%; height: min(760px, calc(100vh - 120px)); min-height: 700px; align-self: center; display: block; object-fit: cover; filter: none; transition: transform var(--motion-fast); }
.section-hero:hover img { transform: scale(1.01); }

section { margin-top: 16px; padding: clamp(78px,9vw,124px) clamp(22px,4vw,60px); border: 2px solid var(--foreground); }
section:nth-of-type(odd) { background: var(--background); }
section:nth-of-type(even) {
  background-color: var(--muted);
  background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 16px 16px;
}
.archive-heading { display: grid; grid-template-columns: minmax(0,8fr) minmax(260px,4fr); gap: 46px; align-items: end; margin-bottom: 50px; }
.archive-heading h2,
.experience-block h2,
.manuscript h2 { max-width: 900px; margin: 14px 0 0; font-size: clamp(42px,5.8vw,76px); font-weight: 900; letter-spacing: -.06em; line-height: .9; text-transform: uppercase; text-wrap: balance; }
.archive-heading p { max-width: 50ch; margin: 0; font-size: 13px; line-height: 1.75; }

.section-index-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 0; border-top: 2px solid var(--foreground); border-left: 2px solid var(--foreground); }
.section-index-card { position: relative; min-width: 0; min-height: 340px; grid-column: span 6; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 26px; border-right: 2px solid var(--foreground); border-bottom: 2px solid var(--foreground); background: var(--background); text-decoration: none; transition: color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast); }
.section-index-card:first-child { grid-column: span 7; min-height: 500px; }
.section-index-card:nth-child(2) { grid-column: span 5; }
.section-index-card:hover { color: var(--foreground); background: var(--accent); transform: translateY(-1px); }
.section-index-card img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; background: var(--foreground); filter: none; transition: transform var(--motion-fast); }
.section-index-card:hover img { transform: scale(1.02); }
.section-index-card > div { position: relative; z-index: 1; }
.section-index-card:has(img) > div { margin: -26px; padding: 22px 26px 26px; border-top: 2px solid var(--background); color: var(--background); background: var(--foreground); }
.section-index-card:has(img):hover > div { color: var(--foreground); background: var(--accent); }
.section-index-card:has(img):hover small { color: var(--foreground); }
.section-index-card small { display: block; margin-bottom: 12px; color: var(--foreground); font-size: 9px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.section-index-card:has(img) small { color: var(--background); }
.section-index-card h2 { margin: 0; font-size: clamp(31px,4vw,56px); font-weight: 900; letter-spacing: -.055em; line-height: .9; text-transform: uppercase; }
.section-index-card p { max-width: 52ch; margin: 14px 0 0; font-size: 12px; line-height: 1.65; }

.list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 2px solid var(--foreground); border-left: 2px solid var(--foreground); }
.list article { min-width: 0; min-height: 230px; padding: 28px; border-right: 2px solid var(--foreground); border-bottom: 2px solid var(--foreground); background: var(--background); }
.list article:nth-child(4n+2) { background: var(--muted); }
.list article:nth-child(4n+3) { color: var(--background); background: var(--foreground); }
.list article:nth-child(4n+4) { color: var(--foreground); background: var(--accent); }
.list h2 { margin: 0 0 14px; font-size: 32px; font-weight: 900; letter-spacing: -.045em; line-height: .98; text-transform: uppercase; }
.list p { max-width: 55ch; margin: 0; font-size: 13px; line-height: 1.75; }

.experience-block { padding: clamp(78px,9vw,124px) clamp(22px,4vw,60px); }
.experience-block p,
.manuscript p { max-width: 72ch; font-size: 15px; line-height: 1.85; }
.manuscript ul { max-width: 72ch; margin: 12px 0 26px; padding-left: 20px; font-size: 14px; line-height: 1.8; }
.manuscript li + li { margin-top: 7px; }
.manuscript { max-width: 920px; }

.photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-top: 44px; border-top: 2px solid var(--foreground); border-left: 2px solid var(--foreground); background: var(--foreground); }
.photo-grid figure { position: relative; min-width: 0; overflow: hidden; border-right: 2px solid var(--foreground); border-bottom: 2px solid var(--foreground); background: var(--muted); }
.photo-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
.photo-grid img { width: 100%; height: 380px; display: block; object-fit: cover; filter: none; transition: transform var(--motion-fast); }
.photo-grid figure:first-child img { height: 762px; }
.photo-grid figure:hover img { transform: scale(1.02); }
.photo-grid figcaption { min-height: 44px; padding: 10px 12px; border-top: 2px solid var(--foreground); color: var(--background); background: var(--foreground); font-size: 10px; font-weight: 700; text-transform: uppercase; }

.artist-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-top: 2px solid var(--foreground); border-left: 2px solid var(--foreground); }
.artist-grid span { min-width: 0; min-height: 120px; display: flex; align-items: end; padding: 18px; border-right: 2px solid var(--foreground); border-bottom: 2px solid var(--foreground); background: var(--background); font-size: 19px; font-weight: 900; text-transform: uppercase; }
.artist-grid span:nth-child(5n+2) { background: var(--muted); }
.artist-grid span:nth-child(5n+3) { color: var(--background); background: var(--foreground); }
.artist-grid span:nth-child(5n+4) { color: var(--foreground); background: var(--accent); }

.video-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; border-top: 2px solid var(--foreground); border-left: 2px solid var(--foreground); }
.video-grid figure { border-right: 2px solid var(--foreground); border-bottom: 2px solid var(--foreground); }
.video-grid iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; background: var(--foreground); }
.video-grid figcaption { padding: 10px 12px; border-top: 2px solid var(--foreground); font-size: 11px; font-weight: 700; text-transform: uppercase; }

@media (max-width: 920px) {
  .section-hero { grid-template-columns: 1fr; min-height: auto; }
  .section-hero > div { border-right: 0; border-bottom: 4px solid var(--foreground); }
  .section-hero img { height: 540px; min-height: 0; }
  .archive-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-index-card,
  .section-index-card:first-child,
  .section-index-card:nth-child(2) { grid-column: span 6; min-height: 400px; }
  .artist-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .section-page { width: min(calc(100% - 28px),1380px); padding-top: 14px; }
  .back { margin-bottom: 12px; }
  .section-hero > div { padding: 38px 22px; }
  .section-hero h1 { font-size: clamp(42px,12vw,58px); line-height: .92; overflow-wrap: anywhere; }
  .section-hero img { height: 430px; min-height: 0; }
  section { padding: 68px 20px; }
  .section-index-grid { grid-template-columns: 1fr; }
  .section-index-card,
  .section-index-card:first-child,
  .section-index-card:nth-child(2) { grid-column: auto; min-height: 380px; }
  .list { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid figure:first-child { grid-column: auto; grid-row: auto; }
  .photo-grid img,
  .photo-grid figure:first-child img { height: 460px; }
  .artist-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .video-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Accessible full-image viewer */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 4px solid var(--accent); outline-offset: -4px; }
.gallery-lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 96vh;
  margin: auto;
  padding: 0;
  border: 4px solid var(--foreground);
  color: var(--background);
  background: var(--foreground);
}
.gallery-lightbox::backdrop { background: rgba(0,0,0,.9); }
.gallery-lightbox-frame { position: relative; display: grid; grid-template-rows: minmax(0,1fr) auto; min-width: min(96vw, 1500px); max-height: calc(96vh - 8px); }
.gallery-lightbox-image { width: 100%; max-width: 100%; max-height: calc(96vh - 76px); display: block; object-fit: contain; background: var(--foreground); }
.gallery-lightbox-caption { margin: 0; padding: 14px 70px 14px 16px; border-top: 2px solid var(--background); color: var(--background); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gallery-lightbox-close { position: absolute; top: 0; right: 0; z-index: 1; width: 56px; height: 56px; border: 0; border-left: 2px solid var(--foreground); border-bottom: 2px solid var(--foreground); color: var(--foreground); background: var(--accent); font-size: 38px; line-height: 1; cursor: pointer; }
.gallery-lightbox-close:hover, .gallery-lightbox-close:focus-visible { color: var(--background); background: var(--foreground); outline: 0; }
@media (max-width: 560px) {
  .gallery-lightbox { width: 100vw; max-height: 100vh; border-width: 2px; }
  .gallery-lightbox-frame { min-width: 100vw; max-height: 100vh; }
  .gallery-lightbox-image { max-height: calc(100vh - 70px); }
  .gallery-lightbox-caption { padding: 12px 62px 12px 12px; font-size: 10px; }
  .gallery-lightbox-close { width: 52px; height: 52px; }
}
