/* Plasma Technology
   Light "tool" surface, dark viewports for game imagery,
   and the logo's wire-and-node motif as the page's spine. */

:root {
  --paper: #e6ecee;
  --paper-2: #d9e1e4;
  --ink: #0d2433;
  --slate: #4c606c;
  --cyan: #03a2f4;
  --teal: #05e8c6;
  --deep: #0a1a26;
  --deep-2: #12293a;
  --mist: #a9bcc7;

  --plasma: linear-gradient(160deg, var(--cyan), var(--teal));
  --font: "Bricolage Grotesque", system-ui, sans-serif;

  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --gutter: clamp(2.5rem, 6vw, 5.5rem); /* space reserved for the wire */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  overflow-x: clip;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.35em;
  border: 2px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-small { padding: .6em 1em; font-size: .9375rem; }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #1a3c52; }

.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.btn-glow { background: var(--plasma); color: var(--deep); }
.btn-glow:hover { filter: brightness(1.08); }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .85rem var(--pad);
  background: var(--deep);
  color: #e3edf2;
  box-shadow: 0 1px 0 #1e3748, 0 8px 24px -16px rgb(5 14 21 / .6);
}
/* The logo's cyan-to-teal line along the bottom edge */
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(to right, var(--cyan), var(--teal));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.masthead nav { margin-left: auto; }

.nav {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}
.nav a { text-decoration: none; color: var(--mist); }
.nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: .3em; text-decoration-thickness: 2px; }

.masthead .btn-ink { background: var(--plasma); color: var(--deep); }
.masthead .btn-ink:hover { background: var(--plasma); filter: brightness(1.08); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(88vh, 820px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) var(--pad);
  overflow: visible;
}

.hero-copy { position: relative; z-index: 1; max-width: 38rem; }

.hero h1 {
  font-size: clamp(2.75rem, 6.2vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
}
.hero h1 span { display: block; }

.lede {
  margin-top: 1.75rem;
  max-width: 30rem;
  font-size: 1.3125rem;
  line-height: 1.5;
  color: var(--slate);
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.mark {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: calc(var(--pad) * -1 - 4vw);
  width: min(54vw, 760px);
  height: auto;
  transform: translateY(-50%);
}

.mark .cut, .mark .cut-dot { stroke: var(--paper); fill: var(--paper); }
.mark .cut { fill: none; }
.mark .node circle { fill: var(--paper); stroke: url(#plasma); stroke-width: 89; }

/* One orchestrated load: the mark draws itself, then the nodes land. */
.mark .d, .mark .cut {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s cubic-bezier(.6, 0, .2, 1) forwards;
}
.mark .d1 { animation-delay: .15s; }
.mark .d2 { animation-delay: .35s; }
.mark .d3 { animation-delay: .55s; animation-duration: 1.3s; }
.mark .cut { animation-delay: 1.2s; animation-duration: .6s; }
.mark .cut-dot { opacity: 0; animation: pop .35s ease-out 1.7s forwards; }

.mark .node { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.mark .n1 { animation-delay: 1.05s; }
.mark .n2 { animation-delay: .3s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); opacity: 1; } }

/* ---------- Wired sections: the logo's line and nodes as the spine ---------- */

.wired {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad) 0 calc(var(--pad) + var(--gutter));
}
.wired::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--pad) + 11px);
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--teal));
  opacity: .9;
}

.block { padding: clamp(4rem, 10vh, 7rem) 0; }
.block + .block { padding-top: 0; }

.node-h {
  position: relative;
  font-size: clamp(2.125rem, 3.8vw, 3.25rem);
}
.node-h::before {
  /* A ring on the wire, like the ones on the logo */
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--gutter) * -1);
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border: 7px solid var(--cyan);
  border-radius: 50%;
  background: var(--paper);
}
#clients .node-h::before, #news .node-h::before { border-color: #04c8dc; }

.intro {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--slate);
  font-size: 1.25rem;
}

/* ---------- Services ---------- */

.services { margin-top: 3rem; }

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem 3rem;
  padding: 2.25rem 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.service:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }

.service h3 {
  font-size: clamp(1.875rem, 3.2vw, 2.625rem);
  font-weight: 650;
}

