@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f5f5f2;
  --fg: #111;
  --muted: #70706b;
  --line: #d3d3ce;
  --surface: #fff;
  --soft: #ecece7;
  --dark-soft: #242421;
  --max: 1180px;
  --gap: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Figtree", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

.site {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.035em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.protocol {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-link {
  font-size: 13px;
  font-weight: 650;
  text-underline-offset: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: var(--gap);
  padding: 32px 0 16px;
}

.hero-copy {
  display: flex;
  min-height: 590px;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border: 1px solid var(--fg);
  background: var(--surface);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--fg);
}

h1 {
  max-width: 860px;
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(76px, 10.8vw, 148px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.06em;
}

h1 em {
  color: var(--muted);
  font-style: normal;
}

.hero-description {
  max-width: 610px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.48;
  letter-spacing: -.018em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.button {
  min-width: 132px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 21px;
  border: 1px solid var(--fg);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  clip-path: polygon(0 0, calc(100% - var(--step, 8px)) 0, 100% var(--step, 8px), 100% 100%, var(--step, 8px) 100%, 0 calc(100% - var(--step, 8px)));
  -webkit-clip-path: polygon(0 0, calc(100% - var(--step, 8px)) 0, 100% var(--step, 8px), 100% 100%, var(--step, 8px) 100%, 0 calc(100% - var(--step, 8px)));
}

.button.primary {
  background: var(--fg);
  color: var(--surface);
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary:hover {
  background: #2c2c2c;
}

.button.secondary:hover {
  background: var(--soft);
}

.hero-foot {
  margin-top: 38px;
}

.hero-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--fg);
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.capability {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.hero-aside {
  display: grid;
  grid-template-rows: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: var(--gap);
}

.bento-card,
.hero-index,
.protocol-band,
.security-cta {
  border: 1px solid var(--fg);
  background: var(--surface);
}

.identity-card {
  min-height: 325px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--fg);
  color: var(--surface);
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #bbbdb8;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.identity-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-top: auto;
  border: 1px solid #fff;
  background: var(--surface);
  color: var(--fg);
  font-family: "Instrument Serif", serif;
  font-size: 38px;
}

.identity-card h2 {
  max-width: 390px;
  margin: 18px 0 0;
  font-size: clamp(27px, 4vw, 40px);
  line-height: .96;
  letter-spacing: -.05em;
}

.identity-card p {
  max-width: 360px;
  margin: 10px 0 0;
  color: #bebfba;
  font-size: 12px;
  line-height: 1.5;
}

.identity-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 22px;
}

.identity-stat {
  padding: 10px;
  border: 1px solid #3a3a36;
}

.identity-stat strong,
.identity-stat span {
  display: block;
}

.identity-stat strong {
  font-size: 13px;
}

.identity-stat span {
  margin-top: 3px;
  color: #9c9d98;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-index {
  padding: 14px 18px 8px;
}

.index-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.index-row:last-child {
  border-bottom: 0;
}

.index-row span:first-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.index-row span:last-child {
  font-weight: 700;
  text-align: right;
}

.section {
  border-top: 1px solid var(--line);
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 34px;
  margin-bottom: 36px;
}

.section-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(92px, auto);
  gap: var(--gap);
}

.bento-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.bento-card:hover {
  background: #fafaf7;
  box-shadow: 0 10px 26px rgba(17, 17, 17, .055);
}

.bento-card.dark {
  background: var(--fg);
  color: var(--surface);
}

.bento-card.dark:hover {
  background: #20201e;
}

.span-5 {
  grid-column: span 5;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-4 {
  grid-column: span 4;
}

.tall {
  grid-row: span 2;
  min-height: 315px;
}

.medium {
  min-height: 215px;
}

.card-number {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.bento-card.dark .card-number {
  color: #aeb0aa;
}

.bento-card h3 {
  max-width: 360px;
  margin: 56px 0 10px;
  font-size: 24px;
  letter-spacing: -.04em;
}

.bento-card p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-wrap: pretty;
}

.bento-card.dark p {
  color: #bcbeb8;
}

.control-stack,
.protocol-stack,
.access-cluster {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.control-row,
.protocol-row,
.access-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 10px;
}

.control-row strong,
.protocol-row strong,
.access-node strong {
  font-size: 11px;
}

.control-row span,
.protocol-row span {
  color: var(--muted);
}

.control-row strong::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: var(--fg);
  vertical-align: middle;
}

.protocol-row {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.protocol-row span {
  font-size: 9px;
}

.access-cluster {
  grid-template-columns: repeat(3, 1fr);
}

.access-node {
  min-height: 92px;
  align-items: flex-end;
  flex-direction: column;
  justify-content: space-between;
}

.access-node ace-icon {
  color: var(--muted);
}

.bento-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.bento-foot > div {
  min-width: 0;
}

.bento-foot .button {
  flex: 0 0 auto;
}

.security-section {
  padding-bottom: 72px;
}

.security-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: var(--gap);
  padding: 24px;
  background: var(--fg);
  color: var(--surface);
}

.security-cta strong,
.security-cta span {
  display: block;
}

.security-cta strong {
  font-size: 17px;
  letter-spacing: -.02em;
}

.security-cta span {
  max-width: 680px;
  margin-top: 5px;
  color: #b9b9b4;
  font-size: 12px;
  line-height: 1.45;
}

.security-cta .button.primary {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.answers {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.answer-row {
  display: grid;
  grid-template-columns: 80px minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.answer-row > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.answer-row h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -.025em;
}

.answer-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.protocol-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--soft);
}

.protocol-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fg);
  background: var(--surface);
  font-size: 10px;
  font-weight: 800;
}

.protocol-band strong {
  font-size: 14px;
  letter-spacing: -.02em;
}

