/* ==========================================================================
   MDV Web Design — styles.css
   Plain CSS, no build step. Tokens first, then base, components, pages.
   ========================================================================== */

:root {
  /* Brand colors: matched to the MDV logo (light blue, navy, a touch of gold) */
  --canvas: #DCE7F7;
  --paper: #F3F7FD;
  --white: #FFFFFF;
  --ink: #0F2449;
  --ink-soft: #16305C;
  --ink-line: #284375;
  --muted: #4E5F7D;
  --muted-dark: #A5B6D3;
  --lime: #6FA3FF;        /* main accent (bright bay blue) */
  --lime-deep: #9CC0FF;   /* accent hover */
  --violet: #FFC857;      /* secondary accent (gold), used sparingly */
  --line: #D3DEEE;
  --error-light: #B42318;
  --error-dark: #FF9A8F;

  /* Type */
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Space and shape */
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);
  --content: 1200px;
  --frame-gap: 16px;
  --r-frame: 28px;
  --r-card: 24px;
  --r-sm: 14px;
  --header-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 640ms;

  --shadow-soft: 0 40px 80px -48px rgba(15, 36, 73, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.tone-dark :focus-visible,
.menu :focus-visible { outline-color: var(--lime); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Page frame (rounded canvas like the reference) ---------- */
.frame {
  margin: var(--frame-gap);
  border-radius: var(--r-frame);
  background: var(--paper);
  overflow: hidden;
  overflow: clip;
  box-shadow: 0 30px 90px -60px rgba(15, 36, 73, 0.45);
  min-height: calc(100vh - 2 * var(--frame-gap));
}
@media (max-width: 767px) {
  :root { --frame-gap: 0px; }
  .frame { border-radius: 0; box-shadow: none; }
}

.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
}

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(2.4rem, 6.2vw, 4.75rem);
  line-height: 0.98;
}
.h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.08;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--violet);
  box-shadow: 0 0 0 1.5px var(--ink);
}
.tone-dark .kicker { color: var(--muted-dark); }
.tone-dark .kicker::before { background: var(--violet); box-shadow: none; }

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: #33435A;
  text-wrap: pretty;
}
.tone-dark .lead { color: #C3CDDB; }
.muted { color: var(--muted); }
.tone-dark .muted { color: var(--muted-dark); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--dark:hover { --btn-bg: #172A44; }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--light:hover { --btn-bd: var(--ink); }
.btn--lime { --btn-bg: var(--lime); --btn-fg: var(--ink); }
.btn--lime:hover { --btn-bg: var(--lime-deep); }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: #36507F; }
.btn--ghost-dark:hover { --btn-bd: var(--paper); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 0;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size var(--t-med) var(--ease-out); }
.link-arrow:hover span { background-size: 100% 1.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(245, 247, 250, 0.97);
  color: var(--ink);
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.site-header.is-dark {
  background: rgba(15, 36, 73, 0.82);
  color: var(--paper);
}
.site-header.is-dark :focus-visible { outline-color: var(--lime); }

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
}
.logo__mark { width: auto; height: 54px; margin: -4px 0; }
.site-header.is-dark .logo__mark,
.menu__top .logo__mark,
.site-footer .logo__mark { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease-out);
}
.site-nav a:hover { background: rgba(15, 36, 73, 0.06); }
.site-header.is-dark .site-nav a:hover { background: rgba(246, 246, 244, 0.1); }
.site-nav a[aria-current="page"] { background: rgba(15, 36, 73, 0.06); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.site-header.is-dark .btn--dark { --btn-bg: var(--lime); --btn-fg: var(--ink); }
.site-header.is-dark .btn--light { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: #36507F; }

.menu-toggle svg { width: 16px; height: 16px; }

@media (min-width: 1024px) {
  .site-nav { display: block; }
  .menu-toggle { display: none; }
}
@media (max-width: 380px) {
  .header-actions .btn--dark { padding: 0 14px; }
  .logo__mark { height: 46px; }
}

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s;
}
.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  flex: none;
}
.menu__top .logo__mark { height: 50px; width: auto; }
.menu__nav { flex: 1; display: flex; align-items: center; padding: 32px 0; }
.menu__nav ul { display: grid; gap: 4px; }
.menu__nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  min-height: 48px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 11vw, 4.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
}
.menu__nav a small {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted-dark);
}
.menu__nav a:hover { color: var(--lime); }
.menu__foot { display: grid; gap: 16px; padding-top: 24px; border-top: 1px solid var(--ink-line); }
.menu__foot a.mail { color: var(--lime); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
body.menu-open { overflow: hidden; }

/* ---------- Loader (first visit only, CSS-driven so it can never block) ---------- */
.loader { display: none; }
.show-loader .loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  pointer-events: none;
  animation: loader-out 360ms var(--ease-out) 1100ms forwards;
}
.loader svg { width: 100%; height: auto; overflow: visible; }
.loader path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-line 1000ms var(--ease-in-out) 60ms forwards;
}
.loader__text {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  font-size: 0.8125rem;
  color: var(--muted-dark);
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Sections and tones ---------- */
.section { padding: var(--section-y) var(--gutter); }
.tone-dark { background: var(--ink); color: var(--paper); }

/* Dark sections are rounded panels that open up to full width as they enter */
.panel {
  border-radius: var(--r-frame);
  transform-origin: 50% 0;
}
.panel--flush-bottom { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .lead { max-width: 52ch; }
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 48px;
  }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) var(--gutter) 0;
  text-align: center;
}
.hero__eyebrow {
  font-size: clamp(1rem, 1.7vw, 1.375rem);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: clamp(8px, 1.2vw, 16px);
}
.hero__title {
  font-size: clamp(3.1rem, 15.6vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin-inline: auto;
}
.hero__title span { display: block; }
@media (min-width: 768px) {
  .hero__title { font-size: min(10.4vw, 11.5rem); white-space: nowrap; }
  .hero__title span { display: inline; }
}
.hero__sub {
  max-width: 40rem;
  margin: clamp(20px, 3vw, 32px) auto 0;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero__stage {
  position: relative;
  max-width: 1080px;
  margin: clamp(48px, 7vw, 88px) auto 0;
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero__laptop { width: 84%; margin-inline: auto 9%; }
.hero__phone {
  position: absolute;
  right: 2%;
  bottom: clamp(24px, 4vw, 56px);
  width: 21%;
  min-width: 110px;
}

.float { animation: float 6s ease-in-out infinite; }
.float--slow { animation-duration: 7.5s; animation-delay: -2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Floating feature notes: annotations, deliberately not button-shaped */
.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 10px 24px -16px rgba(15, 36, 73, 0.45);
  animation: float 5.5s ease-in-out infinite;
}
.chip svg {
  width: 18px; height: 18px;
  flex: none;
  padding: 3px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}
.chip--dark { background: rgba(255, 255, 255, 0.94); color: var(--ink); }
.chip--dark svg { color: var(--ink); }
.chip--1 { left: 0; top: 14%; animation-delay: -1s; }
.chip--2 { left: 6%; bottom: 22%; animation-delay: -3s; }
.chip--3 { right: 20%; top: -4%; animation-delay: -2s; }
.chip--4 { right: -1%; top: 30%; animation-delay: -4s; }

@media (max-width: 767px) {
  .hero__laptop { width: 92%; margin-inline: 0 auto; }
  .hero__phone { width: 34%; right: 0; bottom: 20px; }
  .chip { font-size: 0.8125rem; padding: 8px 12px 8px 10px; }
  .chip--1 { left: -4px; top: -18px; }
  .chip--3 { right: 4px; top: -18px; left: auto; }
  .chip--2, .chip--4 { display: none; }
}

/* ---------- Device mockups (pure CSS, modeled on a modern laptop and phone) ---------- */
.laptop { position: relative; container-type: inline-size; }
.laptop__lid {
  position: relative;
  padding: 2.4% 1.7% 1.9%;
  border-radius: 3.4cqw 3.4cqw 0.9cqw 0.9cqw;
  background: linear-gradient(180deg, #1B1C1F 0%, #0E0E10 100%);
  box-shadow:
    0 0 0 0.12cqw #9A9DA4,               /* aluminum edge */
    0 0 0 0.3cqw #2B2C30,
    inset 0 0 0 0.12cqw rgba(255, 255, 255, 0.06),
    0 4cqw 7cqw -3cqw rgba(15, 36, 73, 0.55);
}
.laptop__lid::before {                   /* camera */
  content: "";
  position: absolute;
  top: 0.85%; left: 50%;
  width: 0.6cqw; height: 0.6cqw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3B4A63 0 25%, #121318 45%);
  box-shadow: 0 0 0 0.15cqw #1E1F23;
}
.laptop__display {
  position: relative;
  overflow: hidden;
  border-radius: 0.5cqw;
  background: #111;
}
.laptop__display::after,
.phone__display::after {                 /* soft glass reflection */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 34%, rgba(255, 255, 255, 0) 35%);
}
.laptop__display img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}
.laptop__base {
  position: relative;
  height: 3.1cqw;
  margin: 0 -6.5%;
  border-radius: 0.4cqw 0.4cqw 50% 50% / 0.4cqw 0.4cqw 100% 100%;
  background:
    linear-gradient(180deg, #F3F4F6 0%, #DADCE0 22%, #BFC2C8 60%, #8E9198 100%);
  box-shadow: inset 0 0.12cqw 0 rgba(255, 255, 255, 0.9), inset 0 -0.2cqw 0.3cqw rgba(0, 0, 0, 0.18);
}
.laptop__base::before {                  /* thumb notch */
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 14%; height: 38%;
  transform: translateX(-50%);
  border-radius: 0 0 1.2cqw 1.2cqw;
  background: linear-gradient(180deg, #B3B6BC, #CDD0D5);
  box-shadow: inset 0 0.15cqw 0.25cqw rgba(0, 0, 0, 0.18);
}
.laptop__base::after {                   /* contact shadow */
  content: "";
  position: absolute;
  left: 4%; right: 4%;
  bottom: -1.6cqw;
  height: 1.8cqw;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 36, 73, 0.38), rgba(15, 36, 73, 0) 70%);
  z-index: -1;
}

.phone {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  padding: 4.2%;
}
.phone::after {                          /* body: black glass, titanium band, shadow */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 17cqw;
  background: #050506;
  box-shadow:
    0 0 0 1.1cqw #6E7178,
    0 0 0 1.6cqw #2E2F33,
    inset 0 0 0 0.6cqw #1A1A1C,
    0 10cqw 18cqw -6cqw rgba(15, 36, 73, 0.6);
}
.phone::before {                         /* Dynamic Island */
  content: "";
  position: absolute;
  z-index: 3;
  top: 7.4cqw;
  left: 50%;
  width: 30cqw;
  height: 8.8cqw;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  box-shadow: inset -2.6cqw 0 0 -1.8cqw #1B2233;
}
.phone__display {
  position: relative;
  overflow: hidden;
  border-radius: 13cqw;
  background: #111;
}
.phone__display img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
}
.phone__btn {
  position: absolute;
  width: 1.6cqw;
  border-radius: 0.8cqw;
  background: linear-gradient(90deg, #4A4C52, #8B8E95 50%, #4A4C52);
}
.phone__btn--action { left: -2.6cqw; top: 20%; height: 7%; }
.phone__btn--vol    { left: -2.6cqw; top: 30%; height: 13%; }
.phone__btn--power  { right: -2.6cqw; top: 31%; height: 20%; }

/* ---------- Labels and tags ---------- */
.label {
  justify-self: start;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}
.label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
}
.tone-dark .tags li, .card--dark .tags li { border-color: #2A3D5C; color: #CBD5E1; }

/* ---------- Work ---------- */
.work-list { display: grid; gap: clamp(16px, 2vw, 24px); }
.work-card {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(20px, 3.4vw, 44px);
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--line);
  align-items: center;
}
.work-card.card--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-card__body { display: grid; gap: 18px; align-content: start; }
.work-card__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}
.work-card__meta { font-size: 0.9375rem; color: var(--muted); }
.card--dark .work-card__meta { color: var(--muted-dark); }
.work-card__text { color: #33435A; max-width: 46ch; }
.card--dark .work-card__text { color: #C3CDDB; }
.work-card__media { position: relative; }
.work-card__media .laptop { width: 86%; }
.work-card__media .phone { position: absolute; right: 0; bottom: -4%; width: 25%; }
.work-card .btn { justify-self: start; }

@media (min-width: 900px) {
  .work-card { grid-template-columns: 1.35fr 1fr; }
  .work-card--flip { grid-template-columns: 1fr 1.35fr; }
  .work-card--flip .work-card__media { order: 2; }
}

/* ---------- Before / after compare slider ---------- */
.compare {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #ddd;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}
.compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
  -webkit-user-drag: none;
}
.compare__after { display: block; }
.compare__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__line {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgba(15, 36, 73, 0.35);
  pointer-events: none;
}
.compare__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(15, 36, 73, 0.6);
  pointer-events: none;
  transition: transform var(--t-fast) var(--ease-out);
}
.compare__handle svg { width: 22px; height: 22px; }
.compare.is-dragging .compare__handle { transform: translate(-50%, -50%) scale(1.08); }
.compare:has(.compare__range:focus-visible) .compare__handle {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.compare__tag {
  position: absolute;
  top: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 36, 73, 0.82);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; background: var(--lime); color: var(--ink); }
.compare-caption { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }
.card--dark .compare-caption, .tone-dark .compare-caption { color: var(--muted-dark); }

/* Browser chrome around site screenshots */
.browser {
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #EEF2F7;
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #CDD5E0; }
.browser__bar span {
  margin-left: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser .compare { border-radius: 0; }

/* ---------- What you get ---------- */
.benefits {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
  grid-template-columns: 1fr;
}
@media (max-width: 639px) { .benefit { min-height: 0; gap: 28px; } .step { min-height: 0; } }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 220px;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--line);
}
.benefit h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.benefit__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.benefit__icon svg { width: 24px; height: 24px; }
.benefit--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.benefit--dark .benefit__icon { background: var(--ink-soft); border-color: var(--ink-line); color: var(--lime); }
.benefit--violet { background: var(--violet); color: var(--ink); border-color: var(--violet); }
.benefit--violet .benefit__icon { background: rgba(255, 255, 255, 0.35); border-color: transparent; }
.benefit--lime { background: var(--lime); border-color: var(--lime); }
.benefit--lime .benefit__icon { background: rgba(255, 255, 255, 0.45); border-color: transparent; }

/* ---------- Process ---------- */
.steps {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r-card);
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  min-height: 260px;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--lime);
  margin-bottom: auto;
}
.step h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-top: 28px; }
.step p { color: var(--muted-dark); font-size: 0.975rem; }
.step--free { position: relative; }
.step__badge {
  position: absolute;
  top: 22px; right: 22px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.chapter-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--ink-line);
}
.chapter-cta p { font-size: 1.125rem; font-weight: 500; }

