/* ThreatGuard Inc — Emerald Luxe design system */
:root {
  --bg: #10281f;
  --bg-deep: #0c2018;
  --bg-raised: #143126;
  --text: #f3ede0;
  --text-soft: rgba(243, 237, 224, 0.78);
  --text-mute: rgba(243, 237, 224, 0.6);
  --accent: #c8a764;
  --accent-soft: rgba(200, 167, 100, 0.32);
  --line: rgba(200, 167, 100, 0.18);
  --serif: "Cormorant Garamond", "Cormorant", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --narrow: 720px;
  --section: 6rem;
  --gutter: 2rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.125rem, 4.4vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--bg); padding: 0.6rem 1rem;
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.center { text-align: center; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.lede { font-size: 1.125rem; color: var(--text-soft); }
.muted { color: var(--text-mute); }

.rule {
  width: 56px; height: 1px; background: var(--accent); border: 0;
  margin: 1.75rem auto;
}
.rule--left { margin-left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 46px;
  padding: 0.75rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: var(--accent); color: var(--bg);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: #d8bb7c; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--bg); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.center .btn-row { justify-content: center; }

.text-link {
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent-soft); padding-bottom: 0.2rem;
}
.text-link:hover { border-bottom-color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 40, 31, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  letter-spacing: 0.03em; text-decoration: none; color: var(--text);
}
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav ul { display: flex; gap: 2rem; list-style: none; }
.nav a:not(.btn) {
  font-size: 0.86rem; font-weight: 400; letter-spacing: 0.06em;
  text-decoration: none; color: var(--text-soft);
  padding: 0.35rem 0; border-bottom: 1px solid transparent;
}
.nav a:not(.btn):hover { color: var(--text); }
.nav a[aria-current="page"], .nav a.is-section {
  color: var(--accent); border-bottom-color: var(--accent);
}
.nav .btn { min-height: 40px; padding: 0.55rem 1.1rem; font-size: 0.7rem; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line); color: var(--text);
  cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 1.5px; background: currentColor; position: relative;
  transition: transform 0.2s ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Sections */
.section { padding: var(--section) 0; border-bottom: 1px solid var(--line); }
.section--deep { background: var(--bg-deep); }
.section-head { max-width: var(--narrow); margin: 0 auto 3.5rem; text-align: center; }
.section-head p { color: var(--text-soft); }

/* Arch frames */
.arch {
  overflow: hidden;
  border: 1px solid var(--accent-soft);
  background: var(--bg-deep);
  position: relative;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--hero {
  max-width: 820px; margin: 0 auto;
  aspect-ratio: 1376 / 768;
  border-radius: 410px 410px 0 0 / 300px 300px 0 0;
  padding: 10px;
  background: transparent;
}
.arch--hero img { border-radius: 400px 400px 0 0 / 292px 292px 0 0; }
.figure-note {
  font-size: 0.75rem; color: var(--text-mute); letter-spacing: 0.04em;
  margin-top: 0.9rem;
}

/* Home hero */
.hero { padding: 5.5rem 0 5rem; text-align: center; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 760px; margin: 0 auto 1.25rem; font-weight: 500; }
.hero .lede { max-width: 600px; margin: 0 auto 2.25rem; }
.hero .btn-row { margin-bottom: 4rem; }

/* Story */
.story-body { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.5; color: var(--text); }
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 3.5rem; border-top: 1px solid var(--line);
}
.pillars > div { padding: 2rem 1.75rem 0; text-align: center; }
.pillars > div + div { border-left: 1px solid var(--line); }
.pillars h3 { font-size: 1.3rem; }
.pillars p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

/* Collection (home) */
.collection {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2.5rem 2rem;
  list-style: none;
}
.collection li { grid-column: span 2; text-align: center; }
.collection li:nth-child(4) { grid-column: 2 / span 2; }
.collection .arch {
  aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; padding: 7px; background: transparent;
  margin-bottom: 1.4rem;
}
.collection .arch img { border-radius: 999px 999px 0 0; }
.collection a.item-link { text-decoration: none; display: block; }
.collection a.item-link:hover h3 { color: var(--accent); }
.collection h3 { margin-bottom: 0.5rem; transition: color 0.2s; }
.collection p { color: var(--text-soft); font-size: 0.93rem; max-width: 300px; margin: 0 auto 0.9rem; }

/* Use cases */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.apps li { padding: 2.5rem 2rem; text-align: center; }
.apps li + li { border-left: 1px solid var(--line); }
.apps .numeral { font-family: var(--serif); font-size: 2.4rem; color: var(--accent); line-height: 1; display: block; margin-bottom: 1rem; font-style: italic; }
.apps p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

/* Details / craft */
.craft {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 4.5rem; align-items: center;
}
.craft + .craft { margin-top: 5rem; }
.craft .round {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--accent-soft);
}
.craft .round img { width: 100%; height: auto; }
.craft p { color: var(--text-soft); }
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 1.5rem 3.5rem; border-left: 1px solid var(--line); margin-left: 1rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step, upper-roman);
  position: absolute; left: -1rem; top: -0.1rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent);
  color: var(--accent); font-family: var(--serif); font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.section--deep .steps li::before { background: var(--bg-deep); }
