/* ==========================================================
   The Ecom Center — styles
   Palette taken from the logo: navy ink + electric blue on soft grey
   Layout language inspired by weichie.com (bold display type, pill UI,
   curved carousel, sticky services, stacked process cards)
   ========================================================== */

:root {
  color-scheme: light;
  /* "Coastal Vibes": slate #293241, steel blue #3d5a80, light blue #98c1d9, ice #e0fbfc, coral #ee6c4d */
  --paper: #f4fcfd;
  --paper-2: #e0fbfc;
  --tile: #d4e6f1; /* light tile behind cut-out team portraits (same in both themes) */
  --card: #ffffff;
  --ink: #293241;
  --muted: #566276;
  --line: rgba(41, 50, 65, .14);
  --accent: #ee6c4d; /* coral: buttons, dots, highlights */
  --accent-2: #f58a6f;
  --accent-ink: #1a212d; /* text on coral */
  --accent-soft: rgba(238, 108, 77, .14);
  --accent-text: #3d5a80; /* steel blue: small accent text and links (coral is too light for small text) */
  --accent-strong: #dc5535; /* deeper coral for large accent words */
  --glass: rgba(244, 252, 253, .74);
  --danger: #d92d20;

  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-title: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --title-w: 600; /* heading weight */
  --ff-logo: "Outfit", var(--ff-body);
  --ff-logo-heavy: "Archivo Black", "Arial Black", var(--ff-body);

  --gutter: clamp(1.25rem, 4.7vw, 5rem);
  --pad: clamp(5rem, 3.125vw + 4.375rem, 7.5rem);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --header-h: 5.5rem;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151b26;
  --paper-2: #1b2331;
  --card: #1e2736;
  --ink: #eef6f8;
  --muted: #9db0c1;
  --line: rgba(238, 246, 248, .14);
  --accent: #ee6c4d;
  --accent-2: #f58a6f;
  --accent-ink: #1a212d;
  --accent-soft: rgba(238, 108, 77, .18);
  --accent-text: #98c1d9;
  --accent-strong: #f47e60;
  --glass: rgba(27, 35, 49, .72);
  --danger: #ff7a70;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .4s, color .4s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: .6rem; transition: top .2s; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 98rem; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--md { max-width: 66rem; }

.eyebrow {
  display: flex; align-items: center; gap: .65rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }

.h2 {
  font-family: var(--ff-title); font-weight: var(--title-w); font-synthesis: none;
  font-size: clamp(2.4rem, 5.2vw, 4.8rem); line-height: 1.02; letter-spacing: -.035em;
}
.h2 em, .hero__title em { font-style: normal; color: var(--accent-strong); }

.sec-head { display: grid; grid-template-columns: 1fr auto; gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.sec-head__note { max-width: 19rem; color: var(--muted); }

/* ---------- glass / buttons ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line);
}
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.6rem; border-radius: 99px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-2); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- logo (rebuilt from brand logo) ---------- */
.logo {
  --o: .55em;
  display: inline-flex; align-items: flex-end; gap: .3em;
  font-size: 1.7rem; line-height: 1; color: var(--ink);
}
.logo__stack { display: flex; flex-direction: column; align-items: flex-start; }
.logo__the { font-family: var(--ff-logo); font-weight: 400; font-size: .46em; line-height: 1; margin: 0 0 .16em .04em; }
.logo__ecom {
  font-family: var(--ff-logo-heavy); font-weight: 400; font-synthesis: none;
  line-height: .8; letter-spacing: -.01em; white-space: nowrap;
}
.logo__o { display: inline-block; width: var(--o); height: var(--o); vertical-align: baseline; margin: 0 .035em 0 .02em; flex: none; }
.logo__bar { width: .075em; min-width: 2px; height: 1.12em; background: var(--accent-text); margin-bottom: -.06em; flex: none; }
.logo__center { font-family: var(--ff-logo); font-weight: 300; font-size: 1.04em; line-height: .8; letter-spacing: -.01em; white-space: nowrap; }
.logo--xl { font-size: clamp(2.6rem, 12vw, 13rem); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem var(--gutter);
  transition: transform .5s var(--ease);
}
.site-header.is-hidden { transform: translateY(-110%); }
/* soft fade behind the header once the page is scrolled, so the logo never collides with headings */
.site-header::before { content: ""; position: absolute; inset: 0 0 -1.6rem; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s; background: linear-gradient(var(--paper) 45%, transparent); }
.site-header.is-scrolled::before { opacity: .94; }
.site-header__right { display: flex; align-items: center; gap: .6rem; }
.nav { display: flex; gap: .15rem; padding: .35rem; border-radius: 99px; }
.nav a { padding: .65rem 1.1rem; border-radius: 99px; font-size: .98rem; font-weight: 500; transition: background-color .25s; }
.nav a:hover { background: var(--accent-soft); }
.pill { display: inline-flex; align-items: center; gap: .9rem; padding: .35rem .35rem .35rem 1.4rem; border-radius: 99px; font-weight: 600; }
.pill__icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); transition: transform .45s var(--ease); }
.pill:hover .pill__icon { transform: rotate(45deg); }
.round { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: transform .3s var(--ease); }
.round:hover { transform: scale(1.06); }
.ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: block; }
.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: .36rem; }
.burger span { display: block; width: 1.25rem; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(.2rem) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-.2rem) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--paper);
  display: flex; align-items: center; padding: 6rem var(--gutter) 3rem;
  visibility: hidden; clip-path: circle(0 at calc(100% - 3.5rem) 2.8rem);
  transition: clip-path .75s var(--ease), visibility 0s .75s;
}
.mobile-menu.is-open { visibility: visible; clip-path: circle(150% at calc(100% - 3.5rem) 2.8rem); transition-delay: 0s; }
.mobile-menu nav { display: flex; flex-direction: column; width: 100%; }
.mobile-menu a { font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(2.4rem, 10vw, 3.8rem); line-height: 1.1; padding: .12em 0; border-bottom: 1px solid var(--line); letter-spacing: -.03em; }
.mobile-menu__cta { color: var(--accent-strong); }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4.5rem)); padding-bottom: var(--pad); overflow: hidden; }
.hero__top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.hero__title { font-family: var(--ff-title); font-weight: var(--title-w); font-synthesis: none; font-size: clamp(3.1rem, 8.2vw, 8.2rem); line-height: .98; letter-spacing: -.045em; }
.hero__title .line { display: block; overflow: hidden; padding: 0 .06em .1em 0; margin-bottom: -.1em; }
.hero__title .line > span { display: block; animation: rise 1.2s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
.hero__side { animation: fade-up 1s .35s var(--ease) both; }
.hero__side p { font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--muted); max-width: 30rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.showcase { --cw: clamp(17rem, 33vw, 30rem); position: relative; margin-top: clamp(2.5rem, 5vw, 4.5rem); animation: fade-up 1.2s .5s var(--ease) both; }
.showcase__stage { position: relative; height: calc(var(--cw) * .75 + 3.5rem); perspective: 1500px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.showcase__stage.is-drag { cursor: grabbing; }
.showcase::after { content: "← " attr(data-drag-hint) " →"; position: absolute; left: 50%; bottom: -.4rem; transform: translateX(-50%); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card3d { position: absolute; left: 50%; top: 1.5rem; width: var(--cw); margin-left: calc(var(--cw) / -2); will-change: transform; backface-visibility: hidden; }
.card3d .shot { box-shadow: 0 34px 60px -28px rgba(41, 50, 65, .5); pointer-events: none; }

.hero__chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.9rem; margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.hero__chips li { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; }
.hero__chips svg { color: var(--accent); }

/* ---------- marquee (platforms + crew) ---------- */
.marquee { display: flex; overflow: hidden; }
.marquee__group { display: flex; flex: none; align-items: center; animation: marq var(--dur, 55s) linear infinite; }
@keyframes marq { to { transform: translateX(-100%); } }
.marquee:hover .marquee__group { animation-play-state: paused; }

.tools { padding: 2.25rem 0 2.5rem; border-block: 1px solid var(--line); background: var(--card); }
.tools__label { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.tools .marquee__group { gap: 3.2rem; padding-right: 3.2rem; }
.tools .marquee__group > span { display: flex; align-items: center; gap: 3.2rem; white-space: nowrap; font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.2; letter-spacing: -.02em; }
.tools .marquee__group > span::after { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- statement ---------- */
.statement-sec { padding: var(--pad) 0; }
.statement { font-family: var(--ff-title); font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.16; letter-spacing: -.025em; }
.statement .w { opacity: .16; transition: opacity .35s; }
.statement .w.on { opacity: 1; }

/* ---------- project images ---------- */
.shot { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1.75rem; background: var(--card); box-shadow: 0 30px 56px -30px rgba(41, 50, 65, .45); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }

/* ---------- work ---------- */
.work { padding: var(--pad) 0; background: var(--paper-2); transition: background-color .4s; }
.work__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 3rem); align-items: start; }
.proj:nth-child(even) { margin-top: clamp(2.5rem, 7vw, 6rem); }
.proj .shot { transition: transform .9s var(--ease); }
.proj:hover .shot { transform: scale(1.02); }
.proj__cat { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
.proj h3 { font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(1.7rem, 2.5vw, 2.3rem); line-height: 1.08; letter-spacing: -.025em; margin-top: .35rem; }
.proj p { color: var(--muted); margin-top: .65rem; max-width: 28rem; }
.proj__result { display: flex; align-items: baseline; gap: .7rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.proj__result b { font-family: var(--ff-title); font-weight: var(--title-w); font-size: 2.1rem; line-height: 1; color: var(--accent-strong); }
.proj__result span { font-size: .92rem; color: var(--muted); }
.work__more { display: flex; justify-content: center; margin-top: clamp(3rem, 6vw, 5rem); }

/* ---------- services ---------- */
.services { padding: var(--pad) 0; }
.services__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.services__sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.services__lede { margin-top: 1.5rem; color: var(--muted); max-width: 26rem; font-size: 1.1rem; }
.services__list { display: flex; flex-direction: column; gap: clamp(3.5rem, 8vw, 7rem); padding-block: clamp(1rem, 8vh, 6rem); }
.svc { opacity: .2; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.svc.is-active { opacity: 1; transform: none; }
.svc__num { font-size: .82rem; font-weight: 700; letter-spacing: .14em; color: var(--accent-text); }
.svc h3 { font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 1.1; letter-spacing: -.025em; margin: .5rem 0 1rem; }
.svc > p { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.svc ul { list-style: none; display: grid; gap: .8rem; margin-top: 1.4rem; }
.svc li { position: relative; padding-left: 1.5rem; max-width: 34rem; }
.svc li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }

/* ---------- process (stacked sticky cards) ---------- */
.process { padding: var(--pad) 0; background: var(--card); border-top: 1px solid var(--line); transition: background-color .4s; }
.steps { display: flex; flex-direction: column; gap: 1.25rem; padding-bottom: 2rem; }
.step {
  position: sticky; top: calc(var(--header-h) + var(--i) * 1.1rem);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start;
  min-height: 21rem; padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: 2rem;
  box-shadow: 0 -12px 40px -22px rgba(41, 50, 65, .35);
}
.step__num { font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(4.5rem, 10vw, 9rem); line-height: .8; letter-spacing: -.05em; }
.step h3 { font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; margin-bottom: 1rem; letter-spacing: -.03em; }
.step p { max-width: 36rem; font-size: 1.1rem; opacity: .86; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tags li { padding: .45rem 1rem; border: 1px solid currentColor; border-radius: 99px; font-size: .9rem; opacity: .85; }
.step--accent { background: linear-gradient(135deg, #3d5a80, #4f78a6); color: #fff; }
.step--ink { background: #293241; color: #eef6f8; border: 1px solid rgba(255, 255, 255, .08); }
.step--beige { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.step--card { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
[data-theme="dark"] .step--ink { background: #2b384d; }

/* ---------- stats ---------- */
.stats { padding: clamp(3.5rem, 7vw, 6rem) 0; background: #293241; color: #eef6f8; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 1.25rem; }
.stat b { display: block; font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(2.6rem, 4.7vw, 4.4rem); line-height: 1; letter-spacing: -.04em; }
.stat span { display: block; margin-top: .6rem; color: #9fb1c6; }

/* ---------- team ---------- */
.team { padding: var(--pad) 0; overflow: hidden; }
.ceo { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.ceo__photo { position: relative; aspect-ratio: 4 / 5; max-width: 34rem; margin: 0; overflow: hidden; border-radius: 2rem; background: linear-gradient(160deg, #293241, #3d5a80); }
.ceo__fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(5rem, 11vw, 9rem); color: rgba(255, 255, 255, .9); }
.ceo__photo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
/* cut-out portraits (white background): multiply them into a light tile so the white disappears */
.ceo__photo.ceo__photo--cutout, .dev__photo.dev__photo--cutout { isolation: isolate; background: var(--tile); }
.ceo__photo--cutout { aspect-ratio: 1 / 1; }
.ceo__photo--cutout img, .dev__photo--cutout img { mix-blend-mode: multiply; object-position: 50% 50%; }
.ceo__photo--cutout .ceo__fallback, .dev__photo--cutout .dev__fallback { color: var(--accent-text); }
/* initials only show when there is no photo (they would show through a multiplied cut-out otherwise) */
[data-photo]:not(.no-photo) :is(.ceo__fallback, .dev__fallback) { visibility: hidden; }
.ceo__tag { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; display: flex; flex-direction: column; line-height: 1.25; padding: .8rem 1.15rem; border-radius: 1rem; }
.ceo__tag b { font-size: 1.05rem; }
.ceo__tag span { font-size: .85rem; color: var(--muted); }
.ceo__copy > p:not(.eyebrow) { margin-top: 1.25rem; max-width: 34rem; color: var(--muted); font-size: 1.1rem; }
.ceo__copy .h2 { font-size: clamp(2.2rem, 4.2vw, 3.9rem); }
.ceo__tags { margin-top: 1.4rem; }
.ceo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.75rem; margin-top: 2rem; }
.ceo__actions .btn { margin: 0; }
.textlink { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .95rem; padding-bottom: 1px; border-bottom: 1px solid var(--accent); }


/* ---------- contact ---------- */
.contact { padding: var(--pad) 0; background: var(--paper-2); transition: background-color .4s; }
.contact__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.contact__copy > p:not(.eyebrow) { margin-top: 1.5rem; max-width: 30rem; color: var(--muted); font-size: 1.1rem; }
.contact__facts { list-style: none; display: grid; gap: .85rem; margin: 2rem 0; }
.contact__facts li { display: flex; align-items: center; gap: .7rem; }
.contact__facts svg { color: var(--accent); flex: none; }
.contact__mail { display: inline-flex; align-items: center; gap: .5rem; padding-bottom: .15rem; border-bottom: 2px solid var(--accent); font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.1; letter-spacing: -.02em; }

.intake { padding: clamp(1.5rem, 3.5vw, 3rem); border: 1px solid var(--line); border-radius: 2rem; background: var(--card); box-shadow: 0 30px 70px -42px rgba(41, 50, 65, .45); }
.intake__progress { display: flex; gap: .4rem; margin-bottom: 1.75rem; }
.intake__progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background-color .4s; }
.intake__progress i.on { background: var(--accent); }
.intake__step { display: none; min-width: 0; padding: 0; border: 0; }
.intake__step.is-active { display: block; animation: fade .5s var(--ease); }
.intake__lead { float: left; width: 100%; padding: 0; margin-bottom: 1.5rem; font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(1.7rem, 2.7vw, 2.3rem); line-height: 1.1; letter-spacing: -.025em; }
.intake__lead + * { clear: both; }
.intake__lead small { display: block; margin-top: .6rem; font-family: var(--ff-body); font-size: .9rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .7rem 1.15rem; border: 1px solid var(--line); border-radius: 99px; font-size: .98rem; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; }
.field--full { grid-column: 1 / -1; }
.field i { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--paper); color: var(--ink); font: inherit; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { resize: vertical; }
.intake__err { margin-top: 1rem; color: var(--danger); font-size: .92rem; }
.intake__actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.75rem; }
.intake__step[data-step="1"] .intake__actions { justify-content: flex-end; }
.intake__done { padding: 2rem 0; text-align: center; animation: fade .5s var(--ease); }
.intake__check { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.intake__done h3 { font-family: var(--ff-title); font-weight: var(--title-w); font-size: 2rem; line-height: 1.1; }
.intake__done p { max-width: 26rem; margin: .8rem auto 1.5rem; color: var(--muted); }

/* ---------- footer (always dark) ---------- */
.footer {
  --paper: #111722; --ink: #eef6f8; --muted: #8fa3b5; --line: rgba(255, 255, 255, .14);
  --accent: #ee6c4d; --accent-2: #f58a6f; --accent-ink: #1a212d; --accent-text: #98c1d9; --accent-strong: #f47e60;
  background: #111722; color: #eef6f8; padding: clamp(4rem, 8vw, 7rem) 0 1.5rem; overflow: hidden;
}
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: 2.5rem; }
.footer h4 { margin-bottom: 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer__cols > div:not(.footer__cta) a { display: block; padding: .2rem 0; color: #e3ebf5; transition: color .2s; }
.footer__cols > div:not(.footer__cta) a:hover { color: var(--accent); }
.footer__cta p { margin-bottom: 1rem; font-family: var(--ff-title); font-weight: var(--title-w); font-size: 1.7rem; line-height: 1.15; letter-spacing: -.02em; }
.footer__word { width: fit-content; margin: clamp(2.5rem, 6vw, 5rem) auto 1.75rem; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__legal a:hover { color: var(--accent); }

/* ---------- scroll reveals (enabled by JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hero__top { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .proj:nth-child(n) { margin-top: 0; }
  .services__layout, .ceo, .contact__layout { grid-template-columns: 1fr; }
  .services__sticky { position: static; }
  .svc { opacity: 1; transform: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; min-height: 0; }
  .step__num { font-size: 5rem; }
}
@media (max-width: 640px) {
  .pill--contact { display: none; }
  .logo { font-size: 1.4rem; }
  .sec-head { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .intake__actions { flex-wrap: wrap; }
  .step { position: relative; top: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__group { animation: none !important; }
  .statement .w { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .svc { opacity: 1; transform: none; }
}


/* ==========================================================
   v2 additions: hero eyebrow, featured case, portfolio extras,
   reviews, developer cards, extra project shapes
   ========================================================== */
.hero__eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: .88rem; animation: fade-up 1s .1s var(--ease) both; }
.hero__eyebrow i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* featured case study */
.case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-bottom: clamp(3.5rem, 7vw, 6rem); padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--line); border-radius: 2.25rem; background: var(--card); }
.case .shot { border-radius: 1.5rem; }
.case__copy { padding: clamp(.5rem, 2vw, 2rem) clamp(.5rem, 2vw, 2rem) clamp(.5rem, 2vw, 2rem) 0; }
.case__copy h3 { font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.06; letter-spacing: -.035em; }
.case__copy > p:not(.eyebrow) { margin-top: 1rem; max-width: 34rem; color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; display: grid; gap: .7rem; margin: 1.4rem 0; }
.ticks li { position: relative; padding-left: 1.7rem; max-width: 34rem; }
.ticks li::before { content: ""; position: absolute; left: .25rem; top: .38em; width: .38rem; height: .75rem; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.case__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.chip-static { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 99px; font-size: .86rem; color: var(--muted); }

.proj .tags { margin-top: 1rem; }
.tags--sm li { padding: .3rem .75rem; border-color: var(--line); font-size: .8rem; opacity: 1; color: var(--muted); }

/* more work */
.more { margin-top: clamp(3.5rem, 7vw, 6rem); }
.more__title { font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 1.5rem; }
.more__list { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.more__list li { grid-column: span 2; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--card); }
.more__list li:nth-child(n + 4) { grid-column: span 3; }
.more__list b { display: block; font-family: var(--ff-title); font-weight: var(--title-w); font-size: 1.4rem; line-height: 1.15; letter-spacing: -.02em; }
.more__list span { display: block; margin-top: .35rem; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.more__list p { margin-top: .75rem; color: var(--muted); font-size: .96rem; }

/* reviews */
.reviews { padding: var(--pad) 0; }
.reviews__layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.rating { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 2rem; background: #293241; color: #eef6f8; border: 1px solid rgba(255, 255, 255, .08); position: sticky; top: calc(var(--header-h) + 1rem); }
.rating__big { display: flex; flex-direction: column; gap: .25rem; }
.rating__big b { font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(4rem, 7vw, 6.2rem); line-height: .95; letter-spacing: -.04em; }
.rating__big small { color: #9fb1c6; font-size: .95rem; }
.stars { color: #ffb938; letter-spacing: .14em; }
.bars { list-style: none; display: grid; gap: .6rem; margin: 1.6rem 0; }
.bars li { display: grid; grid-template-columns: 3rem 1fr 2.6rem; align-items: center; gap: .8rem; font-size: .9rem; color: #c8d5e4; }
.bars b { font-weight: 600; text-align: right; color: #eef6f8; }
.bars i { position: relative; display: block; height: .5rem; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: max(var(--w), .35rem); border-radius: inherit; background: linear-gradient(90deg, #ee6c4d, #f58a6f); }
.subs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1.6rem; }
.subs li { padding: .8rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 1rem; }
.subs b { display: block; font-family: var(--ff-title); font-weight: var(--title-w); font-size: 1.5rem; line-height: 1.05; }
.subs span { font-size: .78rem; color: #9fb1c6; line-height: 1.2; display: block; margin-top: .3rem; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rev { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--card); }
.rev__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .88rem; color: var(--muted); }
.rev p { font-size: 1.02rem; }
.rev footer { margin-top: auto; font-size: .85rem; color: var(--muted); }
.reviews__note { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }

/* team: developer cards */
.devs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); }
.dev { display: grid; grid-template-columns: minmax(0, 11rem) 1fr; gap: 1.5rem; align-items: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--card); }
.dev__photo { position: relative; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 1.25rem; background: linear-gradient(160deg, #293241, #3d5a80); }
.dev__fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ff-title); font-weight: var(--title-w); font-size: 3.4rem; color: rgba(255, 255, 255, .9); }
.dev__photo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.dev__role { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.dev h3 { margin: .35rem 0 .7rem; font-family: var(--ff-title); font-weight: var(--title-w); font-size: clamp(1.6rem, 2.1vw, 1.95rem); line-height: 1.1; letter-spacing: -.025em; }
.dev p:not(.dev__role) { color: var(--muted); font-size: .98rem; }
.dev .tags { margin-top: 1rem; }
.dev__links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.1rem; font-weight: 600; font-size: .95rem; }
.dev__links a { display: inline-flex; align-items: center; gap: .3rem; padding-bottom: 1px; border-bottom: 1px solid var(--accent); }
.footer__loc { display: block; padding: .2rem 0; color: #e3ebf5; }

@media (max-width: 1000px) {
  .case, .reviews__layout, .devs { grid-template-columns: 1fr; }
  .case__copy { padding: .5rem 1rem 1.25rem; }
  .rating { position: static; }
  .proj:nth-child(n) { margin-top: 0; }
}
@media (max-width: 800px) {
  .more__list { grid-template-columns: 1fr; }
  .more__list li, .more__list li:nth-child(n + 4) { grid-column: auto; }
}
@media (max-width: 640px) {
  .quotes { grid-template-columns: 1fr; }
  .dev { grid-template-columns: 1fr; }
  .dev__photo { max-width: 14rem; }
  .subs { grid-template-columns: 1fr; }
}

/* platform logos (brand logos stay in their own colours, so they sit on white chips in both themes) */
.marquee--logos .marquee__group { gap: 1.1rem; padding-right: 1.1rem; }
.plat { display: flex; align-items: center; gap: .7rem; height: 4.25rem; padding: 0 1.6rem; border: 1px solid rgba(41, 50, 65, .1); border-radius: 1.1rem; background: #fff; color: #293241; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 10px 24px -18px rgba(41, 50, 65, .5); }
.plat img { display: block; height: var(--h, 28px); width: auto; flex: none; }
.plat--sm { height: 3.1rem; padding: 0 1.1rem; gap: .5rem; border-radius: .85rem; font-size: .95rem; }
.plat--sm img { height: calc(var(--h, 24px) * .8); }
.logo-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.footer__tm { margin-top: 2.2rem; max-width: 46rem; font-size: .78rem; line-height: 1.5; color: #7f93ab; }

/* client logos */
.clients { margin-top: clamp(3.5rem, 7vw, 6rem); text-align: center; }
.clients__label { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.clients__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.client { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; height: 11.5rem; margin: 0; padding: 1.25rem 1rem; border: 1px solid var(--line); border-radius: 1.5rem; background: #fff; }
.client--dark { background: #293241; border-color: transparent; }
[data-theme="dark"] .client--dark { border-color: rgba(255, 255, 255, .16); }
.client img { display: block; height: 4.6rem; width: auto; max-width: 80%; object-fit: contain; }
.client figcaption { font-size: .85rem; color: #5a6b80; }
.client--dark figcaption { color: #9fb1c6; }
/* live client stores: a straight 3-up row under the main grid */
.stores { margin-top: clamp(3.5rem, 7vw, 6rem); }
.stores > .clients__label { text-align: center; }
.stores__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.25rem, 4vw, 3rem) clamp(1.25rem, 2.4vw, 2rem); margin-top: 1.75rem; align-items: start; }
.stores__grid .proj:nth-child(n) { margin-top: 0; }
.stores__grid .proj h3 { font-size: clamp(1.5rem, 2.1vw, 1.9rem); }
.stores__grid .proj p { max-width: none; }
@media (max-width: 1000px) {
  .stores__grid { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
}
@media (max-width: 800px) {
  .clients__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client { height: 10rem; }
  .client img { height: 3.8rem; }
}

/* ==========================================================
   "Tell us what you need" popup: centred dialog on desktop,
   bottom sheet on phones
   ========================================================== */
html.modal-open { overflow: hidden; }
.modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.modal[open] { display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 3vw, 2rem); }
.modal::backdrop { background: rgba(21, 27, 38, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open]::backdrop { animation: fade .3s var(--ease); }
.modal__panel {
  --mpad: clamp(1.4rem, 3vw, 2.25rem);
  position: relative; display: flex; flex-direction: column;
  width: min(42rem, 100%); max-height: min(100%, 54rem);
  background: var(--card); border: 1px solid var(--line); border-radius: 2rem; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(21, 27, 38, .65);
  animation: pop .45s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
.modal__head { flex: none; padding: var(--mpad) calc(var(--mpad) + 3.4rem) 1rem var(--mpad); }
.modal__head .eyebrow { margin-bottom: .7rem; }
.modal__title { font-family: var(--ff-title); font-weight: var(--title-w); font-synthesis: none; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -.035em; }
.modal__title em { font-style: normal; color: var(--accent-strong); }
.modal__sub { margin-top: .65rem; max-width: 30rem; color: var(--muted); font-size: .98rem; }
.modal__close { position: absolute; top: clamp(1rem, 2.2vw, 1.5rem); right: clamp(1rem, 2.2vw, 1.5rem); z-index: 3; width: 2.9rem; height: 2.9rem; border: 1px solid var(--line); background: var(--paper-2); transition: transform .3s var(--ease), background-color .25s; }
.modal__close:hover { background: var(--accent-soft); transform: rotate(90deg); }
.modal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .5rem var(--mpad) 0; }
.modal .intake { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.modal .intake__lead { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 1.1rem; }
/* the Next / Send row stays in reach while the chips scroll */
.modal .intake__actions { position: sticky; bottom: 0; z-index: 2; margin: 1.1rem calc(-1 * var(--mpad)) 0; padding: 1rem var(--mpad) calc(1rem + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.modal .intake__done { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
.intake__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.intake [data-close-quote] { display: none; }
.modal .intake [data-close-quote] { display: inline-flex; }

@media (max-width: 640px) {
  .modal[open] { align-items: flex-end; padding: 0; }
  .modal__panel { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 1.75rem 1.75rem 0 0; border-bottom: 0; animation-name: sheet; animation-duration: .5s; }
  .modal__panel::before { content: ""; flex: none; width: 2.6rem; height: .3rem; margin: .65rem auto 0; border-radius: 9px; background: var(--line); }
  .modal__head { padding-top: 1rem; padding-bottom: .75rem; }
  .modal__close { top: 1.2rem; }
  .modal__sub { font-size: .92rem; }
  .modal .chip span { padding: .65rem 1rem; }
}

/* ---------- floating call-to-action, fixed to the screen corner like a chat icon ---------- */
.float-cta {
  position: fixed; z-index: 30; right: clamp(1rem, 2vw, 1.75rem); bottom: calc(clamp(1rem, 2vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .5rem .5rem .5rem 1.15rem; border-radius: 99px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 22px 44px -18px rgba(41, 50, 65, .6), 0 4px 10px -4px rgba(41, 50, 65, .25);
  font-family: var(--ff-title); font-weight: var(--title-w); font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  animation: float-in .7s 1.4s var(--ease) backwards, bob 4.6s 2.1s ease-in-out infinite;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), opacity .3s var(--ease), translate .3s var(--ease), visibility .3s;
}
.float-cta__dot { position: relative; flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); }
.float-cta__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2.2s ease-out infinite; }
.float-cta__go { flex: none; display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); overflow: hidden; }
.float-cta__go svg { transition: transform .3s var(--ease); }
.float-cta:hover, .float-cta:focus-visible { animation-play-state: paused; box-shadow: 0 26px 50px -16px rgba(41, 50, 65, .7), 0 0 0 4px var(--accent-soft); }
.float-cta:hover .float-cta__go svg, .float-cta:focus-visible .float-cta__go svg { transform: translate(2px, -2px) scale(1.12); }
.float-cta:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.float-cta:active { filter: brightness(.97); }
/* tucked away while the contact form itself is on screen (script.js toggles .is-away) */
.float-cta.is-away { opacity: 0; visibility: hidden; pointer-events: none; translate: 0 14px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-in { from { opacity: 0; transform: translateY(28px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 75%, 100% { transform: scale(3); opacity: 0; } }
@media (max-width: 700px) {
  .float-cta { font-size: .95rem; padding: .4rem .4rem .4rem 1rem; gap: .6rem; }
  .float-cta__go { width: 2.1rem; height: 2.1rem; }
}