/* ---------- About ---------- */
.about {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) { .about { grid-template-columns: minmax(280px, 420px) 1fr; } }
.about__photo {
  position: relative;
  width: 100%;
  max-width: min(420px, 78vw);
  aspect-ratio: 4 / 5;
  border-radius: var(--r-frame);
  overflow: hidden;
  background: var(--lime);
  display: grid;
  place-items: center;
}
.about__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.about__initial {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 14vw, 9rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
/* No photo yet: show the lime circle with an M */
.about__photo:not(:has(img)) {
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
}
.about__body { display: grid; gap: 22px; }
.about__body .lead { max-width: 56ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
}
.facts svg { width: 16px; height: 16px; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
}
@media (min-width: 1024px) { .contact { grid-template-columns: 1fr 1.05fr; align-items: start; } }
.contact__title { font-size: clamp(3rem, 8.4vw, 6.5rem); line-height: 0.92; }
.contact__intro { display: grid; gap: 24px; align-content: start; }
.contact__details { display: grid; gap: 12px; margin-top: 8px; }
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
  word-break: break-all;
}
.contact__email:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__email svg, .contact__place svg { width: 20px; height: 20px; flex: none; }
.contact__place { display: inline-flex; align-items: center; gap: 10px; color: var(--muted-dark); }
.contact__note { font-size: 0.9375rem; color: var(--muted-dark); }

.form-card {
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-card);
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
}
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 500; color: var(--paper); }
.field .req { color: var(--lime); }
.field .opt { color: var(--muted-dark); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid #2A3D5C;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8292A9; }
.field input:hover, .field textarea:hover { border-color: #3D5478; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.32); }
.field [aria-invalid="true"] { border-color: var(--error-dark); }
.field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--error-dark);
}
.field__error:empty { display: none; }
.form__hint { font-size: 0.8125rem; color: var(--muted-dark); }
.form__status { font-size: 0.9375rem; color: var(--error-dark); }
.form__status:empty { display: none; }
.form__status a { color: var(--lime); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(15, 36, 73, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.thanks {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-card);
  background: var(--lime);
  color: var(--ink);
}
.thanks[hidden] { display: none; }
.thanks svg { width: 40px; height: 40px; }
.thanks h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.thanks:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(48px, 7vw, 88px) var(--gutter) 28px; }
.site-footer__skyline { color: var(--lime); opacity: 0.85; margin-bottom: clamp(32px, 5vw, 56px); }
.site-footer__skyline svg { width: 100%; height: auto; }
.site-footer__skyline path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.site-footer__row {
  display: grid;
  gap: 20px;
  align-items: center;
}
@media (min-width: 768px) { .site-footer__row { grid-template-columns: auto 1fr auto; gap: 32px; } }
.site-footer__row .logo__mark { height: 64px; width: auto; }
.site-footer__tag { color: var(--muted-dark); }
.site-footer__mail { color: var(--paper); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer__mail:hover { color: var(--lime); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.875rem;
  color: var(--muted-dark);
}
.site-footer__bottom a { color: inherit; }

/* ==========================================================================
   Case study pages
   ========================================================================== */
.case-hero { padding: clamp(28px, 5vw, 64px) var(--gutter) 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}
.back-link:hover { color: var(--ink); }
.back-link svg { width: 18px; height: 18px; }
.case-hero__title {
  font-size: clamp(2.8rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-top: 18px;
}
.case-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 1.0625rem;
  color: var(--muted);
}
.case-hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.case-hero__meta svg { width: 18px; height: 18px; }
.case-stage {
  position: relative;
  max-width: 1080px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.case-stage .laptop { width: 86%; }
.case-stage .phone-wrap { position: absolute; right: 0; bottom: clamp(16px, 3vw, 40px); width: 22%; min-width: 108px; }

.case-block {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line);
}
.case-block:first-child { border-top: 0; }
@media (min-width: 900px) { .case-block { grid-template-columns: minmax(220px, 0.8fr) 2fr; } }
.case-block__title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.02; }
.case-block .lead { max-width: 62ch; }

.features {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  line-height: 1.45;
}
.features svg {
  flex: none;
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}

.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch { display: grid; gap: 10px; width: 132px; }
.swatch__chip {
  height: 96px;
  border-radius: 18px;
  border: 1px solid rgba(15, 36, 73, 0.08);
}
.swatch__name { font-weight: 600; font-size: 0.9375rem; line-height: 1.2; }
.swatch__hex { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.8125rem; color: var(--muted); }
.fonts { display: grid; gap: 10px; margin-top: 28px; }
.fonts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}
.fonts__sample { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; }
.fonts__role { font-size: 0.875rem; color: var(--muted); }
.design-why { margin-top: 24px; }

.shots {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
@media (min-width: 900px) { .shots { grid-template-columns: 2.4fr 1fr; } }
.shot-scroll {
  height: min(72vh, 680px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.shot-scroll:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; border-radius: 0; }
.shots .phone .shot-scroll { height: auto; aspect-ratio: 390 / 844; }
.shots .phone .shot-scroll img { aspect-ratio: auto; object-fit: initial; }
.shots .phone .shot-scroll::after { display: none; }
.shots figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }
.shots__phone { max-width: 300px; width: 100%; justify-self: center; }

.disclaimer {
  max-width: 72ch;
  padding-block: 8px clamp(40px, 5vw, 64px);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.case-cta {
  display: grid;
  gap: 24px;
  justify-items: start;
  padding: clamp(32px, 6vw, 72px);
}
@media (min-width: 900px) { .case-cta { grid-template-columns: 1fr auto; align-items: end; } }
.case-cta h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 0.95; max-width: 14ch; }

.next-project {
  display: grid;
  gap: 6px;
  margin-top: clamp(16px, 2vw, 24px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease-out);
}
.next-project:hover { border-color: var(--ink); }
.next-project small { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.next-project strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.4vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.next-project svg { width: clamp(28px, 4vw, 44px); height: auto; flex: none; transition: transform var(--t-med) var(--ease-out); }
.next-project:hover svg { transform: translateX(6px); }

/* ---------- Simple pages (thanks / 404) ---------- */
.simple {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 2 * var(--frame-gap) - 220px);
  padding: var(--section-y) var(--gutter);
  text-align: center;
}
.simple__inner { display: grid; gap: 22px; justify-items: center; max-width: 40rem; }
.simple__title { font-size: clamp(3rem, 10vw, 7rem); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.045em; }
.simple__mark {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 22px;
  background: var(--lime);
}
.simple__mark svg { width: 34px; height: 34px; }

/* ---------- Reduced motion: turn it all off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .float, .chip { animation: none; }
  .show-loader .loader { display: none; }
}

/* Phone status bar (keeps the Dynamic Island off the site's own header) */
.phone__status {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 12.5cqw;
  padding: 0 7.5cqw 0 11cqw;
  background: #FFFFFF;
  color: #000000;
  font: 600 4.3cqw/1 -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif;
  letter-spacing: -0.01em;
}
.phone__status svg { width: 19cqw; height: auto; }
.chips { list-style: none; margin: 0; padding: 0; }

/* ---------- Compact project grid (Work) ---------- */
.projects {
  display: grid;
  gap: clamp(14px, 1.8vw, 20px);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color var(--t-fast) var(--ease-out), transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.project:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.project:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.project__title a:focus-visible { outline: none; }
.project__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.project__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 600ms var(--ease-out);
}
.project:hover .project__shot { transform: scale(1.03); }
.project__shot--before { clip-path: inset(0 50% 0 0); }
.project__divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--lime); }
.project__tag {
  position: absolute;
  top: 10px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(15, 36, 73, 0.85);
  color: var(--paper);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
}
.project__tag--before { left: 10px; }
.project__tag--after { right: 10px; background: var(--lime); color: var(--ink); }
.project__body { display: grid; gap: 10px; align-content: start; padding: 18px 20px 20px; flex: 1; }
.project__title { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.project__title a { text-decoration: none; color: inherit; }
.project__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card is the link */
.project__meta { font-size: 0.9375rem; color: var(--muted); }
.project .tags li { padding: 6px 10px; font-size: 0.75rem; }
.project__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.project__more svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease-out); }
.project:hover .project__more svg { transform: translateX(3px); }
.project--next {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  justify-content: flex-end;
  min-height: 260px;
}
.project--next .project__meta { color: var(--muted-dark); }
.project--next .project__more { color: var(--lime); }
.project--next:has(a:focus-visible) { outline-color: var(--lime); }
.project__plus {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: auto;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
}
.project__plus svg { width: 22px; height: 22px; }
.project--next .project__body { align-content: end; }

