@import "tailwindcss";

/* ============================================================
   GENESIS GLOBAL, DESIGN SYSTEM
   Master Design Bible ch.5: architecture, editorial design,
   museum exhibition, gemological precision, luxury hospitality,
   natural light. Blue as atmosphere, not decoration.
   ============================================================ */

:root {
  /* Genesis Midnight Blue, the architecture: unmistakably blue, never black */
  --night-950: #04101f;
  --night-900: #071a2f;
  --night-850: #0a2039;
  --night-800: #0e2846;
  --night-700: #143459;

  /* Crystal Sapphire Blue, interaction only */
  --sapphire: #5e9fd8;
  --sapphire-bright: #86bce8;
  --brand-blue: #0165af; /* original logo blue, light surfaces only */

  /* Genesis blue, the single accent, light and dark registers */
  --blue-mid: #4e84c4;
  --blue-soft: rgba(94, 159, 216, 0.5);

  /* The house's light: white and ivory, as on the maison site */
  --white: #ffffff;
  --ivory: #fafaf7;
  --paper: #f3f1ea;
  --mist: #c9d2da;   /* primary text on night */
  --stone: #8d99a5;  /* secondary text on night */
  --charcoal: #1e252b; /* ink: primary text on light */
  --slate: #5f6870;    /* secondary text on light */

  --hairline: rgba(201, 210, 218, 0.14);
  --hairline-strong: rgba(201, 210, 218, 0.26);
  --hairline-dark: rgba(35, 42, 49, 0.16);

  --ease: cubic-bezier(0.25, 0.6, 0.25, 1);
  --maxw: 1280px;
  --pad-x: clamp(22px, 5vw, 72px);
  --pad-section: clamp(88px, 11vw, 180px);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night-900);
  color: var(--mist);
  font-family: var(--font-sans), -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(94, 159, 216, 0.28); }

/* ---------- typography ---------- */

.serif { font-family: var(--font-serif), Georgia, serif; }

h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-serif), Georgia, serif;
  font-weight: 500;
  color: var(--ivory);
  margin: 0;
  letter-spacing: 0.002em;
}

.h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: 1.05; }
.h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.12; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.25; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sapphire);
  margin: 0 0 26px;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--sapphire);
  opacity: 0.55;
  flex: none;
}

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.8;
  color: var(--stone);
  max-width: 58ch;
}

.body-copy { line-height: 1.85; max-width: 64ch; color: var(--mist); }
.body-copy p { margin: 0 0 1.4em; }
.body-copy p:last-child { margin-bottom: 0; }

.caption {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--stone);
  line-height: 1.6;
}

/* ---------- layout ---------- */

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--pad-section); position: relative; }
.section-tight { padding-block: clamp(64px, 8vw, 120px); position: relative; }

/* light emerging from darkness, architectural room transitions */
.room { background: var(--night-900); }
.room-deep { background: linear-gradient(180deg, var(--night-900) 0%, var(--night-950) 100%); }
.room-raised { background: linear-gradient(180deg, var(--night-900) 0%, var(--night-850) 50%, var(--night-900) 100%); }

