:root {
  color-scheme: dark;
  --bg: #080c19;
  --panel: #101728;
  --ink: #f2f5ff;
  --muted: #b6c0d9;
  --subtle: #a3b2d6;
  --line: #2b3656;
  --accent: #9cb2ff;
  --button: #c7d4ff;
  --button-ink: #101a3a;
  --curve: 16px;
  --display: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
section[id], [id="services"] { scroll-margin-top: 1.5rem; }

.wrap { width: min(100% - clamp(2rem, 9vw, 9rem), 1260px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip { position: fixed; z-index: 10; top: .75rem; left: .75rem; background: var(--button); color: var(--button-ink); padding: .65rem 1rem; }
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 74px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: .96rem;
  font-weight: 800;
  letter-spacing: .105em;
  white-space: nowrap;
  line-height: 1.1;
}
.wordmark small { display: block; color: var(--muted); font-size: .63rem; letter-spacing: .19em; }
.bolt {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: var(--accent);
  clip-path: polygon(56% 0, 13% 56%, 43% 56%, 35% 100%, 86% 36%, 54% 36%, 64% 0);
}
nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.55rem, 3.4vw, 2.5rem); }
nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 650; font-size: .9rem; color: var(--muted); }
nav a:hover, .site-footer a:hover { color: var(--accent); }
.nav-contact { padding-inline: .95rem; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #080c19; border-bottom: 1px solid var(--line); }
.hero-visual { position: absolute; z-index: -1; inset: 0 0 0 27%; background: radial-gradient(ellipse at 69% 50%, #182858, #080c19 72%); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 63% 50%; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #080c19, transparent 42%), linear-gradient(0deg, #080c19 0%, transparent 25%, transparent 80%, #080c19 100%); }
.hero-inner { min-height: clamp(500px, 43vw, 670px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 4rem; }
.eyebrow { margin: 0; color: var(--accent); font: 650 .79rem/1.35 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.studio-label { display: flex; align-items: center; gap: .65rem; }
.studio-label::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1; letter-spacing: -.055em; text-wrap: balance; }
h1 { margin: 1.1rem 0 1.25rem; font-size: clamp(3.45rem, 8.3vw, 8.15rem); font-weight: 800; line-height: .92; }
h1 em { color: var(--accent); font-style: normal; }
.hero-intro { max-width: 36ch; margin: 0 0 1.7rem; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.22rem); line-height: 1.62; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 720;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.primary { background: var(--button); color: var(--button-ink); }
.primary:hover { background: #e6ecff; }
.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.secondary:hover { border-color: var(--accent); }
button:disabled { cursor: wait; opacity: .66; }

.work { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.2rem; margin-bottom: 1.7rem; }
h2 { margin-top: .5rem; font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 780; }
.theater-entry { margin: .62rem 0 0; color: var(--accent); }
.theater-entry a { text-underline-offset: 4px; }
.filter { display: flex; flex-wrap: wrap; gap: .35rem; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.filter button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 42px;
  padding: .45rem .82rem;
  font-size: .9rem;
  font-weight: 650;
  color: var(--muted);
}
.filter button:hover { color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--button); color: var(--button-ink); }
.feature-grid, .project-grid { display: grid; gap: 1rem; }
.feature-grid { grid-template-columns: 1fr 1fr; }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid + .project-grid { margin-top: 1rem; }
.feature-grid[hidden] + .project-grid { margin-top: 0; }

.feature, .project {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--curve);
  background: var(--panel);
}
.feature:has(a:hover), .project:has(a:hover) { border-color: var(--accent); }
.feature:focus-within, .project:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.feature a, .project a { text-decoration: none; }
.feature a::after, .project a::after { content: ""; position: absolute; inset: 0; }
.feature a:focus-visible, .project a:focus-visible { outline: none; }
.feature-art, .project-art { position: relative; overflow: hidden; isolation: isolate; }
.feature-art img, .project-art img { width: 100%; height: 100%; object-fit: cover; }
.feature-art { min-height: 180px; aspect-ratio: 2.25; background: #10254a; }
.feature-art img { position: absolute; inset: 0; object-position: 50% 55%; }
.feature-body, .project-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1.1rem, 2.3vw, 1.7rem); }
.feature-body h3, .project-body h3 { margin: .42rem 0 .5rem; font-size: clamp(1.8rem, 3.7vw, 3.2rem); font-weight: 780; }
.feature-body p:not(.eyebrow), .project-body p:not(.eyebrow), .personhood p:not(.eyebrow) {
  margin: 0 0 .85rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.domain { margin-top: auto; padding-top: .28rem; color: var(--accent); font-family: var(--mono); font-size: .82rem; overflow-wrap: anywhere; }
.feature a:hover, .project a:hover { color: var(--accent); }

#voltaic-cloud { scroll-margin-top: 1.25rem; }
.preview-controls ~ main #voltaic-cloud { scroll-margin-top: 7rem; }
#voltaic-cloud:target { border-color: var(--accent); }
.cloud-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  padding: 0;
  margin: 0 0 .85rem;
}
.cloud-tools li {
  padding: .35rem .55rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: .875rem;
}

.cloud-art {
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, #a2b7ff21 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, #a2b7ff21 22px 23px),
    radial-gradient(ellipse at 50% 60%, #3156d2, #102661 55%, #0b193d);
}
.cloud-art i {
  position: absolute;
  display: block;
  width: 25%;
  aspect-ratio: 1;
  left: 50%;
  top: calc(37% + var(--offset));
  transform: translate(-50%, -50%) rotateX(57deg) rotateZ(-45deg);
  border: 1px solid #cdf0ffad;
  background: #315ee659;
  box-shadow: 0 0 25px #739eff66, inset 0 0 18px #7594ff4f;
  border-radius: 13%;
}
.cloud-art i:nth-child(1) { --offset: 27%; }
.cloud-art i:nth-child(2) { --offset: 13%; }
.cloud-art i:nth-child(3) { --offset: -1%; }
.cloud-art i:nth-child(4) { --offset: -15%; background: #7194ef9c; }

.project-art { height: clamp(105px, 12vw, 165px); background: #17223b; }
.project-art img { object-position: center; }
.project-body h3 { font-size: clamp(1.65rem, 2.7vw, 2.25rem); }

.geology {
  background: repeating-linear-gradient(169deg, #15191e 0 6px, #292a2f 6px 8px, #191b20 8px 13px, #625143 13px 14px, #22232a 14px 20px);
}
.geology::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 73% 0%, #dcac6480, transparent 55%), linear-gradient(110deg, #0c0d14b8, transparent); }
.poker-art { display: grid; place-content: center; grid-auto-flow: column; background: radial-gradient(ellipse at 50% 112%, #3b7756, #12372b 72%); }
.poker-art span {
  display: grid;
  place-content: center;
  width: clamp(53px, 6vw, 78px);
  aspect-ratio: 5 / 7;
  border-radius: 8px;
  margin-inline: -.14rem;
  color: #191e28;
  background: #f3efdd;
  box-shadow: 0 6px 18px #071912a0;
  transform: rotate(-17deg);
  font: 2.7rem/1 Georgia, serif;
}
.poker-art span + span { color: #9f2d45; transform: rotate(13deg) translateY(10%); }
.manga-art { background: radial-gradient(#f3e1f3 1px, transparent 1.7px) 0 0 / 6px 6px, #a677c6; }
.manga-art::before, .manga-art::after { content: ""; position: absolute; inset: 10% 11%; background: #301a52; clip-path: polygon(0 14%, 52% 0, 43% 80%, 0 100%, 0 14%, 62% 0, 100% 3%, 100% 63%, 52% 83%, 62% 0); }
.manga-art::before { transform: translate(-5%, 4%); background: #f8dbf1; }
.manga-art::after { background: repeating-conic-gradient(from 0deg at 56% 65%, #1b1532 0deg 6deg, #614088 6deg 9deg, #352253 9deg 13deg); }
.news-art { display: grid; place-content: center; background: repeating-linear-gradient(0deg, transparent 0 17px, #17324424 17px 18px), #d5e0e5; color: #172536; }
.news-art span { font: 800 clamp(2.2rem, 4.2vw, 3.4rem)/.83 Georgia, serif; letter-spacing: -.065em; transform: rotate(-5deg); }
.meter-art { background: #14182b; display: grid; place-content: center; grid-template-columns: repeat(4, clamp(23px, 4vw, 52px)); gap: 6px; }
.meter-art span { height: clamp(65px, 8vw, 111px); border: 1px solid #ffffff40; padding: 4px; border-radius: 6px; display: grid; align-items: end; }
.meter-art span::after { content: ""; border-radius: 3px; height: var(--fill); background: currentColor; box-shadow: 0 0 12px color-mix(in srgb, currentColor, transparent 55%); }
.meter-art span:nth-child(1) { --fill: 70%; color: #ecae57; }
.meter-art span:nth-child(2) { --fill: 88%; color: #5ebaf6; }
.meter-art span:nth-child(3) { --fill: 56%; color: #ac8df1; }
.meter-art span:nth-child(4) { --fill: 77%; color: #81dabb; }

.personhood {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 274px;
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--curve);
  margin-top: 1rem;
  background: radial-gradient(ellipse at 83% 100%, #2b3259, #141b32 59%);
}
.personhood-copy { max-width: 57%; padding: clamp(1.4rem, 4.8vw, 4rem); }
.personhood h3 { font-size: clamp(2.5rem, 6vw, 5.7rem); margin-block: .6rem .8rem; }
.personhood p:not(.eyebrow) { max-width: 39ch; margin: 0; }
.identity-art { position: absolute; z-index: -1; inset: 0 0 0 45%; overflow: hidden; }
.identity-art i {
  position: absolute;
  top: 50%;
  left: 58%;
  transform: translate(-50%, -50%) rotate(var(--angle));
  height: 167%;
  aspect-ratio: .35;
  border-radius: 50%;
  border: 1px solid #94abfd7a;
  box-shadow: inset 0 0 21px #5373eb2e, 0 0 29px #5373eb30;
}
.identity-art i:nth-child(1) { --angle: 35deg; }
.identity-art i:nth-child(2) { --angle: -35deg; }
.identity-art i:nth-child(3) { --angle: 90deg; height: 140%; }

.studio { background: var(--panel); border-block: 1px solid var(--line); padding-block: clamp(2.5rem, 5.5vw, 5.3rem); }
.studio-grid, .contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; gap: clamp(1.5rem, 6vw, 6rem); }
.studio-copy > p, .contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; line-height: 1.65; margin: .35rem 0 1rem; max-width: 46ch; }
.services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.services li { border: 1px solid var(--line); color: var(--muted); padding: .5rem .66rem; border-radius: 6px; font-size: .9rem; }
.contact { padding-block: clamp(3rem, 7vw, 7rem); }
.contact-copy h2 { margin-bottom: 1rem; }
.contact-email { display: block; color: var(--accent); margin-block: 0 1.15rem; overflow-wrap: anywhere; text-underline-offset: 3px; }
form { display: grid; gap: .85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
form label { display: grid; gap: .35rem; min-width: 0; color: var(--muted); font-size: .9rem; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); padding: .65rem .8rem; font-size: 1rem; font-weight: 400; }
select { appearance: none; padding-inline-end: 2.25rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; }
.form-action { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
#form-status { font-size: .9rem; color: var(--muted); margin: 0; }
#form-status[data-state="error"] { color: #ffb4b4; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 95px; color: var(--muted); font-size: .875rem; }
.footer-inner > a:last-child { text-underline-offset: 3px; }

@media (max-width: 800px) {
  .hero-visual { left: 10%; opacity: .69; }
  .hero-visual::after { background: linear-gradient(90deg, #080c19, #080c1966 61%, transparent), linear-gradient(0deg, #080c19 0%, transparent 25%, transparent 80%, #080c19 100%); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-grid, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .header-inner { min-height: 65px; gap: .5rem; }
  .wordmark { font-size: .83rem; gap: .35rem; }
  .wordmark small { font-size: .55rem; }
  .bolt { width: 25px; height: 25px; flex-basis: 25px; }
  nav a { padding-inline: .2rem; }
  .nav-contact { padding-inline: .43rem; }
  h1 { font-size: clamp(2.16rem, 12.4vw, 3.2rem); }
  .hero-inner { min-height: 515px; padding-top: 12rem; padding-bottom: 3rem; justify-content: flex-end; }
  .hero-visual { inset: 0 0 27% 0; opacity: .87; }
  .hero-visual img { object-position: 66% 50%; }
  .hero-visual::after { background: linear-gradient(0deg, #080c19 1%, transparent 65%); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .feature-grid, .project-grid { grid-template-columns: 1fr; }
  .project-art { height: 138px; }
  .meter-art span { height: 96px; }
  .personhood-copy { max-width: 84%; }
  .identity-art { left: 32%; opacity: .55; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; padding-block: 1rem; }
  .footer-inner p { order: 3; flex-basis: 100%; margin: 0; }
}
@media (max-width: 355px) {
  .wrap { width: calc(100% - 1.5rem); }
  .filter button { padding-inline: .52rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