.steps h3, .steps h4 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

/* Contact panel */
.panel {
  max-width: 820px; margin: 0 auto; text-align: center;
  border: 1px solid var(--accent-soft);
  border-radius: 220px 220px 0 0 / 120px 120px 0 0;
  padding: 5rem 3rem 3.5rem;
  background: var(--bg-raised);
}
.panel p { color: var(--text-soft); }
.email-big {
  display: inline-block; font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 2.1rem);
  color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft);
  margin: 0.5rem 0 1.5rem; word-break: break-word;
}
.email-big:hover { border-bottom-color: var(--accent); }
.copy-status { min-height: 1.5em; font-size: 0.85rem; color: var(--accent); margin: 0.75rem 0 0; }

/* Inner page hero (split) */
.page-hero { padding: 4.5rem 0 5rem; border-bottom: 1px solid var(--line); }
.page-hero .wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.page-hero .arch {
  border-radius: 999px 999px 0 0 / 340px 340px 0 0;
  padding: 8px; background: transparent;
}
.page-hero .arch img { border-radius: 999px 999px 0 0 / 332px 332px 0 0; aspect-ratio: 1376 / 768; height: auto; }
.page-hero .lede { margin-bottom: 2rem; }
.page-hero--text .wrap { grid-template-columns: 1fr; text-align: center; max-width: 860px; }

.breadcrumb { margin-bottom: 1.75rem; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--text-mute); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--accent-soft); }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* Two column prose */
.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.split .prose p { color: var(--text-soft); }
.prose p:last-child { margin-bottom: 0; }
.ticks { list-style: none; display: grid; gap: 0.8rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--text-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.6rem; height: 1px; background: var(--accent); }
.ticks--two { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }

/* Services overview list */
.disciplines { list-style: none; }
.discipline {
  display: grid; grid-template-columns: 90px 1fr 1.1fr; gap: 3rem; align-items: center;
  padding: 3.5rem 0; border-top: 1px solid var(--line);
}
.discipline:last-child { border-bottom: 1px solid var(--line); }
.discipline .num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--accent); line-height: 1; align-self: start; }
.discipline .photo { border-radius: 18px; overflow: hidden; border: 1px solid var(--accent-soft); }
.discipline .photo img { width: 100%; height: auto; }
.discipline:nth-child(even) .photo { border-radius: 999px 999px 18px 18px / 200px 200px 18px 18px; }
.discipline p { color: var(--text-soft); }
.discipline .benefit { font-family: var(--serif); font-size: 1.2rem; color: var(--text); font-style: italic; border-left: 1px solid var(--accent); padding-left: 1rem; }
.discipline .ticks { margin: 0 0 1.6rem; font-size: 0.93rem; }

/* Info list */
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 160px 1fr; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); padding-top: 0.25rem; }
.facts dd { margin: 0; color: var(--text); }
.facts a { color: var(--text); text-decoration-color: var(--accent-soft); text-underline-offset: 4px; }
.facts a:hover { color: var(--accent); }

/* Card trio (about / contact) — bordered, symmetric */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; }
.trio li { border: 1px solid var(--line); border-radius: 120px 120px 0 0 / 60px 60px 0 0; padding: 3rem 1.75rem 2rem; text-align: center; }
.trio h3 { font-size: 1.3rem; }
.trio p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

