:root {
  color-scheme: dark;
  --bg: #111016;
  --bg-soft: #171821;
  --text: #f4f7fb;
  --muted: #aeb8c6;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --white: #ffffff;
  --ink: #0d1117;
  --blue: #00a8e8;
  --green: #7ee787;
  --coral: #ff8a5c;
  --gold: #ffc400;
  --cyan: #00c7f2;
  --violet: #4b6cff;
  --pink: #f35fb3;
  --orange: #ff9f43;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 56px);
  --header: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(0, 199, 242, 0.12), transparent 25%),
    linear-gradient(245deg, rgba(255, 196, 0, 0.08), transparent 30%),
    linear-gradient(180deg, #10131a 0%, #071821 44%, #11131a 100%);
  color: var(--text);
  letter-spacing: 0;
  --mx: 70%;
  --my: 18%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 34%, rgba(0, 168, 232, 0.14) 34% 38%, transparent 38% 100%),
    linear-gradient(72deg, transparent 0 62%, rgba(255, 196, 0, 0.09) 62% 65%, transparent 65% 100%),
    conic-gradient(from 120deg at var(--mx) var(--my), rgba(255, 196, 0, 0.08), rgba(0, 199, 242, 0.12), rgba(75, 108, 255, 0.08), rgba(255, 196, 0, 0.08));
  opacity: 0.9;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(0, 199, 242, 0.18), transparent 28%);
  mix-blend-mode: screen;
}

body::selection {
  background: var(--green);
  color: var(--ink);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  display: block;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 var(--pad);
  background: rgba(17, 16, 22, 0.58);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-elevated {
  background: rgba(17, 16, 22, 0.88);
  border-bottom-color: var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), var(--blue), transparent);
  opacity: 0.65;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  font-weight: 700;
}

.brand-logo {
  display: block;
  width: clamp(142px, 15vw, 190px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.main-nav a {
  padding: 10px 0;
}

.main-nav a:hover {
  color: var(--white);
}

.header-action,
.button,
.filter-button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: var(--ink);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.header-action svg,
.button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header) + 42px) var(--pad) 28px;
  border-bottom: 1px solid var(--line);
}

.hero-video,
.hero-scrim,
.signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  opacity: 0.46;
  filter: saturate(1.15) contrast(1.08);
}

.hero-scrim {
  background:
    linear-gradient(122deg, rgba(16, 19, 26, 0.98) 0%, rgba(9, 20, 28, 0.75) 48%, rgba(18, 25, 38, 0.38) 100%),
    linear-gradient(58deg, rgba(0, 199, 242, 0.20), transparent 38%),
    linear-gradient(304deg, rgba(255, 196, 0, 0.12), transparent 48%),
    linear-gradient(0deg, rgba(8, 15, 21, 0.94), transparent 56%);
}

.signal-canvas {
  opacity: 0.52;
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  padding-bottom: 92px;
}

.hero-visual {
  position: absolute;
  z-index: 1;
  right: clamp(-70px, -4vw, -34px);
  top: 18%;
  width: min(39vw, 560px);
  height: 56%;
  pointer-events: none;
}

.device-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform-style: preserve-3d;
  animation: device-float 7s ease-in-out infinite;
}

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

.device-card-main {
  inset: 12% 4% 0 14%;
  transform: rotate(-5deg);
}

.device-card-top {
  width: 42%;
  height: 42%;
  top: 0;
  right: 0;
  transform: rotate(8deg);
  animation-delay: -2s;
}

.device-card-bottom {
  width: 44%;
  height: 36%;
  left: 0;
  bottom: 3%;
  transform: rotate(6deg);
  animation-delay: -4s;
}

