@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../assets/fonts/instrument-serif-latin-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fbfcff;
  --text: #18202e;
  --muted: #687286;
  --faint: #7a8598;
  --line: rgba(34, 58, 99, .14);
  --blue: #285aeb;
  --red: #ed4055;
  --accent: var(--blue);
  --cyber: var(--red);
  --font: 'Manrope', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: #dee7ff; color: #172753; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border-radius: 0; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
svg { display: block; }
p, h1, h2, h3 { margin: 0; }
.shell { width: min(100% - 128px, 1392px); margin-inline: auto; }
.mono, .eyebrow { font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .09em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 24px; z-index: 20; padding: 10px 18px; background: var(--blue); color: #fff; }
.skip-link:focus { top: 12px; }
.page-grain { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: .014; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.94' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.safety-color { color: var(--blue); }
.cyber-color { color: var(--red); }

/* White space is the frame; red and blue carry the signals. */
.site-header { height: 88px; position: relative; z-index: 10; }
.header-inner { height: 100%; 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: 22px; letter-spacing: -.02em; font-weight: 700; line-height: 1; }
.brand-symbol { width: 32px; height: 32px; color: var(--blue); transition: transform .4s var(--ease), filter .4s; }
.brand-symbol circle:last-child { fill: var(--red); }
.brand:hover .brand-symbol { transform: translateY(-1px); filter: drop-shadow(0 2px 5px #285aeb20); }
.brand-trust { color: #64718a; }
.header-nav { display: flex; align-items: center; gap: 29px; font-size: 12px; }
.nav-focus { color: #566077; transition: color .25s; }
.nav-focus:hover { color: var(--blue); }
.nav-divider { height: 14px; width: 1px; background: var(--line); }
.language-toggle { padding: 9px 0; width: 25px; background: transparent; border: 0; font: 11px var(--mono); color: #566077; transition: color .2s; }
.language-toggle:hover { color: var(--blue); }
.github-link { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #cdd4e1; padding: 9px 13px; font-size: 11px; line-height: 1.5; background: #ffffff80; transition: background .25s, border-color .25s; }
.github-link svg { width: 14px; height: 14px; }
.github-link:hover { background: #eef3ff; border-color: var(--blue); }
.link-arrow { font-size: 16px; color: var(--blue); margin-left: 8px; }

/* Two fields, two subjects: attacks on models, and models carrying out cyber tasks. */
.intro { display: flex; align-items: center; justify-content: space-between; gap: 45px; padding-block: 27px 30px; }
.eyebrow { display: flex; align-items: center; gap: 16px; color: #7b879b; font-size: 8px; letter-spacing: .12em; margin-bottom: 13px; }
.signal-pair { position: relative; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.signal-pair::after { content: ''; position: absolute; left: 8px; width: 4px; height: 4px; border-radius: inherit; background: var(--red); animation: signal 4s ease-in-out infinite; }
h1 { font-size: clamp(30px, 3.3vw, 48px); font-weight: 500; line-height: 1.15; letter-spacing: -.06em; white-space: nowrap; }
h1 em { font: italic 1.2em/.8 var(--serif); color: var(--blue); letter-spacing: -.045em; }
.intro-copy { width: 335px; max-width: 35%; color: var(--muted); font-size: 12px; line-height: 1.9; }
.intro-lead { margin-bottom: 2px; color: #35415a; }
.domain-grid { display: grid; grid-template-columns: 1fr 1fr; }
.domain-panel { --domain-color: var(--blue); --domain-rgb: 40, 90, 235; min-width: 0; padding-right: 32px; border-top: 1px solid var(--line); }
.cyber-panel { --domain-color: var(--red); --domain-rgb: 237, 64, 85; border-left: 1px solid var(--line); padding-right: 0; padding-left: 32px; }
.domain-heading { display: grid; grid-template-columns: 1fr auto; gap: 11px 16px; min-height: 147px; padding-block: 22px 10px; }
.domain-index { color: var(--domain-color); font-size: 8px; letter-spacing: .08em; margin-bottom: 7px; }
.domain-heading h2 { font-size: 35px; line-height: 1.1; letter-spacing: -.045em; font-weight: 500; }
.domain-heading h2 span { color: var(--domain-color); }
.domain-description { grid-column: 1 / -1; max-width: 525px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.scene-action { display: grid; align-self: center; place-items: center; width: 34px; height: 34px; padding: 8px; border: 1px solid rgba(var(--domain-rgb), .22); border-radius: 50%; background: transparent; color: var(--domain-color); transition: background .25s, transform .4s var(--ease); }
.scene-action svg { width: 18px; height: 18px; }
.scene-action:hover { background: rgba(var(--domain-rgb), .055); transform: rotate(-12deg); }
.scene-action:active { transform: scale(.9) rotate(-12deg); background: rgba(var(--domain-rgb), .12); }
.scene-action:focus-visible { outline-color: var(--domain-color); }
.scene-stage { position: relative; height: clamp(460px, calc(100svh - 285px), 730px); isolation: isolate; }
.scene-stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 50% 44%, rgba(var(--domain-rgb), .035), transparent 65%); }
.scene-stage::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 75%, rgba(var(--domain-rgb), .018), transparent 43%); pointer-events: none; z-index: -1; }
.scene-stage canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.scene-corners { position: absolute; inset: 24px 0; pointer-events: none; opacity: .45; }
.scene-corners i { position: absolute; width: 8px; height: 8px; border-color: rgba(var(--domain-rgb), .2); border-style: solid; }
.scene-corners i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.scene-corners i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.scene-corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.scene-corners i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.scene-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--domain-color); }
.scene-fallback svg { width: 74%; max-width: 400px; stroke: currentColor; stroke-width: .7; }
.canvas-ready .scene-fallback { display: none; }
.domain-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-block: 18px; }
.domain-footer p { max-width: 57%; color: #69768d; font-size: 10px; line-height: 1.75; }
.domain-footer > span { font-size: 6.5px; color: var(--domain-color); text-align: right; letter-spacing: .035em; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 23px; border-top: 1px solid var(--line); color: var(--faint); font-size: 8px; letter-spacing: .08em; }
.footer-note { color: #8e98ab; }
.back-to-top { display: flex; align-items: center; gap: 17px; }
.back-to-top:hover { color: var(--blue); }
.back-to-top span:last-child { font-size: 15px; line-height: 1; }
@keyframes signal { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
@media (min-width: 1600px) {
  .domain-panel { padding-right: 42px; }
  .cyber-panel { padding-left: 42px; padding-right: 0; }
}
@media (max-width: 1199px) {
  .shell { width: calc(100% - 80px); }
  .domain-panel { padding-right: 24px; }
  .cyber-panel { padding-left: 24px; padding-right: 0; }
  .domain-heading { min-height: 155px; }
  .domain-description { font-size: 11px; }
  .domain-footer { flex-wrap: wrap; gap: 8px; }
  .domain-footer p { max-width: 100%; width: 100%; }
  .domain-footer > span { text-align: left; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 24px; }
  .shell { width: calc(100% - 44px); }
  .site-header { height: 84px; }
  .brand { font-size: 20px; gap: 9px; }
  .brand-symbol { width: 28px; height: 28px; }
  .header-nav { gap: 20px; }
  .nav-focus, .nav-divider { display: none; }
  .github-link { padding: 7px 9px; gap: 5px; }
  .github-link .link-arrow { margin-left: 4px; }
  .intro { flex-direction: column; align-items: flex-start; gap: 17px; padding-block: 24px 26px; }
  .eyebrow { font-size: 7px; margin-bottom: 10px; }
  h1 { font-size: 31px; }
  .intro-copy { width: 100%; max-width: 100%; font-size: 11px; }
  .domain-grid { grid-template-columns: 1fr; }
  .domain-panel, .cyber-panel { padding-inline: 0; border-left: 0; }
  .domain-heading { min-height: 132px; padding-block: 22px 6px; }
  .domain-heading h2 { font-size: 31px; }
  .domain-index { font-size: 7px; }
  .domain-description { font-size: 11px; line-height: 1.85; }
  .scene-stage { height: max(470px, 62svh); }
  .scene-action { width: 38px; height: 38px; }
  .domain-footer { padding-block: 15px 21px; }
  .domain-footer > span { font-size: 6px; }
  .site-footer { font-size: 7px; padding-block: 21px; }
  .footer-note { display: none; }
}
@media (max-width: 374px) {
  .shell { width: calc(100% - 36px); }
  .header-nav { gap: 13px; }
  .github-link > span:not(.link-arrow) { display: none; }
  h1 { font-size: 27px; }
}
@media (pointer: coarse) {
  .scene-action { min-width: 40px; min-height: 40px; }
  .language-toggle { min-height: 44px; }
  .github-link { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
