/* ============================================================
   Design Master Solutions — main.css
   Source of truth: DESIGN-SYSTEM.md ("The Drafting Table")
   Every color/type/spacing decision derives from that document.
   ============================================================ */

/* ---------- 1. Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-wght-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 100%; /* width axis pinned at 100 (fontTools instancer, 17/10): 90 -> 35 KB */
  font-style: normal;
  font-display: swap;
}
/* Metric-tuned fallback: reduces the swap reflow of the expanded display face */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 100%;
  ascent-override: 88%;
  descent-override: 22%;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plexmono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Raw palette — extracted from the logo */
  --dm-navy-800: #00327b;
  --dm-royal-700: #00468b;
  --dm-royal-600: #005193;
  --dm-blue-500: #006da9;
  --dm-cyan-400: #009fd1;
  --dm-slate-600: #556a7a;

  /* Derived */
  --dm-ink-950: #041424;
  --dm-ink-900: #062038;
  --dm-sky-300: #4cc3e8;
  --dm-sky-200: #a9dff2;
  --dm-ice-100: #eaf4fa;
  --dm-paper: #f4f8fb;
  --dm-paper-2: #e7eff6;
  --dm-slate-800: #243543;
  --dm-line-dark: rgba(0, 159, 209, 0.16);
  --dm-line-light: rgba(0, 109, 169, 0.18);

  /* Type */
  --font-display: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --fs-100: 0.75rem;
  --fs-200: 0.875rem;
  --fs-300: 1.0625rem;
  --fs-400: 1.25rem;
  --fs-500: clamp(1.5rem, 1.2vw + 1rem, 1.75rem);
  --fs-600: clamp(1.75rem, 2.2vw + 1rem, 2.5rem);
  --fs-700: clamp(2.5rem, 4.5vw + 1rem, 4.25rem);
  --fs-800: clamp(3rem, 7vw + 1rem, 6.5rem);

  /* Space (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 104px;
  --space-9: 152px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-ui: 2px;
  --radius-card: 8px;
  --header-h: 76px;
  --wa-clear: 72px; /* the fixed WhatsApp button: 48px tall, 24px off the bottom */

  /* Semantic defaults (dark) — for anything outside a [data-sheet] scope,
     e.g. the fixed header and its CTA. Sheets override below. */
  --bg: var(--dm-ink-950);
  --surface: var(--dm-ink-900);
  --text: var(--dm-ice-100);
  --text-2: var(--dm-sky-200);
  --line: var(--dm-line-dark);
  --accent: var(--dm-cyan-400);
  --accent-text: var(--dm-ink-950);
}

/* Semantic tokens per sheet theme */
[data-sheet="dark"] {
  --bg: var(--dm-ink-950);
  --surface: var(--dm-ink-900);
  --text: var(--dm-ice-100);
  --text-2: var(--dm-sky-200);
  --line: var(--dm-line-dark);
  --accent: var(--dm-cyan-400);
  --accent-text: var(--dm-ink-950);
}
[data-sheet="paper"] {
  --bg: var(--dm-paper);
  --surface: #ffffff;
  --text: var(--dm-slate-800);
  --text-2: var(--dm-slate-600);
  --line: var(--dm-line-light);
  --accent: var(--dm-blue-500);
  --accent-text: #ffffff;
}

/* ---------- 3. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
/* smooth only for a clicked link: ScrollTrigger's own measuring jumps must be instant, or a reload in the
   middle of the page leaves every trigger offset by the restored scroll */
html:focus-within {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-300);
  line-height: 1.6;
  color: var(--dm-ice-100);
  background: var(--dm-ink-950);
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
}
::selection {
  background: var(--dm-cyan-400);
  color: var(--dm-ink-950);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--dm-cyan-400);
  color: var(--dm-ink-950);
  font-family: var(--font-mono);
  font-size: var(--fs-200);
}
.skip-link:focus {
  left: 0;
}

:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent, var(--dm-cyan-400));
  outline-offset: 2px;
}

/* ---------- 4. Sheet frame (drafting ruler) ---------- */
.frame {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(76, 195, 232, 0.35) 0 2px,
    transparent 2px 96px
  );
  opacity: 0.5;
}
.frame::before {
  left: 14px;
}
.frame::after {
  right: 14px;
}

