:root {
  --ink: #101010;
  --paper: #f7f8f4;
  --white: #ffffff;
  --sakura: #ff365d;
  --sakura-deep: #c90034;
  --cyan: #20d6ff;
  --lime: #b8ff46;
  --jade: #1f8f74;
  --line: rgba(16, 16, 16, 0.14);
  --muted: #5d5d5d;
  --shadow: 0 24px 70px rgba(16, 16, 16, 0.22);
  --display: Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 16, 16, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(255, 54, 93, 0.1) 0 2px, transparent 2px 19px),
    linear-gradient(45deg, rgba(32, 214, 255, 0.08) 0 1px, transparent 1px 23px);
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(16, 16, 16, 0.22);
  background: rgba(247, 248, 244, 0.86);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: box-shadow 200ms ease, background 200ms ease, top 200ms ease;
}

.topbar.is-elevated {
  top: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(16, 16, 16, 0.12);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 212px;
}

.brand-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-weight: 900;
}

.brand-name {
  font-size: 0.85rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: rgba(16, 16, 16, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--sakura);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-action,
.button,
.filter-button,
.icon-button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  background: var(--lime);
  font-size: 0.8rem;
  font-weight: 800;
}

.nav-action svg,
.button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.nav-action strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--white);
}

.menu-toggle {
  display: none;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 28px;
  align-items: center;
  min-height: 94svh;
  padding: 118px max(24px, calc((100vw - 1180px) / 2)) 52px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.stage-label {
  margin: 0;
  color: var(--sakura-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  font-family: var(--display);
  font-size: clamp(4.1rem, 11vw, 10.4rem);
  line-height: 0.82;
  text-wrap: balance;
}

.hero-copy h1 span {
  display: inline;
}

.hero-copy h1 span:first-child {
  display: block;
}

.hero-lede {
  width: min(590px, 100%);
  margin: 0 0 28px;
  color: rgba(16, 16, 16, 0.76);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 7px 7px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
}

.hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 610px;
  border-left: 1px solid var(--ink);
  border-right: 1px solid rgba(16, 16, 16, 0.24);
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(16, 16, 16, 0.12) 14% 14.2%, transparent 14.2% 100%),
    linear-gradient(0deg, rgba(16, 16, 16, 0.1) 1px, transparent 1px),
    linear-gradient(115deg, rgba(255, 54, 93, 0.18), rgba(32, 214, 255, 0.1) 47%, rgba(184, 255, 70, 0.2));
  background-size: auto, 100% 68px, auto;
  overflow: hidden;
}

.hero-visual::before {
  position: absolute;
  top: 13%;
  right: -10%;
  width: 74%;
  height: 34%;
  content: "";
  border: 1px solid rgba(16, 16, 16, 0.24);
  background:
    repeating-linear-gradient(90deg, rgba(16, 16, 16, 0.1) 0 1px, transparent 1px 18px),
    rgba(255, 255, 255, 0.42);
  transform: skewY(-8deg);
}

.hero-visual::after {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  height: 68px;
  content: "";
  background: var(--ink);
  clip-path: polygon(0 33%, 100% 0, 100% 100%, 0 100%);
}

.scanline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 45%;
  width: 2px;
  background: var(--sakura);
  box-shadow: 0 0 24px rgba(255, 54, 93, 0.85);
  animation: scan 4s ease-in-out infinite alternate;
}

.stage-label {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 3;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
}

.hero-product {
  position: absolute;
  z-index: 2;
  width: 240px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 260ms ease;
}

.hero-product-main {
  top: 108px;
  left: 24%;
  width: min(400px, 58vw);
  transform: rotate(-5deg);
}

.hero-product-left {
  bottom: 62px;
  left: 7%;
  width: 218px;
  transform: rotate(8deg);
}

.hero-product-right {
  right: 6%;
  bottom: 114px;
  width: 236px;
  transform: rotate(-10deg);
}

.hero-visual:hover .hero-product-main {
  transform: translateY(-8px) rotate(-3deg);
}

