:root {
  color-scheme: dark;
  --ink: #081018;
  --ink-deep: #03070c;
  --panel: #0d1821;
  --panel-soft: #112430;
  --line: rgba(222, 188, 96, 0.24);
  --text: #f3f0e6;
  --muted: #a9b7bd;
  --gold: #d9b75b;
  --gold-bright: #f0d782;
  --teal: #2bb7b0;
  --teal-soft: rgba(43, 183, 176, 0.16);
  --shadow: rgba(0, 0, 0, 0.42);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 12%, rgba(43, 183, 176, 0.12), transparent 28rem),
    linear-gradient(135deg, var(--ink-deep), var(--ink) 46%, #07151d);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold-bright);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(240, 215, 130, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.section-shell {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

#problem,
#technology,
#contact {
  scroll-margin-top: 5.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 4.5rem);
  padding: 3rem 0 5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-weight: 600;
  line-height: 0.98;
}

h1 {
  max-width: 12ch;
  font-size: 4.8rem;
}

h2 {
  max-width: 13ch;
  font-size: 3.2rem;
}

h3 {
  margin: 0.7rem 0 0.7rem;
  font-size: 1.05rem;
}

.hero-lede {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  padding: 0.8rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #11100b;
  box-shadow: 0 1rem 2.5rem rgba(217, 183, 91, 0.18);
}

.button.secondary {
  border-color: rgba(43, 183, 176, 0.34);
  color: var(--text);
  background: rgba(43, 183, 176, 0.08);
}

.hero-visual {
  position: relative;
  min-height: 32rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(43, 183, 176, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 183, 176, 0.08) 1px, transparent 1px),
    radial-gradient(circle, rgba(217, 183, 91, 0.12), transparent 18rem),
    rgba(13, 24, 33, 0.8);
  background-size: 3rem 3rem, 3rem 3rem, auto, auto;
  box-shadow: 0 1.5rem 5rem var(--shadow);
}

.hero-carousel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 420ms ease, transform 420ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(76%, 24rem);
  height: auto;
  border-radius: 0.4rem;
  filter: drop-shadow(0 1.5rem 2rem rgba(0, 0, 0, 0.3));
}

.hero-product-image {
  position: relative;
  z-index: 2;
  width: 118%;
  max-width: none;
  max-height: none;
  border-radius: 0.35rem;
  object-fit: contain;
  filter: drop-shadow(0 1.5rem 2rem rgba(0, 0, 0, 0.34));
  mask-image:
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  z-index: 3;
  display: inline-flex;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 0.58rem;
  height: 0.58rem;
  border: 1px solid rgba(240, 215, 130, 0.72);
  border-radius: 50%;
  padding: 0;
  background: rgba(3, 7, 12, 0.62);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--gold-bright);
  box-shadow: 0 0 1rem rgba(240, 215, 130, 0.55);
}

.section-band {
  border-block: 1px solid rgba(43, 183, 176, 0.18);
  background: linear-gradient(90deg, rgba(17, 36, 48, 0.76), rgba(7, 21, 29, 0.52));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 4rem;
  align-items: start;
  padding: 5rem 0;
}

.section-text {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-text p {
  margin: 0 0 1rem;
}

.technology {
  padding: 5rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tech-item {
  min-height: 14rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 24, 33, 0.52);
}

.tech-index {
  color: var(--gold);
  font-family: Newsreader, Georgia, serif;
  font-size: 2rem;
}

.tech-item p {
  margin: 0;
  color: var(--muted);
}

.spec-note {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(43, 183, 176, 0.28);
  border-radius: 0.4rem;
  background: var(--teal-soft);
}

.spec-note span {
  color: var(--gold-bright);
  font-weight: 800;
  white-space: nowrap;
}

.spec-note p {
  margin: 0;
  color: var(--muted);
}

.case-study-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(240, 215, 130, 0.28);
  border-radius: 0.45rem;
  background: rgba(13, 24, 33, 0.62);
}

.case-study-callout h3 {
  margin-top: 0;
}

.case-study-callout p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  padding: 5rem 0;
  background:
    linear-gradient(135deg, rgba(217, 183, 91, 0.08), transparent 28rem),
    #061019;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
  gap: 3rem;
  align-items: center;
}

.contact-link {
  display: grid;
  gap: 0.4rem;
  padding: 1.4rem;
  border: 1px solid rgba(240, 215, 130, 0.34);
  border-radius: 0.45rem;
  color: var(--text);
  text-decoration: none;
  background: rgba(13, 24, 33, 0.72);
}

.application-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
  max-width: 36rem;
}