/* ---------- 5. Sections as sheets ---------- */
.sheet {
  position: relative;
  background: var(--bg);
  color: var(--text);
  padding: var(--space-8) 0;
}
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sheet-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--space-5);
}
.sheet-label::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
h2.display {
  font-size: var(--fs-600);
  margin: var(--space-3) 0 var(--space-4);
}

/* ---------- 6. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-ui);
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.2s ease;
}
.btn span {
  position: relative;
  z-index: 1;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dm-navy-800);
  transform: translateY(101%);
  transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1);
}
.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  transform: translateY(0);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--dm-ice-100);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--surface);
  border-color: var(--accent);
}

/* ---------- 7. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(4, 20, 36, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dm-line-dark);
}
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name b {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--dm-ice-100);
}
.brand-name small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.42em;
  color: var(--dm-sky-300);
  margin-top: 4px;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.site-nav a:not(.btn) {
  font-size: var(--fs-200);
  font-weight: 500;
  color: var(--dm-sky-200);
  text-decoration: none;
  padding: 6px 2px;
}
.site-nav a:not(.btn):hover {
  color: var(--dm-ice-100);
}
/* Client area dropdown (WHMCS deep links) */
.client-menu {
  position: relative;
}
.client-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 2px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 500;
  color: var(--dm-sky-200);
}
.client-toggle:hover {
  color: var(--dm-ice-100);
}
.client-toggle svg {
  transition: transform 0.2s ease;
}
.client-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.client-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 316px;
  background: var(--dm-ink-900);
  border: 1px solid var(--dm-line-dark);
  border-top: 2px solid var(--dm-cyan-400);
  border-radius: var(--radius-ui);
  padding: 10px 0 12px;
  box-shadow: 0 18px 40px rgba(2, 10, 20, 0.5);
}
.client-panel-label {
  margin: 0 0 6px;
  padding: 10px 28px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dm-sky-300);
  border-bottom: 1px solid var(--dm-line-dark);
}
.site-nav .client-panel a {
  display: block;
  padding: 13px 28px;
  font-size: var(--fs-200);
  color: var(--dm-ice-100);
  text-decoration: none;
}
.site-nav .client-panel a:hover {
  background: var(--dm-ink-950);
  color: var(--dm-sky-300);
}
.site-nav .client-panel a:last-child {
  font-size: var(--fs-100);
  color: var(--dm-sky-200);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--dm-line-dark);
  border-radius: var(--radius-ui);
  width: 48px;
  height: 48px;
  cursor: pointer;
  color: var(--dm-ice-100);
  padding: 0;
}
.nav-toggle svg {
  margin-inline: auto;
}

