/* =========================================================
   Sarah's Web Co
   Brand palette taken from the outfit in Sarah's photo:
   cobalt leaf-print blue, deep navy skirt, and a soft sky tint.
   ========================================================= */

:root {
  /* Brand */
  --c-primary: #2F5FD0;        /* cobalt blue (leaf print) */
  --c-primary-strong: #2149AE; /* hover / pressed */
  --c-navy: #1B2556;           /* navy (skirt) */
  --c-sky: #CFDDFF;            /* light tint of the blue */
  --c-sky-soft: #E7EEFF;

  /* Neutrals */
  --c-paper: #FBF7EF;          /* warm off-white */
  --c-card: #FFFFFF;
  --c-ink: #15151C;            /* near-black */
  --c-muted: #4F5266;
  --c-line: rgba(21, 21, 28, 0.12);
  --c-link: var(--c-primary);
  --c-on-primary: #FFFFFF;

  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 16px;
  --r-md: 22px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 6px rgba(27, 37, 86, 0.06), 0 8px 24px rgba(27, 37, 86, 0.06);
  --shadow-md: 0 6px 16px rgba(27, 37, 86, 0.08), 0 22px 48px rgba(27, 37, 86, 0.12);
  --shadow-sticker: 0 3px 0 rgba(21, 21, 28, 0.9);

  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
  color-scheme: light;
}

[data-theme="dark"] {
  --c-paper: #0D1124;
  --c-card: #161C38;
  --c-ink: #F4F1EA;
  --c-muted: #B7BCD3;
  --c-line: rgba(244, 241, 234, 0.14);
  --c-link: #9CB8FF;
  --c-sky-soft: #1D2547;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.3), 0 22px 48px rgba(0, 0, 0, 0.35);
  --shadow-sticker: 0 3px 0 rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-link); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--c-primary); color: #fff; }

:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: 8px; }
[data-theme="dark"] :focus-visible { outline-color: #9CB8FF; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--c-navy); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--c-muted); }

.section { padding: 72px 0; position: relative; }
.section.pt-0 { padding-top: 0; }
.section.tint { background: var(--c-sky-soft); }
.section-head { margin-bottom: 32px; max-width: 720px; }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.section-head.split > div { max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-link); margin-bottom: 12px;
}
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: #1FA855; box-shadow: 0 0 0 4px rgba(31, 168, 85, 0.18); }

.display { font-size: clamp(2.6rem, 9.5vw, 5.6rem); line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 20px; }
.display-md { font-size: clamp(2.3rem, 7.5vw, 4.6rem); }
.h2 { font-size: clamp(1.9rem, 5.4vw, 3.1rem); }
.h3 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--c-muted); max-width: 40ch; }
.page-hero .lead { max-width: 56ch; }

