:root {
  color-scheme: dark;
  --bg: #0c0a0b;
  --panel: #171315;
  --ink: #faf2f4;
  --muted: #b9adb1;
  --line: #362c30;
  --red: #ff3848;
  --red-bright: #ff6f7b;
  --paper: #f6eeee;
  --dark-ink: #23181b;
  --width: 79rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
::selection { background: var(--red); color: #190307; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 5px; }
p, h1, h2, h3, figure { margin: 0; }
.wrap { width: min(var(--width), calc(100% - 7rem)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  display: block; position: fixed; z-index: 10; top: .65rem; left: .65rem; transform: translateY(-160%);
  color: var(--bg); background: var(--ink); padding: .65rem 1rem; border-radius: .25rem;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; top: 0; z-index: 5; border-bottom: 1px solid #2a2326;
  background: rgba(12, 10, 11, .95); backdrop-filter: blur(18px);
}
.header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 10.6rem; }
.header-inner nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.8rem); font-size: .91rem; color: var(--muted); }
.header-inner nav > a:hover, .footer-links a:hover { color: var(--ink); }
.menu-toggle { display: none; color: var(--ink); background: #1a1417; border: 1px solid var(--line); padding: .45rem .8rem; border-radius: .4rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.35rem; padding: .75rem 1.2rem; border-radius: .4rem;
  text-align: center; border: 1px solid transparent; font-weight: 700; font-size: .94rem;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.button-primary { background: var(--red); color: #1b0509; }
.button-primary:hover { background: #ff6673; }
.button-outline { background: transparent; color: var(--ink); border-color: #554349; }
.button-outline:hover { background: #2a1f23; border-color: #93737b; }
.button-small { min-height: 2.65rem; padding: .5rem .85rem; font-size: .88rem; }

.hero {
  display: grid; grid-template-columns: 1.08fr 1fr; align-items: center;
  min-height: clamp(32rem, 53vw, 46rem); gap: .7rem; padding-block: 3.5rem;
}
.hero-copy { z-index: 1; position: relative; }
.eyebrow {
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem;
  font-size: .83rem; font-weight: 730; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red-bright);
}
.eyebrow span { display: inline-block; width: 1.4rem; height: 2px; background: currentColor; flex-shrink: 0; }
h1, h2 { letter-spacing: -.062em; line-height: .99; font-weight: 750; }
h1 { font-size: clamp(3rem, 6.3vw, 6.25rem); }
h1 em { color: var(--red-bright); font-style: normal; }
h2 { font-size: clamp(2.6rem, 5vw, 4.9rem); }
.hero-description { max-width: 33rem; color: var(--muted); font-size: clamp(1.08rem, 1.55vw, 1.27rem); margin-top: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.9rem; }
.hero-art { position: relative; width: min(100%, 41rem); justify-self: center; isolation: isolate; }
.hero-art img {
  display: block; width: 100%; aspect-ratio: 1;
  mask-image: radial-gradient(ellipse closest-side, #000 80%, #000b 88%, transparent 100%);
}
.art-line {
  position: absolute; display: flex; align-items: center; gap: .45rem; font-size: .73rem;
  letter-spacing: .12em; font-weight: 700; color: #b8a0a7; font-family: "Cascadia Mono", monospace;
}
.art-line::before { position: relative; content: ""; width: 1.4rem; height: 1px; background: #8b3441; }
.art-line-top { right: 0; top: 12%; }
.art-line-bottom { left: 0; bottom: 10%; }
.expertise { background: #120e10; border-block: 1px solid var(--line); }
.expertise-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.expertise-inner span { padding: 1.05rem .75rem; text-align: center; font-size: .9rem; color: var(--muted); font-weight: 600; }
.expertise-inner span + span { border-left: 1px solid var(--line); }

.section-head {
  display: grid; grid-template-columns: 1.35fr .75fr; align-items: end;
  gap: clamp(1.3rem, 6vw, 5rem); margin-bottom: 2.4rem;
}
.section-head > p, .demo-copy > p:not(.eyebrow), .company > div > p:not(.eyebrow), .contact-grid > div > p:not(.eyebrow) {
  color: var(--muted); font-size: clamp(1.03rem, 1.4vw, 1.2rem);
}
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.3rem; }
.filters button {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  padding: .55rem .95rem; border-radius: 2rem; font-size: .88rem; font-weight: 650;
}
.filters button:hover { border-color: var(--red-bright); color: var(--ink); }
.filters button[aria-pressed="true"] { background: #341b22; border-color: #7e3542; color: #ffb9c0; }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.solution {
  --card-padding: clamp(1.2rem, 2.3vw, 2rem);
  display: flex; flex-direction: column; align-items: flex-start; min-height: 17.5rem;
  padding: var(--card-padding); border: 1px solid var(--line); border-radius: .8rem; overflow: hidden;
  background: linear-gradient(140deg, #1a1417, #120e10 80%); transition: border-color .2s ease;
}
.solution:hover, .solution:focus-within { border-color: #a15360; }
.solution-preview {
  align-self: stretch;
  margin: calc(-1 * var(--card-padding)) calc(-1 * var(--card-padding)) 1rem;
}
.solution-preview img, .dialog-preview img {
  display: block; width: 100%; object-fit: cover; background: #251b21;
}
.solution-preview img { aspect-ratio: 4 / 3; }
.solution-preview figcaption {
  border-top: 1px solid #6d5660; border-bottom: 1px solid var(--line); padding: .5rem var(--card-padding);
}
.solution-preview figcaption, .dialog-preview figcaption { color: var(--muted); font-size: .85rem; }
.solution-meta { display: flex; align-items: center; gap: .65rem; color: #e5b4ba; font-size: .86rem; font-weight: 650; }
.card-icon {
  display: grid; place-items: center; width: 2.65rem; height: 2.65rem; flex-shrink: 0;
  border: 1px solid #60323c; border-radius: .55rem; color: var(--red-bright); background: #301a20;
}
.card-icon svg { width: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.solution h3 { font-size: clamp(1.4rem, 2.1vw, 1.82rem); letter-spacing: -.035em; margin-top: 1.2rem; line-height: 1.12; }
.solution p { color: var(--muted); margin-block: .65rem 1.1rem; }
.card-link { margin-top: auto; color: #ff9ca7; font-weight: 700; text-decoration: underline; text-underline-offset: .28rem; }
.card-link:hover { color: var(--ink); }

.demo-band { background: #161013; padding-block: clamp(3.5rem, 6vw, 6rem); border-block: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 6vw, 5.8rem); align-items: center; }
.demo-copy > p:not(.eyebrow) { margin-block: 1.3rem 1.65rem; max-width: 28rem; }
.demo-board { border: 1px solid #58303b; border-radius: 1rem; background: #0f0c0d; overflow: hidden; box-shadow: 0 1rem 4rem #0005; }
.demo-top { padding: .9rem 1.15rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .65rem; color: var(--muted); font-size: .87rem; }
.demo-label { color: #ffacb5; font-size: .82rem; }
.demo-tabs { display: flex; gap: .35rem; padding: .65rem .75rem 0; flex-wrap: wrap; }
.demo-tabs button { text-align: left; background: transparent; padding: .45rem .55rem; border: 0; border-radius: .25rem; color: var(--muted); font-size: .88rem; }
.demo-tabs button[aria-selected="true"] { color: var(--ink); background: #302028; }
.demo-panel { min-height: 12.7rem; padding: 1rem; }
.demo-bubble { border: 1px solid #403137; background: #21191c; border-radius: .6rem; max-width: 90%; font-size: .95rem; padding: .7rem .85rem; }
.demo-bubble strong { display: block; color: #ffabba; font-size: .82rem; margin-bottom: .18rem; }
.nearix-bubble { margin: .75rem 0 0 auto; background: #281821; border-color: #51313d; }
.sample-order { background: #231a20; border: 1px solid #483741; border-radius: .65rem; padding: .85rem; }
.sample-order span { color: var(--muted); font-size: .85rem; }
.sample-order strong { display: block; font-size: 1.23rem; }
.sample-order p { margin-top: .3rem; color: var(--muted); }
.demo-state { margin-top: .75rem; color: #ff9ca7; font-weight: 700; }
.demo-summary { margin: 0; padding: 0; list-style: none; }
.demo-summary li { display: flex; justify-content: space-between; color: var(--muted); padding: .75rem; border-bottom: 1px solid var(--line); }
.demo-summary strong { color: var(--ink); }

.process-section { color-scheme: light; background: var(--paper); color: var(--dark-ink); }
.process-section .eyebrow { color: #a8182e; }
.process-section .section-head > p, .process-list p { color: #604b52; }
.process-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  padding: 0; margin: 3.1rem 0 0; list-style: none;
}
.process-list li { border-top: 2px solid #bf3045; padding-top: 1.1rem; }
.process-list h3 { font-size: 1.42rem; letter-spacing: -.025em; margin-bottom: .55rem; }
.company { display: grid; grid-template-columns: minmax(5rem, .34fr) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; border-bottom: 1px solid var(--line); }
.company-mark { display: grid; place-items: center; background: #150e12; border: 1px solid #3a252d; border-radius: 1rem; aspect-ratio: 1; }
.company-mark img { width: 73%; }
.company h2 { max-width: 58rem; }
.company > div > p:not(.eyebrow) { max-width: 43rem; margin-top: 1.3rem; }
.company-channel { display: inline-block; margin-top: 1rem; font-weight: 700; color: #ff9ca7; text-decoration: underline; text-underline-offset: .22rem; }
.company-channel:hover { color: var(--ink); }
.questions { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 5vw, 4rem); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1.05rem .1rem; display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2rem; color: var(--red-bright); line-height: 1.2; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); padding: 0 1.5rem 1.05rem .1rem; }

.contact-section { border-top: 1px solid #60303c; background: radial-gradient(95% 100% at 0 100%, #361820, #161014 70%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 7vw, 6.4rem); align-items: center; }
.contact-grid > div > p:not(.eyebrow) { margin-block: 1.2rem; max-width: 34rem; }
.email-link { color: #ffc3cb; text-underline-offset: .22rem; text-decoration: underline; overflow-wrap: anywhere; }
.contact-form { display: grid; gap: .85rem; min-width: 0; background: #130e11; border: 1px solid #59333f; border-radius: .85rem; padding: clamp(1rem, 2.5vw, 1.8rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.contact-form label { display: grid; min-width: 0; gap: .36rem; color: var(--ink); font-size: .91rem; font-weight: 650; }
.contact-form input, .contact-form textarea, .contact-form select {
  min-width: 0; width: 100%; border-radius: .35rem; border: 1px solid #544047;
  padding: .7rem .65rem; background: #1f171c; color: var(--ink); font-size: 1rem; font-weight: 400;
}
.contact-form textarea { resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #b6a0a8; }
.contact-form select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23f8f3f4' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 1.15rem; background-position: right .5rem center; }
.form-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.form-caption { font-size: .86rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding-block: 1.4rem; color: var(--muted); font-size: .88rem; }
.footer-inner .brand img { width: 9.7rem; }
.footer-links { display: flex; gap: 1rem; }

.solution-dialog { width: min(48rem, calc(100% - 2rem)); max-height: 86vh; color: var(--ink); border: 1px solid #73434e; border-radius: .9rem; padding: 0; background: #1c1418; }
.solution-dialog::backdrop { background: #0a0608c9; backdrop-filter: blur(4px); }
.dialog-inner { position: relative; padding: clamp(1.2rem, 5vw, 2.3rem); }
.dialog-inner h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .95rem; }
.dialog-inner p:not(.eyebrow), .dialog-inner ul { color: var(--muted); }
.dialog-preview { margin-block: 1rem; }
.dialog-preview img { border: 1px solid #5e4651; border-radius: .5rem; }
.dialog-preview figcaption { padding-top: .45rem; }
.dialog-inner ul { padding-left: 1.2rem; margin: .9rem 0 1.3rem; }
.dialog-inner li + li { margin-top: .35rem; }
.dialog-close { position: absolute; top: .65rem; right: .65rem; display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border: 1px solid var(--line); border-radius: .45rem; color: var(--ink); background: #261b21; font-size: 1.45rem; line-height: 1; }
.dialog-inner .eyebrow { padding-right: 2.3rem; }

@media (max-width: 64rem) {
  .wrap { width: calc(100% - 4rem); }
  .hero { min-height: auto; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-line { display: none; }
}
@media (max-width: 47rem) {
  html { scroll-padding-top: 5.4rem; }
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.5rem; flex-wrap: wrap; padding-block: .55rem; }
  .menu-toggle { display: inline-flex; }
  .header-inner nav { width: 100%; flex-wrap: wrap; gap: .75rem 1.15rem; padding-block: .5rem; }
  .menu-toggle:not([hidden]) ~ nav { display: none; }
  .menu-toggle[aria-expanded="true"] ~ nav { display: flex; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block: 3.2rem .8rem; }
  .desktop-break { display: none; }
  h1 { font-size: clamp(3.1rem, 10.9vw, 5rem); }
  .hero-art { align-self: center; width: min(100%, 27rem); margin-top: .5rem; }
  .expertise-inner { grid-template-columns: repeat(2, 1fr); }
  .expertise-inner span:last-child, .expertise-inner span:nth-child(3) { border-top: 1px solid var(--line); }
  .expertise-inner span:nth-child(3) { border-left: 0; }
  .section-head, .demo-grid, .questions, .contact-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 1.7rem; }
  .process-list { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
  .company { grid-template-columns: 1fr; gap: 1.1rem; }
  .company-mark { width: 5.3rem; }
  .solution { min-height: 15rem; }
}
@media (max-width: 36rem) {
  .catalog, .field-row { grid-template-columns: 1fr; }
  .solution { min-height: 13.8rem; }
  .hero-actions > a { width: 100%; }
  h2 { font-size: clamp(2.45rem, 8.8vw, 3.9rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
