/* =========================================================
   SV WebStudio — mobile first
   ========================================================= */

:root {
  --bg: #000;
  --bg-alt: #0a0a0c;
  --surface: #111114;
  --surface-2: #1a1a1f;
  --line: rgba(255, 255, 255, .09);
  --text: #f5f5f7;
  --muted: #86868b;
  --blue: #0a5cff;
  --cyan: #00d4ff;
  --grad: linear-gradient(100deg, #2f7bff 0%, #00d4ff 100%);
  --radius: 28px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--blue); color: #fff; }

/* Film grain — breaks up the flat black and hides gradient banding.
   Fixed + non-interactive, so it never intercepts a tap. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scrollbar (Firefox + WebKit) */
html { scrollbar-color: #2a2a31 transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #26262d; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a44; }

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

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

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: var(--text);
  color: #000;
}
.btn--primary:hover { background: #fff; box-shadow: 0 0 40px rgba(0, 212, 255, .35); }
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text); }
.btn__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-weight: 500;
  font-size: 17px;
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translate(3px, -3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-color: var(--line);
}
.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
}
.brand__mark {
  width: 34px;
  height: auto;
  flex: none;
  filter: drop-shadow(0 2px 10px rgba(0, 140, 255, .45));
}
.brand__word { white-space: nowrap; }
.brand__sv {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__toggle {
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  display: grid; place-content: center; gap: 6px;
}
.nav__toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--text);
  transition: transform .35s var(--ease);
}
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.nav__menu {
  position: absolute;
  top: 60px; left: 0; right: 0;
  height: calc(100dvh - 60px);
  background: rgba(0, 0, 0, .96);
  display: flex; flex-direction: column;
  padding: 24px var(--gutter);
  gap: 4px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a {
  font-size: 28px; font-weight: 600; letter-spacing: -.02em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.nav__menu .nav__cta { color: var(--cyan); border: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
/* Faint grid, faded out towards the edges — gives the black some structure. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 20%, transparent 78%);
}
.hero__glow {
  position: absolute;
  top: 38%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(10, 92, 255, .28) 0%, rgba(0, 212, 255, .08) 35%, transparent 65%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: .75; }
}
.hero__content { position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(46px, 13vw, 112px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.045em;
}
.hero__lead {
  margin: 24px auto 0;
  max-width: 34ch;
  font-size: clamp(18px, 4.6vw, 24px);
  color: #a1a1a6;
  line-height: 1.45;
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: 320px;
  margin-inline: auto;
}
/* The lockup is a transparent PNG cropped to its artwork, so it needs no
   blend mode or mask — the halo below is a real element, not a crop. */
.hero__logo {
  position: relative;
  z-index: 1;
  width: min(300px, 72vw);
  margin: 52px auto 0;
}
.hero__logo::before {
  content: "";
  position: absolute;
  inset: -55% -30%;
  background: radial-gradient(ellipse at center, rgba(10, 92, 255, .28), transparent 62%);
  z-index: -1;
  pointer-events: none;
}
.hero__logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0, 140, 255, .35));
}

/* ---------- Strip ---------- */
.strip {
  position: relative;
  border-block: 1px solid var(--line);
  padding: 28px 0;
  background: linear-gradient(180deg, rgba(10, 92, 255, .05), transparent);
}
/* gradient hairline that fades at both ends */
.strip::before,
.strip::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .45), transparent);
}
.strip::before { top: -1px; }
.strip::after { bottom: -1px; }
.strip__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.strip__item strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.strip__item span { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 48px; }
.section__title {
  font-size: clamp(38px, 10vw, 76px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.04em;
}
.section__lead {
  margin-top: 18px;
  max-width: 40ch;
  font-size: clamp(18px, 4.2vw, 22px);
  color: #a1a1a6;
}

/* ---------- Projects ---------- */
.projects { display: grid; gap: 20px; }

.project {
  --accent: var(--cyan);
  --accent-2: var(--blue);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px 22px 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.project::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 80%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 38%, transparent) 0%, transparent 65%);
  z-index: -1;
  opacity: .7;
  transition: opacity .6s;
}
.project:hover::before { opacity: 1; }