.hl {
  color: var(--c-on-primary); background: var(--c-primary);
  padding: 0 0.16em; border-radius: 0.18em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
  display: inline; line-height: 1.15;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--c-card); --fg: var(--c-ink); --bd: var(--c-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, box-shadow 0.25s var(--ease);
  box-shadow: 0 4px 0 var(--bd);
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--bd); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--bd); }
.btn-primary { --bg: var(--c-primary); --fg: #fff; --bd: var(--c-navy); }
.btn-primary:hover { --bg: var(--c-primary-strong); }
.btn-ghost { --bg: transparent; --fg: var(--c-ink); --bd: var(--c-ink); }
.btn-ghost:hover { --bg: var(--c-sky); --fg: var(--c-navy); }
[data-theme="dark"] .btn-primary { --bd: #050816; }
[data-theme="dark"] .btn-ghost:hover { --fg: var(--c-navy); --bd: var(--c-sky); }
.btn-light { --bg: #fff; --fg: var(--c-navy); --bd: var(--c-ink); }
.btn-light:hover { --bg: var(--c-sky); }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: #fff; box-shadow: none; }
.btn-outline-light:hover { --bg: rgba(255, 255, 255, 0.12); box-shadow: none; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.magnetic { transition: transform 0.35s var(--ease), background-color 0.2s, box-shadow 0.25s var(--ease); }

.icon-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: transparent; border: 2px solid var(--c-line); cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--c-sky); border-color: var(--c-sky); color: var(--c-navy); transform: rotate(-8deg); }

/* ---------- Stickers & chips ---------- */
.sticker {
  --rot: -6deg;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--c-sky); color: var(--c-navy);
  border: 2px solid var(--c-ink); box-shadow: var(--shadow-sticker);
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; white-space: nowrap;
  transform: rotate(var(--rot));
  transition: transform 0.3s var(--ease);
}
.sticker:hover { animation: wiggle 0.5s ease-in-out; }
.sticker-sm { font-size: 0.78rem; padding: 5px 11px; --rot: 4deg; }
[data-theme="dark"] .sticker { border-color: #050816; }
@keyframes wiggle {
  0%, 100% { transform: rotate(var(--rot)); }
  25% { transform: rotate(calc(var(--rot) + 7deg)) scale(1.05); }
  50% { transform: rotate(calc(var(--rot) - 6deg)) scale(1.05); }
  75% { transform: rotate(calc(var(--rot) + 3deg)); }
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.16); color: #fff; border: 2px solid rgba(255, 255, 255, 0.55);
  transition: transform 0.3s var(--ease);
}
.chip:nth-child(odd) { transform: rotate(-2deg); }
.chip:nth-child(even) { transform: rotate(2deg); }
.chip:hover { animation: wiggle 0.5s ease-in-out; }
.chip-soft { background: var(--c-card); color: var(--c-ink); border-color: var(--c-line); }
.chip-soft:nth-child(3n) { background: var(--c-sky); color: var(--c-navy); border-color: var(--c-sky); }
.chip-soft:nth-child(4n) { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; line-height: 1.3;
}
.tag-niche { background: var(--c-sky); color: var(--c-navy); }
.tag-concept { background: transparent; color: var(--c-muted); border: 1.5px dashed currentColor; }

.doodle { position: absolute; pointer-events: none; color: var(--c-primary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--c-paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: 0 6px 24px rgba(27, 37, 86, 0.06); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); flex: none; }
.logo-mark { width: 40px; height: 40px; transition: transform 0.4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; line-height: 1; }
.logo-web { color: var(--c-link); }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 28px; }
.nav-link {
  position: relative; text-decoration: none; color: var(--c-ink); font-weight: 600; padding: 6px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--c-primary); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"] { color: var(--c-link); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.talk-btn { display: none; }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }

.burger { position: relative; z-index: 80; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  padding: calc(var(--header-h) + 24px) 24px 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: var(--c-paper);
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
  overflow-y: auto;
}
.menu-open .mobile-menu { transform: none; visibility: visible; transition: transform 0.5s var(--ease); }
.menu-open { overflow: hidden; }
.mobile-menu ul { display: grid; gap: 4px; }
.m-link {
  display: block; padding: 6px 0; text-decoration: none; color: var(--c-ink);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 11vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.1;
  opacity: 0; transform: translateX(30px); transition: opacity 0.4s, transform 0.5s var(--ease), color 0.2s;
}
.menu-open .m-link { opacity: 1; transform: none; }
.menu-open li:nth-child(2) .m-link { transition-delay: 0.05s; }
.menu-open li:nth-child(3) .m-link { transition-delay: 0.1s; }
.menu-open li:nth-child(4) .m-link { transition-delay: 0.15s; }
.menu-open li:nth-child(5) .m-link { transition-delay: 0.2s; }
.m-link[aria-current="page"], .m-link:hover { color: var(--c-link); }
.mobile-menu-foot { display: grid; gap: 12px; }
.mobile-menu-foot p { margin: 4px 0 0; text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--c-muted); font-weight: 600; }
.hero-note svg { width: 20px; height: 20px; color: var(--c-link); flex: none; }

