:root {
  --bg: #f2efe9;
  --paper: #ffffff;
  --ink: #161616;
  --ink-soft: #4a4844;
  --line: #d9d4ca;
  --accent: #2f5fa7;
  --dark: #1b1b1b;
  --dark-2: #26282b;
  --radius: 4px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.2em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { display: grid; gap: 24px; margin-bottom: 48px; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em;
  background: var(--ink); color: #fff;
  text-decoration: none; font-weight: 600; font-size: .98rem;
  border-radius: var(--radius); border: 1px solid var(--ink);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn svg { width: 1em; height: 1em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 20, 20, .28);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  transition: background .3s ease;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.site-header.scrolled { background: rgba(20, 20, 20, .62); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); border-left: 1px solid rgba(255,255,255,.2); padding-left: 12px; }
.site-header .brand img { filter: invert(1); }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-size: .95rem; color: rgba(255,255,255,.72); }
.nav a:hover { color: #fff; }
.site-header .btn { padding: .65em 1.1em; font-size: .9rem; background: #fff; color: var(--ink); border-color: #fff; }
.site-header .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (min-width: 980px) { .nav { display: flex; } }
@media (max-width: 520px) { .brand span { display: none; } }

/* Hero: full-width image under frosted nav */
.hero {
  position: relative; margin-top: -69px; color: #fff;
  min-height: min(100svh, 920px); display: flex; align-items: flex-end;
  overflow: hidden; background: var(--dark);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%),
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 60%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: clamp(32px, 5vw, 56px); }
.hero-copy { max-width: 720px; }
.hero .eyebrow { color: rgba(255,255,255,.8); }
.hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 span { display: block; color: rgba(255,255,255,.82); font-weight: 600; font-size: .5em; letter-spacing: -.01em; margin-top: .45em; }
.hero .lead { color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn--glass {
  background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.6); }
.hero-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px;
  margin-top: clamp(40px, 7vw, 80px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22);
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0; margin: 0; list-style: none; font-family: var(--mono); font-size: .8rem; color: rgba(255,255,255,.8); }
.hero-facts li::before { content: "— "; color: #9db6df; }
.hero-badge {
  background: rgba(20,20,20,.35); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: #fff; padding: 14px 20px; border-radius: var(--radius);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.hero-badge strong { display: block; font-family: var(--sans); font-size: 1.5rem; letter-spacing: -.01em; text-transform: none; }

/* Feature image band */
.band { margin-top: clamp(56px, 8vw, 96px); }
.band img { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; }

/* Benefits */
.benefits { display: grid; gap: 0 48px; }
@media (min-width: 760px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefit { border-top: 1px solid var(--line); padding: 24px 0 28px; display: grid; grid-template-columns: 48px 1fr; }
.benefit .num { font-family: var(--mono); color: var(--accent); font-size: .85rem; padding-top: 4px; }
.benefit p { color: var(--ink-soft); margin: 0; }
.benefit h3 { margin-bottom: .35em; }

/* Inspiration */
.inspo { display: grid; gap: 24px; }
@media (min-width: 900px) { .inspo { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; } .inspo figure:first-child { grid-row: span 2; } }
.inspo figure { margin: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.inspo figure img { width: 100%; flex: 1; object-fit: cover; min-height: 240px; }
.inspo figure:first-child img { min-height: 360px; }
.inspo figcaption { padding: 22px 24px 26px; }
.inspo figcaption p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* Colors */
.colors { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .colors { grid-template-columns: repeat(3, 1fr); } }
.color-card { text-decoration: none; display: block; }
.color-card .swatch { background: var(--paper); padding: 10px; border-radius: var(--radius); overflow: hidden; }
.color-card img { width: 100%; aspect-ratio: 365 / 477; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.color-card:hover img { transform: scale(1.04); }
.color-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; gap: 8px; }
.color-meta h3 { margin: 0; font-size: 1.15rem; }
.color-meta .code { font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); }
.color-card p { margin: 4px 0 2px; color: var(--ink-soft); font-size: .95rem; }
.color-card .art { font-family: var(--mono); font-size: .72rem; color: #8a867e; }
.color-card .go { display: inline-block; margin-top: 10px; font-size: .9rem; font-weight: 600; border-bottom: 1px solid currentColor; }
.color-card:hover .go { color: var(--accent); }
.note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.note strong { color: var(--ink); }

/* Statement */
.statement { background: var(--dark-2); color: #fff; }
.statement-img img { width: 100%; height: clamp(300px, 55vw, 640px); object-fit: cover; }
.statement .wrap { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(56px, 8vw, 96px); }
.statement .eyebrow { color: #9db6df; }
.statement-grid { display: grid; gap: 24px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 28px; margin-top: 12px; }
@media (min-width: 860px) { .statement-grid { grid-template-columns: 1fr 1.3fr; } }
.statement-grid p { color: rgba(255,255,255,.75); margin: 0; }
.statement-grid .btn { margin-top: 24px; }

/* Accessories */
.acc-list { display: grid; gap: 20px; }
@media (min-width: 900px) { .acc-list { grid-template-columns: repeat(3, 1fr); } }
.acc { background: var(--paper); border-radius: var(--radius); text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.acc:hover { box-shadow: 0 14px 40px rgba(0,0,0,.08); transform: translateY(-3px); }
.acc img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 12px; }
.acc-body { padding: 0 26px 28px; }
.acc .dim { font-family: var(--mono); font-size: .75rem; color: var(--accent); }
.acc h3 { margin: 8px 0 6px; }
.acc p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 14px; }
.acc .go { font-weight: 600; font-size: .9rem; border-bottom: 1px solid currentColor; }

/* Tech */
.tech-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .tech-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.spec { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec th, .spec td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 400; color: var(--ink-soft); width: 46%; }
.spec td { font-weight: 600; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--ink); }
.profile { margin: 32px 0 0; }
.profile img { width: 100%; background: var(--paper); padding: 16px; border-radius: var(--radius); }
.profile figcaption { font-family: var(--mono); font-size: .75rem; color: var(--ink-soft); margin-top: 10px; }

/* Calculator */
.calc { background: var(--dark); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.calc .eyebrow { color: #9db6df; }
.calc h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.calc label { display: block; font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.calc input, .calc select {
  width: 100%; font: inherit; font-size: 1.05rem; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius); padding: 12px 14px;
}
.calc input:focus, .calc select:focus { outline: 2px solid #9db6df; outline-offset: 1px; }
.calc select option { color: #000; }
.calc .full { grid-column: 1 / -1; }
.calc-result { border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; }
.calc-result .big { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.calc-result .formula { font-family: var(--mono); font-size: .82rem; color: rgba(255,255,255,.65); margin: 6px 0 14px; }
.calc-result ul { margin: 0 0 20px; padding-left: 1.1em; color: rgba(255,255,255,.8); font-size: .93rem; }
.calc small { display: block; color: rgba(255,255,255,.55); font-size: .78rem; margin-top: 16px; line-height: 1.5; }

/* Guide (SEO text) */
.guide { display: grid; gap: 40px; }
@media (min-width: 960px) { .guide { grid-template-columns: 280px 1fr; gap: 80px; } }
.guide aside { position: relative; }
@media (min-width: 960px) { .guide aside > div { position: sticky; top: 100px; } }
.guide aside ol { list-style: none; padding: 0; margin: 0; font-size: .93rem; counter-reset: g; }
.guide aside li { border-top: 1px solid var(--line); padding: 10px 0; counter-increment: g; }
.guide aside li::before { content: counter(g, decimal-leading-zero) "  "; font-family: var(--mono); color: var(--accent); font-size: .78rem; }
.guide aside a { text-decoration: none; color: var(--ink-soft); }
.guide aside a:hover { color: var(--ink); }
.guide article h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.guide article h2:first-child { margin-top: 0; }
.guide article p, .guide article li { color: var(--ink-soft); }
.guide article ul { padding-left: 1.2em; margin: 0 0 1em; }
.guide article li { margin-bottom: .4em; }
.guide article a { color: var(--accent); }
.guide article strong { color: var(--ink); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding-right: 40px; margin: 0 0 22px; }
.faq a { color: var(--accent); }

/* Contact */
.contact { background: var(--dark); color: #fff; }
.contact-img img { width: 100%; height: clamp(260px, 45vw, 560px); object-fit: cover; }
.contact .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.contact h2 { max-width: 14em; }
.contact .lead { color: rgba(255,255,255,.75); }
.contact-grid { display: grid; gap: 28px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 28px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid .eyebrow { color: rgba(255,255,255,.5); margin-bottom: .6em; }
.contact-grid a { font-size: 1.3rem; font-weight: 600; text-decoration: none; }
.contact-grid a:hover { color: #9db6df; }
.contact-grid small { display: block; color: rgba(255,255,255,.55); margin-top: 4px; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.6); font-size: .85rem; border-top: 1px solid rgba(255,255,255,.12); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer img { height: 34px; width: auto; filter: invert(1); opacity: .85; }

/* Mobile sticky CTA */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; justify-content: center;
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { width: 100%; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
@media (min-width: 980px) { .mobile-cta { display: none; } }

/* Legal pages */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal .todo { background: #fff3c4; padding: 2px 6px; border-radius: 3px; }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Section backgrounds: beige / stone alternating */
.bg-beige { background: var(--bg); }
.bg-stone { background: #e8e2d7; }