/* the light rooms: white, ivory and a pale sapphire wash, Genesis blue as the accent */
.room-paper { background: var(--white); color: var(--charcoal); }
.room-paper.tint { background: var(--ivory); }
.room-paper.wash { background: var(--ivory); }
.room-paper h1, .room-paper h2, .room-paper h3,
.room-paper .h1, .room-paper .h2, .room-paper .h3 { color: var(--charcoal); }
.room-paper .lead, .room-paper .caption { color: var(--slate); }
.room-paper .body-copy { color: #333b42; }
.room-paper .rule { background: var(--hairline-dark); }
.room-paper .plate,
.room-paper .gem-tile,
.room-paper .archive-img { border-color: rgba(30, 37, 43, 0.12); }
.room-paper .spec-list { border-top-color: rgba(30, 37, 43, 0.3); }
.room-paper .spec-row { border-bottom-color: rgba(30, 37, 43, 0.1); }
.room-paper .spec-key { color: var(--slate); }
.room-paper .spec-val { color: var(--charcoal); }
.room-paper .spec-val.hl { color: var(--brand-blue); }
.room-paper .link-quiet { border-color: rgba(30, 37, 43, 0.3); }
.room-paper .link-quiet:hover { color: var(--brand-blue); border-color: var(--brand-blue); }
.room-paper .eyebrow { color: var(--brand-blue); }
.room-paper .eyebrow::before { background: var(--brand-blue); }

.rule { height: 1px; border: 0; background: var(--hairline); margin: 0; }

/* museum lighting, a quiet pool of light behind featured objects */
.vitrine {
  position: relative;
  background:
    radial-gradient(ellipse 62% 52% at 50% 44%, rgba(94, 159, 216, 0.10), transparent 70%),
    var(--night-950);
  overflow: hidden;
}

/* ---------- interactions (ch.6: precise, machined, quiet) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 0;
  color: var(--ivory);
  position: relative;
  transition: color 0.4s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  left: 0; bottom: 8px;
  width: 100%; height: 1px;
  background: var(--blue-soft);
  transform-origin: left center;
  transition: transform 0.55s var(--ease), background 0.4s var(--ease);
}
.btn:hover { color: var(--sapphire-bright); }
.btn:hover::after { background: var(--sapphire); }
.btn .arr { transition: transform 0.45s var(--ease); }
.btn:hover .arr { transform: translateX(6px); }

.room-paper .btn { color: var(--charcoal); }
.room-paper .btn::after { background: var(--brand-blue); opacity: 0.55; }
.room-paper .btn:hover { color: var(--brand-blue); }
.room-paper .btn:hover::after { opacity: 1; }

.link-quiet {
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.link-quiet:hover { color: var(--sapphire-bright); border-color: var(--sapphire); }

/* ---------- motion (ch.6: stillness, weight, momentum, light, breath) ---------- */

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.15s var(--ease), transform 1.15s var(--ease);
}
.rv.on { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.12s; }
.rv.d2 { transition-delay: 0.24s; }
.rv.d3 { transition-delay: 0.36s; }

/* light as motion, a slow illumination, not an object flying */
.lit {
  opacity: 0;
  filter: brightness(0.55) saturate(0.9);
  transition: opacity 1.6s var(--ease), filter 2.2s var(--ease);
}
.lit.on { opacity: 1; filter: brightness(1) saturate(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .lit { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

/* ---------- editorial imagery ---------- */

.plate {
  background: var(--night-950);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.plate img { width: 100%; height: 100%; object-fit: contain; }

.figure-cap {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--stone);
  line-height: 1.65;
  max-width: 46ch;
}

/* gem imagery always whole, contained, never cropped (owner rule) */
.gem-tile {
  aspect-ratio: 4 / 3;
  background: #0b0d12;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.gem-tile img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 1.3s var(--ease);
}
a:hover .gem-tile img, .gem-tile:hover img { transform: scale(1.028); }

/* archive photography, honest documents, gently framed */
.archive-img {
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--night-950);
}
.archive-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.5s var(--ease);
}
a:hover .archive-img img { transform: scale(1.03); }

/* ---------- article prose (the Journal, ch.11) ---------- */

.prose { max-width: 68ch; }
.prose p {
  margin: 0 0 1.55em;
  line-height: 1.95;
  font-size: clamp(1rem, 1.25vw, 1.11rem);
}
.prose h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin: 2.2em 0 0.8em;
}
.prose .pull {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.4;
  color: var(--ivory);
  border-left: 1px solid var(--blue-soft);
  padding-left: clamp(20px, 3vw, 40px);
  margin: 2em 0;
  max-width: 30ch;
}
.room-paper .prose .pull { color: var(--charcoal); border-color: var(--brand-blue); }

/* ---------- spec rows (gemological precision) ---------- */

.spec-list { border-top: 1px solid var(--hairline-strong); }
.spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.65fr) 1.35fr;
  gap: 18px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.spec-key {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}
.spec-val {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--ivory);
  line-height: 1.45;
}
.spec-val.hl { color: var(--sapphire-bright); }

