/* Nudge Tags — site styles
   Paper, ink and brass. Nothing else. */

:root {
  --ink: #0B0B0D;
  --ink-soft: #23222411;
  --brass: #C2A15C;
  --brass-lt: #E4CE9B;
  --bone: #F7F5F0;
  --graphite: #6B6862;
  --paper: #EDE4D2;
  --paper-2: #E5DAC4;
  --paper-3: #F3ECDD;
  --olive: #8EA06A;
  --rule: rgba(11, 11, 13, 0.12);
  --shadow: 0 24px 60px -28px rgba(48, 38, 20, 0.45);
  --font: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: 0.012em;
  color: var(--ink);
  background-color: var(--paper);
  /* the paper: a warm wash plus a very fine grain, drawn not downloaded */
  background-image:
    radial-gradient(120% 90% at 12% -10%, rgba(255, 252, 244, 0.85), rgba(255, 252, 244, 0) 55%),
    radial-gradient(100% 80% at 100% 0%, rgba(194, 161, 92, 0.14), rgba(194, 161, 92, 0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--brass); }

::selection { background: var(--brass); color: #fff; }

/* ---------- type ---------- */

h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.012em; line-height: 1.1; }

h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.7vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); letter-spacing: -0.004em; }

p { margin: 0 0 1.1em; }

.lede { font-size: clamp(1.1rem, 1.9vw, 1.32rem); line-height: 1.55; color: #2E2C29; max-width: 62ch; }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass); font-weight: 600; margin: 0 0 1.1rem; display: block;
}

.muted { color: var(--graphite); }

.small { font-size: 0.9rem; line-height: 1.55; }

.brass-dot::after {
  content: ""; display: inline-block; width: 0.19em; height: 0.19em;
  border-radius: 50%; background: var(--brass); margin-left: 0.18em; vertical-align: baseline;
}

/* ---------- layout ---------- */

.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.6rem, 780px); margin-inline: auto; }

section { padding: clamp(3.6rem, 8vw, 6.6rem) 0; }
section.tight { padding: clamp(2.6rem, 5vw, 4rem) 0; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

.grid { display: grid; gap: clamp(1.6rem, 3.4vw, 3rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: 1.05fr 0.95fr; align-items: center; }

@media (max-width: 880px) {
  .g-2, .g-3, .g-4, .split { grid-template-columns: 1fr; }
}

/* ---------- surfaces ---------- */

.dark {
  background: var(--ink);
  color: var(--bone);
  background-image:
    radial-gradient(90% 70% at 80% 0%, rgba(194, 161, 92, 0.13), rgba(0, 0, 0, 0) 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
.dark .lede { color: #C9C5BC; }
.dark .muted { color: #99958C; }
.dark .card { background: rgba(247, 245, 240, 0.045); border-color: rgba(247, 245, 240, 0.14); }
.dark .rule { background: rgba(247, 245, 240, 0.14); }

.card {
  background: rgba(255, 253, 247, 0.62);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  backdrop-filter: blur(6px);
}

.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.86rem 1.5rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bone); box-shadow: 0 10px 26px -14px rgba(11, 11, 13, 0.8); }
.btn-primary:hover { background: #1c1b1f; }
.btn-brass { background: var(--brass); color: #17140C; }
.btn-brass:hover { background: var(--brass-lt); }
.btn-ghost { border-color: rgba(11, 11, 13, 0.24); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(11, 11, 13, 0.04); }
.dark .btn-ghost { border-color: rgba(247, 245, 240, 0.3); color: var(--bone); }
.dark .btn-ghost:hover { background: rgba(247, 245, 240, 0.08); border-color: var(--bone); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* ---------- header ---------- */

header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(237, 228, 210, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--rule);
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1rem;
}
header.site .mark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
header.site .mark img { height: 26px; width: auto; }
nav.main { display: flex; align-items: center; gap: 1.35rem; }
nav.main a {
  font-size: 0.92rem; text-decoration: none; color: #2b2a27; font-weight: 500;
  position: relative; padding: 0.2rem 0;
}
nav.main a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--brass); transition: right 0.22s ease;
}
nav.main a:not(.btn):hover::after,
nav.main a[aria-current="page"]:not(.btn)::after { right: 0; }
nav.main a[aria-current="page"]:not(.btn) { color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: 8px;
  width: 40px; height: 36px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 17px; height: 1.5px; background: var(--ink); position: relative;
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  nav.main {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper-3); border-bottom: 1px solid var(--rule);
    padding: 0.6rem 1.3rem 1.2rem; display: none;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 0.75rem 0; width: 100%; border-bottom: 1px solid var(--rule); }
  nav.main .btn { margin-top: 0.9rem; }
}

/* ---------- hero ---------- */

.hero { padding: clamp(3rem, 7vw, 5.4rem) 0 clamp(2.6rem, 6vw, 4.4rem); }
.hero h1 { margin-bottom: 1rem; }
.hero .lede { margin-bottom: 1.9rem; }

.hero-stage {
  position: relative; aspect-ratio: 1 / 1; width: 100%;
  display: grid; place-items: center;
}
.hero-stage::before {
  content: ""; position: absolute; inset: 8%;
  background: radial-gradient(50% 50% at 50% 52%, rgba(255, 251, 242, 0.9), rgba(237, 228, 210, 0) 70%);
  border-radius: 50%;
}

/* ---------- viewer ---------- */

.viewer {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  touch-action: none; cursor: grab; outline: none; display: block;
  filter: drop-shadow(0 26px 34px rgba(60, 46, 22, 0.28));
  opacity: 0; transition: opacity 0.5s ease;
}
.viewer.is-ready { opacity: 1; }
.viewer.is-dragging { cursor: grabbing; }
.viewer:focus-visible { box-shadow: 0 0 0 2px var(--brass); border-radius: 12px; }

.viewer-hint {
  position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--graphite); pointer-events: none; white-space: nowrap;
}

.showroom { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
@media (max-width: 900px) { .showroom { grid-template-columns: 1fr; } }

.control { margin-bottom: 1.5rem; }
.control label {
  display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--graphite); margin-bottom: 0.55rem;
}
select.field {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding: 0.82rem 2.6rem 0.82rem 1rem;
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  background: rgba(255, 253, 247, 0.8); border: 1px solid rgba(11, 11, 13, 0.2);
  border-radius: 10px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C2A15C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
select.field:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(194, 161, 92, 0.22); }

.swatches { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(11, 11, 13, 0.18);
  cursor: pointer; padding: 0; position: relative; transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--brass); }
.swatch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.spec { list-style: none; padding: 0; margin: 1.6rem 0 0; border-top: 1px solid var(--rule); }
.spec li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.68rem 0; border-bottom: 1px solid var(--rule); font-size: 0.94rem;
}
.spec li span:first-child { color: var(--graphite); }
.spec li span:last-child { text-align: right; font-weight: 500; }

