/* grafals.com: system fonts only, no external requests. */
:root {
  --bg: #070a12;
  --bg2: #0c1220;
  --panel: #0f1728;
  --line: #1e2a42;
  --text: #eef2f8;
  --muted: #a3afc4;
  --red: #ff3b47;
  --blue: #4d8dff;
  --white: #ffffff;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Tight", "Helvetica Neue", "Arial Narrow", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: #000; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(100vh, 980px); min-height: min(100svh, 980px); display: flex; flex-direction: column;
  background: radial-gradient(90% 70% at 80% 10%, #13213f 0%, transparent 60%), radial-gradient(70% 60% at 0% 100%, #2a0d16 0%, transparent 60%), var(--bg); }
.stars, .trajectory { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stars svg { width: 100%; height: 100%; display: block; }
.stars .tw { animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
.trajectory { opacity: .9; }

.top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 15px/1 var(--display); letter-spacing: .28em; }
.top ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.top ul a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 600; }
.top ul a:hover { color: var(--white); }

.hero-grid { position: relative; flex: 1; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 48px; padding: 40px 0 80px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font: 600 13px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.r { background: var(--red); } .dot.w { background: var(--white); } .dot.b { background: var(--blue); margin-right: 6px; }
h1 { margin: 0; font: 900 clamp(56px, 9.5vw, 132px)/.92 var(--display); letter-spacing: -.04em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 55%, #b9c6e0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin: 22px 0 0; font: 800 clamp(26px, 3.4vw, 42px)/1.12 var(--display); letter-spacing: -.02em; }
.tagline span { color: var(--red); }
.lede { max-width: 36em; margin: 20px 0 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.lede strong { color: var(--text); }

.cta { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px;
  border: 1.5px solid #34425f; background: rgba(15, 23, 40, .7); backdrop-filter: blur(6px); transition: transform .15s, border-color .15s, background .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); border-color: var(--white); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #ff5560; border-color: #ff5560; }

.hero-art { display: flex; justify-content: center; }
.patch { width: min(400px, 100%); height: auto; filter: drop-shadow(0 30px 60px rgba(77, 141, 255, .18)); animation: float 7s ease-in-out infinite alternate; }
.patch-text { font-family: var(--display); font-weight: 800; }
@keyframes float { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-12px) rotate(2deg); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.kicker { margin: 0 0 14px; font: 600 13px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
h2 { margin: 0 0 48px; max-width: 18em; font: 850 clamp(34px, 4.6vw, 58px)/1.04 var(--display); font-weight: 800; letter-spacing: -.03em; }
h2 em { font-style: normal; color: var(--blue); }

.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project { position: relative; padding: 36px; border-radius: 20px; background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); overflow: hidden; }
.project::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; }
.project.tq::before { background: linear-gradient(90deg, var(--blue), transparent); }
.project.fb::before { background: linear-gradient(90deg, var(--red), transparent); }
.project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.pico { width: 44px; height: 44px; }
.tq .pico { color: var(--blue); } .fb .pico { color: var(--red); }
.since { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.since.dev { color: #ffc2c6; border-color: #5a2430; }
.project h3 { margin: 0 0 12px; font: 800 32px/1.1 var(--display); letter-spacing: -.02em; }
.project p { margin: 0 0 14px; color: var(--muted); }
.project .motto { color: var(--text); font-weight: 700; font-style: italic; }
.go { display: inline-block; margin-top: 8px; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.tq .go { color: #8db6ff; } .fb .go { color: #ff8a92; }
.go:hover { color: var(--white); }

.believe { position: relative; background: var(--bg2); border-block: 1px solid var(--line); padding-bottom: 0; }
.tenets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: t; }
.tenets li { counter-increment: t; padding-top: 22px; border-top: 2px solid var(--line); }
.tenets li::before { content: "0" counter(t); display: block; margin-bottom: 14px; font: 700 14px/1 var(--mono); color: var(--blue); }
.tenets h3 { margin: 0 0 10px; font: 800 22px/1.2 var(--display); letter-spacing: -.01em; }
.tenets p { margin: 0; color: var(--muted); font-size: 16px; }
.flagband { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 6px; margin-top: 90px; }
.flagband span:nth-child(1) { background: var(--red); } .flagband span:nth-child(2) { background: var(--white); } .flagband span:nth-child(3) { background: var(--blue); }
.usa { display: flex; align-items: center; justify-content: center; gap: 10px; margin-block: 0; padding: 22px 0; font: 700 14px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.usa svg { width: 16px; height: 16px; color: var(--red); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; height: 100%; padding: 26px; border-radius: 18px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-4px); border-color: var(--blue); }
.card svg { width: 34px; height: 34px; margin-bottom: 26px; }
.card .lbl { font: 800 22px/1.2 var(--display); }
.card .handle { font: 500 14px/1.4 var(--mono); color: #8db6ff; margin-top: 4px; overflow-wrap: anywhere; }
.card .blurb { margin-top: 14px; color: var(--muted); font-size: 15px; flex: 1; }
.card .arrow { margin-top: 18px; font-weight: 700; color: var(--red); }

.foot { padding: 40px 0 60px; border-top: 1px solid var(--line); color: var(--muted); }
.foot p { margin: 0 0 6px; }
.foot strong { color: var(--text); }
.foot .small { font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-art { order: -1; }
  .patch { width: min(240px, 60vw); }
  .tenets, .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .top ul { display: none; }
  .eyebrow { font-size: 11.5px; letter-spacing: .1em; }
  .trajectory { opacity: .35; }
  .projects, .tenets, .cards { grid-template-columns: 1fr; }
  .project { padding: 28px 24px; }
  .section { padding: 76px 0; }
  .btn { padding: 12px 16px; font-size: 15px; }
  .hero-grid { padding-bottom: 56px; gap: 28px; }
}