/* ---------- 8. Hero (DMS.01 — COVER) ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + var(--space-6)) 0 var(--space-7);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-7);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--dm-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--dm-line-dark) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(120% 90% at 60% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 60% 40%, #000 30%, transparent 78%);
  opacity: 0.55;
}
.hero h1 {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 850;
  font-size: var(--fs-700);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: var(--space-4) 0;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--dm-sky-300);
}
.hero-lead {
  max-width: 56ch;
  font-size: var(--fs-400);
  line-height: 1.55;
  color: var(--dm-sky-200);
  margin-bottom: var(--space-6);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero-note {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.06em;
  color: var(--dm-sky-200);
}
.hero-note a {
  color: var(--dm-sky-300);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.hero-figure {
  position: relative;
}
.hero-figure svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
/* js/hero3d.js lays its canvas over the SVG; the flat fills fade out once the solid shows, the drawing stays below */
.hero-figure canvas.hero3d {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero-figure.is-3d canvas.hero3d {
  opacity: 1;
}
.hero-figure .petal-fills {
  transition: opacity 0.7s ease;
}
.hero-figure.is-3d .petal-fills {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero-figure canvas.hero3d { display: none; }
  .hero-figure.is-3d .petal-fills { opacity: 1; }
}

/* ---------- 9. Client ticker ---------- */
.ticker-band {
  border-top: 1px solid var(--dm-line-dark);
  border-bottom: 1px solid var(--dm-line-dark);
  background: var(--dm-ink-950);
  padding: var(--space-3) 0;
  overflow: hidden;
}
.ticker-title {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dm-sky-200);
  margin: 0;
}
.ticker {
  display: flex;
  width: max-content;
  /* gap zero: spacing lives inside each half so translateX(-50%)
     equals exactly one loop period (no snap) */
  gap: 0;
  animation: ticker-scroll 46s linear infinite;
}
.ticker:hover,
.ticker-band.is-paused .ticker,
.ticker-band:focus-within .ticker {
  animation-play-state: paused;
}
.ticker ul {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0 var(--space-6) 0 0;
}
.ticker-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.ticker-toggle {
  background: none;
  border: 1px solid var(--dm-line-dark);
  border-radius: var(--radius-ui);
  color: var(--dm-sky-200);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
}
.ticker-toggle:hover {
  color: var(--dm-ice-100);
  border-color: var(--dm-cyan-400);
}
.ticker li {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  white-space: nowrap;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 650;
  font-size: var(--fs-400);
  color: var(--dm-sky-200);
  opacity: 0.85;
}
.ticker li::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--dm-cyan-400);
  clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
  opacity: 0.7;
}
@keyframes ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 10. Services (DMS.02) ---------- */
.services-head,
.solutions-head {
  max-width: 62ch;
}
.services-head p,
.solutions-head p {
  color: var(--text-2);
  font-size: var(--fs-400);
}
.services-grid,
.work-grid,
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dm-navy-800), var(--dm-cyan-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
.service-card:hover::after {
  transform: scaleX(1);
}
.service-card .icon {
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-4);
}
.service-card h3 {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 750;
  font-size: var(--fs-500);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.service-card p {
  color: var(--text-2);
  font-size: var(--fs-300);
}
.service-card .tag {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Desktop: the four services side by side (Alan, 27/10/2026); 961-1099px keeps 2x2 and
   below 960px the .rail rule turns the row into a swipe carousel */
@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .services-grid .service-card {
    padding: var(--space-4);
  }
}

/* ---------- 11. Method (DMS.03) ---------- */
.method-intro {
  max-width: 60ch;
}
.method-intro p {
  color: var(--text-2);
  font-size: var(--fs-400);
}
.method-steps {
  margin-top: var(--space-7);
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-5);
  align-items: baseline;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
}
.step:last-child {
  border-bottom: 1px solid var(--line);
}
.step-no {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-200);
  letter-spacing: 0.08em;
  color: var(--accent);
}
.step h3 {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 800;
  font-size: var(--fs-600);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.step p {
  color: var(--text-2);
}
/* the step the stage is showing stays lit (opacity on the children: GSAP owns .step's own opacity) */
.step > * {
  transition: opacity 0.4s ease;
}
.method-layout.is-3d .step:not(.is-on) > * {
  opacity: 0.45;
}
/* 3D stage: sticky beside the steps on wide screens, a band above them on smaller ones */
.method-layout {
  margin-top: var(--space-7);
  display: grid;
  gap: var(--space-6);
}
.method-layout .method-steps {
  margin-top: 0;
}
.method-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(120% 90% at 50% 40%, var(--surface), var(--bg));
  overflow: hidden;
}
.method-stage canvas,
.stage-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage-fallback {
  padding: 18%;
}
.method-stage.has-3d .stage-fallback {
  display: none;
}
.stage-caption {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
@media (min-width: 1025px) {
  .method-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }
  .method-stage {
    order: 2;
    position: sticky;
    top: 18vh;
    aspect-ratio: 1;
  }
  .method-layout .step {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: var(--space-6) 0;   /* a longer runway for the stage beside it */
  }
  .method-layout .step p {
    grid-column: 2;
  }
}
/* 3D tilt for cards: the angles come from js/main.js, pointer devices only */
@media (hover: hover) and (pointer: fine) {
  .work-card.tilt {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  }
  .work-card.tilt:hover {
    transition-duration: 0.12s;
  }
}

/* ---------- 12. Work (DMS.04) ---------- */
.work-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, var(--dm-ink-900), var(--dm-navy-800));
  overflow: hidden;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}
