/* =========================================================
   Towards Buildings Maintenance — one-page site
   Palette is pulled from the client's own site videos:
   ochre/terracotta textured facade, gypsum ivory, and the
   espresso shadow of timber and cable trays. The stepped
   "crenel" divider copies the parapet on that facade.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-900: #17130F;
  --brand-800: #241D17;
  --brand-700: #8A5226;
  --brand-600: #A8672F;
  --brand-100: #F1E5D4;
  --brand-50: #FBF7F1;
  --accent: #E0A864;
  --accent-soft: #F4D9B2;
  --white: #FFFFFF;
  --ink: #1E1812;
  --body: #54483D;
  --muted: #6E6155;
  --line: #E7DCCD;
  --wa: #0E7A40;
  --wa-deep: #0A5F31;

  --on-dark: #F7EFE4;
  --on-dark-soft: #C9BBA9;
  --glass: rgba(247, 239, 228, .1);
  --glass-line: rgba(247, 239, 228, .26);
  --shade-strong: rgba(23, 19, 15, .94);
  --shade-mid: rgba(23, 19, 15, .7);
  --shade-soft: rgba(23, 19, 15, .18);
  --shade-cap: rgba(23, 19, 15, .8);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* 1.25 type scale */
  --fs-xs: .8rem;
  --fs-sm: .9rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.06rem, 1rem + .3vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.12rem + .6vw, 1.56rem);
  --fs-xl: clamp(1.9rem, 1.45rem + 2vw, 2.9rem);
  --fs-2xl: clamp(2.35rem, 1.6rem + 3.6vw, 4.3rem);

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(30, 24, 18, .06);
  --shadow-md: 0 14px 32px -12px rgba(30, 24, 18, .22);
  --shadow-lg: 0 30px 60px -22px rgba(30, 24, 18, .4);
  --wrap: 1200px;
  --gutter: 16px;
  --sec: 66px;
  --hdr: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* stepped parapet (Najdi style), used as a mask */
  --crenel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cpath d='M0 0h32v4h-4v4h-4v4h-4v4h-8v-4H8V8H4V4H0z'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--body);
  background: var(--brand-50);
  -webkit-font-smoothing: antialiased;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--brand-700);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

.sprite {
  position: absolute;
  inline-size: 0;
  block-size: 0;
  overflow: hidden;
}

.ic {
  inline-size: 20px;
  block-size: 20px;
  flex: none;
}

.wrap {
  inline-size: 100%;
  max-inline-size: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--brand-900);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  inset-block-start: 12px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 700 var(--fs-sm)/1.2 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  min-block-size: 54px;
  padding: 14px 26px;
  font-size: var(--fs-base);
}

.btn-wa {
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 10px 24px -10px var(--wa);
}

.btn-wa:hover {
  background: var(--wa-deep);
}

.btn-ghost {
  color: var(--on-dark);
  border-color: var(--glass-line);
  background: var(--glass);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

/* ---------- header ---------- */
.hdr {
  position: sticky;
  inset-block-start: 0;
  z-index: 70;
  background: var(--brand-900);
  border-block-end: 1px solid var(--glass);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 16px;
  block-size: var(--hdr);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-inline-end: auto;
}

.brand-mark {
  inline-size: 44px;
  block-size: 44px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--glass-line);
}

.brand-txt {
  display: grid;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: .01em;
}

.brand-sub {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* mobile menu: drawer slides in from the left, burger stays on the right */
.nav {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  inline-size: min(80vw, 320px);
  padding: 0 var(--gutter) calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--brand-900);
  border-inline-end: 1px solid var(--glass);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility .35s;
}

[dir="rtl"] .nav {
  transform: translateX(100%);
}

.nav.open {
  transform: none;
  visibility: visible;
}

.nav-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-block-size: var(--hdr);
  margin-block-end: 8px;
  border-block-end: 1px solid var(--glass);
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--on-dark);
}

.nav-head img {
  border-radius: 10px;
}

.nav > a {
  padding: 14px 4px;
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
  border-block-end: 1px solid var(--glass);
}

.nav-foot {
  display: grid;
  gap: 10px;
  margin-block-start: auto;
  padding-block-start: 24px;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--shade-mid);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}