.photo-stage { position: relative; width: min(86vw, 440px); margin-inline: auto; aspect-ratio: 4 / 5; }
.blob { position: absolute; border-radius: 999px 999px 32px 32px; }
.blob-1 { inset: 6% -5% -4% 9%; background: var(--c-primary); transform: rotate(5deg); }
.blob-2 { inset: -3% 12% 14% -6%; background: var(--c-sky); transform: rotate(-6deg); border-radius: 999px 999px 28px 28px; }
.hero-photo {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 999px 999px 28px 28px;
  border: 3px solid var(--c-ink); box-shadow: var(--shadow-md);
  background: var(--c-sky);
}
[data-theme="dark"] .hero-photo { border-color: #050816; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 12%; }
.photo-stage .sticker { position: absolute; z-index: 2; }
.st-a { top: 14%; left: -6%; --rot: -9deg; }
.st-b { top: 52%; right: -8%; --rot: 7deg; background: var(--c-primary); color: #fff; }
.st-c { bottom: 6%; left: -2%; --rot: -4deg; background: #fff; color: var(--c-navy); }
.hero-arrow { width: 84px; right: -4%; top: -6%; transform: rotate(18deg); color: var(--c-navy); }
[data-theme="dark"] .hero-arrow { color: var(--c-sky); }
.hero-spark { width: 30px; left: 8%; top: -4%; color: var(--c-primary); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--c-navy); color: #fff; overflow: hidden;
  padding: 16px 0; transform: rotate(-1.5deg); margin: 12px -10px;
  border-block: 3px solid var(--c-ink);
}
.marquee-alt { background: var(--c-primary); transform: rotate(1.2deg); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee li { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 3.6vw, 1.8rem); white-space: nowrap; letter-spacing: -0.02em; }
.mq-star { color: var(--c-sky); font-size: 1.1rem !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Project cards ---------- */
.bento, .work-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.project-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-card); border-radius: var(--r-lg); overflow: hidden;
  border: 2px solid var(--c-line); box-shadow: var(--shadow-sm);
  color: var(--c-ink); text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.project-card:hover, .project-card:focus-within { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.pc-media { padding: 18px 18px 0; background: var(--c-sky-soft); }
.pc-media .mockup { width: 100%; height: auto; border-radius: 14px 14px 0 0; box-shadow: 0 -2px 18px rgba(27, 37, 86, 0.12); transition: transform 0.5s var(--ease); }
.project-card:hover .mockup, .project-card:hover .shot { transform: translateY(-4px) scale(1.015); }
/* Real screenshots for live demos, framed like the SVG mockups */
.shot { margin: 0; overflow: hidden; border-radius: 14px 14px 0 0; background: #0A0A0A; box-shadow: 0 -2px 18px rgba(27, 37, 86, 0.12); transition: transform 0.5s var(--ease); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #1E1E22; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #FF6159; }
.shot-bar i:nth-child(2) { background: #FFBD2E; }
.shot-bar i:nth-child(3) { background: #28C941; }
.shot-bar span { flex: 0 1 220px; margin: 0 auto; padding: 2px 10px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.75); font-size: 0.72rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { display: block; width: 100%; aspect-ratio: 400 / 252; height: auto; object-fit: cover; object-position: top; }
.shot.is-full { max-width: 640px; margin: 0 auto; }
.shot.is-full img { aspect-ratio: auto; }
.tag-live { background: transparent; color: var(--c-primary); border: 1.5px solid currentColor; }
.pc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-title { font-size: 1.4rem; margin: 4px 0 0; }
.pc-line { color: var(--c-muted); margin: 0; font-size: 0.98rem; }
.pc-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-link); }
.pc-more svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.project-card:hover .pc-more svg { transform: translateX(5px); }
.pc-hit { position: absolute; inset: 0; z-index: 3; background: transparent; border: 0; cursor: pointer; border-radius: var(--r-lg); }
.pc-hit:focus-visible { outline-offset: -4px; }

/* ---------- Why cards ---------- */
.why-grid { display: grid; gap: 16px; }
.why-card {
  padding: 26px; border-radius: var(--r-lg); position: relative;
  border: 2px solid var(--c-ink); box-shadow: 0 5px 0 var(--c-ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.why-card:hover { transform: translateY(-5px) rotate(-0.6deg); box-shadow: 0 10px 0 var(--c-ink); }
.why-card h3 { font-size: 1.45rem; }
.why-card p { margin: 0; }
.why-num { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; opacity: 0.8; display: block; margin-bottom: 18px; }
[data-theme="dark"] .why-card { border-color: #050816; box-shadow: 0 5px 0 #050816; }
[data-theme="dark"] .why-card:hover { box-shadow: 0 10px 0 #050816; }

.c-primary { background: var(--c-primary); color: #fff; }
.c-sky { background: var(--c-sky); color: var(--c-navy); }
.c-navy { background: var(--c-navy); color: #fff; }
.c-paper { background: var(--c-card); color: var(--c-ink); }
[data-theme="dark"] .c-navy { background: #26326F; }

.squig-wrap, .circle-wrap { position: relative; display: inline-block; white-space: nowrap; }
.under-squig { left: 0; right: 0; bottom: -0.32em; width: 100%; height: 0.32em; }
.circle-doodle { inset: -0.18em -0.3em; width: calc(100% + 0.6em); height: calc(100% + 0.36em); color: var(--c-primary); }

/* ---------- Services mini ---------- */
.svc-mini-grid { display: grid; gap: 14px; }
.svc-mini {
  position: relative; display: block; padding: 24px 24px 26px; border-radius: var(--r-md);
  background: var(--c-card); color: var(--c-ink); text-decoration: none;
  border: 2px solid var(--c-line); box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s var(--ease);
}
.svc-mini:hover { transform: translateY(-5px); border-color: var(--c-primary); box-shadow: var(--shadow-md); }
.svc-mini h3 { font-size: 1.35rem; margin-bottom: 6px; padding-right: 44px; }
.svc-mini p { color: var(--c-muted); margin: 0; }
.svc-n { font-family: var(--font-display); font-weight: 800; color: var(--c-link); display: block; margin-bottom: 10px; }
.svc-go { position: absolute; right: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c-sky); color: var(--c-navy); transition: transform 0.35s var(--ease), background-color 0.2s, color 0.2s; }
.svc-go svg { width: 18px; height: 18px; }
.svc-mini:hover .svc-go { transform: rotate(-45deg); background: var(--c-primary); color: #fff; }

/* ---------- About teaser ---------- */
.teaser-card {
  position: relative; overflow: hidden;
  background: var(--c-primary); color: #fff;
  padding: 40px 26px; border-radius: var(--r-lg);
  border: 3px solid var(--c-ink); box-shadow: 0 8px 0 var(--c-ink);
}
[data-theme="dark"] .teaser-card { border-color: #050816; box-shadow: 0 8px 0 #050816; }
.teaser-h { font-size: clamp(2rem, 6.4vw, 3.6rem); max-width: 16ch; }
.teaser-card > p { font-size: 1.15rem; max-width: 52ch; }
.teaser-card .chips { margin: 22px 0 28px; }
.teaser-star { width: 90px; right: -14px; top: -14px; color: var(--c-sky); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: s; }
.step {
  position: relative; padding: 26px; border-radius: var(--r-md);
  background: var(--c-card); border: 2px solid var(--c-line); box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.35rem; }
.step p { margin: 0; color: var(--c-muted); }
.step-n {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px;
  background: var(--c-navy); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  transform: rotate(-6deg);
}
.step:nth-child(2) .step-n { background: var(--c-primary); transform: rotate(5deg); }
.step:nth-child(3) .step-n { background: var(--c-sky); color: var(--c-navy); }
.step:nth-child(4) .step-n { background: var(--c-ink); color: var(--c-paper); transform: rotate(4deg); }

/* ---------- Testimonials ---------- */
.t-grid { display: grid; gap: 18px; }
.t-card {
  position: relative; margin: 0; padding: 30px 26px 24px; border-radius: var(--r-lg);
  background: var(--c-card); border: 2px solid var(--c-line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.t-card:hover { transform: translateY(-5px) rotate(0deg) !important; box-shadow: var(--shadow-md); }
.t-1 { background: var(--c-sky); color: var(--c-navy); border-color: var(--c-sky); }
.t-quote-mark { position: absolute; top: -10px; right: 20px; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--c-primary); }
.t-card blockquote { margin: 0; }
.t-card blockquote p { margin: 0; font-size: 1.08rem; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; }
.t-card strong { display: block; font-family: var(--font-display); }
.t-role { display: block; font-size: 0.9rem; opacity: 0.8; }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--c-primary); color: #fff; font-family: var(--font-display); font-weight: 800; }
.t-1 .t-avatar { background: var(--c-navy); }

/* ---------- CTA ---------- */
.cta-block {
  position: relative; overflow: hidden; text-align: center;
  background: var(--c-navy); color: #fff;
  padding: 56px 24px; border-radius: var(--r-lg);
  border: 3px solid var(--c-ink);
}
[data-theme="dark"] .cta-block { background: #1E2A63; border-color: #050816; }
.cta-h { max-width: 18ch; margin-inline: auto; font-size: clamp(2rem, 6.6vw, 3.8rem); }
.cta-text { max-width: 50ch; margin: 0 auto 24px; color: #DCE4FF; font-size: 1.1rem; }
.cta-block .btn-row { justify-content: center; }
.cta-star { width: 64px; left: 6%; top: 14%; color: var(--c-sky); }
.cta-squig { width: 140px; right: 5%; bottom: 12%; color: var(--c-primary); }

/* ---------- Page hero ---------- */
.page-hero { padding: 48px 0 48px; position: relative; }
.page-hero .display { max-width: 18ch; }

/* ---------- Work page ---------- */
.filter-bar {
  display: flex; gap: 10px; overflow-x: auto; padding: 6px 4px 14px; margin: 0 -4px 22px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.pill {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 8px 18px; border-radius: 999px;
  border: 2px solid var(--c-ink); background: var(--c-card); color: var(--c-ink);
  font-weight: 700; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.pill:hover { transform: translateY(-2px); background: var(--c-sky); color: var(--c-navy); }
.pill.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pill-n { font-size: 0.78rem; padding: 1px 7px; border-radius: 999px; background: var(--c-line); }
.pill.is-active .pill-n { background: rgba(255, 255, 255, 0.25); }
[data-theme="dark"] .pill { border-color: var(--c-line); }

.work-grid .project-card { animation: pop 0.45s var(--ease) both; }
.work-grid .project-card.is-hidden { display: none; }
.work-grid .project-card.is-leaving { animation: out 0.2s ease forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
@keyframes out { to { opacity: 0; transform: scale(0.96); } }

.empty-state {
  position: relative; text-align: center; padding: 56px 24px; border-radius: var(--r-lg);
  border: 2px dashed var(--c-primary); background: var(--c-sky-soft);
}
.empty-state p { color: var(--c-muted); }
.empty-spark { position: relative; width: 44px; margin: 0 auto 12px; }

.case-modal {
  width: min(100% - 20px, 940px); max-height: calc(100dvh - 20px); padding: 0;
  border: 3px solid var(--c-ink); border-radius: var(--r-lg);
  background: var(--c-card); color: var(--c-ink); box-shadow: var(--shadow-md);
  overflow: hidden;
}
.case-modal[open] { animation: modal-in 0.45s var(--ease); }
.case-modal::backdrop { background: rgba(13, 17, 36, 0.6); backdrop-filter: blur(4px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(0.98); } }
.case-inner { position: relative; max-height: calc(100dvh - 26px); overflow-y: auto; }
.case-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2; background: var(--c-card); }
.case-media { background: var(--c-sky-soft); padding: 28px 22px 0; }
.case-media .mockup { width: 100%; max-width: 640px; margin: 0 auto; border-radius: 14px 14px 0 0; }
.case-body { padding: 26px 24px 30px; }
.case-title { margin-top: 12px; }
.case-line { color: var(--c-muted); font-size: 1.12rem; }
.case-cols { display: grid; gap: 18px; margin: 22px 0; }
.case-cols section { padding: 20px; border-radius: var(--r-sm); background: var(--c-sky-soft); }
.case-body h3 { font-size: 1.2rem; }
.case-cols p { margin: 0; }
.case-features { display: grid; gap: 10px; margin-bottom: 18px; }
.case-features li { display: flex; gap: 10px; align-items: flex-start; }
.case-features svg { width: 22px; height: 22px; flex: none; color: #fff; background: var(--c-primary); border-radius: 50%; padding: 4px; margin-top: 2px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.case-note { font-size: 0.9rem; color: var(--c-muted); border-left: 3px solid var(--c-primary); padding-left: 12px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
.polaroid-wrap { position: relative; width: min(80vw, 400px); margin-inline: auto; }
.polaroid {
  margin: 0; padding: 14px 14px 18px; background: #fff; border-radius: 20px;
  border: 2px solid var(--c-ink); box-shadow: var(--shadow-md);
  transform: rotate(-4deg); transition: transform 0.5s var(--ease);
}
.polaroid:hover { transform: rotate(-1deg) scale(1.02); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 54% 12%; border-radius: 12px; }
.polaroid figcaption { font-family: var(--font-display); font-weight: 700; color: var(--c-navy); text-align: center; margin-top: 12px; font-size: 1.05rem; }
.polaroid-star { width: 64px; top: -24px; right: -18px; color: var(--c-primary); animation: spin 20s linear infinite; }
.polaroid-arrow { width: 90px; left: -20px; bottom: -50px; transform: scaleX(-1) rotate(70deg); color: var(--c-navy); }
[data-theme="dark"] .polaroid-arrow { color: var(--c-sky); }
.st-about { position: absolute; top: 20%; left: -22px; --rot: -10deg; background: var(--c-primary); color: #fff; }

.facts-grid { display: grid; gap: 16px; }
.fact {
  padding: 24px; border-radius: var(--r-md);
  border: 2px solid var(--c-ink); box-shadow: 0 5px 0 var(--c-ink);
  transition: transform 0.35s var(--ease);
}
[data-theme="dark"] .fact { border-color: #050816; box-shadow: 0 5px 0 #050816; }
.fact h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.fact p { margin: 0; font-size: 1.15rem; font-weight: 500; }
.rot-l { transform: rotate(-1.2deg); }
.rot-r { transform: rotate(1.2deg); }
.fact:hover { transform: rotate(0) translateY(-4px); }

.beliefs { display: grid; gap: 4px; }
.belief { display: flex; gap: 18px; align-items: baseline; padding: 20px 0; border-bottom: 2px solid var(--c-line); }
.belief p { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 4.8vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; transition: color 0.2s, transform 0.35s var(--ease); }
.belief:hover p { color: var(--c-link); transform: translateX(6px); }
.belief-n { font-family: var(--font-display); font-weight: 800; color: var(--c-link); flex: none; }

.why-me p { font-size: 1.15rem; }
.into-grid { display: grid; gap: 22px; }
.into { padding: 24px; border-radius: var(--r-md); background: var(--c-card); border: 2px solid var(--c-line); }
.into h3 { font-size: 1.2rem; }

/* ---------- Services page ---------- */
.svc-grid { display: grid; gap: 18px; }
.svc-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px 24px; border-radius: var(--r-lg);
  border: 2px solid var(--c-ink); box-shadow: 0 6px 0 var(--c-ink);
  transition: transform 0.35s var(--ease);
}
[data-theme="dark"] .svc-card { border-color: #050816; box-shadow: 0 6px 0 #050816; }
.svc-card:hover { transform: translateY(-5px); }
.svc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.svc-card .svc-n { color: inherit; opacity: 0.85; margin: 0; }
.svc-get { margin-bottom: 8px; }
.svc-list { display: grid; gap: 8px; margin-bottom: 18px; }
.svc-list li { display: flex; gap: 10px; align-items: flex-start; }
.svc-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.price { margin-top: auto; margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.price-label { font-weight: 600; opacity: 0.9; }
.price-value {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  padding: 2px 10px; border: 2px dashed currentColor; border-radius: 10px;
}
.svc-card.c-primary .btn-primary, .svc-card.c-navy .btn-primary { --bg: #fff; --fg: var(--c-navy); --bd: var(--c-ink); }
.svc-card.c-primary .btn-primary:hover, .svc-card.c-navy .btn-primary:hover { --bg: var(--c-sky); }
.svc-foot { position: relative; margin-top: 28px; text-align: center; color: var(--c-muted); font-weight: 600; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.inline-spark { position: static; width: 22px; }

.faq { display: grid; gap: 12px; }
.faq-item { background: var(--c-card); border: 2px solid var(--c-line); border-radius: var(--r-sm); transition: border-color 0.2s; }
.faq-item[open] { border-color: var(--c-primary); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 20px 20px; margin: 0; color: var(--c-muted); }
.faq-plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--c-sky); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2.5px; background: var(--c-navy); border-radius: 2px; transition: transform 0.3s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 22px; align-items: start; }
.contact-side { display: grid; gap: 14px; }
.big-contact {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r-md);
  text-decoration: none; color: #fff; border: 2px solid var(--c-ink); box-shadow: 0 5px 0 var(--c-ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
[data-theme="dark"] .big-contact { border-color: #050816; box-shadow: 0 5px 0 #050816; }
.big-contact:hover { transform: translateY(-4px); }
.big-contact > svg { width: 24px; height: 24px; margin-left: auto; flex: none; transition: transform 0.3s var(--ease); }
.big-contact:hover > svg { transform: translateX(5px); }
.big-contact strong { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.big-contact span span { opacity: 0.9; font-size: 0.95rem; word-break: break-all; }
.big-wa { background: #0B7A3E; }
.big-mail { background: var(--c-primary); }
.big-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); flex: none; }
.big-ic svg { width: 28px; height: 28px; }

.info-card, .form-card { position: relative; padding: 26px 22px; border-radius: var(--r-lg); background: var(--c-card); border: 2px solid var(--c-line); box-shadow: var(--shadow-sm); }
.info-list { display: grid; gap: 0; margin: 0 0 16px; }
.info-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line); flex-wrap: wrap; }
.info-list dt { font-weight: 700; }
.info-list dd { margin: 0; text-align: right; word-break: break-word; }
.form-star { width: 52px; right: -14px; top: -18px; }

.form { display: grid; gap: 16px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--c-ink);
  padding: 14px 16px; min-height: 52px; border-radius: 14px;
  background: var(--c-paper); border: 2px solid var(--c-line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-muted); opacity: 0.75; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 22%, transparent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #B42318; font-weight: 600; margin: 0; }
[data-theme="dark"] .form-error { color: #FF9C8F; }
.form-success { text-align: center; padding: 30px 10px 10px; }
.form-success:focus { outline: none; }
.success-ic { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary); color: #fff; animation: pop 0.5s var(--ease); }
.success-ic svg { width: 32px; height: 32px; }
.success-ic.big { width: 84px; height: 84px; }

/* ---------- 404 / thanks ---------- */
.simple-page { padding: 72px 0 96px; }
.simple-page .lead { margin-inline: auto; }
.big-404 { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 28vw, 12rem); line-height: 1; letter-spacing: -0.06em; margin: 0 0 10px; color: var(--c-navy); }
[data-theme="dark"] .big-404 { color: var(--c-sky); }
.big-404 span { display: inline-block; color: var(--c-primary); transform: rotate(-12deg); }
.nf-star { position: relative; width: 48px; margin: 0 auto 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy); color: #E6EBFF; padding: 56px 0 28px; margin-top: 40px; }
[data-theme="dark"] .site-footer { background: #080B1A; border-top: 1px solid var(--c-line); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 36px; }
.logo-footer { color: #fff; }
.logo-footer .logo-web { color: var(--c-sky); }
.footer-tag { margin: 16px 0 20px; font-size: 1.1rem; max-width: 34ch; }
.footer-h { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-sky); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-contact a, .footer-loc { display: inline-flex; align-items: center; gap: 10px; word-break: break-all; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--c-sky); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.25); color: #fff;
  transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.social svg { width: 21px; height: 21px; }
.social:hover { transform: translateY(-4px) rotate(-8deg); background: var(--c-sky); color: var(--c-navy); border-color: var(--c-sky); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.92rem; }
.footer-bottom p { margin: 0; }

/* ---------- Floating contact buttons ---------- */
.fab {
  position: fixed; right: 10px; top: 50%; z-index: 50;
  display: flex; flex-direction: column; gap: 10px;
  transform: translateY(-50%);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.fab.is-hidden { opacity: 0; pointer-events: none; transform: translate(80px, -50%); }
.fab-btn {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  border: 2px solid var(--c-ink); box-shadow: 0 3px 0 var(--c-ink), var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}
[data-theme="dark"] .fab-btn { border-color: #050816; box-shadow: 0 3px 0 #050816; }
.fab-btn svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.fab-btn:hover, .fab-btn:focus-visible { transform: scale(1.1); }
.fab-wa { background: #1FAF55; }
.fab-mail { background: var(--c-primary); }
.fab-wa::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 3px solid #25D366; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
.fab-btn::after {
  content: attr(data-tip); position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translate(8px, -50%); opacity: 0; pointer-events: none;
  background: var(--c-ink); color: var(--c-paper); padding: 7px 12px; border-radius: 10px;
  font-size: 0.85rem; font-weight: 700; white-space: nowrap;
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.fab-btn:hover::after, .fab-btn:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

/* ---------- Custom cursor (desktop only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .has-cursor .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
    border: 2px solid var(--c-primary); background: color-mix(in srgb, var(--c-sky) 25%, transparent);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), opacity 0.2s, background-color 0.2s;
    opacity: 0;
  }
  .has-cursor .cursor.is-on { opacity: 1; }
  .has-cursor .cursor.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: color-mix(in srgb, var(--c-primary) 18%, transparent); }
}

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .why-card.reveal.is-in:hover, .js .svc-card.reveal.is-in:hover { transform: translateY(-5px); }
.js .fact.rot-l.reveal.is-in { transform: rotate(-1.2deg); }
.js .fact.rot-r.reveal.is-in { transform: rotate(1.2deg); }
.js .fact.reveal.is-in:hover { transform: translateY(-4px); }
.js .project-card.reveal.is-in:hover, .js .project-card.reveal.is-in:focus-within { transform: translateY(-6px) rotate(-0.4deg); }
.js .svc-mini.reveal.is-in:hover, .js .t-card.reveal.is-in:hover { transform: translateY(-5px); }
.js .t-0.is-in { transform: rotate(-1deg); }
.js .t-2.is-in { transform: rotate(1deg); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .bento, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .svc-mini-grid, .facts-grid, .steps, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .case-cols { grid-template-columns: 1fr 1fr; }
  .teaser-card { padding: 56px 48px; }
  .cta-block { padding: 72px 40px; }
  .fab { right: 16px; }
  .fab-btn { width: 56px; height: 56px; }
  .fab-btn svg { width: 25px; height: 25px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .info-card, .form-card { padding: 32px; }
  .case-body { padding: 30px 36px 36px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 78px; }
  body { font-size: 1.1rem; }
  .section { padding: 104px 0; }
  .nav-desktop { display: block; }
  .talk-btn { display: inline-flex; }
  .burger, .mobile-menu { display: none; }
  .hero { padding: 56px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .photo-stage { width: 100%; max-width: 460px; }
  .page-hero { padding: 80px 0 64px; }

  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .project-card { grid-column: span 2; }
  .bento .project-card:nth-child(1), .bento .project-card:nth-child(6) { grid-column: span 4; flex-direction: row; }
  .bento .project-card:nth-child(1) .pc-media, .bento .project-card:nth-child(6) .pc-media { flex: 1.35; display: flex; align-items: flex-end; padding: 26px 26px 0; }
  .bento .project-card:nth-child(1) .pc-body, .bento .project-card:nth-child(6) .pc-body { flex: 1; padding: 28px; justify-content: center; }
  .bento .project-card:nth-child(1) .pc-title, .bento .project-card:nth-child(6) .pc-title { font-size: 1.9rem; }
  .bento .project-card:nth-child(6) { flex-direction: row-reverse; }

  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(6, 1fr); }
  .why-card { grid-column: span 2; }
  .why-card:nth-child(1), .why-card:nth-child(4) { grid-column: span 4; }
  .svc-mini-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .t-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1.2fr 0.8fr; gap: 64px; }
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .into-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 28px; }
  .teaser-card { padding: 72px 64px; }
  .case-modal { width: min(100% - 48px, 940px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .fab-wa::before { display: none; }
}