/* ---------- Sample site inside the hero devices (shown until case studies are approved) ---------- */
.mock {
  --m-ink: #0A1626;
  --m-blue: #2F6FE4;
  --m-soft: #EEF3FB;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  color: var(--m-ink);
  font-family: var(--font-body);
  line-height: 1.2;
  overflow: hidden;
}
.mock i, .mock em { font-style: normal; }
.mock b { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; }
.mock__nav { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #E8EDF4; }
.mock__logo { display: inline-flex; align-items: center; font-weight: 700; }
.mock__logo i { display: inline-block; border-radius: 30%; background: var(--m-blue); }
.mock__links { display: flex; color: #56667C; }
.mock__call, .mock__btns em, .mock__bar em {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--m-blue); color: #FFFFFF; font-weight: 600; white-space: nowrap;
}
.mock__btns { display: flex; }
.mock em.ghost { background: transparent; color: var(--m-ink); box-shadow: inset 0 0 0 1px #C9D3E1; }
.mock__pill { align-self: flex-start; background: #E7F6EC; color: #157A3B; font-weight: 600; border-radius: 999px; }
.mock__text { color: #56667C; }
.mock__copy { display: flex; flex-direction: column; }
.mock__img {
  position: relative;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 200, 87, 0.55), rgba(255, 200, 87, 0) 40%),
    linear-gradient(140deg, #9CC0FF 0%, #4C8DFF 45%, #1D3F7A 100%);
}
.mock__stars {
  position: absolute; display: inline-flex; align-items: center;
  background: #FFFFFF; color: #E8A317; font-weight: 700; box-shadow: 0 6px 18px rgba(15, 36, 73, 0.18);
}
.mock__stars small { color: var(--m-ink); font-weight: 600; }
.mock__cards { display: grid; }
.mock__cards i { display: flex; align-items: center; background: var(--m-soft); font-weight: 600; }
.mock__cards b { display: inline-block; border-radius: 30%; background: rgba(47, 111, 228, 0.25); }

/* desktop: sizes are % of the laptop (cqw) */
.mock--desk { aspect-ratio: 16 / 10; padding: 0 3.4cqw 3cqw; font-size: 1.15cqw; }
.mock--desk .mock__nav { height: 5.4cqw; margin: 0 -3.4cqw; padding: 0 3.4cqw; }
.mock--desk .mock__logo { gap: 0.7cqw; font-size: 1.3cqw; }
.mock--desk .mock__logo i { width: 1.6cqw; height: 1.6cqw; }
.mock--desk .mock__links { gap: 2.4cqw; }
.mock--desk .mock__call { padding: 0.8cqw 1.5cqw; border-radius: 0.6cqw; }
.mock--desk .mock__hero { flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3cqw; align-items: center; padding: 2.6cqw 0; }
.mock--desk .mock__copy { gap: 1.3cqw; }
.mock--desk .mock__pill { padding: 0.5cqw 1cqw; font-size: 1cqw; }
.mock--desk .mock__copy b { font-size: 3.6cqw; line-height: 1.02; }
.mock--desk .mock__text { font-size: 1.3cqw; line-height: 1.4; max-width: 32ch; }
.mock--desk .mock__btns { gap: 0.9cqw; margin-top: 0.4cqw; }
.mock--desk .mock__btns em { padding: 1cqw 1.6cqw; border-radius: 0.7cqw; }
.mock--desk .mock__img { height: 100%; min-height: 18cqw; border-radius: 1.4cqw; }
.mock--desk .mock__stars { left: 1.4cqw; bottom: 1.4cqw; gap: 0.6cqw; padding: 0.7cqw 1.1cqw; border-radius: 0.7cqw; font-size: 1.1cqw; }
.mock--desk .mock__cards { grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; }
.mock--desk .mock__cards i { gap: 0.9cqw; padding: 1.3cqw; border-radius: 1cqw; }
.mock--desk .mock__cards b { width: 2.2cqw; height: 2.2cqw; }

/* phone: sizes are % of the phone (cqw) */
.phone__display:has(.mock) { display: flex; flex-direction: column; aspect-ratio: 390 / 844; }
.mock--phone { flex: 1; padding: 0 6cqw 5cqw; gap: 4.5cqw; font-size: 3.6cqw; }
.mock--phone .mock__nav { height: 13cqw; margin: 0 -6cqw; padding: 0 6cqw; flex: none; }
.mock--phone .mock__logo { gap: 2cqw; font-size: 4.2cqw; }
.mock--phone .mock__logo i { width: 4.6cqw; height: 4.6cqw; }
.mock--phone .mock__burger { width: 6cqw; height: 3.6cqw; border-block: 0.7cqw solid var(--m-ink); position: relative; }
.mock--phone .mock__burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 0.7cqw; margin-top: -0.35cqw; background: var(--m-ink); }
.mock--phone .mock__copy { gap: 2.6cqw; }
.mock--phone .mock__pill { padding: 1.2cqw 2.6cqw; font-size: 3.2cqw; }
.mock--phone .mock__copy b { font-size: 8.2cqw; line-height: 1.04; }
.mock--phone .mock__text { font-size: 3.8cqw; line-height: 1.4; }
.mock--phone .mock__img { flex: 1; min-height: 30cqw; border-radius: 4cqw; }
.mock--phone .mock__stars { left: 3cqw; bottom: 3cqw; padding: 1.6cqw 2.6cqw; border-radius: 2cqw; font-size: 3.4cqw; }
.mock--phone .mock__cards { grid-template-columns: 1fr 1fr; gap: 3cqw; }
.mock--phone .mock__cards i { gap: 2cqw; padding: 3.4cqw; border-radius: 3cqw; }
.mock--phone .mock__cards b { width: 5cqw; height: 5cqw; }
.mock--phone .mock__bar { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.mock--phone .mock__bar em { padding: 3.6cqw 0; border-radius: 3cqw; font-size: 3.8cqw; }

/* ---------- Work: single "coming soon" card ---------- */
.project--wide { grid-column: 1 / -1; min-height: 0; }
.project--wide .project__body { padding: clamp(24px, 3vw, 36px); gap: 12px; }
.project--wide .project__plus { margin-bottom: 8px; }
.project--wide .project__title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.project--wide .project__meta { max-width: 56ch; }
.project__eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime-deep); }
.mock { text-align: left; }

.step__badge--quote { background: var(--violet); }

/* ==========================================================================
   Hand-made layer: handwriting, scribbled notes, plainer layout
   ========================================================================== */
:root { --font-hand: "Caveat", "Caveat Fallback", "Segoe Print", "Bradley Hand", cursive; }
/* Metric-matched stand-in while Caveat loads, so the city list doesn't jump */
@font-face { font-family: "Caveat Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 76.3%; ascent-override: 100%; descent-override: 30%; }
.hand { font-family: var(--font-hand); font-weight: 700; letter-spacing: 0; }

/* Hero: left-aligned, sentence case */
.hero { text-align: left; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; }
.hero__copy { max-width: 46rem; }
.hero__hello { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--muted); margin-bottom: 6px; transform: rotate(-2deg); transform-origin: left; }
.hero__title,
.hero__title span { display: block; }
.hero__title {
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: none;
  white-space: normal;
  margin-inline: 0;
}
@media (min-width: 768px) {
  .hero__title { font-size: clamp(3rem, 6vw, 5rem); white-space: normal; }
  .hero__title span { display: inline; }
}
.hero__title .swoosh { display: inline; position: relative; isolation: isolate; white-space: nowrap; }
.hero__title .swoosh::after {
  content: "";
  position: absolute;
  left: -2%; right: -3%; bottom: -0.06em;
  height: 0.32em;
  transform: rotate(-1.2deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 30' preserveAspectRatio='none'%3E%3Cpath d='M6 22C90 9 230 4 394 6c-120 6-250 12-370 22Z' fill='%23FFC857'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: -1;
}
.hero__sub { margin: 20px 0 0; max-width: 38rem; }
.hero__ctas { justify-content: flex-start; }
.hero__stage { margin-top: clamp(56px, 7vw, 80px); }

/* Scribbled notes pointing at the devices */
.chips { display: none; }
.float { animation: none; }
.note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
}
.note svg { width: clamp(46px, 6vw, 84px); height: auto; color: #2F5FD0; flex: none; }
.note--call { right: 23%; bottom: 4%; transform: rotate(-3deg); align-items: center; }
.note--call svg { transform: scaleY(-1) rotate(8deg); }
.note--hours { left: -1%; top: 30%; flex-direction: column; align-items: flex-start; transform: rotate(-4deg); }
.note--hours svg { order: 2; transform: scaleY(-1) rotate(-14deg); margin-left: 40%; }
@media (max-width: 767px) {
  .note { font-size: 1.05rem; }
  .note--hours { display: none; }
  .note--call { right: 36%; bottom: 0; }
}

/* What you get: a plain list with hand-drawn checks, not a grid of tiles */
.benefits { gap: 0 clamp(24px, 4vw, 56px); }
.benefit {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 14px;
  min-height: 0;
  padding: 22px 0;
  border: 0;
  border-top: 1.5px solid var(--line);
  border-radius: 0;
  background: none;
  justify-content: stretch;
}
.benefit__check { grid-row: span 2; width: 32px; height: 32px; color: #2F5FD0; margin-top: -2px; }
.benefit h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.benefit p { color: var(--muted); font-size: 0.975rem; }

/* Fewer heavy display headings */
.h2 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); line-height: 1.02; letter-spacing: -0.03em; }
.contact__title { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.02; }
.project__eyebrow.hand { font-size: 1.5rem; text-transform: none; letter-spacing: 0; color: var(--violet); }

/* Two-column hero on wide screens */
@media (min-width: 1100px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 40px;
    padding-bottom: clamp(32px, 4vw, 56px);
  }
  .hero__title { font-size: clamp(3rem, 4.6vw, 4.4rem); }
  .hero__stage { margin: 0; padding-bottom: 72px; }
  .hero__laptop { width: 90%; margin-inline: 0 auto; }
  .hero__phone { right: 0; bottom: 40px; width: 25%; }
  .note--call { right: 22%; bottom: 0; }
}

