/* Tussenlat, Milano. Showroom gallery: full-bleed oak photography, white space, one light geometric family. */
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --bg: #f7f6f3;        /* gallery white, slightly warm */
  --panel: #efede8;
  --ink: #151515;
  --mute: #5c5955;      /* 6.6:1 on --bg */
  --line: rgba(21, 21, 21, 0.12);
  --oak: #a87b4f;
  --night: #141311;     /* footer */
  --font: "Jost", ui-sans-serif, system-ui, sans-serif;
  --track: 0.16em;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 1360px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; font-weight: 400; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: currentColor; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--mute); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
h1, h2, h3 { font-weight: 300; line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.8rem, 1.6rem + 4.6vw, 6rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); }
h3 { font-size: 1.4rem; font-weight: 400; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 60ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 20; }

/* small-caps style used for labels, nav and buttons */
.site-header nav, .btn, .link, .card .holds, .crumbs, .specs dt, .status, figcaption, .foot-row { letter-spacing: var(--track); }

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 1.6rem var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; font-weight: 500; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.34em; }
.mark { width: 22px; height: 15px; fill: currentColor; }
.site-header nav { display: flex; gap: 2rem; flex-wrap: wrap; font-size: 0.72rem; text-transform: uppercase; }
.site-header nav a { text-decoration: none; opacity: 0.78; }
.site-header nav a:hover { opacity: 1; color: inherit; }
.site-header .lang { opacity: 1; border-left: 1px solid currentColor; padding-left: 2rem; }
/* home: header floats white over the full-bleed photo */
.home .site-header { position: absolute; top: 0; left: 0; right: 0; color: #fff; }
.home .site-header .lang { border-color: rgba(255, 255, 255, 0.5); }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(5rem, 11vw, 10rem) 0 0; }
.full { width: 100vw; margin-left: calc(50% - 50vw); }

