/* ==========================================================
   NOIMO LABS — design tokens
   ========================================================== */
/* Dark values live on :root AND on the "stage" surfaces that stay dark in the light theme. */
:root,
.hero, .panel, .project, .testi__img, .phone-stage, .map-stage, .mock-stage,
html:has(.hero) .nav:not(.is-stuck) {
  --bg: #050505;
  --card: #101114;
  --card-2: #0a0b0e;
  --accent: #a9cfff;
  --text: #f4f6f9;
  --text-2: #dfe4ea;
  --text-3: #c4ccd8;
  --strong: #fff;
  --muted: #98a1ae;          /* 7.2:1 on --bg */
  --line: rgba(255, 255, 255, .11);
  --line-2: rgba(255, 255, 255, .2);
  --fill: rgba(255, 255, 255, .02);
  --dot: #5a626e;
  --inv-bg: #f4f6f9;
  --inv-fg: #050505;
  --inv-hover: #fff;
  --nav-bg: rgba(5, 5, 5, .72);
  --nav-solid: rgba(5, 5, 5, .92);
  --nav-overlay: rgba(5, 5, 5, .96);
  --logo-filter: none;
}
:root {
  --page: #050505;           /* page background; never re-scoped by stages */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --font-h: "Space Grotesk", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
  --gutter: clamp(20px, 3vw, 40px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --page: #f5f6f8;
  --bg: #f5f6f8;
  --card: #ffffff;
  --card-2: #f3f5f8;
  --accent: #1d5fbd;         /* 5.9:1 on --bg */
  --text: #0b0d12;
  --text-2: #1c232d;
  --text-3: #384352;
  --strong: #000;
  --muted: #4a5565;          /* 7.0:1 on --bg */
  --line: rgba(10, 18, 32, .12);
  --line-2: rgba(10, 18, 32, .24);
  --fill: rgba(10, 18, 32, .03);
  --dot: #a4adba;
  --inv-bg: #0b0d12;
  --inv-fg: #ffffff;
  --inv-hover: #000;
  --nav-bg: rgba(245, 246, 248, .78);
  --nav-solid: rgba(245, 246, 248, .94);
  --nav-overlay: rgba(245, 246, 248, .97);
  --logo-filter: brightness(0);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 400 16px/1.6 var(--font-b);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--font-h); font-weight: 400; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 72px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(32px, 4vw, 56px); }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

.eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font: 500 11px/1 var(--font-b); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--line-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px;
  border-radius: 999px; font: 500 14px/1 var(--font-b); border: 1px solid transparent;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .35s;
  cursor: pointer; white-space: nowrap;
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn--light { background: var(--inv-bg); color: var(--inv-fg); }
.btn--light:hover { background: var(--inv-hover); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent), 0 8px 30px color-mix(in srgb, var(--accent) 28%, transparent); transform: translateY(-1px); }
.btn--outline { border-color: var(--line-2); color: var(--text); background: var(--fill); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 13px; }

