:root {
  --bg: #f5f1ea;
  --bg-alt: #ece6dc;
  --surface: #ffffff;
  --ink: #1f1d1a;
  --ink-soft: #5c574f;
  --line: #d9d1c4;
  --accent: #8a5a36;
  --accent-ink: #ffffff;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4em; background: var(--ink); color: #fff; text-decoration: none; padding: 13px 22px; border-radius: 999px; font-weight: 500; font-size: 15px; border: 1px solid var(--ink); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 500; cursor: pointer; font-size: 15px; }
.link:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 26px; letter-spacing: .14em; font-weight: 500; }
.brand-sub { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--ink-soft); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .25s; }
.nav-toggle span:first-child { top: 15px; } .nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(40, 30, 20, .35); }
.hero-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.9); padding: 6px 12px; border-radius: 999px; font-size: 13px; }

/* Sections */
section { padding: 88px 0; }
.section-title { font-size: clamp(30px, 3.4vw, 44px); }
.section-lead { color: var(--ink-soft); font-size: 17px; max-width: 40em; margin-bottom: 40px; }
.sub-title { font-size: 24px; margin: 48px 0 20px; }
.alt { background: var(--bg-alt); }
.section-logo { height: 52px; width: auto; margin-bottom: 18px; mix-blend-mode: multiply; }
.section-logo.square { height: 64px; border-radius: 8px; }

/* Brands */
.brands { padding-top: 0; }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.brand-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(40,30,20,.35); }
.brand-card img { aspect-ratio: 4/3; width: 100%; object-fit: contain; padding: 20px; background: #fff; }
.brand-card-body { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); }
.brand-card-body strong { font-family: var(--serif); font-weight: 500; font-size: 19px; }
.brand-card-body span { color: var(--ink-soft); font-size: 14px; text-align: right; }

/* Grids & tiles */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.tile { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 18px; transition: transform .4s; }
.tile-wide img { aspect-ratio: 3/2; object-fit: cover; padding: 0; }
.tile:hover img { transform: scale(1.04); }
.products figcaption { margin-top: 10px; font-family: var(--serif); font-size: 18px; }

/* Nestor */
.nestor { background: var(--ink); color: #f3eee6; }
.nestor .section-lead, .nestor .plain, .nestor .checks { color: #c9c1b4; }
.nestor .eyebrow { color: #d6a578; }
.nestor .btn { background: #f3eee6; color: var(--ink); border-color: #f3eee6; }
.nestor .btn:hover { background: #d6a578; border-color: #d6a578; }
.tabs { display: inline-flex; background: #2d2a26; border-radius: 999px; padding: 4px; margin-bottom: 32px; }
.tabs button { background: none; border: 0; padding: 10px 22px; border-radius: 999px; cursor: pointer; color: #c9c1b4; font-weight: 500; }
.tabs button[aria-selected="true"] { background: #f3eee6; color: var(--ink); }
.tabpanel { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tabpanel[hidden] { display: none; }
.product-shot { background: #fff; border-radius: var(--radius); }
.product-shot img { aspect-ratio: 1; object-fit: contain; width: 100%; padding: 24px; }
.tabpanel h3 { font-size: 34px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tag { font-family: var(--sans); font-size: 13px; padding: 4px 12px; border: 1px solid #5c574f; border-radius: 999px; color: #c9c1b4; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { padding: 10px 0 10px 30px; border-bottom: 1px solid #3a3631; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid #d6a578; border-bottom: 2px solid #d6a578; transform: rotate(-45deg); }
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 72px; }
.feature { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; background: #2a2723; border-radius: var(--radius); padding: 24px; }
.feature h3 { font-size: 24px; }
.feature-img { padding: 0; border: 0; background: #fff; border-radius: 10px; cursor: zoom-in; overflow: hidden; }
.feature-img img { aspect-ratio: 1; object-fit: contain; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 4px 0; }
.plain b { color: #f3eee6; font-weight: 600; }
.mini-gallery { margin-top: 56px; }
.mini-label { font-size: 14px; color: #c9c1b4; text-transform: uppercase; letter-spacing: .14em; }
.nestor .tile { border-color: transparent; }

/* Polyform models */
.model { margin-top: 48px; }
.model-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.model-head h3 { font-size: 28px; margin: 0; }

/* Split bands */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split figure { background: #fff; border-radius: var(--radius); overflow: hidden; }
.split figure img { width: 100%; aspect-ratio: 4/3; object-fit: contain; padding: 24px; }
.split p { color: var(--ink-soft); font-size: 17px; }
.oa { background: var(--bg-alt); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info { margin: 0; }
.contact-info div { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-info dt { width: 90px; color: var(--ink-soft); }
.contact-info dd { margin: 0; }
.contact-info dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-info dd a:hover { color: var(--accent); border-color: var(--accent); }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.contact-form .btn { justify-self: start; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; color: var(--ink-soft); font-size: 14px; }
.site-footer nav a:hover { color: var(--ink); }
.copy { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20, 18, 15, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 86vh; background: #fff; border-radius: 10px; object-fit: contain; }
.lb-close, .lb-nav { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 999px; width: 48px; height: 48px; font-size: 28px; line-height: 1; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { transition: none !important; } }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .hero-grid, .tabpanel, .split, .contact-grid, .feature-pair { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .brand-grid, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .brand-grid, .grid-2 { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 96px 1fr; padding: 18px; gap: 16px; }
  .wrap { padding: 0 18px; }
}