.topic-list { list-style: none; border-top: 1px solid var(--line); }
.topic-list li { border-bottom: 1px solid var(--line); }
.topic-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0.25rem; text-decoration: none;
  font-family: var(--serif); font-size: 1.25rem;
}
.topic-list a span:last-child { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.topic-list a:hover { color: var(--accent); }

/* Detail page */
.detail-hero .arch-natural {
  border: 1px solid var(--accent-soft); padding: 8px;
  border-radius: 50% 50% 14px 14px / 34% 34% 14px 14px;
}
.detail-hero .arch-natural img {
  width: 100%; height: auto; /* keep native aspect ratio */
  border-radius: 50% 50% 8px 8px / 33% 33% 8px 8px;
}
.benefit-quote {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.45;
  text-align: center; max-width: 780px; margin: 0 auto; font-style: italic;
}
.benefit-quote::before, .benefit-quote::after { color: var(--accent); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.detail-grid > div { padding: 2.75rem 2.5rem; }
.detail-grid > div + div { border-left: 1px solid var(--line); }
.detail-grid p { color: var(--text-soft); white-space: pre-line; }
.side-cta {
  border: 1px solid var(--accent-soft); background: var(--bg-raised);
  padding: 2.25rem 2rem; border-radius: 14px;
}
.side-cta p { color: var(--text-soft); font-size: 0.95rem; }
.related { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; justify-content: center; }
.related a {
  display: inline-block; padding: 0.6rem 1.2rem; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: 0.88rem; color: var(--text-soft);
}
.related a:hover { border-color: var(--accent); color: var(--accent); }

/* Footer */
.site-footer { padding: 4.5rem 0 2rem; background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 3rem; }
.site-footer h2 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.site-footer h3 { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.site-footer p, .site-footer li { color: var(--text-soft); font-size: 0.92rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-base {
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: var(--text-mute);
}

/* Responsive */
@media (max-width: 1000px) {
  .discipline { grid-template-columns: 60px 1fr; }
  .discipline .photo { grid-column: 2; }
  .craft { gap: 3rem; }
}
@media (max-width: 860px) {
  :root { --section: 4rem; --gutter: 1.5rem; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a:not(.btn) { display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a[aria-current="page"], .nav a.is-section { border-bottom-color: var(--line); }
  .nav .btn { margin-top: 1.25rem; min-height: 48px; }
  .page-hero .wrap, .split, .craft, .detail-grid { grid-template-columns: 1fr; }
  .craft .round { order: -1; }
  .detail-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .pillars, .apps, .trio { grid-template-columns: 1fr; }
  .pillars > div + div, .apps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .pillars > div { padding: 1.75rem 0.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --section: 3rem; --gutter: 1.25rem; }
  body { font-size: 0.97rem; }
  h1 { font-size: clamp(1.9rem, 8.6vw, 2.4rem); }
  .site-header .wrap { min-height: 64px; }
  .brand { font-size: 1.2rem; }
  .hero { padding: 3rem 0 3rem; }
  .hero .btn-row { margin-bottom: 2.5rem; }
  .hero .btn-row .btn { width: 100%; }
  .arch--hero { aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; padding: 6px; }
  .arch--hero img { border-radius: 999px 999px 0 0; }
  .collection { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .collection li, .collection li:nth-child(4) { grid-column: auto; }
  .collection li:nth-child(5) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; width: 100%; }
  .collection h3 { font-size: 1.1rem; }
  .collection p { font-size: 0.85rem; }
  .apps li { padding: 2rem 0.5rem; }
  .panel { padding: 3.5rem 1.25rem 2.5rem; border-radius: 160px 160px 0 0 / 70px 70px 0 0; }
  .discipline { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 0; }
  .discipline .photo { grid-column: auto; }
  .discipline .num { font-size: 2rem; }
  .facts > div { grid-template-columns: 1fr; gap: 0.3rem; }
  .ticks--two { grid-template-columns: 1fr; }
  .detail-grid > div { padding: 2rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 2.5rem 0 3rem; }
  .page-hero .wrap { gap: 2.25rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .topic-list a { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

/* Framed print: image already contains its own mat and arch */
.print { margin: 0; border: 1px solid var(--accent-soft); padding: 10px; border-radius: 6px; }
.print img { width: 100%; height: auto; border-radius: 2px; }