.service p { max-width: 36rem; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
}
.tags li { display: inline-flex; align-items: center; gap: .5rem; }
.tags li::before {
  content: "";
  width: .7em;
  height: .7em;
  border: 3px solid var(--cyan);
  border-radius: 50%;
}

/* ---------- Work ---------- */

.work {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem 1.5rem;
  margin-top: 3rem;
}

.shot { margin: 0; }
.shot-feature { grid-row: span 2; }

.viewport {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--deep);
  border-radius: 8px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent);
}
.shot-feature .viewport { aspect-ratio: auto; height: calc(100% - 4.5rem); min-height: 18rem; }
.viewport img { width: 100%; height: 100%; object-fit: cover; }

.shot figcaption { display: grid; gap: .1rem; margin-top: .9rem; }
.shot strong {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}
.shot-feature strong { font-size: 2rem; }
.shot span { color: var(--slate); font-size: 1rem; }

/* ---------- Engine band ---------- */

.engine {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(4rem, 12vh, 8rem) 0 clamp(4rem, 12vh, 8rem) max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  background:
    radial-gradient(60rem 30rem at 85% 110%, color-mix(in srgb, var(--teal) 16%, transparent), transparent 70%),
    var(--deep);
  color: #e3edf2;
  overflow: hidden;
}

.engine h2 {
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
  font-weight: 700;
  background: var(--plasma);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .08em;
}
.engine p { margin: 1.5rem 0 2rem; color: var(--mist); max-width: 26rem; }

.engine-shot { margin: 0; }
.engine-shot img {
  width: 100%;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 0 0 1px #24445a, 0 40px 80px -30px #000;
}

/* Captions and lists inside the dark band */
.engine-shot figcaption { margin-top: .75rem; color: var(--mist); font-size: .9375rem; }
.engine .spec { margin: -.5rem 0 0; padding: 0; list-style: none; color: var(--mist); font-size: 1rem; }
.engine .spec li { position: relative; padding: .55rem 0 .55rem 1.5rem; border-top: 1px solid #1e3748; }
.engine .spec li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: .6rem;
  height: .6rem;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

/* ---------- Our clients (logos) ---------- */

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 4rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.partners img { width: auto; height: 56px; filter: grayscale(1) contrast(1.1); opacity: .8; transition: opacity .15s, filter .15s; }
.partners a:hover img { filter: none; opacity: 1; }

/* ---------- News ---------- */

.post {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  text-decoration: none;
}
.post img { border-radius: 8px; aspect-ratio: 3 / 1.4; object-fit: cover; }
.post h3 { font-size: 2rem; }
.post p { margin-top: .75rem; color: var(--slate); max-width: 34rem; }
.more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}
.post:hover .more { text-decoration-color: var(--ink); }

.all-posts { margin-top: 2rem; }
.all-posts a { font-weight: 600; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: .3em; }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
  padding: clamp(4rem, 12vh, 8rem) max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  background: var(--deep);
  color: #e3edf2;
}

.contact h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 700; }
.contact-copy p { margin-top: 1.5rem; color: var(--mist); max-width: 28rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }

.field label { font-size: 1rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--mist); }

.field input, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid #2d4a5e;
  border-radius: 6px;
  background: var(--deep-2);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: transparent; }
.field textarea::placeholder { color: #7890a0; }

/* ---------- Plasma Engine page ---------- */

.pe-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(3rem, 8vh, 5rem) max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
}
.pe-hero h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.pe-hero h1 span { display: block; }
.pe-hero .lede { max-width: 32rem; font-size: 1.1875rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
  padding: .35rem .85rem .35rem .6rem;
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
}
.pulse { width: .75rem; height: .75rem; border: 3px solid var(--teal); border-radius: 50%; background: var(--ink); }

.pe-hero-shot { margin: 0; }
.pe-hero-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 42% 50%;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent);
}
.pe-hero-shot figcaption { margin-top: .75rem; color: var(--slate); font-size: .9375rem; }

.intro a, .links a {
  font-weight: 600;
  color: var(--ink);
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}
.intro a:hover, .links a:hover { text-decoration-color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-top: 1.75rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(7rem, 11vw, 10rem);
  gap: .75rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}