.hero-visual:hover .hero-product-left {
  transform: translateX(-8px) rotate(4deg);
}

.hero-visual:hover .hero-product-right {
  transform: translateX(8px) rotate(-6deg);
}

.hero-spec {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
  text-align: center;
}

.hero-spec span {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 900;
}

.hero-spec small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.spec-a {
  right: 24px;
  top: 86px;
}

.spec-b {
  left: 22px;
  top: 246px;
  background: var(--cyan);
}

.ticker {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.ticker span {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  padding: 0 28px;
  font-size: 0.9rem;
  font-weight: 800;
}

.ticker span:nth-child(3n) {
  color: var(--lime);
}

.systems-section,
.products-section {
  padding: 94px max(24px, calc((100vw - 1180px) / 2));
}

.split-heading,
.products-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 28px;
  align-items: end;
  margin-top: 14px;
}

.split-heading h2,
.products-head h2,
.studio-copy h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.95;
}

.split-heading p,
.studio-copy p,
.contact-panel p {
  margin: 0;
  color: rgba(16, 16, 16, 0.72);
  line-height: 1.75;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.system-panel {
  min-height: 280px;
  padding: 20px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.68);
}

.system-panel h3 {
  margin: 56px 0 12px;
  font-family: var(--display);
  font-size: 2.4rem;
}

.system-panel p {
  margin: 0;
  color: rgba(16, 16, 16, 0.72);
  line-height: 1.65;
}

.panel-number {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--white);
  font-weight: 800;
}

.accent-panel {
  background:
    linear-gradient(135deg, rgba(32, 214, 255, 0.26), rgba(184, 255, 70, 0.4)),
    var(--white);
}

.dark-panel {
  background: var(--ink);
  color: var(--white);
}

.dark-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.dark-panel .panel-number {
  background: var(--sakura);
  color: var(--white);
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.05fr);
  gap: 52px;
  align-items: center;
  padding: 88px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 54, 93, 0.12), transparent 34%),
    linear-gradient(180deg, var(--white), rgba(247, 248, 244, 0.84));
}

.studio-media {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, var(--ink) 0 10px, transparent 10px),
    repeating-linear-gradient(0deg, rgba(16, 16, 16, 0.1) 0 1px, transparent 1px 40px),
    var(--white);
  overflow: hidden;
}

.studio-media::before,
.studio-media::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--ink);
}

.studio-media::before {
  top: 31%;
}

.studio-media::after {
  top: 64%;
}

.image-rail {
  position: absolute;
  inset: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.image-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(16, 16, 16, 0.12);
}

.image-rail img:first-child {
  grid-row: span 2;
}

.studio-copy {
  display: grid;
  gap: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.metrics div {
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.metrics dt {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 900;
}

.metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.products-head {
  align-items: center;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 42px;
  padding: 0 14px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-button.is-active {
  background: var(--sakura);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 520px;
  border: 1px solid var(--ink);
  background: var(--white);
  overflow: hidden;
}

.product-image-wrap {
  position: relative;
  display: grid;
  min-height: 280px;
  place-items: center;
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 54, 93, 0.13), transparent 42%),
    linear-gradient(45deg, transparent 0 48%, rgba(16, 16, 16, 0.08) 48% 52%, transparent 52% 100%),
    #fdfdfc;
}

.product-image-wrap::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px dashed rgba(16, 16, 16, 0.28);
}

.product-image-wrap img {
  position: relative;
  z-index: 2;
  width: min(220px, 72%);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(16, 16, 16, 0.18);
  transition: transform 220ms ease;
}

.product-card:hover .product-image-wrap img {
  transform: rotate(-2deg) scale(1.04);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--ink);
  background: var(--lime);
  font-size: 0.68rem;
  font-weight: 800;
}

.product-content {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
}

.product-content h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
}

