@font-face {
  font-family: Chakra;
  src: url("/assets/fonts/ChakraPetch-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Chakra;
  src: url("/assets/fonts/ChakraPetch-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Orbitron;
  src: url("/assets/fonts/Orbitron.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #0e081b;
  --surface: #1c1331;
  --text: #f7f4fe;
  --muted: #c2b6d2;
  --border: #3d2a5c;
  --violet: #bf88ff;
  --green: #60f58b;
  --mint: #7cdecc;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 87% 16%, #271344, var(--page) 57%);
  font: 16px/1.55 Chakra, system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2 { margin: 0; }

a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 9px 13px;
  color: var(--text);
  background: var(--surface);
  transform: translateY(-200%);
}

.skip:focus { transform: translateY(0); }

.shell {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 44px);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--page);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 20px;
  min-height: 66px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 650 15px/1.25 Orbitron, system-ui, sans-serif;
}

.brand img { flex: none; }

.project-nav {
  display: flex;
  align-items: center;
  gap: 10px 21px;
}

.project-nav a {
  display: inline-block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
}

.project-nav a:hover,
.project-nav a[aria-current="page"],
.back-link:hover { color: var(--mint); }

.home { padding-block: clamp(28px, 5.5vw, 69px) clamp(45px, 8vw, 100px); }

.hero {
  display: grid;
  grid-template-columns: 4fr 5fr;
  align-items: center;
  gap: clamp(15px, 3vw, 35px);
}

h1, h2 { font-family: Orbitron, system-ui, sans-serif; }
h1 { font-size: clamp(36px, 6.5vw, 73px); line-height: 1.03; letter-spacing: -.045em; }

.hero h1 span {
  display: block;
  margin-top: .12em;
  color: var(--violet);
  font-size: .73em;
}

.hero-lead {
  max-width: 35ch;
  margin-top: 19px;
  color: var(--muted);
  font-size: clamp(16px, 2.1vw, 20px);
}

.showcase {
  position: relative;
  aspect-ratio: 1.8;
  isolation: isolate;
}

.showcase::before {
  position: absolute;
  inset: 5% 15% 0;
  z-index: -1;
  border: 1px solid #673b9b;
  border-radius: 50%;
  box-shadow: 0 0 48px #7b4bbf2d;
  content: "";
}

.preview {
  position: absolute;
  width: min(74%, 440px);
  height: auto;
  aspect-ratio: 1.66;
  border: 1px solid #6a479b;
  border-radius: 10px;
  box-shadow: 0 17px 34px #09051285;
  object-fit: cover;
  object-position: top;
}

.preview-optimizer { top: 3%; left: 0; }
.preview-flow { right: 0; bottom: 1%; border-color: #527a79; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 34px;
}

.project {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: clamp(17px, 3vw, 25px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.project h2 { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.2; letter-spacing: -.025em; }
.project p { color: var(--muted); }

.project-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.release-status {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #49716a;
  border-radius: 99px;
  color: var(--mint);
  background: #203b3a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  margin-top: 3px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
}

.optimizer-link { color: var(--green); background: #20372b; }
.flow-link { color: var(--mint); background: #203b3a; }
.project-link:hover { border-color: currentColor; }

.flow-page { padding-block: 36px 80px; }
.back-link { gap: 9px; color: var(--text); background: var(--surface); border-color: var(--border); }

.flow-intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(25px, 5vw, 52px);
  margin-top: 25px;
}

.flow-intro h1 { margin-top: 12px; color: var(--mint); font-size: clamp(32px, 5vw, 60px); }
.flow-intro .hero-lead { max-width: 41ch; }

.flow-shot {
  display: block;
  overflow: hidden;
  border: 1px solid #634b88;
  border-radius: 10px;
  box-shadow: 0 12px 34px #09051280;
}

.flow-shot:hover { border-color: var(--mint); }
.flow-shot img { width: 100%; height: auto; }
.flow-gallery { margin-top: clamp(30px, 6vw, 66px); }
.flow-gallery h2 { margin-bottom: 15px; font-size: clamp(19px, 3vw, 26px); }

.flow-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 24px);
}

.flow-gallery figure { margin: 0; }
.flow-gallery figcaption { margin-top: 9px; color: var(--muted); }
.flow-gallery figcaption strong { display: block; color: var(--text); }
.flow-footer { margin-top: 30px; }

@media (max-width: 660px) {
  .hero, .flow-intro, .project-grid, .flow-gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 17px; }
  .showcase { width: min(100%, 460px); }
  .project-grid { margin-top: 23px; }
  .flow-page { padding-block: 24px 48px; }
}

@media (pointer: coarse) {
  .project-nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
