/* ---------- Fonts ---------- */
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/clash-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/clash-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face {
  font-family: "Inter"; src: url("../fonts/inter-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; src: url("../fonts/inter-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; src: url("../fonts/inter-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; src: url("../fonts/inter-500-latin-ext.woff2") format("woff2"); font-weight: 500; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Base ---------- */
:root {
  --gutter: clamp(32px, 26px + 1.52vw, 48px);  /* page side margin: 32px on phones → 48px on desktop */
  --ink: #111;
  --paper: #f5f5f7;
  --cobalt: #163beb;
  --grey: #666;
  --display: "Clash Grotesk", sans-serif;
  --text: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: var(--text);
  font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11";
}
main { flex: 1; }
h1, h2, h3, p, figure { margin: 0; }
img, video { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 500; font-feature-settings: normal; }
.small { font-size: 13px; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; color: var(--grey); }
.lead  { font-size: 18px; line-height: 1.5; font-weight: 400; letter-spacing: -0.02em; }
.link:hover { color: var(--cobalt); text-decoration: underline; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 14px 24px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
}
.btn::after {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-cobalt { background: var(--cobalt); }

/* ---------- Logo ---------- */
/* Box sizes and glyph offsets match the original logo artwork crop. */
.logo { display: block; flex: none; width: 112px; height: 56px; padding: 6.16px 0 0 3.52px; }
.logo img { width: 104.97px; height: auto; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px var(--gutter);
  background: var(--ink);
}
.site-header .brand { flex: 1; display: flex; align-items: center; }
.site-header .title {
  position: absolute;
  top: 28px;
  left: 0;
  width: 100%;
  font-size: 28px;
  line-height: 1.2;
  color: var(--paper);
  text-align: center;
  pointer-events: none;
}
.menu-toggle { display: none; }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 13px; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; color: #fff; white-space: nowrap; }
.nav a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px var(--gutter);
  background: var(--ink);
}
.site-footer .logo { width: 84px; height: 42px; padding: 4.72px 0 0 3.07px; }
.site-footer .logo img { width: 78.87px; }
.site-footer .small { color: var(--paper); }

/* ---------- Gallery ---------- */
.gallery { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #fff; outline: none; }
.gallery .slides { display: block; width: 100%; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: contain; background: #fff; user-select: none; -webkit-user-drag: none; }
.gallery img[hidden] { display: none; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}
.gallery-arrow.prev { left: 8px; }
.gallery-arrow.next { right: 8px; }
.gallery-dots { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; gap: 6px; }
.gallery-dots button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.gallery-dots button::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(0, 0, 0, 0.2); }
.gallery-dots button[aria-current="true"]::before { background: rgba(0, 0, 0, 0.65); }

/* ---------- Home: hero ---------- */
.hero { display: flex; flex-direction: column; gap: 32px; padding: 32px var(--gutter) 40px; }
.hero-top { display: flex; align-items: center; gap: 40px; }
.hero-copy, .hero-media { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.hero-copy { gap: 20px; }
.hero h1 { font-size: 76px; line-height: 1; letter-spacing: -2px; color: var(--cobalt); }
.hero-sub { font-size: 30px; line-height: 1.2; }
.hero-media { gap: 12px; }
.hero-media video { width: 100%; height: 280px; object-fit: cover; }
.hero-media .btn { display: none; }
.stats { display: flex; gap: 16px; }
.stat {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  height: 144px;
  padding: 24px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.stat strong { font-size: 36px; line-height: 1; }
.stat .small { color: var(--paper); }

/* ---------- Home: collection ---------- */
.rule { box-shadow: inset 0 1px var(--ink); }
.collection { --inset: calc(var(--gutter) - 4px); display: flex; flex-direction: column; gap: 24px; padding: 32px 4px; }
.collection > h2, .collection > .lead, .hq > :not(.gallery) { padding-inline: var(--inset); }  /* text lines up with the page margin */
.collection h2 { font-size: 40px; line-height: 1.1; letter-spacing: -1px; white-space: pre-wrap; }
.sofa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 4px; }
.sofa { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.sofa-info { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--inset); }
.sofa-info h3 { font-size: 20.16px; line-height: 1.2; }
.sofa-info p { font-size: 17.28px; line-height: 1.2; letter-spacing: -0.02em; }
.hq { display: flex; flex-direction: column; gap: 16px; padding-top: 48px; }
.hq h2 { font-size: 28.8px; line-height: 1.1; letter-spacing: -1px; }
.hq-price { font-size: 25.92px; line-height: 1.2; letter-spacing: -0.02em; color: var(--grey); }
.statement { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px var(--gutter); }
.statement h2 { font-size: 30px; line-height: 1.2; letter-spacing: -1px; }
.statement .small { color: var(--ink); }

/* ---------- Product + customise pages ---------- */
.page { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 64px var(--gutter); }
.page > .gallery, .page > .cover { width: 100%; }
.page h1 { font-size: 76px; line-height: 1; letter-spacing: -2px; }
.price { font-size: 36px; line-height: 1.2; letter-spacing: -0.02em; color: var(--grey); }
.shades { height: 40px; }
.fabrics { width: 100%; max-width: 256px; aspect-ratio: 736 / 906; object-fit: cover; }
.desc { min-height: 1.5em; }
.note br { display: none; }

.customise { gap: 28px; padding: 80px var(--gutter); }
.customise .intro { max-width: 780px; }
.cover { aspect-ratio: 1918 / 1054; object-fit: cover; }

/* ---------- Tablet & phone (< 1200px) ---------- */
@media (max-width: 1199.98px) {
  .site-header { flex-direction: column; align-items: stretch; gap: 16px; height: 64px; padding: 8px var(--gutter); overflow: hidden; }
  .site-header.open { height: auto; }
  .site-header .brand { height: 48px; flex: none; }
  .site-header .logo { width: 60px; height: 32px; padding: 3.27px 0 0 3.62px; }
  .site-header .logo img { width: 52.77px; }
  .site-header .title { top: 20px; left: 112px; width: 200px; font-size: 20px; }
  .menu-toggle { display: block; margin-left: auto; padding: 10px; border: 0; background: none; cursor: pointer; }
  .menu-toggle svg { display: block; width: 24px; height: 24px; }
  .menu-toggle .close, .open .menu-toggle .bars { display: none; }
  .open .menu-toggle .close { display: block; }
  .nav { flex-direction: column; align-items: flex-start; gap: 20px; padding: 12px 0; }

  .site-footer { padding-block: 24px; }
}

/* ---------- Tablet (810–1199px) ---------- */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .hero-top { gap: 32px; }
  .hero h1 { font-size: 33px; line-height: 1.1; letter-spacing: -1.51px; white-space: nowrap; }
  .hero-media video { height: 240px; }
  .stat strong { font-size: 30px; }

  .collection { padding: 28px 4px; }
  .collection h2 { font-size: 36px; }
  .hq h2 { font-size: 25.92px; }

  .page h1 { font-size: 48px; line-height: 1.1; }
}

/* ---------- Phone (< 810px) ---------- */
@media (max-width: 809.98px) {
  .hero { gap: 20px; padding: 16px var(--gutter) 24px; }
  .hero-top { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-copy { gap: 0; }
  .hero-copy .btn { display: none; }
  .hero h1 { font-size: 26px; line-height: 1.15; letter-spacing: -1px; font-weight: 600; }
  .hero-sub { font-size: 24px; text-transform: lowercase; }
  .hero-media { gap: 8px; }
  .hero-media video { height: auto; aspect-ratio: 16 / 9; }
  .hero-media .btn { display: inline-flex; }
  .stats { gap: 8px; }
  .stat { gap: 8px; height: 112px; padding: 12px 8px; }
  .stat strong { font-size: 22px; }
  .stat .small { font-size: 11px; font-weight: 400; }

  .collection { --inset: var(--gutter); gap: 16px; padding: 24px 0; }
  .collection h2 { font-size: 28px; line-height: 1.15; }
  .collection .lead span { display: none; }
  .sofa-grid { grid-template-columns: 1fr; gap: 12px; }
  .hq { gap: 12px; padding-top: 24px; }
  .hq h2 { font-size: 20.16px; line-height: 1.15; }
  .statement { gap: 12px; padding: 24px var(--gutter); }
  .statement h2 { font-size: 26px; line-height: 1.15; }
  .statement.cta { padding-bottom: 12px; }

  .page { gap: 20px; padding: 16px var(--gutter) 32px; }
  .page h1 { font-size: 34px; line-height: 1.1; letter-spacing: -1px; }
  .shades { height: 12px; }
  .fabrics { width: 27%; }
  .desc { display: none; }
  .note { font-size: 13px; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; color: var(--grey); }
  .note br { display: inline; }

  .customise { gap: 28px; padding: 48px var(--gutter); }

}
