:root {
  --cream: #f7f1e8;
  --paper: #fffdf9;
  --sand: #ece3d6;
  --ink: #23201c;
  --ink-soft: #5c554c;
  --ink-faint: #857c70;
  --rule: #ddd3c4;
  --rule-strong: #23201c;
  --rule-soft: #e8dfd2;
  --pine: #1e3326;
  --pine-line: #3a5444;
  --on-pine: #f4efe6;
  --on-pine-soft: #b7c4b8;
  --espresso: #2e221b;
  --sage: #56705c;
  --accent: #d9ecae;
  --tile-coffee: #efe6d8;
  --tile-kitchen: #e8e9df;
  --tile-home: #e3e9e3;
  --tile-textile: #f1e6dc;

  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 2px;
  --gutter: clamp(16px, 2.6vw, 40px);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-reveal: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-wipe: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, video { display: block; max-width: 100%; }

section[id], article[id] { scroll-margin-top: var(--header-h); }

a:focus-visible,
button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: 1520px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }

/* Underline that wipes in from the left and out to the right */
.uline { position: relative; text-decoration: none; }
.uline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 550ms var(--ease-wipe);
}
.uline[aria-current="page"]::after { transform: scaleX(1); }

/* Bigger tap area for small text links without changing their layout */
.header-end .uline::before,
.product-actions .details::before,
.room-items a::before { content: ""; position: absolute; inset: -12px -6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font: 600 0.875rem/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.on-dark { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn.on-dark.outline { background: transparent; color: var(--paper); border-color: rgba(255, 253, 249, 0.55); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 0.8125rem; }

/* Header: sits over the hero on the homepage, solid everywhere else */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: background 300ms ease, color 300ms ease, border-color 300ms ease;
}
.site-header.overlay { position: fixed; left: 0; right: 0; background: transparent; color: var(--paper); border-color: rgba(255, 253, 249, 0.2); }
.site-header.overlay.is-solid { background: var(--cream); color: var(--ink); border-color: var(--rule); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-h); gap: 24px; }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; letter-spacing: -0.035em; text-decoration: none; justify-self: center; }
.nav { display: flex; gap: 28px; font-size: 0.875rem; font-weight: 600; }
.header-end { justify-self: end; display: flex; align-items: center; gap: 24px; font-size: 0.875rem; font-weight: 600; }
.header-end .mobile-only { display: none; }
.region { display: flex; align-items: center; gap: 2px; }
.region button {
  font: inherit;
  color: inherit;
  opacity: 0.6;
  background: none;
  border: 0;
  padding: 8px 4px;
  cursor: pointer;
  transition: opacity 160ms ease;
}
.region button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.region span { opacity: 0.4; }

