/* Halvi: darkroom system. Matte black canvas, paper-white ink, tungsten secondary, amber readouts. */

:root {
  --black: #000000;
  --canvas: #070708;
  --studio: #0e0e0f;
  --surface: #141312;
  --line: #2a2724;
  --paper: #f5f2ed;
  --tungsten: #9e9992;
  --amber: #ff9e38;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bar: 56px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); color: var(--paper); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: var(--bar); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--black); overflow-x: clip; }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--paper); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); color: var(--paper); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--bar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 max(20px, calc((100vw - 1360px) / 2 + 24px));
  background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(245, 242, 237, 0.06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; justify-self: start; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 12px; border-radius: 8px; font-size: 14px; color: var(--tungsten); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.get { justify-self: end; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 9px; background: var(--paper); color: var(--black); font-size: 14px; font-weight: 600; }
.get:hover { color: var(--black); background: #ffffff; }

/* App Store button */
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: 12px; background: var(--paper); color: var(--black); line-height: 1.1; transition: background 160ms ease; }
.store:hover { color: var(--black); background: #ffffff; }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.store small { font-size: 12px; font-weight: 500; letter-spacing: 0; }

/* Hero */
.hero { max-width: 1360px; margin: 0 auto; padding: calc(var(--bar) + 12px) 24px 0; }
.hero-frame {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 20px;
  height: clamp(640px, calc(88vh - var(--bar)), 820px); display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-frame > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; user-select: none; -webkit-user-drag: none; }
.hero-film { clip-path: inset(0 0 0 var(--split, 36%)); will-change: clip-path; }
.split-tags {
  position: absolute; top: 18px; left: 18px; right: 18px; z-index: 2;
  display: flex; justify-content: space-between; pointer-events: none;
  transition: opacity 160ms ease;
}
.hero-frame.is-full-film .split-tags { opacity: 0; }
.split-pill {
  padding: 5px 11px; border-radius: 999px; font: 600 12px/1.2 var(--mono); letter-spacing: 0.03em;
  color: rgba(245, 242, 237, 0.92); background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 242, 237, 0.14);
}
.split-pill.is-film { color: var(--amber); border-color: rgba(255, 158, 56, 0.42); }
.split-line {
  position: absolute; top: 0; bottom: 0; left: var(--split, 36%); z-index: 3;
  width: 36px; margin-left: -18px; cursor: ew-resize; touch-action: none;
  display: grid; place-items: center;
  transition: opacity 160ms ease;
}
.hero-frame.is-full-film .split-line { opacity: 0; pointer-events: none; }
.split-line::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, rgba(255, 158, 56, 0.4), rgba(255, 158, 56, 0.95) 35%, rgba(255, 158, 56, 0.95) 65%, rgba(255, 158, 56, 0.35));
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.75);
}
.split-knob {
  position: relative; z-index: 1; padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  background: rgba(12, 11, 10, 0.90); color: var(--amber); font: 700 14px/1 var(--sans); letter-spacing: 2px;
  border: 1.5px solid rgba(255, 158, 56, 0.88); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.65);
  transform: translateY(-48px);
}
.hero-copy { position: relative; z-index: 4; padding: 0 44px; max-width: 760px; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.dock { position: relative; z-index: 5; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.9) 100%);
}
.hero-copy { padding: 0 44px; max-width: 760px; }
.hero h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; max-width: 12em; }
.hero-sub { margin: 18px 0 28px; max-width: 52ch; font-size: 17px; line-height: 1.5; color: rgba(245, 242, 237, 0.86); }