.application-list span {
  border: 1px solid rgba(43, 183, 176, 0.28);
  border-radius: 0.35rem;
  padding: 0.45rem 0.65rem;
  color: var(--muted);
  background: rgba(43, 183, 176, 0.08);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-link span {
  color: var(--gold-bright);
  font-size: 1.35rem;
  font-weight: 800;
}

.contact-link small {
  color: var(--muted);
  font-size: 0.9rem;
}

.case-study-page {
  padding-bottom: 5rem;
}

.case-hero {
  padding: 5rem 0 3rem;
}

.case-hero h1 {
  max-width: 15ch;
  font-size: 4.2rem;
}

.case-lede {
  max-width: 52rem;
  color: var(--muted);
  font-size: 1.16rem;
}

.case-section {
  padding: 3.4rem 0;
  border-top: 1px solid rgba(43, 183, 176, 0.18);
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 3rem;
}

.case-grid h2,
.case-conclusion h2 {
  max-width: 14ch;
  font-size: 2.55rem;
}

.case-copy {
  color: var(--muted);
  font-size: 1.03rem;
}

.case-copy p {
  margin-top: 0;
}

.ref-link {
  margin-left: 0.2rem;
  color: var(--gold-bright);
  font-size: 0.82em;
  font-weight: 800;
  text-decoration: none;
  vertical-align: super;
}

.ref-link:hover {
  color: var(--teal);
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--line);
}

.case-metrics div {
  min-height: 7rem;
  padding: 1.1rem;
  background: rgba(13, 24, 33, 0.82);
}

.case-metrics span {
  display: block;
  color: var(--gold-bright);
  font-family: Newsreader, Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.case-metrics small {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
  font-weight: 700;
}

.case-placeholder,
.case-figure {
  margin: 2rem 0 0;
  border: 1px solid rgba(43, 183, 176, 0.24);
  border-radius: 0.45rem;
  background: rgba(13, 24, 33, 0.58);
}

.case-placeholder figcaption,
.case-figure figcaption {
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.case-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid rgba(43, 183, 176, 0.18);
}

.placeholder-plot,
.placeholder-profile {
  min-height: 16rem;
  border-bottom: 1px solid rgba(43, 183, 176, 0.18);
  background:
    linear-gradient(rgba(43, 183, 176, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 183, 176, 0.08) 1px, transparent 1px),
    rgba(3, 7, 12, 0.38);
  background-size: 2rem 2rem;
}

.placeholder-plot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 0.8rem;
  padding: 2rem;
}

.placeholder-plot span {
  display: block;
  border-radius: 0.25rem 0.25rem 0 0;
  background: linear-gradient(180deg, var(--gold-bright), var(--teal));
}

.placeholder-plot span:nth-child(1) { height: 86%; }
.placeholder-plot span:nth-child(2) { height: 58%; }
.placeholder-plot span:nth-child(3) { height: 34%; }
.placeholder-plot span:nth-child(4) { height: 18%; }

.placeholder-profile {
  position: relative;
  overflow: hidden;
}

.placeholder-profile::before {
  position: absolute;
  inset: 18% 8% 14%;
  content: "";
  border-bottom: 0.28rem solid var(--gold-bright);
  border-radius: 50%;
  transform: scaleY(0.62);
}

.spacing-table {
  display: grid;
  gap: 1px;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--line);
}

.spacing-table [role="row"] {
  display: grid;
  grid-template-columns: 0.7fr 0.8fr 1.5fr;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(13, 24, 33, 0.82);
}

.spacing-table strong {
  color: var(--gold-bright);
}

.spacing-table span {
  color: var(--muted);
}

.case-conclusion {
  max-width: min(100% - 2rem, 52rem);
}

.case-conclusion h2 {
  max-width: 16ch;
}

.case-conclusion p {
  color: var(--muted);
  font-size: 1.06rem;
}

.case-references {
  padding-bottom: 0;
}

.case-references h2 {
  max-width: 12ch;
  font-size: 2.25rem;
}

.case-references ol {
  display: grid;
  gap: 0.85rem;
  max-width: 58rem;
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.case-references li {
  padding-left: 0.25rem;
}

.case-references li::marker {
  color: var(--gold-bright);
  font-weight: 800;
}

.case-references a {
  color: var(--text);
  font-weight: 800;
  text-decoration-color: rgba(43, 183, 176, 0.55);
  text-underline-offset: 0.18rem;
}

.case-references a:hover {
  color: var(--gold-bright);
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  #problem,
  #technology,
  #contact {
    scroll-margin-top: 1rem;
  }

  .hero,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2.5rem;
    min-height: auto;
    padding: 2rem 0 4rem;
  }

  .hero-visual {
    min-height: 24rem;
  }

  h1 {
    max-width: 13ch;
    font-size: 3.5rem;
  }

  h2 {
    max-width: 14ch;
    font-size: 2.5rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    max-width: 16ch;
  }

  .split,
  .technology,
  .contact-section {
    padding-block: 4rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .brand span {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-lede,
  .section-text {
    font-size: 1rem;
  }

  .button,
  .contact-link {
    width: 100%;
  }

  .hero-visual {
    min-height: 18rem;
  }

  .split,
  .technology,
  .contact-section {
    padding-block: 3.25rem;
  }

  .tech-item {
    min-height: auto;
    padding: 1.25rem;
  }

  .tech-index {
    font-size: 1.7rem;
  }

  .spec-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-study-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .case-hero h1 {
    font-size: 3.2rem;
  }

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

  .spacing-table [role="row"] {
    grid-template-columns: 1fr;
  }
}