.eyebrow,
.section-kicker,
.panel-label,
.role,
.work-type,
.journal article p {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin-top: 18px;
  font-size: clamp(50px, 7.2vw, 96px);
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
  color: transparent;
  background: linear-gradient(105deg, #ffffff 0%, #f4f7fb 42%, #baf4ff 64%, #ffe178 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.35;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 800;
}

.button-primary {
  background: linear-gradient(135deg, #ffffff 0%, #fff1b6 42%, #ffc400 100%);
  color: #151016;
  box-shadow: 0 14px 40px rgba(255, 122, 89, 0.22);
}

.button-secondary {
  background: linear-gradient(135deg, rgba(0, 199, 242, 0.14), rgba(255, 196, 0, 0.08));
  color: var(--white);
}

.hero-panel {
  position: absolute;
  z-index: 3;
  left: var(--pad);
  right: var(--pad);
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 199, 242, 0.09), rgba(255, 196, 0, 0.06), rgba(0, 168, 232, 0.08)),
    rgba(17, 16, 22, 0.50);
  backdrop-filter: blur(18px);
}

.hero-panel > div {
  min-width: 0;
  padding: 18px clamp(12px, 2.2vw, 26px);
  border-right: 1px solid var(--line);
}

.hero-panel > div:last-child {
  border-right: 0;
}

.panel-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.5);
}

.hero-panel strong {
  display: block;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.2;
}

section {
  padding: clamp(76px, 11vw, 150px) var(--pad);
}

.band {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(0, 199, 242, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(255, 196, 0, 0.08), transparent 42%),
    #101823;
  background-size: 44px 44px;
  border-block: 1px solid var(--line);
}

.intro-grid,
.section-heading,
.portfolio-head,
.contact-layout {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
  margin-top: 18px;
}

h2 {
  font-size: clamp(38px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.capabilities h2,
.product-lab h2,
.team h2,
.portfolio h2,
.contact h2 {
  color: transparent;
  background: linear-gradient(105deg, #ffffff 0%, #e9f8ff 45%, #9aeaff 68%, #ffe178 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.intro-copy {
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
}

.visual-lab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 199, 242, 0.16), transparent 38%),
    linear-gradient(250deg, rgba(255, 196, 0, 0.12), transparent 44%),
    #07121b;
}

.visual-lab::before {
  content: "";
  position: absolute;
  inset: 8% -12% auto auto;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 199, 242, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(0, 199, 242, 0.12), transparent 58%),
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.05) 0deg 3deg, transparent 3deg 12deg);
  animation: slow-spin 28s linear infinite;
}

.visual-copy {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  justify-self: end;
}

.visual-copy h2 {
  margin-top: 18px;
  color: transparent;
  background: linear-gradient(105deg, #ffffff, #a7ecff 58%, #ffe178);
  -webkit-background-clip: text;
  background-clip: text;
}

.visual-copy p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.5;
}

.visual-stage {
  position: relative;
  z-index: 2;
  min-height: clamp(520px, 52vw, 690px);
  perspective: 1300px;
}

.visual-pane {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
}

.visual-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(0deg, rgba(5, 9, 14, 0.22), transparent 55%);
  pointer-events: none;
}

.visual-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.visual-pane-main {
  inset: 8% 8% 8% 10%;
  transform: rotateY(-14deg) rotateX(5deg);
  animation: panel-float 8s ease-in-out infinite;
}

.visual-pane-left {
  width: 40%;
  height: 36%;
  left: 0;
  bottom: 2%;
  transform: rotateY(18deg) rotateZ(-5deg);
  animation: panel-float 7s ease-in-out infinite -2s;
}

.visual-pane-right {
  width: 38%;
  height: 34%;
  right: 0;
  top: 2%;
  transform: rotateY(-20deg) rotateZ(5deg);
  animation: panel-float 6.5s ease-in-out infinite -4s;
}

.visual-node {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 14, 22, 0.76);
  backdrop-filter: blur(14px);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.32);
  animation: node-pulse 3.6s ease-in-out infinite;
}

.visual-node svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node-one {
  top: 18%;
  left: 2%;
}

.node-two {
  right: 6%;
  bottom: 20%;
  animation-delay: -1.2s;
}

.node-three {
  left: 22%;
  top: 4%;
  animation-delay: -2.2s;
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(28px, 5vw, 62px);
}