/* ---------- hero ---------- */
.hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: 100vh; height: 100svh; min-height: 600px; max-height: 1100px; padding: 0; overflow: hidden; color: #fff; }
.hero-img { position: absolute; inset: 0; margin: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 10, 8, 0.74) 0%, rgba(12, 10, 8, 0.46) 38%, rgba(12, 10, 8, 0) 66%),
              linear-gradient(0deg, rgba(12, 10, 8, 0.45) 0%, rgba(12, 10, 8, 0) 42%),
              linear-gradient(180deg, rgba(12, 10, 8, 0.4) 0%, rgba(12, 10, 8, 0) 18%);
}
.hero-text { position: absolute; z-index: 1; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); right: var(--gutter); bottom: clamp(3rem, 9vh, 6.5rem); max-width: 620px; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255, 255, 255, 0.92); font-size: 1.15rem; max-width: 40ch; }
.hero .status { color: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.6); }
.hero .btn { background: #fff; color: var(--ink); }
.hero .btn:hover { background: #e9e6e0; }
.hero .link { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { opacity: 0; transform: translateY(14px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .hero-text > :nth-child(2) { animation-delay: 0.12s; }
  .hero-text > :nth-child(3) { animation-delay: 0.24s; }
  .hero-text > :nth-child(4) { animation-delay: 0.36s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .card-img img, .band img { transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.lede { font-size: 1.15rem; line-height: 1.6; max-width: 40ch; }
.actions { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; margin: 2.2rem 0 2rem; }
.status { font-size: 0.72rem; text-transform: uppercase; line-height: 1.9; color: var(--mute); max-width: 52ch; border-left: 1px solid currentColor; padding-left: 1rem; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-size: 0.72rem; font-weight: 500; text-transform: uppercase; cursor: pointer; border: 0; border-radius: 0;
  background: var(--ink); color: #fff; padding: 1.05rem 1.8rem; line-height: 1; transition: background-color 0.25s, color 0.25s;
}
.btn:hover { background: #3a3936; }
.link, .btn-small, .btn-ghost {
  font-size: 0.72rem; font-weight: 500; text-transform: uppercase; text-decoration: none; background: none; color: var(--ink);
  padding: 0 0 4px; border-bottom: 1px solid currentColor; box-shadow: none; white-space: nowrap;
}
.btn-small:hover, .btn-ghost:hover { background: none; color: var(--mute); }

/* ---------- section heads ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 5rem); align-items: end; margin-bottom: 3.5rem; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--mute); margin: 0; }

/* ---------- collection ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4.5rem clamp(1.25rem, 2.5vw, 2.5rem); }
.grid > li { grid-column: span 2; }
.products .grid > li:nth-child(-n+2) { grid-column: span 3; }
.card-img { display: block; overflow: hidden; background: var(--panel); }
.card-img img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.products .grid > li:nth-child(-n+2) .card-img img { aspect-ratio: 5 / 4; }
.card-img:hover img { transform: scale(1.04); }
.card h3 { margin: 1.4rem 0 0.35rem; font-size: 1.4rem; }
.products .grid > li:nth-child(-n+2) h3 { font-size: 1.75rem; font-weight: 300; }
.card h3 a { text-decoration: none; }
.card .holds { font-size: 0.7rem; text-transform: uppercase; color: var(--mute); margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: var(--mute); margin-bottom: 1.3rem; max-width: 44ch; }
.grid-small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.grid-small > li { grid-column: auto; }
.grid-small h3 { font-size: 1.15rem; }

/* ---------- photo band ---------- */
.band { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: clamp(5rem, 11vw, 10rem); padding: 0; height: 78vh; min-height: 480px; max-height: 900px; overflow: hidden; color: #fff; }
.band figure { position: absolute; inset: 0; margin: 0; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 10, 8, 0.66) 0%, rgba(12, 10, 8, 0.25) 45%, rgba(12, 10, 8, 0) 70%); pointer-events: none; }
.band-text { position: absolute; z-index: 1; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: clamp(3rem, 10vh, 6rem); max-width: 520px; }
.band-text h2 { color: #fff; }
.band-text p { color: rgba(255, 255, 255, 0.9); }

/* ---------- how it works ---------- */
.how > h2 { margin-bottom: 3rem; }
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.diagram { margin: 0; background: #fff; padding: 2rem; }
.diagram text { font: 13px var(--font); fill: var(--mute); letter-spacing: 0.04em; }
.d-felt { fill: #222; } .d-slat { fill: var(--oak); } .d-anchor { fill: #8a8580; } .d-holder { fill: var(--ink); }
.how ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 2.4rem; }
.how li { counter-increment: s; display: grid; grid-template-columns: 3.5rem 1fr; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.how li::before { content: "0" counter(s); font-weight: 300; font-size: 1.1rem; color: var(--mute); letter-spacing: 0.08em; }
.how li h3, .how li p { grid-column: 2; }
.how li p { color: var(--mute); margin: 0; }
.fit { margin-top: 4.5rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 6rem); }
.fit h3 { font-weight: 300; font-size: 1.75rem; }
.fit p { color: var(--mute); }

/* ---------- ideas ---------- */
.idea-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.idea-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.idea-list h3 { font-size: 1.3rem; margin: 0 0 0.2rem; }
.idea-list p { margin: 0; color: var(--mute); font-size: 0.95rem; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 clamp(2rem, 5vw, 6rem); align-items: start; }
.faq > h2 { grid-row: 1 / span 10; position: sticky; top: 2rem; }
.faq details, .faq .guide-link { grid-column: 2; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; font-size: 1.15rem; font-weight: 400; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.3rem; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: linear-gradient(currentColor, currentColor) center / 12px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 12px no-repeat; }
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 12px 1px no-repeat; }
.faq details p { color: var(--mute); }
.guide-link { margin-top: 2.5rem; }
.guide-link a { font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: var(--track); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* ---------- product page ---------- */
.crumbs { font-size: 0.68rem; text-transform: uppercase; color: var(--mute); padding: 0.5rem 0 2.5rem; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.product-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.product-grid figure { margin: 0; position: sticky; top: 1.5rem; }
figcaption { font-size: 0.66rem; text-transform: uppercase; color: var(--mute); margin-top: 0.9rem; }
.product h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.6rem); }
.product-text { padding-top: 1rem; }
.product-text .status { margin: 2rem 0 1.6rem; }
.product-text h2 { font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: var(--track); margin-top: 3.5rem; }
.product-text > .btn { margin-top: 0.2rem; }
.specs { margin: 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.specs div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--mute); font-size: 0.68rem; text-transform: uppercase; padding-top: 0.25rem; }
.specs dd { margin: 0; }
.also > h2 { margin-bottom: 2.5rem; }

/* ---------- article ---------- */
.article { max-width: 760px; padding-bottom: 2rem; }
.article h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.6rem); }
.article h2 { font-size: 1.6rem; font-weight: 400; margin-top: 2.8rem; }
.article .lede { max-width: none; }

/* ---------- footer: oak slats, then night ---------- */
.site-footer { margin-top: clamp(6rem, 12vw, 11rem); background: var(--night); color: #d9d5cf; }
.slats { height: 56px; background: repeating-linear-gradient(90deg, var(--oak) 0 27px, #0d0c0b 27px 40px); }
.foot-row { max-width: var(--max); margin: 0 auto; padding: 3rem var(--gutter) 3.5rem; display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; align-items: center; justify-content: space-between; font-size: 0.68rem; text-transform: uppercase; }
.foot-row p { margin: 0; max-width: none; }
.foot-row a { color: #fff; text-decoration: none; }
.foot-row a:hover { text-decoration: underline; color: #fff; }
.foot-row .brand { color: #fff; font-size: 0.9rem; }

/* ---------- notify dialog ---------- */
.notify { border: 0; border-radius: 0; padding: 2.8rem; width: min(32rem, calc(100vw - 2rem)); background: #fff; color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28); }
.notify::backdrop { background: rgba(12, 10, 8, 0.55); backdrop-filter: blur(3px); }
.notify h2 { font-size: 1.9rem; padding-right: 2rem; }
.notify-close { position: absolute; top: 1rem; right: 1rem; }
.notify-close button { border: 0; background: none; font-size: 1.6rem; font-weight: 300; cursor: pointer; color: var(--mute); line-height: 1; padding: 0.25rem 0.5rem; }
.notify-form { display: grid; gap: 1.2rem; }
.notify-form label { display: grid; gap: 0.5rem; font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: var(--track); }
.notify-form input[type="email"], .notify-form textarea { font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; padding: 0.8rem 0; border: 0; border-bottom: 1px solid #9c9892; border-radius: 0; background: transparent; color: var(--ink); }
.notify-form input:focus, .notify-form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.notify-form .check { grid-template-columns: auto 1fr; align-items: start; font-weight: 400; font-size: 0.85rem; text-transform: none; letter-spacing: 0; color: var(--mute); gap: 0.7rem; }
.notify-form .check input { margin-top: 0.25rem; width: 1rem; height: 1rem; accent-color: var(--ink); }
.notify-form .hp { position: absolute; left: -9999px; }
.notify-form .btn { justify-self: start; margin-top: 0.4rem; }
.notify-form .msg { margin: 0; font-size: 0.9rem; min-height: 1.4em; }
.notify-form .msg.err { color: #a3321f; }
.idea-field { display: none !important; }
.notify.with-idea .idea-field { display: grid !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .section-head, .how-grid, .fit, .product-grid, .faq { grid-template-columns: 1fr; }
  .faq > h2 { position: static; grid-row: auto; }
  .faq details, .faq .guide-link { grid-column: 1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > li, .products .grid > li:nth-child(-n+2) { grid-column: auto; }
  .products .grid > li:nth-child(-n+2) .card-img img { aspect-ratio: 4 / 5; }
  .grid-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid figure { position: static; }
  .hero::after { background: linear-gradient(0deg, rgba(12, 10, 8, 0.8) 0%, rgba(12, 10, 8, 0.35) 55%, rgba(12, 10, 8, 0.15) 100%); }
  .band::after { background: linear-gradient(0deg, rgba(12, 10, 8, 0.75) 0%, rgba(12, 10, 8, 0) 65%); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .site-header nav { gap: 1rem; }
  .site-header nav a:not(.lang) { display: none; }
  .site-header .lang { border: 0; padding: 0; }
  .brand { letter-spacing: 0.26em; }
  .idea-list li { grid-template-columns: 1fr; gap: 0.9rem; }
  .specs div { grid-template-columns: 7.5rem 1fr; }
  .hero .actions { gap: 1.4rem; }
  .notify { padding: 2.2rem 1.5rem; }
}

/* ---------- expected price ---------- */
.card p.price { color: var(--ink); font-size: 0.72rem; text-transform: uppercase; letter-spacing: var(--track); margin: -0.4rem 0 1.2rem; }
.card p.price strong { font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em; margin-left: 0.4rem; }
.price-lg { margin: 2rem 0 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: var(--track); }
.price-lg strong { display: block; font-size: 2.2rem; font-weight: 300; letter-spacing: -0.01em; text-transform: none; margin: 0.3rem 0 0.4rem; }
.price-lg span { display: block; color: var(--mute); font-size: 0.85rem; text-transform: none; letter-spacing: 0; }
.hero-img img { object-position: 62% 50%; }
@media (max-width: 900px) { .hero-img img { object-position: 74% 50%; } }
.hero-img picture { display: contents; }
@media (max-width: 700px) { .hero-img img { object-position: 30% 0%; } }
