/* ==========================================================
   R3w Development
   Brand colours: Sapphire Blue #0042AC, Ocean Blue #00D3FB, Neon Jade #83FD80
   ========================================================== */

/* ---------- Fonts ----------
   Served from this site instead of Google Fonts, so visitors' browsers don't
   contact Google before they have agreed to anything. Latin and Latin Extended
   cover Romanian and Hungarian. */

/* Cormorant Garamond, latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Cormorant Garamond, latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter, latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Space Grotesk, latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Space Grotesk, latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sapphire: #0042AC;
  --ocean: #00D3FB;
  --jade: #83FD80;
  --ink: #04122B; /* dark text on bright buttons */

  --gradient: linear-gradient(120deg, var(--sapphire) 0%, var(--ocean) 55%, var(--jade) 100%);

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 20px;
  --container: 1160px;
  --nav-h: 72px;
}

/* Dark theme (default) */
:root,
[data-theme="dark"] {
  --bg: #040A18;
  --text: #EAF0FA;
  --muted: #94A4C2;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);

  --label: var(--jade);
  --label-bg: rgba(131, 253, 128, .1);
  --link: var(--jade);
  --link-line: rgba(131, 253, 128, .4);

  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  --glass-bg-hover: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035));
  --glass-border: rgba(255, 255, 255, .1);
  --glass-shadow: 0 10px 40px -12px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
  --nav-bg: rgba(4, 10, 24, .55);
  --menu-bg: rgba(4, 10, 24, .88);
  --sk: rgba(255, 255, 255, .08);
  --bar-bg: rgba(255, 255, 255, .04);
  --panel: rgba(4, 10, 24, .5);

  --orb-sapphire: .55;
  --orb-ocean: .16;
  --orb-jade: .16;
  --mark-a: var(--ocean);
  --mark-b: var(--jade);

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #EEF3FB;
  --text: #0B1733;
  --muted: #4E5D7A;
  --border: rgba(11, 23, 51, .08);
  --border-strong: rgba(11, 23, 51, .15);

  --label: var(--ink);
  --label-bg: var(--jade);
  --link: var(--ink);
  --link-line: var(--jade);

  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .45));
  --glass-bg-hover: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .6));
  --glass-border: rgba(255, 255, 255, .85);
  --glass-shadow: 0 10px 40px -14px rgba(0, 42, 110, .18), inset 0 1px 0 rgba(255, 255, 255, .9);
  --nav-bg: rgba(238, 243, 251, .6);
  --menu-bg: rgba(238, 243, 251, .92);
  --sk: rgba(11, 23, 51, .07);
  --bar-bg: rgba(255, 255, 255, .55);
  --panel: rgba(255, 255, 255, .65);

  --orb-sapphire: .22;
  --orb-ocean: .3;
  --orb-jade: .45;
  --mark-a: var(--sapphire);
  --mark-b: #0FA36B;

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-tap-highlight-color: transparent; }
html.menu-open { overflow: hidden; }
main { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.mark { color: var(--jade); }
[data-theme="light"] .mark {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--jade) 58%, var(--jade) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Background glow + glass ---------- */

/* Soft colour that sits behind the whole page.
   100lvh is the tallest the screen gets, so when a phone's toolbar slides away
   there is no strip left uncovered (it used to flash dark there). */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
/* The glows are gradients, not blurred circles: a blur this large had to be
   redrawn while scrolling and made the page stutter, especially on phones */
.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--orb) 0%, color-mix(in srgb, var(--orb) 55%, transparent) 45%, color-mix(in srgb, var(--orb) 16%, transparent) 72%, transparent 100%);
  transition: opacity .35s ease;
}
.orb--sapphire { --orb: var(--sapphire); width: 1120px; height: 1120px; top: -500px; left: -460px; opacity: var(--orb-sapphire); }
.orb--ocean    { --orb: var(--ocean);    width: 860px;  height: 860px;  top: calc(35% - 200px); right: -400px; opacity: var(--orb-ocean); }
.orb--jade     { --orb: var(--jade);     width: 820px;  height: 820px;  bottom: -420px; left: calc(15% - 200px); opacity: var(--orb-jade); }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn--primary {
  background: var(--jade);
  color: var(--ink);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(131, 253, 128, .55);
}

.btn--ghost {
  background: transparent; /* <button>s otherwise keep the browser's grey */
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--jade);
  background: rgba(131, 253, 128, .08);
}

.btn--small { padding: 9px 18px; font-size: 14px; }

.link {
  display: inline-flex;
  gap: 6px;
  font-weight: 600;
  color: var(--link);
}
.link span:first-child { border-bottom: 2px solid var(--link-line); }
.link { padding: 6px 0; }
.link .arrow { transition: transform .2s ease; }
.link:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; color: var(--text); }
.wordmark { display: block; height: 27px; width: auto; overflow: visible; }

