:root {
  --ink: #f3f7f8;
  --muted: rgba(243, 247, 248, 0.74);
  --soft: rgba(243, 247, 248, 0.1);
  --line: rgba(243, 247, 248, 0.16);
  --panel: rgba(12, 18, 20, 0.66);
  --panel-strong: rgba(7, 12, 14, 0.86);
  --green: #9ee17b;
  --cyan: #77e0d5;
  --amber: #f2c14e;
  --red: #ff7566;
  --steel: #9eb3c2;
  --base: #080d0f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Bahnschrift", "Aptos", ui-sans-serif, system-ui, sans-serif;
  background:
    linear-gradient(90deg, rgba(119, 224, 213, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(119, 224, 213, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, rgba(158, 225, 123, 0.16), transparent 35%),
    linear-gradient(230deg, rgba(242, 193, 78, 0.13), transparent 42%),
    linear-gradient(180deg, #080d0f 0%, #0d1514 45%, #12130f 100%);
  background-size: 54px 54px, 54px 54px, auto, auto, auto;
  overflow-x: hidden;
}

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

.canvas-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.canvas-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 13, 15, 0.08), rgba(8, 13, 15, 0.9)),
    linear-gradient(90deg, rgba(8, 13, 15, 0.5), transparent 34%, transparent 66%, rgba(8, 13, 15, 0.52));
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 72px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 16, 23, 0.72);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.chip-row,
.contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(119, 224, 213, 0.25), rgba(158, 225, 123, 0.22), rgba(242, 193, 78, 0.16));
}

.nav-links a,
.language-toggle,
.quick-access a,
.contact-links a,
.contact-links span,
.chip-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 247, 242, 0.05);
}

