/* ===== FT Collection — Rolex-grade streamlined catalogue ===== */

:root {
  --ink: #0F0E0C;
  --ink-soft: #2A2825;
  --muted: #6B6660;
  --line: #E5E1DA;
  --line-strong: #C8C2B7;
  --bg: #FAF8F4;
  --card: #FFFFFF;
  --tile: #F4F2EE;
  --gold: #8B6E3F;
  --gold-deep: #6D5430;

  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;

  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  text-decoration: none;
}
.skip:focus { left: 16px; top: 12px; z-index: 1000; }

a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
}
.nav__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.nav__brandtext {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.nav__links {
  display: flex; gap: 28px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav__links a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.nav__links a:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 640px) {
  .nav__brandtext { display: none; }
  .nav__links { gap: 18px; font-size: 11px; letter-spacing: 0.12em; }
}

/* ===== HERO ===== */
.hero {
  padding: clamp(80px, 14vw, 180px) var(--pad) clamp(60px, 10vw, 120px);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 28px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(72px, 14vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  color: var(--ink);
}
.hero__dot { color: var(--gold); }
.hero__lede {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 0 64px;
  font-weight: 400;
}
.hero__meta {
  display: flex;
  gap: clamp(40px, 8vw, 100px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
  max-width: 720px;
  flex-wrap: wrap;
}
.hero__stat { display: flex; flex-direction: column; gap: 6px; }
.hero__num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero__lbl {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ===== SECTION HEADS ===== */
.section__head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--pad) 40px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}
.section__sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 380px;
}

/* ===== GRID ===== */
.grid-section { padding-bottom: clamp(60px, 10vw, 120px); }
.grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(15, 14, 12, 0.18);
  border-color: var(--line-strong);
}
.card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.card__media {
  aspect-ratio: 1 / 1;
  background: var(--tile);
  position: relative;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .8s var(--ease);
}
.card:hover .card__media img { transform: scale(1.03); }

.card__num {
  position: absolute;
  top: 16px; left: 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.card__body {
  padding: 22px 22px 24px;
  border-top: 1px solid var(--line);
}
.card__brand {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.card__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 14px;
  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.2em * 2);
}
.card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.card__ref {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.card__price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ===== INDEX TABLE ===== */
.index-section { padding-bottom: clamp(60px, 10vw, 120px); }
.index-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  overflow-x: auto;
}
.index-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.index-table thead th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 14px;
  border-bottom: 1px solid var(--ink);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.index-table thead th:hover { color: var(--ink); }
.index-table thead th .ind {
  display: inline-block;
  margin-left: 6px;
  opacity: 0.35;
  font-size: 10px;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.index-table thead th[aria-sort="ascending"] .ind,
.index-table thead th[aria-sort="descending"] .ind {
  opacity: 1;
  color: var(--gold);
}
.index-table tbody td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.index-table tbody tr { transition: background .2s var(--ease); }
.index-table tbody tr:hover { background: #F4F1EB; }
.index-table .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); width: 40px; }
.index-table .name { font-family: var(--font-display); font-size: 16px; font-weight: 500; min-width: 240px; white-space: normal; }
.index-table .brand { color: var(--ink-soft); }
.index-table .ref { font-variant-numeric: tabular-nums; color: var(--muted); }
.index-table .price { text-align: right; font-family: var(--font-display); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ===== ABOUT ===== */
.about {
  border-top: 1px solid var(--line);
  padding: clamp(80px, 10vw, 140px) var(--pad);
  background: #F4F1EB;
}
.about__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about__inner p {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 32px 0 0;
}
.about__sig {
  margin-top: 48px !important;
  font-size: 11px !important;
  font-family: var(--font-sans) !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--pad);
  background: var(--bg);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== MODAL ===== */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(15, 14, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 60px);
  animation: fadeIn .25s var(--ease);
}
.modal[hidden] { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__close {
  position: fixed;
  top: 20px; right: 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(15, 14, 12, 0.4);
  z-index: 101;
}
.modal__close:hover { background: rgba(255,255,255,0.1); }

.modal__inner {
  background: var(--card);
  max-width: 1100px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  animation: rise .35s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) { .modal__inner { grid-template-columns: 1fr; } }

.modal__media {
  aspect-ratio: 1 / 1;
  background: var(--tile);
}
.modal__media img { width: 100%; height: 100%; object-fit: cover; }

.modal__body {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
}
.modal__num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.modal__brand {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.modal__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}
.modal__tag {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 28px;
  line-height: 1.4;
}
.modal__price {
  display: flex;
  gap: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.modal__price-block { display: flex; flex-direction: column; gap: 4px; }
.modal__price-lbl {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal__price-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.modal__price-val.gold { color: var(--gold-deep); }

.modal__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.modal__spec {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.modal__spec:nth-child(odd) { padding-right: 16px; }
.modal__spec:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.modal__spec-lbl {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.modal__spec-val {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ===== UTILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