/* The 3 is two code chevrons in the brand gradient (full logo files in assets/brand) */
.mark__a { stop-color: var(--mark-a); }
.mark__b { stop-color: var(--mark-b); }
.mark { transition: transform .3s cubic-bezier(.2, .7, .3, 1); }
.logo:hover .mark { transform: translateX(60px); } /* SVG units: about 2 px on screen */

/* It types itself in like a prompt when the page loads */
.nav .mark path { stroke-dasharray: 1 1; animation: mark-draw .9s cubic-bezier(.6, 0, .25, 1) .3s both; }
@keyframes mark-draw {
  from { stroke-dashoffset: 1; opacity: 0; }
  8%   { opacity: 1; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav__menu a:not(.btn) {
  font-size: 15px;
  color: var(--muted);
  transition: color .2s ease;
}
.nav__menu a:not(.btn):hover,
.nav__menu a.is-active { color: var(--text); }

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

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.lang button {
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 600 12px/1.2 var(--font-body);
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] {
  background: var(--jade);
  color: var(--ink);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--jade); }
.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun { display: none; }

.nav__extra { display: none; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s ease, top .25s ease;
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  min-height: min(100vh, 880px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 96px;
}

/* Let grid columns shrink below their content (long code lines) on small screens */
.hero__inner > *,
.about > *,
.contact > * { min-width: 0; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 700;
  margin-bottom: 40px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero reel: five short product scenes ---------- */

.stage { --mx: 0; --my: 0; }

.window {
  transform: perspective(1400px) rotateY(calc(var(--mx) * 4deg)) rotateX(calc(var(--my) * -4deg));
  transition: transform .5s ease-out;
}
.window__page { position: relative; height: 340px; }

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease, visibility .5s;
}
.scene.is-active { opacity: 1; visibility: visible; transform: none; }

/* Shared entrance animations, started when a scene begins playing */
.is-playing .a-rise { animation: rise .55s cubic-bezier(.2, .7, .3, 1) var(--t, 0s) both; }
.is-playing .a-fade { animation: fade .5s ease var(--t, 0s) both; }
.is-playing .a-pop  { animation: pop .45s cubic-bezier(.2, .7, .3, 1) var(--t, 0s) both; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop {
  0%   { opacity: 0; transform: scale(.6); }
  70%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: none; }
}
@keyframes press {
  0%   { box-shadow: 0 0 0 0 rgba(131, 253, 128, .6); }
  25%  { transform: scale(.93); }
  100% { transform: none; box-shadow: 0 0 0 14px rgba(131, 253, 128, 0); }
}

/* The mouse pointer that clicks things. JS measures where to go. */
.cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 22px;
  height: 22px;
  opacity: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
}
.cursor path { fill: #fff; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.is-playing .cursor { animation: cursor-move 1.8s cubic-bezier(.45, 0, .25, 1) var(--cd, 2s) both; }
@keyframes cursor-move {
  0%       { opacity: 0; transform: translate(var(--sx), var(--sy)); }
  12%      { opacity: 1; }
  62%      { transform: translate(var(--tx), var(--ty)); }
  68%      { transform: translate(var(--tx), var(--ty)) scale(.82); }
  76%, 100% { opacity: 1; transform: translate(var(--tx), var(--ty)); }
}

/* 1. Development */
.scene--dev { --cd: 2.5s; }
.mini {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.mini__hero {
  position: relative;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sapphire) 0%, #0A2A6B 55%, #04122B 100%);
  color: #fff;
  overflow: hidden;
}
.mini__hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -40px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(131, 253, 128, .35), transparent 70%);
}
.mini__title {
  display: grid;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.mini__title > * { grid-area: 1 / 1; }
.mini__title .ghost { visibility: hidden; }
.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--jade);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.mini__text { margin: 6px 0 16px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.mini__btn {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--jade);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}
.is-playing .mini__btn {
  animation: pop .45s cubic-bezier(.2, .7, .3, 1) var(--t) both, press .6s ease 3.6s;
}
.mini__cards { height: 110px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini__cards i {
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(var(--border-strong), var(--border-strong)) 16px 20px / 45% 7px no-repeat,
    linear-gradient(var(--sk), var(--sk)) 16px 38px / 70% 5px no-repeat,
    var(--glass-bg);
  box-shadow: var(--glass-shadow);
}

/* 2. Automation */
.scene--auto { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.flow { display: flex; align-items: center; }
.node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--sk);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.node i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.is-playing .node   { animation: node-on .4s ease var(--t) forwards; }
.is-playing .node i { animation: dot-on .4s ease var(--t) forwards; }
@keyframes node-on { to { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(131, 253, 128, .15); } }
@keyframes dot-on  { to { background: var(--jade); box-shadow: 0 0 8px var(--jade); } }

.wire { position: relative; flex: 1; min-width: 14px; height: 2px; margin: 0 6px; background: var(--sk); }
.wire::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 10px var(--jade);
  opacity: 0;
}
.is-playing .wire::after { animation: travel .6s ease-in-out var(--t) both; }
@keyframes travel {
  0%   { left: 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

.log {
  list-style: none;
  margin: 0;
  padding: 16px 18px;
  display: grid;
  align-content: start;
  gap: 11px;
  border-radius: 14px;
  background: var(--panel);
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 12px;
}
.log li { display: flex; gap: 14px; }
.log time { color: var(--muted); }
.log__done span {
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--label-bg);
  color: var(--label);
  font-weight: 600;
}

/* 3. Security */
.scene--sec { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.scan-head { display: grid; gap: 8px; font-size: 13px; font-weight: 500; }
.scan-bar { height: 4px; border-radius: 4px; background: var(--sk); overflow: hidden; }
.scan-bar i {
  display: block;
  height: 100%;
  background: var(--jade);
  box-shadow: 0 0 10px var(--jade);
  transform: scaleX(0);
  transform-origin: left;
}
.is-playing .scan-bar i { animation: grow 3s cubic-bezier(.4, 0, .2, 1) .3s forwards; }
@keyframes grow { to { transform: scaleX(1); } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--sk);
  font-size: 12.5px;
}
.st { display: grid; place-items: center end; }
.st > * { grid-area: 1 / 1; }
.spin {
  width: 13px;
  height: 13px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--jade);
  border-radius: 50%;
}
.is-playing .spin { animation: spin .7s linear infinite, fade-out .15s linear var(--t) forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
.checks b { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.is-playing .checks b { animation: pop .35s ease var(--t) both; }
.checks .ok   { background: rgba(131, 253, 128, .15); color: var(--jade); }
.checks .warn { background: rgba(255, 184, 77, .15); color: #FFB84D; }
[data-theme="light"] .checks .ok   { background: var(--jade); color: var(--ink); }
[data-theme="light"] .checks .warn { background: #FFE3B3; color: #7A4A00; }

.report {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--label-bg);
  color: var(--label);
  font-size: 12.5px;
  font-weight: 600;
}

/* 4. Weddings */
.scene--wed { --cd: 1.9s; display: grid; place-items: center; }
.invite {
  position: relative;
  width: min(100%, 300px);
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: #FBF8F2;
  color: #2B2620;
  text-align: center;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
}
.invite::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(43, 38, 32, .14);
  border-radius: 11px;
  pointer-events: none;
}
.invite small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8C8174; }
.invite__names {
  margin: 8px 0 4px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
}
.is-playing .invite__names { animation: names 1s ease .6s both; }
@keyframes names {
  from { opacity: 0; letter-spacing: .2em; filter: blur(4px); }
  to   { opacity: 1; letter-spacing: 0; filter: none; }
}
.invite__date { font-size: 12px; letter-spacing: .06em; color: #8C8174; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 16px; }
.countdown div { padding: 6px 0; border-radius: 8px; background: #F1ECE3; }
.countdown b { display: block; font-family: var(--font-head); font-size: 17px; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 10px; color: #8C8174; }

.rsvp {
  position: relative;
  z-index: 1;
  display: inline-grid;
  padding: 8px 18px;
  border-radius: 999px;
  background: #2B2620;
  color: #FBF8F2;
  font-size: 12.5px;
  font-weight: 600;
}
.rsvp > span { grid-area: 1 / 1; }
.rsvp__b { opacity: 0; }
.is-playing .rsvp { animation: rise .5s ease var(--t) both, press .6s ease 3.03s, rsvp-done .3s ease 3.1s forwards; }
.is-playing .rsvp__a { animation: fade-out .2s ease 3.1s forwards; }
.is-playing .rsvp__b { animation: fade .25s ease 3.2s forwards; }
@keyframes rsvp-done { to { background: var(--jade); color: var(--ink); } }

/* 5. AirBnb */
.scene--bnb { --cd: 2.1s; display: grid; place-items: center; }
.phone {
  width: 232px;
  height: 314px;
  padding: 9px;
  border-radius: 30px;
  background: #0A0F1C;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
}
.phone__screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: #F4F7FC;
  color: #0B1733;
}
.phone__notif {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  font-size: 11px;
  opacity: 0;
}
.phone__notif i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 6px var(--jade); }
.phone__notif b { display: block; }
.phone__notif small { color: #5B6782; }
.is-playing .phone__notif { animation: notif 1.7s ease .25s both; }
@keyframes notif {
  0%       { opacity: 0; transform: translateY(-120%); }
  15%, 75% { opacity: 1; transform: none; }
  100%     { opacity: 0; transform: translateY(-120%); }
}

.phone__hero {
  padding: 26px 14px 14px;
  background: linear-gradient(150deg, var(--sapphire), #0089C2);
  color: #fff;
}
.phone__hero b { display: block; font-family: var(--font-head); font-size: 14px; }
.phone__hero small { font-size: 11px; opacity: .8; }

.phone__list { list-style: none; margin: 0; padding: 10px 10px 0; display: grid; gap: 6px; }
.phone__list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #fff;
  font-size: 11px;
}
.phone__list span { color: #5B6782; white-space: nowrap; }
.phone__list b { font-weight: 600; white-space: nowrap; }
.is-playing .phone__list .tap { animation: rise .55s cubic-bezier(.2, .7, .3, 1) var(--t) both, tap .6s ease 3.2s; }
@keyframes tap { 30% { background: #DFFFD9; } }

.secret { display: inline-grid; position: relative; z-index: 1; }
.secret > span { grid-area: 1 / 1; text-align: right; }
.secret__b { opacity: 0; }
.is-playing .secret__a { animation: fade-out .2s ease 3.25s forwards; }
.is-playing .secret__b { animation: fade .25s ease 3.3s forwards; }

.phone__map {
  position: relative;
  flex: 1;
  margin: 8px 10px 10px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
    linear-gradient(0deg, transparent 60%, #fff 60%, #fff 66%, transparent 66%),
    linear-gradient(35deg, transparent 30%, #fff 30%, #fff 34%, transparent 34%),
    #DDE6F2;
}
.phone__map i {
  position: absolute;
  left: 50%;
  top: 37%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--jade);
  border: 2px solid #0B1733;
  animation: ping 1.6s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(131, 253, 128, .7); }
  100% { box-shadow: 0 0 0 14px rgba(131, 253, 128, 0); }
}

/* Story-style progress tabs under the window */
.reel__caption { display: none; }

.reel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.reel__tab {
  position: relative;
  min-width: 0;
  padding: 0 0 11px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 12px/1.2 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}
.reel__tab span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel__tab:hover,
.reel__tab.is-active { color: var(--text); }
.reel__tab::before,
.reel__tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
}
.reel__tab::before { background: var(--sk); }
.reel__tab::after { background: var(--jade); transform: scaleX(0); transform-origin: left; }
.reel__tab.is-done::after { transform: none; }
.reel__tab.is-active::after { animation: reel-progress 6.5s linear forwards; }
.stage:hover .reel__tab.is-active::after { animation-play-state: paused; }
@keyframes reel-progress { to { transform: none; } }

/* ---------- Sections ---------- */

.section { padding: 110px 0; }

.section__label,
.process__num {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--label-bg);
  color: var(--label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section__label { margin-bottom: 18px; }

.section h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }

.section__head { max-width: 640px; margin-bottom: 52px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center h2 { margin-bottom: 0; }

/* Section title drawn as a soft neon sign */
.section .neon-title {
  font-size: clamp(36px, 4.6vw, 54px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--jade);
  text-shadow: 0 0 6px rgba(131, 253, 128, .45), 0 0 18px rgba(131, 253, 128, .25);
}
.is-visible .neon-title { animation: sign-on 1.4s linear .2s both; }
@keyframes sign-on {
  0%        { opacity: .15; }
  6%        { opacity: 1; }
  10%       { opacity: .25; }
  18%       { opacity: 1; }
  22%       { opacity: .4; }
  28%, 100% { opacity: 1; }
}
/* on a light page the tube gets a dark outline so it stays readable */
[data-theme="light"] .section .neon-title {
  -webkit-text-stroke: 2px var(--text);
  paint-order: stroke fill;
  text-shadow: 0 4px 16px rgba(131, 253, 128, .35);
}
.section__head p:last-child:not(.section__label) { color: var(--muted); font-size: 18px; }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.founder { position: relative; margin: 0; }
.founder::before {
  content: '';
  position: absolute;
  inset: 15% -10% -8% 20%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(131, 253, 128, .22), transparent 65%);
  filter: blur(30px);
}
.founder img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 80px -30px rgba(0, 66, 172, .7);
}
.founder__tag {
  position: absolute;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  padding: 14px 20px;
  border-radius: 16px;
}
.founder__tag b { font-family: var(--font-head); font-size: 17px; }
.founder__tag span { font-size: 13px; color: var(--muted); }

/* The photo is bright, so in dark mode the tag needs a darker glass to stay readable */
[data-theme="dark"] .founder__tag {
  background: rgba(6, 14, 32, .62);
  border-color: rgba(255, 255, 255, .14);
}
[data-theme="dark"] .founder__tag span { color: rgba(234, 240, 250, .75); }

.about__intro > p:not(.section__label) { color: var(--muted); margin-bottom: 16px; font-size: 17px; }
.about__intro strong { color: var(--text); }
.about__intro > .mission {
  margin-bottom: 22px;
  padding-left: 18px;
  border-left: 3px solid var(--jade);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 21px;
  line-height: 1.45;
}

.timeline {
  list-style: none;
  margin: 32px 0 0;
  padding: 6px 28px;
  border-radius: var(--radius);
}
.timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px 0;
}
.timeline li + li { border-top: 1px solid var(--border); }
.timeline__when { padding-top: 2px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 17px; }
.timeline p { margin-top: 3px; color: var(--muted); font-size: 14.5px; }
.now {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--label-bg);
  color: var(--label);
  font: 600 11px/1.5 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Solution cards ---------- */

.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.card:hover,
.project:hover,
.process li:hover { border-color: rgba(131, 253, 128, .5); }
.card:hover { transform: translateY(-4px); background: var(--glass-bg-hover); }


.card { display: flex; flex-direction: column; }
.card__more { margin-top: auto; padding-top: 26px; }

/* Neon "details" button that leads to each service page */
.btn-neon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--jade);
  border-radius: 999px;
  background: rgba(131, 253, 128, .06);
  color: var(--jade);
  font-size: 14.5px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(131, 253, 128, .6);
  position: relative;
  box-shadow: 0 0 12px rgba(131, 253, 128, .3), inset 0 0 8px rgba(131, 253, 128, .12);
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-neon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.btn-neon:hover {
  background: var(--jade);
  color: var(--ink);
  text-shadow: none;
  box-shadow: 0 0 30px rgba(131, 253, 128, .7);
  transform: translateY(-2px);
  animation: none;
}
.btn-neon:hover svg { transform: translateX(4px); }
[data-theme="light"] .btn-neon { background: var(--jade); color: var(--ink); text-shadow: none; }
.btn-neon::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  box-shadow: 0 0 24px rgba(131, 253, 128, .6), inset 0 0 12px rgba(131, 253, 128, .22);
  opacity: 0;
  pointer-events: none;
  animation: neon-breathe 2.8s ease-in-out infinite;
}
[data-theme="light"] .btn-neon::after { display: none; }
@keyframes neon-breathe { 50% { opacity: 1; } }

.card h3 { font-size: 22px; margin-bottom: 12px; font-weight: 600; }
.card h3 span span { color: var(--muted); font-weight: 500; }

/* Icons sit in line with the title, drawn in jade */
.with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: rgba(131, 253, 128, .12);
  stroke: var(--jade);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: filter .25s ease, transform .25s ease;
}
.card:hover .icon {
  filter: drop-shadow(0 0 6px rgba(131, 253, 128, .7));
  transform: scale(1.08);
}
[data-theme="light"] .icon {
  fill: var(--jade);
  stroke: var(--text);
}
.icon.icon--line { fill: none; }
[data-theme="light"] .card:hover .icon { filter: drop-shadow(0 2px 6px rgba(131, 253, 128, .9)); }
.card > p { color: var(--muted); margin-bottom: 22px; }