.nav.open + .nav-scrim {
  opacity: 1;
  visibility: visible;
}

html.menu-open {
  overflow: hidden;
}

.nav > a:hover,
.nav > a.active {
  color: var(--accent);
}

.hdr-cta {
  display: none;
}

.burger {
  position: relative;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 5px;
  inline-size: 48px;
  block-size: 48px;
  padding: 0;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  inline-size: 20px;
  block-size: 2px;
  border-radius: 2px;
  background: var(--on-dark);
  transition: transform .25s var(--ease), opacity .2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-block-size: min(calc(100svh - var(--hdr)), 820px);
  padding-block: 72px 40px;
  background: var(--brand-900);
  color: var(--on-dark);
  overflow: hidden;
}

.hero-bg,
.hero-bg img,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-shade {
  background:
    linear-gradient(180deg, var(--shade-soft) 0%, var(--shade-mid) 42%, var(--shade-strong) 78%);
}

.hero-in {
  display: grid;
  gap: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.dot {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--glass);
}

.hero h1 {
  font-size: var(--fs-2xl);
  color: var(--on-dark);
  max-inline-size: 13ch;
  line-height: 1.04;
}

.hero h1 em {
  color: var(--accent);
}

.hero-sub {
  max-inline-size: 36rem;
  font-size: var(--fs-md);
  color: var(--on-dark-soft);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pills li {
  padding: 7px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--on-dark);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 8px;
}

.cta-row .btn {
  flex: 1 1 220px;
}

/* ---------- facts strip ---------- */
.facts {
  background: var(--brand-800);
  color: var(--on-dark-soft);
  border-block-start: 1px solid var(--glass);
}

.facts-in {
  display: grid;
  gap: 0;
  padding-block: 8px;
}

.facts li {
  display: grid;
  gap: 2px;
  padding-block: 14px;
  border-block-end: 1px solid var(--glass);
  font-size: var(--fs-sm);
}

.facts li:last-child {
  border: 0;
}

.facts strong {
  font-family: var(--serif);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--accent);
}

/* ---------- sections ---------- */
.sec {
  padding-block: var(--sec);
}

.sec-head {
  display: grid;
  gap: 14px;
  margin-block-end: 40px;
  max-inline-size: 40rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.kicker::before {
  content: "";
  inline-size: 28px;
  block-size: 2px;
  background: currentColor;
}

.sec h2 {
  font-size: var(--fs-xl);
}

.sec-intro {
  font-size: var(--fs-md);
}

/* ---------- services ---------- */
.svc-grid {
  display: grid;
  gap: 16px;
}

.svc {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 8px 16px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

.svc::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  block-size: 3px;
  background: linear-gradient(90deg, var(--brand-700), var(--accent));
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.svc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}

.svc:hover::before {
  transform: scaleX(1);
}

.svc-no {
  position: absolute;
  inset-inline-end: 18px;
  inset-block-start: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--brand-100);
}

.svc-ic {
  grid-row: span 3;
  inline-size: 48px;
  block-size: 48px;
  padding: 9px;
  border-radius: 14px;
  background: var(--brand-100);
  color: var(--brand-700);
}

.svc h3 {
  font-size: var(--fs-lg);
  padding-inline-end: 48px;
}

.svc h3,
.svc p,
.svc-link {
  grid-column: 2;
}

.svc-cta {
  background: var(--brand-900);
  border-color: var(--brand-900);
  color: var(--on-dark-soft);
  text-decoration: none;
}

.svc-cta h3 {
  color: var(--on-dark);
}

.svc-cta .svc-ic {
  background: var(--wa);
  color: var(--white);
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 4px;
  font-weight: 700;
  color: var(--accent);
}

.svc-cta:hover .svc-link .ic {
  transform: translateX(4px);
}

.svc-link .ic {
  transition: transform .3s var(--ease);
}

/* ---------- work ---------- */
.work {
  background: var(--white);
}

.work-grid {
  columns: 2;
  column-gap: 12px;
}

.tile {
  position: relative;
  break-inside: avoid;
  margin-block-end: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-100);
}

