/* devintel.io company site, from devintel-shop-design/design/Landing.dc.html.
   Same tokens, fonts and components as the shop (frontend/src/styles). */
@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --bg: #f4f7f5;
  --bg2: #ecf1ee;
  --surface: #ffffff;
  --surface2: #f4f7f5;
  --line: #dfe6e2;
  --line2: #cbd5d0;
  --text: #16231f;
  --text2: #4a5a55;
  --text3: #5f6e69;
  --accent: #0f7a65;
  --accent-ink: #ffffff;
  --accent-soft: rgba(15, 122, 101, 0.09);
  --accent-line: rgba(15, 122, 101, 0.32);
  --warm: #b4581f;
  --shadow: 0 1px 2px rgba(22, 35, 31, 0.05), 0 18px 40px -24px rgba(22, 35, 31, 0.22);
  --font-display: "Bricolage Grotesque Variable", "Instrument Sans Variable", system-ui, sans-serif;
  --font-body: "Instrument Sans Variable", system-ui, sans-serif;
  --font-mono: "JetBrains Mono Variable", ui-monospace, monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
pre {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 40px;
}

@media (max-width: 700px) {
  .wrap {
    padding-inline: 16px;
  }
}

.disp {
  font-family: var(--font-display);
}

.mono {
  font-family: var(--font-mono);
}

.accent {
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
}

.skip:focus {
  top: 12px;
}

.ico {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* Header */
.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 72px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
}

.brand-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lg-a {
  fill: var(--accent);
}

.lg-b {
  fill: var(--line2);
}

.lg-c {
  fill: var(--accent);
  opacity: 0.45;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1 1 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
}

.navlink:hover {
  color: var(--text);
  background: var(--bg);
}

@media (max-width: 760px) {
  .site-header-inner {
    justify-content: space-between;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    flex-wrap: nowrap;
    margin-inline: -8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav .navlink {
    padding: 0 7px;
    font-size: 13px;
    white-space: nowrap;
  }

  .header-actions .navlink {
    display: none;
  }
}

@media (max-width: 420px) {
  /* "Our story" stays reachable from the footer's About link. */
  .site-nav .navlink:last-child {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s, border-color 0.15s;
}

.btn-sm {
  min-height: 44px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line2);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent-line);
}

.arr {
  transition: transform 0.2s;
}

.btn:hover .arr {
  transform: translateX(3px);
}

/* Hero: the stack of data layers */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(var(--line2) 1px, transparent 1.2px);
  background-size: 28px 28px;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
  padding-top: 72px;
  padding-bottom: 56px;
}

.hero-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.hero-title {
  font-size: clamp(42px, 5.6vw, 84px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 460px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text2);
}

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

.hero-visual {
  flex: 1.3 1 560px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 620px;
  perspective: 1600px;
}

.stack {
  position: absolute;
  left: 46%;
  top: 54%;
  width: 330px;
  height: 330px;
  margin: -165px 0 0 -165px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-40deg);
  animation: spin 24s ease-in-out infinite alternate;
}

@keyframes spin {
  from {
    transform: rotateX(58deg) rotateZ(-46deg);
  }
  to {
    transform: rotateX(54deg) rotateZ(-30deg);
  }
}

.plane {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1.5px solid var(--line2);
  background-color: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: 0 30px 60px -30px rgba(22, 35, 31, 0.35);
  transition: transform 1s cubic-bezier(0.3, 0.8, 0.3, 1), border-color 0.5s, background-color 0.5s, opacity 0.5s;
}

.plane-above {
  opacity: 0.38;
}

.plane-on {
  border-color: var(--accent);
  background-color: color-mix(in srgb, var(--surface) 92%, transparent);
}

.plane-tag {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text3);
  transform: translateZ(1px);
}

.plane-on .plane-tag {
  color: var(--accent);
}

.pl-svg {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  overflow: visible;
  opacity: 0.4;
  transition: opacity 0.5s;
}

.plane-on .pl-svg {
  opacity: 1;
}

.s-road {
  fill: none;
  stroke: var(--line2);
  stroke-width: 7;
}

.s-bld {
  fill: var(--line);
}