/* Process: handwritten numbers on plain rules, not tiles */
.step {
  background: none;
  border: 0;
  border-top: 1.5px solid var(--ink-line);
  border-radius: 0;
  padding: 20px 0 0;
  min-height: 0;
}
.step__num {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: 0;
  color: var(--violet);
}
.step__num::before { content: "#"; font-size: 0.6em; margin-right: 2px; opacity: 0.8; }
.step h3 { margin-top: 6px; }
.step__badge { top: 26px; right: 0; }

/* About: a taped-up polaroid instead of a placeholder circle */
.polaroid {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 16px 16px 0;
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(15, 36, 73, 0.12), 0 22px 40px -22px rgba(15, 36, 73, 0.45);
  transform: rotate(-3deg);
}
.js .polaroid.reveal.is-visible { transform: rotate(-3deg); }
.polaroid__tape {
  position: absolute;
  top: -14px; left: 50%;
  width: 120px; height: 30px;
  transform: translateX(-50%) rotate(4deg);
  background: rgba(255, 200, 87, 0.7);
  box-shadow: 0 1px 2px rgba(15, 36, 73, 0.12);
}
.polaroid__window {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #F4EEDF;
}
.polaroid__logo { width: 88%; height: auto; }
.polaroid__pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption {
  display: grid;
  gap: 2px;
  padding: 14px 4px 18px;
  font-size: 1.6rem;
  line-height: 1.05;
  color: var(--ink);
  text-align: center;
}
.polaroid figcaption small { font-size: 1.15rem; color: var(--muted); }

/* ==========================================================================
   Motion (inspired by Mark's reference video). Everything here is skipped
   when the visitor has "reduce motion" turned on.
   ========================================================================== */
.tag {
  position: absolute;
  z-index: 4;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 10px 22px -12px rgba(15, 36, 73, 0.55);
}
.tag--blue { background: #2F6FE4; color: #fff; left: 6%; top: 4%; }
.tag--gold { background: var(--violet); color: var(--ink); left: 40%; top: 58%; }
.tag--navy { background: var(--ink); color: #fff; right: 1%; top: 18%; }
@media (max-width: 767px) { .tag { font-size: 0.6875rem; padding: 5px 9px; } .tag--gold { left: 26%; top: 52%; } }

@media (prefers-reduced-motion: no-preference) {
  /* Headlines: words fade in one by one, from soft and blurry to sharp */
  .js .split-words .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.35em);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: calc(var(--i) * 70ms);
  }
  .js .split-words.is-in .w { opacity: 1; transform: none; }

  /* Hero devices deal out like cards from a stack */
  .js .hero__laptop { animation: deal-laptop 1100ms var(--ease-out) 250ms both; }
  .js .hero__phone { animation: deal-phone 1200ms var(--ease-out) 450ms both; }
  @keyframes deal-laptop {
    from { opacity: 0; transform: translate(14%, 18%) rotate(-7deg) scale(0.7); }
    to { opacity: 1; transform: none; }
  }
  @keyframes deal-phone {
    from { opacity: 0; transform: translate(-140%, 6%) rotate(-18deg) scale(0.8); }
    60% { opacity: 1; }
    to { opacity: 1; transform: none; }
  }
  /* Tags pop in with a little bounce, then bob */
  .js .tag { animation: pop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both, bob 5s ease-in-out 1.8s infinite; }
  .js .tag--blue { animation-delay: 1150ms, 1.8s; }
  .js .tag--gold { animation-delay: 1350ms, 2.4s; }
  .js .tag--navy { animation-delay: 1550ms, 3s; }
  .js .note--call { animation: fade-up 700ms var(--ease-out) 1700ms both; }
  @keyframes pop { from { opacity: 0; transform: scale(0.4) translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(12px) rotate(-3deg); } to { opacity: 1; transform: rotate(-3deg); } }

  /* Hand-drawn checks draw themselves in */
  .js .benefit__check path { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 600ms var(--ease-out) calc(var(--d, 0ms) + 250ms); }
  .js .benefit.is-visible .benefit__check path { stroke-dashoffset: 0; }

  /* Step numbers pop like stickers */
  .js .step .step__num { display: inline-block; transform: scale(0.3) rotate(-20deg); opacity: 0; transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--d, 0ms) + 150ms), opacity 300ms ease calc(var(--d, 0ms) + 150ms); }
  .js .step.is-visible .step__num { transform: none; opacity: 1; }

  /* Polaroid swings in */
  .js .polaroid.reveal { transform: rotate(-14deg) translateY(30px); }
  .js .polaroid.reveal.is-visible { transform: rotate(-3deg); transition-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1); }
}