.work-card:hover .work-media img {
  transform: scale(1.04);
}
.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 159, 209, 0.28), rgba(0, 50, 123, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work-card:hover .work-media::after {
  opacity: 1;
}
.work-body {
  padding: var(--space-4);
}
.work-body .kind {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-body h3 {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 750;
  font-size: var(--fs-500);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: var(--space-2) 0;
  color: var(--text);
}
.work-body p {
  color: var(--text-2);
  font-size: var(--fs-200);
}

/* ---------- 12b. Solutions (DMS.05) — our own products ---------- */
.solution-card {
  display: flex;
  flex-direction: column;
}
.solution-card .work-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  vertical-align: 1px;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.status.is-live::before {
  background: currentColor;
}
.solution-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.04em;
  color: var(--text);
}
.solution-url::after {
  content: "";
  width: 10px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 8.5l7-7M3 1.5h5.5V7' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 8.5l7-7M3 1.5h5.5V7' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.solution-card:hover .solution-url::after {
  transform: translate(2px, -2px);
}

/* ---------- 13. Proof (DMS.06) ---------- */
.proof {
  background: var(--dm-paper-2);
}
.proof-statement {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 800;
  font-size: var(--fs-600);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 24ch;
  text-wrap: balance;
}
.proof-copy {
  max-width: 58ch;
  color: var(--text-2);
  margin-top: var(--space-4);
  font-size: var(--fs-400);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-7);
}
.stat {
  border-top: 2px solid var(--accent);
  padding-top: var(--space-4);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 850;
  font-size: var(--fs-800);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--dm-navy-800);
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.04em;
  color: var(--text-2);
}

/* ---------- 14. Contact (DMS.07) ---------- */
.contact .container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-7);
  align-items: start;
}
.contact-info p {
  color: var(--text-2);
  max-width: 46ch;
  font-size: var(--fs-400);
}
.contact-direct {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-4);
}
.contact-direct a {
  text-decoration: none;
  color: var(--text);
}
.contact-direct .label {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  display: block;
  margin-bottom: 6px;
}
.contact-phone {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 800;
  font-size: var(--fs-600);
  letter-spacing: -0.01em;
  line-height: 1;
}
.contact-phone:hover {
  color: var(--dm-sky-300);
}
.contact-email {
  font-size: var(--fs-400);
  border-bottom: 1px solid var(--dm-line-dark);
  padding-bottom: 2px;
}
.contact-email:hover {
  color: var(--dm-sky-300);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
}
.field {
  display: grid;
  gap: 8px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field label .req {
  color: var(--dm-sky-300);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--dm-ink-950);
  /* boundary >= 3:1 against both the field fill and the card (WCAG 1.4.11) */
  border: 1px solid rgba(0, 159, 209, 0.55);
  border-radius: var(--radius-ui);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(169, 223, 242, 0.62);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234CC3E8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-status {
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  min-height: 1.4em;
}
.form-status.error {
  color: #ffb4b4;
}
.form-status.success {
  color: var(--dm-sky-300);
}
.turnstile-slot {
  min-height: 65px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 15. Footer — title block ---------- */
.site-footer {
  background: var(--dm-ink-950);
  color: var(--dm-sky-200);
  border-top: 1px solid var(--dm-line-dark);
  padding: var(--space-7) 0 var(--space-5);
}
.title-block {
  border: 1px solid var(--dm-line-dark);
  border-radius: var(--radius-ui);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tb-cell {
  padding: var(--space-4);
  border-right: 1px solid var(--dm-line-dark);
}
.tb-cell:last-child {
  border-right: 0;
}
.tb-cell .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dm-sky-300);
  display: block;
  margin-bottom: 8px;
}
.tb-cell .value {
  font-size: var(--fs-200);
  color: var(--dm-ice-100);
}
.tb-cell .value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--dm-line-dark);
}
.tb-cell .value a:hover {
  color: var(--dm-sky-300);
}
.footer-base {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.04em;
}
.footer-base nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}
.footer-base a {
  color: var(--dm-sky-200);
  text-decoration: none;
}
.footer-base a:hover {
  color: var(--dm-ice-100);
}
.consent-reopen,
.inline-consent {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.inline-consent {
  color: var(--dm-sky-300);
}
.consent-reopen:hover,
.inline-consent:hover {
  color: var(--dm-ice-100);
}
.consent-reopen:focus-visible,
.inline-consent:focus-visible {
  outline: 2px solid var(--dm-sky-300);
  outline-offset: 3px;
}
.consent-banner {
  position: fixed;
  z-index: 120;
  inset: auto 20px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  max-width: 1120px;
  margin-inline: auto;
  padding: 20px 24px;
  border: 1px solid var(--dm-sky-300);
  background: var(--dm-ink-950);
  color: var(--dm-ice-100);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.36);
}
.consent-banner[hidden] {
  display: none;
}
.consent-copy p {
  margin: 0;
  max-width: 70ch;
  color: var(--dm-sky-200);
  font-size: var(--fs-200);
  line-height: 1.5;
}
.consent-copy .consent-label,
.consent-label {
  margin-bottom: var(--space-2);
  color: var(--dm-sky-300);
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
}
.consent-copy a {
  color: var(--dm-ice-100);
  text-underline-offset: 3px;
}
.consent-actions,
.consent-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2) var(--space-3);
}
.consent-button,
.consent-link {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--dm-sky-300);
  border-radius: var(--radius-ui);
  background: transparent;
  color: var(--dm-ice-100);
  font: 500 var(--fs-200)/1.25 var(--font-mono);
  cursor: pointer;
}
.consent-accept {
  border-color: var(--dm-cyan-400);
  background: var(--dm-cyan-400);
  color: var(--dm-ink-950);
}
.consent-button:hover,
.consent-button:focus-visible,
.consent-link:hover,
.consent-link:focus-visible {
  outline: 2px solid var(--dm-ice-100);
  outline-offset: 2px;
}
.consent-link {
  border: 0;
  padding-inline: 8px;
  color: var(--dm-sky-200);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-dialog {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 1px solid var(--dm-sky-300);
  background: var(--dm-ink-950);
  color: var(--dm-ice-100);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.consent-dialog::backdrop {
  background: rgba(4, 20, 36, 0.78);
}
.consent-panel {
  padding: clamp(24px, 5vw, 40px);
}
.consent-panel h2 {
  margin: 0 0 var(--space-3);
  font: 750 var(--fs-500)/1.1 var(--font-display);
}
.consent-panel > p:not(.consent-label) {
  color: var(--dm-sky-200);
  line-height: 1.55;
}
.consent-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--dm-line-dark);
  cursor: pointer;
}
.consent-option strong,
.consent-option small {
  display: block;
}
.consent-option small {
  margin-top: 4px;
  color: var(--dm-sky-200);
  line-height: 1.4;
}
.consent-option input {
  width: 22px;
  height: 22px;
  flex: none;
  accent-color: var(--dm-cyan-400);
}
.consent-dialog-actions {
  justify-content: flex-start;
  margin-top: var(--space-4);
}
@media (max-width: 900px) {
  .consent-banner {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .consent-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 720px) {
  .consent-banner {
    inset: auto 12px 12px;
    padding: 16px;
  }
  .consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .consent-actions .consent-link {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 44px;
  }
  .consent-button {
    padding-inline: 9px;
    font-size: 12px;
  }
}

/* ---------- 15b. WhatsApp support (fixed on every page) ---------- */
.wa-float {
  position: fixed;
  right: 28px; /* inside the sheet frame line, which sits 14px from the edge */
  bottom: 24px;
  z-index: 80; /* under the frame (90), the collapsed menu (95) and the header (100) */
  border-color: var(--dm-ink-950);
}
.wa-float > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wa-float svg {
  flex: none;
}
@media (min-width: 721px) and (max-width: 800px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
    padding: 13px;
  }
  .wa-float .wa-label {
    display: none;
  }
}
/* The last footer row has to clear the button once the page ends. */
.site-footer {
  padding-bottom: calc(var(--space-5) + var(--wa-clear));
}
@media print {
  .wa-float {
    display: none;
  }
}

