/* ==========================================================================
   MAISON KRIZSAN — House System v1.3
   Luxury elevation pass: a young maison with the discipline and cultural
   confidence of a heritage house. Tokens are locked to the brand brief.
   Do not introduce colors, type, or motion outside this system without
   updating the brief itself.
   ========================================================================== */

:root {
  /* Color — House System 04 */
  --ivory: #F4F0E8;
  --obsidian: #191817;
  --stone: #777168;
  --sand: #D8D0C4;
  --olive: #4B5140;

  /* Type — House System 05 */
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rhythm — whitespace increased ~18% in v1.3, luxury uses air */
  --section-pad: clamp(8.5rem, 16.5vw, 16.5rem);
  --container-pad: clamp(1.5rem, 5vw, 4rem);
  --max-width: 1400px;
  --max-width-narrow: 760px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-slow: 900ms;
  --dur-med: 500ms;
  --dur-fast: 250ms;
}

/* ==========================================================================
   RESET
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

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

body, h1, h2, h3, p, ul, figure {
  margin: 0;
}

ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; padding: 0; color: inherit; }

body {
  background: var(--ivory);
  color: var(--obsidian);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Visible keyboard focus — never remove outline without replacing it */
a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--olive);
  outline-offset: 4px;
}

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 2.5rem;
}

.eyebrow--center { text-align: center; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border: 1px solid currentColor;
  transition: background-color var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
}

.btn--ghost-light {
  color: var(--ivory);
  background: var(--ivory);
  color: var(--obsidian);
}
.btn--ghost-light:hover { background: transparent; color: var(--ivory); }

.btn--outline-light {
  color: var(--ivory);
  background: transparent;
  border-color: rgba(244, 240, 232, 0.55);
}
.btn--outline-light:hover { background: var(--ivory); color: var(--obsidian); }

.btn--outline-dark {
  color: var(--obsidian);
  background: transparent;
  border-color: var(--obsidian);
}
.btn--outline-dark:hover { background: var(--obsidian); color: var(--ivory); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.75rem var(--container-pad);
  transition: background-color var(--dur-med) var(--ease), padding var(--dur-med) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--sand);
}

.nav {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__mark {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: color var(--dur-med) var(--ease);
}

.site-header.is-scrolled .nav__mark,
.nav--dark .nav__mark {
  color: var(--obsidian);
}

.nav__links {
  display: flex;
  gap: 2.75rem;
}

.nav__links a {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.88;
  transition: color var(--dur-med) var(--ease), opacity var(--dur-fast) var(--ease);
}

.site-header.is-scrolled .nav__links a {
  color: var(--obsidian);
}

.nav__links a:hover { opacity: 1; }

.nav__toggle {
  display: none;
  width: 28px;
  height: 18px;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ivory);
  transition: background-color var(--dur-med) var(--ease), transform var(--dur-fast) var(--ease);
}

.site-header.is-scrolled .nav__toggle span { background: var(--obsidian); }

.nav__toggle span:first-child { top: 0; }
.nav__toggle span:last-child { bottom: 0; }

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(8px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   01 · THE ENTRANCE
   ========================================================================== */

.entrance {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.entrance__media {
  position: absolute;
  inset: 0;
}

.entrance__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entrance__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 14, 12, 0.15) 0%,
    rgba(15, 14, 12, 0.4) 35%,
    rgba(15, 14, 12, 0.45) 65%,
    rgba(15, 14, 12, 0.2) 100%
  );
}

.entrance__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--container-pad);
  text-align: center;
  color: var(--ivory);
}

.entrance__title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 1.75rem;
}

.entrance__sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 300;
  line-height: 1.7;
  max-width: 34rem;
  margin-inline: auto;
  opacity: 0.92;
}

/* ==========================================================================
   02 · THE HOUSE
   ========================================================================== */

.house {
  padding-block: var(--section-pad);
}

.house__text {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--obsidian);
}

.house__text + .house__text {
  margin-top: 1.75rem;
  color: var(--stone);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

/* ==========================================================================
   03 · THE PHILOSOPHY
   ========================================================================== */

.philosophy {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--sand);
}

.philosophy__intro {
  max-width: 38rem;
  margin: 0 auto clamp(3.5rem, 6vw, 5rem);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--obsidian);
}

.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
}

/* ==========================================================================
   04 · DESTINATIONS
   ========================================================================== */

.works {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--sand);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(220px, 24vw, 340px);
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.work {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 6;
  grid-row: span 1;
}

.work__frame {
  overflow: hidden;
  flex: 1;
}