.card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
}
.card__list li {
  position: relative;
  padding-left: 24px;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--jade);
}

.card__list--inline { display: flex; flex-wrap: wrap; gap: 8px; }
.card__list--inline li {
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14px;
}
.card__list--inline li::before { display: none; }

.subhead {
  margin: 64px 0 20px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
}
.subhead::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.steps b {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--jade);
  color: var(--ink);
  font-size: 13px;
}

/* ---------- Projects ---------- */

/* Projects slide between two arrows, inside the page width */
.carousel { position: relative; }

.projects {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* room for the cards' shadows and hover border */
  padding: 6px 1px 30px;
  margin: -6px -1px -30px;
}
.projects::-webkit-scrollbar { display: none; }

.project {
  flex: 0 0 calc((100% - 24px) / 2);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  transition: background .25s ease, border-color .25s ease;
}
.project:hover { background: var(--glass-bg-hover); }

.round-btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, opacity .2s ease, transform .2s ease;
}
.round-btn:hover { border-color: var(--jade); }
.round-btn:active { transform: scale(.94); }
.round-btn svg,
.shots__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  margin-top: -40px;
}
.carousel__btn--prev { left: -76px; }
.carousel__btn--next { right: -76px; }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }

/* A glass browser window around each project's screenshots */
.browser {
  position: relative;
  margin: 14px 14px 0;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass-bg);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.browser__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--bar-bg);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }

/* The address bar is a real link to the live site */
.browser__url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 5px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--sk);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.browser__url:hover { color: var(--text); border-color: var(--jade); }
.browser__addr { overflow: hidden; text-overflow: ellipsis; }
.browser__url svg {
  flex: none;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--jade);
  stroke-width: 2.2;
  stroke-linecap: round;
}
[data-theme="light"] .browser__url svg { stroke: currentColor; }

.browser__live {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--label-bg);
  color: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.browser__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  animation: live 2s ease-out infinite;
}
[data-theme="light"] .browser__live i { background: var(--ink); }
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(131, 253, 128, .7); }
  100% { box-shadow: 0 0 0 7px rgba(131, 253, 128, 0); }
}

/* Screenshots of one website, swiped through inside the window */
.shots { position: relative; overflow: hidden; }
.shots__track {
  display: flex;
  aspect-ratio: 16 / 10;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.shots__track::-webkit-scrollbar { display: none; }
.shots__track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  scroll-snap-align: start;
}

/* A sheet of light that crosses the glass on hover */
.shots::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .13) 50%, transparent 65%);
  transform: translateX(-110%);
  pointer-events: none;
}
.project:hover .shots::after { transform: translateX(110%); transition: transform 1.1s ease; }

.shots__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(6, 14, 32, .55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .2s ease, background .2s ease;
}
.shots__btn--prev { left: 10px; }
.shots__btn--next { right: 10px; }
.shots:hover .shots__btn { opacity: 1; }
.shots__btn:hover { background: rgba(6, 14, 32, .85); }
.shots .shots__btn:disabled { opacity: 0; pointer-events: none; }