/* Hero: full-screen loop with the headline set over it */
.hero { position: relative; height: 100svh; min-height: 620px; max-height: 1100px; color: var(--paper); overflow: hidden; background: var(--espresso); }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 15, 11, 0.72) 0%, rgba(20, 15, 11, 0.15) 50%, rgba(20, 15, 11, 0.35) 100%); }
.hero .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(28px, 5vh, 56px); }
.hero h1 { font-size: clamp(4rem, 13.5vw, 13rem); line-height: 0.86; letter-spacing: -0.055em; font-weight: 300; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-top: clamp(20px, 3vh, 36px); padding-top: 20px; border-top: 1px solid rgba(255, 253, 249, 0.3); }
.hero-foot p { margin: 0; max-width: 44ch; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.5; color: rgba(255, 253, 249, 0.86); }
.hero-foot .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Category strip: four photos edge to edge */
.cat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cat { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; color: var(--paper); text-decoration: none; background: var(--sand); }
.cat-photo, .cat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-photo img { object-fit: cover; transition: transform 700ms var(--ease-out); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 15, 11, 0.55), rgba(20, 15, 11, 0) 45%); }
.cat-text { position: absolute; left: clamp(16px, 1.8vw, 28px); right: 16px; bottom: clamp(16px, 1.8vw, 28px); z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cat-name { font-family: var(--serif); font-size: clamp(1.375rem, 2vw, 2rem); line-height: 1; letter-spacing: -0.02em; }
.cat-count { font-size: 0.8125rem; opacity: 0.85; white-space: nowrap; }

/* The pieces: a catalogue index on a hairline grid */
.shop { padding: clamp(72px, 9vw, 140px) 0 0; }
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap; padding-bottom: 28px; }
.shop-head h2 { font-size: clamp(3rem, 7vw, 6.5rem); line-height: 0.9; letter-spacing: -0.045em; font-weight: 300; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.tabs button { font: 600 0.9375rem/1 var(--sans); color: var(--ink-faint); background: none; border: 0; padding: 12px 0; cursor: pointer; position: relative; transition: color 160ms ease; }
.tabs button sup { font-size: 0.6875rem; font-weight: 600; margin-left: 3px; }
.tabs button[aria-pressed="true"] { color: var(--ink); }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 550ms var(--ease-wipe); }
.tabs button[aria-pressed="true"]::after { transform: scaleX(1); transform-origin: left; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule); }
.product { display: flex; flex-direction: column; padding: clamp(14px, 1.4vw, 22px); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--cream); transition: background 300ms ease; }
.product-art { position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(14px, 1.6vw, 22px); background: var(--tile-coffee); margin-bottom: 18px; overflow: hidden; }
.product-art[data-cat="kitchen"] { background: var(--tile-kitchen); }
.product-art[data-cat="home"] { background: var(--tile-home); }
.product-art[data-cat="textiles"] { background: var(--tile-textile); }
.product-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-brand { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.art-spec { font-family: var(--serif); font-size: clamp(1.625rem, 2.5vw, 2.5rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 9ch; transition: transform 500ms var(--ease-out); }
.tag { position: absolute; top: clamp(14px, 1.6vw, 22px); right: clamp(14px, 1.6vw, 22px); background: var(--paper); padding: 3px 8px; font-size: 0.75rem; font-weight: 600; }
.tag.set { background: var(--accent); color: var(--pine); }
.product .brand { margin: 0 0 2px; font-size: 0.8125rem; color: var(--ink-faint); }
.product h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.3; }
.product .desc { font-size: 0.875rem; color: var(--ink-soft); margin: 6px 0 18px; line-height: 1.5; }
.product-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product-actions .details { font-size: 0.8125rem; color: var(--ink-soft); }

/* Room sets: full-width splits that alternate sides */
.rooms { padding: clamp(72px, 9vw, 140px) 0 0; }
.rooms-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap; padding-bottom: clamp(32px, 4vw, 56px); }
.rooms-head h2 { font-size: clamp(3rem, 7vw, 6.5rem); line-height: 0.9; letter-spacing: -0.045em; font-weight: 300; }
.rooms-head p { margin: 0; max-width: 42ch; color: var(--ink-soft); }
.room { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-top: 1px solid var(--rule-strong); }
.room:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.room:nth-child(even) .media { order: 2; }
.room .media { min-height: clamp(420px, 62vh, 720px); }
.room-body { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 64px); background: var(--paper); }
.room-meta { font-size: 0.875rem; color: var(--ink-faint); }
.room h3 { font-size: clamp(2.25rem, 4vw, 3.75rem); line-height: 0.95; letter-spacing: -0.04em; font-weight: 300; margin-top: 10px; }
.room-copy { margin: 16px 0 24px; font-size: 1rem; color: var(--ink-soft); line-height: 1.55; max-width: 44ch; }
.room-items { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.room-items li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.room-items .qty { color: var(--ink-faint); }
.room-items a { flex: none; white-space: nowrap; font-size: 0.8125rem; font-weight: 700; }
.room-buy { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.room-buy .btn { width: 100%; }
.room-buy small { color: var(--ink-faint); font-size: 0.8125rem; line-height: 1.4; }

/* Media frames: clip reveal + slow scroll drift */
.media { position: relative; overflow: hidden; background: var(--sand); }
.media-inner { position: absolute; inset: 0; }
.media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; will-change: transform; }

/* Guides band */
.guides-band { background: var(--pine); color: var(--on-pine); margin-top: clamp(72px, 9vw, 140px); padding: clamp(64px, 8vw, 120px) 0; }
.guides-band .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px); }
.guides-band h2 { font-size: clamp(2.75rem, 5.5vw, 5.25rem); line-height: 0.92; letter-spacing: -0.045em; font-weight: 300; }
.guides-band .intro { margin: 20px 0 0; max-width: 38ch; color: var(--on-pine-soft); }
.guide-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pine-line); }
.guide-links li { border-bottom: 1px solid var(--pine-line); }
.guide-links a { display: grid; gap: 6px; padding: 24px 0; text-decoration: none; }
.guide-links strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.05; letter-spacing: -0.03em; }
.guide-links span { color: var(--on-pine-soft); font-size: 0.9375rem; }

