/* ============================================================
   GTC LLC — Grace & Time Co.
   Design: "The Vault" — dark editorial luxury
   Palette: espresso #141210 bg · champagne-bronze #C9A26B accent
           ivory #F2EDE4 text
   Type: Cormorant Garamond (display) + Jost (body/labels)
   ============================================================ */

:root {
  --bg: #141210;
  --bg-raised: #1c1916;
  --bg-card: #201c18;
  --ink: #f2ede4;
  --ink-soft: #b9b0a2;
  --ink-faint: #857d70;
  --bronze: #c9a26b;
  --bronze-soft: rgba(201, 162, 107, 0.35);
  --hairline: rgba(201, 162, 107, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection { background: var(--bronze); color: #141210; }

/* ---------- Utility ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
  transform: translateY(-4px);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(40px, 5.5vw, 68px);
  margin: 18px 0 0;
}

h2 em, h1 em {
  font-style: italic;
  color: var(--bronze);
}

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(20, 18, 16, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  max-width: 1360px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 44px; height: 44px; }
.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: 4px;
}
.nav-links { display: flex; gap: clamp(20px, 3vw, 44px); align-items: center; }
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--bronze); }
.nav-cta {
  border: 1px solid var(--bronze-soft);
  padding: 10px 22px;
  color: var(--ink) !important;
  transition: background 0.3s var(--ease), color 0.3s var(--ease) !important;
}
.nav-cta:hover { background: var(--bronze); color: #141210 !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,18,16,0.86) 0%, rgba(20,18,16,0.55) 45%, rgba(20,18,16,0.25) 100%),
    linear-gradient(0deg, rgba(20,18,16,1) 0%, rgba(20,18,16,0) 26%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 80px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--bronze);
}
.hero h1 {
  font-size: clamp(56px, 9vw, 124px);
  margin: 24px 0 28px;
  max-width: 10ch;
}
.hero-sub {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 18px;
}
.hero-actions { display: flex; gap: 28px; align-items: center; margin-top: 44px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 16px 34px;
  border: 1px solid var(--bronze);
  color: var(--ink);
  background: transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.16s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn:hover { background: var(--bronze); color: #141210; }
.btn.solid { background: var(--bronze); color: #141210; }
.btn.solid:hover { background: #dab77f; }
.btn-ghost {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 6px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-ghost:hover { color: var(--bronze); border-color: var(--bronze); }
.hero-meta {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  z-index: 2;
}
.hero-meta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-wrap: wrap;
}

/* ---------- Fleuron divider ---------- */
.fleuron {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: clamp(56px, 8vw, 104px) 0 0;
}
.fleuron::before, .fleuron::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.fleuron span { color: var(--bronze); font-size: 20px; }

/* ---------- About ---------- */
.about { padding: clamp(64px, 9vw, 130px) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-photo {
  position: relative;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.about-photo:hover img { transform: scale(1.03); }
.about-photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(242, 237, 228, 0.16);
  pointer-events: none;
}
.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 58ch;
}
.about-copy p strong { color: var(--ink); font-weight: 400; }
.stat {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 40px 0;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat-num {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--bronze);
  line-height: 1;
}
.stat-desc {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.standards { list-style: none; }
.standards li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(242, 237, 228, 0.07);
  color: var(--ink-soft);
  font-size: 15.5px;
}
.standards li::before {
  content: "—";
  color: var(--bronze);
  flex-shrink: 0;
}

/* ---------- Full-set band ---------- */
.band {
  position: relative;
  margin: clamp(30px, 5vw, 60px) 0 0;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,18,16,0.9) 10%, rgba(20,18,16,0.35) 70%);
}
.band-content { position: relative; z-index: 2; padding: 72px 0; max-width: 520px; }
.band-content h3 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 14px 0 18px;
}
.band-content p { color: var(--ink-soft); }

/* ---------- Inventory ---------- */
.inventory { padding: clamp(64px, 9vw, 130px) 0 0; }
.inv-intro { max-width: 54ch; color: var(--ink-soft); margin-top: -28px; margin-bottom: 56px; }
.inv-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
.piece {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(242, 237, 228, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  cursor: pointer;
}
.piece:hover { border-color: var(--bronze-soft); transform: translateY(-4px); }
.piece-img {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #191613;
}
.piece-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.piece:hover .piece-img img { transform: scale(1.04); }
.piece-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.piece-ref {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
}
.piece-name {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.15;
}
.piece-spec { font-size: 14px; color: var(--ink-faint); }
.piece-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
}
.tag {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid rgba(242, 237, 228, 0.14);
  padding: 6px 12px;
}
.piece-arrow { color: var(--bronze); font-size: 20px; transition: transform 0.3s var(--ease); }
.piece:hover .piece-arrow { transform: translateX(6px); }

.piece.featured { grid-column: span 12; flex-direction: row; min-height: 480px; }
.piece.featured .piece-img { aspect-ratio: auto; flex: 1.15; }
.piece.featured .piece-body { flex: 1; justify-content: center; padding: clamp(32px, 5vw, 72px); gap: 14px; }
.piece.featured .piece-name { font-size: clamp(36px, 4.5vw, 56px); }
.piece.featured .piece-spec { font-size: 16px; max-width: 40ch; }
.piece.std { grid-column: span 4; }

.inv-note {
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
}
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16,14,12,0.96) 0%, rgba(16,14,12,0.82) 55%, rgba(20,18,16,1) 100%);
}
.contact-inner { position: relative; z-index: 2; padding: clamp(80px, 11vw, 150px) 0; }
.contact h2 { max-width: 14ch; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 80px);
}
.c-item { border-top: 1px solid var(--hairline); padding-top: 22px; }
.c-item .label { display: block; margin-bottom: 12px; }
.c-item p, .c-item a { color: var(--ink-soft); font-size: 16px; }
.c-item a.big {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--ink);
  transition: color 0.3s var(--ease);
  line-height: 1.3;
}
.c-item a.big:hover { color: var(--bronze); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px clamp(20px, 4vw, 48px);
  max-width: 1360px;
  margin: 0 auto;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-wrap: wrap;
}
.footer-reg { text-align: right; line-height: 1.9; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 9, 8, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; animation: fadeIn 0.25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-raised);
  border: 1px solid var(--bronze-soft);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: modalIn 0.35s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.modal-img { background: #191613; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.modal-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.modal-body h3 { font-size: 34px; }
.modal-specs { list-style: none; margin: 10px 0 20px; }
.modal-specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(242, 237, 228, 0.08);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.modal-specs li span:first-child {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 2px;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 95;
  background: none;
  border: 1px solid rgba(242, 237, 228, 0.3);
  color: var(--ink);
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.modal-close:hover { background: var(--bronze); color: #141210; border-color: var(--bronze); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .piece.std { grid-column: span 6; }
  .piece.featured { flex-direction: column; }
  .piece.featured .piece-img { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 11px; white-space: nowrap; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 20px; }
  .hero { min-height: auto; padding: 130px 0 210px; }
  .hero-meta-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-actions { margin-top: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .piece.std { grid-column: span 12; }
  .contact-grid { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 1fr; }
  .modal-img img { min-height: 260px; max-height: 320px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-reg { text-align: left; }
  .hero h1 { max-width: none; }
}
