/* Esquared Systems — design tokens
   Brand blue comes from the logo mark (#71C6FF). Dark is the primary theme. */
:root {
  --bg: #070b14;
  --bg-2: #0b111d;
  --surface: #0f1726;
  --surface-2: #142036;
  --ink: #e9eef6;
  --muted: #98a4b8;
  --line: rgba(148, 170, 210, .14);
  --line-strong: rgba(148, 170, 210, .28);
  --brand: #71c6ff;
  --brand-ink: #04131f;
  --brand-soft: rgba(113, 198, 255, .12);
  --link: #8fd3ff;
  --hero-ink: #f3f7fc;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, .7);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f8fb;
  --bg-2: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f2f6fb;
  --ink: #0b1424;
  --muted: #4f5b6e;
  --line: rgba(15, 30, 60, .1);
  --line-strong: rgba(15, 30, 60, .2);
  --brand: #0a6fc2;
  --brand-ink: #ffffff;
  --brand-soft: rgba(10, 111, 194, .09);
  --link: #0a64b0;
  --shadow: 0 20px 45px -28px rgba(15, 35, 70, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f8fb; --bg-2: #eef2f8; --surface: #ffffff; --surface-2: #f2f6fb;
    --ink: #0b1424; --muted: #4f5b6e; --line: rgba(15, 30, 60, .1); --line-strong: rgba(15, 30, 60, .2);
    --brand: #0a6fc2; --brand-ink: #ffffff; --brand-soft: rgba(10, 111, 194, .09); --link: #0a64b0;
    --shadow: 0 20px 45px -28px rgba(15, 35, 70, .35);
    color-scheme: light;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16.5px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.eyebrow { font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.hp { position: absolute; left: -9999px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--brand); color: var(--brand-ink);
  font: 600 .95rem/1 var(--font-body); padding: .85em 1.3em; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px var(--brand); }
.btn .i { transition: transform .2s; }
.btn:hover .i { transform: translateX(3px); }
.btn-lg { font-size: 1rem; padding: 1em 1.5em; }
.btn-sm { padding: .6em 1em; font-size: .875rem; }
.btn-ghost { background: transparent; color: var(--hero-ink); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--link); text-decoration: none; }
.link-arrow .i { transition: transform .2s; }
a:hover > .link-arrow .i, .link-arrow:hover .i { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body:not(.home) .site-header {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.home .site-header:not(.is-scrolled) .brand, .home .site-header:not(.is-scrolled) .bar-actions { color: var(--hero-ink); }
@media (min-width: 861px) { .home .site-header:not(.is-scrolled) .nav { color: var(--hero-ink); } }
.site-header { color: var(--ink); }
.bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.05rem/1 var(--font-display); }
.logo { width: 26px; height: 36px; background: var(--brand); -webkit-mask: url("../img/logo-mark.png") center/contain no-repeat; mask: url("../img/logo-mark.png") center/contain no-repeat; }
.home .site-header:not(.is-scrolled) .logo { background: #71c6ff; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { color: inherit; text-decoration: none; font-weight: 500; font-size: .95rem; padding: .55em .85em; border-radius: 999px; opacity: .82; transition: opacity .2s, background .2s; }
.nav a:not(.btn):hover { opacity: 1; background: var(--brand-soft); }
.nav a[aria-current="page"] { opacity: 1; color: var(--brand); }
.nav .btn { margin-left: 10px; }
.bar-actions { display: flex; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: inherit; cursor: pointer; }
.home .site-header:not(.is-scrolled) .icon-btn { border-color: rgba(255,255,255,.25); }
.icon-btn:hover { background: var(--brand-soft); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 72px 12px auto; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: .8em 1em; opacity: 1; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .bar-actions { margin-left: auto; }
}

/* ---------- home hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 920px); display: flex; align-items: center;
  padding: 140px 0 96px; color: var(--hero-ink); background: #050913;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transform: scale(1.05); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(113,198,255,.22), transparent 70%),
    linear-gradient(180deg, rgba(5,9,19,.55) 0%, rgba(5,9,19,.35) 40%, #050913 100%),
    linear-gradient(90deg, rgba(5,9,19,.92) 0%, rgba(5,9,19,.4) 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(113,198,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(113,198,255,.08) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%);
}
.hero-inner { width: 100%; }
.hero h1 { max-width: 12ch; margin-bottom: .3em; }
.hero .lead { color: rgba(233,240,250,.78); max-width: 52ch; }
.hero .eyebrow { color: #a9dcff; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: .6em 1em; border: 1px solid rgba(113,198,255,.3); background: rgba(113,198,255,.08); border-radius: 999px; letter-spacing: .08em; text-transform: none; font-size: .82rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #71c6ff; box-shadow: 0 0 0 4px rgba(113,198,255,.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(113,198,255,0); } }
.hero-rotator { font: 500 clamp(1.4rem, 3vw, 2.1rem)/1.2 var(--font-display); letter-spacing: -.02em; color: rgba(233,240,250,.7); margin-bottom: 1.3rem; }
.rotator { color: #71c6ff; display: inline-block; min-width: 1ch; border-right: 2px solid #71c6ff; padding-right: 4px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: scroll 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.marquee li { font: 500 1.05rem/1 var(--font-display); color: var(--muted); padding: 0 28px; white-space: nowrap; position: relative; }
.marquee li::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); opacity: .6; transform: translateY(-50%) rotate(45deg); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- section head ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  min-height: 400px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: transform .3s ease, border-color .3s;
}
.tile-wide { grid-column: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,11,20,.05) 0%, rgba(7,11,20,.7) 38%, rgba(7,11,20,.96) 72%); }
.tile:hover { transform: translateY(-4px); border-color: rgba(113,198,255,.5); }
.tile:hover img { transform: scale(1.06); }
.tile-body { margin-top: auto; padding: 26px; color: #eef3fa; }
.tile-body p { color: rgba(238,243,250,.78); font-size: .95rem; }
.tile-body .tile-cat { color: #a9dcff; }
.tile-body .link-arrow { color: #a9dcff; }
.tile-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(113,198,255,.25); margin-bottom: 14px; }
.tile .tile-icon { background: rgba(7,11,20,.55); color: #71c6ff; backdrop-filter: blur(6px); }
.tile-icon.sm { width: 30px; height: 30px; border-radius: 8px; margin: 0 6px 0 0; vertical-align: middle; }
.tile-cat { font: 600 .74rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .5rem; }

/* ---------- split ---------- */
.split-section { background: var(--bg-2); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.split-media::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 45%; height: 45%; border: 1px solid var(--brand); border-radius: var(--radius); z-index: -1; opacity: .5; }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .i { flex: none; color: var(--brand-ink); background: var(--brand); border-radius: 50%; padding: 3px; width: 24px; height: 24px; margin-top: 1px; }

/* ---------- values ---------- */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 24px; }
.value img { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 20px; }
.value h3, .value p { padding-inline: 10px; }
.value-num { display: block; font: 600 .85rem/1 var(--font-display); color: var(--brand); padding-inline: 10px; margin-bottom: 10px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vm p { font-size: 1.08rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(40px, 7vw, 80px); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(113,198,255,.28), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-strong);
}
.cta-inner h2 { max-width: 20ch; margin-bottom: .3em; }
.cta-inner p:last-child { margin: 0; }

/* ---------- page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 160px 0 72px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .22; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg-2) 25%, color-mix(in srgb, var(--bg-2) 40%, transparent)), linear-gradient(0deg, var(--bg) 0%, transparent 60%); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16ch; }

/* ---------- services page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { font: 500 .9rem/1 var(--font-body); padding: .7em 1.1em; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--brand); }
.chip.is-active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.service-list { display: grid; gap: 20px; }
.service { display: grid; grid-template-columns: 340px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 96px; }
.service:nth-child(even) { grid-template-columns: 1fr 340px; }
.service:nth-child(even) .service-media { order: 2; }
.service-media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.service-body { padding: clamp(24px, 4vw, 44px); align-self: center; }
.service-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tags { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .85rem; padding: .4em .8em; border-radius: 8px; background: var(--brand-soft); color: var(--ink); border: 1px solid var(--line); }
[data-filterable] > [hidden] { display: none; }
.service:target { border-color: var(--brand); }

/* ---------- team ---------- */
.team-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.carousel-nav { display: flex; gap: 8px; margin-bottom: clamp(32px, 5vw, 56px); flex: none; }
.carousel-nav .icon-btn { width: 46px; height: 46px; }
.carousel-nav .icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.flip { display: grid; transform: scaleX(-1); }
.team {
  --per-view: 4; --gap: 16px;
  display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px;
}
.team::-webkit-scrollbar { display: none; }
.team > .member { scroll-snap-align: start; }
.team:focus-visible { outline-offset: 6px; }
.member h3 { font-size: 1.08rem; }
.member p { font-size: .9rem; }
.member { text-align: left; }
.member-photo { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); aspect-ratio: 4 / 5; margin-bottom: 16px; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: filter .4s, transform .5s; }
.member:hover .member-photo img { filter: none; transform: scale(1.04); }
.member h3 { margin-bottom: .15em; }
.member p { margin: 0; }
.socials { display: flex; gap: 8px; margin-top: 10px; }
.socials a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s; }
.socials a:hover { border-color: var(--brand); }
.socials a { color: var(--muted); } .socials a:hover { color: var(--brand); }