.section-heading h2 {
  max-width: 900px;
}

.capability-grid,
.team-grid,
.portfolio-grid,
.journal-grid,
.timeline,
.product-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.capability-card,
.person-card,
.work-card,
.journal article,
.timeline article,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.045);
}

.capability-card {
  min-height: 285px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.capability-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 199, 242, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 199, 242, 0.20), rgba(255, 196, 0, 0.10)),
    rgba(255, 255, 255, 0.05);
  color: var(--cyan);
  box-shadow: 0 16px 36px rgba(0, 199, 242, 0.10);
}

.capability-icon svg,
.product-tag svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability-card::before,
.product-card::before,
.person-card::before,
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-120%);
  transition: transform 700ms ease;
}

.capability-card:hover::before,
.product-card:hover::before,
.person-card:hover::before,
.work-card:hover::before {
  transform: translateX(120%);
}

.capability-card:nth-child(1) {
  border-color: rgba(0, 199, 242, 0.36);
}

.capability-card:nth-child(2) {
  border-color: rgba(255, 196, 0, 0.30);
}

.capability-card:nth-child(3) {
  border-color: rgba(0, 168, 232, 0.34);
}

.capability-card:nth-child(4) {
  border-color: rgba(0, 199, 242, 0.28);
}

.capability-card:nth-child(5) {
  border-color: rgba(255, 196, 0, 0.34);
}

.capability-card:nth-child(6) {
  border-color: rgba(0, 168, 232, 0.28);
}

.capability-card:nth-child(7),
.capability-card:nth-child(8),
.capability-card:nth-child(9) {
  border-color: rgba(0, 199, 242, 0.30);
}

.capability-card h3,
.person-card h3,
.work-card h3,
.journal article h3,
.timeline h3,
.product-card h3,
.case-copy h3 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  letter-spacing: 0;
}

.capability-card p,
.person-card p:not(.role),
.work-card p:not(.work-type),
.journal article h3,
.timeline p,
.product-card p,
.case-copy p {
  color: var(--muted);
  line-height: 1.5;
}

.product-lab {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(128deg, rgba(0, 199, 242, 0.22), transparent 35%),
    linear-gradient(238deg, rgba(255, 196, 0, 0.16), transparent 38%),
    linear-gradient(32deg, rgba(0, 168, 232, 0.12), transparent 44%),
    linear-gradient(0deg, #101826, #071f2a);
}

.product-lab::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(transparent, #000);
}

.product-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  min-height: 330px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 199, 242, 0.18), transparent 44%),
    linear-gradient(315deg, rgba(255, 196, 0, 0.10), transparent 36%),
    rgba(255, 255, 255, 0.045);
  transition: transform 180ms ease, border-color 180ms ease;
}