/* Darkroom dock */
.dock {
  margin: 36px 16px 16px; padding: 8px; border-radius: 14px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  background: rgba(7, 7, 8, 0.66); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(245, 242, 237, 0.1);
}
.scenes, .stocks { display: flex; gap: 2px; }
.stocks { justify-content: center; flex-wrap: wrap; }
.scenes button, .stocks button {
  border: 0; cursor: pointer; border-radius: 9px; background: transparent; color: var(--tungsten);
  font-size: 14px; padding: 8px 12px; transition: background 160ms ease, color 160ms ease;
}
.scenes button { display: inline-flex; align-items: center; gap: 7px; }
.scenes button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(245, 242, 237, 0.28); }
.scenes button[aria-pressed="true"] { color: var(--paper); }
.scenes button[aria-pressed="true"]::before { background: var(--paper); }
.stocks button { display: flex; flex-direction: column; align-items: center; line-height: 1.2; padding: 7px 14px; }
.stocks button small { font: 12px/1.2 var(--mono); color: rgba(158, 153, 146, 0.9); }
.scenes button:hover, .stocks button:hover { color: var(--paper); }
.stocks button[aria-pressed="true"] { background: var(--paper); color: var(--black); }
.stocks button[aria-pressed="true"] small { color: #57534d; }
.dial { display: flex; align-items: center; gap: 10px; }
.readout { display: inline-flex; align-items: center; gap: 8px; min-width: 21ch; font: 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--paper); }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; transition: background 140ms ease; }
.is-original .led { background: #4a4743; }
.hold {
  border: 1px solid rgba(245, 242, 237, 0.22); background: rgba(245, 242, 237, 0.06); cursor: pointer; border-radius: 9px;
  padding: 9px 14px; font-size: 14px; font-weight: 500; color: var(--paper);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.hold:hover { background: rgba(245, 242, 237, 0.12); }
.hold[aria-pressed="true"] { background: var(--paper); color: var(--black); }

/* Spectral Metal Proof Comparison */
.proof { padding: 112px 24px 0; max-width: 1360px; margin: 0 auto; }
.proof-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.proof-eyebrow { font: 12px/1.4 var(--mono); letter-spacing: 0.12em; color: var(--amber); margin-bottom: 12px; }
.proof-head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
.proof-sub { margin: 14px auto 0; max-width: 60ch; font-size: 17px; color: var(--tungsten); }
.proof-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin: 30px auto 0; max-width: 720px; padding: 16px 12px; border-radius: 14px;
  background: var(--canvas); border: 1px solid rgba(245, 242, 237, 0.08);
}
.proof-stats div { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; }
.proof-stats dd { margin: 0; font: 600 22px/1.1 var(--display); color: var(--paper); letter-spacing: -0.02em; }
.proof-stats dt { font: 12px/1.3 var(--mono); color: var(--tungsten); }

.proof-wrap { display: flex; flex-direction: column; gap: 28px; }
.proof-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(245, 242, 237, 0.09);
  font: 600 15px/1.2 var(--display); color: var(--paper);
}
.proof-col-halvi { color: var(--amber); }

.proof-row { display: flex; flex-direction: column; gap: 10px; }
.proof-row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.proof-row-head h3 { font: 600 14px/1.3 var(--mono); color: rgba(245, 242, 237, 0.88); letter-spacing: 0.01em; }
.proof-row-head span { font-size: 13.5px; color: var(--tungsten); }

.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.proof-card {
  position: relative; display: block; width: 100%; padding: 0; margin: 0; cursor: zoom-in;
  border-radius: 12px; overflow: hidden; background: var(--canvas);
  border: 1px solid rgba(245, 242, 237, 0.09);
  transition: border-color 180ms ease, transform 240ms var(--ease);
}
.proof-card:hover { border-color: rgba(245, 242, 237, 0.28); transform: translateY(-2px); }
.proof-card.is-halvi { border-color: rgba(255, 158, 56, 0.44); box-shadow: 0 0 0 1px rgba(255, 158, 56, 0.14); }
.proof-card.is-halvi:hover { border-color: rgba(255, 158, 56, 0.82); }
.proof-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.proof-badge {
  display: none; position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 7px;
  font: 600 12px/1.2 var(--sans); color: var(--paper);
  background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.proof-badge.is-halvi { color: var(--amber); border: 1px solid rgba(255, 158, 56, 0.45); }

/* Shot with Halvi */
.wall-head { padding: 128px 24px 44px; text-align: center; }
.wall-head h2, .studio-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.wall-head p, .studio-head p { margin: 12px auto 0; max-width: 56ch; font-size: 17px; color: var(--tungsten); }
.wall { max-width: 1360px; margin: 0 auto; padding: 0 24px; columns: 3; column-gap: 8px; }
.tile { position: relative; display: block; width: 100%; margin: 0 0 8px; padding: 0; border: 0; background: var(--canvas); cursor: zoom-in; break-inside: avoid; }
.tile img { width: 100%; height: auto; transition: opacity 200ms ease; }
.tile:hover img { opacity: 0.9; }
.tag {
  position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: 7px;
  font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--paper);
  background: rgba(0, 0, 0, 0.46); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Lightbox */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--black); color: var(--paper); }
