/* grafals.com: self-hosted Inter (OFL), no external requests. Palette kept from the 10/31 site. */
@font-face { font-family: "Inter"; src: url("/fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #0a1120;
  --panel: #121b30;
  --line: #2a3550;
  --text: #eef2f8;
  --muted: #b8c2d4;
  --faint: #b0bacb;
  --red-btn: #c41e2a;
  --red: #ff3b47;
  --blue: #4d8dff;
  --link: #8db6ff;
  --white: #ffffff;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; border-top: 3px solid var(--red); }
.subhead { text-wrap: balance; }
@media (max-width: 640px) { .dbr { display: none; } }
.lede { text-wrap: pretty; }
.foot a { white-space: nowrap; }
a { color: var(--link); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1080px, 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; }

/* header */
.site-head { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.mark { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; }
.mark:hover { color: var(--white); }
.mono-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--red-btn); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.site-head ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-head ul a { display: inline-block; padding: 12px 4px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-head ul a:hover { color: var(--white); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; padding: 104px 0 104px; }
.services { padding: 28px 32px; }
.services .label { margin-bottom: 4px; }
.services ul { list-style: none; margin: 0; padding: 0; }
.services li { display: flex; flex-direction: column; padding: 14px 0; }
.services li + li { border-top: 1px solid var(--line); }
.services b { font-weight: 600; color: var(--text); }
.services span { font-size: 15px; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--red); }
h1 { margin: 0; max-width: 15em; font-size: clamp(36px, 4.2vw, 52px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; color: var(--white); }
.subhead { max-width: 560px; margin: 20px 0 0; font-size: clamp(20px, 2vw, 24px); line-height: 1.3; font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.lede { max-width: 36em; margin: 20px 0 0; font-size: 18px; line-height: 1.65; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font-size: 16px; font-weight: 600;
  text-decoration: none; color: var(--text); border: 1px solid #7a89a8; background: rgba(255,255,255,.03); transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--text); background: rgba(255,255,255,.07); color: var(--white); }
.btn.primary { background: var(--red-btn); border-color: var(--red-btn); color: #fff; }
.btn.primary:hover { background: #e62a36; border-color: #e62a36; }


.contact { margin: 0; padding: 4px 32px; }
.contact div { padding: 18px 0; }
.contact div + div { border-top: 1px solid var(--line); }
.contact dt { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.contact dd { margin: 4px 0 0; font-size: 17px; color: var(--text); }
.contact dd a { font-weight: 600; }
.go::after { content: " ↗"; text-decoration: none; display: inline-block; margin-left: 4px; }

/* sections */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 40px; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: var(--white); }
.label { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }

.card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project { display: flex; flex-direction: column; padding: 32px; }
.project h3 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.015em; }
.meta { margin: 6px 0 16px; font-size: 14px; font-weight: 500; color: var(--faint); }
.project p.desc { margin: 0 0 24px; color: var(--muted); flex: 1; }
.fineprint { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--faint); }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.about-body { padding-right: 8px; }
.about-body p { margin: 0 0 18px; color: var(--muted); }
.about-body p:last-child { margin-bottom: 0; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.principles li { padding-left: 20px; border-left: 2px solid var(--red); color: var(--muted); }
.principles strong { display: block; color: var(--text); font-weight: 600; }

.link-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li + li { border-top: 1px solid var(--line); }
.lnk { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 14px 32px; text-decoration: none; transition: background .15s; }
.lnk:hover { background: #18233c; }
.lnk span { display: flex; flex-direction: column; min-width: 0; }
.lnk b { font-weight: 600; font-size: 16px; color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lnk b::after { content: " ↗"; display: inline-block; margin-left: 4px; text-decoration: none; }
.lnk:hover b { color: var(--white); }
.lnk { justify-content: flex-start; }
.lnk small { font-size: 14px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }

.foot { border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 24px; flex-wrap: wrap; padding: 32px 0 calc(56px + env(safe-area-inset-bottom)); }
.foot p, .foot ul { margin: 0; }
.foot ul { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; }
.foot li + li::before { content: "·"; padding: 0 10px; }
@media (max-width: 480px) { .foot ul { flex-direction: column; } .foot li + li::before { content: none; } }
.foot a { font-weight: 500; }

/* 404 */
.notfound { padding: 120px 0; }
.notfound p { color: var(--muted); }

@media (max-width: 900px) {
  .about, .hero { grid-template-columns: 1fr; gap: 32px; }
  .about-body { padding-right: 0; }
  .hero .contact { margin-top: 0; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .site-head ul { gap: 14px; }
  .hero { padding: 48px 0 56px; }
  .contact { padding: 4px 24px; }
  .lnk { padding: 14px 24px; }
  .mark { font-size: 15px; gap: 10px; }
  .site-head ul a { font-size: 14px; }
  h1 { font-size: clamp(44px, 12.5vw, 64px); }
  .actions .btn { flex: 1 1 100%; }
  .projects, .link-groups { grid-template-columns: 1fr; }
  .project { padding: 20px; }
  .services { padding: 20px; }
  .principles { padding: 4px 24px; }
  .lnk { padding: 16px 24px; }
  .section { padding: 56px 0; }
  h2 { margin-bottom: 28px; }
}
.project p.desc, .about-body p { text-wrap: pretty; }
.foot a { color: inherit; }
@media (max-width: 640px) { .foot-in { flex-direction: column; } }