/* Row 1–2: large California Coast (tall, spans 2 rows) beside Central Europe */
.work:nth-child(1) { grid-column: 1 / span 7; grid-row: span 2; }
.work:nth-child(2) { grid-column: 8 / span 5; grid-row: span 1; }

/* Row 2: Mediterranean fills beside the tall image */
.work:nth-child(3) { grid-column: 8 / span 5; grid-row: span 1; }

/* Row 3: California Coast + Central Europe + Coming Soon */
.work:nth-child(4) { grid-column: 1 / span 4; grid-row: span 1; }
.work:nth-child(5) { grid-column: 5 / span 4; grid-row: span 1; }
.work:nth-child(6) { grid-column: 9 / span 4; grid-row: span 1; }

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--stone);
}

.work figcaption span:first-child {
  color: var(--obsidian);
  letter-spacing: 0.02em;
}

.work--coming .work__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sand);
  color: var(--stone);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ==========================================================================
   05 · THE ARCHIVE
   ========================================================================== */

.collection {
  padding-block: var(--section-pad);
  background: transparent;
  border-top: 1px solid var(--sand);
}

.collection__intro {
  max-width: 38rem;
  margin: 0 auto clamp(3.5rem, 6vw, 5rem);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--obsidian);
}

.collection__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
}

.pillar {
  text-align: center;
  padding-inline: 1rem;
}

.pillar__mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--stone);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.pillar__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.9rem;
  letter-spacing: 0.01em;
}

.pillar__desc {
  font-size: 0.95rem;
  color: var(--stone);
  line-height: 1.7;
  max-width: 22rem;
  margin-inline: auto;
}

/* ==========================================================================
   06 · THE KRIZSAN STANDARD
   ========================================================================== */

.standard {
  position: relative;
  padding-block: calc(var(--section-pad) * 1.3);
  overflow: hidden;
}

.standard__media {
  position: absolute;
  inset: 0;
}

.standard__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.standard__scrim {
  position: absolute;
  inset: 0;
  background: rgba(13, 12, 10, 0.68);
}

.standard__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--ivory);
}

.eyebrow--light {
  color: rgba(244, 240, 232, 0.65);
}

.standard__lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 3.5rem;
  letter-spacing: 0.01em;
}

.standard__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.standard__item dt {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
  position: relative;
  padding-bottom: 0.85rem;
}

.standard__item dt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 1px;
  background: var(--olive);
  opacity: 0.85;
}

.standard__item dd {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(244, 240, 232, 0.7);
}

/* ==========================================================================
   07 · THE JOURNAL
   ========================================================================== */

.journal-preview {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--sand);
}

.journal-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.journal-card {
  display: block;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sand);
  transition: border-color var(--dur-med) var(--ease);
}

.journal-card:hover {
  border-color: var(--olive);
}

.journal-card__kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.85rem;
}

.journal-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--obsidian);
}

/* ==========================================================================
   08 · PRIVATE COMMISSIONS
   ========================================================================== */

.collaborate {
  padding-block: var(--section-pad);
  text-align: center;
}

.collaborate__text {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--obsidian);
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.collaborate__text--secondary {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: var(--stone);
  max-width: 30rem;
  margin-bottom: 2.75rem;
}

/* ==========================================================================
   09 · PROVENANCE
   ========================================================================== */

.provenance {
  padding-block: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--sand);
  text-align: center;
}

.provenance__mark {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--obsidian);
  margin-bottom: 1rem;
}

.provenance__line {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  line-height: 1.9;
}

/* ==========================================================================
   10 · FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--sand);
  padding-block: 3rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__mark {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color var(--dur-fast) var(--ease);
}

.footer__links a:hover { color: var(--obsidian); }

.footer__copy {
  font-size: 0.76rem;
  color: var(--stone);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--ivory);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    transform: translateY(-100%);
    transition: transform var(--dur-med) var(--ease);
  }

  .nav__links.is-open {
    transform: translateY(0);
  }

  .nav__links a {
    color: var(--obsidian);
    font-size: 0.95rem;
  }

  .nav__toggle { display: block; z-index: 95; }

  .br-desktop { display: none; }

  .works__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .work,
  .work:nth-child(1),
  .work:nth-child(2),
  .work:nth-child(3),
  .work:nth-child(4),
  .work:nth-child(5),
  .work:nth-child(6) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .work__frame,
  .work--coming .work__placeholder {
    aspect-ratio: 4 / 5;
  }

  .collection__grid,
  .philosophy__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .standard__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 1.5rem;
  }

  .journal-preview__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn { width: 100%; text-align: center; }
}