.lb::backdrop { background: var(--black); }
.lb[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lb figure { margin: 0; padding: 64px 72px 0; display: grid; place-items: center; min-height: 0; height: 100%; }
.lb img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; }
.lb-bar { display: flex; align-items: center; gap: 16px; padding: 20px 24px 28px; }
.lb-cap { min-width: 26ch; text-align: center; }
.lb-cap strong { display: block; font-size: 17px; font-weight: 600; }
.lb-cap span { font: 13px/1.6 var(--mono); color: var(--tungsten); }
.lb button { border: 1px solid rgba(245, 242, 237, 0.18); background: rgba(245, 242, 237, 0.06); color: var(--paper); border-radius: 10px; min-width: 44px; height: 44px; padding: 0 14px; font-size: 15px; cursor: pointer; }
.lb button:hover { background: rgba(245, 242, 237, 0.14); }
.lb-close { position: absolute; top: 16px; right: 16px; }

/* Eleven cameras */
.studio { margin-top: 120px; padding: 112px 24px 120px; background: linear-gradient(180deg, var(--canvas), var(--studio) 40%); border-top: 1px solid rgba(245, 242, 237, 0.06); }
.studio-head { text-align: center; margin-bottom: 56px; }
.studio-body { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cam {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 14px 12px 14px; cursor: pointer; text-align: left;
  border-radius: 14px; border: 1px solid rgba(245, 242, 237, 0.09);
  background: #000000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.cam:hover { border-color: rgba(245, 242, 237, 0.24); }
.cam[aria-pressed="true"] { border-color: rgba(255, 158, 56, 0.62); box-shadow: inset 0 1px 0 rgba(255, 158, 56, 0.16), 0 0 0 1px rgba(255, 158, 56, 0.18); }
.cam-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; display: block; flex: 0 0 auto; transition: transform 320ms var(--ease); }
.cam:hover .cam-photo, .cam[aria-pressed="true"] .cam-photo { transform: translateY(-3px) scale(1.03); }
.cam-name { font-size: 15px; font-weight: 600; color: var(--paper); }
.cam-yr { font: 13px/1 var(--mono); color: var(--tungsten); }
.cam::after { content: ""; position: absolute; top: 12px; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: #2e2c2a; }
.cam[aria-pressed="true"]::after { background: var(--amber); }

.sample { position: sticky; top: calc(var(--bar) + 24px); margin: 0; border-radius: 18px; overflow: hidden; background: var(--black); border: 1px solid rgba(245, 242, 237, 0.08); }
.sample-stage { aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--black); }
.sample-stage img { width: 100%; height: 100%; object-fit: contain; }
.sample figcaption { padding: 22px 24px 24px; border-top: 1px solid rgba(245, 242, 237, 0.08); }
.sample h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; display: flex; align-items: baseline; gap: 10px; }
.sample h3 span { font: 15px/1 var(--mono); color: var(--amber); letter-spacing: 0; }
.sample p { margin-top: 8px; font-size: 15px; color: var(--tungsten); }
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.spec dt { font: 12px/1.4 var(--mono); color: var(--tungsten); }
.spec dd { margin: 2px 0 0; font-size: 14px; color: var(--paper); }

