/* ============================================================
   QUENTEX — Warm Premium Minimalism
   Fraunces (display serif) + Hanken Grotesk (body)
   ============================================================ */

:root {
  --paper:    #FBF7F0;
  --cream:    #F4EDE1;
  --sand:     #E9DFCE;
  --line:     #E0D4C0;
  --line-soft:#EAE1D2;
  --ink:      #241910;
  --ink-soft: #5D4F40;
  --taupe:    #8B7B67;
  --clay:     #B14E27;
  --clay-deep:#8F3E1E;
  --amber:    #D98E4A;
  --white:    #FFFDF9;
  --shadow-card: 0 24px 48px -28px rgba(72, 46, 22, .28);
  --shadow-lift: 0 32px 64px -32px rgba(72, 46, 22, .38);
  --radius: 20px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--clay); color: var(--white); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 420;
  letter-spacing: -0.015em;
  line-height: 1.08;
  font-variation-settings: "opsz" 72;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
.em { font-style: italic; color: var(--clay); font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--clay);
}

.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 58ch; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 560; letter-spacing: .045em;
}
.logo sup { font-size: .55rem; color: var(--clay); letter-spacing: .2em; margin-left: 4px; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  font-size: .92rem; font-weight: 550; color: var(--ink-soft);
  transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--clay); }
.lang { display: flex; gap: 4px; margin-left: 10px; }
.lang a {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  padding: 5px 9px; border-radius: 999px; color: var(--taupe);
  border: 1px solid transparent;
}
.lang a.on { border-color: var(--line); color: var(--ink); background: var(--white); }
.burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 650; font-size: .97rem;
  padding: 15px 30px; border-radius: 999px;
  border: 1px solid var(--ink); cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s, color .2s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); background: var(--clay-deep); border-color: var(--clay-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-clay { background: var(--clay); border-color: var(--clay); color: var(--white); }
.btn-clay:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 90px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.hero-copy h1 { margin: 0 0 26px; }
.hero-copy .lede { margin-bottom: 38px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: .85rem; color: var(--taupe); margin-top: 22px; }

.hero-visual { position: relative; }
.hero-visual .ph {
  border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4/4.6;
}
.hero-visual .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 18% center; }
.hero-chip {
  position: absolute; left: -34px; bottom: 44px;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 16px 22px;
  box-shadow: var(--shadow-card);
  display: flex; gap: 14px; align-items: center;
}
.hero-chip .big { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; color: var(--clay); line-height: 1; }
.hero-chip .small { font-size: .78rem; color: var(--taupe); line-height: 1.35; }