.shots__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(6, 14, 32, .5);
  transform: translateX(-50%);
}
.shots__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.shots__dots button.is-active { width: 20px; background: var(--jade); }
.shots__dots button { position: relative; }
.shots__dots button::after { content: ''; position: absolute; inset: -12px -4px; }
.shots.is-single .shots__btn,
.shots.is-single .shots__dots { display: none; }

@media (hover: none) {
  .shots__btn { display: none; }
}

.project__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.project__body h3 { font-size: 21px; margin-bottom: 10px; }
.project__body > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; flex: 1; }

/* What the client says about working together */
.quote {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--jade);
  border-radius: 4px 14px 14px 4px;
  background: var(--sk);
}
.quote p { margin-bottom: 8px; color: var(--text); font-size: 15px; line-height: 1.55; }
.quote footer { font-size: 13px; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tags span {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--label-bg);
  color: var(--label);
}

.project--next { border: 1px dashed var(--border-strong); }
.project__next {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
}
.project__next h3 { font-size: 21px; margin-bottom: 10px; }
.project__next p { color: var(--muted); font-size: 15px; margin-bottom: 24px; max-width: 260px; }

/* ---------- Process ---------- */

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process li {
  padding: 28px;
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease;
}
.process li:hover { transform: translateY(-4px); }
.process__num { margin-bottom: 18px; }
.process h3 { font-size: 20px; margin-bottom: 10px; }
.process p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-bg);
  transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(131, 253, 128, .45); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--label-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2383FD80' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s ease;
}
[data-theme="light"] .faq summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304122B' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq details p a { color: var(--link); font-weight: 600; border-bottom: 2px solid var(--link-line); }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact__copy p:not(.section__label) { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact__list a::after { content: ''; position: absolute; inset: -8px 0; }
.contact__list span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__list a {
  position: relative;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--link);
  border-bottom: 2px solid var(--link-line);
  padding-bottom: 2px;
  word-break: break-all;
}

