@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/Cormorant.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("assets/fonts/Jost.ttf") format("truetype");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --linen: #F3EEE6;
  --stone: #E4DCCF;
  --ink: #1E2B26;
  --ink-muted: #4B5751;
  --sage: #A9B5A0;
  --gold: #B89B6A;
  --hairline: rgba(30, 43, 38, 0.14);
  --hairline-light: rgba(243, 238, 230, 0.2);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "PingFang SC", "Hiragino Sans GB", sans-serif;

  /* Strict 3-size body scale below hero */
  --text-heading: clamp(2rem, 3.2vw, 2.85rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--linen);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

h1, h2, h3, p, figure, dl, dd {
  margin: 0;
}

.container {
  width: min(100% - 48px, var(--container-max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background-color 220ms var(--ease-out), padding 220ms var(--ease-out), border-color 220ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(243, 238, 230, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 0;
  border-bottom-color: var(--hairline);
}

.header-inner {
  width: min(100% - 48px, var(--container-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background-color: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 6px 14px;
  font-size: var(--text-sm);
  color: var(--ink);
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.lang-toggle:hover {
  background-color: rgba(30, 43, 38, 0.06);
  border-color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--ink);
  transition: transform 200ms var(--ease-out);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.25px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--ink);
}

/* Full-Bleed Opening Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--stone);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 238, 230, 0.76) 0%, rgba(243, 238, 230, 0.36) 44%, rgba(243, 238, 230, 0) 68%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, var(--container-max));
  margin-inline: auto;
  padding: 132px 0 88px;
}

.hero-copy {
  max-width: 480px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 6vw, 5.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero-copy p {
  font-size: var(--text-body);
  color: var(--ink);
  max-width: 44ch;
  margin-bottom: 34px;
}

.btn-primary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.btn-primary {
  background-color: var(--ink);
  color: var(--linen);
}

.btn-primary:hover {
  background-color: #2C3D36;
  transform: translateY(-1px);
}

.btn-light {
  background-color: var(--linen);
  color: var(--ink);
}

.btn-light:hover {
  background-color: var(--stone);
  transform: translateY(-1px);
}

/* Shared Section Spacing & Typography */
.section {
  padding: clamp(72px, 9vw, 124px) 0;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-head p {
  font-size: var(--text-body);
  color: var(--ink-muted);
  max-width: 58ch;
}

/* Five Editions Selector Strip */
.collection-section {
  background-color: var(--linen);
}

.edition-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.edition-card {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 0 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0.72;
  transition: opacity 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.edition-card:hover,
.edition-card.is-active {
  opacity: 1;
}

.edition-card.is-active {
  border-bottom-color: var(--ink);
  transform: translateY(-2px);
}

.edition-thumb {
  aspect-ratio: 1 / 1;
  background-color: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.edition-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 320ms var(--ease-out);
}

.edition-card:hover .edition-thumb img {
  transform: scale(1.03);
}

.edition-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.edition-card-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}

.edition-card-sub {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

/* Interactive Edition Stage - Zero Cropping */
.edition-inspector {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  background-color: var(--stone);
  padding: clamp(24px, 4vw, 52px);
}

.edition-stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stage-frame {
  aspect-ratio: 16 / 10;
  background-color: var(--linen);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-frame.is-studio {
  background-color: #FFFFFF;
}

.stage-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms var(--ease-out);
}

.stage-frame.is-studio img {
  padding: 12px;
}

.stage-frame img.is-swapping {
  opacity: 0;
}

.view-switcher {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--hairline);
  gap: 22px;
}

.view-btn {
  background: transparent;
  border: none;
  padding: 6px 2px 10px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  position: relative;
  transition: color 180ms var(--ease-out);
}

.view-btn.is-active,
.view-btn:hover {
  color: var(--ink);
}

.view-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background-color: var(--ink);
  transform: scaleX(0);
  transition: transform 200ms var(--ease-out);
}

.view-btn.is-active::after {
  transform: scaleX(1);
}

.edition-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.inspector-details h3 {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
}

.edition-price {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.inspector-motif {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.inspector-desc {
  font-size: var(--text-body);
  color: var(--ink);
  max-width: 48ch;
  margin-bottom: 26px;
}

.spec-list {
  border-top: 1px solid var(--hairline);
  margin-bottom: 30px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--text-sm);
}

.spec-row dt {
  color: var(--ink-muted);
  white-space: nowrap;
}

.spec-row dd {
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Comparison Matrix */
.compare-section {
  background-color: var(--linen);
  border-top: 1px solid var(--hairline);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.compare-table th,
.compare-table td {
  padding: 18px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.compare-table th {
  font-weight: 500;
  color: var(--ink-muted);
  border-bottom-color: var(--ink);
}

.compare-table td:first-child {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}

.table-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.table-link:hover {
  opacity: 0.72;
}

/* Craft Asymmetric Editorial */
.craft-section {
  background-color: var(--linen);
  border-top: 1px solid var(--hairline);
}

.craft-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.craft-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.media-frame {
  overflow: hidden;
  background-color: var(--stone);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.media-frame:hover img {
  transform: scale(1.02);
}

.aspect-tall {
  aspect-ratio: 4 / 5;
}

.aspect-landscape {
  aspect-ratio: 4 / 3;
}

.aspect-wide {
  aspect-ratio: 16 / 10;
}

figcaption {
  padding-top: 16px;
}

figcaption h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

figcaption p {
  font-size: var(--text-body);
  color: var(--ink-muted);
  max-width: 48ch;
}

/* Interactive Fridge Hotspots */
.spaces-section {
  background-color: var(--stone);
}

.hotspot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
}

.hotspot-canvas {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
}

.hotspot-canvas img {
  width: 100%;
  display: block;
}

.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(243, 238, 230, 0.9);
  background-color: rgba(30, 43, 38, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.hotspot-pin .pin-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--linen);
}

.hotspot-pin:hover,
.hotspot-pin.is-active {
  background-color: var(--ink);
  transform: translate(-50%, -50%) scale(1.14);
}

.hotspot-panel {
  background-color: var(--linen);
  padding: 32px;
}

.hotspot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.spot-tab {
  background: transparent;
  border: none;
  padding: 0 0 4px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  border-bottom: 1.5px solid transparent;
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.spot-tab.is-active,
.spot-tab:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.hotspot-panel h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}

.hotspot-panel p {
  font-size: var(--text-body);
  color: var(--ink);
  margin-bottom: 20px;
}

.hotspot-panel .hotspot-note {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

/* The One Full-Bleed Ink Green Climax */
.gifting-section {
  background-color: var(--ink);
  color: var(--linen);
}

.gifting-head {
  max-width: 62ch;
  margin-bottom: 48px;
}

.gifting-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 400;
  line-height: 1.1;
  color: var(--linen);
  margin-bottom: 16px;
}

.gifting-head p {
  font-size: var(--text-body);
  color: rgba(243, 238, 230, 0.82);
}

.gifting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.gifting-figure .media-frame {
  background-color: #16211D;
}

.gifting-figure .media-frame img {
  object-fit: contain;
}

.gifting-figure figcaption {
  font-size: var(--text-sm);
  color: rgba(243, 238, 230, 0.78);
}

.gifting-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline-light);
}

.action-hint {
  font-size: var(--text-sm);
  color: rgba(243, 238, 230, 0.74);
}

/* Details Accordion */
.details-section {
  background-color: var(--linen);
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--ink);
}

.faq-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: var(--ink);
  transition: transform 200ms var(--ease-out);
}

.faq-icon::before {
  top: 6.5px;
  left: 0;
  right: 0;
  height: 1px;
}

.faq-icon::after {
  left: 6.5px;
  top: 0;
  bottom: 0;
  width: 1px;
}

.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: rotate(90deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 240ms var(--ease-out);
}

.faq-answer p {
  font-size: var(--text-body);
  color: var(--ink-muted);
  padding-bottom: 22px;
  max-width: 60ch;
}

/* Footer */
.site-footer {
  background-color: var(--stone);
  padding: 64px 0 36px;
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--ink);
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* Subtle Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive: Tablet & Mobile (390x844 clean composition) */
@media (max-width: 960px) {
  .site-header {
    padding: 14px 0;
    background-color: rgba(243, 238, 230, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: var(--hairline);
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    display: block;
    background-color: var(--linen);
    padding-top: 68px;
  }

  .hero-media {
    position: relative;
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 230px;
  }

  .hero-media img {
    object-position: 86% center;
  }

  .hero-media::after {
    background: none;
  }

  .hero-content {
    padding: 32px 0 52px;
  }

  .edition-strip {
    grid-template-columns: repeat(5, 148px);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .edition-card {
    scroll-snap-align: start;
  }

  .stage-frame {
    aspect-ratio: 4 / 3;
  }

  .edition-inspector,
  .craft-editorial,
  .hotspot-layout,
  .gifting-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner,
  .hero-content {
    width: calc(100% - 32px);
  }

  .brand-wordmark {
    font-size: 1.45rem;
  }

  .edition-inspector {
    padding: 20px 16px;
  }

  .view-switcher {
    gap: 14px;
  }

  .view-btn {
    padding: 8px 0 10px;
  }

  .hotspot-pin {
    width: 28px;
    height: 28px;
  }

  .hotspot-panel {
    padding: 22px 18px;
  }

  .spec-row {
    flex-direction: column;
    gap: 4px;
  }

  .spec-row dd {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
