/* ============================================================
   Indic Decor v7 — Design tokens
   Architectural Mono-warm: NO accent color. Photography is the
   only color source on the page.
   ============================================================ */

:root {
  /* Palette */
  --paper:       #F5F2EC;
  --cream:       #E8E2D4;
  --stone:       #C4BCA7;
  --clay:        #7A6B56;
  --charcoal:    #3D3833;
  --graphite:    #2A2520;
  --rule:        rgba(42, 37, 32, 0.10);
  --rule-strong: rgba(42, 37, 32, 0.22);

  /* Typography */
  --display: 'Cabinet Grotesk', system-ui, sans-serif;
  --serif:   'Spectral', Georgia, serif;

  /* Spacing scale (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* Layout */
  --gutter-page: clamp(20px, 4vw, 56px);
  --gutter-section: clamp(64px, 10vw, 160px);
  --container: 1440px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 150ms;
  --t-mid:  300ms;
  --t-slow: 600ms;
}


/* ============================================================
   Reset, body, paper-grain, focus, link, motion respect
   ============================================================ */

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

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

body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(15px, 1vw + 12px, 17px);
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--paper);
  font-feature-settings: 'kern', 'liga', 'onum';
  overflow-x: hidden;
  position: relative;
  min-height: 100dvh;
}

/* Paper-grain texture overlay — fixed, global, multiply blend */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 2; }

::selection {
  background: var(--graphite);
  color: var(--paper);
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Focus — visible, paper offset, graphite ring */
:focus-visible {
  outline: 2px solid var(--graphite);
  outline-offset: 2px;
  border-radius: 1px;
}

/* Reduced motion: disable every transition + animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--graphite);
  color: var(--paper);
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.skip-link:focus { top: 0; }


/* ============================================================
   Typography utilities — Cabinet Grotesk display + Spectral body
   Italic emphasis is ALWAYS Spectral italic, NEVER a separate
   display italic.
   ============================================================ */

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.96;
  color: var(--graphite);
  font-feature-settings: 'ss01';
}

.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.display--hero      { font-size: clamp(56px, 11vw, 168px); }
.display--section   { font-size: clamp(40px, 6vw, 96px); }
.display--mid       { font-size: clamp(28px, 3.5vw, 48px); font-weight: 700; line-height: 1.05; }

.serif {
  font-family: var(--serif);
}
.serif--italic {
  font-style: italic;
}

.pull-quote {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.25;
  color: var(--graphite);
  max-width: 32ch;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--clay);
}

.eyebrow--12 { font-size: 12px; }

.caption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--clay);
}

/* Paragraph mark prefix used in footnote-style copy */
.para-mark {
  font-family: var(--serif);
  font-style: italic;
  color: var(--clay);
  margin-right: 0.4em;
}

/* Volume / Folio annotation */
.folio {
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}

/* Small caps for founders' names, etc. — using Cabinet Grotesk uppercase
   tracked-out, since Spectral has no true small caps in the loaded weights. */
.small-caps {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
}