.form {
  display: grid;
  gap: 34px;
  padding: 44px 40px 40px;
  border-radius: 24px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* Line inputs with the label sitting inside, lifting up once you type */
.field { position: relative; display: block; }
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 22px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}
.field textarea { resize: none; min-height: 96px; line-height: 1.5; }
.field span {
  position: absolute;
  left: 0;
  top: 22px;
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .2s ease, color .2s ease;
}
.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:focus + span,
.field textarea:not(:placeholder-shown) + span {
  transform: translateY(-20px) scale(.8);
}
.field:focus-within span { color: var(--link); }
.field::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--jade);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.field:focus-within::after { transform: none; }

/* Keep browser autofill from painting a coloured box behind the text */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  transition: background-color 9999s ease 0s;
}

/* Service picker */
.choice__label { margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.pill:hover span { color: var(--text); border-color: var(--muted); }
.pill input:checked + span {
  background: var(--jade);
  border-color: var(--jade);
  color: var(--ink);
}
.pill input:focus-visible + span { outline: 2px solid var(--jade); outline-offset: 3px; }

.form .btn { width: 100%; padding: 16px 26px; }

/* ---------- Quick contact (phones) ---------- */

.quick { display: none; }

@media (max-width: 640px) {
  .quick {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    justify-items: end;
    gap: 10px;
    pointer-events: none;
  }
  .quick__btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: var(--jade);
    color: var(--ink);
    box-shadow: 0 10px 30px -6px rgba(131, 253, 128, .6), 0 4px 14px rgba(0, 0, 0, .3);
    cursor: pointer;
    opacity: 0;
    transform: scale(.4) translateY(20px);
    transition: opacity .3s ease, transform .4s cubic-bezier(.2, .9, .3, 1.3);
    pointer-events: auto;
  }
  .quick.is-shown .quick__btn { opacity: 1; transform: none; }
  .quick__btn:active { transform: scale(.92); }
  .quick__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: rgba(131, 253, 128, .55);
    opacity: 0;
    animation: quick-ping 3.2s ease-out infinite;
  }
  .quick.is-open .quick__btn::before { animation: none; }
  @keyframes quick-ping {
    0%        { transform: scale(1); opacity: .55; }
    40%, 100% { transform: scale(1.55); opacity: 0; }
  }
  .quick__btn svg {
    grid-area: 1 / 1;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s ease, opacity .2s ease;
  }
  .quick__btn .quick__x { opacity: 0; transform: rotate(-90deg); }
  .quick.is-open .quick__btn svg:first-child { opacity: 0; transform: rotate(90deg); }
  .quick.is-open .quick__btn .quick__x { opacity: 1; transform: none; }

  .quick::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(4, 10, 24, .72);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
  }
  [data-theme="light"] .quick::before { background: rgba(238, 243, 251, .6); }
  .quick.is-open::before { opacity: 1; visibility: visible; pointer-events: auto; }
  .quick__menu { display: grid; justify-items: end; gap: 10px; }
  .quick__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.9);
    transition: opacity .25s ease, transform .3s cubic-bezier(.2, .9, .3, 1.2), visibility .3s;
  }
  .quick__item svg { width: 20px; height: 20px; fill: none; stroke: var(--jade); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  [data-theme="light"] .quick__item svg { stroke: var(--text); }
  .quick.is-open .quick__item {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition-delay: calc(var(--i) * 60ms);
  }
}

