:root {
  color-scheme: dark;
  --bg: #0c1017;
  --panel: #141d29;
  --text: #f4f7fb;
  --muted: #b5c3d3;
  --blue: #87c7ff;
  --line: #35475b;
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(100% - 3rem, 1200px); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); z-index: 2; background: var(--bg); padding: .75rem; }
.skip:focus { transform: none; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header { padding-block: .75rem; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 76px; filter: brightness(0) invert(1); }
nav { display: flex; flex-wrap: wrap; gap: clamp(.65rem, 3vw, 2.5rem); }
nav a, .footer a { text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.hero { position: relative; isolation: isolate; border-block: 1px solid var(--line); background: radial-gradient(ellipse at 82% 55%, #234c72, transparent 58%), linear-gradient(145deg, #0b111b, #101f33); }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 1rem; min-height: min(680px, 82svh); padding-block: 3rem 1rem; }
.label, .number { color: var(--blue); font: 700 .78rem/1.5 ui-monospace, monospace; letter-spacing: .15em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.065em; line-height: .98; margin-bottom: 1.5rem; }
h1 { font-size: clamp(3rem, 8.5vw, 8rem); }
h1 em { color: var(--blue); font-style: normal; }
h2 { font-size: clamp(2.75rem, 6.5vw, 6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.8rem); line-height: 1.15; }
p { color: var(--muted); line-height: 1.65; }
.intro { max-width: 33rem; font-size: clamp(1rem, 2vw, 1.35rem); }
.mascot { width: min(100%, 320px); align-self: end; justify-self: end; transform: translate(min(8vw, max(0px, (100vw - 1200px) / 2 - 1.5rem)), 3.5rem); filter: drop-shadow(0 0 7px rgb(255 255 255 / 32%)); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.button { display: inline-flex; color: #0a1724; background: var(--blue); padding: .9rem 1.15rem; font-weight: 750; text-decoration: none; }
.button:hover { background: #c0e2ff; }
.secondary { text-underline-offset: .25em; }
.section { padding-block: clamp(3.5rem, 9vw, 8rem); }
.services, ol { display: grid; gap: 1rem; margin: 2.5rem 0 0; }
.services { grid-template-columns: repeat(3, 1fr); }
.services { --card-padding: clamp(1rem, 2.7vw, 2.25rem); }
.services article { border-top: 3px solid var(--blue); background: var(--panel); padding: var(--card-padding); }
.number { display: block; margin-bottom: 2rem; }
article p, li p { margin-bottom: 0; }
.workflow { background: var(--panel); }
ol { grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; counter-reset: steps; }
li { counter-increment: steps; border-top: 1px solid var(--line); padding: 1.25rem .5rem 0 0; }
li::before { content: counter(steps, decimal-leading-zero); color: var(--blue); display: block; font-family: monospace; margin-bottom: 1rem; }
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem 3rem; }
address { font-style: normal; display: grid; align-content: center; gap: .5rem; }
address a { color: var(--blue); font-size: clamp(1.2rem, 3vw, 2rem); overflow-wrap: anywhere; }
address p { margin: .5rem 0 0; }
.footer { border-top: 1px solid var(--line); padding-block: 1.5rem; font-size: .875rem; color: var(--muted); }
@media (max-width: 700px) {
  .hero-grid, .services, .contact { grid-template-columns: 1fr; }
  .mascot { width: min(55%, 230px); transform: translateY(2.75rem); }
  ol { grid-template-columns: repeat(2, 1fr); }
  nav { font-size: .875rem; }
}
@media (max-width: 350px) {
  .wrap { width: calc(100% - 2rem); }
  .header { align-items: flex-start; }
  .brand img { width: 55px; }
}

.hero-video, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-video { object-fit: cover; object-position: center; }
.hero::after { content: ""; background: linear-gradient(90deg, #080e19e8, #0c172872); pointer-events: none; }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(#080e19e8, #0c172882); }
}

.service-photo {
  margin: calc(-1 * var(--card-padding)) calc(-1 * var(--card-padding)) 1.5rem;
}
.service-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

@media (hover: hover) and (pointer: fine) {
  .service-photo img, .detail-intro img {
    filter: grayscale(.85) sepia(.18) hue-rotate(165deg) saturate(1.2);
  }

  .services article:hover .service-photo img, .detail-intro img:hover {
    filter: none;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service-photo img, .detail-intro img {
    transition: filter .3s ease;
  }
}

.legal-copy { max-width: 68ch; overflow-wrap: anywhere; }
.footer nav { justify-content: flex-end; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  box-shadow: 0 1px var(--line);
}
.skip { z-index: 6; }
html { scroll-padding-top: 7rem; }
.service-link { display: inline-block; margin-top: 1rem; color: var(--blue); }
.detail-intro, .detail-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.detail-intro h1 { font-size: clamp(2.6rem, 5vw, 5.5rem); }
.detail-intro img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.detail-sections { align-items: start; margin-top: clamp(3rem, 8vw, 6rem); }
.detail-sections section { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.detail-sections h2 { font-size: clamp(1.65rem, 3.2vw, 2.75rem); }
.detail-links { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem; color: var(--blue); }

@media (max-width: 700px) {
  .detail-intro, .detail-sections { grid-template-columns: 1fr; }
}

.header nav { justify-content: flex-end; gap: .5rem clamp(.65rem, 2vw, 1.5rem); }
.header a[aria-current="page"] { color: var(--blue); }
@media (max-width: 500px) {
  html { scroll-padding-top: 10rem; }
}

.color-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  margin-block: 2.5rem;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.color-panel h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
.color-fan {
  display: grid;
  place-items: center;
  min-height: 16rem;
}
.color-fan span {
  grid-area: 1 / 1;
  width: clamp(2.7rem, 6vw, 4.1rem);
  height: 13rem;
  border: 4px solid #f6f1e7;
  border-radius: .55rem;
  background: linear-gradient(to bottom, var(--swatch) 86%, #f6f1e7 86%);
  box-shadow: 0 .35rem .85rem #0005;
  transform-origin: center 92%;
  transform: rotate(var(--angle));
}
.color-fan span:nth-child(1) { --swatch: #628eb2; --angle: -47deg; }
.color-fan span:nth-child(2) { --swatch: #84a18e; --angle: -24deg; }
.color-fan span:nth-child(3) { --swatch: #e2c499; --angle: 0deg; }
.color-fan span:nth-child(4) { --swatch: #c7775d; --angle: 24deg; }
.color-fan span:nth-child(5) { --swatch: #ae8494; --angle: 47deg; }

@media (max-width: 700px) {
  .color-panel { grid-template-columns: 1fr; }
}

.build-sample { margin: 0; }
.sample-shapes {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: clamp(7rem, 17vw, 12rem);
  margin-bottom: 1rem;
}
.sample-shapes span { border: 1px solid #ffffff45; }
.layer-sample .sample-shapes span:nth-child(1) {
  width: 33%;
  background: repeating-linear-gradient(0deg, #87554a 0 16px, #b17b6d 16px 18px);
}
.layer-sample .sample-shapes span:nth-child(2) {
  width: 32%;
  background: repeating-linear-gradient(135deg, #e4c078 0 8px, #f1d496 8px 16px);
}
.layer-sample .sample-shapes span:nth-child(3) { width: 14%; background: #ece9df; }
.frame-sample .sample-shapes span:first-child {
  width: 58%;
  border: .5rem solid #91b1ca;
  background: repeating-linear-gradient(90deg, #203344 0 25%, #91b1ca 25% 29%);
}
.frame-sample .sample-shapes span:last-child { width: 25%; background: #e6decb; }
.build-sample ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}
.build-sample li { border: 0; padding: 0; }
.build-sample li::before { content: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.menu-toggle[hidden], #main-nav[hidden] { display: none; }
.menu-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.menu-icon {
  width: 1.25rem;
  height: .9rem;
  border-block: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
@media (max-width: 700px) {
  .header { align-items: center; }
  .menu-toggle:not([hidden]) + #main-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: .5rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .menu-toggle:not([hidden]) + #main-nav[hidden] { display: none; }
  .menu-toggle:not([hidden]) + #main-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 1rem;
  }
}