/* ---------- portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.work { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .3s, border-color .3s; }
.work:hover { transform: translateY(-4px); border-color: var(--brand); }
.work img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.work-body { padding: 22px; }
.empty { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.empty img { border-radius: var(--radius); box-shadow: var(--shadow); }
.notfound { padding-top: 160px; }
.notfound h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.info { display: flex; gap: 16px; align-items: flex-start; color: var(--ink); text-decoration: none; transition: border-color .2s; }
.info:hover { border-color: var(--brand); }
.info .tile-icon { margin: 0; flex: none; }
.info h3 { font-size: 1rem; margin-bottom: .2em; }
.info p { margin: 0; }
.form { display: grid; gap: 16px; }
.form h2 { font-size: 1.6rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .8em .95em;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form .is-invalid { border-color: #ff8a8a; }
.form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: #6ee7a8; } .form-status.err { color: #ff9a9a; }
:root[data-theme="light"] .form-status.ok { color: #0d7a43; } :root[data-theme="light"] .form-status.err { color: #b42323; }

/* ---------- prose (markdown pages, project write-ups) ---------- */
.prose { max-width: 760px; }
.prose img { border-radius: var(--radius-sm); margin: 1.5rem 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-grid h4 { font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid a:not(.brand) { display: block; color: var(--ink); text-decoration: none; padding: 4px 0; opacity: .85; }
.footer-grid a:not(.brand):hover { color: var(--brand); opacity: 1; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 48px; padding-block: 22px; font-size: .85rem; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .team { --per-view: 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .bento, .values, .vm, .split, .contact, .empty { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile { min-height: 0; background: var(--surface); }
  .tile img { position: static; aspect-ratio: 16 / 9; height: auto; }
  .tile::before { display: none; }
  .tile-body { margin-top: 0; color: var(--ink); }
  .tile-body p { color: var(--muted); }
  .tile-body .tile-cat, .tile-body .link-arrow { color: var(--brand); }
  .tile .tile-icon { display: none; }
  .hero { min-height: 0; padding-bottom: 72px; }
  .service, .service:nth-child(even) { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-media { order: 0; }
  .service-media img { min-height: 0; aspect-ratio: 16 / 9; }
  .form .row { grid-template-columns: 1fr; }
  .split-media::after { display: none; }
  .hero { padding-top: 120px; }
}
@media (max-width: 480px) {
  .team { --per-view: 2; --gap: 12px; }
  .carousel-nav .icon-btn { width: 40px; height: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
