:root {
  color-scheme: light dark;
  --paper: #eef0f3;
  --paper-2: #e1e5ec;
  --ink: #0f1b2d;
  --muted: #4b5867;
  --line: #c7ced8;
  --blue: #1f4e9c;
  --navy: #112a4c;
  --navy-night: #0b1d36;
  --on-navy: #eef3fa;
  --on-navy-muted: #b6c4d8;
  --tan: #dfae6a;
  --tan-text: #7d571c;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --wide: 70rem;
  --text-col: 36rem;
  --section: clamp(4.5rem, 12vw, 9rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1620;
    --paper-2: #141d2a;
    --ink: #e6eaf0;
    --muted: #a3aebd;
    --line: #2a3545;
    --blue: #7aa7ff;
    --tan-text: #e4b876;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .products :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--tan); }

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 800; line-height: 1.05; letter-spacing: -0.028em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 9.5vw, 5.75rem); line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.3rem, 3.4vw, 1.6rem); letter-spacing: -0.02em; }
p, ul, ol, dl { margin: 0 0 1em; }
p { text-wrap: pretty; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 30;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 0.75rem;
  min-height: 3.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand svg { flex: none; width: 26px; height: 26px; }
.nav { display: flex; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.45rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 9px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--tan);
}
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--tan); }
.button:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--tan); }
.button--line { background: transparent; color: inherit; box-shadow: none; border-color: currentColor; }
.button--line:hover { background: color-mix(in srgb, currentColor 10%, transparent); transform: none; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.hero {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(3rem, 9vw, 7rem) 0;
  overflow: hidden;
}
.hero h1 { max-width: 12ch; }
.hero .lead { color: var(--on-navy-muted); max-width: var(--text-col); font-size: clamp(1.1rem, 2.3vw, 1.3rem); margin-top: 1.5rem; }
.hero .button, .contact .button { background: var(--tan); border-color: var(--tan); color: var(--navy-night); box-shadow: 4px 4px 0 var(--navy-night); }
.hero .button:hover, .contact .button:hover { box-shadow: 2px 2px 0 var(--navy-night); }
.hero .button:active, .contact .button:active { box-shadow: 0 0 0 var(--navy-night); }
.hero .button--line { background: transparent; border-color: var(--on-navy-muted); color: var(--on-navy); box-shadow: none; }
.hero-photo {
  margin: clamp(3rem, 8vw, 5rem) calc(-1 * var(--gutter)) 0;
  aspect-ratio: 4 / 3;
  background: var(--navy-night);
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero-proof {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0;
  border-top: 1px solid color-mix(in srgb, var(--on-navy) 22%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  font-size: 0.92rem;
  color: var(--on-navy-muted);
}
.hero-proof b { color: var(--on-navy); font-weight: 700; margin-right: 0.35rem; }
@media (min-width: 60rem) {
  .hero { padding-block: clamp(4rem, 8vw, 6.5rem) 0; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
  .hero-photo { margin: 0 calc(-1 * var(--gutter)) 0 0; aspect-ratio: 4 / 5; }
  .hero-copy { padding-bottom: clamp(3rem, 6vw, 5rem); }
}

.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head p { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: var(--text-col); }

.register { text-shadow: 0 0 0 var(--tan); }

.work { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 2px solid var(--ink); scroll-margin-top: 4rem; }
.work:last-of-type { border-bottom: 2px solid var(--ink); }
.work h3 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
.work .who { color: var(--muted); max-width: var(--text-col); }
.work .photo { margin: 1.75rem 0 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.work .photo img { width: 100%; height: 100%; object-fit: cover; }
.work .detail { margin-top: 1.5rem; }
.kv { font-weight: 700; margin-bottom: 0.25rem; }
.kv + p, .kv + ul { margin-bottom: 1.5rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.7rem;
  height: 3px;
  background: var(--tan);
}
@media (min-width: 48rem) {
  .work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); }
  .work .detail { margin-top: 0.35rem; }
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; counter-reset: step; }
.steps li { position: relative; padding-top: 1rem; border-top: 2px solid var(--ink); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--tan-text);
  margin-bottom: 0.5rem;
}
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); } }

.products { background: var(--navy-night); color: var(--on-navy); }
.products .section-head p { color: var(--on-navy-muted); }
.product { display: grid; gap: 1.75rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid color-mix(in srgb, var(--on-navy) 18%, transparent); scroll-margin-top: 4rem; }
.product-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.75rem; }
.product-head img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.product-head h3 { margin: 0; font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
.product .tagline { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--tan); font-weight: 600; margin-bottom: 1rem; }
.product p, .product li { color: var(--on-navy-muted); }
.product .ticks li::before { background: var(--tan); }
.product .platforms { font-size: 0.95rem; }
.product .button--line { color: var(--on-navy); border-color: var(--on-navy-muted); }
.product .button--line:hover { background: var(--tan); border-color: var(--tan); color: var(--navy-night); }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; padding: 0; margin: 0.5rem 0 0; font-size: 0.9rem; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-navy-muted); }
.shot { position: relative; margin: 0; overflow: hidden; background: color-mix(in srgb, var(--on-navy) 8%, var(--navy-night)); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--tall { aspect-ratio: 4 / 5; max-width: 26rem; }
.shot--wide { aspect-ratio: 3 / 2; }
.shot--scene { aspect-ratio: 16 / 10; }
.shot--scene .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .tomato { position: absolute; left: 8%; bottom: 14%; width: 20%; height: auto; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.35)); }
.shot .zombie { position: absolute; right: 7%; bottom: 0; width: 13%; height: auto; }
@media (min-width: 48rem) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
  .product:nth-of-type(even) .shot { order: 2; }
  .shot--tall { justify-self: center; width: 100%; }
}