/* ============================================================
   Components — nav, text-link, btn-visualizer, hairlines,
   stones tile, layout containers, hero, manifesto, visualizer
   USP, featured pieces, footer
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: var(--gutter-page);
  margin-inline: auto;
}

.section {
  padding-block: var(--gutter-section);
  position: relative;
}

.section--cream    { background: var(--cream); }
.section--graphite { background: var(--graphite); color: var(--paper); }
.section--graphite .display { color: var(--paper); }
.section--graphite .display em { color: var(--paper); }

.hairline {
  border: 0;
  border-top: 1px solid var(--rule);
}
.hairline--strong { border-top-color: var(--rule-strong); }

/* ============================================================ NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-5);
}
.nav__wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--graphite);
}
.nav__links {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  list-style: none;
}
.nav__link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding-block: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color var(--t-fast) var(--ease-out);
}
.nav__link:hover { color: var(--graphite); }
.nav__link[aria-current='page']::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1px;
  background: var(--stone);
}

@media (max-width: 880px) {
  .nav__inner { grid-template-columns: auto auto; }
  .nav__links {
    grid-column: 1 / -1;
    margin-top: var(--space-3);
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black calc(100% - 32px), transparent);
  }
  .nav__link { scroll-snap-align: start; flex: 0 0 auto; }
}

/* ============================================================ TEXT-LINK CTA */
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--rule);
  padding-block: 4px;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.text-link:hover {
  color: var(--graphite);
  border-bottom-color: var(--graphite);
}
.text-link__arrow {
  display: inline-block;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.text-link:hover .text-link__arrow {
  opacity: 1;
  transform: translateX(0);
}

.section--graphite .text-link { color: var(--paper); border-bottom-color: rgba(245, 242, 236, 0.25); }
.section--graphite .text-link:hover { border-bottom-color: var(--paper); }

/* ============================================================ btn-visualizer (the ONLY filled button) */
.btn-visualizer {
  display: inline-block;
  padding: 14px 26px;
  background: var(--graphite);
  color: var(--paper);
  border: 1px solid var(--paper);
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.btn-visualizer:hover {
  background: var(--paper);
  color: var(--graphite);
}
.section--graphite .btn-visualizer {
  background: var(--paper);
  color: var(--graphite);
  border-color: var(--paper);
}
.section--graphite .btn-visualizer:hover {
  background: transparent;
  color: var(--paper);
}

/* ============================================================ HERO */
.hero {
  padding-block: clamp(48px, 8vw, 128px);
  position: relative;
}
.hero__lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero__line {
  display: block;
}
.hero__line--2 { padding-left: 8vw; }
.hero__line--3 { padding-left: 16vw; }
.hero__plate {
  position: absolute;
  inset: 18% 5% auto auto;
  width: clamp(220px, 28vw, 460px);
  aspect-ratio: 4/5;
  z-index: -1;
  overflow: hidden;
}
.hero__plate img { width: 100%; height: 100%; object-fit: cover; }
.hero__footnote {
  margin-top: var(--space-7);
  max-width: 44ch;
  margin-left: auto;
  font-style: italic;
  color: var(--clay);
}

@media (max-width: 880px) {
  .hero__line--2 { padding-left: 4vw; }
  .hero__line--3 { padding-left: 8vw; }
  .hero__plate { inset: auto 0 -8% 0; width: 100%; aspect-ratio: 5/4; position: relative; margin-top: var(--space-6); }
}
@media (max-width: 480px) {
  .hero__line--2, .hero__line--3 { padding-left: 0; }
}

/* ============================================================ MANIFESTO */
.manifesto {
  text-align: center;
}
.manifesto__sentence {
  max-width: 90ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.35;
  color: var(--graphite);
}

/* ============================================================ VISUALIZER USP */
.viz {
  color: var(--paper);
}
.viz__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.viz__copy h2 { margin-bottom: var(--space-5); }
.viz__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-block: var(--space-5);
  counter-reset: viz;
}
.viz__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: baseline;
  padding-block: var(--space-3);
  border-bottom: 1px solid rgba(245, 242, 236, 0.1);
}
.viz__step::before {
  counter-increment: viz;
  content: counter(viz, lower-roman);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--clay);
  min-width: 2ch;
}
.viz__diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule-strong);
}
.viz__pane {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--graphite);
}
.viz__pane img { width: 100%; height: 100%; object-fit: cover; }
.viz__pane-label {
  position: absolute;
  margin: var(--space-3);
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  mix-blend-mode: difference;
}
.viz__pane { position: relative; }

@media (max-width: 880px) {
  .viz__grid { grid-template-columns: 1fr; }
}

/* ============================================================ FEATURED PIECES */
.featured__grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: var(--space-6);
}
.featured__col--right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-6);
}
.piece {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.piece__image {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--cream);
}
.piece--right-2 .piece__image { aspect-ratio: 1/1; }
.piece__image img { width: 100%; height: 100%; object-fit: cover; }
.piece__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 30px);
  color: var(--graphite);
  margin-top: var(--space-3);
}
.piece__meta {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--clay);
}

@media (max-width: 880px) {
  .featured__grid { grid-template-columns: 1fr; }
}

/* ============================================================ STONES GRID */
.stones__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
}
.stones__tile {
  background: var(--cream);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(220px, 28vw, 360px);
}
.stones__tile--upcoming {
  background: var(--cream);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(220px, 28vw, 360px);
  opacity: 0.6;
  cursor: default;
}
.stones__tile--upcoming .stones__name {
  color: var(--clay);
}
.stones__tile--upcoming::after {
  content: 'Coming v7.1';
  font-family: var(--display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: var(--space-2);
}
.stones__num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--charcoal);
}
.stones__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.02em;
  color: var(--graphite);
  line-height: 1;
}
.stones__origin {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--charcoal);
}

@media (max-width: 880px) {
  .stones__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stones__grid { grid-template-columns: 1fr; }
}

/* ============================================================ FOUNDERS QUOTE */
.founders {
  text-align: center;
}
.founders__quote {
  max-width: 28ch;
  margin: 0 auto var(--space-5);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  color: var(--graphite);
}
.founders__signed {
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ============================================================ FINAL CTA */
.final-cta {
  text-align: center;
}
.final-cta .display {
  margin-bottom: var(--space-6);
}

/* ============================================================ FOOTER */
.footer {
  background: var(--paper);
  padding-block: var(--space-8) 0;
  border-top: 1px solid var(--rule-strong);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
}
.footer__col-heading {
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: var(--space-4);
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer__col a { color: var(--charcoal); }
.footer__col a:hover { color: var(--graphite); }
.footer__wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--graphite);
  margin-bottom: var(--space-4);
}
.footer__tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--clay);
  max-width: 28ch;
}
.footer__bottom {
  background: var(--graphite);
  color: var(--stone);
  margin-top: var(--space-5);
  padding: var(--space-4) 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