.tile img,
.tile video {
  inline-size: 100%;
  transition: transform .8s var(--ease);
}

.tile video {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--brand-800);
}

.tile:hover img {
  transform: scale(1.04);
}

.clip-poster {
  position: absolute;
  inset: 0;
  block-size: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}

.tile-video.started .clip-poster {
  opacity: 0;
}

.tile figcaption {
  position: absolute;
  inset-inline: 8px;
  inset-block-end: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--shade-cap);
  color: var(--on-dark);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.35;
}

.tile-video figcaption {
  inset-block: 8px auto;
}

.clip-btn {
  position: absolute;
  inset-inline-end: 8px;
  inset-block-end: 8px;
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--brand-900);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.clip-btn .ic-pause,
.tile-video.is-playing .clip-btn .ic-play {
  display: none;
}

.tile-video.is-playing .clip-btn .ic-pause {
  display: block;
}

/* ---------- process ---------- */
.process {
  position: relative;
  background: var(--brand-900);
  color: var(--on-dark-soft);
  padding-block-start: calc(var(--sec) + 16px);
}

.process h2,
.process h3 {
  color: var(--on-dark);
}

.process h2 em {
  color: var(--accent);
}

.process .kicker {
  color: var(--accent);
}

.crenel {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  block-size: 16px;
  background: var(--white);
  -webkit-mask: var(--crenel) repeat-x 0 0 / 32px 16px;
  mask: var(--crenel) repeat-x 0 0 / 32px 16px;
}

.crenel-light {
  background: var(--brand-50);
}

.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 28px 24px;
  border: 1px solid var(--glass);
  border-radius: var(--radius);
  background: var(--brand-800);
}

.step-no {
  display: grid;
  place-items: center;
  inline-size: 52px;
  block-size: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
}

.step h3 {
  font-size: var(--fs-lg);
}

.process-cta {
  margin-block-start: 32px;
}

/* ---------- ideas ---------- */
.ideas {
  background: var(--brand-100);
}

.sec-head-split {
  max-inline-size: none;
}

.ideas-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-block-end: 14px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: thin;
  scrollbar-color: var(--brand-700) transparent;
}

.ideas-rail:focus-visible {
  outline-offset: -3px;
}