/* ---------- 16. Reveal (JS hook) ----------
   Content is visible by default; GSAP hides then reveals.
   No-JS / no-GSAP / reduced-motion: nothing to undo. */
section[id],
main {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .hero-figure {
    max-width: 420px;
    order: -1;
  }
  .contact .container {
    grid-template-columns: 1fr;
  }
  .step {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .step p {
    grid-column: 2;
  }
}
/* Five links stop fitting on one line below ~1170px (measured 01/10/2026), so the
   collapsible menu takes over here instead of letting the inline nav wrap. */
@media (max-width: 1200px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--dm-ink-950);
    border-bottom: 1px solid var(--dm-line-dark);
    padding: var(--space-3) var(--gutter) var(--space-5);
    transform: translateY(-110%);
    transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
    visibility: hidden;
  }
  .site-nav.open {
    transform: translateY(0);
    visibility: visible;
    border-bottom: 2px solid var(--dm-cyan-400);
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(4, 20, 36, 0.65);
  }
  .site-nav a:not(.btn) {
    padding: 14px 2px;
    font-size: var(--fs-300);
    border-bottom: 1px solid var(--dm-line-dark);
  }
  .client-menu {
    border-bottom: 1px solid var(--dm-line-dark);
  }
  .client-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 2px;
    font-size: var(--fs-300);
  }
  .client-panel {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--dm-cyan-400);
    border-radius: 0;
    margin: var(--space-2) 0 var(--space-3);
    padding: 6px 0 8px;
    background: var(--dm-ink-900);
  }
  .client-panel-label,
  .site-nav .client-panel a {
    padding-left: 22px;
    padding-right: 22px;
  }
  .site-nav .client-panel a {
    border-bottom: 0;
  }
  .site-nav .btn {
    margin-top: var(--space-4);
  }
  .nav-toggle {
    display: block;
  }
}
@media (max-width: 720px) {
  :root {
    --space-8: 72px;
    --space-9: 104px;
  }
  .frame {
    display: none;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .proof-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .title-block {
    grid-template-columns: minmax(0, 1fr);
  }
  .tb-cell,
  .tb-cell:nth-child(2n) {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--dm-line-dark);
  }
  .tb-cell:last-child {
    border-bottom: 0;
  }
  .tb-cell .value {
    overflow-wrap: anywhere;
  }
  .brand-name b {
    font-size: 13px;
  }
  /* 48px square with the glyph alone; the link is named by its aria-label */
  .wa-float {
    right: 16px;
    bottom: 16px;
    padding: 13px;
  }
  .wa-float .wa-label {
    display: none;
  }
}

