:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  color: #242426;
  background: #fafafa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --gutter: clamp(24px, 5vw, 80px);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; }
body { min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #0f83b2; outline-offset: 6px; }
::selection { color: #fff; background: #0f83b2; }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 12px 16px; color: #fff; background: #242426; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.header { border-bottom: 1px solid #e9e9eb; }
.header-inner { height: clamp(76px, 12svh, 96px); display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { display: block; width: 44px; height: 44px; }
.brand span { color: #111; font-size: 29px; line-height: 1.2; font-weight: 400; letter-spacing: -.015em; white-space: nowrap; }
.hero { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 24px; padding-top: clamp(28px, 5svh, 60px); padding-bottom: clamp(32px, 6svh, 64px); }
.hero-copy { width: 100%; position: relative; z-index: 1; }
h1 { margin: 0; font-size: clamp(40px, 4.6vw, 65px); line-height: 1.06; letter-spacing: -.045em; font-weight: 400; }
h1 > span { display: block; }
.hero-description { max-width: 660px; margin: 26px 0 0; color: #5c5d63; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; letter-spacing: -.012em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 15px 23px; margin-top: clamp(24px, 4.4svh, 32px); background: #222225; color: #fff; border-radius: 4px; font-size: 16px; line-height: 1.5; transition: background .2s; }
.button:hover { background: #48484d; }
.hero-art { position: relative; width: 100%; min-width: 0; }
.geometry-frame { position: relative; width: 100%; height: clamp(360px, 58svh, 680px); overflow: hidden; }
.geometry-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.geometry-frame.ready canvas { opacity: 1; }
.geometry-frame.ready pre { visibility: hidden; }
#geometry-fallback { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; font: 700 clamp(5px, .67vw, 9px)/1.18 "Courier New", monospace; user-select: none; transform: rotate(-16deg) scaleY(.86); }
#motion-toggle { position: absolute; right: 8px; bottom: 0; min-width: 56px; min-height: 44px; padding: 10px 0; background: transparent; border: 0; color: #66666d; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
#motion-toggle:hover { color: #242426; }
.footer { border-top: 1px solid #e9e9eb; color: #717177; font-size: 13px; line-height: 1.5; padding-top: clamp(14px, 2.5svh, 24px); padding-bottom: clamp(14px, 2.5svh, 24px); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.american-flag { display: block; width: 29px; height: auto; opacity: .68; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 44px; padding-bottom: 28px; }
  h1 { font-size: clamp(40px, 7vw, 56px); }
  .hero-description { max-width: 600px; }
  .geometry-frame { height: clamp(300px, 52vw, 440px); }
  #geometry-fallback { font-size: clamp(6px, 1.08vw, 9px); }
}
@media (max-width: 580px) {
  .brand { gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: 25px; }
  h1 { font-size: clamp(36px, 8.5vw, 46px); }
  .hero-description { margin-top: 22px; }
  #geometry-fallback { font-size: 5.9px; }
}
@media (max-width: 350px) {
  .brand span { font-size: 23px; }
}
@media (max-width: 800px) and (max-height: 500px) and (min-aspect-ratio: 4/3) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 24px; }
  h1 { font-size: clamp(32px, 5.2vw, 42px); }
  .hero-description { margin-top: 18px; font-size: 16px; }
  .geometry-frame { height: 300px; }
  .button { min-height: 44px; padding: 12px 16px; margin-top: 20px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  #motion-toggle { display: none !important; }
}
