:root {
  color-scheme: dark;
  --brand: #0F42C0;          /* main blue: buttons, ribbons, fills */
  --brand-hi: #5B80FF;       /* lighter blue for text on dark (readable contrast) */
  --brand-glow: 47, 91, 255; /* rgb for glows */
  --ink: #06080E;
  --surface: #0C1020;
  --surface-2: #131A2E;
  --line: #222B45;
  --white: #fff;
  --muted: #A8B0C8;
  --sans: "Instrument Sans", system-ui, "Segoe UI", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--sans);
  color: var(--white);
  background-color: var(--ink);
  background-image: radial-gradient(1100px 620px at 50% -60px, rgba(var(--brand-glow), .26), transparent 70%);
  background-repeat: no-repeat;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
::selection { background: var(--brand); color: #fff; }

.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: 24px; }
h1, h2 { font-weight: 700; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -.015em;
  color: var(--brand-hi);
}
.lead { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--muted); max-width: 36em; }
.tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: .3em .85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
}
.section { padding-top: clamp(96px, 12vw, 150px); }
.fine { margin-top: 28px; font-size: .88rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -10px rgba(var(--brand-glow), .8); }
.btn-brand:hover { background: #1550E0; box-shadow: 0 14px 40px -10px rgba(var(--brand-glow), 1); }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: #3A4670; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }

/* ---------- cursor effects (real pointer only) ---------- */
.dot, .grid-glow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .dot {
    display: block; position: fixed; left: 0; top: 0; z-index: 40;
    width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%; background: var(--brand-hi);
    pointer-events: none; opacity: 0;
    transition: opacity .2s, width .2s, height .2s, margin .2s;
  }
  .dot.on { opacity: 1; }
  .dot.big { width: 36px; height: 36px; margin: -18px 0 0 -18px; opacity: .45; }
  .grid-glow {
    display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
      linear-gradient(rgba(var(--brand-glow), .26) 1px, transparent 1px),
      linear-gradient(90deg, rgba(var(--brand-glow), .26) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%);
            mask-image: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%);
  }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 30;
  transform: translateX(-50%);
  width: min(1112px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 7px 7px 7px 22px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(8, 11, 22, .68);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  transition: background-color .3s;
}
.nav.scrolled { background: rgba(8, 11, 22, .88); }
.logo {
  display: inline-flex; align-items: baseline;
  font-weight: 700; letter-spacing: -.02em; text-decoration: none; white-space: nowrap;
}
.logo i { width: 7px; height: 7px; margin-left: 3px; border-radius: 50%; background: var(--brand-hi); box-shadow: 0 0 10px rgba(var(--brand-glow), .9); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---------- banner ---------- */
.banner { padding: 82px 16px 0; }
.banner-frame {
  position: relative;
  width: min(1320px, 100%); margin-inline: auto;
  aspect-ratio: 3 / 1;
  border: 1px solid var(--line); border-radius: 26px;
  overflow: hidden;
  background: #050816;
  box-shadow: 0 40px 120px -40px rgba(var(--brand-glow), .65);
}
.banner-frame img { width: 100%; height: 100%; object-fit: cover; }
.banner-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.js .banner-frame { animation: bannerIn 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes bannerIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@media (max-width: 640px) {
  .banner { padding: 74px 12px 0; }
  .banner-frame { border-radius: 16px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(56px, 8vw, 96px); text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero h1 em { display: inline-block; padding-right: .06em; }
.hero .lead { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.reels {
  display: flex; justify-content: center; gap: 26px;
  margin-top: 30px; padding: 40px 16px 8px;
  overflow: hidden;
}
.reel {
  flex: 0 0 auto; width: clamp(150px, 17vw, 236px);
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.reel:hover { transform: rotate(0deg) translateY(calc(var(--y, 0px) - 10px)); }
.reel .vid-frame { border-radius: 28px; border: 6px solid #10162A; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
/* the ribbons cover the bottom of the reels, so their sound button sits at the top */
.reel .sound { top: 12px; bottom: auto; left: auto; right: 12px; }
@media (max-width: 720px) {
  /* swipe sideways to see all four */
  .reels {
    justify-content: flex-start; gap: 14px;
    margin-top: 10px; padding: 40px 20px 30px;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .reels::-webkit-scrollbar { display: none; }
  .reel { width: 58vw; scroll-snap-align: center; }
  .reel:first-child { scroll-snap-align: start; }
  .reel:last-child { scroll-snap-align: end; }
  .reel .vid-frame { border-radius: 22px; border-width: 4px; }
}

/* ---------- curved ribbons ---------- */
.ribbons {
  position: relative; z-index: 3;
  height: clamp(190px, 21vw, 300px);
  margin-top: clamp(-150px, -9vw, -70px);
  pointer-events: none;
}
.ribbon-svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.r-shadow { fill: none; stroke: rgba(0, 0, 0, .55); stroke-width: 70; transform: translateY(12px); }
.r-edge { fill: none; stroke-width: 66; }
.r-body { fill: none; stroke-width: 60; }
.ribbon-blue .r-edge { stroke: #3D6CFF; }
.ribbon-blue .r-body { stroke: var(--brand); }
.ribbon-white .r-edge { stroke: #C9D3EE; }
.ribbon-white .r-body { stroke: #fff; }
.r-text {
  font-family: var(--sans); font-size: 29px; font-weight: 700; letter-spacing: -.01em;
  dominant-baseline: central;
}
.r-text .it { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 35px; letter-spacing: 0; }
.r-text .sep { font-size: 15px; }
.ribbon-blue .r-text { fill: #fff; }
.ribbon-blue .sep { fill: #8FA8FF; }
.ribbon-white .r-text { fill: #0A0E1C; }
.ribbon-white .sep { fill: var(--brand); }

/* ---------- section heads ---------- */
.ribbons + .section { padding-top: clamp(48px, 6vw, 80px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.sec-note { max-width: 25em; color: var(--muted); font-size: .95rem; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 28px; }
.featured-slot { margin-top: 32px; }
.featured-slot:empty { display: none; }
.featured-slot + .filters { margin-top: 40px; }
.chip {
  padding: .55em 1.15em;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--white); border-color: #3A4670; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- video frame + placeholder ---------- */
.vid { position: relative; }
.vid-frame {
  position: relative; overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  aspect-ratio: 9 / 16;
  isolation: isolate;
}
.vid.is-h .vid-frame { aspect-ratio: 16 / 9; }
.vid-frame video, .vid-frame > img { width: 100%; height: 100%; object-fit: cover; }
.vid-frame.has-video { cursor: pointer; }

.ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(var(--brand-glow), .38), transparent 60%),
    linear-gradient(rgba(var(--brand-glow), .10) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(var(--brand-glow), .10) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #0E1428, #080C18);
  background-size: auto, 28px 28px, 28px 28px, auto;
  color: var(--muted);
  text-align: center;
}
.ph-play {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(15, 66, 192, .85);
  box-shadow: 0 0 0 8px rgba(var(--brand-glow), .14), 0 0 40px rgba(var(--brand-glow), .7);
}
.ph-play::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  margin: -9px 0 0 -6px;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.ph-text { font-size: .82rem; font-weight: 500; letter-spacing: .02em; }
.ph-num {
  position: absolute; left: 14px; top: 12px;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: rgba(255, 255, 255, .55);
}
.ph-cap {
  position: absolute; left: 50%; bottom: 12%;
  transform: translateX(-50%);
  font-size: clamp(1.4rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; text-transform: uppercase;
  color: #fff; white-space: nowrap;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .6);
}
.ph-cap b { color: var(--brand-hi); }
.reel .ph-text { font-size: .74rem; }
.reel .ph-play { width: 46px; height: 46px; }
.reel .ph-play::after { margin: -7px 0 0 -5px; border-width: 7px 0 7px 12px; }

.badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: .3em .8em; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: .74rem; font-weight: 600;
}
.sound {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: .4em .85em; border: 0; border-radius: 999px;
  background: rgba(6, 8, 14, .7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .78rem; font-weight: 600;
}
.sound::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.sound[aria-pressed="true"] { background: var(--brand); }
.sound[aria-pressed="true"]::before { background: #fff; }

/* cut bar: the edit timeline under each video */
.cutbar {
  position: relative; margin-top: 10px; height: 12px;
  border-radius: 4px;
}
.cutbar.can-seek { cursor: pointer; touch-action: none; }
/* bigger invisible grab area, easier on phones */
.cutbar.can-seek::before { content: ""; position: absolute; inset: -10px 0; }
.cut-row { position: absolute; inset: 0; display: flex; gap: 2px; overflow: hidden; border-radius: 4px; pointer-events: none; }
.cut-knob {
  position: absolute; top: 50%; left: var(--p, 0%); z-index: 2;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--brand-glow), .35), 0 2px 8px rgba(0, 0, 0, .5);
  pointer-events: none;
  transform: scale(0); transition: transform .2s;
}
.cutbar.can-seek:hover .cut-knob, .cutbar.can-seek:focus-visible .cut-knob, .cutbar.is-dragging .cut-knob { transform: scale(1); }
@media (hover: none) { .cutbar.can-seek .cut-knob { transform: scale(.8); } }

/* player row: play/pause, timeline, time */
.vctl { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.vctl .cutbar { flex: 1; margin-top: 0; }
.vtime { flex: none; min-width: 5.6em; text-align: right; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pp {
  position: relative; flex: none;
  width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface-2);
  transition: background-color .2s, border-color .2s, transform .2s;
}
.pp:hover { background: var(--brand); border-color: var(--brand); transform: scale(1.06); }
/* play triangle */
.pp::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  margin: -6px 0 0 -3px;
  border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}
/* pause bars */
.pp.is-playing::before {
  margin: -6px 0 0 -5px; width: 3px; height: 12px;
  border: 0; border-radius: 1px; background: #fff;
  box-shadow: 6px 0 0 #fff;
}
.pp-overlay {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  width: 36px; height: 36px; border: 0;
  background: rgba(6, 8, 14, .7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
/* hero reels: the ribbons cover the bottom, so the button goes top-left */
.reel .pp-overlay { top: 12px; bottom: auto; }
.cut-row span { flex: var(--w) 1 0; border-radius: 2px; background: rgba(var(--brand-glow), .26); }
.cut-row.fill { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.cut-row.fill span { background: var(--brand-hi); }

/* ---------- work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 22px; }
.work-item { grid-column: span 3; }
.work-item.is-h { grid-column: 1 / -1; }
.work-item[hidden] { display: none; }
.work-item h3 { margin-top: 14px; font-size: 1.15rem; }
.work-item p { margin-top: 4px; color: var(--muted); font-size: .95rem; }

.work-item.feature {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 340px) 1fr; align-items: center; gap: clamp(24px, 5vw, 64px);
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(140deg, rgba(var(--brand-glow), .14), transparent 55%), var(--surface);
}
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; }
.feature .feat-copy > p { margin-top: 12px; color: var(--muted); max-width: 30em; font-size: 1.05rem; }
.feature.is-h { grid-template-columns: 1fr; }
.checks { display: grid; gap: 10px; margin-top: 22px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

@media (max-width: 900px) {
  .work-item { grid-column: span 6; }
}
@media (max-width: 640px) {
  .work-grid { gap: 22px 14px; }
  .work-item.feature { grid-template-columns: 1fr; }
  .feature .vid { width: 100%; max-width: 320px; margin-inline: auto; }
  .work-item h3 { font-size: 1rem; }
  .work-item p { font-size: .88rem; }
}

/* ---------- before / after ---------- */
.ba-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.ba-head .lead { margin-top: 14px; }
.ba-head .checks { margin-top: 0; color: var(--muted); }
.compare {
  position: relative; margin-top: 40px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  background: var(--surface);
  touch-action: pan-y;
  user-select: none;
}
.compare.is-v { aspect-ratio: 9 / 16; max-width: 420px; margin-inline: auto; }
.cmp-layer { position: absolute; inset: 0; }
.cmp-layer video, .cmp-layer > img { width: 100%; height: 100%; object-fit: cover; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-before .ph { filter: grayscale(1) brightness(.7); }
.cmp-after .ph { background-size: auto, 40px 40px, 40px 40px, auto; }
.cmp-label {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  padding: .35em .9em; border-radius: 999px;
  background: rgba(6, 8, 14, .72); font-size: .82rem; font-weight: 600;
}
.cmp-label-r { left: auto; right: 16px; background: var(--brand); }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
  width: 2px; margin-left: -1px; background: #fff; pointer-events: none;
  box-shadow: 0 0 20px rgba(var(--brand-glow), .9);
}
.cmp-handle span {
  position: absolute; left: 50%; top: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}
.cmp-handle span::before, .cmp-handle span::after {
  content: ""; position: absolute; top: 50%; margin-top: -6px;
  border-style: solid; border-width: 6px;
}
.cmp-handle span::before { left: 8px; border-color: transparent var(--brand) transparent transparent; }
.cmp-handle span::after { right: 8px; border-color: transparent transparent transparent var(--brand); }
.cmp-range {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.compare { cursor: ew-resize; }
.compare:has(.cmp-range:focus-visible) { outline: 2px solid var(--white); outline-offset: 3px; }

/* ---------- why ---------- */
.why h2 { margin-bottom: 28px; }
.reveal-text {
  max-width: 24em;
  font-size: clamp(1.45rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.25; letter-spacing: -.02em;
}
.reveal-text .w { color: rgba(255, 255, 255, .2); transition: color .35s; }
.reveal-text .w.lit { color: var(--white); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.pillar {
  padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s, transform .3s;
}
.pillar:hover { border-color: rgba(var(--brand-glow), .7); transform: translateY(-4px); }
.pillar em { font-size: 1.6rem; }
.pillar p { margin-top: 6px; color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.services { margin-top: 36px; border-top: 1px solid var(--line); }
.services > li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px 40px; align-items: start;
  padding: 32px 0; border-bottom: 1px solid var(--line);
  transition: padding .3s;
}
.services > li:hover { padding-left: 12px; }
.svc-kind {
  display: inline-block; margin-bottom: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-hi);
}
.services h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.services p { color: var(--muted); font-size: 1.02rem; }
.svc-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.svc-list li {
  padding: .35em .85em;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: .85rem; font-weight: 500;
}
.svc-list li.plus { border-color: rgba(var(--brand-glow), .7); background: rgba(15, 66, 192, .35); color: #fff; }
@media (max-width: 640px) { .services > li { grid-template-columns: 1fr; } .services > li:hover { padding-left: 0; } }
.toolkit { margin-top: 44px; }
.toolkit-title { font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.tools li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface);
  transition: transform .25s, border-color .25s;
}
.tools li:hover { transform: translateY(-3px); border-color: rgba(var(--brand-glow), .6); }
.tools img { width: 44px; height: 44px; flex: none; border-radius: 11px; }
.tools div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tools strong { font-size: .95rem; font-weight: 600; }
.tools span { font-size: .8rem; color: var(--muted); }
.toolkit .fine { margin-top: 14px; }
@media (max-width: 960px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tools li { padding: 12px; gap: 10px; } .tools img { width: 38px; height: 38px; } }

/* ---------- process timeline ---------- */
.tl {
  margin-top: 40px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.tl-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-size: .8rem; color: var(--muted);
}
.tl-dots { display: flex; gap: 6px; }
.tl-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.tl-dots i:first-child { background: var(--brand-hi); }
.tl-tc { font-variant-numeric: tabular-nums; color: var(--white); }
.tl-body { display: flex; padding: 14px 16px 16px 0; }
.tl-labels { display: grid; grid-auto-rows: 34px; gap: 8px; width: 52px; flex: none; text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); }
.tl-labels b { display: grid; place-items: center; }
.tl-lanes { position: relative; flex: 1; display: grid; grid-auto-rows: 34px; gap: 8px; }
.lane { position: relative; border-radius: 6px; background: rgba(255, 255, 255, .03); }
.clip {
  position: absolute; top: 3px; bottom: 3px;
  overflow: hidden; padding: 0 8px;
  border-radius: 5px;
  font-size: .7rem; font-weight: 600; line-height: 28px; white-space: nowrap; text-overflow: ellipsis;
  transition: filter .2s, box-shadow .2s;
}
.lane-v2 .clip { background: #2A3352; color: #C5CCE4; }
.lane-v1 .clip { background: rgba(15, 66, 192, .75); color: #E3E9FF; }
.clip.on { filter: brightness(1.45); box-shadow: 0 0 0 1px #fff inset; }
.lane-a1 { display: flex; align-items: center; gap: 2px; padding: 0 2px; background: rgba(15, 66, 192, .22); }
.lane-a1 i { flex: 1; min-width: 1px; border-radius: 1px; background: var(--brand-hi); opacity: .8; }
.tl-head { position: absolute; top: -10px; bottom: -6px; left: 0; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.tl-head i {
  position: absolute; top: 0; left: 50%; margin-left: -7px;
  width: 14px; height: 10px; border-radius: 2px 2px 7px 7px; background: #fff;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.steps li {
  padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .35s, background-color .35s, transform .35s;
}
.steps li.on { border-color: rgba(var(--brand-glow), .85); background: linear-gradient(160deg, rgba(var(--brand-glow), .22), var(--surface) 70%); transform: translateY(-4px); }
.steps em { font-size: 1.05rem; }
.steps h3 { margin-top: 2px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .tl-labels { width: 40px; }
  .tl-name { display: none; }
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 80px); }
.about-media .vid-frame { aspect-ratio: 4 / 5; border-radius: 28px; border: 1px solid var(--line); }
.about-media .portrait { object-position: 83% 30%; }
.about-copy h2 { margin-bottom: 22px; }
.about-copy p { color: var(--muted); font-size: 1.05rem; max-width: 32em; }
.about-copy p + p { margin-top: 14px; }

/* countries */
.world-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; }
.world-head h2 { max-width: 13em; }
.world-head .lead { max-width: 30em; font-size: 1.05rem; }
.flags {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-top: 40px;
}
.flags li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface);
  font-weight: 600; font-size: 1rem;
  transition: transform .25s, border-color .25s, background-color .25s;
}
.flags li:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-glow), .6);
  background: linear-gradient(140deg, rgba(var(--brand-glow), .14), transparent 70%), var(--surface);
}
.flag { display: grid; place-items: center; flex: none; width: 56px; height: 34px; }
.flag img {
  width: auto; height: 28px; max-width: 56px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 14px -6px rgba(0, 0, 0, .7);
}
@media (max-width: 860px) {
  .flags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flags li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .flags { gap: 10px; }
  .flags li { padding: 12px; gap: 10px; font-size: .9rem; }
  .flag { width: 44px; }
  .flag img { height: 22px; max-width: 44px; }
}

/* stats under About me */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 32px; max-width: 34em; }
.stat {
  position: relative; overflow: hidden;
  padding: 22px 22px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(var(--brand-glow), .22), transparent 60%),
    var(--surface);
  transition: border-color .3s, transform .3s;
}
.stat:hover { border-color: rgba(var(--brand-glow), .7); transform: translateY(-3px); }
.stat strong {
  display: flex; align-items: center;
  font-size: clamp(2.5rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat strong i { font-style: normal; color: var(--brand-hi); font-size: .8em; margin-right: .06em; transform: translateY(-.04em); }
.stat > span { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; font-weight: 500; }
@media (max-width: 400px) { .stat { padding: 18px 16px; } }
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; }
}

/* ---------- contact ---------- */
.contact h2 { max-width: 15em; }
.contact .lead { margin-top: 18px; }
.contact-cards { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.c-card[hidden] { display: none; }
@media (max-width: 1000px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.c-card {
  display: flex; flex-direction: column; gap: 6px; justify-content: flex-end;
  min-height: 160px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.c-card span { font-size: .85rem; color: var(--muted); }
.c-card strong { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.c-card:hover { transform: translateY(-4px); border-color: #3A4670; }
.c-brand { background: var(--brand); border-color: var(--brand); box-shadow: 0 20px 50px -20px rgba(var(--brand-glow), .9); }
.c-brand span { color: rgba(255, 255, 255, .78); }
.c-brand:hover { border-color: #3D6CFF; }
.c-icon {
  width: 44px; height: 44px; margin-bottom: auto;
  border-radius: 11px; object-fit: contain;
  transition: transform .25s;
}
.c-card:hover .c-icon { transform: scale(1.08) rotate(-4deg); }
.c-icon-ring { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
/* Gmail's colours need a light tile to read on the blue card */
.c-brand .c-icon { padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.copy {
  margin-top: 14px; padding: .5em 1em;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font-size: .85rem; color: var(--muted);
}
.copy:hover { color: var(--white); }
@media (max-width: 720px) {
  .contact-cards { grid-template-columns: 1fr; }
  /* on phones: icon on the left, text on the right */
  .c-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; min-height: 0; padding: 16px 18px; }
  .c-icon { grid-row: 1 / 3; margin: 0; }
  .c-card span { align-self: end; }
  .c-card strong { align-self: start; }
}

/* ---------- footer ---------- */
.foot {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: clamp(80px, 10vw, 120px);
  padding-block: 28px;
  border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