.protocol-band span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--fg);
  background: var(--surface);
  color: var(--fg);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 30px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

footer a {
  text-underline-offset: 4px;
}

.reveal {
  animation: reveal .65s cubic-bezier(.2,.7,.2,1) both;
}

.delay-1 {
  animation-delay: .08s;
}

.delay-2 {
  animation-delay: .16s;
}

.delay-3 {
  animation-delay: .24s;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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


/* Responsive layout tuning: phone + tablet */
@media (min-width: 621px) and (max-width: 1024px) {
  .site { width: min(100% - 36px, 960px); }
  .topbar { height: 70px; }
  .hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(250px, .82fr);
    padding-top: 20px;
  }
  .hero-copy { min-height: 520px; padding: 28px; }
  h1 { font-size: clamp(68px, 9vw, 112px); }
  .hero-description { font-size: 16px; }
  .section { padding: 68px 0; }
  .section-heading { grid-template-columns: 120px minmax(0, 1fr); gap: 22px; }
  .bento-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-5, .span-7, .span-8, .span-4 { grid-column: span 3; }
  .span-7, .span-8 { grid-column: span 6; }
  .bento-card h3 { margin-top: 42px; }
  .security-cta { padding: 20px; }
}

@media (max-width: 620px) {
  body { overflow-x: hidden; }
  .site { width: calc(100% - 24px); }
  .topbar { height: 62px; }
  .brand img { width: 28px; height: 28px; }
  .hero-copy { padding: 22px 18px; }
  h1 { font-size: clamp(60px, 20vw, 92px); }
  .hero-description { margin-top: 26px; font-size: 15px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .actions .button { min-width: 0; width: 100%; padding: 0 12px; }
  .capability-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -2px;
    padding: 2px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .capability-list::-webkit-scrollbar { display: none; }
  .capability { flex: 0 0 auto; scroll-snap-align: start; }
  .identity-card { min-height: 278px; padding: 20px; }
  .identity-mark { width: 62px; height: 62px; }
  .identity-rail { gap: 5px; }
  .identity-stat { padding: 9px 8px; }
  .hero-index { padding-inline: 14px; }
  .section { padding: 54px 0; }
  .section-heading h2 { font-size: clamp(32px, 9vw, 46px); }
  .bento-card { padding: 18px; }
  .bento-card h3 { margin-top: 34px; font-size: 22px; }
  .bento-card p { font-size: 13px; }
  .control-row, .protocol-row { min-height: 44px; }
  .access-cluster { gap: 6px; }
  .access-node { min-height: 54px; flex-direction: row; align-items: center; }
  .bento-foot { align-items: stretch; flex-direction: column; }
  .bento-foot .button { width: 100%; }
  .security-cta { padding: 18px; }
  .answer-row { padding: 18px 0; }
  .protocol-band { padding: 15px; }
  footer { padding-bottom: 24px; }
}

@media (max-width: 900px) {
  .site {
    width: min(var(--max), calc(100% - 36px));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-aside {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .identity-card,
  .hero-index {
    min-height: 270px;
  }

  .span-5,
  .span-7,
  .span-8,
  .span-4 {
    grid-column: span 6;
  }

  .tall {
    grid-row: auto;
    min-height: 260px;
  }

  .answer-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .answer-row p {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .site {
    width: calc(100% - 32px);
  }

  .topbar {
    height: 66px;
  }

  .protocol,
  .topbar-right .nav-link {
    display: none;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-copy {
    padding: 24px 20px;
  }

  h1 {
    font-size: clamp(66px, 21vw, 108px);
  }

  .hero-aside {
    grid-template-columns: 1fr;
  }

  .identity-card,
  .hero-index {
    min-height: auto;
  }

  .identity-card {
    min-height: 300px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .span-5,
  .span-7,
  .span-8,
  .span-4 {
    grid-column: auto;
  }

  .bento-card,
  .bento-card.medium,
  .bento-card.tall {
    min-height: 210px;
  }

  .access-cluster {
    grid-template-columns: 1fr;
  }

  .access-node {
    min-height: 0;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  .security-cta {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .security-cta .button {
    width: 100%;
  }

  .answer-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .answer-row p {
    grid-column: auto;
  }

  .protocol-band {
    grid-template-columns: auto 1fr;
  }

  .protocol-band span {
    grid-column: 2;
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button,
  .bento-card,
  .skip-link {
    animation: none;
    transition: none;
  }
}

/* Screen-smart safeguards */
.hero > *, .hero-aside > *, .bento-grid > *, .section-heading > *, .answer-row > *, .protocol-band > * { min-width: 0; }
.hero-copy, .identity-card, .hero-index, .bento-card, .security-cta { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .site { width: calc(100% - 24px); }
  .hero-copy { padding: 20px 16px; }
  .identity-card, .hero-index { padding: 18px 16px; }
  .bento-card { padding: 16px; }
  .button { min-height: 48px; width: 100%; }
  .actions { grid-template-columns: 1fr; }
  .capability-list { flex-wrap: wrap; overflow-x: visible; }
}
@media (min-width: 1400px) {
  .site { width: min(1240px, calc(100% - 64px)); }
  .hero-copy { min-height: 640px; }
}

/* Centered action controls across compact layouts */
@media (max-width: 1024px){
  .actions .button,.bento-foot .button,.security-cta .button{justify-content:center;text-align:center;}
  .access-node,.control-row,.protocol-row{justify-content:center;text-align:center;}
}
@media (max-width:620px){
  .actions{justify-items:stretch;}
  .actions .button{display:flex;align-items:center;justify-content:center;}
  .bento-foot{align-items:stretch;}
  .bento-foot .button{display:flex;justify-content:center;}
}