/* ---------- shared card ---------- */
.card {
  position: relative; display: block; height: 100%; overflow: hidden;
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s;
}
.card::after { /* top sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 60% at 50% -10%, rgba(169, 207, 255, .09), transparent 60%); opacity: .8; transition: opacity .4s;
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--accent) 38%, transparent); }
.card:hover::after { opacity: 1; }
.panel {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px;
  background: radial-gradient(90% 140% at 78% 40%, #0f1420 0%, #07080b 60%, #050505 100%);
}

.go {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--text);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.card:hover .go { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); transform: translateX(3px); }
.go--abs { position: absolute; right: 16px; bottom: 16px; width: 32px; height: 32px; background: rgba(5, 5, 5, .55); backdrop-filter: blur(6px); z-index: 2; }

/* ==========================================================
   NAV
   ========================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: var(--nav-bg); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-color: var(--line); }
.nav__in {
  max-width: 1280px; margin-inline: auto; padding: 18px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.brand img { height: 38px; width: auto; filter: var(--logo-filter); }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); font-size: 13.5px; }
.nav__links a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); padding-block: 8px; position: relative; transition: color .25s; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:not(.btn):hover { color: var(--strong); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--text); border: 1px solid var(--line-2); cursor: pointer; transition: border-color .25s, color .25s, background .25s, transform .3s var(--ease); }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.nav__cta-mobile, .nav__toggle { display: none; }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; min-height: clamp(520px, 52vw, 700px); padding-top: clamp(100px, 11vw, 140px); overflow: hidden; isolation: isolate; }
.hero__earth { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(5, 5, 5, .85) 0%, rgba(5, 5, 5, .1) 55%, transparent 100%),
  linear-gradient(180deg, transparent 62%, var(--page) 100%); }
.hero__in { position: relative; }
.hero h1 { font-weight: 400; font-size: clamp(2.6rem, 6.3vw, 5.1rem); letter-spacing: -.035em; line-height: 1; margin-bottom: clamp(18px, 2vw, 26px); }
.hero__lead { font: 300 clamp(1.15rem, 2vw, 1.55rem)/1.3 var(--font-h); color: #e6eaf0; margin-bottom: clamp(24px, 3vw, 34px); letter-spacing: -.01em; }

/* ==========================================================
   SERVICES
   ========================================================== */
.services { margin-top: clamp(-120px, -8vw, -40px); position: relative; z-index: 2; padding-top: 0; }
.services__grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.services__intro h2 { font-size: clamp(1.6rem, 2.3vw, 2rem); margin-bottom: 22px; }
.services__intro .muted { font-size: 14px; max-width: 24ch; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards--2 .service { padding: 24px 28px 76px; }
.cards--2 .service__art { height: 190px; margin-bottom: 20px; }
.cards--2 .service h3 { font-size: 18px; }
.cards--2 .service p { font-size: 14px; max-width: 34ch; }
.cards--2 .go { left: 28px; bottom: 24px; }
.service__pts { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.service__pts li { position: relative; padding-left: 18px; font-size: 13px; color: var(--text-3); }
.service__pts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.cards--2 .service__pts { margin-bottom: 8px; }
.service { padding: 18px 18px 64px; }
.service__art { height: 150px; display: grid; place-items: center; margin-bottom: 14px; transition: transform .6s var(--ease), filter .5s; }
.service__art svg, .service__art canvas { width: 100%; height: 100%; object-fit: contain; }
.service:hover .service__art { transform: scale(1.06) translateY(-3px); filter: drop-shadow(0 0 18px rgba(169, 207, 255, .35)); }
.service h3 { font-size: 15px; font-weight: 500; letter-spacing: -.005em; margin-bottom: 8px; font-family: var(--font-b); }
.service p { font-size: 12.5px; line-height: 1.5; color: var(--muted); max-width: 22ch; }
.service .go { position: absolute; left: 18px; bottom: 18px; }

/* ==========================================================
   ABOUT
   ========================================================== */
.about { display: grid; grid-template-columns: minmax(280px, 44%) 1fr; align-items: center; min-height: 260px; }
.about__copy { padding: clamp(28px, 3.4vw, 48px); position: relative; z-index: 2; }
.about h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 18px; line-height: 1.02; }
.about .muted { font-size: 14.5px; max-width: 36ch; margin-bottom: 24px; }
.about__inf { width: 100%; height: auto; max-height: 300px; align-self: stretch; }
.about__inf path { transition: opacity .6s; }

/* ==========================================================
   PROJECTS
   ========================================================== */
.head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.head .eyebrow { margin-bottom: 14px; }
.head h2 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
.link { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); padding: 8px 2px; transition: color .25s, gap .3s; }
.link:hover { color: var(--accent); gap: 12px; }
.projects > li { min-width: 0; }
.projects { display: grid; grid-template-columns: 1.02fr 1.12fr 1.12fr; gap: 14px; }
.project { height: clamp(200px, 18vw, 250px); border-radius: var(--r-md); }
.project__meta { position: absolute; left: 16px; bottom: 14px; z-index: 2; }
.project__meta h3 { font: 500 13px/1.2 var(--font-b); letter-spacing: 0; margin-bottom: 4px; }
.project__meta p { font-size: 11px; color: #a3acb9; }
.project::before { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: 1; background: linear-gradient(0deg, rgba(5, 5, 5, .82), transparent); pointer-events: none; }
.project--soma { background: radial-gradient(80% 90% at 70% 40%, #1a2a58 0%, #0b1022 60%, #07080d 100%); }
.project__phone { position: absolute; right: 8%; top: 12%; width: auto; height: 108%; transform: rotate(10deg); border-radius: 22px; box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .7s var(--ease); }
.project:hover .project__phone { transform: rotate(7deg) translateY(-6px) scale(1.03); }
.project--map { background: radial-gradient(70% 90% at 50% 40%, #0d1630 0%, #070910 70%); }
.project--map canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
.project--map:hover canvas { transform: scale(1.05); }
.project--hobbli { background: radial-gradient(70% 90% at 60% 40%, #0e1626 0%, #06070b 75%); perspective: 900px; }
.mock { position: absolute; left: 50%; top: 12%; width: 74%; transform: translateX(-50%) rotateX(10deg) rotateY(-16deg) rotateZ(2deg); transform-style: preserve-3d; transition: transform .8s var(--ease); }
.project:hover .mock { transform: translateX(-50%) rotateX(6deg) rotateY(-10deg) rotateZ(1deg) translateY(-4px); }
.mock__screen { border: 2px solid #3a4558; border-bottom-width: 3px; border-radius: 8px 8px 2px 2px; background: #05060a; overflow: hidden; box-shadow: 0 0 40px rgba(169, 207, 255, .15); }
.mock__base { height: 9px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #aab6c8, #4a5568); box-shadow: 0 14px 24px rgba(0, 0, 0, .6); }

/* ==========================================================
   WHY
   ========================================================== */
.why { position: relative; padding-block: clamp(36px, 5vw, 72px) clamp(24px, 3vw, 40px); overflow: hidden; }
.why__arc { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; pointer-events: none; }
.why__grid { position: relative; display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.why h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 18px; }
.why .muted { font-size: 14px; max-width: 28ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 6px clamp(14px, 2vw, 30px); border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1.1 var(--font-h); letter-spacing: -.02em; margin-bottom: 6px; }
.stats span { font-size: 13px; color: var(--muted); }

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testi__grid { display: grid; grid-template-columns: 1fr minmax(280px, 44%); gap: clamp(20px, 4vw, 56px); align-items: center; }
.slides { min-height: 120px; }
.slide blockquote p { font: italic 300 clamp(1.1rem, 1.7vw, 1.4rem)/1.35 var(--font-h); letter-spacing: -.01em; max-width: 34ch; margin-bottom: 18px; }
.slide figcaption { font-size: 13px; color: var(--muted); }
.slide.is-active { animation: slideIn .6s var(--ease) both; }
.slide[hidden] { display: none; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.slider__ctrl { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.dots { display: flex; margin-right: 8px; }
.dot { width: 24px; height: 24px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; padding: 0; }
.dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--dot); transition: background .25s, transform .25s; }
.dot.is-active::before { background: var(--strong); transform: scale(1.3); }
.dot:hover::before { background: var(--accent); }
.round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.round:hover { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.round:active { transform: scale(.94); }
.testi__img { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; }
.testi__img canvas { width: 100%; height: 100%; }

/* ==========================================================
   CTA + FOOTER
   ========================================================== */
.section--cta { padding-top: clamp(20px, 3vw, 36px); }
.cta { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 48px); background: radial-gradient(80% 160% at 85% 120%, #101a2e 0%, #07080b 60%); }
.cta__arc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta__copy { position: relative; }
.cta h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 8px; line-height: 1.15; }
.cta .muted { font-size: 14px; }
.cta .btn { position: relative; margin-right: auto; }
.cta__brand { position: relative; text-align: right; }
.cta__brand img { height: 36px; width: auto; margin-left: auto; margin-bottom: 14px; }
.social { display: flex; gap: 6px; justify-content: flex-end; }
.social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #e6eaf0; transition: color .25s, background .25s, transform .3s var(--ease); }
.social a:hover { color: var(--accent); background: rgba(169, 207, 255, .1); transform: translateY(-2px); }
.footer { padding-block: 22px 28px; font-size: 12px; color: var(--muted); }
.footer__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 4px; }
.footer nav a { padding: 10px 10px; transition: color .25s; }
.footer nav a:hover { color: var(--strong); }


/* ==========================================================
   SUBPAGES
   ========================================================== */
.page-hero { padding-top: clamp(110px, 12vw, 160px); padding-bottom: clamp(24px, 4vw, 56px); position: relative; overflow: hidden;
  background: radial-gradient(60% 80% at 85% 0%, rgba(169, 207, 255, .1), transparent 70%); }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -.035em; margin-bottom: 18px; }
.page-lead { font: 300 clamp(1.15rem, 2vw, 1.5rem)/1.3 var(--font-h); color: var(--text-2); margin-bottom: 14px; max-width: 34ch; }
.page-hero .muted { max-width: 48ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); }
.split { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.split h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 14px; }
.prose p { color: var(--text-3); font-size: 16px; max-width: 60ch; }
.prose p + p { margin-top: 16px; }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feats li { min-width: 0; }
.feat { padding: 24px 22px 28px; }
.feat:hover { transform: translateY(-4px); }
.feat__n { display: block; font: 400 12px/1 var(--font-b); letter-spacing: .14em; color: var(--accent); margin-bottom: 36px; }
.feat h3 { font: 500 16px/1.3 var(--font-b); letter-spacing: 0; margin-bottom: 10px; }
.feat p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.facts { margin: 0 0 24px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--text-2); background: var(--fill); }
.checks li { position: relative; padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text-2); }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 12px; height: 7px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.svc .muted { max-width: 32ch; font-size: 15px; }
.phone-stage, .map-stage, .mock-stage { position: relative; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; height: clamp(320px, 34vw, 460px);
  background: radial-gradient(80% 90% at 60% 40%, #16224a 0%, #0a0e1c 60%, #06070b 100%); }
.phone-stage img { position: absolute; left: 50%; top: 8%; height: 100%; width: auto; transform: translateX(-50%) rotate(6deg); border-radius: 30px; box-shadow: 0 40px 80px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); }
.map-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-stage { perspective: 1000px; }
.mock-stage .mock { top: 20%; width: 78%; }
.page-hero + .section { padding-top: clamp(24px, 4vw, 56px); }
@media (max-width: 900px) {
  .page-hero__grid, .split { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .feats { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
}

.prose .greek { font: 300 clamp(2.4rem, 5vw, 3.8rem)/1 var(--font-h); color: var(--accent); letter-spacing: .02em; margin-bottom: 20px; }
.prose em { color: var(--strong); }
.prose .slogan { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--font-h); letter-spacing: -.02em; color: var(--strong); margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ==========================================================
   MOTION — entrance reveals (only when JS is present)
   ========================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__intro .muted { max-width: 40ch; }
  .services { margin-top: -30px; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards--2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav.is-stuck { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--nav-solid); }
  .nav__in { grid-template-columns: 1fr auto; }
  .nav__cta { display: none; }
  .theme-toggle { width: 44px; height: 44px; }
  .nav__toggle { display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer; }
  .nav__toggle span { display: block; width: 16px; height: 1.5px; background: var(--strong); margin-inline: auto; transition: transform .35s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 90px var(--gutter) 40px; background: var(--nav-overlay); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s, transform .4s var(--ease), visibility .35s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { font: 400 clamp(1.8rem, 7vw, 2.4rem)/1.2 var(--font-h); padding: 10px 0; }
  .nav__cta-mobile { display: inline-flex; margin-top: 20px; }
  .about { grid-template-columns: 1fr; }
  .about__inf { max-height: 220px; margin-top: -10px; }
  .projects { grid-template-columns: 1fr 1fr; }
  .project--soma { grid-column: 1 / -1; }
  .project { height: 240px; }
  .why__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stats li:nth-child(3) { border-left: 0; }
  .testi__grid { grid-template-columns: 1fr; }
  .testi__img { aspect-ratio: 16 / 9; order: -1; }
  .cta { flex-wrap: wrap; }
  .cta__brand { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .cta__brand img { margin: 0; }
}
@media (max-width: 600px) {
  .hero { min-height: 560px; }
  .hero__shade { background: linear-gradient(180deg, rgba(5, 5, 5, .55) 0%, transparent 40%, var(--page) 100%); }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service { padding: 14px 14px 58px; }
  .service__art { height: 110px; }
  .service .go { left: 14px; bottom: 14px; }
  .projects { grid-template-columns: 1fr; }
  .project { height: 220px; }
  .head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .btn--light { white-space: normal; text-align: left; }
  .footer__in { flex-direction: column; align-items: flex-start; }
}

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

/* theme switch: brief colour crossfade (disabled for reduced motion) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .35s, color .35s, border-color .35s, fill .35s, stroke .35s !important; }
@media (prefers-reduced-motion: reduce) { .theme-anim, .theme-anim * { transition: none !important; } }

/* light theme: the hero stays a dark cinematic band, with a clean edge instead of a fade into the page */
:root[data-theme="light"] .hero { border-radius: 0 0 28px 28px; }
:root[data-theme="light"] .hero__shade { background: linear-gradient(90deg, rgba(5, 5, 5, .85) 0%, rgba(5, 5, 5, .1) 55%, transparent 100%); }
:root[data-theme="light"] .services { margin-top: 0; padding-top: clamp(32px, 4vw, 56px); }
/* stages re-establish their own text colour (inheritance would otherwise carry the page's) */
.hero, .panel, .project, .testi__img, .phone-stage, .map-stage, .mock-stage,
html:has(.hero) .nav:not(.is-stuck) { color: var(--text); }

/* single featured project */
.projects--one { grid-template-columns: 1fr; }
.projects--one .project { height: clamp(260px, 26vw, 340px); }
.projects--one .project__phone { right: 12%; top: 10%; height: 112%; }
.projects--one .project__meta { left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); }
.projects--one .project__meta h3 { font: 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.1 var(--font-h); letter-spacing: -.02em; margin-bottom: 8px; }
.projects--one .project__meta p { font-size: 14px; }
@media (max-width: 900px) { .projects--one .project { height: 280px; } .projects--one .project__phone { right: 6%; } }
