@font-face {
  font-family: Inter;
  src: url("../assets/fonts/inter-regular.ttf") format("truetype");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../assets/fonts/inter-bold.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
body {
  isolation: isolate;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 Inter,
    Arial,
    sans-serif;
  transition:
    background-color 0.3s,
    color 0.3s;
}
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}
body,
button,
input,
textarea {
  font-family: Inter, Arial, sans-serif;
}
button,
input,
textarea {
  font-size: 1rem;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
canvas {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}
h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}
h3 {
  font-size: 1.55rem;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(1280px, calc(100% - 112px));
  margin-inline: auto;
}
.eyebrow {
  font:
    600 0.75rem/1.5 Inter,
    sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 54px;
  padding: 15px 23px;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  border-radius: 100px;
  line-height: 1.5;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  transform: translateY(-3px);
}
.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.button-outline {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}
.button-outline:hover {
  background: var(--surface);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.875rem;
}
.text-link:hover {
  color: var(--accent);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus {
  top: 16px;
}
.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;
}
.section {
  padding: 100px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 42px;
}
.section-head .eyebrow {
  margin-bottom: 18px;
}
.section-head > p {
  max-width: 350px;
  color: var(--muted);
}
.page-intro {
  padding: 80px 0 62px;
}
.page-intro .eyebrow {
  margin-bottom: 25px;
}
.page-intro > p:last-child {
  max-width: 630px;
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 26px;
}
.page-intro h1 span {
  color: var(--accent);
}
.inline-tag {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  border: 1px solid var(--line);
  padding: 6px 11px;
  border-radius: 30px;
  color: var(--muted);
}
/* Shared navigation, centered independently of the side items. */
.site-header {
  position: relative;
  z-index: 50;
  padding: 25px 0;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
}
.wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  width: max-content;
}
.wordmark span {
  color: var(--accent);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 100px;
  box-shadow: 0 8px 30px var(--shadow);
}
.main-nav a {
  padding: 9px 15px;
  border-radius: 25px;
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}
.main-nav a:hover {
  color: var(--text);
}
.main-nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-picker {
  position: relative;
}
.theme-picker summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.75rem;
  list-style: none;
  background: var(--glass);
}
.theme-picker summary::-webkit-details-marker {
  display: none;
}
.theme-picker summary .icon {
  width: 18px;
  height: 18px;
}
.theme-menu {
  position: absolute;
  right: 0;
  top: 56px;
  width: 184px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: 0 16px 45px var(--shadow);
  padding: 12px;
  border-radius: 16px;
}
.theme-menu fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.theme-menu label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  cursor: pointer;
  font-size: 0.875rem;
  border-radius: 8px;
}
.theme-menu label:hover {
  background: var(--glow);
}
.theme-menu input {
  accent-color: var(--accent);
}
.theme-swatch {
  width: 11px;
  height: 11px;
  border: 1px solid #8888;
  border-radius: 50%;
  margin-left: auto;
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding: 42px 0 25px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.footer-top > p {
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  gap: 24px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-nav a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}
.footer-bottom > a {
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer-bottom .icon {
  width: 15px;
  height: 15px;
}
.noscript-message {
  padding: 16px;
  background: var(--surface);
  color: var(--text);
}
/* Small entrance, no scrolling tied to animation. */
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 1100px) {
  .shell {
    width: calc(100% - 64px);
  }
  .header-inner {
    gap: 18px;
  }
  .main-nav a {
    padding: 9px 11px;
  }
  .theme-name {
    display: none;
  }
  .footer-top {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 40px);
  }
  .site-header {
    padding: 18px 0;
  }
  .header-inner {
    display: flex;
    justify-content: space-between;
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 80px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 12px;
    background: var(--surface-solid);
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    padding: 13px 17px;
    font-size: 0.9375rem;
  }
  .menu-toggle {
    display: flex;
  }
  .theme-picker summary {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
  }
  .theme-menu {
    right: 0;
  }
  .section {
    padding: 65px 0;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
  }
  .page-intro {
    padding: 48px 0 40px;
  }
  .page-intro > p:last-child {
    font-size: 1rem;
  }
  .footer-top {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 14px 22px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
  .site-footer {
    margin-top: 40px;
  }
  h1 {
    font-size: clamp(2.6rem, 10vw, 4.5rem);
  }
}
/* Keep the frame in place while the selected portrait loads. */
@media (pointer: coarse) {
  body {
    touch-action: pan-y pinch-zoom;
  }
}
.theme-enabled [data-theme-portrait]:not([data-portrait-ready]) {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