/* ---------- 17b. Rails ----------
   Alan's rule for every site: cards never stack on small screens, they swipe.
   Below 960px each .rail grid becomes one snap-scrolling row that bleeds to the
   screen edges; js/main.js adds the diamonds under it. */
@media (max-width: 960px) {
  .rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 22rem);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) var(--space-3);
    scroll-padding-inline: var(--gutter);
  }
  .rail::-webkit-scrollbar {
    display: none;
  }
  .rail > * {
    scroll-snap-align: start;
  }
}
.rail-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-2);
}
.rail-dots i {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--text-2);
  opacity: 0.35;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.rail-dots i.is-on {
  background: var(--accent);
  opacity: 1;
}
@media (min-width: 961px) {
  .rail-dots {
    display: none;
  }
}

/* ---------- 18. Reduced motion ---------- */
@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Service pages (/web-design/, /app-development/, /website-hosting/, /local-seo/)
   Same tokens as the home; only the short cover, grids and FAQ.
   ============================================================ */
.faq-list {
  margin-top: var(--space-6);
  border-top: 1px solid var(--line);
  max-width: 900px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-400);
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 0 var(--space-4);
  max-width: 70ch;
  color: var(--text-2);
}
.faq-a a {
  color: var(--accent);
}
.svc-hero {
  min-height: auto;
  padding: calc(var(--header-h) + var(--space-7)) 0 var(--space-8);
}
.svc-hero .hero-figure svg {
  max-width: 420px;
  margin-inline: auto;
  display: block;
}
.crumbs {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dm-sky-200);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}
.crumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.crumbs a:hover {
  border-bottom-color: currentColor;
}
.svc-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
/* Desktop only: below 960px the .rail rule turns the grid into a swipe row (cards never stack) */
@media (min-width: 961px) {
  .svc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.svc-grid ul {
  margin: var(--space-3) 0 0;
  padding-left: 1.1em;
  color: var(--text-2);
}
.svc-grid .service-card h3 {
  font-size: var(--fs-400);
}
.svc-price {
  margin: var(--space-3) 0;
  color: var(--text-2);
  font-family: var(--font-mono);
  line-height: 1.8;
}
.svc-price strong {
  color: var(--text);
}
.svc-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.service-card .svc-link {
  display: table;
}
.svc-link::after {
  content: " →";
}
.work-more a {
  color: var(--accent);
}
.svc-more {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-self: start;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.svc-more .label {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.svc-more a {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: var(--fs-400);
  color: var(--text);
  text-decoration: none;
}
.svc-more a:hover {
  color: var(--accent);
}
@media (max-width: 720px) {
  .svc-hero {
    padding-top: calc(var(--header-h) + var(--space-5));
  }
}
/* The sheet label does not inherit the large contact body text */
.contact-info .sheet-label {
  font-size: var(--fs-100);
  max-width: none;
}
.contact-info .hero-cta {
  margin-top: var(--space-5);
}
/* On a phone the cover drawing pushed the h1 below the fold */
@media (max-width: 1024px) {
  .svc-hero .hero-figure {
    display: none;
  }
}

/* ---------- Selected work: masonry, 20 at a time + "See more" (same as designmaster.com.br, 19/10/2026).
   main.js sets each card's row span from its height; without JS it is a plain grid with every card shown. ---------- */
.work-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.work-masonry.is-masonry {
  grid-auto-rows: 8px;
  row-gap: 0;
}
.work-masonry > .work-card {
  align-self: start;
}
.work-masonry > .work-card[hidden] {
  display: none;
}
.work-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}
.work-stats b {
  display: block;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: var(--fs-400);
  line-height: 1;
  color: var(--text);
}
.work-stats span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.rail-count {
  min-width: 9ch;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.work-more {
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.work-filters {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.work-filters + .work-masonry {
  margin-top: var(--space-5);
}
.work-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.work-filter-label {
  min-width: 9ch;
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-200);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.chip small {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  color: var(--text-2);
}
.chip:hover {
  border-color: var(--accent);
}
.chip[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}
.chip[aria-pressed="true"] small {
  color: inherit;
  opacity: 0.7;
}
.work-more-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
@media (max-width: 1024px) {
  .work-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .work-masonry {
    grid-template-columns: minmax(0, 1fr);
  }
  /* phone: each chip row swipes sideways instead of wrapping into a wall of pills */
  .work-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .work-filter::-webkit-scrollbar {
    display: none;
  }
  .work-filter-label {
    min-width: auto;
  }
}

/* One-column layout (phone and tablet): the cover drawing filled the first screen and pushed the
   offer below the fold (24/10/2026), so the copy comes first and the drawing follows, smaller */
@media (max-width: 1024px) {
  .hero-figure {
    order: 1;
    max-width: min(320px, 70vw);
    margin-inline: auto;
  }
}
/* Buttons never stack: below 560px (iPhone Pro Max is 430, 25/10) the first stays a button and the next ones become text links on
   the same line, with the phone number dropped from the label (the link still dials/opens it) */
@media (max-width: 560px) {
  .hero-cta {
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-4);
  }
  .hero-cta .btn {
    white-space: nowrap;
    padding-inline: 20px;
  }
  .hero-cta .btn + .btn {
    min-height: 44px;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .hero-cta .btn + .btn::after {
    content: none;
  }
  .btn-num {
    display: none;
  }
}

/* Phone: the cases swipe sideways (next card peeks in), instead of one long column. Row spans from main.js are ignored by flex. */
@media (max-width: 640px) {
  .work-masonry,
  .work-masonry.is-masonry {
    display: flex;
    gap: var(--space-3, 12px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter, 20px));
    padding-inline: var(--gutter, 20px);
    scroll-padding-inline: var(--gutter, 20px);
    padding-bottom: var(--space-2, 8px);
  }
  .work-masonry::-webkit-scrollbar {
    display: none;
  }
  .work-masonry > .work-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    align-self: stretch;
    margin: 0;
  }
  .work-masonry > .work-card[hidden] {
    display: none;
  }
}

/* Store buttons for the client app (01/11/2026, same pattern as designmaster.com.br); icons Font Awesome Free, CC BY 4.0 */
.footer-apps {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.footer-apps .label {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.footer-apps .stores { display: flex; flex-wrap: nowrap; gap: 8px; }
.footer-apps .store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}
.footer-apps .store::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--store-ico) center / contain no-repeat;
  mask: var(--store-ico) center / contain no-repeat;
}
.footer-apps .store[data-store="apple"] { --store-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 384 512%22%3E%3Cpath d=%22M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z%22/%3E%3C/svg%3E"); }
.footer-apps .store[data-store="play"] { --store-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 512 512%22%3E%3Cpath d=%22M325.3 234.3L104.6 13l280.8 161.2-60.1 60.1zM47 0C34 6.8 25.3 19.2 25.3 35.3v441.3c0 16.1 8.7 28.5 21.7 35.3l256.6-256L47 0zm425.2 225.6l-58.9-34.1-65.7 64.5 65.7 64.5 60.1-34.1c18-14.3 18-46.5-1.2-60.8zM104.6 499l280.8-161.2-60.1-60.1L104.6 499z%22/%3E%3C/svg%3E"); }
.footer-apps .store:hover { background: #262626; }
.footer-apps .store:active { transform: scale(0.97); }
.footer-apps .store:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