/* How buying works */
.how { padding: clamp(72px, 9vw, 140px) 0; }
.how h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.035em; font-weight: 300; margin-bottom: 32px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; border-top: 1px solid var(--rule-strong); padding-top: 14px; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-soft); max-width: 38ch; }
.steps li::before { content: counter(step) ". "; color: var(--ink); font-weight: 700; }

/* Footer */
.site-footer { background: var(--espresso); color: #c9bcac; padding: clamp(56px, 7vw, 96px) 0 32px; font-size: 0.875rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 40px; padding-bottom: 48px; }
.footer-brand { font-family: var(--serif); font-size: 2rem; letter-spacing: -0.035em; color: var(--paper); text-decoration: none; display: inline-block; margin-bottom: 12px; }
.footer-line { margin: 0; font-size: 0.9375rem; line-height: 1.6; max-width: 36ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h2 { font-family: var(--sans); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0; color: var(--paper); margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--paper); }
.disclosure { border-top: 1px solid #4a3a30; padding: 20px 0 0; font-size: 0.8125rem; color: #a8998a; }
.disclosure p { margin: 0 0 6px; }

/* Privacy page */
.policy { padding: clamp(56px, 8vw, 104px) 0 32px; }
.policy .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.policy h1 { font-size: clamp(2.75rem, 5.5vw, 4.5rem); line-height: 0.95; letter-spacing: -0.04em; font-weight: 300; }
.policy .updated { color: var(--ink-faint); margin: 12px 0 0; font-size: 0.875rem; }
.policy article { max-width: 64ch; }
.policy article > p:first-child { margin-top: 0; }
.policy h2 { font-size: 1.625rem; margin: 40px 0 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.policy p, .policy li { color: var(--ink-soft); line-height: 1.65; }
.policy li { margin-bottom: 8px; }
.policy strong { color: var(--ink); font-weight: 700; }

/* Responsive */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room, .room:nth-child(even) { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  :root { --header-h: 60px; }
  .nav, .header-end .desk-only { display: none; }
  .header-end .mobile-only { display: inline; }
  .site-header .wrap { grid-template-columns: auto 1fr; gap: 16px; }
  .wordmark { justify-self: start; font-size: 1.5rem; }
  .hero { min-height: 560px; }
  .hero-foot .actions { width: 100%; }
  .hero-foot .btn { flex: 1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { padding: 10px 10px 16px; }
  .product .desc { display: none; }
  .product-art .tag.set { display: none; }
  .product-actions { flex-direction: column; align-items: flex-start; }
  .room, .room:nth-child(even) { grid-template-columns: 1fr; }
  .room:nth-child(even) .media { order: 0; }
  .room .media { min-height: 0; aspect-ratio: 4 / 3; }
  .guides-band .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .policy .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .cat-text { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Hover movement only where a real pointer can hover; on phones a tap would leave it stuck. */
@media (hover: hover) and (pointer: fine) {
  .uline:hover::after { transform: scaleX(1); transform-origin: left; }
  .btn:hover { background: var(--pine); border-color: var(--pine); }
  .btn.outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .btn.on-dark:hover { background: var(--accent); border-color: var(--accent); color: var(--pine); }
  .btn.on-dark.outline:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
  .region button:hover { opacity: 1; }
  .tabs button:hover { color: var(--ink); }
  .cat:hover .cat-photo img { transform: scale(1.05); }
  .product:hover { background: var(--paper); }
  .product:hover .art-spec { transform: translateY(-6px); }
  .guide-links a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
}

/* Motion: the hero headline rises line by line out of masks; photos reveal with a wipe. */
.line-mask { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-mask > .line { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal-text] .line { transform: translateY(105%); transition: transform 1100ms var(--ease-reveal); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
  .js [data-reveal-text].is-in .line { transform: none; }
  .js [data-reveal-text]:not(.is-split) { visibility: hidden; }

  /* The clip sits on the inner layer: a fully clipped target never reports as intersecting. */
  .js [data-reveal-media] { background: transparent; }
  .js [data-reveal-media] .media-inner {
    clip-path: inset(100% 0 0 0);
    transform: scale(1.12);
    transition: clip-path 1100ms var(--ease-reveal), transform 1500ms var(--ease-reveal);
  }
  .js [data-reveal-media].is-in .media-inner { clip-path: inset(0 0 0 0); transform: none; }
  .js .no-anim, .js .no-anim .media-inner { transition: none !important; }

  .hero video { animation: hero-in 1600ms var(--ease-reveal) both; }
  @keyframes hero-in { from { transform: scale(1.08); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-property: color, background-color, border-color, opacity !important; }
  .btn:active { transform: none; }
}
