:root {
  --bg: #1c1d22;
  --bg-2: #23252b;
  --ink: #e6e2d6;
  --ink-dim: #a8a298;
  --ink-faint: #71706a;
  --line: #2c2e35;
  --accent: #e6e2d6;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1080px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(230, 226, 214, 0.035), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(230, 226, 214, 0.025), transparent 60%);
  background-attachment: fixed;
}

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: .5rem .75rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 99; }

/* nav */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.nav .brand img { height: 30px; width: auto; opacity: .95; }
.nav nav { display: flex; gap: 2rem; }
.nav nav a {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .2s ease;
}
.nav nav a:hover { color: var(--ink); }

/* layout */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

section { padding: clamp(4rem, 10vw, 7rem) 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

.section-head {
  display: flex; align-items: baseline; gap: 1.25rem;
  margin-bottom: 2.75rem;
}
.section-head .num {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--ink-faint);
  letter-spacing: .12em;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0;
}

/* hero */
.hero {
  padding-top: clamp(4rem, 12vh, 8rem);
  border-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-text { min-width: 0; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto 2rem; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 2rem;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7cd28b;
  box-shadow: 0 0 0 4px rgba(124, 210, 139, 0.12);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(124, 210, 139, 0.12); }
  50%      { box-shadow: 0 0 0 8px rgba(124, 210, 139, 0.04); }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 6.5vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 2rem;
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

.lede {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--ink-dim);
  margin: 0 0 2.5rem;
}

.motto {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

/* hero animated network — 3B1B-style */
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* faint coordinate plane */
.hero-art .grid line,
.hero-art .grid circle {
  stroke: rgba(230, 226, 214, 0.06);
  stroke-width: 0.6;
  fill: none;
}
.hero-art .grid circle { stroke-dasharray: 1 4; }

/* edges: drawn-in animation, then quiet */
.hero-art .edges path {
  fill: none;
  stroke: rgba(230, 226, 214, 0.32);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 1.6s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-art .edges path:nth-child(1)  { animation-delay: .15s; }
.hero-art .edges path:nth-child(2)  { animation-delay: .25s; }
.hero-art .edges path:nth-child(3)  { animation-delay: .35s; }
.hero-art .edges path:nth-child(4)  { animation-delay: .45s; }
.hero-art .edges path:nth-child(5)  { animation-delay: .55s; }
.hero-art .edges path:nth-child(6)  { animation-delay: .65s; }
.hero-art .edges path:nth-child(7)  { animation-delay: .9s;  }
.hero-art .edges path:nth-child(8)  { animation-delay: 1.0s; }
.hero-art .edges path:nth-child(9)  { animation-delay: 1.1s; }
.hero-art .edges path:nth-child(10) { animation-delay: 1.2s; }
.hero-art .edges path:nth-child(11) { animation-delay: 1.3s; }
.hero-art .edges path:nth-child(12) { animation-delay: 1.4s; }
.hero-art .edges path:nth-child(13) { animation-delay: 1.7s; }
.hero-art .edges path:nth-child(14) { animation-delay: 1.8s; }
.hero-art .edges path:nth-child(15) { animation-delay: 1.9s; }
.hero-art .edges path:nth-child(16) { animation-delay: 2.0s; }
.hero-art .edges path:nth-child(17) { animation-delay: 2.1s; }
.hero-art .edges path:nth-child(18) { animation-delay: 2.2s; }

/* nodes: fade in, then a slow breath */
.hero-art .nodes circle {
  fill: var(--ink);
  opacity: 0;
  transform-origin: center;
  animation:
    appear .6s ease-out forwards,
    breathe 4.5s ease-in-out 2.8s infinite;
}
.hero-art .nodes circle:nth-child(1)  { animation-delay: .2s, 2.6s; }
.hero-art .nodes circle:nth-child(2)  { animation-delay: .3s, 2.7s; }
.hero-art .nodes circle:nth-child(3)  { animation-delay: .4s, 2.8s; }
.hero-art .nodes circle:nth-child(4)  { animation-delay: .5s, 2.9s; }
.hero-art .nodes circle:nth-child(5)  { animation-delay: .6s, 3.0s; }
.hero-art .nodes circle:nth-child(6)  { animation-delay: .7s, 3.1s; }
.hero-art .nodes circle:nth-child(7)  { animation-delay: 1.0s, 3.4s; }
.hero-art .nodes circle:nth-child(8)  { animation-delay: 1.1s, 3.5s; }
.hero-art .nodes circle:nth-child(9)  { animation-delay: 1.2s, 3.6s; }
.hero-art .nodes circle:nth-child(10) { animation-delay: 1.3s, 3.7s; }
.hero-art .nodes circle:nth-child(11) { animation-delay: 1.4s, 3.8s; }
.hero-art .nodes circle:nth-child(12) { animation-delay: 1.5s, 3.9s; }

/* the signal — a 3B1B blue dot tracing the outer ring */
.hero-art .pulse {
  fill: #5db5d8;
  filter: drop-shadow(0 0 8px rgba(93, 181, 216, 0.55))
          drop-shadow(0 0 18px rgba(93, 181, 216, 0.25));
  opacity: 0;
  animation: pulseFadeIn 1s ease-out 2.4s forwards;
}

@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes breathe {
  0%, 100% { opacity: .85; }
  50%      { opacity: 1; transform: scale(1.25); }
}
@keyframes pulseFadeIn { to { opacity: 1; } }

/* slow rotation of the whole graph — 3B1B-paced */
.hero-art svg {
  animation: rotate 90s linear infinite;
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .edges path,
  .hero-art .nodes circle,
  .hero-art .pulse,
  .hero-art svg {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
}

/* focus cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cards article {
  background: var(--bg);
  padding: 2rem 1.75rem;
  transition: background .25s ease;
}
.cards article:hover { background: var(--bg-2); }
.cards h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 0 0 .75rem;
}
.cards p {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-dim);
  line-height: 1.55;
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
}

/* product */
.product {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  padding: 2.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  position: relative;
  overflow: hidden;
}
.product::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 100% 0%, rgba(244, 241, 234, 0.04), transparent 50%);
  pointer-events: none;
}
.product-meta { position: relative; }
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7cd28b;
  background: rgba(124, 210, 139, 0.08);
  border: 1px solid rgba(124, 210, 139, 0.25);
  padding: .25rem .55rem;
  border-radius: 2px;
  margin: 0 0 1rem;
}
.product-meta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 .75rem;
}
.product-meta h3 .tld {
  font-style: italic;
  color: var(--ink-faint);
  font-weight: 300;
}
.product-meta .tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--ink-dim);
  margin: 0;
  max-width: 28ch;
}
.product-body { position: relative; }
.product-body p { margin: 0 0 1rem; }
.product-body .for {
  color: var(--ink-faint);
  font-size: .9rem;
}

