:root {
  --bg: #F2EDE4;
  --bg-soft: #E8E0D0;
  --bg-deep: #1A1817;
  --ink: #1A1817;
  --ink-soft: #4A4540;
  --ink-mute: #837B70;
  --copper: #3B5C3B;
  --copper-deep: #2A4A2A;
  --sage: #6E7F66;
  --line: rgba(26, 24, 23, 0.14);
  --line-soft: rgba(26, 24, 23, 0.07);

  --display: 'Instrument Serif', 'Times New Roman', serif;
  --body: 'Geist', -apple-system, sans-serif;

  --container: 1320px;
  --pad-x: clamp(1.5rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 2;
}

/* ----------------- Typography ----------------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
}
.display em { font-style: italic; color: var(--copper-deep); }

.h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
}
.h2 em { font-style: italic; color: var(--copper-deep); }

.h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
}

p { color: var(--ink-soft); }

.ar-tag { font-family: 'Amiri', serif; color: var(--copper-deep); }

/* ----------------- Nav ----------------- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 237, 228, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; line-height: 1; color: #2A4A2A; }
.brand-mark {
  height: 48px;
  width: auto;
  mix-blend-mode: multiply;
  transition: opacity 0.2s;
  display: block;
}
.brand-name {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1;
}
.brand:hover .brand-mark { opacity: 0.85; }
.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.nav-links a {
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--copper-deep); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--copper-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
@media (max-width: 720px) {
  .brand-mark { height: 38px; }
  .brand-name { font-size: 1.3rem; }
  .nav-links { gap: 1.1rem; font-size: 0.78rem; }
  .nav-links a:nth-child(3) { display: none; }
}

.foot-logo {
  height: 90px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

/* ----------------- Buttons ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--copper-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----------------- Page hero (used on internal pages) ----------------- */
.page-hero {
  padding: clamp(3.5rem, 8vh, 6rem) 0 clamp(2rem, 4vh, 3rem);
}
.page-hero .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.page-hero .meta .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--copper-deep);
  font-size: 1.1rem;
}
.page-hero h1 { margin-bottom: 1.5rem; }
.page-hero .lede { max-width: 50ch; }

/* ----------------- Hero (landing) ----------------- */
.hero { padding: clamp(4rem, 10vh, 8rem) 0 clamp(3rem, 6vh, 5rem); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.hero-meta .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--copper-deep);
  font-size: 1.1rem;
}
.hero h1 { margin-bottom: 2rem; }
.hero-aside { padding-bottom: 1.5rem; }
.hero-aside .lede { margin-bottom: 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ----------------- Origin block ----------------- */
.origin {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.origin-inner { max-width: 680px; margin: 0 auto; padding: 0 var(--pad-x); }
.ar-display {
  font-family: 'Amiri', serif;
  font-size: clamp(4.5rem, 11vw, 7.5rem);
  color: var(--copper-deep);
  display: block;
  line-height: 1;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}
.origin-text {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: var(--ink);
  line-height: 1.45;
}
.origin-text em { font-style: italic; color: var(--copper-deep); }

/* ----------------- Trust strip ----------------- */
.trust {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  padding: 1.6rem var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.trust-row .dot { color: var(--copper-deep); }

/* ----------------- Section frame ----------------- */
section.block { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.section-head .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--copper-deep);
}
.section-head .lede { justify-self: end; text-align: right; margin-left: auto; }
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .lede { text-align: left; justify-self: start; }
}

/* ----------------- Preview cards (landing) ----------------- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
@media (max-width: 900px) { .preview-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .preview-grid { grid-template-columns: 1fr; } }

.preview-card {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.4s, box-shadow 0.4s;
  min-height: 200px;
}
.preview-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(26, 24, 23, 0.15); }
.preview-card .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--copper-deep);
  font-size: 1.1rem;
}
.preview-card .name {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
}
.preview-card .name em { font-style: italic; color: var(--copper-deep); }
.preview-card .meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.preview-card .arrow {
  color: var(--copper-deep);
  font-family: var(--display);
  font-style: italic;
  transition: transform 0.2s;
}
.preview-card:hover .arrow { transform: translateX(4px); }

/* ----------------- Product detail (shields.html) ----------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

.product {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s, box-shadow 0.4s;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(26, 24, 23, 0.18); }
.product-art {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #E8E0D0 0%, #D8CDB8 100%);
  position: relative;
  overflow: hidden;
}
.product-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-body {
  padding: 1.6rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}
.product-name { font-family: var(--display); font-size: 1.7rem; line-height: 1; }
.product-name em { font-style: italic; color: var(--copper-deep); }
.product-desc { font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); flex: 1; }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.product-price { font-family: var(--display); font-size: 1.6rem; }
.product-price small {
  font-family: var(--body);
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-left: 0.4rem;
  letter-spacing: 0.05em;
}
.buy {
  background: var(--ink);
  color: var(--bg);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.buy:hover { background: var(--copper-deep); }
.spec { font-size: 0.78rem; color: var(--ink-mute); letter-spacing: 0.04em; }

/* ----------------- Home services (home.html) ----------------- */
.dark-section { background: var(--bg-deep); color: var(--bg); }
.dark-section .lede, .dark-section p { color: rgba(242, 237, 228, 0.7); }
.dark-section .section-head { border-bottom-color: rgba(242, 237, 228, 0.15); }
.dark-section .section-head .num { color: var(--copper); }
.dark-section .h2 em, .dark-section .display em { color: var(--copper); }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(242, 237, 228, 0.15);
}
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
.service {
  padding: 2.2rem 1.8rem 2.4rem;
  border-right: 1px solid rgba(242, 237, 228, 0.15);
  border-bottom: 1px solid rgba(242, 237, 228, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 360px;
  position: relative;
  transition: background 0.3s;
}
.service:hover { background: rgba(242, 237, 228, 0.03); }
.service:last-child { border-right: none; }
@media (max-width: 900px) { .service { border-right: none; } }
.service .num { font-family: var(--display); font-style: italic; color: var(--copper); font-size: 1.1rem; margin-bottom: 0.5rem; }
.service h3 { color: var(--bg); }
.service-desc { font-size: 0.94rem; line-height: 1.55; flex: 1; }
.service-foot {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--copper);
  text-transform: uppercase;
  border-top: 1px solid rgba(242, 237, 228, 0.15);
  padding-top: 1rem;
}

