:root {
  color-scheme: light;
  --bg: #f3f0e9;
  --paper: #fbfaf6;
  --ink: #121416;
  --muted: #6f7479;
  --line: #d3cfc4;
  --cyan: #16a9bc;
  --yellow: #efbb24;
  --red: #d43125;
  --blue: #1757a6;
  --black: #0d1012;
  --max: 1500px;
  --shadow: 0 20px 50px rgba(17, 20, 23, .12);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); }
body.viewer-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 1000;
  padding: 10px 14px; background: #fff; color: #111; border: 1px solid #111;
}
.skip-link:focus { top: 12px; }

.site-header {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand strong { font-size: 28px; letter-spacing: -.065em; }
.brand span { color: #858a8e; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover { color: var(--cyan); }

.page, .gallery-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.eyebrow { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #43484c; color: #e6eaed; background: transparent;
  text-decoration: none; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase;
}
.btn.primary { color: #111; background: #fff; border-color: #fff; }
.btn:hover { border-color: var(--cyan); color: #fff; }
.btn.primary:hover { background: var(--blue); border-color: var(--blue); }

.hero {
  margin: 18px 0 28px; min-height: min(760px, calc(100svh - 108px));
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(430px, .68fr);
  overflow: hidden; color: #fff; background: var(--black); box-shadow: var(--shadow);
}
.hero.orientation-landscape { grid-template-columns: minmax(0, 1.08fr) minmax(400px, .55fr); }
.hero-art { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; background: #15181a; }
.hero-art img { width: 100%; height: 100%; max-height: 760px; object-fit: contain; object-position: center; }
.hero-copy {
  position: relative; padding: clamp(30px, 4vw, 54px); display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(150deg, #15191c, #0c0e10);
}
.hero-copy::before { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 38%; background: var(--red); }
.hero-copy::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34%; height: 8px; background: var(--yellow); }
.hero-kicker { margin: 14px 0 10px; color: #a8adb1; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 570px; font-size: clamp(46px, 6vw, 84px); line-height: .9; letter-spacing: -.065em; }
.hero p { max-width: 600px; margin: 24px 0 0; color: #c8cdd1; font-size: 15px; line-height: 1.62; }

.statement {
  padding: 50px 8px; display: grid; grid-template-columns: .36fr 1fr; gap: 54px; border-bottom: 1px solid var(--line);
}
.statement p { max-width: 980px; margin: 0; font-size: clamp(25px, 3vw, 42px); font-weight: 650; line-height: 1.16; letter-spacing: -.035em; }

.collections-section { padding-top: 48px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.section-head h2 { margin: 4px 0 0; font-size: clamp(38px, 5vw, 66px); line-height: .95; letter-spacing: -.055em; }
.section-head p { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 64px; }
.collection-card { display: block; min-width: 0; overflow: hidden; color: #fff; background: var(--black); text-decoration: none; box-shadow: 0 8px 26px rgba(17,20,23,.08); }
.collection-media { height: clamp(300px, 42vw, 530px); display: flex; align-items: center; justify-content: center; overflow: hidden; background: #171a1c; }
.collection-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.collection-card:hover .collection-media img { transform: scale(1.012); }
.collection-copy { min-height: 86px; padding: 15px 18px; display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; }
.collection-index { color: var(--cyan); font-family: Consolas, monospace; font-size: 10px; font-weight: 900; }
.collection-copy h3 { margin: 0; font-size: 25px; line-height: 1; letter-spacing: -.035em; }
.collection-copy p { margin: 5px 0 0; color: #aab0b5; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.collection-arrow { font-size: 24px; color: var(--yellow); }

.archive {
  margin: 0 0 58px; padding: 44px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 56px; align-items: center;
  color: #fff; background: var(--black);
}
.archive h2 { margin: 8px 0 0; font-size: clamp(38px, 5vw, 66px); line-height: .92; letter-spacing: -.055em; }
.archive p { margin: 0; color: #bdc3c7; font-size: 15px; line-height: 1.7; }

.site-footer {
  min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border-top: 1px solid var(--line); color: #777d82; font-size: 11px;
}
.site-footer strong { color: #222; font-size: 18px; letter-spacing: -.05em; }
.system-link { color: #8b9094; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.system-link:hover { color: var(--cyan); }
.empty { padding: 24px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.35); }

/* Gallery */
.gallery-intro { padding: 48px 0 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.gallery-intro h1 { margin: 6px 0 0; font-size: clamp(54px, 8vw, 96px); line-height: .88; letter-spacing: -.065em; }
.gallery-intro p { max-width: 760px; margin: 18px 0 0; color: #60666b; }
.gallery-tools { position: sticky; top: 0; z-index: 30; margin-bottom: 14px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: rgba(243,240,233,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.collection-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.collection-chip { flex: 0 0 auto; min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid #bbb7ae; background: transparent; color: #4c5155; text-decoration: none; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.collection-chip.active { color: #fff; background: var(--black); border-color: var(--black); }
.gallery-search { width: min(320px, 34vw); min-height: 38px; padding: 0 12px; border: 1px solid #bbb7ae; background: #fff; outline: none; }
.gallery-search:focus { border-color: var(--cyan); }
.gallery-meta { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }

.art-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-bottom: 54px; }
.art-card { min-width: 0; padding: 0; border: 0; text-align: left; color: var(--ink); background: var(--paper); overflow: hidden; }
.art-media { height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #e6e2d9; }
.art-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.art-card:hover .art-media img { transform: scale(1.015); }
.art-copy { min-height: 64px; padding: 10px 11px 12px; display: block; border-top: 1px solid #e2ded4; }
.art-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.art-copy span { display: block; margin-top: 4px; color: #858a8e; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }

.viewer { position: fixed; inset: 0; z-index: 100; display: none; grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); background: rgba(4,6,7,.98); color: #fff; }
.viewer.open { display: grid; }
.viewer-media { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }
.viewer-media img { max-width: 100%; max-height: calc(100svh - 40px); object-fit: contain; }
.viewer-info { position: relative; overflow-y: auto; padding: 72px 34px 34px; border-left: 1px solid #2b3034; background: #101315; }
.viewer-close { position: absolute; right: 18px; top: 14px; width: 40px; height: 40px; border: 1px solid #4c5256; color: #fff; background: transparent; font-size: 28px; }
.viewer-info h2 { margin: 12px 0 0; font-size: 42px; line-height: .98; letter-spacing: -.045em; }
.viewer-meta { margin-top: 16px; color: #aeb5ba; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.viewer-serial { margin-top: 8px; color: var(--yellow); font-family: Consolas, monospace; font-size: 10px; }
.viewer-info p { margin: 22px 0 0; color: #c5cbd0; font-size: 14px; line-height: 1.7; }
.viewer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.viewer-nav { display: flex; gap: 8px; margin-top: 26px; }
.viewer-nav button { flex: 1; min-height: 40px; border: 1px solid #4b5155; color: #fff; background: transparent; }
.viewer-nav button:hover { border-color: var(--cyan); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: .78fr .9fr; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .art-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .art-media { height: 260px; }
}

@media (max-width: 820px) {
  .site-header { width: calc(100% - 24px); min-height: 62px; }
  .brand span { display: none; }
  .site-nav { gap: 14px; }
  .site-nav .secondary-nav { display: none; }
  .page, .gallery-shell { width: calc(100% - 18px); }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-art { height: min(58svh, 620px); }
  .hero-copy { padding: 26px 22px 30px; }
  .hero h1 { font-size: clamp(44px, 14vw, 64px); }
  .hero p { font-size: 14px; }
  .statement { grid-template-columns: 1fr; gap: 14px; padding: 34px 4px; }
  .statement p { font-size: 26px; }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  .collection-grid { grid-template-columns: 1fr; gap: 12px; }
  .collection-media { height: min(58svh, 520px); }
  .archive { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .gallery-intro { grid-template-columns: 1fr; padding-top: 30px; }
  .gallery-intro h1 { font-size: 58px; }
  .gallery-tools { flex-direction: column; align-items: stretch; }
  .gallery-search { width: 100%; }
  .art-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
  .art-media { height: 240px; }
  .viewer.open { display: flex; flex-direction: column; }
  .viewer-media { height: 60svh; padding: 10px; }
  .viewer-media img { max-height: 58svh; }
  .viewer-info { flex: 1; padding: 54px 20px 24px; border-left: 0; border-top: 1px solid #2b3034; }
  .viewer-info h2 { font-size: 34px; }
}

@media (max-width: 520px) {
  .site-header { width: calc(100% - 18px); }
  .site-nav a:not(:first-child) { display: none; }
  .page, .gallery-shell { width: calc(100% - 12px); }
  .hero { margin-top: 8px; }
  .hero-art { height: 54svh; }
  .hero-copy { padding: 22px 18px 26px; }
  .hero p { line-height: 1.55; }
  .collection-media { height: 52svh; }
  .collection-copy { grid-template-columns: 34px 1fr auto; }
  .collection-copy h3 { font-size: 22px; }
  .art-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .art-media { height: 205px; }
  .art-copy { padding: 8px; }
  .art-copy strong { font-size: 12px; }
  .site-footer { min-height: 110px; align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