.project__tag {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.project__name {
  margin-top: 8px;
  font-size: clamp(40px, 11vw, 64px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
}
.project__desc { margin-top: 16px; color: #a1a1a6; font-size: 17px; max-width: 46ch; }
.project__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 22px; }
.project__chips li {
  font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  transition: background .4s, border-color .4s;
}
.project:hover .project__chips li {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
}
.project .link-arrow { color: var(--accent); }

/* Devices */
.devices {
  position: relative;
  margin-top: 40px;
  padding-bottom: 28px;
  transition: transform .8s var(--ease);
}
.project:hover .devices { transform: translateY(-6px); }

.laptop { width: 88%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }

/* Browser chrome sits in the bezel, above the screen, so it stays visible
   even when a real screenshot covers the mock UI. */
.laptop__chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  height: 26px;
  border: 6px solid #1d1d22;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(#2b2b32, #222227);
}
.laptop__chrome i {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: #4a4a52;
}
.laptop__chrome i:first-child { background: #ff5f57; }
.laptop__chrome i:nth-child(2) { background: #febc2e; }
.laptop__chrome i:nth-child(3) { background: #28c840; }
.laptop__chrome b {
  margin-left: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #131317;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 9px;
  font-weight: 500;
  color: #8a8a93;
}
.laptop__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 6px solid #1d1d22;
  border-top: 0;
  border-bottom-width: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 1px #333 inset;
}
/* glass sheen across the panel */
.laptop__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(107deg, rgba(255, 255, 255, .16) 0 26%, transparent 46%);
}
.laptop__base {
  height: 10px;
  width: 112%;
  margin-left: -6%;
  background: linear-gradient(#c7c7cc, #8e8e93);
  border-radius: 0 0 14px 14px;
  position: relative;
}
.laptop__base::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 16%; height: 4px; background: #6e6e73; border-radius: 0 0 6px 6px;
}

.phone {
  position: absolute;
  right: 0;
  bottom: 12px;
  width: 30%;
  aspect-ratio: 9 / 19;
  border: 5px solid #1d1d22;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .6), 0 0 0 1px #3a3a3f;
}
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 17px;
  background: linear-gradient(115deg, rgba(255, 255, 255, .18) 0 22%, transparent 42%);
}
.phone__notch {
  position: absolute;
  z-index: 5;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 3.2%;
  background: #1d1d22;
  border-radius: 0 0 6px 6px;
}
.phone__screen { position: relative; width: 100%; height: 100%; }

.shot {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}

/* Mini UIs — sizes scale with the screen via container units */
.laptop__screen, .phone__screen { container-type: inline-size; }
.ui { position: absolute; inset: 0; font-family: "Inter", sans-serif; color: #1d1d1f; overflow: hidden; }
.ui em { font-style: normal; }
.burger { font-size: 7cqw; line-height: 1; }

/* SmartPoint */
.ui--sp { background: linear-gradient(160deg, #f4f1ea, #fbfaf7); }
.sp-top { background: #1d1d1f; color: #eee; font-size: 1.4cqw; padding: .9cqw 4cqw; }
.sp-top b { color: #c2a46b; }
.sp-nav { background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 1.8cqw 4cqw; border-bottom: 1px solid #eee; }
.sp-logo { display: flex; align-items: center; gap: .8cqw; font-weight: 800; font-size: 2.1cqw; }
.sp-logo i { width: 2.2cqw; height: 2.8cqw; background: #7a6a4f; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) scale(.8); }
.sp-links { display: flex; gap: 2.4cqw; font-size: 1.4cqw; color: #444; }
.sp-btn { background: #7a6a4f; color: #fff; font-size: 1.3cqw; font-weight: 600; padding: .9cqw 1.8cqw; border-radius: 99px; }
.sp-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4cqw; align-items: center; padding: 5cqw 6cqw; }
.sp-pill { display: inline-block; font-size: 1.1cqw; border: 1px solid #ddd; background: #fff; padding: .4cqw 1.2cqw; border-radius: 99px; }
.sp-h { margin-top: 1.8cqw; font-size: 4.4cqw; font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
.sp-h span { color: #7a6a4f; }
.sp-p { margin-top: 1.8cqw; font-size: 1.4cqw; color: #666; max-width: 32ch; }
.sp-cta { display: inline-block; margin-top: 2cqw; background: #1d1d1f; color: #fff; font-size: 1.3cqw; font-weight: 600; padding: 1.1cqw 2cqw; border-radius: 99px; }
.sp-card { background: linear-gradient(150deg, #8a7a5c, #5d513c); color: #fff; border-radius: 2.4cqw; padding: 3cqw; border: .8cqw solid #fff; box-shadow: 0 2cqw 5cqw rgba(0,0,0,.15); }
.sp-card p { font-size: 2cqw; font-weight: 700; margin-bottom: 2cqw; }
.sp-card em { display: block; font-size: 1.3cqw; margin-top: 1cqw; opacity: .9; }

.ui--sp.ui--mobile .sp-nav { padding: 4cqw 6cqw; }
.ui--sp.ui--mobile .sp-logo { font-size: 7cqw; gap: 2cqw; }
.ui--sp.ui--mobile .sp-logo i { width: 6cqw; height: 7.5cqw; }
.ui--sp.ui--mobile .sp-hero { display: block; padding: 8cqw 6cqw; }
.ui--sp.ui--mobile .sp-pill { font-size: 4cqw; padding: 1cqw 3.5cqw; }
.ui--sp.ui--mobile .sp-h { font-size: 11cqw; margin-top: 5cqw; }
.ui--sp.ui--mobile .sp-p { font-size: 4.6cqw; margin-top: 5cqw; }
.ui--sp.ui--mobile .sp-cta { font-size: 4.4cqw; padding: 3.5cqw; margin-top: 6cqw; }
.sp-cta--block { display: block !important; text-align: center; }
.sp-cta--light { display: block !important; text-align: center; background: #fff !important; color: #1d1d1f !important; border: 1px solid #ddd; margin-top: 3cqw !important; }

/* Broly */
.ui--br { background: #fff; }
.br-bar { background: #b8e04a; color: #1d1d1f; text-align: center; font-size: 1.2cqw; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; padding: .7cqw; }
.br-head { background: #000; color: #fff; text-align: center; padding: 1.8cqw 0 1.4cqw; }
.br-logo { font-weight: 800; letter-spacing: .6em; font-size: 2.8cqw; padding-left: .6em; }
.br-logo sup { font-size: .3em; letter-spacing: 0; }
.br-links { display: flex; justify-content: center; gap: 2.4cqw; font-size: 1.3cqw; margin-top: 1cqw; }
.br-promo { background: #1a1a1a; color: #ff4d4d; text-align: center; font-size: 1.3cqw; letter-spacing: .2em; text-transform: uppercase; padding: 1.6cqw; }
.br-body { padding: 3cqw 4cqw; }
.br-title { text-align: center; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; font-size: 1.8cqw; text-decoration: underline; text-underline-offset: .6cqw; margin-bottom: 2.4cqw; }
.br-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4cqw; }
.ui--br figure { margin: 0; border: 1px solid #eee; background: #fff; }
.ui--br figure i { display: block; aspect-ratio: 4 / 5; background-size: cover; }
.ui--br figcaption { font-size: 1.2cqw; font-weight: 800; text-align: center; padding: 1.2cqw .5cqw; }
/* stylised garments */
.t1 { background: radial-gradient(ellipse 40% 45% at 50% 45%, #111 98%, transparent), linear-gradient(transparent 70%, #5b3fb5 70%) , #f2f2f2; }
.t2 { background: radial-gradient(ellipse 42% 48% at 50% 45%, #b8e04a 98%, transparent), linear-gradient(transparent 72%, #5b3fb5 72%), #f2f2f2; }
.t3 { background: radial-gradient(ellipse 38% 30% at 50% 62%, #5b3fb5 98%, transparent), linear-gradient(#b8e04a 30%, transparent 30%), #f2f2f2; }
.t4 { background: radial-gradient(ellipse 46% 42% at 50% 48%, #151515 98%, transparent), #f4f4f4; }

.br-head--m { display: flex; justify-content: space-between; align-items: center; padding: 5cqw 6cqw; }
.br-head--m .br-logo { font-size: 7cqw; padding-left: 0; }
.ui--br.ui--mobile .br-body { padding: 5cqw; display: grid; gap: 5cqw; }
.ui--br.ui--mobile figcaption { font-size: 4.2cqw; padding: 4cqw 2cqw; }

/* Personal site */
.ui--vs { background: #fafafa; display: grid; grid-template-columns: 22% 1fr; }
.vs-side { background: #fff; border-right: 1px solid #eee; padding: 4cqw 2.4cqw; display: flex; flex-direction: column; gap: 1.4cqw; }
.vs-side em { font-size: 1.4cqw; color: #555; }
.vs-avatar { display: block; width: 7cqw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #c9b8a6 22%, transparent 23%), radial-gradient(ellipse 45% 35% at 50% 95%, #2b3a55 98%, transparent), #dfe4ec; }
.vs-brand { font-weight: 800; font-size: 2.6cqw; letter-spacing: -.04em; margin-bottom: 1cqw; }
.vs-main { padding: 6cqw 5cqw; }
.vs-kicker { font-size: 1.3cqw; letter-spacing: .12em; text-transform: uppercase; color: #0a5cff; font-weight: 600; }
.vs-h { margin-top: 1.6cqw; font-size: 5.6cqw; font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.vs-h span { color: #0a5cff; }
.vs-p { margin-top: 2cqw; font-size: 1.6cqw; color: #666; }
.vs-stats { display: flex; gap: 2cqw; margin-top: 3cqw; }
.vs-stats b { background: #fff; border: 1px solid #eee; border-radius: 1.4cqw; padding: 1.4cqw 2cqw; font-size: 2.6cqw; font-weight: 800; }
.vs-stats small { display: block; font-size: 1.1cqw; font-weight: 500; color: #888; }

.ui--vs.ui--mobile { display: block; }
.vs-mhead { display: flex; justify-content: space-between; align-items: center; padding: 5cqw 6cqw; background: #fff; border-bottom: 1px solid #eee; }
.vs-mhead .vs-brand { font-size: 8cqw; margin: 0; }
.ui--vs.ui--mobile .vs-main { padding: 8cqw 6cqw; }
.ui--vs.ui--mobile .vs-avatar { width: 22cqw; margin-bottom: 5cqw; }
.ui--vs.ui--mobile .vs-h { font-size: 13cqw; }
.ui--vs.ui--mobile .vs-p { font-size: 4.6cqw; margin-top: 4cqw; }
.ui--vs.ui--mobile .vs-stats { gap: 3cqw; margin-top: 6cqw; }
.ui--vs.ui--mobile .vs-stats b { font-size: 7cqw; padding: 3cqw 4cqw; border-radius: 3cqw; }
.ui--vs.ui--mobile .vs-stats small { font-size: 3.2cqw; }

/* Next card */
.project--next {
  padding: 64px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(10, 92, 255, .35), transparent 60%),
    var(--surface);
  border: 1px dashed rgba(255, 255, 255, .18);
}
.project--next::before { display: none; }
.next__title {
  font-size: clamp(40px, 11vw, 80px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.next__lead { margin: 20px auto 30px; max-width: 36ch; color: #a1a1a6; font-size: 18px; }

/* ---------- Services ---------- */
.cards { display: grid; gap: 14px; }
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #141419, var(--surface));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
/* glow that blooms from the icon corner on hover */
.card::before {
  content: "";
  position: absolute;
  inset: -40% 40% 60% -40%;
  z-index: -1;
  background: radial-gradient(circle, rgba(0, 212, 255, .3), transparent 65%);
  opacity: 0;
  transition: opacity .5s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, .35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.card:hover::before { opacity: 1; }
.card__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(140deg, rgba(47, 123, 255, .25), rgba(0, 212, 255, .12));
  border: 1px solid rgba(0, 212, 255, .18);
  margin-bottom: 20px;
  transition: transform .5s var(--ease);
}
.card:hover .card__icon { transform: translateY(-2px) scale(1.06); }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 0; counter-reset: s; }
.step { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  grid-row: span 2;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  padding-top: 6px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.step p { color: var(--muted); margin-top: 4px; }

/* ---------- About ---------- */
.about { display: grid; gap: 36px; }
.about__mark {
  position: relative;
  width: min(260px, 66vw);
}
.about__mark::before {
  content: "";
  position: absolute;
  inset: -60% -35%;
  background: radial-gradient(ellipse at center, rgba(10, 92, 255, .26), transparent 62%);
  pointer-events: none;
}
.about__mark img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 40px rgba(0, 140, 255, .3));
}
.about .link-arrow { margin-top: 26px; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; text-align: center; padding: 120px 0; }
.contact__glow {
  position: absolute; left: 50%; bottom: -380px; transform: translateX(-50%);
  width: 1000px; height: 700px;
  background: radial-gradient(ellipse, rgba(10, 92, 255, .4), transparent 60%);
  pointer-events: none;
}
.contact__inner { position: relative; }
.contact__title {
  font-size: clamp(44px, 12vw, 100px);
  font-weight: 800; line-height: 1.02; letter-spacing: -.045em;
}
.contact .section__lead { margin-inline: auto; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .4), transparent);
}
.footer .brand__mark { width: 28px; }
.footer__inner { display: grid; gap: 14px; }
.footer__copy { color: var(--muted); font-size: 13px; }
.footer__links { display: flex; gap: 20px; font-size: 14px; color: #a1a1a6; }
.footer__links a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__glow { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* =========================================================
   Tablet ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__actions { flex-direction: row; justify-content: center; max-width: none; }
  .strip__grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .project { padding: 48px 40px 0; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .step:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
}

/* =========================================================
   Desktop ≥ 960px
   ========================================================= */
@media (min-width: 960px) {
  body { font-size: 18px; }

  .nav__toggle { display: none; }
  .nav__menu {
    position: static; height: auto; background: none;
    flex-direction: row; align-items: center; gap: 32px; padding: 0;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav__menu a { font-size: 14px; font-weight: 500; padding: 0; border: 0; color: #d2d2d7; transition: color .3s; }
  .nav__menu a:hover { color: #fff; }
  .nav__menu .nav__cta {
    color: #000; background: var(--text); padding: 7px 16px; border-radius: 99px;
  }
  .nav__menu .nav__cta:hover { color: #000; background: #fff; }

  .hero { padding-top: 140px; }
  .hero__logo { width: 360px; }
  .laptop__chrome { height: 30px; }
  .laptop__chrome b { font-size: 10px; }

  .section { padding: 140px 0; }
  .section__head { margin-bottom: 72px; }

  .project {
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 48px;
    padding: 72px 56px;
    min-height: 520px;
  }
  .project::before { inset: -20% -10% -20% 30%; height: auto; }
  .project--reverse { grid-template-columns: 7fr 5fr; }
  .project--reverse::before { inset: -20% 30% -20% -10%; }
  .project--reverse .project__text { order: 2; }
  .project--reverse .devices { order: 1; }
  .project .devices { margin-top: 0; padding-bottom: 0; }
  /* The card clips its overflow, so the devices have to fit inside it.
     The laptop base is 112% of the laptop, so 88% is the widest that still fits. */
  .project .laptop { width: 88%; margin: 0 auto; }
  .project .phone { right: 0; left: auto; bottom: -12px; width: 21%; }

  .project--next { display: block; padding: 110px 40px; min-height: 0; }

  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
  .step__n { grid-row: auto; padding: 0 0 18px; }

  .about { grid-template-columns: 320px 1fr; align-items: center; gap: 80px; }
  .about__mark { width: 100%; }

  .contact { padding: 180px 0; }
}