.cta {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: .35rem;
  transition: border-color .2s ease, gap .2s ease;
}
.cta:hover { border-color: var(--ink); gap: .85rem; }
.cta svg { transition: transform .2s ease; }
.cta:hover svg { transform: translateX(2px); }

.more {
  margin: 2rem 0 0;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--ink-faint);
}

@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem; }
}

/* contact */
.contact p { font-size: 1.1rem; color: var(--ink-dim); margin: 0; }
.contact a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.contact a:hover { border-color: var(--ink); }

/* footer */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--pad) 2.5rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
}
.foot img { height: 22px; width: auto; opacity: .6; margin-bottom: .75rem; }
.foot p { margin: 0; }
.foot .reg { text-transform: uppercase; }

@media (max-width: 560px) {
  .nav nav { gap: 1.25rem; }
  .nav nav a { font-size: .72rem; }
  .foot { flex-direction: column; align-items: flex-start; }
}

/* subtle reveal */
@media (prefers-reduced-motion: no-preference) {
  .hero > *, .section-head, .cards, .product, .contact p {
    opacity: 0;
    transform: translateY(8px);
    animation: rise .7s ease-out forwards;
  }
  .hero .eyebrow { animation-delay: .05s; }
  .hero h1 { animation-delay: .15s; }
  .hero .lede { animation-delay: .3s; }
  .hero .motto { animation-delay: .45s; }
  .focus .section-head { animation-delay: .1s; }
  .focus .cards { animation-delay: .2s; }
  .products .section-head { animation-delay: .1s; }
  .products .product { animation-delay: .2s; }
  .contact .section-head { animation-delay: .1s; }
  .contact p { animation-delay: .2s; }

  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}