/* Craft strip and closing call */
.craft { max-width: 1240px; margin: 0 auto; padding: 96px 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.craft p { font-size: 15px; color: var(--tungsten); max-width: 36ch; }
.craft strong { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 600; color: var(--paper); }
.close { padding: 72px 24px 120px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.close img { width: 76px; height: 76px; border-radius: 18px; }
.close h2 { margin: 28px 0 10px; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
.close p { margin-bottom: 30px; font-size: 17px; color: var(--tungsten); }

/* Footer */
.foot { max-width: 1360px; margin: 0 auto; width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 28px 24px 40px; border-top: 1px solid rgba(245, 242, 237, 0.08); font-size: 14px; color: var(--tungsten); }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--tungsten); }
.foot a:hover { color: var(--paper); }

/* Documents: privacy and support */
.doc { width: min(560px, calc(100% - 48px)); margin: 0 auto; padding: calc(var(--bar) + 88px) 0 96px; }
.doc-label { margin-bottom: 14px; font: 13px/1.4 var(--mono); color: var(--amber); }
.doc h1 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
.lead { margin: 20px 0 40px; font-size: 18px; line-height: 1.55; color: var(--tungsten); }
.doc section { padding: 28px 0; border-top: 1px solid var(--line); }
.doc h2 { margin-bottom: 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.doc section p { color: rgba(245, 242, 237, 0.8); }

@media (max-width: 1080px) {
  .dock { grid-template-columns: 1fr auto; }
  .stocks { grid-column: 1 / -1; grid-row: 2; }
  .studio-body { grid-template-columns: 1fr; }
  .sample { position: static; }
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .wall { columns: 2; }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .craft { grid-template-columns: 1fr; gap: 28px; padding: 72px 24px; }
}
@media (max-width: 720px) {
  .bar { grid-template-columns: 1fr auto; padding: 0 14px; }
  .nav { display: none; }
  .hero { padding: calc(var(--bar) + 28px) 8px 0; }
  .hero-frame { min-height: 0; overflow: visible; border-radius: 0; display: grid; grid-template-areas: "copy" "photo" "dock"; }
  .hero-frame > img, .hero-shade { position: static; grid-area: photo; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 14px; }
  .split-tags { grid-area: photo; position: relative; top: 10px; left: 0; right: 0; padding: 0 10px; align-self: start; }
  .split-line { grid-area: photo; position: relative; left: var(--split, 36%); top: 0; bottom: 0; height: 100%; margin-left: -18px; justify-self: start; }
  .split-knob { transform: none; }
  .hero-frame > img { object-position: 56% 50%; }
  .hero-shade { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.5) 100%); }
  .hero-copy { grid-area: copy; padding: 0 12px 28px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; margin: 14px 0 22px; color: var(--tungsten); }
  .store { height: 48px; }
  .dock { grid-area: dock; margin: 8px 0 0; gap: 4px; padding: 6px 4px; background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; grid-template-columns: 1fr; }
  .stocks { grid-row: auto; flex-wrap: nowrap; justify-content: space-between; }
  .dial { justify-content: space-between; padding: 4px 4px 0 8px; }
  .readout { min-width: 0; }
  .scenes { justify-content: center; }
  .stocks button { padding: 7px 8px; font-size: 13px; }
  .scenes button { padding: 7px 10px; }
  .wall-head { padding: 88px 20px 32px; }
  .wall { padding: 0 8px; column-gap: 4px; }
  .proof { padding: 76px 14px 0; }
  .proof-head { margin-bottom: 32px; }
  .proof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .proof-cols { display: none; }
  .proof-grid { grid-template-columns: 1fr; gap: 10px; }
  .proof-badge { display: inline-block; }
  .proof-row { gap: 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(245, 242, 237, 0.07); }
  .wall { column-gap: 4px; }
  .tile { margin-bottom: 4px; }
  .tag { top: 8px; left: 8px; padding: 4px 7px; }
  .studio { margin-top: 88px; padding: 80px 0 88px; }
  .studio-head { padding: 0 20px; margin-bottom: 36px; }
  .studio-body { gap: 20px; }
  .shelf { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 10px; gap: 8px; scrollbar-width: none; }
  .shelf::-webkit-scrollbar { display: none; }
  .cam { flex: 0 0 158px; scroll-snap-align: center; }
  .sample { margin: 0 16px; }
  .sample figcaption { padding: 18px 18px 20px; }
  .lb figure { padding: 64px 12px 0; }
  .lb-bar { gap: 10px; padding: 16px 12px 24px; }
  .lb-cap { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
