/* Syne and Geist, SIL Open Font License. Latin woff2 files from Fontsource. */

@font-face {
  font-family: Syne;
  src: url("../fonts/syne-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Syne;
  src: url("../fonts/syne-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Syne;
  src: url("../fonts/syne-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Syne;
  src: url("../fonts/syne-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Syne;
  src: url("../fonts/syne-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist;
  src: url("../fonts/geist-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist;
  src: url("../fonts/geist-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist;
  src: url("../fonts/geist-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist;
  src: url("../fonts/geist-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist;
  src: url("../fonts/geist-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0c0c0d;
  --fg: #f4f4f2;
  --gold: #d6b15e;
  --line: rgba(244, 244, 242, 0.18);
  --dim: rgba(244, 244, 242, 0.72);
  --dock: 76px;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Geist, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  padding-bottom: var(--dock);
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: Syne, Geist, sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0;
}

p { margin: 0 0 0.9rem; }

hr { border: 0; height: 2px; width: 3rem; background: var(--gold); margin: 1rem 0 1.15rem; }

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

:focus { outline: none; }

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

.skip {
  position: absolute;
  left: var(--pad);
  top: 0;
  transform: translateY(-140%);
  background: var(--bg);
  color: var(--fg);
  z-index: 90;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

.skip:focus { transform: none; }

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

.dock {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--dock);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0 clamp(0.5rem, 2vw, 2rem);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.desk-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.38rem;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0.9rem 0 0.15rem;
  border-right: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.15;
}

.desk-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px var(--gold);
}

.desk-state.is-open { color: var(--fg); }

.desk-state.is-open .desk-dot {
  background: var(--gold);
  box-shadow: none;
}

.desk-state [data-desk] { white-space: nowrap; }

.dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 4.4rem;
  padding-top: 0.35rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--dim);
}

.dock a:hover,
.dock a[aria-current="page"] { color: var(--fg); }

.tick {
  display: block;
  width: 2px;
  height: 8px;
  background: transparent;
}

.dock a:hover .tick,
.dock a:focus-visible .tick,
.dock a[aria-current="page"] .tick { background: var(--gold); }

.ch {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.lede { max-width: 38rem; font-size: 1.12rem; line-height: 1.45; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
}

.hero img,
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero img {
  position: absolute;
  inset: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0c0c0d 0%, rgba(12, 12, 13, 0.72) 22%, rgba(12, 12, 13, 0.08) 52%, rgba(12, 12, 13, 0.28) 100%);
  pointer-events: none;
}

.hero-caption {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  padding: 0 var(--pad) calc(var(--dock) + 7vh);
}

.hero h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); max-width: 12ch; }

.ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ledger article {
  padding: 1.6rem var(--pad) 1.8rem;
  border-left: 1px solid var(--line);
}

.ledger article:first-child { border-left: 0; }

.ledger h2 { font-size: 1.7rem; margin-bottom: 0.6rem; }

.split {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  min-height: 78vh;
  border-bottom: 1px solid var(--line);
}

.split.reverse { grid-template-columns: 0.85fr 1.25fr; }

.split.reverse .frame { order: 2; }

.frame { min-height: 22rem; background: var(--bg); }

.split figcaption,
.sheet {
  padding: 8vh var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.split h2,
.sheet h2,
.page h1,
.prose h1,
.bay-top h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }

.plane-index { padding: 5.5rem var(--pad) 4rem; }

.plane-index h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.4rem; }

.index-row {
  display: grid;
  grid-template-columns: 1rem 3.2rem minmax(8rem, 0.7fr) 1.4fr auto;
  gap: 0.8rem 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.index-row:last-of-type { border-bottom: 1px solid var(--line); }

.index-row .tick { height: 0.85em; justify-self: center; align-self: center; }

.index-row:hover .tick,
.index-row:focus-visible .tick { background: var(--gold); }

.index-row strong { font-family: Syne, Geist, sans-serif; font-weight: 650; font-size: 1.35rem; letter-spacing: -0.03em; }

.index-row em { font-style: normal; color: var(--dim); }

.page { padding: 6.5rem var(--pad) 3.5rem; max-width: 76rem; }

.page h1,
.prose h1 { max-width: 16ch; margin-bottom: 1rem; }

.page h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  margin: 2rem 0 0.75rem;
}

.page > h2:first-child { margin-top: 0; }

.hero.city img { object-position: center 18%; }

#cookie-state {
  border-left: 2px solid var(--gold);
  padding-left: 0.75rem;
  min-height: 1.5rem;
}

.narrow { max-width: 40rem; }

.bay-page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding-bottom: var(--dock);
}

.bay-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 5.5rem var(--pad) 1rem;
}

.bay-top h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }

.bay-tools { display: flex; gap: 1.4rem; }

.bay-tools button,
.cookie button,
.form button,
.linkish,
.visit-actions a,
.visit-actions button {
  background: transparent;
  color: var(--fg);
  border: 0;
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
  font: inherit;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.35rem 0;
  cursor: pointer;
  text-decoration: none;
}

.bays {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  min-height: 0;
}

.bay {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 100%;
}

.bay .frame { min-height: 100%; }

.bay-copy {
  padding: 6vh 5vw 8vh;
  overflow: auto;
}

.bay h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin-bottom: 0.8rem; }

dl { margin: 1.2rem 0; display: grid; grid-template-columns: 9rem 1fr; gap: 0.45rem 1rem; }

dt { color: var(--dim); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }

dd { margin: 0; }

.figure-note { color: var(--dim); font-size: 0.92rem; }

.media-block { padding: 0; }

.media-block img { width: 100%; max-height: 78vh; object-fit: cover; }

.media-block figcaption { padding: 0.8rem var(--pad) 0; color: var(--dim); font-size: 0.92rem; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; }

table { width: 100%; border-collapse: collapse; min-width: 36rem; }

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.6rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}

th {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.prose { max-width: 44rem; padding: 6.5rem var(--pad) 4rem; }

.prose h2 { font-size: 1.65rem; margin: 2.2rem 0 0.7rem; }

.prose ul { margin: 0 0 1rem; padding-left: 1.15rem; }

.prose li { margin: 0.35rem 0; }

.prose a, .page a, .split a, .sheet a { text-underline-offset: 0.18em; }

.form { display: grid; gap: 1.15rem; max-width: 38rem; margin-top: 1.6rem; }

label { display: grid; gap: 0.35rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

.check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; text-transform: none; letter-spacing: 0; font-size: 1rem; }

input, select, textarea {
  width: 100%;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.55rem 0;
}

textarea { min-height: 7rem; resize: vertical; }

input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--gold); margin-top: 0.3rem; }

select:disabled,
input:disabled { color: var(--dim); cursor: not-allowed; }

[aria-invalid="true"] { border-bottom-color: var(--gold); }

.form-error { min-height: 1.5rem; }

.form-error span { display: inline-block; border-left: 2px solid var(--gold); padding-left: 0.65rem; }

.visit-note {
  white-space: pre-wrap;
  font-family: Geist, "Segoe UI", sans-serif;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin: 1rem 0;
}

.visit-actions { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }

.cookie[hidden] { display: none !important; }

.cookie {
  position: fixed;
  z-index: 70;
  left: var(--pad);
  bottom: calc(var(--dock) + 0.9rem);
  width: min(28rem, calc(100% - 2rem));
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.9rem;
}

.cookie p { font-size: 0.95rem; }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; align-items: center; }

.colophon {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--pad) 2rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.7fr;
  gap: 1.5rem 2rem;
}

.he-name {
  font-family: "Segoe UI", "Arial Hebrew", David, sans-serif;
  direction: rtl;
  unicode-bidi: isolate;
  text-align: right;
  margin-bottom: 0.8rem;
}

.fine { grid-column: 1 / -1; color: var(--dim); max-width: 46rem; font-size: 0.92rem; }

.noscript { padding: 0 var(--pad) 1.5rem; color: var(--dim); }

.spec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--line);
}

.spec-item {
  padding: 1.35rem var(--pad) 1.5rem;
  border-left: 1px solid var(--line);
}

.spec-item:first-child { border-left: 0; }

.spec-num {
  display: block;
  font-family: Syne, Geist, sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: clamp(1.7rem, 2.6vw, 2.55rem);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.spec-label {
  display: block;
  margin-top: 0.55rem;
  max-width: 22rem;
  color: var(--dim);
  font-size: 0.92rem;
}

.essays {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.essays article {
  padding: 2rem var(--pad) 2.3rem;
  border-left: 1px solid var(--line);
}

.essays article:first-child { border-left: 0; }

.essays h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  margin: 0.35rem 0 0.75rem;
}

.seq { padding: 4.2rem 0 1rem; }

.seq-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  padding: 0 var(--pad) 1.15rem;
}

.seq-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  max-width: 12ch;
}

.seq-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15.5rem, 24vw);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.seq-card {
  scroll-snap-align: start;
  min-height: 17rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.seq-card:first-child { border-left: 0; }

.seq-card span {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
}

.seq-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: Syne, Geist, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1;
}

.seq-card p { margin: 0; color: var(--dim); }

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease, transform 480ms ease;
}

html.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .ledger, .essays { grid-template-columns: 1fr; }
  .ledger article, .essays article { border-left: 0; border-top: 1px solid var(--line); }
  .ledger article:first-child, .essays article:first-child { border-top: 0; }
  .spec { grid-template-columns: 1fr 1fr; }
  .spec-item:nth-child(odd) { border-left: 0; }
  .spec-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .seq-head { flex-direction: column; align-items: start; }
  .split, .split.reverse, .bay { grid-template-columns: 1fr; }
  .split.reverse .frame { order: 0; }
  .index-row { grid-template-columns: 1rem 2.4rem 1fr; }
  .index-row em, .index-row .price { grid-column: 3; }
  .colophon { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { padding-top: 56px; padding-bottom: 0; }
  .dock {
    top: 2px;
    bottom: auto;
    height: 54px;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
  .desk-state {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg);
    padding-left: 0.85rem;
    min-height: 54px;
  }
  .dock a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0 1rem;
    min-width: 5.6rem;
  }
  .spec { grid-template-columns: 1fr; }
  .spec-item { border-left: 0; border-top: 1px solid var(--line); }
  .spec-item:first-child { border-top: 0; }
  .hero { min-height: calc(100dvh - 56px); }
  .hero-caption { padding-bottom: 8vh; }
  .bay-page { min-height: calc(100dvh - 56px); padding-bottom: 0; }
  .bay-top { padding-top: 1.4rem; }
  .bay .frame { min-height: 38vh; }
  .cookie { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-rule,
  .dock a,
  .tick,
  html.js .reveal { transition: none; }
  html.js .reveal { opacity: 1; transform: none; }
  .bays, .seq-track { scroll-behavior: auto; }
}