/* ---------- Footer ---------- */

.footer { padding-top: 64px; border-top: 1px solid var(--border); }

/* Brand, navigation, contact, legal */
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto auto auto;
  justify-content: space-between;
  gap: 40px 72px;
}
.footer .wordmark { height: 58px; }
.wordmark__sub { fill: var(--muted); }
.footer__tagline { max-width: 290px; margin: 20px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.55; }

.footer__social { display: flex; gap: 12px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.footer__social a:hover { border-color: var(--jade); color: var(--jade); transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.footer__title {
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
}
.footer__pair { display: flex; gap: 48px; }
.footer__list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 15px; }
.footer__list a,
.footer__list button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease;
}
.footer__list a:hover,
.footer__list button:hover { color: var(--text); }

/* Two classes on purpose: this element is also a .container, whose padding shorthand comes later
   in this file and would otherwise wipe out these values (and only top/bottom, to keep its sides) */
.footer .footer__bottom { margin-top: 56px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--border); }
.footer__bottom p { color: var(--muted); font-size: 14px; }

/* Tablets: the brand takes the full first row, the three link columns share the second */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(3, auto); }
  .footer__brand { grid-column: 1 / -1; }
}
/* Phones: one column. The extra room at the bottom keeps the floating contact button off the text */
@media (max-width: 640px) {
  .footer { padding-top: 52px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer .footer__bottom { margin-top: 44px; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* ---------- Cookie consent ---------- */

.consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 70;
  width: min(400px, calc(100% - 32px));
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--menu-bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.consent.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s ease, transform .3s ease;
}
.consent__title { font-family: var(--font-head); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.consent__text { color: var(--muted); font-size: 14px; line-height: 1.55; }
.consent__text a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-underline-offset: 3px;
}
/* Refuse and Accept look the same on purpose: EU rules don't allow nudging either way */
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

@media (max-width: 640px) {
  .consent {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent,
  .consent.is-shown { transform: none; transition: none; }
}

/* ---------- Touch feedback ---------- */

@media (hover: none) {
  .card,
  .project,
  .process li,
  .faq details,
  .btn,
  .btn-neon,
  .pill span,
  .round-btn { transition: transform .15s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease; }
  .card:active,
  .process li:active { transform: scale(.98); }
  .btn:active,
  .btn-neon:active,
  .pill:active span { transform: scale(.95); }
  /* hover lifts would stick after a tap */
  .card:hover,
  .project:hover { transform: none; }
}

/* ---------- Reveal animation ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Blocks that loop an animation pause it while they are off screen (main.js sets .is-paused) */
.is-paused,
.is-paused *,
.is-paused *::before,
.is-paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scene *,
  .scene *::before,
  .scene *::after { animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .reel__tab.is-active::after { animation: none; transform: none; }
  .nav .mark path { animation: none; }
  .btn-neon::after { animation: none; }
  .is-visible .neon-title { animation: none; }
  .quick__btn::before { animation: none; }
  .projects,
  .shots__track { scroll-behavior: auto; }
  .browser__live i { animation: none; }
  .shots::after { display: none; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1340px) {
  .carousel__btn--prev { left: -22px; }
  .carousel__btn--next { right: -22px; }
}

@media (max-width: 1080px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .nav__menu { gap: 22px; }
}

@media (max-width: 920px) {
  .hero__inner,
  .about,
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; }
  .founder { max-width: 440px; }
  .project { flex-basis: 100%; }
  .section { padding: 84px 0; }

  .nav__controls { margin-left: auto; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(var(--nav-h) + 12px) 24px 28px;
    overflow-y: auto;
    background: var(--menu-bg);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
    counter-reset: menu;
  }
  .nav__menu::before {
    content: '';
    position: fixed;
    right: -120px;
    bottom: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(131, 253, 128, .22), transparent 65%);
    pointer-events: none;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; }

  /* items slide in one after another */
  .nav__menu > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .3, 1);
  }
  .nav__menu.is-open > * { opacity: 1; transform: none; }
  .nav__menu.is-open > :nth-child(1) { transition-delay: .06s; }
  .nav__menu.is-open > :nth-child(2) { transition-delay: .11s; }
  .nav__menu.is-open > :nth-child(3) { transition-delay: .16s; }
  .nav__menu.is-open > :nth-child(4) { transition-delay: .21s; }
  .nav__menu.is-open > :nth-child(5) { transition-delay: .27s; }
  .nav__menu.is-open > :nth-child(6) { transition-delay: .33s; }

  .nav__menu > a:not(.btn) {
    counter-increment: menu;
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-head);
    font-size: clamp(26px, 8vw, 34px);
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .nav__menu > a:not(.btn)::before {
    content: counter(menu, decimal-leading-zero);
    color: var(--jade);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
  }
  [data-theme="light"] .nav__menu > a:not(.btn)::before { color: var(--muted); }
  .nav__menu > a:not(.btn):active { color: var(--jade); }
  .nav__menu .btn { margin-top: 26px; padding: 16px 26px; font-size: 16px; }

  /* while the menu is open the bar steps back, so the menu's glass covers the page */
  .nav:has(.nav__menu.is-open) {
    background: transparent;
    border-bottom-color: transparent;
  }
  .lang button { padding: 8px 12px; }
  .reel__tab { padding-top: 12px; }
}