.nav-links a {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.language-toggle {
  min-height: 39px;
  padding: 0 13px;
  color: var(--base);
  background: var(--green);
  cursor: pointer;
  font-weight: 800;
}

.hero {
  min-height: clamp(560px, 76vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 340px;
  align-items: center;
  gap: 28px;
  padding: 58px 0 44px;
}

.hero h1 {
  margin: 12px 0 20px;
  max-width: 820px;
  font-size: clamp(4.4rem, 8vw, 7.2rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-role {
  margin: -6px 0 20px;
  color: var(--cyan);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.eyebrow {
  margin: 0;
  color: var(--amber);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
}

.lead {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 247, 242, 0.05);
  font-weight: 700;
}

.chip-row {
  margin-top: 30px;
}

.chip-row span {
  padding: 9px 13px;
  color: rgba(245, 247, 242, 0.9);
}

.quick-access {
  align-self: end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.availability-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(158, 225, 123, 0.8);
}

.quick-access strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.quick-access p {
  margin: 22px 0 16px;
  color: var(--amber);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
}

.quick-access a {
  display: block;
  margin-top: 10px;
  padding: 13px 14px;
  color: var(--ink);
  transition: transform 0.18s ease, background 0.18s ease;
}

.quick-access a:hover,
.nav-links a:hover,
.contact-links a:hover {
  background: rgba(245, 247, 242, 0.1);
  transform: translateY(-1px);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.flow-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.flow-heading span,
.section-number,
.project-label {
  color: var(--amber);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.intelligence-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: -8px 0 18px;
}

.intelligence-strip article {
  position: relative;
  min-height: 148px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(119, 224, 213, 0.1), transparent 42%),
    rgba(8, 13, 15, 0.68);
  overflow: hidden;
}

.intelligence-strip article::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(119, 224, 213, 0.42);
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(119, 224, 213, 0.06);
}

.intelligence-strip span {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-weight: 760;
}

.intelligence-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.metric-strip article {
  min-height: 132px;
  padding: 22px;
  background: rgba(10, 18, 24, 0.78);
}

.metric-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 1.55rem;
}

.metric-strip span,
.section-heading p,
.resume-item p,
.tool-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.section-block {
  padding: 56px 0 0;
}

.section-heading {
  position: relative;
  max-width: 760px;
  margin-bottom: 28px;
}

.section-number {
  position: absolute;
  left: -48px;
  top: 2px;
  color: rgba(119, 224, 213, 0.52);
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: 2.6rem;
  line-height: 1.08;
}

.resume-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.resume-item {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.resume-item span {
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 700;
}

.resume-item h3,
.tool-copy h3 {
  margin: 10px 0;
  font-size: 1.32rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.tool-copy {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.case-carousel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  overflow: hidden;
}

.case-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.case-track {
  display: flex;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-slide {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  flex: 0 0 100%;
  min-height: 560px;
}

.case-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(119, 224, 213, 0.08), transparent 48%),
    rgba(7, 12, 14, 0.82);
}

.case-copy h3 {
  margin: 10px 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.04;
  text-wrap: balance;
}

.case-copy > p:not(.project-label) {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.case-impact {
  display: flex;
  flex-direction: column;
  margin: 28px 0 22px;
  padding-left: 15px;
  border-left: 2px solid var(--green);
}

.case-impact.is-potential {
  border-color: var(--amber);
}

.case-impact strong {
  color: var(--green);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.case-impact.is-potential strong {
  color: var(--amber);
}

.case-impact span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-facts {
  display: grid;
  width: 100%;
  gap: 12px;
  margin: 24px 0 0;
}

.case-facts div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.case-facts dt {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.case-subprojects {
  display: grid;
  gap: 9px;
  width: 100%;
  margin-top: 22px;
}

.case-subprojects div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 247, 242, 0.035);
}

.case-subprojects strong,
.case-subprojects span {
  display: block;
}

.case-subprojects strong {
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 0.83rem;
}

.case-subprojects span,
.case-status {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

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

.standard-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.standard-links a {
  padding: 6px 9px;
  border: 1px solid rgba(119, 224, 213, 0.28);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.72rem;
}

.case-visual {
  min-width: 0;
  margin: 0;
  background: #071014;
}

.case-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-dashboard-composite {
  display: grid;
  grid-template-rows: minmax(380px, 2fr) 180px;
  min-width: 0;
  min-height: 560px;
  background: #071014;
}

.case-dashboard-composite .dashboard-preview,
.case-dashboard-composite .dashboard-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.dashboard-machine-visual {
  position: relative;
  min-height: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.dashboard-machine-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.dashboard-machine-visual figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(6, 11, 13, 0.82);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
}

.case-process {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: clamp(28px, 4vw, 52px);
  background:
    linear-gradient(90deg, rgba(119, 224, 213, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(119, 224, 213, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 58%, rgba(119, 224, 213, 0.12), transparent 38%),
    #071014;
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.process-heading span,
.process-engine small,
.process-output small {
  color: var(--cyan);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-heading p {
  max-width: 560px;
  margin: 8px 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

.process-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.process-inputs div {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.84);
}

.process-inputs b {
  display: block;
  margin-bottom: 11px;
  color: var(--amber);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 0.7rem;
}

.process-inputs span {
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.4;
}

.process-arrow {
  align-self: center;
  margin: 5px 0;
  color: var(--cyan);
  font-size: 1.15rem;
}

.process-engine,
.process-output {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(119, 224, 213, 0.36);
  border-radius: 8px;
  text-align: center;
  background: rgba(7, 16, 20, 0.9);
}

.process-engine strong,
.process-output strong {
  margin-top: 5px;
  font-size: 1rem;
}

.process-output {
  color: var(--base);
  border-color: var(--green);
  background: var(--green);
}

.process-output small,
.process-output span {
  color: rgba(8, 13, 15, 0.72);
}

.process-output span {
  margin-top: 4px;
  font-size: 0.75rem;
}

.case-controls {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: rgba(6, 11, 13, 0.96);
}

.case-arrow,
.case-dots button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(245, 247, 242, 0.05);
  cursor: pointer;
}

.case-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
}

.case-dots {
  display: flex;
  gap: 8px;
}

.case-dots button {
  width: 28px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 247, 248, 0.2);
  transition: width 0.2s ease, background 0.2s ease;
}

.case-dots button.is-active {
  width: 48px;
  background: var(--green);
}

.case-counter {
  color: var(--muted);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 0.8rem;
}

.case-counter b {
  color: var(--green);
}

.project-label {
  margin: 0 0 18px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.project-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(119, 224, 213, 0.26);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.8rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--green);
  color: #071017;
  font-weight: 750;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(158, 225, 123, 0.18);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.dashboard-preview {
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0e1117;
}

.dashboard-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
}

.contact-block {
  margin-top: 44px;
  padding: 48px 40px 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(119, 224, 213, 0.1), rgba(158, 225, 123, 0.06), rgba(8, 13, 15, 0.76));
}

.contact-links {
  align-items: stretch;
}

.contact-links a,
.contact-links span {
  padding: 13px 14px;
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.62s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .tool-layout,
  .resume-grid,
  .metric-strip,
  .intelligence-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero h1 {
    font-size: 4.4rem;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .section-number {
    position: static;
    display: block;
    margin-bottom: 10px;
  }

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

  .case-copy {
    min-height: 520px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-visual,
  .case-process {
    min-height: 460px;
  }

  .case-dashboard-composite {
    grid-template-rows: minmax(420px, 2fr) 190px;
    min-height: 610px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 26px;
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .flow-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .contact-block {
    padding: 32px 20px;
  }

  .case-copy {
    min-height: 590px;
    padding: 28px 20px;
  }

  .case-visual,
  .case-process {
    min-height: 320px;
  }

  .case-dashboard-composite {
    grid-template-rows: minmax(430px, 2fr) 170px;
    min-height: 600px;
  }

  .case-process {
    padding: 26px 18px;
  }

  .process-inputs {
    grid-template-columns: 1fr;
  }

  .process-inputs div {
    min-height: auto;
  }

  .case-dots button {
    width: 14px;
  }

  .case-dots button.is-active {
    width: 26px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .dashboard-preview,
  .dashboard-preview iframe {
    min-height: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
