:root {
  --ink: #0a0a0a;
  --muted: #b5b5b5;
  --line: #e5e5e5;
  --bg: #ffffff;
  --max-width: 1280px;
  --pad-x: clamp(1.25rem, 3.5vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

.reg {
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 0.05em;
  font-weight: 500;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------
   TOPBAR
---------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem var(--pad-x);
  background: transparent;
  pointer-events: none;
  transition: transform 320ms ease, opacity 320ms ease, background 320ms ease;
}

.brand,
.menu-btn {
  pointer-events: auto;
}

.brand {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.menu-btn {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8c8c8;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.menu-btn:hover {
  background: var(--ink);
}

.menu-btn span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: background 200ms ease, transform 200ms ease, opacity 200ms ease;
}

.menu-btn span + span {
  margin-top: 0.32rem;
}

.menu-btn:hover span {
  background: #fff;
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

/* Menu panel */
.menu-panel {
  position: fixed;
  top: 5.5rem;
  right: var(--pad-x);
  z-index: 25;
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.menu-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-panel a {
  padding: 0.25rem 0;
  color: var(--muted);
  transition: color 180ms ease;
}

.menu-panel a:hover {
  color: var(--ink);
}

/* ----------------------------------------------------------------
   LAYOUT
---------------------------------------------------------------- */
main {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ----------------------------------------------------------------
   HERO
---------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
  padding: 9rem 0 5rem;
}

.hero-text {
  display: grid;
  gap: 3rem;
}

.hero-intro {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
}

.hero-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero-figure {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 0;
}

.hero-figure img {
  width: 100%;
  max-width: 30rem;
  height: auto;
  display: block;
}

.hero-figure:hover img {
  filter: grayscale(0%);
}

.hero-spec {
  display: grid;
  gap: 1.5rem;
  max-width: 32rem;
  padding-top: 0;
}

.hero-caption {
  margin: 0;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
}

.hero-spec dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.hero-spec dl > div,
.about-spec dl > div,
.about-spec > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
}

.hero-spec dt,
.about-spec dt {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.hero-spec dd,
.about-spec dd {
  margin: 0;
  color: var(--ink);
}

/* ----------------------------------------------------------------
   TABLE / FEATURES
---------------------------------------------------------------- */
.table-section {
  position: relative;
  padding: 4rem 0 3rem;
}

.table-title {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 3rem 6rem minmax(0, 1fr) 14rem 9rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.table-header {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.table-header span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.col-category,
.table-row .col-category {
  justify-content: flex-end;
  text-align: right;
}

.table-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Inline row thumbnails (mobile only) */
.row-thumb {
  display: none;
}

/* Floating mobile row preview */
.row-mobile-preview {
  display: none;
  position: fixed;
  z-index: 20;
  left: 50%;
  top: 0;
  width: clamp(9rem, 34vw, 12rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease, top 220ms ease;
}

.row-mobile-preview.is-visible {
  opacity: 1;
}

.row-mobile-preview img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.table-row {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  cursor: default;
  transition: color 200ms ease;
}

.table-row .col-no,
.table-row .col-year,
.table-row .col-title,
.table-row .col-client,
.table-row .col-category {
  transition: color 200ms ease, font-weight 200ms ease;
}

.table-row:hover,
.table-row.is-active {
  color: var(--ink);
}

.table-row:hover .col-title,
.table-row.is-active .col-title,
.table-row:hover .col-no,
.table-row.is-active .col-no {
  color: var(--ink);
  font-weight: 600;
}

.col-no {
  color: var(--muted);
}

.col-title {
  color: var(--muted);
}

/* Row preview image */
.row-preview {
  position: absolute;
  z-index: 5;
  width: clamp(14rem, 22vw, 20rem);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease;
}

.row-preview.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.row-preview img {
  width: 100%;
  height: auto;
  background: transparent;
  mix-blend-mode: multiply;
}

/* ----------------------------------------------------------------
   ABOUT
---------------------------------------------------------------- */
.about {
  padding: 5rem 0 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.about-body {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  letter-spacing: 0;
  max-width: 40rem;
}

.about-spec {
  margin: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}

/* ----------------------------------------------------------------
   WAITLIST
---------------------------------------------------------------- */
.waitlist {
  padding: 4rem 0 6rem;
  border-top: 1px solid var(--line);
}

.waitlist-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  padding-top: 3rem;
  align-items: start;
}

.waitlist h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.waitlist-form {
  display: grid;
  gap: 0.8rem;
}

.waitlist-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
}

.waitlist-form input {
  min-height: 3rem;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  outline: none;
}

.waitlist-form input::placeholder {
  color: var(--muted);
}

.waitlist-form button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.25rem;
  border: 0;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 200ms ease;
}

.waitlist-form button .btn-arrow {
  transition: transform 220ms ease;
}

.waitlist-form button:hover .btn-arrow {
  transform: translateX(4px);
}

.waitlist-form button:disabled {
  cursor: default;
  opacity: 0.6;
}

.waitlist-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 200ms ease;
}

.waitlist-form.is-error .waitlist-row {
  border-bottom-color: var(--ink);
}

.waitlist-form.is-error .waitlist-hint {
  color: var(--ink);
}

.waitlist-form.is-success .waitlist-hint {
  color: var(--ink);
}

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--pad-x) 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 7rem;
    gap: 2.5rem;
  }

  .hero-text {
    gap: 2rem;
  }

  .hero-figure img {
    max-width: 22rem;
  }

  .table-header,
  .table-row {
    grid-template-columns: 2rem 4.5rem minmax(0, 1fr) 6.5rem;
    gap: 1rem;
    font-size: 0.88rem;
  }

  .table-header .col-client,
  .table-row .col-client {
    display: none;
  }

  .about-grid,
  .waitlist-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .row-preview {
    display: none;
  }

  /* Mobile: enable the floating preview */
  .row-mobile-preview {
    display: block;
  }

  /* Small screens: hide topbar until user scrolls */
  .topbar {
    transform: translateY(-110%);
    opacity: 0;
  }

  .topbar.is-revealed {
    transform: translateY(0);
    opacity: 1;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    padding: 1rem var(--pad-x);
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .table-header,
  .table-row {
    grid-template-columns: 1.6rem 3.4rem minmax(0, 1fr) 5rem;
    gap: 0.75rem;
    font-size: 0.82rem;
  }

  .hero-spec dl > div,
  .about-spec dl > div,
  .about-spec > div {
    grid-template-columns: 6rem 1fr;
  }
}