.product-card-wide {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(255, 196, 0, 0.18), transparent 45%),
    linear-gradient(45deg, rgba(0, 168, 232, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.055);
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-tag svg {
  width: 16px;
  height: 16px;
}

.showcase {
  background:
    linear-gradient(120deg, rgba(0, 199, 242, 0.20), transparent 36%),
    linear-gradient(300deg, rgba(255, 196, 0, 0.22), transparent 42%),
    #f3f8fb;
  color: #0b0f14;
}

.showcase .section-kicker,
.showcase .timeline span {
  color: #00688f;
}

.timeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.timeline article {
  min-height: 280px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(13, 17, 23, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.timeline span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team {
  background:
    linear-gradient(135deg, rgba(0, 168, 232, 0.16), transparent 38%),
    linear-gradient(315deg, rgba(255, 196, 0, 0.09), transparent 42%),
    #0d141c;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person-card {
  min-height: 430px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.25 / 1;
  border-radius: 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 35%),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(255, 255, 255, 0.07) 16px 17px);
}

.portrait-y {
  background: linear-gradient(135deg, #06233a, #00c7f2 54%, #ffc400);
}

.portrait-j {
  background: linear-gradient(135deg, #072333, #00a8e8 54%, #ffc400);
  color: #061018;
}

.portrait-m {
  background: linear-gradient(135deg, #091a28, #00c7f2 48%, #4b6cff);
}

.role {
  color: var(--gold);
  margin-top: 4px;
}

.portfolio-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: clamp(30px, 5vw, 64px);
}

.portfolio-head h2 {
  max-width: 850px;
  margin-top: 18px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  max-width: 980px;
}

.filter-button {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
}

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

.portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(115deg, rgba(0, 199, 242, 0.18), transparent 34%),
    linear-gradient(255deg, rgba(255, 196, 0, 0.10), transparent 35%),
    linear-gradient(0deg, #0d1520, #0d1c22);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

.case-stage {
  width: min(var(--max), 100%);
  margin: 0 auto clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 16px;
  align-items: stretch;
}

.case-copy,
.case-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 199, 242, 0.16), rgba(255, 196, 0, 0.08), rgba(0, 168, 232, 0.12)),
    rgba(255, 255, 255, 0.065);
}

.case-copy {
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.case-copy h3 {
  font-size: clamp(38px, 5vw, 72px);
}

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

.case-meta span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.case-screen {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #081823, #102f42);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32);
}

.case-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.case-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  overflow: hidden;
}

.case-tab {
  min-height: 56px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.case-tab:last-child {
  border-right: 0;
}

.case-tab.active {
  background: linear-gradient(135deg, rgba(0, 199, 242, 0.18), rgba(255, 196, 0, 0.14));
  color: var(--white);
}

.work-card {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.34);
}

.work-card.is-hidden {
  display: none;
}

.work-card.featured {
  grid-column: span 2;
}

.work-visual {
  height: 210px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.work-shot {
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #111827;
}

.work-card.featured .work-shot {
  height: 330px;
}

.work-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 600ms ease;
}

.work-shot-safe {
  position: relative;
}

.work-shot-safe::after {
  content: "datos anonimizados";
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(8, 11, 15, 0.72);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-card:hover .work-shot img {
  transform: scale(1.035);
}

.work-visual span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.work-visual strong {
  max-width: 340px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 0.96;
  letter-spacing: 0;
}

.work-card h3,
.work-card p {
  padding-inline: 18px;
}

.work-type {
  margin-top: 18px;
}

.work-card h3 {
  margin-top: 10px;
}

.work-card p:not(.work-type) {
  margin-top: 12px;
  padding-bottom: 22px;
}

.visual-dark {
  background: linear-gradient(135deg, #111827, #00a8e8 55%, #4b6cff);
}

.visual-blue {
  background: linear-gradient(135deg, #102a43, #00c7f2 45%, #00a8e8);
}

.visual-green {
  background: linear-gradient(135deg, #062416, #00c7f2 46%, #ffc400);
  color: #06100b;
}

.visual-white {
  background: linear-gradient(135deg, #f5f7fb, #b8c6d9);
  color: #111827;
}

.visual-coral {
  background: linear-gradient(135deg, #092033, #00a8e8 54%, #ffc400);
}

.visual-ink {
  background: linear-gradient(135deg, #0b0f14, #404854);
}

.visual-gold {
  background: linear-gradient(135deg, #3c2c10, #ffc400 52%, #00c7f2);
  color: #151006;
}

.visual-slate {
  background: linear-gradient(135deg, #1f2937, #94a3b8);
}

.visual-red {
  background: linear-gradient(135deg, #250b12, #ef4444 50%, #ff9f43);
}

.visual-terminal {
  background:
    linear-gradient(rgba(126, 231, 135, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 231, 135, 0.08) 1px, transparent 1px),
    #07120d;
  background-size: 18px 18px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.journal {
  background:
    linear-gradient(115deg, rgba(143, 124, 255, 0.18), transparent 32%),
    linear-gradient(245deg, rgba(126, 231, 135, 0.22), transparent 36%),
    #fff8ef;
  color: #0b0f14;
}

.journal .section-kicker,
.journal article p {
  color: #255f45;
}

.journal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journal article {
  min-height: 230px;
  padding: 24px;
  background: #ffffff;
  border-color: rgba(13, 17, 23, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.journal article h3 {
  color: #0b0f14;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 7vw, 92px);
  align-items: center;
}

.contact-layout h2 {
  margin-top: 18px;
}

.contact-layout p {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.5;
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.contact-link {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.11);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px var(--pad);
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

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

  .main-nav {
    display: none;
  }

  .header-action {
    justify-self: end;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-inner {
    padding-bottom: 170px;
  }

  .hero-visual {
    opacity: 0.28;
    right: -12vw;
    width: 68vw;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-panel > div:last-child {
    border-bottom: 0;
  }

  .intro-grid,
  .contact-layout,
  .portfolio-head,
  .case-stage,
  .visual-lab {
    grid-template-columns: 1fr;
  }

  .visual-copy {
    justify-self: start;
  }

  .visual-stage {
    min-height: 520px;
  }

  .filters {
    justify-content: flex-start;
  }

  .capability-grid,
  .timeline,
  .portfolio-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-screen {
    min-height: 360px;
  }

  .team-grid,
  .journal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header: 64px;
  }

  .brand-logo {
    width: 126px;
  }

  .header-action {
    padding-inline: 14px;
  }

  .hero {
    min-height: 96svh;
    display: block;
    padding-top: calc(var(--header) + 42px);
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 64px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-inner {
    padding-bottom: 24px;
  }

  .hero-visual {
    display: none;
  }

  .hero-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .button {
    width: 100%;
  }

  h2 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .capability-grid,
  .timeline,
  .portfolio-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .visual-lab {
    padding-top: 76px;
  }

  .visual-stage {
    min-height: 430px;
    margin-inline: -8px;
  }

  .visual-pane-main {
    inset: 12% 2% 18% 2%;
  }

  .visual-pane-left {
    width: 48%;
    height: 30%;
  }

  .visual-pane-right {
    width: 48%;
    height: 30%;
  }

  .visual-node {
    min-height: 38px;
    padding-inline: 12px;
  }

  .product-card-wide {
    grid-column: span 1;
  }

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

  .case-tab {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-tab:last-child {
    border-bottom: 0;
  }

  .case-screen {
    min-height: 280px;
  }

  .work-card.featured {
    grid-column: span 1;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .hero-video {
    display: none;
  }
}

@keyframes device-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

@keyframes panel-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -16px;
  }
}

@keyframes node-pulse {
  0%,
  100% {
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.18);
  }

  50% {
    transform: scale(1.035);
    border-color: rgba(255, 196, 0, 0.48);
  }
}

@keyframes slow-spin {
  to {
    rotate: 360deg;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM EFFECTS — v2
═══════════════════════════════════════════════════════════════ */

/* ── Enhanced reveal: blur + scale (reemplaza el existente) ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  filter: blur(6px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 800ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ── Reveal simplificado en móvil ─────────────────────────────────────────
   translateY inicial causa layout shifts en ciertos anchos → solo opacity   */
@media (hover: none), (pointer: coarse) {
  [data-reveal] {
    opacity: 0;
    transform: none !important;
    filter: none !important;
    transition: opacity 350ms ease !important;
    will-change: opacity;
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none !important;
    filter: none !important;
  }
  /* Sin stagger — evita cards tardías mientras el usuario ya scrolleó */
  [data-reveal] {
    transition-delay: 0ms !important;
  }
  /* Sin float en los devices del hero */
  .device-card {
    animation: none !important;
  }
}

/* Cursor nativo — no se usa cursor personalizado */
.cursor, .cursor-dot { display: none !important; }

/* ── Word split animation ───────────────────────────────────── */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}

.word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.word-animated.is-visible .word {
  transform: translateY(0);
}

/* Hero h1: preservar gradient en cada word span */
.hero h1 {
  color: unset;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero h1 .word {
  color: transparent;
  background: linear-gradient(105deg, #ffffff 0%, #f4f7fb 42%, #baf4ff 64%, #ffe178 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Intro h2 word split — texto blanco simple */
.intro-grid h2 .word {
  color: var(--text);
}

/* ── Marquee ────────────────────────────────────────────────── */
.marquee-band {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 16px;
  background:
    linear-gradient(90deg, rgba(0, 199, 242, 0.05), rgba(255, 196, 0, 0.03), rgba(0, 168, 232, 0.05));
  display: flex;
  gap: 0;
  user-select: none;
}

.marquee-track {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 36s linear infinite;
  flex-shrink: 0;
  will-change: transform;
  padding-right: 28px;
}

.marquee-track span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.marquee-track .sep {
  color: var(--cyan);
  opacity: 0.7;
}

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

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

/* ── Stats Band ─────────────────────────────────────────────── */
.stats-band {
  padding: clamp(56px, 9vw, 110px) var(--pad);
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 199, 242, 0.10), transparent 38%),
    linear-gradient(315deg, rgba(255, 196, 0, 0.08), transparent 40%),
    #0c1019;
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--max), 100%);
  margin: 0 auto;
  gap: 0;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--line);
  text-align: left;
}

.stat-item:last-child {
  border-right: 0;
}

.stat-num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  background: linear-gradient(105deg, #ffffff 0%, #c8f5ff 45%, #ffe178 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-suffix {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  color: var(--cyan);
}

.stat-item p {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: 0;
  }
  .stat-item:nth-child(3) {
    border-top: 1px solid var(--line);
  }
  .stat-item:nth-child(4) {
    border-top: 1px solid var(--line);
    border-right: 0;
  }
}

@media (max-width: 480px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat-item:last-child {
    border-bottom: 0;
  }
}

/* ── Glassmorphism glow en cards (hover) ────────────────────── */
.capability-card {
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 250ms ease,
              box-shadow 250ms ease;
}

.capability-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 199, 242, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 199, 242, 0.15),
    0 24px 64px rgba(0, 199, 242, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(0, 199, 242, 0.12), rgba(255, 196, 0, 0.06)),
    rgba(255, 255, 255, 0.06);
}

.product-card {
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 250ms ease,
              box-shadow 250ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 196, 0, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 196, 0, 0.12),
    0 24px 64px rgba(255, 196, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* ── Portfolio hover overlay ────────────────────────────────── */
.work-shot {
  position: relative;
}

.work-shot::after {
  content: "Ver proyecto →";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 12, 22, 0.52);
  backdrop-filter: blur(3px);
  color: white;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 350ms ease, transform 350ms ease;
  pointer-events: none;
}

.work-card:hover .work-shot::after {
  opacity: 1;
  transform: translateY(0);
}

.work-card:hover .work-shot img {
  transform: scale(1.07);
}

/* ── Magnetic button base ────────────────────────────────────── */
.magnetic {
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 300ms ease;
  will-change: transform;
}

.button-primary.magnetic:hover,
.contact-cta.magnetic:hover {
  box-shadow: 0 20px 60px rgba(255, 196, 0, 0.32);
}

/* ── Contact section redesign ────────────────────────────────── */
.contact {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(0, 199, 242, 0.14), transparent 42%),
    linear-gradient(295deg, rgba(255, 196, 0, 0.10), transparent 42%),
    #101823;
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  padding: clamp(96px, 13vw, 180px) var(--pad) clamp(80px, 11vw, 150px);
  border-block: 1px solid var(--line);
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 199, 242, 0.14) 0%, rgba(255, 196, 0, 0.06) 40%, transparent 70%);
  pointer-events: none;
  animation: contact-pulse 6s ease-in-out infinite;
  border-radius: 50%;
}

@keyframes contact-pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  margin-top: 18px;
}

.contact-copy p {
  max-width: 600px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.5;
}

.contact-cta {
  margin-top: 36px;
  font-size: 16px;
  min-height: 54px;
  padding: 0 28px;
}

.contact-cta svg {
  width: 18px;
  height: 18px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.contact-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
  flex-shrink: 0;
}

.contact-link-email {
  font-size: clamp(14px, 1.5vw, 18px);
  border-color: rgba(0, 199, 242, 0.3);
  background: rgba(0, 199, 242, 0.06);
  color: var(--cyan);
}

.contact-link-email:hover {
  border-color: rgba(0, 199, 242, 0.6);
  background: rgba(0, 199, 242, 0.10);
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── Scroll to top ──────────────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 199, 242, 0.4);
  background: rgba(10, 18, 30, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--cyan, #00c7f2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: rgba(0, 199, 242, 0.15);
  border-color: rgba(0, 199, 242, 0.8);
}

@media (max-width: 600px) {
  .scroll-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

/* ─── DevTools Band ─────────────────────────────────────────────────────── */
.devtools-band {
  padding: 5rem 2rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.devtools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Mock window chrome (terminal + IDE comparten) */
.mock-window {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  background: #0d1117;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mock-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #27c840; }

.mock-title {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  margin-left: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Terminal */
.terminal-body {
  padding: 1.1rem 1.3rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.78rem;
  line-height: 1.75;
  min-height: 300px;
  color: #cdd6f4;
}

.t-line { display: block; animation: tFade 0.15s ease; }

@keyframes tFade { from { opacity: 0; } to { opacity: 1; } }

.t-prompt { color: #00c7f2; user-select: none; margin-right: 0.4rem; }
.t-cmd    { color: #e2e8f0; }
.t-out    { color: #6272a4; padding-left: 1.1rem; }
.t-ok     { color: #50fa7b; }
.t-warn   { color: #ffb86c; }
.t-cursor {
  display: inline-block;
  color: #00c7f2;
  animation: blink-cur 1s step-end infinite;
}
@keyframes blink-cur { 50% { opacity: 0; } }

/* IDE */
.ide-layout {
  display: flex;
  height: 360px;
  overflow: hidden;
}

.ide-sidebar {
  width: 190px;
  flex-shrink: 0;
  background: #13131e;
  padding: 0.7rem 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.7rem;
  border-right: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.ide-item {
  padding: 0.22rem 0.75rem;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  line-height: 1.5;
}
.ide-item.dir    { color: rgba(255,255,255,0.6); }
.ide-item.file   { color: rgba(255,255,255,0.38); }
.ide-item.active { background: rgba(0,199,242,0.1); color: #00c7f2; border-left: 2px solid #00c7f2; }
.ide-item.indent1 { padding-left: 1.5rem; }
.ide-item.indent2 { padding-left: 2.3rem; }
.ide-item.indent3 { padding-left: 3.1rem; }

.ide-editor {
  flex: 1;
  overflow: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.ide-code {
  margin: 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  font-size: 0.73rem;
  line-height: 1.65;
}

.ide-ln-row {
  display: flex;
  align-items: baseline;
  padding: 0 0.8rem 0 0;
}
.ide-ln-row:hover { background: rgba(255,255,255,0.03); }

.ide-ln {
  width: 2.2rem;
  flex-shrink: 0;
  color: rgba(255,255,255,0.18);
  text-align: right;
  padding-right: 0.9rem;
  user-select: none;
  font-size: 0.68rem;
}

/* PHP syntax colors */
.php-tag { color: #f8f8f2; }
.php-kw  { color: #c678dd; }
.php-fn  { color: #61afef; }
.php-str { color: #98c379; }
.php-cm  { color: #5c6370; font-style: italic; }
.php-var { color: #e06c75; }
.php-cls { color: #e5c07b; }

/* AI capability card highlight */
.capability-card--ai {
  border-color: rgba(0,199,242,0.3);
  background: linear-gradient(135deg, rgba(0,199,242,0.05) 0%, transparent 60%);
}
.capability-card--ai .capability-icon svg {
  color: #00c7f2;
}

/* Responsive devtools */
@media (max-width: 900px) {
  .devtools-grid {
    grid-template-columns: 1fr;
  }
  .ide-sidebar {
    display: none;
  }
  .ide-layout {
    height: 300px;
  }
  .terminal-body {
    min-height: 220px;
  }
}