/* ---------- trust strip ---------- */
.trust {
  border-block: 1px solid var(--line-soft);
  background: var(--cream);
}
.trust .wrap {
  display: flex; justify-content: space-between; gap: 24px;
  padding-block: 20px; flex-wrap: wrap;
}
.trust span {
  font-size: .84rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-soft); display: flex; align-items: center; gap: 9px;
}
.trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head h2 { margin-bottom: 18px; }
.sec-cream { background: var(--cream); }
.sec-ink { background: var(--ink); color: var(--paper); }
.sec-ink .eyebrow { color: var(--amber); }
.sec-ink .lede { color: #C9BBA9; }

/* ---------- product line cards ---------- */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.line-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  display: flex; flex-direction: column;
}
.line-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.line-card .ph { aspect-ratio: 16/10.5; overflow: hidden; }
.line-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.line-card:hover .ph img { transform: scale(1.045); }
.line-card .body { padding: 32px 34px 36px; flex: 1; display: flex; flex-direction: column; }
.line-card h3 { font-size: 1.75rem; margin-bottom: 10px; }
.line-card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 22px; }
.line-card .meta { display: flex; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.line-card .meta span { font-size: .8rem; font-weight: 650; color: var(--taupe); letter-spacing: .05em; text-transform: uppercase; }
.line-card .cta-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price-from { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.price-from small { font-family: var(--font-body); font-size: .8rem; color: var(--taupe); display: block; letter-spacing: .04em; }

/* ---------- numbers band ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.numbers .cell { background: var(--white); padding: 38px 30px; }
.numbers .val { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 460; color: var(--clay); line-height: 1; margin-bottom: 10px; }
.numbers .lbl { font-size: .86rem; color: var(--ink-soft); }

/* ---------- philosophy ---------- */
.philo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.philo-points { display: grid; gap: 0; }
.philo-point { padding: 26px 0; border-top: 1px solid rgba(251,247,240,.14); display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.philo-point:last-child { border-bottom: 1px solid rgba(251,247,240,.14); }
.philo-point .n { font-family: var(--font-display); font-style: italic; color: var(--amber); font-size: 1.15rem; }
.philo-point h3 { margin-bottom: 6px; font-size: 1.12rem; color: var(--paper); }
.philo-point p { font-size: .95rem; color: #B9AA97; }

/* ---------- places chips ---------- */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.place {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 26px 28px; transition: transform .3s, box-shadow .3s;
}
.place:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.place h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 6px; }
.place p { font-size: .88rem; color: var(--ink-soft); }

/* ---------- product cards (category pages) ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prod {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.prod:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.prod .ph { aspect-ratio: 1/1.05; overflow: hidden; background: var(--sand); }
.prod .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.prod:hover .ph img { transform: scale(1.05); }
.prod .body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.prod .name { font-family: var(--font-display); font-size: 1.45rem; margin-bottom: 4px; }
.prod .dims { font-size: .85rem; color: var(--taupe); margin-bottom: 16px; letter-spacing: .03em; }
.prod .spec { display: grid; gap: 8px; margin-bottom: 22px; }
.prod .spec div { display: flex; justify-content: space-between; font-size: .88rem; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.prod .spec div span:first-child { color: var(--taupe); }
.prod .spec div span:last-child { font-weight: 650; }
.prod .buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prod .price { font-family: var(--font-display); font-size: 1.75rem; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--clay);
  background: color-mix(in srgb, var(--clay) 10%, var(--white));
  border: 1px solid color-mix(in srgb, var(--clay) 25%, var(--white));
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; align-self: flex-start;
}

/* ---------- layers / tech ---------- */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tech-grid .ph { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); background: var(--white); padding: 28px; }
.feature-list { display: grid; gap: 22px; margin-top: 34px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--cream); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.feature h3 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- calculator ---------- */
.calc {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: 24px; box-shadow: var(--shadow-card);
  padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
}
.calc label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); margin: 26px 0 10px; }
.calc label:first-child { margin-top: 0; }
.calc select, .calc input[type=number] {
  width: 100%; padding: 14px 16px; font-family: var(--font-body); font-size: 1rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
}
.calc input[type=range] { width: 100%; accent-color: var(--clay); }
.range-val { font-family: var(--font-display); font-size: 1.3rem; color: var(--clay); margin-top: 6px; }
.calc-out { border-left: 1px solid var(--line-soft); padding-left: 56px; display: flex; flex-direction: column; justify-content: center; }
.calc-out .big { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); color: var(--clay); line-height: 1; }
.calc-out .sub { color: var(--ink-soft); margin: 10px 0 30px; }
.calc-out .cmp { background: var(--cream); border-radius: 14px; padding: 18px 22px; font-size: .92rem; color: var(--ink-soft); }
.calc-out .cmp b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--line-soft); padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 1.18rem; padding: 22px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--clay); transition: transform .3s; font-family: var(--font-body); font-weight: 300; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--ink-soft); max-width: 60ch; }

/* ---------- CTA / contact ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lede { margin: 0 auto 40px; }
.cta-band .row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #A6957F; padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.site-foot .logo { color: var(--paper); margin-bottom: 14px; display: block; }
.site-foot p { font-size: .88rem; }
.site-foot h4 { color: var(--paper); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; font-weight: 650; }
.site-foot ul { list-style: none; display: grid; gap: 10px; }
.site-foot ul a { font-size: .92rem; transition: color .2s; }
.site-foot ul a:hover { color: var(--paper); }
.foot-bottom { border-top: 1px solid rgba(251,247,240,.12); padding-top: 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .8rem; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; } .rv-d2 { transition-delay: .2s; } .rv-d3 { transition-delay: .3s; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 76px 0 56px; }
.page-hero h1 { max-width: 16ch; margin-bottom: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .philo-grid, .tech-grid, .calc { grid-template-columns: 1fr; }
  .products, .places { grid-template-columns: 1fr 1fr; }
  .calc-out { border-left: none; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 40px; }
  .hero-chip { left: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .burger { display: block; background: none; border: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
  .nav.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: var(--paper); padding: 28px 32px 34px;
    border-bottom: 1px solid var(--line); gap: 22px; box-shadow: var(--shadow-card);
  }
  .lines, .products, .places, .numbers { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .calc { padding: 30px; }
  .hero { padding: 40px 0 64px; }
}
