/* Azyronix — azyronix.com
   Warm off-white ground, charcoal text, one lime accent. Manrope + Caveat, self-hosted. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-v2.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/caveat-v2.woff2') format('woff2');
}

/* Registered so they can transition: a mouse wheel scrolls in steps, the transition glides between them. */
@property --t { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --h { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  /* --t is "nightness", 0..1, set by main.js as you scroll. Every page colour is a mix of its day and night value. */
  --t: 0;
  --h: 0; /* hero photo nightness, runs ahead of --t */
  transition: --t .9s ease-out, --h .7s ease-out;
  --p: calc(var(--t) * 100%);
  /* Text does NOT fade through the middle (mid-grey on mid-grey is unreadable). It holds dark until the
     background has darkened enough, then flips to cream inside a narrow window of --t (0.55 → 0.61). */
  --pi: clamp(0%, calc((var(--t) - 0.55) / 0.06 * 100%), 100%);
  --bg-day: #F5F4F1;   --bg-night: #101418;
  --ink-day: #111111;  --ink-night: #F5F4F1;
  --ink2-day: #3A3A36; --ink2-night: #C9C9C4;
  --ink3-day: #5A5A55; --ink3-night: #A9A9A4;
  --mut-day: #6B6B66;  --mut-night: #8A8F99;
  --line-day: #DDDBD5; --line-night: #2A3038;
  --bg: color-mix(in oklab, var(--bg-day), var(--bg-night) var(--p));
  --ink: color-mix(in oklab, var(--ink-day), var(--ink-night) var(--pi));
  --ink-2: color-mix(in oklab, var(--ink2-day), var(--ink2-night) var(--pi));
  --ink-3: color-mix(in oklab, var(--ink3-day), var(--ink3-night) var(--pi));
  --muted: color-mix(in oklab, var(--mut-day), var(--mut-night) var(--pi));
  --line: color-mix(in oklab, var(--line-day), var(--line-night) var(--pi));
  --bg-92: color-mix(in srgb, var(--bg) 92%, transparent);
  --bg-60: color-mix(in srgb, var(--bg) 60%, transparent);
  --bg-40: color-mix(in srgb, var(--bg) 40%, transparent);
  --bg-25: color-mix(in srgb, var(--bg) 25%, transparent);
  --bg-15: color-mix(in srgb, var(--bg) 15%, transparent);
  --bg-0: color-mix(in srgb, var(--bg) 0%, transparent);
  --accent: #C9F236;
  --peach: #E8907C;
  --peach-bg: #F3E4DC;
  --green: #2F5D46;
  --dark: #0E0E0E;
  --font: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
  --gutter: 64px;
  --max: 1440px;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

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

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}
.eyebrow--sm { font-size: 10px; }
.eyebrow--muted { color: #A9A9A4; }
.eyebrow--light { color: #F5F4F1; }
.eyebrow--peach { color: var(--peach); }
.eyebrow--green { color: var(--green); }
.row { display: flex; gap: 14px; align-items: center; }

h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
h3 { font-size: 17px; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: color-mix(in oklab, var(--ink) 86%, var(--bg)); }
.btn--outline { border: 1px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { border: 1px solid #fff; color: #fff; padding: 11px 18px; font-size: 13px; }
.btn--ghost:hover { background: #fff; color: #111111; }
.btn--accent { background: var(--accent); color: #111111; padding: 11px 18px; font-size: 13px; font-weight: 700; }
.btn--accent:hover { background: #D8F85C; }
/* Sits on the fixed sage Roof Routine card, so its colours are fixed too, not day/night tokens. */
.btn--roof { background: var(--green); color: #FFFFFF; padding: 11px 18px; font-size: 13px; align-self: flex-start; }
.btn--roof:hover { background: #244937; }

.arrow { position: relative; width: 16px; height: 16px; flex: none; }
.arrow::before {
  content: '';
  position: absolute; inset: 0;
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='M13 5l7 7-7 7'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='M13 5l7 7-7 7'/></svg>") center / contain no-repeat;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--ink);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  align-self: end;
}
.link-arrow:hover { color: var(--ink-3); border-color: var(--ink-3); }

/* Nav */
.nav { position: relative; z-index: 10; }
.nav__inner { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; padding-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 24px; }
.brand__word { font-size: 20px; font-weight: 800; letter-spacing: 0.32em; }
.brand__tag { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.brand--sm .brand__word { font-size: 16px; }
.brand--sm .brand__tag { font-size: 9px; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--ink-3); }
.nav__cta { margin-left: 8px; padding: 14px 24px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .2s ease; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__img { position: absolute; inset: 0; display: block; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: right 55%; }
.hero__img--night { opacity: var(--h); }
.hero__fade-x {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 22%, var(--bg-92) 30%, var(--bg-60) 40%, var(--bg-25) 50%, var(--bg-0) 60%);
}
.hero__fade-y {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-60) 0%, var(--bg-15) 18%, var(--bg-0) 32%, var(--bg-0) 82%, var(--bg-40) 100%);
}
.hero__clock { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: -8px; }
.hero__clock .eyebrow { color: var(--ink-2); }
.mode-toggle {
  border: 0; background: transparent; padding: 0; cursor: pointer;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--ink); line-height: 1.6;
}
.mode-toggle:hover { color: var(--ink-3); border-color: var(--ink-3); }
.hero__inner { position: relative; min-height: 560px; display: flex; align-items: center; }
.hero__copy { max-width: 520px; display: flex; flex-direction: column; gap: 32px; padding: 40px 0 64px; }
.hero__copy p { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 460px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__labels {
  position: absolute; top: 60px; right: var(--gutter);
  display: flex; flex-direction: column; gap: 22px; align-items: flex-end; text-align: right;
}
.hero__labels .eyebrow { color: var(--ink-2); }
.hero__hand {
  position: absolute; right: calc(var(--gutter) + 8px); bottom: 44px;
  font-family: var(--hand); font-size: 30px; line-height: 1.05; color: #fff; text-align: right;
  transform: rotate(-6deg); text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

/* Sections */
.section { padding: 64px 0 72px; }
.section--tight { padding-top: 24px; }
.section__head {
  display: grid; grid-template-columns: 420px minmax(0, 1fr) auto; gap: 48px; align-items: end;
  margin-bottom: 36px;
}
.section__head > div { display: flex; flex-direction: column; gap: 14px; }
.section__head > p { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 460px; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; min-height: 470px; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.card--dark { background: var(--dark); color: #FFFFFF; }
.card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card--roxmatch { background: radial-gradient(120% 90% at 85% 100%, #2A2A22 0%, #121212 55%, #0A0A0A 100%); }
.card--ebm .card__bg { opacity: .9; object-position: 72% center; }
.card--ebm::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,8,.94) 0%, rgba(8,8,8,.7) 48%, rgba(8,8,8,.12) 100%);
}
.card--ebm .card__body { padding-right: 96px; }
.card__body { position: relative; height: 100%; min-height: inherit; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.card__top { display: flex; flex-direction: column; gap: 18px; }
.card--dark .eyebrow { color: #A9A9A4; }
.card__title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: -8px; }
.card__title--rox { letter-spacing: 0.02em; }
.card__lead { font-size: 16px; font-weight: 500; margin-top: -10px; }
.card__text { font-size: 14px; line-height: 1.5; color: #C9C9C4; max-width: 250px; margin-top: -10px; }
.card--roof .card__text { color: #4A5A50; }
.rox-slash { display: block; width: 6px; height: 30px; background: #FFED00; transform: skewX(-18deg); }

.card__bottom { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
/* Small text link under the store badges; fixed colours, it sits on the fixed dark card. */
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .03em; color: #C9C9C4;
  padding-bottom: 3px; border-bottom: 1px solid rgba(255, 255, 255, .28);
}
.card__link:hover { color: #FFFFFF; border-bottom-color: #FFFFFF; }
.card__link .arrow { width: 12px; height: 12px; }
.badges { display: flex; gap: 5px; flex-wrap: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 8px; background: #111111; border: 1px solid #3A3A3A; border-radius: 8px;
  color: #FFFFFF; font-size: 10.5px; font-weight: 600;
}
.badge:hover { border-color: #777; }
.badge svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.badge__play path:nth-child(1) { fill: #34A853; }
.badge__play path:nth-child(2) { fill: #FBBC04; }
.badge__play path:nth-child(3) { fill: #EA4335; }
.badge__play path:nth-child(4) { fill: #4285F4; }

.card--roof { background: linear-gradient(160deg, #E9EDE4 0%, #DDE4D8 100%); color: #111111; }
.card--roof .eyebrow { color: #66716A; }
.card--roof .eyebrow--green { color: var(--green); }
.card__body--phone { padding-right: 186px; }
.roof-icon { display: flex; width: 40px; height: 40px; border-radius: 11px; background: var(--green); align-items: center; justify-content: center; }
.roof-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phone {
  position: absolute; right: 18px; bottom: -44px; width: 160px; height: 340px;
  background: var(--ink); border-radius: 26px; padding: 7px; box-shadow: 0 18px 34px rgba(0,0,0,.25);
}
.phone__screen { height: 100%; background: #fff; border-radius: 20px; padding: 20px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.phone__title { font-size: 12px; font-weight: 700; text-align: center; }
.phone__list { display: flex; flex-direction: column; gap: 7px; }
.phone__list li { display: flex; justify-content: space-between; align-items: center; padding: 7px 8px; border: 1px solid #ECE8E3; border-radius: 8px; font-size: 9px; }
.phone__list i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #C9C4BF; }
.phone__list i.done { background: var(--peach); border-color: var(--peach); }
.phone__cta { margin-top: auto; padding: 9px; border-radius: 8px; background: var(--peach); color: #fff; font-size: 9px; font-weight: 700; text-align: center; }
.phone__cta--green { background: var(--green); }
.phone__screen--img { padding: 0; overflow: hidden; background: #0E0E0E; }
.phone__screen--img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* ROXMATCH: the whole phone stays inside the card, so nothing of the app is cut off. */
.phone--rox { width: 186px; height: 400px; right: 10px; bottom: -70px; }
.card--roxmatch .card__body--phone { padding-right: 194px; }
.phone__screen--roof { background: #FAFBF8; }
.phone__screen--roof .phone__title { text-align: left; font-size: 11px; color: #1E2A24; }
.phone__screen--roof .phone__list li { border-color: #E3E8E0; }
.phone__list em { font-style: normal; font-size: 8px; font-weight: 700; color: var(--green); }
.phone__list li.is-done span { text-decoration: line-through; color: #9AA39C; }
.phone__ask { display: flex; flex-direction: column; gap: 4px; padding: 9px; border-radius: 10px; background: #EAF0E7; }
.phone__q { font-size: 8.5px; font-weight: 600; color: #1E2A24; line-height: 1.35; }
.phone__a { font-size: 8.5px; color: var(--green); line-height: 1.35; }

.ebm-mark { display: flex; width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(255,255,255,.35); align-items: center; justify-content: center; }
.ebm-mark svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card__title--ebm { font-size: 42px; letter-spacing: -0.02em; line-height: 1; }
.ebm-side { position: absolute; right: 24px; top: 26px; bottom: 26px; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 14px; }
.ebm-side__rule { display: block; width: 1px; height: 64px; background: rgba(255,255,255,.4); }
.ebm-side__text { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #D9D8D2; text-align: right; line-height: 1.9; }
.card--ebm .btn { align-self: flex-start; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service { display: flex; flex-direction: column; gap: 22px; padding: 8px 32px; border-left: 1px solid var(--line); }
.service:first-child { padding-left: 0; border-left: 0; }
.service:last-child { padding-right: 0; }
.service svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-bottom: 8px; }
.service p { font-size: 14px; line-height: 1.55; color: var(--ink-3); }

/* Belief band — the "arrived" moment: full-bleed panorama in the state the scroll was heading to.
   Day mode (default): the city at night. Night mode: the city at dawn. */
.belief { position: relative; overflow: hidden; background: #101418; color: #F5F4F1; }
.belief__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.belief__bg--day { display: none; }
.belief::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,20,24,.9) 0%, rgba(16,20,24,.55) 45%, rgba(16,20,24,.1) 100%);
}
.belief__inner { position: relative; min-height: 360px; display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.belief__inner > div { display: flex; flex-direction: column; gap: 14px; }
.belief__side p { font-size: 16px; line-height: 1.55; color: #D9D8D2; }
.belief__rule { display: block; width: 28px; height: 1px; background: var(--accent); }
.is-night .belief { background: #F5F4F1; color: #111111; }
.is-night .belief__bg--night { display: none; }
.is-night .belief__bg--day { display: block; }
.is-night .belief::before { background: linear-gradient(90deg, rgba(245,244,241,.92) 0%, rgba(245,244,241,.6) 45%, rgba(245,244,241,.1) 100%); }
.is-night .belief .eyebrow--muted { color: #5A5A55; }
.is-night .belief__side p { color: #3A3A36; }

/* Project tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; min-height: 240px; border-radius: 16px; overflow: hidden; }
.tile--photo { background: var(--dark); color: #fff; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.tile--photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,0) 30%, rgba(14,14,14,.9) 100%); }
.tile__caption { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.tile__caption strong { font-size: 16px; font-weight: 600; }
.tile--grid {
  color: #111111;
  background-color: #E7E4DD;
  background-image: linear-gradient(#D6D2C9 1px, transparent 1px), linear-gradient(90deg, #D6D2C9 1px, transparent 1px);
  background-size: 24px 24px;
}
.tile--cta { background: color-mix(in oklab, #FFFFFF, #1A1F27 var(--p)); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tile--cta > div { display: flex; flex-direction: column; gap: 6px; }
.tile--cta strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.tile--cta .btn { align-self: flex-start; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 420px minmax(0, 1fr) auto; gap: 48px; align-items: center; padding-top: 28px; padding-bottom: 36px; }
.footer__mid { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 28px; font-size: 13px; font-weight: 500; }
.footer__social { display: flex; gap: 16px; }
.footer__social svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__copy { font-size: 12px; color: var(--muted); }
.footer__copy a:hover { color: var(--ink); }
.footer__legal { display: flex; gap: 20px; font-size: 12px; color: var(--muted); }
.footer__legal a:hover { color: var(--ink); }

/* Contact dialog — fixed light surface, independent of day/night */
.contact {
  border: 0; padding: 0; margin: auto; max-width: 640px; width: calc(100% - 32px);
  background: #F5F4F1; color: #111111; border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.contact::backdrop { background: rgba(10,12,16,.55); backdrop-filter: blur(4px); }
.contact__form { position: relative; padding: 40px 44px 36px; display: flex; flex-direction: column; gap: 14px; }
.contact__form h2 { font-size: 30px; margin-top: 4px; }
.contact__form .eyebrow { color: #6B6B66; }
.contact__intro { font-size: 15px; color: #3A3A36; margin-bottom: 8px; }
.contact__close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.contact__close:hover { background: #E6E4DE; }
.contact__close svg { width: 18px; height: 18px; fill: none; stroke: #111111; stroke-width: 2; stroke-linecap: round; }
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field span { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #3A3A36; }
.field em { font-style: normal; font-weight: 500; color: #8A8A85; }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: #111111; background: #FFFFFF;
  border: 1px solid #D6D3CC; border-radius: 10px; padding: 12px 14px; min-height: 44px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 0; border-color: #111111; box-shadow: 0 0 0 3px rgba(201,242,54,.45); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #C0392B; }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.contact__submit { padding: 14px 24px; font-size: 14px; }
.contact__submit[disabled] { opacity: .6; cursor: wait; }
.contact__alt { font-size: 13px; color: #6B6B66; }
.contact__alt a { text-decoration: underline; text-underline-offset: 3px; }
.contact__status { font-size: 14px; min-height: 1.4em; color: #3A3A36; }
.contact__status.is-error { color: #C0392B; }
.contact__status.is-ok { color: #2F5D46; font-weight: 600; }
.contact.is-sent .contact__grid, .contact.is-sent .contact__actions, .contact.is-sent .contact__intro { display: none; }
.contact.is-sent .contact__status { font-size: 17px; margin-top: 8px; }

/* Legal pages */
.legal { max-width: 720px; padding: 48px var(--gutter) 96px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.6; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 18px; padding-left: 20px; list-style: disc; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--muted); }
.legal p a:not(.btn), .legal li a { text-decoration: underline; text-underline-offset: 3px; }
.legal p a:not(.btn):hover, .legal li a:hover { color: var(--ink); }
.legal__updated { margin-top: 44px; font-size: 13px; color: var(--muted); }
.legal .todo { background: #FFF6C2; padding: 2px 6px; border-radius: 4px; }
.legal .back { display: inline-block; margin-bottom: 40px; font-size: 14px; }

/* Responsive */
@media (max-width: 1240px) {
  /* Three phone-bearing cards need ~420px each; below that, go two-up with EBM full width. */
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--ebm { grid-column: 1 / -1; }
  .card--ebm .card__body { padding-right: 45%; }
  .card--ebm .card__bg { object-position: 80% center; }
}

@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .section__head, .footer__inner, .belief__inner { grid-template-columns: 340px minmax(0, 1fr) auto; gap: 32px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(2) { padding-right: 0; }
}

@media (max-width: 899px) {
  :root { --gutter: 24px; }
  .nav__inner { padding-top: 18px; padding-bottom: 18px; }
  .brand__tag { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__cta { margin: 16px 0 0; justify-content: center; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero { display: flex; flex-direction: column; }
  .hero__media { position: relative; order: 2; height: 300px; }
  .hero__media img { object-position: 60% 55%; }
  .hero__fade-x { background: none; }
  .hero__fade-y { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-0) 35%, var(--bg-0) 100%); }
  .hero__inner { order: 1; min-height: 0; }
  .hero__copy { padding: 24px 0 8px; gap: 24px; }
  .hero__clock { margin-top: 0; padding-bottom: 8px; }
  .hero__labels { display: none; }
  .hero__hand { position: absolute; bottom: auto; top: calc(100% + 300px - 96px); right: var(--gutter); font-size: 26px; z-index: 1; }

  .section { padding: 48px 0 56px; }
  .section__head, .footer__inner, .belief__inner { grid-template-columns: 1fr; gap: 20px; }
  .section__head { margin-bottom: 28px; }
  .cards, .tiles { grid-template-columns: 1fr; }
  .card { min-height: 420px; }
  .card--ebm .card__body { padding-right: 26px; }
  .card--ebm .card__bg { object-position: 65% 30%; }
  .card--ebm::before { background: linear-gradient(180deg, rgba(8,8,8,.9) 0%, rgba(8,8,8,.8) 55%, rgba(8,8,8,.3) 100%); }
  .card__body--phone { padding-right: 176px; }
  .services { grid-template-columns: 1fr; row-gap: 32px; }
  .service { padding: 0; border-left: 0; }
  .belief__inner { padding-top: 48px; padding-bottom: 48px; }
  .footer__mid { flex-direction: column; align-items: flex-start; gap: 20px; }
  .contact__form { padding: 28px 22px 24px; }
  .contact__form h2 { font-size: 24px; padding-right: 40px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .card__body--phone { padding-right: 26px; padding-bottom: 300px; }
  .phone { right: 50%; transform: translateX(50%); bottom: -70px; }
  .card--roxmatch .card__body--phone { padding-right: 26px; padding-bottom: 400px; }
  .phone--rox { bottom: -60px; }
  .card--ebm .card__body { padding-right: 26px; }
  .ebm-side { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { transition: none; }
  .btn { transition: none; }
}