/* ---------- steps ---------- */

.steps { counter-reset: step; }
.step-n {
  font-size: 0.72rem; letter-spacing: 0.2em; color: var(--brass);
  font-weight: 600; display: block; margin-bottom: 0.7rem;
}

/* ---------- details / faq ---------- */

details.faq {
  border-bottom: 1px solid var(--rule); padding: 0.35rem 0;
}
details.faq summary {
  list-style: none; cursor: pointer; padding: 1.05rem 2.4rem 1.05rem 0;
  font-size: 1.06rem; font-weight: 500; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 11px; height: 11px;
  border-right: 1.6px solid var(--brass); border-bottom: 1.6px solid var(--brass);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
details.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.faq .body { padding: 0 0 1.2rem; max-width: 68ch; color: #33312D; }
details.faq .body p:last-child { margin-bottom: 0; }

/* ---------- misc blocks ---------- */

.pull {
  border-left: 2px solid var(--brass); padding-left: 1.4rem;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.45; font-weight: 500;
}

.stat { font-size: clamp(2.2rem, 4.4vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.stat + p { margin-top: 0.6rem; }

.photo { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: auto; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1.2rem 0 0; list-style: none; }
.tag-list li {
  font-size: 0.82rem; padding: 0.34rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--graphite);
}
.dark .tag-list li { border-color: rgba(247, 245, 240, 0.2); color: #A8A49B; }

/* ---------- footer ---------- */

footer.site { background: var(--ink); color: #A8A49B; padding: clamp(3rem, 6vw, 4.4rem) 0 2.4rem; font-size: 0.93rem; }
footer.site a { color: #D6D2C9; text-decoration: none; }
footer.site a:hover { color: var(--brass-lt); }
footer.site h4 { color: var(--bone); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
footer.site .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 0.6rem; }
footer.site img.fmark { height: 24px; margin-bottom: 1rem; }
footer.site .base {
  margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(247, 245, 240, 0.14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.84rem;
}
@media (max-width: 780px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- doc pages ---------- */

.doc { max-width: 74ch; }
.doc h2 { font-size: 1.35rem; margin-top: 2.6rem; }
.doc h3 { font-size: 1.05rem; margin-top: 1.8rem; }
.doc ul { padding-left: 1.15rem; }
.doc li { margin-bottom: 0.5rem; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .swatch:hover { transform: none; }
}

/* ---------- enquiry form ---------- */

.form-card { padding: clamp(1.5rem, 2.8vw, 2.1rem); }
.field-row { margin-bottom: 1rem; }
.field-row label {
  display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--graphite); margin-bottom: 0.45rem;
}
input.field, textarea.field {
  width: 100%; padding: 0.8rem 1rem; font-family: var(--font); font-size: 1rem;
  color: var(--ink); background: rgba(255, 253, 247, 0.85);
  border: 1px solid rgba(11, 11, 13, 0.2); border-radius: 10px; resize: vertical;
}
input.field:focus, textarea.field:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(194, 161, 92, 0.22);
}
input.field.invalid, textarea.field.invalid { border-color: #A6402F; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 0.9rem 0 0; min-height: 1.2em; }
.form-note.ok { color: #4A6B3A; }
.form-note.err { color: #A6402F; }