/* ----------------- Process steps ----------------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 800px) { .process { grid-template-columns: 1fr; } }
.step { padding: 2rem 1.8rem; border-right: 1px solid var(--line); background: var(--bg-soft); }
.step:last-child { border-right: none; }
@media (max-width: 800px) {
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
}
.step .num { font-family: var(--display); font-style: italic; color: var(--copper-deep); font-size: 1.6rem; margin-bottom: 0.5rem; }
.step h3 { margin-bottom: 0.7rem; }

/* ----------------- Science stats ----------------- */
.science {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 800px) { .science { grid-template-columns: 1fr; } }
.science-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
.stat-card { border-top: 1px solid var(--line); padding-top: 1rem; }
.stat-card .num { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.stat-card .num em { font-style: italic; color: var(--copper-deep); }
.stat-card .label { margin-top: 0.5rem; font-size: 0.82rem; color: var(--ink-mute); letter-spacing: 0.05em; }

/* ----------------- FAQ ----------------- */
.faq-list { border-top: 1px solid var(--line); }
details.faq { border-bottom: 1px solid var(--line); padding: 1.4rem 0; cursor: pointer; }
details.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: baseline;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  transition: color 0.2s;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  font-family: var(--display);
  color: var(--copper-deep);
  font-size: 1.5rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq[open] summary { color: var(--copper-deep); }
details.faq p { margin-top: 1rem; max-width: 65ch; font-size: 0.98rem; }

/* ----------------- Form ----------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 800px) { .form-grid { grid-template-columns: 1fr; } }
form.consult-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
form.consult-form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 0.95rem;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--copper-deep);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-status { grid-column: 1 / -1; font-size: 0.88rem; padding: 0.7rem 0; min-height: 1.5rem; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: #b8423a; }

/* ----------------- Quiet CTA strip ----------------- */
.cta-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
}
.cta-strip h2 { margin-bottom: 1.2rem; }
.cta-strip .sub {
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 1.8rem;
  font-size: 1rem;
}

/* ----------------- Footer ----------------- */
footer { background: var(--bg-deep); color: rgba(242, 237, 228, 0.7); padding: 4rem 0 2rem; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(242, 237, 228, 0.15);
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--bg);
  line-height: 1;
  margin-bottom: 0.8rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
}
.foot-brand-name { font-family: var(--display); color: var(--bg); letter-spacing: 0.02em; }
.foot-brand-ar { font-family: 'Amiri', serif; font-size: 2.4rem; color: var(--copper); }
.foot-brand .ar { font-family: 'Amiri', serif; font-size: 2.4rem; color: var(--copper); }
.foot-col h4 {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
  font-weight: 500;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.foot-col a { color: rgba(242, 237, 228, 0.7); font-size: 0.92rem; }
.foot-col a:hover { color: var(--bg); }
.foot-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ----------------- Reveal ----------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

::selection { background: var(--copper-deep); color: var(--bg); }