/* ---------- utilities ---------- */

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.5vw, 36px); }
.tabular { font-variant-numeric: tabular-nums; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ivory); color: var(--charcoal); padding: 10px 18px;
}
.skip-link:focus { left: 0; }

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

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .grid-12 { grid-template-columns: 1fr; }
}

/* ---------- navigation ---------- */

.nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.35s var(--ease);
}
.nav-light .nav-link { color: var(--slate); }
.nav-light .nav-link:hover, .nav-light .nav-link[aria-current="page"] { color: var(--charcoal); }
.nav-light .nav-link::after { background: var(--brand-blue); }
.nav-light .nav-cta { color: var(--brand-blue); border-color: var(--brand-blue); }
.nav-light .nav-cta:hover { color: var(--blue-deep, #014e88); border-color: var(--charcoal); }
.nav-light .nav-brand-main { color: var(--charcoal) !important; }
.nav-light .nav-brand-sub { color: var(--slate) !important; }
.nav-light .nav-burger span { background: var(--charcoal); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--sapphire);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ivory); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sapphire-bright);
  border-bottom: 1px solid var(--sapphire);
  padding: 8px 0 5px;
  white-space: nowrap;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav-cta:hover { color: var(--ivory); border-color: var(--sapphire-bright); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ivory);
  margin: 0 auto;
  transition: transform 0.4s var(--ease);
}

@media (max-width: 1290px) {
  .nav-desktop { display: none; }
  .nav-burger { display: flex; }
}
@media (min-width: 1291px) {
  .nav-overlay { display: none; }
}

/* the arrival: the star on film, the invisible camera easing to rest */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  animation: hero-settle 7s var(--ease) both;
}
@keyframes hero-settle {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 68% 30%, rgba(27, 78, 138, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.72), rgba(4, 10, 20, 0.28) 42%, rgba(4, 16, 31, 0.9) 92%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { animation: none; }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  width: 100%;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .hero-media { order: -1; max-width: 420px; }
}

/* high jewellery cadence: image and caption in one breath, sides alternating */
.hj-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: end;
}
.hj-row[data-flip] .gem-tile { order: 2; }
.hj-row[data-flip] .hj-caption { order: 1; text-align: right; justify-self: end; }
.hj-row[data-flip] .hj-caption .lead { margin-left: auto; }
.hj-caption { padding-bottom: 6px; }
@media (max-width: 860px) {
  .hj-row, .hj-row[data-flip] { grid-template-columns: 1fr; align-items: start; }
  .hj-row[data-flip] .gem-tile { order: 1; }
  .hj-row[data-flip] .hj-caption { order: 2; text-align: left; justify-self: start; }
  .hj-row[data-flip] .hj-caption .lead { margin-left: 0; }
}

/* balanced hairline grids: lines belong to tiles, empty space stays white */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline-dark);
}
.tile-grid > * {
  background: var(--white);
  outline: 1px solid var(--hairline-dark);
  outline-offset: -0.5px;
}
@media (max-width: 1000px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tile-grid { grid-template-columns: 1fr; }
}

/* mobile art direction: informative rows restack, nothing disappears */
@media (max-width: 720px) {
  .press-row { grid-template-columns: 1fr !important; gap: 6px !important; }
  .gem-row { grid-template-columns: 44px 1fr auto !important; }
  .gem-row-tag { display: none; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; padding-block: 14px; }
}

/* ---------- footer information hub ---------- */

.foot-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 18px;
}
.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.foot-list a {
  font-size: 13.5px;
  color: var(--charcoal);
  line-height: 1.5;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.foot-list a:hover { color: var(--brand-blue); border-color: var(--brand-blue); }

/* ---------- homepage compositions ---------- */

.pillar-inner {
  display: grid;
  grid-template-columns: minmax(200px, 380px) 1fr;
  gap: clamp(14px, 3vw, 48px);
}
@media (max-width: 860px) {
  .pillar-inner { grid-template-columns: 1fr; gap: 10px; }
}

.archive-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-top: clamp(44px, 5vw, 72px);
}
@media (max-width: 1000px) {
  .archive-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .archive-strip { grid-template-columns: repeat(2, 1fr); }
}