.idea {
  position: relative;
  flex: none;
  block-size: 280px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.idea img {
  block-size: 100%;
  inline-size: auto;
  max-inline-size: 82vw;
  object-fit: cover;
}

.idea-tall img {
  inline-size: 200px;
}

.idea figcaption {
  position: absolute;
  inset-inline-start: 10px;
  inset-block-end: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--shade-cap);
  color: var(--on-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.ideas-note {
  margin-block-start: 12px;
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ---------- contact ---------- */
.contact-in {
  display: grid;
  gap: 32px;
}

.contact-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.area {
  display: flex;
  gap: 14px;
  margin-block-start: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.area .ic {
  inline-size: 24px;
  block-size: 24px;
  color: var(--brand-700);
  margin-block-start: 2px;
}

.area strong {
  display: block;
  color: var(--ink);
}

.area span {
  font-size: var(--fs-sm);
}

.cards {
  display: grid;
  gap: 12px;
}

.card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.card .ic {
  grid-row: span 2;
  inline-size: 48px;
  block-size: 48px;
  padding: 12px;
  border-radius: 12px;
  background: var(--brand-100);
  color: var(--brand-700);
}

.card-lbl {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-val {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.card-val-sm {
  font-size: var(--fs-md);
  overflow-wrap: anywhere;
}

.card-wa {
  background: var(--wa);
  border-color: var(--wa);
}

.card-wa .ic {
  background: var(--white);
  color: var(--wa);
}

.card-wa .card-lbl,
.card-wa .card-val {
  color: var(--white);
}

.card-wa:hover {
  border-color: var(--wa-deep);
  background: var(--wa-deep);
}

/* ---------- footer ---------- */
.foot {
  position: relative;
  background: var(--brand-900);
  color: var(--on-dark-soft);
  padding-block: 64px calc(32px + 64px + env(safe-area-inset-bottom));
  font-size: var(--fs-sm);
}

.foot-in {
  display: grid;
  gap: 28px;
}

.foot-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.foot-brand img {
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--glass-line);
}

.foot-name {
  font-family: var(--serif);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--on-dark);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.foot-nav a {
  display: inline-block;
  padding-block: 10px;
  color: var(--on-dark);
  text-decoration: none;
}

.foot-nav a:hover {
  color: var(--accent);
}

.foot-copy {
  padding-block-start: 20px;
  border-block-start: 1px solid var(--glass);
}

/* ---------- floating + mobile bar ---------- */
.fab {
  display: none;
}

.mbar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: var(--brand-900);
  border-block-start: 1px solid var(--glass);
}

.mbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 48px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.mbar-call {
  color: var(--on-dark);
  border: 1.5px solid var(--glass-line);
}

.mbar-wa {
  background: var(--wa);
  color: var(--white);
}

/* ---------- reveal ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }

  .facts-in {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .facts li {
    border: 0;
  }

  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 24px;
  }

  .svc-ic {
    grid-row: auto;
    inline-size: 52px;
    block-size: 52px;
    padding: 10px;
  }

  .svc h3,
  .svc p,
  .svc-link {
    grid-column: auto;
  }

  .svc-no {
    font-size: 2.4rem;
    inset-inline-end: 20px;
    inset-block-start: 14px;
  }

  .svc-cta {
    grid-column: span 2;
  }

  .tile figcaption {
    font-size: var(--fs-xs);
  }

  .tile-video figcaption {
    inset-block: auto 8px;
    inset-inline-end: 64px;
  }

  .card:last-child {
    grid-column: 1 / -1;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .idea {
    block-size: 340px;
  }

  .idea-tall img {
    inline-size: 240px;
  }

  .cta-row .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 768px) {
  :root {
    --sec: 88px;
  }

  .foot {
    padding-block-end: 32px;
  }

  .mbar {
    display: none;
  }

  .fab {
    position: fixed;
    inset-inline-end: 24px;
    inset-block-end: 24px;
    z-index: 60;
    display: grid;
    place-items: center;
    inline-size: 60px;
    block-size: 60px;
    border-radius: 50%;
    background: var(--wa);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: transform .3s var(--ease);
  }

  .fab:hover {
    transform: scale(1.08);
  }

  .fab .ic {
    inline-size: 30px;
    block-size: 30px;
  }

  .hero {
    align-items: center;
    padding-block: 96px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, var(--shade-strong) 0%, var(--shade-mid) 48%, var(--shade-soft) 100%);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .sec-head-split {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 32px;
  }
}

@media (min-width: 1000px) {
  .burger {
    display: none;
  }

  .nav {
    position: static;
    flex-direction: row;
    gap: 4px;
    inline-size: auto;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
    visibility: visible;
    transform: none;
    transition: none;
    margin-inline-end: 12px;
  }

  [dir="rtl"] .nav {
    transform: none;
  }

  .nav-head,
  .nav-foot,
  .nav-scrim {
    display: none;
  }

  .nav > a {
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    font-size: var(--fs-sm);
  }

  .nav > a:hover,
  .nav > a.active {
    background: var(--glass);
  }

  .hdr-cta {
    display: inline-flex;
  }

  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .svc-cta {
    grid-column: span 3;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 24px;
  }

  .svc-cta .svc-ic {
    grid-row: span 2;
  }

  .svc-cta h3,
  .svc-cta p {
    grid-column: 2;
  }

  .svc-cta .svc-link {
    grid-row: 1 / span 2;
    grid-column: 3;
  }

  .work-grid {
    columns: 3;
    column-gap: 16px;
  }

  .tile {
    margin-block-end: 16px;
  }

  .contact-in {
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: start;
  }

  .foot-in {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .foot-nav {
    justify-content: flex-end;
  }

  .foot-copy {
    grid-column: 1 / -1;
  }

  .idea {
    block-size: 380px;
  }

  .idea-tall img {
    inline-size: 260px;
  }
}

@media (min-width: 1280px) {
  .hero h1 {
    max-inline-size: 14ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .js .rv {
    opacity: 1;
    transform: none;
  }
}
