/* Terance Graphite: the company look. Warm paper, graphite ink, one gold
   accent, serif headlines. Product colours appear only inside product windows. */
:root {
  --paper: #F7F6F3;
  --paper-deep: #EFEDE7;
  --ink: #1C1C1E;
  --muted: #6B6B70;
  --hairline: #DEDBD3;
  --gold: #C8A24A;
  --gold-deep: #A8862F;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 246, 243, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-head.scrolled { border-bottom-color: var(--hairline); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.wordmark { font-family: var(--serif); font-size: 28px; letter-spacing: -0.01em; line-height: 1; display: inline-flex; align-items: flex-end; }
.wordmark .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin: 0 0 5px 3px; }
.wordmark.small { font-size: 22px; }
.wordmark.small .dot { width: 6px; height: 6px; margin-bottom: 4px; }

.head-nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: var(--muted); }
.head-nav a { transition: color 0.2s ease; }
.head-nav a:hover { color: var(--ink); }
.head-nav .head-cta { color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 7px 16px; }
.head-nav .head-cta:hover { background: var(--ink); color: var(--paper); }

/* Type */
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
h1 { font-size: clamp(48px, 8.2vw, 104px); line-height: 0.98; max-width: 12ch; }
h1 em { font-style: italic; color: var(--gold-deep); }
h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; max-width: 18ch; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.005em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-line { border: 1px solid var(--hairline); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); font-size: 17px; height: 56px; padding: 0 30px; }
.btn-gold:hover { background: #D4B060; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

/* Hero */
.hero { padding: clamp(72px, 12vw, 148px) 0 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 56ch; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.rule { height: 1px; margin-top: clamp(72px, 10vw, 120px); background: var(--hairline); position: relative; overflow: hidden; }
.rule::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: draw 1.6s 0.4s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes draw { to { transform: scaleX(0.28); } }

/* Sections */
section { scroll-margin-top: 68px; }
.products { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { margin-bottom: 56px; }
.section-lede { color: var(--muted); max-width: 52ch; margin-top: 18px; font-size: 17px; }

/* Product windows: the one place product colours appear. */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product { background: #fff; border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.product:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(28, 28, 30, 0.35); }
.window { position: relative; aspect-ratio: 16 / 9; background: var(--win-bg, #0B0B0D); overflow: hidden; }
.window canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.window::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); border-radius: inherit; pointer-events: none; }
.window-name {
  position: absolute; left: 16px; bottom: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.86);
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
[data-product="synapse"] { --win-bg: #07040D; }
[data-product="shield"] { --win-bg: #0A0606; }
[data-product="vault"] { --win-bg: #060B18; }
[data-product="pulse"] { --win-bg: #030A08; }

.product-body { padding: 24px 26px 26px; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.product-body p { color: var(--muted); font-size: 15px; min-height: 3.2em; }
.status { font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--hairline); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.status.live { color: #1F6F43; border-color: #BFDCCB; background: #EEF6F1; }
.product-link { display: inline-flex; gap: 6px; margin-top: 18px; font-size: 14.5px; font-weight: 500; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.product-link span { transition: transform 0.2s ease; }
.product-link:hover span { transform: translateX(3px); }

/* Approach: one dark graphite band. */
.approach { background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 120px) 0; }
.approach .eyebrow { color: var(--gold); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(247, 246, 243, 0.16); }
.pillar { padding: 32px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid rgba(247, 246, 243, 0.16); }
.pillar .num { display: block; font-family: var(--serif); font-size: 32px; color: var(--gold); margin-bottom: 20px; }
.pillar p { color: rgba(247, 246, 243, 0.66); margin-top: 10px; font-size: 15.5px; }

/* About */
.about { padding: clamp(72px, 10vw, 120px) 0; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; }
.about-text p { color: var(--muted); font-size: 17px; }
.about-text p + p { margin-top: 16px; }

/* Contact */
.contact { background: var(--paper-deep); border-top: 1px solid var(--hairline); }
.contact-inner { padding: clamp(72px, 10vw, 120px) 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: none; }
.contact p { color: var(--muted); font-size: 17px; margin: 16px 0 32px; }

/* Footer */
.site-foot { border-top: 1px solid var(--hairline); font-size: 14px; color: var(--muted); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0; }
.foot-row .wordmark { color: var(--ink); }
.foot-row a:hover { color: var(--ink); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .rule::after { animation: none; transform: scaleX(0.28); }
  .product, .btn { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid rgba(247, 246, 243, 0.16); }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .head-nav a:not(.head-cta) { display: none; }
  .product-body { padding: 20px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