/* ---------- Sample site in the devices: cinematic, golden hour over the Bay ---------- */
.mx {
  --mx-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  position: relative;
  overflow: hidden;
  color: #FFF7EC;
  font-family: var(--font-body);
  line-height: 1.15;
  text-align: left;
  isolation: isolate;
}
.mx i, .mx em { font-style: normal; }
.mx__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mx::before {                                  /* soft dark grade so text reads */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 16, 36, 0.55) 0%, rgba(8, 16, 36, 0) 26%, rgba(8, 16, 36, 0) 55%, rgba(8, 16, 36, 0.7) 100%);
}
.mx__nav { display: flex; align-items: center; justify-content: space-between; }
.mx__links { display: flex; color: rgba(255, 247, 236, 0.85); }
.mx__logo { display: grid; justify-items: center; font-family: var(--mx-serif); font-style: italic; line-height: 1; }
.mx__logo small { font-family: var(--font-body); font-style: normal; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; }
.mx__call, .mx__btns em, .mx__bar em {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-weight: 600;
  background: #FFF7EC; color: #0F2449; border-radius: 999px;
}
.mx em.ghost { background: rgba(255, 247, 236, 0.12); color: #FFF7EC; box-shadow: inset 0 0 0 1px rgba(255, 247, 236, 0.5); backdrop-filter: blur(6px); }
.mx__hero b { display: block; font-family: var(--mx-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; line-height: 0.95; text-shadow: 0 2px 18px rgba(8, 16, 36, 0.35); }
.mx__btns { display: flex; }
.mx__card {
  display: grid;
  background: rgba(10, 20, 42, 0.62);
  border: 1px solid rgba(255, 247, 236, 0.18);
  backdrop-filter: blur(10px);
}
.mx__card small { opacity: 0.75; }
.mx__card b { font-family: var(--mx-serif); font-style: italic; font-weight: 400; line-height: 1; }
.mx__stars { color: #FFC857; }
.mx__stars em { color: #FFF7EC; opacity: 0.85; }
.mx__bridge { color: rgba(255, 247, 236, 0.6); width: 100%; height: auto; }

/* desktop (sizes are % of the laptop width) */
.mx--desk { aspect-ratio: 16 / 10; font-size: 1.05cqw; }
.mx--desk .mx__nav { padding: 2cqw 3cqw; }
.mx--desk .mx__links { gap: 2cqw; font-size: 1cqw; }
.mx--desk .mx__logo { font-size: 2.3cqw; gap: 0.4cqw; }
.mx--desk .mx__logo small { font-size: 0.7cqw; }
.mx--desk .mx__call { padding: 0.8cqw 1.5cqw; font-size: 1cqw; }
.mx--desk .mx__hero { position: absolute; right: 5cqw; bottom: 7cqw; text-align: right; }
.mx--desk .mx__hero b { font-size: 6cqw; }
.mx--desk .mx__btns { justify-content: flex-end; gap: 1cqw; margin-top: 1.8cqw; }
.mx--desk .mx__btns em { padding: 1cqw 1.8cqw; font-size: 1.1cqw; }
.mx--desk .mx__card { position: absolute; left: 3cqw; bottom: 4cqw; width: 16cqw; gap: 0.7cqw; padding: 1.5cqw; border-radius: 1cqw; font-size: 0.95cqw; }
.mx--desk .mx__card b { font-size: 2.4cqw; }

/* phone (sizes are % of the phone width) */
.mx--phone { flex: 1; display: flex; flex-direction: column; font-size: 3.6cqw; padding: 0 5cqw 5cqw; }
.mx--phone .mx__nav { height: 13cqw; }
.mx--phone .mx__logo { font-size: 6cqw; justify-items: start; gap: 1cqw; }
.mx--phone .mx__logo small { font-size: 2.2cqw; }
.mx--phone .mx__burger { width: 6cqw; height: 3.6cqw; border-block: 0.7cqw solid #FFF7EC; position: relative; }
.mx--phone .mx__burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 0.7cqw; margin-top: -0.35cqw; background: #FFF7EC; }
.mx--phone .mx__hero { margin-top: auto; }
.mx--phone .mx__hero b { font-size: 12cqw; }
.mx--phone .mx__card { margin-top: 4cqw; gap: 1cqw; padding: 3.4cqw 4cqw; border-radius: 3.4cqw; grid-template-columns: 1fr auto; align-items: center; }
.mx--phone .mx__card small { grid-column: 1 / -1; }
.mx--phone .mx__card b { font-size: 6.4cqw; }
.mx--phone .mx__stars { font-size: 3.2cqw; }
.mx--phone .mx__bar { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; margin-top: 3cqw; }
.mx--phone .mx__bar em { padding: 3.6cqw 0; font-size: 3.8cqw; }
.phone__display:has(.mx) { display: flex; flex-direction: column; aspect-ratio: 390 / 844; }
.phone__display:has(.mx) .phone__status { background: transparent; color: #FFF7EC; position: absolute; left: 0; right: 0; }
.mx--phone { padding-top: 12.5cqw; }
.mx--desk .mx__hero { right: auto; left: 23cqw; bottom: 6cqw; text-align: left; }
.mx--desk .mx__btns { justify-content: flex-start; }
.tag--blue { left: -3%; top: 34%; }
.tag--gold { left: 6%; top: auto; bottom: 6%; }
@media (max-width: 767px) { .tag--blue { left: 0; top: -2%; } .tag--gold { left: 2%; bottom: 2%; top: auto; } }

/* ---------- Bay Area touches ---------- */
.hero__area { line-height: 1.5; margin-top: 22px; font-size: 1.25rem; color: var(--muted); transform: rotate(-1deg); transform-origin: left; }
.hero__bay { grid-column: 1 / -1; margin: 8px calc(-1 * var(--gutter)) 0; color: #2F5FD0; opacity: 0.55; }
.hero__bay svg { display: block; width: 100%; height: clamp(50px, 7vw, 90px); }
.hero__bay path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hb-hills { stroke-width: 1.5; opacity: 0.6; }
.hb-deck { stroke-width: 2.2; }
.hb-piers { stroke-width: 1.2; }
.hb-water { stroke-width: 1.4; stroke: var(--violet) !important; opacity: 0.9; }
/* Morning fog drifting across the top of the page */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto;
  height: 70%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(35% 30% at 70% 15%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(30% 25% at 50% 55%, rgba(220, 231, 247, 0.9), transparent 70%);
  /* fade every edge so the fog never shows a hard border */
  -webkit-mask-image: radial-gradient(farthest-side, #000 45%, transparent 100%);
  mask-image: radial-gradient(farthest-side, #000 45%, transparent 100%);
}
.hero { isolation: isolate; }
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: fog 26s ease-in-out infinite alternate; will-change: transform; }
  @keyframes fog { from { transform: translateX(-4%); } to { transform: translateX(6%); } }
  .js .hero__bay .hb-deck, .js .hero__bay .hb-hills { stroke-dasharray: 1500; stroke-dashoffset: 1500; animation: draw-line 2.4s var(--ease-out) 900ms forwards; }
}
@media (max-width: 767px) { .tag--gold { left: 0; top: 42%; bottom: auto; } .hero__area { font-size: 1.1rem; } }
@media (max-width: 767px) { .tag--gold { display: none; } }
/* White sticker glow on the logo everywhere */
.logo__mark, .polaroid__logo { filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff) drop-shadow(0 3px 6px rgba(15, 36, 73, 0.28)); }

/* ---------- MacBook Pro look: thin black bezel, notch, macOS menu bar + Safari ---------- */
.laptop__lid {
  padding: 1.25% 1.3% 1.6%;
  border-radius: 2.6cqw 2.6cqw 0.7cqw 0.7cqw;
  background: #0A0A0B;
  box-shadow:
    0 0 0 0.16cqw #C8CBD0,               /* silver aluminum lid edge */
    0 0 0 0.32cqw #8F939A,
    inset 0 0 0 0.1cqw rgba(255, 255, 255, 0.08),
    0 4cqw 7cqw -3cqw rgba(15, 36, 73, 0.55);
}
.laptop__lid::before { display: none; }
.laptop__display { border-radius: 1.1cqw 1.1cqw 0.3cqw 0.3cqw; background: #000; }
.laptop__display::before {               /* notch with camera */
  content: "";
  position: absolute;
  z-index: 4;
  top: 0; left: 50%;
  width: 9.5cqw; height: 1.75cqw;
  transform: translateX(-50%);
  border-radius: 0 0 0.6cqw 0.6cqw;
  background: radial-gradient(circle at 50% 46%, #26324A 0 0.17cqw, #0B0C10 0.3cqw, #000 0.42cqw) #000;
}
.mac { position: relative; z-index: 3; font: 500 0.88cqw/1 -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif; letter-spacing: -0.005em; }
.mac i, .mac b { font-style: normal; }
.mac__menu {
  display: flex; align-items: center; justify-content: space-between;
  height: 1.75cqw; padding: 0 1.4cqw;
  background: #1C1D22; color: rgba(255, 255, 255, 0.92);
}
.mac__apps, .mac__tray { display: flex; align-items: center; gap: 1.3cqw; }
.mac__apps b { font-weight: 700; }
.mac__tray svg { height: 0.85cqw; width: auto; }
.mac__safari {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 1.6cqw;
  height: 2.9cqw; padding: 0 1.4cqw;
  background: linear-gradient(180deg, #F6F6F8, #ECECEF);
  border-bottom: 0.08cqw solid #D3D4D8;
  color: #6B6E76;
}
.mac__lights { display: flex; gap: 0.55cqw; }
.mac__lights i { width: 0.85cqw; height: 0.85cqw; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 0.05cqw rgba(0,0,0,.12); }
.mac__lights i:nth-child(2) { background: #FEBC2E; }
.mac__lights i:nth-child(3) { background: #28C840; }
.mac__nav { font-size: 1.6cqw; line-height: 0; color: #9A9DA4; transform: translateY(-0.1cqw); }
.mac__url {
  justify-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 0.5cqw;
  width: min(100%, 34cqw); height: 1.8cqw; border-radius: 0.55cqw;
  background: rgba(0, 0, 0, 0.055); color: #2B2D33; font-size: 0.92cqw;
}
.mac__url svg { height: 0.75cqw; width: auto; color: #6B6E76; }
.mac__tools { font-size: 1.5cqw; line-height: 0; }
.laptop__base {
  height: 2.2cqw;
  margin: 0 -7%;
  border-radius: 0.2cqw 0.2cqw 2.2cqw 2.2cqw / 0.2cqw 0.2cqw 1.5cqw 1.5cqw;
  background: linear-gradient(180deg, #E9EBEE 0%, #D5D8DC 35%, #B9BCC2 75%, #8D9097 100%);
  box-shadow: inset 0 0.1cqw 0 rgba(255, 255, 255, 0.95), inset 0 -0.15cqw 0.2cqw rgba(0, 0, 0, 0.2);
}
.laptop__base::before {                  /* thumb scoop */
  width: 12%; height: 42%;
  border-radius: 0 0 1cqw 1cqw;
  background: linear-gradient(180deg, #A9ACB3, #C9CCD1);
}

/* ---------- iPhone Pro look: thin bezels, titanium frame, Camera Control ---------- */
.phone { padding: 3.1%; }
.phone::after {
  inset: -1.6cqw;
  border: 1.6cqw solid transparent;
  border-radius: 17.8cqw;
  background:
    linear-gradient(#030304, #030304) padding-box,
    linear-gradient(140deg, #F2EFEA 0%, #A9A59D 16%, #FBF9F5 36%, #96928A 56%, #E6E2DB 78%, #A7A39B 100%) border-box;
  box-shadow:
    inset 0 0 0 0.35cqw #1A1A1C,
    0 0 0 0.12cqw rgba(15, 36, 73, 0.35),
    0 10cqw 18cqw -6cqw rgba(15, 36, 73, 0.6);
}
.phone::before { top: 5.6cqw; width: 28cqw; height: 8.2cqw; }
.phone__display { border-radius: 14cqw; }
.phone__status { height: 13cqw; padding: 0 8cqw 0 12cqw; }
.phone__btn { width: 1.3cqw; background: linear-gradient(90deg, #8C8982, #E1DED8 50%, #8C8982); }
.phone__btn--action { left: -2.9cqw; top: 17%; height: 5%; border-radius: 0.7cqw 0 0 0.7cqw; }
.phone__btn--vol    { left: -2.9cqw; top: 25%; height: 8%; border-radius: 0.7cqw 0 0 0.7cqw; }
.phone__btn--vol2   { left: -2.9cqw; top: 35%; height: 8%; border-radius: 0.7cqw 0 0 0.7cqw; }
.phone__btn--power  { right: -2.9cqw; top: 27%; height: 12%; border-radius: 0 0.7cqw 0.7cqw 0; }
.phone__btn--cam    { right: -2.7cqw; top: 58%; height: 7%; width: 1.1cqw; border-radius: 0 0.5cqw 0.5cqw 0; background: linear-gradient(90deg, #5E5B55, #A9A69F 50%, #5E5B55); }

/* ---------- Polish ---------- */
.hero__area span { white-space: nowrap; }
#work { padding-top: clamp(48px, 6vw, 88px); }
/* Empty "your site here" browser in the coming-soon card */
.projects--soon .project--wide { overflow: hidden; }
.ghost-site { display: none; }
@media (min-width: 900px) {
  .projects--soon .project--wide { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; padding-right: clamp(24px, 3vw, 40px); }
  .ghost-site {
    display: block;
    position: relative;
    margin: 28px 0;
    border: 1.5px dashed rgba(111, 163, 255, 0.55);
    border-radius: 14px;
    background: rgba(111, 163, 255, 0.06);
    transform: rotate(1.5deg);
  }
  .ghost-site__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1.5px dashed rgba(111, 163, 255, 0.35); }
  .ghost-site__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(111, 163, 255, 0.45); }
  .ghost-site__bar i:nth-child(3) { background: var(--violet); }
  .ghost-site__bar span { margin-left: 12px; padding: 3px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); font-size: 0.78rem; }
  .ghost-site__body { position: relative; display: grid; gap: 10px; padding: 26px 22px 30px; }
  .ghost-site__body b { display: block; height: 12px; border-radius: 6px; background: rgba(111, 163, 255, 0.22); }
  .ghost-site__body b:first-child { width: 70%; height: 20px; background: rgba(255, 255, 255, 0.16); }
  .ghost-site__body b.short { width: 45%; }
  .ghost-site__body em { display: block; width: 110px; height: 30px; margin-top: 8px; border-radius: 999px; background: var(--violet); opacity: 0.85; }
  .ghost-site__body .hand { position: absolute; right: 22px; bottom: 26px; font-size: 1.6rem; color: var(--violet); transform: rotate(-6deg); }
}

/* ---------- Bay Area doodles on the light sections ---------- */
.has-doodles { position: relative; isolation: isolate; }
.has-doodles > .container { position: relative; z-index: 1; }
.doodle { display: block; height: auto; color: #2F5FD0; pointer-events: none; }
.has-doodles > .doodle { position: absolute; z-index: 0; opacity: 0.13; }
.doodle--golden-gate { width: clamp(180px, 19vw, 280px); right: 2%; top: -40px; }
.doodle--fog { width: clamp(120px, 13vw, 190px); left: 3%; top: 30px; }
.doodle--sailboat { width: clamp(90px, 9vw, 130px); left: 4%; top: 10px; }
.doodle--redwood { width: clamp(70px, 6vw, 96px); left: 2%; bottom: 12%; }
.doodle--painted-ladies { width: clamp(220px, 24vw, 340px); right: 4%; bottom: 18px; opacity: 0.15 !important; }
/* A little main street of local businesses */
.street {
  display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(12px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 72px); padding-bottom: 6px;
  border-bottom: 2px solid rgba(47, 95, 208, 0.22);
  opacity: 0.4;
}
.street .doodle { flex: 0 1 auto; width: auto; height: clamp(54px, 7vw, 104px); }
.street .doodle--boba, .street .doodle--coffee, .street .doodle--salon { height: clamp(44px, 5.4vw, 80px); }
.street .doodle--transamerica { height: clamp(70px, 9vw, 136px); }
@media (max-width: 767px) {
  .has-doodles > .doodle { opacity: 0.09; }
  .doodle--fog, .doodle--redwood, .doodle--sailboat, .doodle--golden-gate { display: none; }
  .street .doodle--transamerica, .street .doodle--coffee, .street .doodle--boba { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .doodle--fog { animation: fog 18s ease-in-out infinite alternate; }
  .js .street .doodle { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  .js .street.is-in .doodle { opacity: 1; transform: none; }
  .js .street.is-in .doodle:nth-child(2) { transition-delay: 80ms; } .js .street.is-in .doodle:nth-child(3) { transition-delay: 160ms; }
  .js .street.is-in .doodle:nth-child(4) { transition-delay: 240ms; } .js .street.is-in .doodle:nth-child(5) { transition-delay: 320ms; }
  .js .street.is-in .doodle:nth-child(6) { transition-delay: 400ms; } .js .street.is-in .doodle:nth-child(7) { transition-delay: 480ms; }
}

/* ---------- Active section in the menu ---------- */
.site-nav a { position: relative; transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 7px;
  height: 3px;
  border-radius: 3px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out);
}
.site-nav a.is-active { background: rgba(111, 163, 255, 0.22); color: var(--ink); }
.site-nav a.is-active::after { transform: scaleX(1); }
.site-header.is-dark .site-nav a.is-active { background: rgba(111, 163, 255, 0.24); color: #FFFFFF; }
.menu a.is-active { color: var(--lime); }


/* ---------- Type and style that match the logo (Racing Sans One, blue fill, navy extrusion, gold swoosh) ---------- */
@font-face { font-family: "Racing Fallback"; src: local("Arial Bold Italic"), local("Arial"), local("Liberation Sans"); size-adjust: 96%; ascent-override: 92%; descent-override: 24%; }
:root { --font-logo: "Racing Sans One", "Racing Fallback", "Arial Black", sans-serif; --extrude: #BFD5FF; }
.display, h1, h2, .hero__title, .menu__nav a {
  font-family: var(--font-logo);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.005em;
}
h3, .h3 { letter-spacing: -0.02em; }
.hero__title { letter-spacing: 0.005em; line-height: 1.04; }
/* Light sections: navy letters with a light-blue extrusion, like the logo turned inside out */
h1, h2 { text-shadow: 0.045em 0.045em 0 var(--extrude); }
/* "local businesses" gets the logo's own treatment: blue gradient fill, navy edge */
.hero__title .swoosh, .hero__title .swoosh .w {
  background: linear-gradient(180deg, #A9C8FF 0%, #6FA3FF 45%, #2F6BE0 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.028em #0F2449;
  text-shadow: none;
  filter: drop-shadow(0.05em 0.05em 0 #0F2449);
}
.hero__title .swoosh .w { filter: none; }
/* Dark panels: light-blue gradient letters with a deep navy extrusion */
.tone-dark h2, .tone-dark .h2, .site-footer h2 {
  background: linear-gradient(180deg, #E4EEFF 0%, #A9C8FF 55%, #6FA3FF 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0.045em 0.045em 0 #050E22);
}
.tone-dark h2 .w { background: inherit; -webkit-background-clip: text; background-clip: text; }
/* Buttons get the same chunky navy extrusion */
.btn--dark { box-shadow: 0 4px 0 #050E22; }
.btn--light { box-shadow: 0 4px 0 var(--extrude); }
.btn:active { transform: translateY(2px); }
@media (min-width: 1100px) { .hero__title { font-size: clamp(2.6rem, 3.9vw, 3.9rem); } }

/* ---------- Sample site in the devices: a realistic local plumber ---------- */
.pl {
  --pl-navy: #12324F; --pl-orange: #E8611A; --pl-bg: #F4F1EC; --pl-line: #E2DDD4;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #FFFFFF; color: #2A3442; text-align: left;
  font-family: "Inter", system-ui, sans-serif; line-height: 1.3;
}
.pl i, .pl em { font-style: normal; }
.pl svg { display: block; }
.pl__util { display: flex; justify-content: space-between; align-items: center; background: var(--pl-navy); color: #DCE4EE; }
.pl__dot { display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.45em; border-radius: 50%; background: #3DD68C; vertical-align: 0.05em; }
.pl__nav { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--pl-line); background: #FFFFFF; }
.pl__logo { display: flex; align-items: center; font-weight: 800; color: var(--pl-navy); letter-spacing: -0.01em; line-height: 1.05; }
.pl__logo small { display: block; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pl-orange); }
.pl__mark { display: grid; place-items: center; border-radius: 22%; background: var(--pl-orange); color: #FFFFFF; }
.pl__links { display: flex; color: #4A5565; font-weight: 500; }
.pl__call, .pl__btns em, .pl__form em, .pl__bar em { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-weight: 700; background: var(--pl-orange); color: #FFFFFF; }
.pl__btns em.out { background: #FFFFFF; color: var(--pl-navy); box-shadow: inset 0 0 0 1.5px var(--pl-navy); }
.pl__hero { background: var(--pl-bg); }
.pl__eyebrow { margin: 0; font-weight: 600; color: var(--pl-orange); }
.pl__h { display: block; font-family: "Inter Tight", "Inter", sans-serif; font-weight: 800; color: var(--pl-navy); letter-spacing: -0.025em; line-height: 1.04; text-shadow: none; }
.pl__sub { margin: 0; color: #4A5565; }
.pl__btns { display: flex; }
.pl__trust { display: flex; align-items: center; color: #4A5565; font-weight: 500; }
.pl__g { display: grid; place-items: center; border-radius: 50%; background: #FFFFFF; color: #4285F4; font-weight: 800; box-shadow: 0 0 0 1px var(--pl-line); }
.pl__stars { color: #F5A623; letter-spacing: 0.04em; }
.pl__form { display: grid; background: #FFFFFF; border: 1px solid var(--pl-line); box-shadow: 0 1.2cqw 2.4cqw -1.6cqw rgba(18, 50, 79, 0.35); }
.pl__form b { color: var(--pl-navy); font-weight: 800; }
.pl__form small { color: #6B7480; }
.pl__form i { display: block; border: 1px solid #D6D9DE; color: #9AA1AB; background: #FFFFFF; }
.pl__form i.sel { position: relative; }
.pl__form i.sel::after { content: ""; position: absolute; top: 40%; width: 0.45em; height: 0.45em; border-right: 1.5px solid #9AA1AB; border-bottom: 1.5px solid #9AA1AB; transform: rotate(45deg); }
.pl__svc { display: grid; grid-template-columns: repeat(4, 1fr); background: #FFFFFF; }
.pl__svc span { display: flex; align-items: center; border: 1px solid var(--pl-line); color: var(--pl-navy); }
.pl__svc svg { flex: none; color: var(--pl-orange); }
.pl__svc b { font-weight: 700; }

/* desktop: sizes are % of the laptop width */
.pl--desk { aspect-ratio: 16 / 10; font-size: 0.95cqw; }
.pl--desk .pl__util { height: 2.3cqw; padding: 0 3cqw; font-size: 0.78cqw; }
.pl--desk .pl__nav { height: 5.2cqw; padding: 0 3cqw; }
.pl--desk .pl__logo { gap: 0.8cqw; font-size: 1.35cqw; }
.pl--desk .pl__logo small { font-size: 0.62cqw; margin-top: 0.25cqw; }
.pl--desk .pl__mark { width: 2.7cqw; height: 2.7cqw; }
.pl--desk .pl__mark svg { width: 1.6cqw; height: 1.6cqw; }
.pl--desk .pl__links { gap: 2.2cqw; font-size: 0.95cqw; }
.pl--desk .pl__call { gap: 0.5cqw; padding: 0.85cqw 1.4cqw; border-radius: 0.5cqw; font-size: 0.95cqw; }
.pl--desk .pl__call svg { width: 0.95cqw; height: 0.95cqw; }
.pl--desk .pl__hero { flex: 1; display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: 3.5cqw; padding: 2.6cqw 3cqw; }
.pl--desk .pl__copy { display: grid; gap: 1.2cqw; }
.pl--desk .pl__eyebrow { font-size: 0.85cqw; }
.pl--desk .pl__h { font-size: 3.5cqw; }
.pl--desk .pl__sub { font-size: 1.15cqw; max-width: 36em; }
.pl--desk .pl__btns { gap: 0.9cqw; margin-top: 0.3cqw; }
.pl--desk .pl__btns em { padding: 1cqw 1.7cqw; border-radius: 0.5cqw; font-size: 1cqw; }
.pl--desk .pl__trust { gap: 0.7cqw; font-size: 0.9cqw; }
.pl--desk .pl__g { width: 1.7cqw; height: 1.7cqw; font-size: 0.95cqw; }
.pl--desk .pl__form { gap: 0.8cqw; padding: 1.8cqw; border-radius: 0.8cqw; font-size: 0.9cqw; }
.pl--desk .pl__form b { font-size: 1.3cqw; }
.pl--desk .pl__form small { font-size: 0.78cqw; margin-top: -0.4cqw; }
.pl--desk .pl__form i { padding: 0.75cqw 0.9cqw; border-radius: 0.4cqw; }
.pl--desk .pl__form i.sel::after { right: 0.9cqw; }
.pl--desk .pl__form em { padding: 1cqw; border-radius: 0.5cqw; margin-top: 0.3cqw; }
.pl--desk .pl__svc { gap: 1.2cqw; padding: 1.6cqw 3cqw 1.9cqw; }
.pl--desk .pl__svc span { gap: 0.8cqw; padding: 1.1cqw 1.2cqw; border-radius: 0.6cqw; font-size: 1cqw; }
.pl--desk .pl__svc svg { width: 1.8cqw; height: 1.8cqw; }

/* phone: sizes are % of the phone width */
.phone__display:has(.pl) { display: flex; flex-direction: column; aspect-ratio: 390 / 844; }
.pl--phone { flex: 1; font-size: 3.6cqw; }
.pl--phone .pl__util { justify-content: center; height: 7cqw; font-size: 3cqw; }
.pl--phone .pl__nav { height: 15cqw; padding: 0 5cqw; }
.pl--phone .pl__logo { gap: 2.4cqw; font-size: 4.4cqw; }
.pl--phone .pl__logo small { font-size: 2.2cqw; margin-top: 0.6cqw; }
.pl--phone .pl__mark { width: 8.5cqw; height: 8.5cqw; }
.pl--phone .pl__mark svg { width: 5cqw; height: 5cqw; }
.pl--phone .pl__burger { position: relative; width: 6cqw; height: 4.2cqw; border-block: 0.8cqw solid var(--pl-navy); }
.pl--phone .pl__burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 0.8cqw; margin-top: -0.4cqw; background: var(--pl-navy); }
.pl--phone .pl__copy { display: grid; gap: 3cqw; padding: 6cqw 5cqw 6cqw; background: var(--pl-bg); }
.pl--phone .pl__eyebrow { font-size: 3.2cqw; }
.pl--phone .pl__h { font-size: 9.6cqw; }
.pl--phone .pl__trust { gap: 2cqw; font-size: 3.2cqw; }
.pl--phone .pl__g { width: 6cqw; height: 6cqw; font-size: 3.4cqw; }
.pl--phone .pl__svc { grid-template-columns: 1fr 1fr; gap: 2.6cqw; padding: 5cqw; }
.pl--phone .pl__svc span { flex-direction: column; align-items: flex-start; gap: 2cqw; padding: 3.6cqw; border-radius: 2.6cqw; font-size: 3.4cqw; }
.pl--phone .pl__svc svg { width: 6.5cqw; height: 6.5cqw; }
.pl--phone .pl__bar { margin-top: auto; padding: 3.4cqw 5cqw 6cqw; background: #FFFFFF; border-top: 1px solid var(--pl-line); }
.pl--phone .pl__bar em { width: 100%; gap: 2cqw; padding: 4cqw 0; border-radius: 2.6cqw; font-size: 4cqw; }
.pl--phone .pl__bar svg { width: 4cqw; height: 4cqw; }

/* Plainer glass: no fake diagonal gleam on the screens */
.laptop__display::after, .phone__display::after { display: none; }
.pl--desk .pl__h { font-size: 4.2cqw; }
.pl__badges { display: flex; flex-wrap: wrap; color: var(--pl-navy); font-weight: 600; }
.pl--desk .pl__badges { gap: 0.6cqw; font-size: 0.85cqw; margin-top: 0.4cqw; }
.pl--desk .pl__badges i { padding: 0.5cqw 0.9cqw; border-radius: 99px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--pl-line); }
.pl__review { display: grid; color: var(--pl-navy); font-style: italic; }
.pl__review small { font-style: normal; color: #F5A623; font-weight: 600; }
.pl--desk .pl__review { gap: 0.4cqw; padding-bottom: 1.1cqw; margin-bottom: 0.3cqw; border-bottom: 1px solid var(--pl-line); font-size: 0.9cqw; }
.pl--desk .pl__review small { font-size: 0.75cqw; }
.pl__quote { display: grid; margin: 0 5cqw; color: var(--pl-navy); font-style: italic; }
.pl--phone .pl__quote { gap: 1.6cqw; padding: 4cqw; border-radius: 2.6cqw; background: var(--pl-bg); font-size: 3.4cqw; }
.pl__quote small { font-style: normal; color: #6B7480; font-size: 0.85em; }
.tag--blue { top: auto; bottom: 30%; left: -3%; }
@media (max-width: 767px) { .tag--blue { left: 0; top: -2%; bottom: auto; } }
/* San Francisco skyline in the footer */
.site-footer__skyline path { stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- Footer: map of the Bay ---------- */
.site-footer__top { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; margin-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.site-footer__map svg { display: block; width: 100%; height: auto; max-height: 620px; }
.site-footer__top .site-footer__row { grid-template-columns: 1fr; gap: 14px; align-content: center; }
.site-footer__hand { margin: 0; font-size: 1.6rem; line-height: 1.2; color: var(--violet); transform: rotate(-2deg); transform-origin: left; }
.bm-water { fill: rgba(111, 163, 255, 0.16); stroke: var(--lime); stroke-width: 1.6; stroke-linejoin: round; }
.bm-coast { fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; opacity: 0.8; }
.bm-bridge { fill: none; stroke: var(--violet); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1 5; }
.bm-sea { fill: rgba(169, 200, 255, 0.55); font: italic 400 22px/1 "Instrument Serif", Georgia, serif; letter-spacing: 0.08em; }
.bm-dot { fill: #A9C8FF; }
.bm-city { fill: #C9D8F2; font: 500 13px/1 "Inter", system-ui, sans-serif; }
.bm-home { fill: var(--violet); stroke: #0F2449; stroke-width: 1; }
.bm-home-ring { fill: rgba(255, 200, 87, 0.14); stroke: var(--violet); stroke-width: 1.2; }
.bm-home-label { fill: var(--violet); font: 700 22px/1 "Caveat", cursive; }
.bm-compass path { fill: var(--lime); }
.bm-compass text { fill: var(--lime); font: 700 13px/1 "Inter", sans-serif; }
@media (prefers-reduced-motion: no-preference) {
}
@media (max-width: 600px) { .bm-city { font-size: 19px; } .bm-sea { font-size: 26px; } .bm-home-label { font-size: 26px; } }
.bm-land { fill: rgba(111, 163, 255, 0.14); }
.bm-ocean, .bm-water { fill: #0A1A3A; }
.bm-water { stroke: var(--lime); stroke-width: 1.4; }
.bm-frame { fill: none; stroke: rgba(111, 163, 255, 0.3); stroke-width: 1.5; }
.bm-sea { fill: rgba(169, 200, 255, 0.6); }

/* ---------- Footer: filled city silhouette ---------- */
.site-footer__skyline { opacity: 1; margin: 0 calc(-1 * var(--gutter)) clamp(32px, 5vw, 56px); }
.site-footer__skyline svg { display: block; width: 100%; height: auto; }
.site-footer__skyline .sky-back { fill: #1C3866; stroke: none; }
.site-footer__skyline .sky-front { fill: #2A4C85; stroke: none; }
.street .doodle--landscaping { height: clamp(54px, 7vw, 104px); }

/* ---------- Hero backdrop: Bay sky at golden hour  ---------- */
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  top: -120px; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  pointer-events: none;
  background:
    radial-gradient(42% 46% at 76% 46%, rgba(255, 200, 87, 0.5), rgba(255, 200, 87, 0) 70%),
    radial-gradient(40% 40% at 12% 18%, rgba(111, 163, 255, 0.42), rgba(111, 163, 255, 0) 70%),
    linear-gradient(180deg, #B3CCF5 0%, #D0E0FA 40%, #F3E1C2 82%, var(--paper) 100%);
}
.hero::after { -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
.site-header:not(.is-dark) { background: rgba(240, 245, 253, 0.55); }

/* ---------- The golden-hour sky, all the way down ---------- */
.frame {
  background:
    radial-gradient(700px 520px at 88% 24%, rgba(255, 200, 87, 0.36), rgba(255, 200, 87, 0) 70%),
    radial-gradient(640px 520px at 6% 42%, rgba(111, 163, 255, 0.34), rgba(111, 163, 255, 0) 70%),
    radial-gradient(700px 520px at 92% 66%, rgba(111, 163, 255, 0.32), rgba(111, 163, 255, 0) 70%),
    radial-gradient(700px 520px at 10% 82%, rgba(255, 200, 87, 0.34), rgba(255, 200, 87, 0) 70%),
    linear-gradient(180deg, #D3E2FA 0%, #F3E3C7 22%, #D3E2FA 44%, #F3E3C7 66%, #D3E2FA 88%);
}
/* Navy sections: the same glow at dusk */
.tone-dark.panel, .site-footer {
  background:
    radial-gradient(60% 55% at 85% 100%, rgba(255, 200, 87, 0.26), rgba(255, 200, 87, 0) 70%),
    radial-gradient(50% 50% at 8% 0%, rgba(111, 163, 255, 0.28), rgba(111, 163, 255, 0) 70%),
    var(--ink);
}
/* Cards sit on the sky as frosted paper */
.project--wide, .benefits li, .polaroid { position: relative; }
/* Contact and footer meet with no seam: contact glows up top, footer glows behind the skyline */
.panel--flush-bottom.tone-dark {
  background:
    radial-gradient(50% 45% at 90% 0%, rgba(255, 200, 87, 0.24), rgba(255, 200, 87, 0) 70%),
    radial-gradient(45% 45% at 6% 10%, rgba(111, 163, 255, 0.26), rgba(111, 163, 255, 0) 70%),
    var(--ink);
}
.site-footer {
  background:
    radial-gradient(55% 60% at 50% 62%, rgba(255, 200, 87, 0.26), rgba(255, 200, 87, 0) 70%),
    var(--ink);
}

/* ---------- Header lockup: logo, then name and tagline ---------- */
.logo { gap: 12px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-logo); font-size: 1.45rem; letter-spacing: 0.01em; color: var(--ink); text-shadow: 0.05em 0.05em 0 var(--extrude); white-space: nowrap; }
.logo__tag { margin-top: 5px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #3C5A8C; white-space: nowrap; }
.site-header.is-dark .logo__name { color: #FFFFFF; text-shadow: 0.05em 0.05em 0 #2A4C85; }
.site-header.is-dark .logo__tag { color: #FFC857; }
@media (min-width: 1024px) and (max-width: 1240px) { .logo__tag { display: none; } .logo__name { font-size: 1.2rem; } .site-nav a { padding: 0 10px; } }
@media (max-width: 599px) { .logo__text { display: none; } }

/* ---------- FAQ ---------- */
.faq-section { padding-top: 0; }
.faq { max-width: 880px; }
.faq__list { display: grid; gap: 12px; margin-top: 8px; }
.faq__item { background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(15, 36, 73, 0.1); border-radius: 18px; box-shadow: 0 4px 0 rgba(191, 213, 255, 0.9), 0 10px 24px rgba(15, 36, 73, 0.06); background-color: rgba(255, 255, 255, 0.86); transition: box-shadow var(--t-fast) var(--ease-out); }
.faq__item[open] { box-shadow: 0 4px 0 #FFC857, 0 12px 28px rgba(15, 36, 73, 0.08); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 18px 22px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 3px solid #2F5FD0; outline-offset: 2px; border-radius: 18px; }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #E2ECFB; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: #2F5FD0; transition: transform var(--t-fast) var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: #FFC857; }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--ink); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item p { margin: 0; padding: 0 22px 20px; max-width: 68ch; color: #3C4A63; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .faq__icon::before, .faq__icon::after { transition: none; } }

/* ---------- Live project: Christina's real site shown inside the MacBook and iPhone ---------- */
.projects--soon { gap: clamp(18px, 2.4vw, 28px); }
.project--live { background: rgba(255, 255, 255, 0.78); border-color: rgba(15, 36, 73, 0.1); box-shadow: 0 6px 0 rgba(191, 213, 255, 0.9), 0 18px 40px rgba(15, 36, 73, 0.08); }
.projects--soon .project--live { padding: clamp(18px, 3vw, 36px); gap: clamp(20px, 3vw, 40px); }
.live-media { position: relative; padding: 0 9% 6% 0; }
.live-laptop { width: 100%; }
.live-phone { position: absolute; right: 0; bottom: 0; width: 24%; }
.live-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1440 / 900; background: #F6F1EA; }
.live-phone .live-frame { aspect-ratio: 390 / 844; }
.live-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; transform: scale(var(--s, 0.4)); pointer-events: none; background: #fff; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #2BB673; vertical-align: 1px; position: relative; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(43, 182, 115, 0.5); animation: live-pulse 2s ease-out infinite; }
@keyframes live-pulse { from { transform: scale(1); opacity: 1; } 70%, to { transform: scale(3); opacity: 0; } }
.project__text { color: #3C4A63; line-height: 1.6; max-width: 46ch; }
.project--live .project__more { color: #2F5FD0; }
.project--live:hover { transform: translateY(-3px); }
@media (min-width: 900px) {
  .projects--soon .project--live { grid-template-columns: 1.35fr 1fr; padding-right: clamp(24px, 3vw, 40px); }
  .project--live .project__body { padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; } .project--live:hover { transform: none; } }
.project--live .project__eyebrow { color: #1F8A55; display: inline-flex; align-items: center; }

/* Hero without the sample devices: the copy takes the whole width */
@media (min-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-top: clamp(24px, 4vw, 56px); }
  .hero__copy { max-width: 56rem; }
  .hero__sub { margin-inline: auto; max-width: 44rem; }
  .hero__ctas { justify-content: center; }
  .hero__area { margin-inline: auto; max-width: 46rem; }
}
/* Phone sits in a wrapper so its bezel scales with the phone, not the whole card */
.live-phone .phone { width: 100%; }
.live-phone .phone__display { background: #fff; }

/* Logos: ring draws itself from its left tip around, MDV slides in from the right (script.js adds .is-playing) */
.logo__mark--anim { position: relative; display: block; aspect-ratio: 149 / 88; flex: none; }
.logo__layer { position: absolute; inset: 0; width: 100%; height: 100%; }
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 370deg; }
@media (prefers-reduced-motion: no-preference) {
  .js .logo__mark--anim:not(.is-done) .logo__layer--back, .js .logo__mark--anim:not(.is-done) .logo__layer--front {
    /* 245deg points at the swoosh's left tip; the visible slice grows clockwise from there */
    -webkit-mask-image: conic-gradient(from 245deg at 50% 50%, #000 calc(var(--sweep) - 10deg), transparent var(--sweep));
    mask-image: conic-gradient(from 245deg at 50% 50%, #000 calc(var(--sweep) - 10deg), transparent var(--sweep));
    --sweep: 0deg;
  }
  .js .logo__mark--anim:not(.is-done) .logo__layer--mdv, .js .logo__mark--anim:not(.is-done) .logo__layer--star1, .js .logo__mark--anim:not(.is-done) .logo__layer--star2 { opacity: 0; }
  .logo__layer--star1 { transform-origin: 90.6% 12.8%; }
  .logo__layer--star2 { transform-origin: 95.8% 25.4%; }
  /* Stars grow from nothing right as the ring sweeps past them (~490ms, ~505ms), then twinkle */
  .logo__mark--anim.is-playing .logo__layer--star1 { animation: logo-star 900ms ease-out 470ms both; }
  .logo__mark--anim.is-playing .logo__layer--star2 { animation: logo-star 900ms ease-out 540ms both; }
  @keyframes logo-star {
    0% { opacity: 1; transform: scale(0); }
    35% { transform: scale(1.1); }
    50% { transform: scale(0.82) rotate(-8deg); }
    68% { transform: scale(1.22) rotate(10deg); }
    84% { transform: scale(0.95) rotate(-3deg); }
    100% { opacity: 1; transform: none; }
  }
  .logo__mark--anim.is-playing .logo__layer--back, .logo__mark--anim.is-playing .logo__layer--front { animation: logo-ring 1300ms cubic-bezier(0.45, 0, 0.25, 1) both; }
  .logo__mark--anim.is-playing .logo__layer--mdv { animation: logo-mdv 900ms cubic-bezier(0.22, 1, 0.36, 1) 350ms both; }
  @keyframes logo-ring { from { --sweep: 0deg; } to { --sweep: 370deg; } }
  /* The white sticker glow waits until the logo has drawn, then fades in (no per-frame shadow redraws while it animates) */
  .js .logo__mark--anim:not(.is-done) { filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0)) drop-shadow(0 0 1.5px rgba(255, 255, 255, 0)) drop-shadow(0 0 1.5px rgba(255, 255, 255, 0)) drop-shadow(0 3px 6px rgba(15, 36, 73, 0)); }
  .js .logo__mark--anim.is-done { transition: filter 600ms ease-out; }
  @keyframes logo-mdv {
    from { opacity: 0; transform: translateX(70%); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Work: one device stage, a tab per industry ---------- */
.showcase {
  position: relative; padding: clamp(16px, 3vw, 36px); border-radius: var(--r-frame, 28px);
  background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(15, 36, 73, 0.1);
  box-shadow: 0 6px 0 rgba(191, 213, 255, 0.9), 0 18px 40px rgba(15, 36, 73, 0.08);
}
.ind-tabs { display: flex; gap: 8px; margin-bottom: clamp(18px, 3vw, 32px); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin-inline: -4px; padding: 4px 4px 8px; }
.ind-tabs::-webkit-scrollbar { display: none; }
.ind-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; scroll-snap-align: start;
  border: 1px solid rgba(15, 36, 73, 0.14); border-radius: 999px; background: #fff; color: var(--ink);
  font: 600 0.9375rem/1 var(--font-body, inherit); cursor: pointer; white-space: nowrap;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.ind-tab svg { width: 18px; height: 18px; flex: none; }
.ind-tab:hover { transform: translateY(-1px); box-shadow: 0 3px 0 rgba(191, 213, 255, 0.9); }
.ind-tab[aria-selected="true"] { background: #0F2449; border-color: #0F2449; color: #fff; box-shadow: 0 4px 0 #FFC857; transform: translateY(-2px); }
.ind-tab:focus-visible { outline: 3px solid #2F5FD0; outline-offset: 2px; }
.showcase__stage { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; }
@media (min-width: 900px) { .showcase__stage { grid-template-columns: 1.35fr 1fr; } }
.showcase .live-frame iframe { transition: opacity 260ms var(--ease-out); }
.showcase.is-switching .live-frame iframe { opacity: 0; }
.ind-panel { display: grid; gap: 12px; justify-items: start; }
.ind-panel[hidden] { display: none; }
.ind-panel .project__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.ind-badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: #EAF1FF; color: #2F5FD0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ind-badge--live { background: #E5F6EC; color: #1F7A4C; }
.ind-cta { margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .ind-panel.is-entering { animation: ind-in 420ms var(--ease-out) both; }
  @keyframes ind-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
/* "Also great for" ticker */
.ind-more { display: flex; align-items: center; gap: 16px; margin: clamp(20px, 3vw, 32px) 0; }
.ind-more .hand { flex: none; font-size: 1.375rem; color: #2F5FD0; }
.ind-marquee { overflow: hidden; min-width: 0; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
/* One track holding two copies; sliding it by exactly half loops seamlessly. Transform only, so it runs on the GPU. */
.ind-marquee__track { display: flex; width: max-content; }
.ind-marquee ul { display: flex; gap: 10px; padding-right: 10px; flex: none; }
.ind-marquee li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(15, 36, 73, 0.1); font-size: 0.875rem; font-weight: 600; color: #3C4A63; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .ind-marquee__track { animation: ind-scroll 40s linear infinite; will-change: transform; }
  @media (hover: hover) { .ind-marquee:hover .ind-marquee__track { animation-play-state: paused; } }
  @keyframes ind-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
}
@media (prefers-reduced-motion: reduce) { .ind-marquee__track { width: auto; } .ind-marquee ul[aria-hidden] { display: none; } .ind-marquee ul { flex-wrap: wrap; } }
@media (max-width: 600px) { .ind-more { flex-direction: column; align-items: stretch; gap: 8px; } }
@media (max-width: 600px) {
  .ind-tabs { display: grid; grid-template-columns: 1fr; overflow: visible; margin-inline: 0; padding: 0 0 6px; }
  .ind-tab { justify-content: center; padding: 0 10px; font-size: 0.875rem; gap: 6px; min-height: 44px; }
  .ind-tab svg { width: 16px; height: 16px; }
}
.field__hint { margin-top: 6px; font-size: 0.8125rem; color: var(--muted); }
.tone-dark .field__hint { color: rgba(228, 238, 255, 0.72); }
.ind-soon { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1px dashed rgba(15, 36, 73, 0.25); border-radius: 999px; color: var(--muted); font-size: 0.9375rem; font-weight: 600; white-space: nowrap; }
.ind-soon__dots { display: inline-flex; gap: 4px; }
.ind-soon__dots i { width: 6px; height: 6px; border-radius: 50%; background: #FFC857; }
@media (prefers-reduced-motion: no-preference) {
  .ind-soon__dots i { animation: soon-dot 1.4s ease-in-out infinite; }
  .ind-soon__dots i:nth-child(2) { animation-delay: 0.2s; } .ind-soon__dots i:nth-child(3) { animation-delay: 0.4s; }
  @keyframes soon-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
}
@media (max-width: 600px) { .ind-soon { justify-content: center; font-size: 0.875rem; padding: 0 10px; } }
.site-footer__area { margin: 4px auto 20px; max-width: 60rem; font-size: 1.2rem; line-height: 1.6; text-align: center; text-wrap: balance; color: rgba(228, 238, 255, 0.72); }
.site-footer__area span { white-space: nowrap; }
@media (max-width: 600px) { .site-footer__area { font-size: 1.05rem; text-align: left; } }
/* Pretend visitor's cursor on the laptop preview */
.fake-cursor { position: absolute; left: 0; top: 0; z-index: 2; width: 3.2%; min-width: 12px; aspect-ratio: 1; margin: -0.4% 0 0 -0.6%; pointer-events: none;
  transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1); will-change: transform; }
.fake-cursor svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35)); }
.fake-cursor::after { content: ""; position: absolute; left: 10%; top: 5%; width: 120%; aspect-ratio: 1; margin: -60% 0 0 -60%; border-radius: 50%; background: rgba(47, 95, 208, 0.35); opacity: 0; transform: scale(0.2); }
.fake-cursor.is-click svg { animation: cur-press 260ms ease-out; }
.fake-cursor.is-click::after { animation: cur-ring 420ms ease-out; }
@keyframes cur-press { 50% { transform: scale(0.82); } }
@keyframes cur-ring { from { opacity: 1; transform: scale(0.2); } to { opacity: 0; transform: scale(1.4); } }
.fake-cursor.is-drag svg { transform: scale(0.88); transition: transform 150ms; }