.product-content p {
  margin: 0;
  color: rgba(16, 16, 16, 0.68);
  line-height: 1.58;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.product-meta li {
  min-height: 28px;
  padding: 6px 8px;
  border: 1px solid rgba(16, 16, 16, 0.2);
  background: #f7f8f4;
  color: rgba(16, 16, 16, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
}

.product-actions .button {
  min-height: 46px;
  padding: 0 12px;
}

.quick-view {
  width: 46px;
  height: 46px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 28px;
  align-items: stretch;
  padding: 90px max(24px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: var(--white);
}

.contact-panel {
  display: grid;
  gap: 18px;
  align-content: center;
  min-height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(255, 54, 93, 0.24), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 38px);
}

.contact-panel .eyebrow {
  color: var(--lime);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0 12px;
}

.contact-form .button {
  margin-top: 8px;
  background: var(--lime);
  color: var(--ink);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 24px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.site-footer a {
  color: var(--lime);
}

.product-dialog {
  width: min(840px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 14px 14px 0 rgba(16, 16, 16, 0.28);
}

.product-dialog::backdrop {
  background: rgba(16, 16, 16, 0.56);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1.08fr);
}

.dialog-media {
  display: grid;
  min-height: 420px;
  place-items: center;
  border-right: 1px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(32, 214, 255, 0.2), rgba(255, 54, 93, 0.12)),
    var(--paper);
}

.dialog-media img {
  width: min(300px, 80%);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

.dialog-copy {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 36px;
}

.dialog-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 3rem;
  line-height: 0.95;
}

.dialog-copy p {
  margin: 0;
  color: rgba(16, 16, 16, 0.72);
  line-height: 1.7;
}

.dialog-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 6px 0;
  list-style: none;
}

.dialog-copy li {
  padding: 7px 9px;
  border: 1px solid rgba(16, 16, 16, 0.22);
  font-size: 0.74rem;
  font-weight: 800;
}

@keyframes scan {
  from {
    transform: translateX(-110px);
  }
  to {
    transform: translateX(130px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto auto auto;
  }

  .brand-mark {
    min-width: 0;
  }

  .brand-name {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    justify-self: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    width: 100%;
    border: 1px solid var(--ink);
    background: var(--white);
    padding: 14px;
  }

  .nav-links.is-open {
    display: grid;
    justify-content: stretch;
    gap: 0;
  }

  .nav-links a {
    min-height: 44px;
  }

  .hero-section,
  .split-heading,
  .studio-section,
  .products-head,
  .contact-section,
  .dialog-body {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 112px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .system-grid,
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-group {
    justify-content: flex-start;
  }

  .dialog-media {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
}

@media (max-width: 660px) {
  .topbar {
    width: calc(100% - 20px);
    min-height: 62px;
    top: 10px;
    padding: 8px;
  }

  .brand-symbol {
    width: 44px;
    height: 44px;
  }

  .nav-action span {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 104px 16px 34px;
  }

  .hero-copy h1 {
    font-size: clamp(4.15rem, 19vw, 5.25rem);
    line-height: 0.78;
  }

  .hero-copy h1 span {
    display: block;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 440px;
  }

  .hero-product-main {
    left: 18%;
    width: 270px;
  }

  .hero-product-left {
    left: 4%;
    width: 158px;
  }

  .hero-product-right {
    right: 4%;
    width: 160px;
  }

  .hero-spec {
    width: 92px;
    height: 92px;
  }

  .hero-spec span {
    font-size: 1.34rem;
  }

  .spec-a {
    right: auto;
    left: min(210px, 54vw);
  }

  .systems-section,
  .products-section,
  .studio-section,
  .contact-section {
    padding: 62px 16px;
  }

  .system-grid,
  .product-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .studio-media {
    min-height: 430px;
  }

  .image-rail {
    inset: 16px;
    grid-template-columns: 1fr;
  }

  .image-rail img:first-child {
    grid-row: auto;
  }

  .product-card {
    min-height: 490px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .quick-view {
    width: 100%;
  }

  .contact-panel {
    min-height: 0;
    padding: 22px;
  }
}
