:root {
  --bg: #111111;
  --card: #161616;
  --ink: #F2F1F4;
  --soft: #A9A6AE;
  --dim: #6E6B73;
  --line: #2A2A2C;
  --accent: #8E5BF0;
  --accent-soft: #B595F2;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(18px, 5vw, 60px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 1px solid var(--accent-soft); outline-offset: 4px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.045em; line-height: .9; margin: 0; }

/* Hover-roll text (menu, mono links) */
.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
.roll > span { display: block; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.roll > span + span { position: absolute; left: 0; top: 100%; }
a:hover .roll > span, button:hover .roll > span { transform: translateY(-100%); }

/* Nav */
nav.site { position: fixed; inset: 0 0 auto 0; z-index: 60; mix-blend-mode: difference; color: #fff; }
nav.site .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 82px; }
nav.site .brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; }
nav.site .brand img { width: 26px; height: 26px; filter: brightness(0) invert(1); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
nav.site .brand:hover img { transform: rotate(-60deg); }
nav.site .brand sup { font-size: 9px; }
nav.site .menu { display: flex; gap: clamp(28px, 6vw, 80px); list-style: none; margin: 0; padding: 0; }
nav.site .menu a { opacity: .9; }
nav.site .menu a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
nav.site .talk { justify-self: end; }
nav.site .burger { display: none; justify-self: end; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px 0; }
.mnav { display: none; }
@media (max-width: 760px) {
  nav.site .wrap { grid-template-columns: 1fr auto; height: 68px; }
  nav.site .menu, nav.site .talk { display: none; }
  nav.site .burger { display: block; }
  .mnav { position: fixed; inset: 0; z-index: 55; background: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--pad); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .mnav.open { opacity: 1; visibility: visible; }
  .mnav a { font-size: clamp(48px, 15vw, 84px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
  .mnav a[aria-current="page"] { color: var(--accent-soft); }
  .mnav .mono { margin-top: 32px; color: var(--soft); }
}

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: #222224; color: var(--soft); transition: background .3s, color .3s; border: 0; cursor: pointer; }
.pill:hover { background: var(--ink); color: var(--bg); }
.pill.solid { background: var(--ink); color: var(--bg); }
.pill.solid:hover { background: var(--accent); color: #fff; }

/* Reveal */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* Inner page header */
.phead { padding: 170px 0 clamp(48px, 7vw, 100px); }
.phead .mono { color: var(--dim); margin-bottom: 22px; display: block; }
.phead h1 { font-size: clamp(64px, 13vw, 200px); }
.phead p { margin: 28px 0 0; max-width: 34ch; font-size: clamp(20px, 2vw, 26px); color: var(--soft); line-height: 1.35; }
.phead p b { color: var(--ink); font-weight: 500; }

/* Footer */
footer.site { padding: clamp(80px, 12vw, 160px) 0 28px; }
footer.site .cols { display: grid; grid-template-columns: 190px 1fr auto; gap: 40px; }
footer.site .cols .mono { color: var(--dim); display: block; margin-bottom: 18px; }
footer.site .cols ul { list-style: none; margin: 0; padding: 0; font-size: 21px; line-height: 1.45; }
footer.site .cols a { color: var(--soft); transition: color .25s; }
footer.site .cols a:hover { color: var(--ink); }
footer.site .menucol { display: grid; grid-template-columns: 190px 190px; }
footer.site .huge { font-size: clamp(64px, 15.6vw, 236px); font-weight: 600; letter-spacing: -.05em; line-height: .78; margin: clamp(40px, 6vw, 72px) 0 26px; white-space: nowrap; }
footer.site .base { display: flex; justify-content: space-between; align-items: center; color: var(--dim); }
footer.site .base a:hover { color: var(--ink); }
@media (max-width: 860px) {
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  footer.site .menucol { grid-template-columns: 1fr; gap: 40px; }
  footer.site .cols .contactcol { grid-column: 1 / -1; }
}

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 10px; }
.form label > .mono { color: var(--dim); font-size: 12px; }
.form input, .form select, .form textarea { font: inherit; font-size: 20px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0 12px; width: 100%; transition: border-color .25s; -webkit-appearance: none; appearance: none; }
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 6px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 28px; }
.form select option { background: var(--card); color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #4D4B51; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--dim); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form input[type="date"] { color-scheme: dark; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.form .status { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.form .status.ok { color: #7CD39A; }
.form .status.err { color: #F2867E; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}