@font-face { font-family: "Lexend"; src: url("/fonts/lexend-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("/fonts/baloo-2-latin-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  /* Light sections */
  --bg: #f7f8fc;
  --surface: #ffffff;
  --ink: #0d1433;
  --ink-2: #4b5375;
  --line: #dfe3ef;
  --soft: #edf0f8;
  /* Navy banner and bands */
  --navy: #0d1433;
  --navy-2: #141c45;
  --navy-line: #27316b;
  --on-navy: #f2f4fc;
  --on-navy-2: #b3bbdf;
  /* Accents */
  --cobalt: #3b5bff;
  --cobalt-soft: #7d93ff;
  --sun: #ffc83d;
  --sun-soft: #fff3cf;
  --sun-glow: rgba(255, 200, 61, 0.22);
  /* Block colours, as in Starstep Island */
  --move: #3b7bf0;
  --turn: #19a3a0;
  --loop: #f08a35;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --sans: "Lexend", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f26;
    --surface: #111939;
    --ink: #eef0fa;
    --ink-2: #a7aed0;
    --line: #232c57;
    --soft: #18214a;
    --sun-soft: #3b3420;
    --navy: #070b1d;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sun); color: #0d1433; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 250; line-height: 1; letter-spacing: -0.05em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.035em; }
h3 { font-size: 1.1rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
strong, b { font-weight: 500; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--sun); color: #0d1433; padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

.wrap { width: min(76rem, 100% - 2.5rem); margin-inline: auto; }

/* Logo: an L framing a square of light */
.m-l { fill: var(--ink); }
.m-sq { fill: var(--sun); }

/* Header: white over the navy banner, light glass once past it */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--on-navy);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), color 0.35s, border-color 0.35s;
}
.top .m-l { fill: #fff; transition: fill 0.35s; }
.top.solid {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.top.solid .m-l { fill: var(--ink); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; font-weight: 400; font-size: 1rem; letter-spacing: 0.3em; text-transform: uppercase; }
.brand-mark { width: 1.9rem; height: 1.9rem; overflow: visible; }
.brand-mark .m-sq { transform-box: fill-box; transform-origin: center; animation: light-on 1.4s var(--ease) 0.9s both; }
@keyframes light-on { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.12); filter: drop-shadow(0 0 6px var(--sun)); } 100% { transform: none; } }
.top nav { display: flex; gap: 0.25rem; }
.top nav a { text-decoration: none; opacity: 0.8; padding: 0.45rem 0.85rem; border-radius: 999px; font-weight: 400; transition: opacity 0.2s, background-color 0.2s; }
.top nav a:hover, .top nav a[aria-current] { opacity: 1; background: rgba(125, 147, 255, 0.16); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.45rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-line { border-color: var(--on-navy-2); color: var(--on-navy); }
.btn-line:hover { border-color: var(--on-navy); background: rgba(255, 255, 255, 0.06); }
.btn-lit { background: var(--sun); color: #0d1433; }
.btn-lit:hover { box-shadow: 0 0 0 6px var(--sun-glow); }

/* Navy banner */
.hero-band {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(59, 91, 255, 0.35), transparent 70%),
    radial-gradient(40rem 24rem at 0% 110%, rgba(59, 91, 255, 0.18), transparent 70%),
    var(--navy);
  color: var(--on-navy);
  overflow: hidden;
}
.hero { padding-block: clamp(8rem, 13vw, 10rem) clamp(4rem, 7vw, 5.5rem); }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.hero-side p { font-size: 1.2rem; color: var(--on-navy-2); max-width: 26em; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.hero .btn-ink { background: var(--sun); color: #0d1433; }
.hero .btn-ink:hover { box-shadow: 0 0 0 6px var(--sun-glow); }

/* Banner entrance: headline rises, then the diagram assembles left to right */
.intro .ln { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.14em; }
.intro .ln > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.intro .ln:nth-child(2) > span { animation-delay: 0.1s; }
.intro-fade { animation: fade-up 0.9s var(--ease) 0.35s both; }
.flow .stage { animation: fade-up 0.9s var(--ease) both; }
.flow .stage:nth-child(1) { animation-delay: 0.55s; }
.flow .stage:nth-child(3) { animation-delay: 0.75s; }
.flow .stage:nth-child(5) { animation-delay: 0.95s; }
.flow .link::before { transform-origin: left; animation: draw 0.6s var(--ease) both; }
.flow .link:nth-child(2)::before { animation-delay: 0.9s; }
.flow .link:nth-child(4)::before { animation-delay: 1.1s; }
.flow .link::after { animation: fade-in 0.3s ease both; }
.flow .link:nth-child(2)::after { animation-delay: 1.3s; }
.flow .link:nth-child(4)::after { animation-delay: 1.5s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes draw { from { transform: scaleX(0); } }

/* Hero diagram: blocks -> Python -> result */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr) 3.5rem minmax(0, 1fr);
  align-items: start;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.panel {
  height: 15rem;
  background: rgba(20, 28, 69, 0.75);
  border: 1px solid var(--navy-line);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cap { margin-top: 0.85rem; color: var(--on-navy-2); font-size: 0.95rem; }
.link { position: relative; height: 15rem; }
.link::before { content: ""; position: absolute; left: 0.5rem; right: 0.5rem; top: 50%; height: 1px; background: var(--navy-line); }
.link::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 1px solid var(--on-navy-2);
  border-right: 1px solid var(--on-navy-2);
  transform: translate(0, -50%) rotate(45deg);
}
.link i { position: absolute; top: 50%; left: 0.5rem; width: 0.45rem; height: 0.45rem; margin-top: -0.225rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); opacity: 0; }
.link.go i { animation: travel 0.55s var(--ease); }
@keyframes travel { 0% { left: 0.5rem; opacity: 1; } 100% { left: calc(100% - 1rem); opacity: 0; } }

.panel-blocks { align-items: flex-start; gap: 0.35rem; }
.b { color: #fff; font-weight: 500; font-size: 0.92rem; padding: 0.45rem 0.8rem; border-radius: 0.5rem; transition: box-shadow 0.3s var(--ease); }
.b-loop { background: var(--loop); padding-bottom: 0.7rem; min-width: 11rem; }
.b-loop > .b { margin: 0.45rem 0 0 0.9rem; }
.b-move { background: var(--move); }
.b-turn { background: var(--turn); }
.b.on { box-shadow: 0 0 0 3px var(--navy-2), 0 0 0 5.5px var(--sun), 0 0 22px 4px var(--sun-glow); }

.code { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 0.95rem; line-height: 1; color: var(--on-navy); }
.code li { position: relative; padding: 0.6rem 0.7rem; border-radius: 0.4rem; white-space: pre; transition: background-color 0.3s; }
.code li.in { padding-left: calc(0.7rem + 4ch); }
.code li.on { background: rgba(255, 200, 61, 0.14); box-shadow: inset 2px 0 0 var(--sun); }
.code b { font-weight: 600; color: var(--cobalt-soft); }
.code em { font-style: normal; color: var(--loop); }
.var {
  position: absolute; right: 0.5rem; top: 50%;
  transform: translateY(-50%) scale(0.9);
  font-size: 0.78rem; padding: 0.2rem 0.5rem; border-radius: 999px;
  background: var(--sun); color: #0d1433;
  opacity: 0; transition: opacity 0.3s, transform 0.3s var(--ease);
}
.var.show { opacity: 1; transform: translateY(-50%) scale(1); }

.panel-run { align-items: center; }
.grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  width: min(100%, 15rem);
  aspect-ratio: 5 / 4;
}
.cell { min-height: 0; overflow: hidden; border-radius: 0.35rem; background: rgba(13, 20, 51, 0.8); border: 1px solid var(--navy-line); display: grid; place-items: center; transition: background-color 0.4s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease); }
.cell.lit { background: rgba(255, 200, 61, 0.3); border-color: var(--sun); box-shadow: 0 0 14px var(--sun-glow); }
.cell svg { display: block; width: 60%; height: 60%; fill: var(--sun); }
.wren {
  position: absolute; left: 0; top: 0;
  width: calc((100% - 4 * 0.3rem) / 5);
  height: calc((100% - 3 * 0.3rem) / 4);
  padding: 0.25rem;
  transform: translate(calc(var(--x, 0) * (100% + 0.3rem)), calc(var(--y, 3) * (100% + 0.3rem)));
  transition: transform 0.5s var(--ease);
  z-index: 1;
}
.wren svg { display: block; width: 100%; height: 100%; overflow: visible; }


/* Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* What we do */
.work { padding-block: clamp(4rem, 8vw, 6.5rem); }
.services { list-style: none; padding: 0; margin: 2.75rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.ill { display: block; width: 100%; height: auto; aspect-ratio: 160 / 110; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; margin-bottom: 1.1rem; transition: border-color 0.3s, transform 0.4s var(--ease); }
.services li:hover .ill { border-color: var(--cobalt-soft); transform: translateY(-3px); }
.ill .d { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.js .ill .d { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) 0.15s; }
.js .in .ill .d { stroke-dashoffset: 0; }
.ill [class^="f-"], .ill [class^="s-"] { transition: opacity 0.6s var(--ease) 0.8s; }
.js .ill [class^="f-"], .js .ill [class^="s-"] { opacity: 0; }
.js .in .ill [class^="f-"], .js .in .ill [class^="s-"] { opacity: 1; }
.f-loop { fill: var(--loop); } .f-move { fill: var(--move); } .f-turn { fill: var(--turn); }
.f-lit { fill: var(--sun); } .f-ink { fill: var(--ink); } .f-soft { fill: var(--soft); }
.s-loop, .s-move, .s-turn, .s-ink { fill: none; stroke-width: 4; stroke-linecap: round; }
.s-loop { stroke: var(--loop); } .s-move { stroke: var(--move); } .s-turn { stroke: var(--turn); }
.s-ink { stroke: var(--ink); stroke-width: 2; }
.services p { margin-top: 0.3rem; color: var(--ink-2); }

/* Projects */
.projects { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(4rem, 8vw, 6.5rem); }
/* Learning with AI */
.ai { padding-block: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--line); }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem 4.5rem; align-items: center; }
.ai-text > p { margin-top: 1.25rem; color: var(--ink-2); font-size: 1.1rem; max-width: 30em; }
.ai-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.85rem; }
.ai-points li { display: flex; align-items: center; gap: 0.8rem; font-weight: 400; }
.ai-points svg { flex: none; width: 2.4rem; height: 2.4rem; padding: 0.5rem; border-radius: 0.7rem; background: var(--soft); fill: none; stroke: var(--cobalt); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tutor { display: grid; gap: 1rem; padding: 1.4rem; border-radius: 1.5rem; background: radial-gradient(30rem 16rem at 100% 0%, rgba(59, 91, 255, 0.3), transparent 70%), #0d1433; color: var(--on-navy); box-shadow: 0 40px 70px -40px rgba(13, 20, 51, 0.6); }
.tutor-code { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 1rem; overflow: hidden; }
.tc-bar { display: flex; align-items: center; gap: 0.35rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--navy-line); }
.tc-bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--navy-line); }
.tc-bar span { margin-left: 0.5rem; font-family: var(--mono); font-size: 0.78rem; color: var(--on-navy-2); }
.tutor pre { margin: 0; padding: 0.9rem 1.1rem; font-family: var(--mono); font-size: 0.95rem; line-height: 1.75; }
.tutor pre b { color: var(--cobalt-soft); font-weight: 500; }
.tc-num { display: inline-grid; vertical-align: bottom; height: 1.75em; overflow: hidden; color: var(--loop); font-weight: 600; }
.tc-num > span { grid-area: 1 / 1; }
.n-old { opacity: 0; transform: translateY(-100%); }
.tc-status { display: grid; padding: 0.6rem 1.1rem; border-top: 1px solid var(--navy-line); font-size: 0.85rem; }
.tc-status > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 0.5rem; }
.tc-status > span::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.st-try { color: #ffb38a; opacity: 0; }
.st-ok { color: #7be0a6; }
.tutor-chat { display: flex; flex-direction: column; gap: 0.6rem; }
.bubble { max-width: 85%; margin: 0; padding: 0.65rem 0.95rem; border-radius: 1rem; font-size: 0.95rem; line-height: 1.45; }
.b-me { align-self: flex-end; background: var(--cobalt); color: #fff; border-bottom-right-radius: 0.3rem; }
.b-ai { align-self: flex-start; display: grid; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--navy-line); border-bottom-left-radius: 0.3rem; }
.b-ai > span { grid-area: 1 / 1; }
.ai-badge { display: block; margin-bottom: 0.15rem; font-size: 0.75rem; font-weight: 500; color: var(--sun); }
.typing { display: flex; align-items: center; gap: 0.3rem; opacity: 0; }
.typing i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--on-navy-2); animation: dots 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 50% { transform: translateY(-4px); opacity: 0.5; } }
.tutor.in .b1 { animation: t-b1 11s var(--ease) 0.4s infinite both; }
.tutor.in .b-ai { animation: t-bai 11s var(--ease) 0.4s infinite both; }
.tutor.in .typing { animation: t-typing 11s linear 0.4s infinite both; }
.tutor.in .ai-msg { animation: t-msg 11s linear 0.4s infinite both; }
.tutor.in .b2 { animation: t-b2 11s var(--ease) 0.4s infinite both; }
.tutor.in .n-old { animation: t-old 11s var(--ease) 0.4s infinite both; }
.tutor.in .n-new { animation: t-new 11s var(--ease) 0.4s infinite both; }
.tutor.in .st-try { animation: t-try 11s linear 0.4s infinite both; }
.tutor.in .st-ok { animation: t-ok 11s linear 0.4s infinite both; }
@keyframes t-b1 { 0% { opacity: 0; transform: translateY(10px); } 4%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes t-bai { 0%, 10% { opacity: 0; transform: translateY(10px); } 14%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes t-typing { 0%, 12% { opacity: 0; } 14%, 25% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes t-msg { 0%, 26% { opacity: 0; } 29%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes t-b2 { 0%, 46% { opacity: 0; transform: translateY(10px); } 50%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes t-old { 0%, 57% { opacity: 1; transform: none; } 62%, 96% { opacity: 0; transform: translateY(-100%); } 100% { opacity: 1; transform: none; } }
@keyframes t-new { 0%, 57% { opacity: 0; transform: translateY(100%); } 62%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(100%); } }
@keyframes t-try { 0%, 60% { opacity: 1; } 63%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes t-ok { 0%, 60% { opacity: 0; } 63%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* Starstep Island promo banner */
.promo {
  --ss-ink: #22305e;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.75rem;
  padding: clamp(2rem, 4.5vw, 3.75rem);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, #a9d6fb 0%, #cfe9ff 55%, #e8f5ff 100%);
  color: var(--ss-ink);
  isolation: isolate;
}
.promo-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cl { position: absolute; display: block; height: 2.2rem; border-radius: 999px; background: #fff; opacity: 0.9; animation: cloud 26s ease-in-out infinite alternate; }
.cl::before, .cl::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cl::before { width: 55%; aspect-ratio: 1; left: 15%; bottom: 30%; }
.cl::after { width: 38%; aspect-ratio: 1; right: 14%; bottom: 25%; }
.cl1 { width: 9rem; top: 12%; left: 46%; }
.cl2 { width: 6rem; top: 82%; left: 58%; animation-duration: 32s; animation-delay: -8s; opacity: 0.75; }
.cl3 { width: 7rem; top: 18%; right: -2%; animation-duration: 22s; animation-delay: -4s; }
@keyframes cloud { to { transform: translateX(3.5rem); } }
.tw { position: absolute; width: 0.7rem; height: 0.7rem; background: #ffc93c; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: tw 2.4s ease-in-out infinite; }
.tw1 { top: 10%; left: 38%; } .tw2 { top: 30%; left: 92%; animation-delay: -0.8s; } .tw3 { top: 84%; left: 48%; animation-delay: -1.5s; width: 0.5rem; height: 0.5rem; } .tw4 { top: 8%; left: 70%; animation-delay: -2s; width: 0.45rem; height: 0.45rem; }
@keyframes tw { 50% { transform: scale(0.4) rotate(45deg); opacity: 0.5; } }

.ss-title { display: flex; flex-direction: column; align-items: flex-start; font-family: "Baloo 2", var(--sans); font-weight: 800; line-height: 0.9; letter-spacing: -0.02em; }
.ss-word { font-size: clamp(3.2rem, 6.5vw, 5.5rem); }
.ss-word span { display: inline-block; }
.ss-word span:nth-child(1) { --k: 0; } .ss-word span:nth-child(2) { --k: 1; } .ss-word span:nth-child(3) { --k: 2; } .ss-word span:nth-child(4) { --k: 3; } .ss-word span:nth-child(5) { --k: 4; } .ss-word span:nth-child(6) { --k: 5; } .ss-word span:nth-child(7) { --k: 6; } .ss-word span:nth-child(8) { --k: 7; }
.ss-isle .d02 { animation-delay: -0.2s; } .ss-isle .d08 { animation-delay: -0.8s; } .ss-isle .d16 { animation-delay: -1.6s; } .ss-isle .d19 { animation-delay: -1.9s; } .ss-isle .d22 { animation-delay: -2.2s; }
.js .promo .ss-word span { opacity: 0; transform: translateY(-0.6em) scale(0.6); }
.js .promo.in .ss-word span { animation: letter-in 0.7s cubic-bezier(.3, 1.6, .5, 1) both, letter-hop 6s ease-in-out infinite; animation-delay: calc(0.15s + var(--k) * 60ms), calc(2s + var(--k) * 90ms); }
@keyframes letter-in { from { opacity: 0; transform: translateY(-0.6em) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes letter-hop { 0%, 14%, 100% { transform: none; } 6% { transform: translateY(-0.14em) rotate(-3deg); } }
.ss-pill { margin: 0.1rem 0 0 0.4rem; font-size: clamp(1.3rem, 2.2vw, 1.8rem); background: #ffc93c; border-radius: 999px; padding: 0.15rem 1.1rem 0.05rem; box-shadow: 0 0.25rem 0 #d99a00; }
.js .promo .ss-pill { transform: scale(0) rotate(-8deg); }
.js .promo.in .ss-pill { animation: pop 0.6s cubic-bezier(.3, 1.6, .5, 1) 0.75s both; }
@keyframes pop { from { transform: scale(0) rotate(-8deg); } to { transform: none; } }
.ss-tag { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 400; max-width: 22em; }
.ss-play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  min-height: 4rem;
  padding: 0.8rem 2.1rem;
  border-radius: 1.2rem;
  background: #1e9e5a;
  color: #fff;
  font-family: "Baloo 2", var(--sans);
  font-weight: 800;
  font-size: 1.7rem;
  text-decoration: none;
  box-shadow: 0 0.35rem 0 #137442, 0 1rem 1.6rem -0.8rem rgba(19, 116, 66, 0.7);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  animation: nudge 3.2s ease-in-out 2.4s infinite;
}
.ss-play svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.ss-play:hover { transform: translateY(-3px); box-shadow: 0 0.5rem 0 #137442, 0 1.4rem 2rem -0.8rem rgba(19, 116, 66, 0.7); animation: none; }
.ss-play:active { transform: translateY(0.3rem); box-shadow: 0 0.05rem 0 #137442; }
@keyframes nudge { 0%, 80%, 100% { transform: none; } 86% { transform: scale(1.05); } 92% { transform: scale(0.98); } }
.ss-chips { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ss-chips li { font-size: 0.9rem; font-weight: 400; padding: 0.3rem 0.85rem; border-radius: 999px; background: rgba(255, 255, 255, 0.7); }

.promo-art { position: relative; }
.ss-float { position: relative; width: min(100%, 34rem); margin-inline: auto; aspect-ratio: 2 / 1; animation: isle 6s ease-in-out infinite; }
.ss-isle { display: block; width: 100%; height: 100%; overflow: visible; }
.ss-bot { position: absolute; left: 50%; bottom: 58%; width: 29%; aspect-ratio: 1; transform: translateX(-50%); animation: bob 3s ease-in-out infinite; }
.ss-drop svg { display: block; width: 100%; height: 100%; overflow: visible; }
.js .promo .ss-drop { opacity: 0; }
.js .promo.in .ss-drop { animation: drop 1s cubic-bezier(.3, 1.5, .5, 1) 0.4s both; }
@keyframes drop { from { opacity: 1; transform: translateY(-160%) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes isle { 50% { transform: translateY(-0.6rem); } }
@keyframes bob { 50% { transform: translate(-50%, -6px); } }
.ss-eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.ss-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(3deg); } }
.ss-star { transform-box: fill-box; transform-origin: center; animation: star 1.8s ease-in-out infinite; }
@keyframes star { 50% { transform: scale(1.12) rotate(8deg); } }
.ss-halo { transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.25); opacity: 0.35; } }
.ss-rise { animation: spark-rise 2.4s ease-out infinite; }
@keyframes spark-rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
.ss-fly { animation: fly 7s ease-in-out infinite; }
@keyframes fly { 25% { transform: translate(14px, -10px); } 50% { transform: translate(4px, 8px); } 75% { transform: translate(-12px, -4px); } }
.ss-flap { transform-box: fill-box; transform-origin: center; animation: flap 0.35s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleX(0.35); } }

.arch { margin-top: clamp(3.5rem, 7vw, 5rem); }
.arch-box { position: relative; border: 1.5px dashed var(--line); border-radius: 1.25rem; padding: 2.25rem 1.5rem 1.5rem; }
.arch-label { position: absolute; top: 0; left: 1.25rem; transform: translateY(-50%); background: var(--surface); padding: 0 0.6rem; font-size: 0.9rem; color: var(--ink-2); }
.arch-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.25rem; }
.arch-flow li {
  position: relative;
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 1rem;
  border-radius: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  animation: node 6s var(--ease) infinite;
  animation-delay: calc(var(--n) * 1s);
}
.arch-flow li:nth-child(1) { --n: 0; } .arch-flow li:nth-child(2) { --n: 1; } .arch-flow li:nth-child(3) { --n: 2; }
.arch-flow li:nth-child(4) { --n: 3; } .arch-flow li:nth-child(5) { --n: 4; }
.arch-flow li:not(:last-child)::after {
  content: "";
  position: absolute; left: 100%; top: 50%;
  width: 2.25rem; height: 1px;
  background: linear-gradient(90deg, var(--line) 0 40%, var(--cobalt) 40% 60%, var(--line) 60%) 0 0 / 300% 100%;
  animation: wire 6s linear infinite;
  animation-delay: calc(var(--n) * 1s + 0.6s);
}
.arch-flow strong { font-weight: 500; }
.arch-flow span:not(.node-ic) { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); line-height: 1.4; }
.node-ic { width: 0.85rem; height: 0.85rem; border-radius: 0.2rem; margin-bottom: 0.6rem; }
.ic-move { background: var(--move); } .ic-loop { background: var(--loop); } .ic-turn { background: var(--turn); }
.ic-ink { background: var(--cobalt); } .ic-lit { background: var(--sun); }
@keyframes node { 0%, 100% { border-color: var(--line); box-shadow: none; } 6%, 14% { border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(59, 91, 255, 0.12); } 24% { border-color: var(--line); box-shadow: none; } }
@keyframes wire { 0% { background-position: 100% 0; } 12%, 100% { background-position: 0 0; } }
.arch figcaption { margin-top: 1rem; color: var(--ink-2); font-size: 0.95rem; }

/* Process: a track fills step to step, each step has its own small animation */
.process { padding-block: clamp(4rem, 8vw, 6.5rem); }
.steps { list-style: none; padding: 0; margin: 2.75rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: 1.25rem; right: calc((100% - 4rem) / 3 - 1.25rem); top: 1.25rem; height: 2px; border-radius: 2px; background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--cobalt), var(--sun)); transform-origin: left; transform: scaleX(0); transition: transform 2.4s cubic-bezier(.5, 0, .3, 1) 0.3s; }
.steps.in::after { transform: none; }
.steps li { position: relative; }
.dot { position: relative; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line); color: var(--ink-2); font-family: var(--mono); font-size: 0.9rem; margin-bottom: 1.25rem; transition: background-color 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s; }
.steps.in li .dot { background: var(--cobalt); border-color: var(--cobalt); color: #fff; box-shadow: 0 0 0 6px rgba(59, 91, 255, 0.14); }
.steps.in li:nth-child(1) .dot { transition-delay: 0.3s; }
.steps.in li:nth-child(2) .dot { transition-delay: 1.5s; }
.steps.in li:nth-child(3) .dot { transition-delay: 2.7s; background: var(--sun); border-color: var(--sun); color: #0d1433; box-shadow: 0 0 0 6px var(--sun-glow); }
.steps h3 { margin-top: 1.1rem; }
.steps p { margin-top: 0.3rem; color: var(--ink-2); }
.pv { display: block; width: 100%; height: auto; aspect-ratio: 200 / 120; overflow: visible; }
.pv-frame { fill: var(--surface); stroke: var(--line); }
.pv * { transform-box: fill-box; transform-origin: center; }
.pv-link { fill: none; stroke: var(--ink-2); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.6; }
.note { opacity: 0; }
.n1, .n4 { fill: var(--sun); } .n2, .n5 { fill: var(--cobalt-soft); } .n3 { fill: #ff9fbd; }
.lens { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; opacity: 0; }
.pv-base { stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.blk { opacity: 0; }
.k1 { fill: var(--move); } .k2 { fill: var(--turn); } .k3 { fill: var(--loop); }
.ok circle { fill: #1e9e5a; } .ok path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ok { opacity: 0; }
.scr { fill: var(--navy); }
.play { fill: var(--sun); }
.bar-bg { fill: rgba(255, 255, 255, 0.18); }
.bar { fill: var(--sun); transform-origin: left; transform: scaleX(0); }
.who { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.star { fill: var(--sun); stroke: #d99a00; stroke-width: 0.8; opacity: 0; }

.steps.in .note { animation: note 6s var(--ease) infinite; }
.steps.in .n2 { animation-delay: 0.15s; } .steps.in .n3 { animation-delay: 0.3s; } .steps.in .n4 { animation-delay: 0.45s; } .steps.in .n5 { animation-delay: 0.6s; }
.steps.in .pv-link { animation: link 6s ease infinite; }
.steps.in .lens { animation: lens 6s ease-in-out infinite; }
@keyframes note { 0% { opacity: 0; transform: scale(0.3) rotate(-8deg); } 7% { opacity: 1; transform: scale(1.08); } 11%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(0.8); } }
@keyframes link { 0%, 22% { stroke-dashoffset: 1; } 40%, 86% { stroke-dashoffset: 0; } 94%, 100% { stroke-dashoffset: 1; } }
@keyframes lens { 0%, 30% { opacity: 0; transform: translate(40px, 50px); } 36% { opacity: 1; transform: translate(40px, 50px); } 52% { transform: translate(100px, 36px); } 68% { transform: translate(150px, 50px); } 80% { opacity: 1; transform: translate(110px, 86px); } 88%, 100% { opacity: 0; transform: translate(110px, 86px); } }
.steps.in .blk { animation: drop-in 6s cubic-bezier(.3, 1.4, .5, 1) infinite; }
.steps.in .k2 { animation-delay: 0.45s; } .steps.in .k3 { animation-delay: 0.9s; }
.steps.in .ok { animation: pop-in 6s cubic-bezier(.3, 1.6, .5, 1) 1.5s infinite; }
@keyframes drop-in { 0% { opacity: 0; transform: translateY(-60px); } 9% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(0); } 8% { opacity: 1; transform: scale(1); } 66% { opacity: 1; transform: scale(1); } 76%, 100% { opacity: 0; transform: scale(0.6); } }
.steps.in .bar { animation: fill 6s ease-in-out infinite; }
.steps.in .play { animation: pulse 6s ease-in-out infinite; }
.steps.in .star { animation: pop-in 6s cubic-bezier(.3, 1.6, .5, 1) infinite; }
.steps.in .s1 { animation-delay: 2.6s; } .steps.in .s2 { animation-delay: 3s; } .steps.in .s3 { animation-delay: 3.4s; }
@keyframes fill { 0%, 6% { transform: scaleX(0); } 45%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes pulse { 0%, 100% { transform: none; } 4% { transform: scale(1.25); } 10% { transform: none; } }

/* Contact */
.contact { background: radial-gradient(50rem 26rem at 100% 0%, rgba(59, 91, 255, 0.28), transparent 70%), var(--navy); color: var(--on-navy); padding-block: clamp(4.5rem, 9vw, 7rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: center; }
.contact h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 250; letter-spacing: -0.045em; line-height: 1.04; }
.contact-sub { margin-top: 1.1rem; color: var(--on-navy-2); font-size: 1.1rem; }
.cc {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -40px rgba(0, 0, 0, 0.8);
}
.cc::before { content: ""; position: absolute; top: -4rem; right: -4rem; width: 9rem; height: 9rem; border-radius: 2rem; background: var(--sun); filter: blur(70px); opacity: 0.35; pointer-events: none; }
.cc-label { color: var(--on-navy-2); font-size: 0.9rem; }
.cc-mail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  padding-block: 0.6rem 0.9rem;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 100% / 0 1px;
  transition: background-size 0.5s var(--ease);
  overflow-wrap: anywhere;
}
.cc-mail:hover { background-size: 100% 1px; }
.cc-mail svg { flex: none; width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease), color 0.3s; }
.cc-mail:hover svg { transform: translate(3px, -3px); color: var(--sun); }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.cc-copy { min-height: 2.75rem; padding: 0.5rem 1.15rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; color: var(--on-navy); font: inherit; font-weight: 400; font-size: 0.95rem; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.cc-copy:hover { background: rgba(255, 255, 255, 0.08); }
.cc-copy.done { border-color: var(--sun); color: var(--sun); }
.cc-where { display: flex; align-items: center; gap: 0.5rem; color: var(--on-navy-2); font-size: 0.95rem; }
.cc-where::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.18); }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; padding-block: 1.75rem 2.5rem; color: var(--ink-2); font-size: 0.92rem; }

/* Tablet */
@media (max-width: 1000px) {
  .hero-head, .promo, .ai-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .link { height: 2.75rem; }
  .link::before { left: 50%; right: auto; top: 0.4rem; bottom: 0.4rem; width: 1px; height: auto; transform-origin: top; animation-name: draw-v; }
  .link::after { right: auto; left: 50%; top: auto; bottom: 0.4rem; transform: translate(-50%, 0) rotate(135deg); }
  .link i { left: 50%; margin-left: -0.225rem; top: 0.4rem; }
  .link.go i { animation-name: travel-v; }
  @keyframes travel-v { 0% { top: 0.4rem; opacity: 1; } 100% { top: calc(100% - 0.8rem); opacity: 0; } }
  @keyframes draw-v { from { transform: scaleY(0); } }
  .panel { height: auto; min-height: 12rem; }
  .arch-flow { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .arch-flow li:not(:last-child)::after { left: 50%; top: 100%; width: 1px; height: 1.5rem; background: var(--line); animation: none; }
}
@media (max-width: 600px) {
  .services, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps::before, .steps::after { left: 1.25rem; right: auto; top: 1.25rem; bottom: 1.25rem; width: 2px; height: auto; transform-origin: top; }
  .steps::after { transform: scaleY(0); background: linear-gradient(var(--cobalt), var(--sun)); }
  .steps li { padding-left: 3.75rem; }
  .dot { position: absolute; left: 0; top: 0; }
  .top nav { gap: 0; }
  .top nav a { padding-inline: 0.45rem; font-size: 0.88rem; white-space: nowrap; }
  .brand span { display: none; }
  .ss-play { font-size: 1.45rem; padding-inline: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .promo .ss-word span, .js .promo .ss-pill, .js .promo .ss-drop, .note, .blk, .ok, .star { opacity: 1; transform: none; }
  .pv-link { stroke-dashoffset: 0; }
  .bar { transform: none; }
}