.s-park {
  fill: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.s-acc {
  fill: var(--accent);
}

.s-ring {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: sPulse 2.4s ease-out infinite;
}

@keyframes sPulse {
  0% {
    scale: 0.6;
    opacity: 1;
  }
  100% {
    scale: 1.5;
    opacity: 0;
  }
}

.s-pill {
  fill: var(--surface);
  stroke: var(--line2);
}

.s-txt {
  font: 600 11px var(--font-mono);
  fill: var(--text);
}

.s-poi {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 3;
}

.s-glyph {
  font: 700 12px var(--font-body);
  fill: var(--accent-ink);
}

.s-grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.s-heat {
  fill: var(--accent);
  opacity: 0.14;
  transform-box: fill-box;
  transform-origin: center;
  animation: heat 4s ease-in-out infinite;
}

.h2 {
  animation-delay: 1.3s;
}

.h3 {
  animation-delay: 2.6s;
}

@keyframes heat {
  0%,
  100% {
    scale: 0.85;
    opacity: 0.1;
  }
  50% {
    scale: 1.1;
    opacity: 0.24;
  }
}

.s-trail {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 2;
  stroke-dasharray: 3 6;
}

.s-mover,
.s-ship {
  fill: none;
  stroke: var(--accent);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 0.1 99.9;
  animation: mover 4s linear infinite;
}

@keyframes mover {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.s-land {
  fill: var(--bg2);
  stroke: var(--line2);
}

.s-port {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 3;
}

.s-route {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 2;
  stroke-dasharray: 5 6;
}

.s-box {
  fill: var(--accent);
  opacity: 0.8;
}

.b2 {
  opacity: 0.45;
}

.s-area {
  fill: var(--accent-soft);
}

.s-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  animation: draw 3.5s ease-in-out infinite alternate;
}

@keyframes draw {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.s-wick {
  stroke: var(--text3);
  stroke-width: 1.5;
}

.s-up {
  fill: var(--accent);
}

.s-dn {
  fill: var(--warm);
}

.s-tag {
  fill: var(--accent);
}

.s-tagt {
  font: 700 12px var(--font-mono);
  fill: var(--accent-ink);
}

/* Layer list and detail card */
.legend {
  position: relative;
  z-index: 2;
  flex: 0 0 270px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lgbtns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lgbtn {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  color: var(--text2);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.lgbtn:hover {
  background: var(--surface);
}

.lgbtn-on {
  background: var(--surface);
  border-color: var(--line2);
  color: var(--text);
  box-shadow: var(--shadow);
}

.lgnum {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text3);
}

.lgbtn-on .lgnum {
  color: var(--accent);
}

.lgname {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
}

.lgname > span {
  display: block;
}

.lgwhat {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.lgbar {
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.lgfill {
  display: block;
  width: 0;
  height: 3px;
  background: var(--accent);
}

.lgbtn-on .lgfill {
  animation: fill 3.5s linear both;
}

.held .lgbtn-on .lgfill {
  animation: none;
  width: 100%;
}

@keyframes fill {
  to {
    width: 100%;
  }
}

.ldetail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: detailIn 0.45s ease both;
}

.ldetail[hidden] {
  display: none;
}

@keyframes detailIn {
  from {
    opacity: 0;
    translate: 0 6px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.ldetail-title {
  font-size: 18px;
  font-weight: 600;
}

.ldetail p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2);
}

.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fchip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.ldetail-sample {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface2);
  font-size: 11.5px;
  line-height: 1.6;
}

.ldetail-sets {
  font-size: 12px;
  color: var(--text3);
}

.ldetail-sets strong {
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 900px) {
  .hero-visual {
    flex-wrap: wrap;
  }

  .stage,
  .legend {
    flex: 1 1 100%;
  }
}

.hero-copy {
  position: relative;
  z-index: 3;
}

@media (max-width: 560px) {
  /* Smaller stack, lower in its box, so lifted layers stay clear of the copy above. */
  .stage {
    height: 430px;
  }

  .stack {
    top: 72%;
    left: 50%;
    scale: 0.66 0.66 0.66;
  }
}

/* Marquee */
.marq {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

.marq-word {
  padding: 26px 36px;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line2);
}

.marq-word:nth-child(3n + 1) {
  color: var(--accent);
  -webkit-text-stroke: 0;
}

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

/* Sections */
.section {
  padding-top: 112px;
  padding-bottom: 112px;
}

@media (max-width: 700px) {
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.section-head > div {
  max-width: 760px;
}

.section-title {
  margin-top: 14px;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-aside {
  max-width: 380px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text2);
}

.band-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}

.band-surface {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* Signal to row */
.pipe {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

@media (max-width: 980px) {
  .pipe {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pipe {
    grid-template-columns: minmax(0, 1fr);
  }
}

.stagec {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}

.stagec-on {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.stagec-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stagec-name {
  font-size: 20px;
  font-weight: 600;
}

.stagec p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text2);
}

.snum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text3);
  transition: background-color 0.4s, color 0.4s;
}

.stagec-on .snum {
  background: var(--accent);
  color: var(--accent-ink);
}

.rec {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text2);
  white-space: pre-wrap;
  word-break: break-word;
}

.stagec-on .rec {
  animation: recIn 0.6s ease both;
}

@keyframes recIn {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}

.track {
  position: relative;
  height: 4px;
  margin-top: 26px;
  border-radius: 2px;
  background: var(--line);
}

.trackfill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.9s cubic-bezier(0.5, 0, 0.2, 1);
}

.runner {
  position: absolute;
  top: -6px;
  left: 0;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
  transition: left 0.9s cubic-bezier(0.5, 0, 0.2, 1);
}

/* Numbers wall */
.nums {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.ncell {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 200px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.ncell p {
  font-size: 15px;
  color: var(--text2);
}

.ncell-dark {
  grid-column: span 7;
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.ncell-third {
  grid-column: span 4;
}

.ncell-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.ncell-dark p,
.ncell-accent p {
  color: inherit;
  opacity: 0.85;
}

.nlabel {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text3);
}

.ncell-dark .nlabel,
.ncell-accent .nlabel {
  color: inherit;
  opacity: 0.75;
}

.nbig {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.nbig-xl {
  font-size: clamp(72px, 10vw, 150px);
}

.nbig-lg {
  font-size: clamp(64px, 8vw, 120px);
}

.nbig-md {
  font-size: clamp(52px, 5.4vw, 72px);
}

.nbig-word {
  font-size: clamp(44px, 4.6vw, 64px);
}

@media (max-width: 900px) {
  .nums > * {
    grid-column: span 12;
  }
}

/* Principles */
.prins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
}

.prin {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 380px;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.35s, border-color 0.35s;
}

.prin:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
}

.prin-n {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line2);
  transition: -webkit-text-stroke-color 0.35s;
}

.prin:hover .prin-n {
  -webkit-text-stroke-color: var(--accent);
}

.prin svg {
  position: absolute;
  right: -20px;
  top: -20px;
  opacity: 0.5;
  transition: opacity 0.35s, rotate 0.6s;
}

.prin:hover svg {
  opacity: 1;
  rotate: 12deg;
}

.prin-title {
  margin-top: auto;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prin p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text2);
}