.faq { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  margin-right: 0.3rem;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 0.4rem; }
.faq details > p { color: var(--muted); max-width: var(--text-col); padding-bottom: 1.25rem; margin: 0; }
@media (min-width: 48rem) {
  .faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .faq-grid .section-head { margin-bottom: 0; }
}

.about { display: grid; gap: 2rem; }
.about .prose p { max-width: var(--text-col); font-size: clamp(1.05rem, 2vw, 1.2rem); }
.about .photo { margin: 0; }
.about .photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.about figcaption { font-size: 0.82rem; color: var(--muted); padding-top: 0.5rem; }
.about figcaption a { color: var(--muted); }
@media (min-width: 48rem) { .about { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; } }

.contact { background: var(--navy); color: var(--on-navy); }
.contact .section-head p { color: var(--on-navy-muted); }
.contact-grid { display: grid; gap: 2rem; }
.contact-grid .kv { color: var(--on-navy-muted); font-weight: 600; font-size: 0.95rem; }
.contact-grid .big { font-size: clamp(1.25rem, 4.2vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; word-break: break-all; }
.contact-grid .big a { text-decoration-color: var(--tan); text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.contact-grid .big a:hover { color: var(--tan); }
.contact-grid p, .contact-grid address { color: var(--on-navy-muted); font-style: normal; }
.contact .button { margin-top: 0.5rem; }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 5vw, 5rem); } }

.site-footer { background: var(--navy-night); color: var(--on-navy-muted); padding-block: 2.5rem 3rem; font-size: 0.95rem; }
.site-footer .brand { color: var(--on-navy); margin-bottom: 0.75rem; }
.site-footer p { max-width: 44rem; margin-bottom: 0.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--on-navy); }

.page-head { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.25rem, 7vw, 4rem); }
.wrap--narrow { max-width: calc(var(--text-col) + 8rem + 2 * var(--gutter)); }
.updated, .note, .lead { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 2.3vw, 1.3rem); max-width: var(--text-col); }
.legal { padding-bottom: var(--section); }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; letter-spacing: -0.02em; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a, .prose a, .note a, .faq a, .work a { color: var(--blue); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, .button, .nav a::after, .faq summary::after { transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), text-decoration-color 0.2s; }

  .hero h1 { animation: settle 1.3s var(--ease-out) 0.15s both; }
  .hero .lead { animation: rise 0.9s var(--ease-out) 0.55s both; }
  .hero .actions { animation: rise 0.9s var(--ease-out) 0.7s both; }
  .hero-photo { animation: unveil 1.4s var(--ease-out) 0.35s both; }
  .hero-photo img { animation: zoom-settle 2.4s var(--ease-out) 0.35s both; }
  .hero-proof { animation: rise 0.9s var(--ease-out) 1s both; }
  .tomato { animation: bob 3.2s ease-in-out infinite; }

  @supports (animation-timeline: view()) {
    .register { animation: register linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    .work, .steps li, .product, .about > *, .contact-grid > div, .faq details { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    .work .photo img, .shot--wide img, .shot--scene .scene { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .shot--tall img { animation: drift-slow linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .site-header { animation: header-line linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
  }
}

@keyframes settle {
  from { opacity: 0; transform: translate(-0.08em, 0.1em); text-shadow: 0.14em -0.14em 0 var(--tan); }
  40% { opacity: 1; }
  to { opacity: 1; transform: none; text-shadow: 0 0 0 var(--tan); }
}
@keyframes register {
  from { opacity: 0; transform: translateX(-0.06em); text-shadow: 0.12em 0.12em 0 var(--tan); }
  to { opacity: 1; transform: none; text-shadow: 0 0 0 var(--tan); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}
@keyframes unveil {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}
@keyframes zoom-settle {
  from { transform: scale(1.12); }
  to { transform: none; }
}
@keyframes drift {
  from { transform: scale(1.12) translateY(-4%); }
  to { transform: scale(1.12) translateY(4%); }
}
@keyframes drift-slow {
  from { transform: scale(1.08) translateY(-2.5%); }
  to { transform: scale(1.08) translateY(2.5%); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-9%) rotate(4deg); }
}
@keyframes header-line {
  from { border-color: transparent; }
  to { border-color: var(--line); }
}