.gallery figure { position: relative; height: 100%; margin: 0; overflow: hidden; border-radius: 8px; background: var(--deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem .9rem .7rem;
  background: linear-gradient(to top, rgb(5 14 21 / .85), transparent);
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
}
.g-a { grid-column: span 8; grid-row: span 3; }
.g-b { grid-column: span 4; grid-row: span 5; }
.g-c, .g-d { grid-column: span 4; grid-row: span 2; }
.g-e, .g-f { grid-column: span 6; grid-row: span 3; }
.g-g, .g-h, .g-i { grid-column: span 4; grid-row: span 2; }
.g-b img { object-position: 50% 30%; }

.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin: 3rem 0 0;
}
.caps div { padding: 1.25rem 0; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.caps dt { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.caps dd { margin: .4rem 0 0; color: var(--slate); font-size: 1rem; max-width: 34rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border: 5px solid var(--cyan);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
}
.steps h3 { font-size: 1.75rem; }
.steps p { margin-top: .6rem; color: var(--slate); font-size: 1rem; max-width: 22rem; }

.talk { align-items: center; }
.talk-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-self: end; }
.btn-ghost { border-color: #3b5b70; color: #e3edf2; }
.btn-ghost:hover { border-color: var(--teal); }

/* ---------- Blog ---------- */

.blog-head, .featured, .blog-empty, .pager, .rss, .article, .more-posts {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.blog-head { padding-top: clamp(3rem, 8vh, 5.5rem); padding-bottom: 2.5rem; }
.blog-head h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.not-found { min-height: 50vh; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.filters a {
  padding: .45rem .95rem;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.filters a:hover { border-color: var(--ink); }
.filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.blog-empty { padding-bottom: 6rem; color: var(--slate); }
.blog-empty a { color: var(--ink); text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: .3em; }

.meta { color: var(--slate); font-size: .9375rem; }

.no-cover {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  background:
    radial-gradient(circle at 70% 120%, color-mix(in srgb, var(--teal) 45%, transparent), transparent 60%),
    radial-gradient(circle at 10% -20%, color-mix(in srgb, var(--cyan) 40%, transparent), transparent 55%),
    var(--deep);
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}
.featured-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--deep); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured h2 { margin-top: .5rem; font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 700; }
.featured h2 a, .entry h2 a { text-decoration: none; }
.featured h2 a:hover, .entry h2 a:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; text-underline-offset: .12em; }
.featured-copy > p:not(.meta) { margin-top: 1rem; color: var(--slate); }

/* Older posts sit on the wire in date order: a real timeline */
.timeline { margin: 0; padding: 0 0 2rem; list-style: none; }
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 2.35rem;
  left: calc(var(--gutter) * -1);
  width: 22px;
  height: 22px;
  border: 6px solid var(--cyan);
  border-radius: 50%;
  background: var(--paper);
}
.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 16rem);
  align-items: start;
  gap: 1.25rem 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.entry h2 { margin-top: .35rem; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.entry p:not(.meta) { margin-top: .6rem; color: var(--slate); font-size: 1rem; max-width: 40rem; }
.entry img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-top: 1rem; padding-bottom: 1rem; color: var(--slate); font-size: 1rem; }
.pager a, .rss a, .article-back a {
  font-weight: 600;
  color: var(--ink);
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}
.rss { padding-top: 1rem; padding-bottom: 5rem; font-size: 1rem; }

/* ---------- A post ---------- */

.preview-banner {
  margin: 0;
  padding: .8rem var(--pad);
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  text-align: center;
}
.preview-banner a { color: var(--teal); }

.article { padding-top: clamp(3rem, 8vh, 5rem); padding-bottom: 4rem; }
.article-head { max-width: 46rem; }
.article-head h1 {
  margin-top: .75rem;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.article-head .tags { margin-top: 1.5rem; }
.article-head .tags a { text-decoration: none; }
.article-head .tags a:hover { text-decoration: underline; text-decoration-color: var(--cyan); }

.article-cover { margin: 2.5rem 0 0; }
.article-cover img { width: 100%; max-height: 38rem; object-fit: cover; border-radius: 10px; background: var(--deep); }

.prose { max-width: 42rem; margin-top: 2.5rem; font-size: 1.1875rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2em; font-size: 2.25rem; line-height: 1.05; }
.prose h3 { margin-top: 1.75em; font-size: 1.625rem; line-height: 1.1; }
.prose h2 + *, .prose h3 + * { margin-top: .75em; }
.prose a { font-weight: 600; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: #0389cd; }
.prose img, .prose video { display: block; width: 100%; height: auto; margin-top: 2rem; margin-bottom: 2rem; border-radius: 8px; background: var(--deep); }
.prose p:has(> img:only-child), .prose p:has(> video:only-child) { margin-top: 0; }
.prose blockquote { margin-left: 0; margin-right: 0; padding-left: 1.25rem; border-left: 4px solid var(--teal); color: var(--slate); }
.prose code { padding: .1em .35em; border-radius: 4px; background: var(--paper-2); font-size: .88em; }
.prose pre { overflow-x: auto; padding: 1.1rem 1.25rem; border-radius: 8px; background: var(--deep); color: #e3edf2; font-size: .9375rem; line-height: 1.55; }
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose hr { height: 1px; margin: 2.5rem 0; border: 0; background: color-mix(in srgb, var(--ink) 20%, transparent); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: .5rem .75rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); text-align: left; }

.article-back { margin-top: 3rem; }

.more-posts { padding-bottom: clamp(4rem, 10vh, 6rem); }
.more-posts h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.more-posts ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.more-posts a { display: grid; gap: .35rem; text-decoration: none; }
.more-posts img, .more-posts .no-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; margin-bottom: .5rem; }
.more-posts strong { font-size: 1.375rem; font-weight: 700; line-height: 1.15; }
.more-posts a:hover strong { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; }

/* Contact form states */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { color: var(--mist); font-size: 1rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: #ffb4a8; }
.field [aria-invalid="true"] { outline: 2px solid #ff8a78; outline-offset: 0; border-color: transparent; }
.form-done { align-self: center; padding: 2rem; border: 1px solid #2d4a5e; border-radius: 10px; background: var(--deep-2); }
.form-done:focus { outline: none; }
.form-done-title {
  font-size: 2rem;
  font-weight: 700;
  background: var(--plasma);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.form-done p + p { margin-top: .5rem; color: var(--mist); }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding: 2rem max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  background: var(--deep);
  border-top: 1px solid #1e3748;
  color: var(--mist);
  font-size: 1rem;
}
.footer .brand { color: #e3edf2; font-size: 1rem; }
.footer-links { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.copy { margin-left: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav { display: none; }
  .masthead .btn { margin-left: auto; }

  .hero { min-height: 0; padding-top: 2rem; padding-bottom: 4rem; }
  .mark {
    position: relative;
    top: auto;
    right: auto;
    order: -1;
    justify-self: end;
    width: min(70vw, 380px);
    margin: 0 -1rem 1.5rem 0;
    transform: none;
  }

  .service, .post, .contact { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; }
  .shot-feature { grid-row: auto; }
  .shot-feature .viewport { aspect-ratio: 16 / 9; height: auto; min-height: 0; }

  .engine { grid-template-columns: 1fr; padding-right: var(--pad); }

  .pe-hero { grid-template-columns: 1fr; padding-right: var(--pad); }
  .featured, .entry { grid-template-columns: 1fr; }
  .entry img { order: -1; }
  .more-posts ul { grid-template-columns: 1fr; }
  .pe-hero-shot img { border-radius: 8px; }
  .caps, .steps { grid-template-columns: 1fr; }
  .talk-actions { justify-self: start; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9rem; }
  .gallery li { grid-column: span 1; grid-row: span 1; }
  .gallery .g-a, .gallery .g-e { grid-column: span 2; grid-row: span 2; }
  .gallery .g-b { grid-row: span 2; }
  .engine-shot img { border-radius: 8px; }
}

@media (max-width: 560px) {
  :root { --gutter: 2.25rem; }
  .form { grid-template-columns: 1fr; }
  .node-h::before { width: 22px; height: 22px; margin-top: -11px; border-width: 6px; }
  .wired::before { left: calc(var(--pad) + 9px); }
  .copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark .d, .mark .cut { animation: none; stroke-dashoffset: 0; }
  .mark .node, .mark .cut-dot { animation: none; transform: none; opacity: 1; }
}