/* Use cases */
.uses {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 28px;
}

.uctabs {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uctab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  color: var(--text2);
  transition: border-color 0.2s, background-color 0.2s;
}

.uctab:hover {
  border-color: var(--accent-line);
}

.uctab[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.uctab-name {
  font-size: 16px;
  font-weight: 600;
}

.uctab-team {
  font-size: 13px;
  color: var(--text3);
}

.ucpanel {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg);
  animation: panelIn 0.5s ease both;
}

.ucpanel[hidden] {
  display: none;
}

@keyframes panelIn {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 700px) {
  .ucpanel {
    padding: 22px;
  }
}

.ucpanel-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ucpanel p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text2);
}

.query {
  overflow-x: auto;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
}

.kw {
  color: var(--accent);
  font-weight: 600;
}

.ucsets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ucset {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}

/* Story */
.tl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.tl::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 2px;
  background: var(--line2);
}

@media (max-width: 900px) {
  .tl {
    grid-template-columns: minmax(0, 1fr);
  }

  .tl::before {
    display: none;
  }
}

.tlitem {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tlnode {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  background: var(--bg);
}

.tlnode i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line2);
}

.tl-now .tlnode {
  border-color: var(--accent);
}

.tl-now .tlnode i {
  background: var(--accent);
}

.tlwhen {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.tltitle {
  font-size: 19px;
  font-weight: 600;
}

.tlitem p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text2);
}

/* Closing band */
.contact {
  padding-top: 8px;
  padding-bottom: 104px;
}

.band {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--text);
  color: var(--bg);
}

.band-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--bg) 22%, transparent) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 80% 40%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 80% 40%, #000, transparent 70%);
}

.band-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 6vw, 80px);
}

.band-copy {
  max-width: 680px;
}

.band-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.7;
}

.band-title {
  margin-top: 16px;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.band-lead {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.8;
}

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

.btn-light {
  background: var(--bg);
  color: var(--text);
}

.btn-light:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.btn-outline-light {
  border-color: color-mix(in srgb, var(--bg) 35%, transparent);
  color: var(--bg);
}

.btn-outline-light:hover {
  color: var(--bg);
  border-color: var(--bg);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
  color: var(--text3);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.flink {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--text2);
}

/* 404 page */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.notfound p {
  font-size: 18px;
  color: var(--text2);
}

/* Entrances */
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 22px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.rise {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.d1 {
  animation-delay: 0.1s;
}

.d2 {
  animation-delay: 0.2s;
}

.d3 {
  animation-delay: 0.32s;
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