@media (max-width: 640px) {
  .nav__controls > .lang,
  .nav__controls > .theme-toggle { display: none; }
  .nav__extra { display: grid; gap: 14px; margin-top: auto; padding-top: 32px; }
  .nav__prefs { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .nav__prefs .lang button { padding: 11px 18px; font-size: 14px; }
  .nav__prefs .theme-toggle { width: 46px; height: 46px; }
  .nav__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .nav__quick a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: var(--glass-bg);
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
  }
  .nav__quick svg { width: 18px; height: 18px; fill: none; stroke: var(--jade); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  [data-theme="light"] .nav__quick svg { stroke: var(--text); }

  .container { padding: 0 16px; }
  .cards--3,
  .cards--2,
  .process { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .timeline { padding: 4px 20px; }
  .founder::before { inset: 15% 0 -8% 10%; }
  .carousel__btn { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .about__intro > .mission { font-size: 19px; }
  .form { padding: 32px 22px 24px; gap: 30px; }
  .card { padding: 26px; }
  .window__page { height: 320px; }
  .mini__title { font-size: 19px; }
  .node { padding: 7px 9px; gap: 6px; font-size: 11px; }
  .wire { margin: 0 4px; }
  .log { padding: 14px; font-size: 11px; }
  .log li { gap: 10px; }
  .scene--sec { gap: 10px; }
  .checks li { padding: 6px 10px; font-size: 11.5px; }
  /* on phones the bars stay, and the current scene's name sits above them */
  .reel__caption { display: block; margin: 18px 0 -6px; text-align: center; font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--text); }
  .reel { gap: 6px; }
  .reel__tab { padding-top: 16px; }
  .reel__tab span { display: none; }
  .hero__cta .btn { flex: 1 1 auto; padding: 14px 20px; white-space: nowrap; }
  .browser__live span { display: none; }
}
