/* ==========================================================================
   Firu — firu.co.za
   Hand-built static site. No framework, no build step, no third-party requests.

   Structure follows the house rules:
     · strokes are inset rings, never borders (borders shift layout between variants)
     · radius is chosen by role, not by taste
     · rounded photography is a pill, never an ellipse; min 3/2 box
     · the gutter sits OUTSIDE the content cap (.wrap renders two elements)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — self-hosted latin subsets
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces — a four-step ramp out of near-black. Nothing is pure #000. */
  --ink:        #0D1013;
  --ink-raise:  #12161B;
  --ink-card:   #171B21;
  --ink-inset:  #0A0D10;

  /* Strokes */
  --line:       #242A32;
  --line-soft:  #1C222A;
  --line-loud:  #333B45;

  /* Text — three steps, all ≥ 4.9:1 on --ink */
  --text:       #E8E6E1;
  --text-2:     #A9AFB8;
  --text-3:     #7E858F;

  /* Brand */
  --accent:     #FF5A1F;
  --accent-lo:  rgba(255, 90, 31, 0.10);
  --accent-mid: rgba(255, 90, 31, 0.28);
  --live:       #4ADE80;
  --live-lo:    rgba(74, 222, 128, 0.10);

  /* Type */
  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing — 8 · 16 · 24 · 32 · 40 · 56 · 80 · 128 */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 40px; --s-6: 56px; --s-7: 80px; --s-8: 128px;

  /* Radius by role */
  --r-xl:   28px;  /* hero + feature surfaces */
  --r-md:   16px;  /* standard content cards */
  --r-sm:   10px;  /* dense / nested cards, boxed icons */
  --r-pill: 999px; /* buttons, badges, chips */

  /* Rings — inset, so a variant swap never moves the box */
  --ring:      inset 0 0 0 1px var(--line);
  --ring-soft: inset 0 0 0 1px var(--line-soft);
  --ring-loud: inset 0 0 0 1px var(--line-loud);

  /* Layout */
  --cap: 1200px;
  --gutter: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px)  { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* --------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit; color: inherit;
  background: none; border: 0; padding: 0;
  cursor: pointer;
}

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

::selection { background: var(--accent); color: #0D1013; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 20px;
  background: var(--accent); color: #0D1013;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   4. Layout — the gutter sits outside the cap, so .wrap is two elements
   -------------------------------------------------------------------------- */

.wrap { padding-inline: var(--gutter); }
.wrap > .wrap-in { max-width: var(--cap); margin-inline: auto; width: 100%; }

.section { padding-block: var(--s-7); position: relative; }
@media (min-width: 900px) { .section { padding-block: var(--s-8); } }

.section + .section { padding-top: 0; }

/* Hairline that runs the full band width, above content that is capped */
.rule {
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--line) 12%, var(--line) 88%, transparent);
}

/* --------------------------------------------------------------------------
   5. Type
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.35rem + 5.1vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.25rem + 2.6vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.08rem + 0.75vw, 1.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

.body   { color: var(--text-2); text-wrap: pretty; }
.accent { color: var(--accent); }
.dim    { color: var(--text-3); }

/* Mono label — the connective tissue of the whole design */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.mono-sm { font-size: 0.625rem; letter-spacing: 0.16em; }

/* Section marker: 01 /services

   Deliberately heavier than a caption. Each section opens on a full-width rule
   with the number sitting ON it, so the eye registers a hard section break
   before it reads a word — the previous version floated the number in space and
   read as decoration rather than structure. */
.marker {
  display: flex; align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-3);
  padding-top: var(--s-3);
  box-shadow: inset 0 1px 0 0 var(--line);
}
.marker__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.08em;
  color: #0D1013;
  padding: 6px 11px;
  border-radius: var(--r-sm);
  background: var(--accent);
}
.marker__label {
  font-family: var(--font-mono);
  font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
}
.marker__line { flex: 1; height: 1px; background: var(--line-soft); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.9375rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #0D1013;
}
.btn--primary:hover {
  background: #FF6E3A;
  box-shadow: 0 10px 30px -10px rgba(255, 90, 31, 0.6);
}

.btn--ghost {
  color: var(--text);
  box-shadow: var(--ring-loud);
}
.btn--ghost:hover {
  background: var(--ink-raise);
  box-shadow: inset 0 0 0 1px var(--text-3);
}

.btn--wa {
  color: var(--text);
  background: var(--live-lo);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.35);
}
.btn--wa:hover {
  background: rgba(74, 222, 128, 0.16);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.6);
}
.btn__wa { color: var(--live); flex: none; }

.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Email address assembled at runtime — see site.js. The no-JS fallback text is
   swapped out on enhancement, so the plain address never sits in the markup. */
.mail-fallback { white-space: nowrap; }

/* Inline text link with a rule that draws in on hover */
.tlink {
  color: var(--text);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
  padding-bottom: 2px;
}
.tlink:hover { background-size: 100% 1px; color: var(--accent); }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */

.hdr {
  position: sticky; top: 0; z-index: 100;
  padding-block: var(--s-2);
  background: rgba(13, 16, 19, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 -1px 0 0 transparent;
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.hdr[data-stuck='true'] {
  box-shadow: inset 0 -1px 0 0 var(--line);
  background: rgba(13, 16, 19, 0.9);
}
/* header hugs the edge at 24px; content sections inset further */
.hdr .wrap { --gutter: 20px; }
@media (min-width: 768px) { .hdr .wrap { --gutter: 24px; } }
@media (min-width: 1200px) { .hdr .wrap { --gutter: 32px; } }

.hdr__in { display: flex; align-items: center; gap: var(--s-3); }

.logo {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.375rem;
  letter-spacing: -0.05em;
}
.logo__slash { color: var(--accent); }
.logo__ai { color: var(--text-3); font-weight: 600; }

.nav { display: none; margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; align-items: center; gap: 4px; } }

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--ink-raise); }
.nav a[aria-current='true'] { color: var(--accent); }

.hdr__cta { margin-left: auto; }
@media (min-width: 900px) { .hdr__cta { margin-left: var(--s-2); } }
.hdr__cta .btn { padding: 11px 18px; font-size: 0.875rem; }

/* No CTA in the mobile header — the trigger replaces it entirely */
@media (max-width: 899px) { .hdr__cta { display: none; } }

.burger {
  margin-left: auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  box-shadow: var(--ring);
}
@media (min-width: 900px) { .burger { display: none; } }
.burger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child  { transform: translateY(-2.75px) rotate(-45deg); }

.mnav {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.mnav[data-open='true'] { grid-template-rows: 1fr; }
.mnav__in { overflow: hidden; }
.mnav ul { padding: var(--s-2) 0 var(--s-1); }
.mnav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.25rem;
  letter-spacing: -0.02em;
  box-shadow: inset 0 -1px 0 0 var(--line-soft);
}
.mnav a span { font: 500 0.6875rem/1 var(--font-mono); letter-spacing: 0.12em; color: var(--text-3); }
.mnav .btn { width: 100%; justify-content: center; margin-top: var(--s-2); }
@media (min-width: 900px) { .mnav { display: none; } }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; padding-top: var(--s-6); padding-bottom: var(--s-7); }
@media (min-width: 900px) { .hero { padding-top: var(--s-7); padding-bottom: var(--s-8); } }

/* Ambient wash — pure CSS, no image weight */
/* Inset stays at 0 horizontally: a negative horizontal inset here grew the
   document by 36px at 360px wide and produced a real horizontal scrollbar.
   The gradients are widened instead, which looks identical and costs nothing. */
.hero::before {
  content: '';
  position: absolute; inset: -180px 0 auto 0; height: 900px;
  background:
    radial-gradient(80% 62% at 18% 22%, rgba(255, 90, 31, 0.13), transparent 70%),
    radial-gradient(70% 52% at 88% 10%, rgba(74, 222, 128, 0.055), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: relative; z-index: 1;
  display: grid; gap: var(--s-6);
}
@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--s-6);
    align-items: center;
  }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  background: var(--ink-raise);
  box-shadow: var(--ring);
  margin-bottom: var(--s-3);
}

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-lo);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.4s var(--ease) infinite; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--live-lo); opacity: 1; }
  50%      { box-shadow: 0 0 0 6px transparent;    opacity: 0.65; }
}

.hero h1 { margin-bottom: var(--s-3); }
.hero h1 em {
  font-style: normal;
  color: var(--text-3);
  display: block;
}
.hero .lede { max-width: 34ch; margin-bottom: var(--s-5); }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  box-shadow: inset 0 1px 0 0 var(--line-soft);
}

/* --------------------------------------------------------------------------
   9. Console — the live ops feed
   -------------------------------------------------------------------------- */

.console {
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, var(--ink-card), var(--ink-raise));
  box-shadow:
    var(--ring),
    0 40px 80px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.console__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  box-shadow: inset 0 -1px 0 0 var(--line-soft);
  background: var(--ink-inset);
}
.console__dots { display: flex; gap: 6px; }
.console__dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-loud);
}
.console__title { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--text-3); }
.console__live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.625rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--live);
}

.feed { padding: var(--s-1) 0; height: 268px; overflow: hidden; position: relative; }
.feed::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 56px;
  background: linear-gradient(180deg, transparent, var(--ink-raise));
  pointer-events: none;
}

.feed__row {
  display: grid;
  grid-template-columns: 62px 96px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 9px 18px;
  font-size: 0.8125rem;
}
@media (max-width: 420px) {
  .feed__row { grid-template-columns: 54px 1fr; }
  .feed__row .feed__time { grid-column: 1; }
  .feed__row .feed__op   { grid-column: 2; }
  .feed__row .feed__txt  { grid-column: 1 / -1; padding-left: 66px; margin-top: -6px; }
}

.feed__time { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-3); }
.feed__op   { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.feed__txt  { color: var(--text-2); }
.feed__txt b { color: var(--text); font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .feed__row--new { animation: slideIn 0.5s var(--ease) both; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.console__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-2);
  padding: 14px 18px;
  box-shadow: inset 0 1px 0 0 var(--line-soft);
  background: var(--ink-inset);
}
.console__stat { display: inline-flex; align-items: baseline; gap: 7px; }
.console__stat b {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.125rem; letter-spacing: -0.02em;
  color: var(--text);
}

/* Honesty note under the console. The legal-notice page used to carry this
   disclosure; with that page pulled, the claim lives next to the thing it
   describes — which is where it belonged anyway. */
.console__note {
  margin-top: var(--s-2);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 46ch;
}
@media (min-width: 1000px) { .console__note { text-align: right; margin-left: auto; } }

/* --------------------------------------------------------------------------
   10. Integration marquee
   -------------------------------------------------------------------------- */

.strip {
  position: relative;
  padding-block: var(--s-3);
  box-shadow: inset 0 1px 0 0 var(--line-soft), inset 0 -1px 0 0 var(--line-soft);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip__track { display: flex; width: max-content; gap: var(--s-5); padding-left: var(--s-5); }
@media (prefers-reduced-motion: no-preference) {
  .strip__track { animation: marquee 42s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .strip { -webkit-mask-image: none; mask-image: none; }
  .strip__track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: var(--s-2); padding-left: 0; }
  .strip__track > ul:last-child { display: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

.strip__track ul { display: flex; gap: var(--s-5); }
.strip__track li {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.06em; color: var(--text-3);
  white-space: nowrap;
}
.strip__track li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--line-loud); flex: none;
}

/* --------------------------------------------------------------------------
   11. Cards + grids
   -------------------------------------------------------------------------- */

/* Caps are in rem, not ch: `ch` here resolves against the wrapper's 17px body
   font, not the heading's clamp, so a `ch` cap silently squeezes big display
   type into the wrong number of lines. */
/* The head block spans the full content width so its rule reads as a real
   section divider; only the headline itself is measure-capped. */
.head { margin-bottom: var(--s-6); }
.head .h2 { max-width: 18ch; }
.head--stack .h2 { max-width: 14ch; }

.grid { display: grid; gap: var(--s-2); }
@media (min-width: 640px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--ink-raise);
  box-shadow: var(--ring);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              transform 0.35s var(--ease);
}
@media (min-width: 900px) { .card { padding: var(--s-5) var(--s-4); } }

.card:hover {
  background: var(--ink-card);
  box-shadow: var(--ring-loud), 0 24px 48px -32px rgba(0, 0, 0, 0.9);
  transform: translateY(-3px);
}

.card__n {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.6875rem; letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: var(--s-3);
  display: block;
  transition: color 0.35s var(--ease);
}
.card:hover .card__n { color: var(--accent); }

.card h3 { margin-bottom: 6px; }

.card__stack {
  font-family: var(--font-mono); font-size: 0.6875rem;
  letter-spacing: 0.06em; color: var(--accent);
  margin-bottom: var(--s-2);
}

.card__rule {
  height: 1px; width: 28px;
  background: var(--line-loud);
  margin-bottom: var(--s-2);
  transition: width 0.4s var(--ease), background-color 0.4s var(--ease);
}
.card:hover .card__rule { width: 56px; background: var(--accent); }

/* --------------------------------------------------------------------------
   12. Work
   -------------------------------------------------------------------------- */

.feature {
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 90, 31, 0.09), transparent 55%),
    var(--ink-raise);
  box-shadow: var(--ring);
  overflow: hidden;
  margin-bottom: var(--s-2);
}
.feature__grid { display: grid; }
@media (min-width: 900px) {
  .feature__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; }
}
.feature__body { padding: var(--s-5) var(--s-4); }
@media (min-width: 900px) { .feature__body { padding: var(--s-7) var(--s-6); } }

.tag {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-lo);
  box-shadow: inset 0 0 0 1px var(--accent-mid);
  margin-bottom: var(--s-3);
}
.tag--quiet { color: var(--text-3); background: transparent; box-shadow: var(--ring); }

.specs { display: grid; gap: 1px; margin-top: var(--s-4); background: var(--line-soft); border-radius: var(--r-sm); overflow: hidden; }
@media (min-width: 560px) { .specs--3 { grid-template-columns: repeat(3, 1fr); } }
.specs > div { background: var(--ink); padding: 14px 16px; }
.specs dt { font: 500 0.625rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 5px; }
.specs dd { font-size: 0.875rem; color: var(--text); }

/* Stacked, not middot-separated. In columns this narrow the list wraps, and a
   wrapped separator always strands itself — leading pseudo-elements orphan a '·'
   onto the next line, trailing ones dangle it off the end of the previous one.
   There is no flex-wrap fix; removing the separator removes the failure mode,
   and a spec list reads better stacked anyway. */
.dot-list { display: grid; gap: 3px; }
.dot-list li { color: var(--text); }

/* --------------------------------------------------------------------------
   Phone / WhatsApp mock

   Modelled on the real Bestel order flow. It reads as WhatsApp in shape and
   rhythm — device frame, status bar, chat header, tailed bubbles, receipts,
   input bar — but every colour comes from the Firu palette rather than Meta's,
   so it is our product on screen, not a screenshot of theirs.
   -------------------------------------------------------------------------- */

.phone__pane { padding: var(--s-4); display: grid; place-items: center; }
@media (min-width: 900px) { .phone__pane { padding: var(--s-6) var(--s-6) var(--s-6) 0; } }

.phone {
  position: relative;
  width: 100%; max-width: 292px;
  border-radius: 40px;
  background: linear-gradient(180deg, #262C34, #14181D);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 48px 90px -44px rgba(0, 0, 0, 1);
  padding: 9px;
}

/* Dynamic island */
.phone__island {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 20px; border-radius: var(--r-pill);
  background: #05070A; z-index: 3;
}

.phone__screen {
  position: relative;
  border-radius: 32px; overflow: hidden;
  background: var(--ink);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

/* ---- status bar ---- */
.wa__status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px 7px;
  background: var(--ink-inset);
  font: 600 11px/1 var(--font-body);
  color: var(--text);
}
.wa__sig { display: flex; align-items: flex-end; gap: 1.5px; }
.wa__sig i { width: 2.5px; border-radius: 1px; background: var(--text); display: block; }
.wa__batt {
  width: 17px; height: 9px; margin-left: 4px; border-radius: 2.5px;
  background: var(--text); display: block;
}

/* ---- chat header ---- */
.wa__hdr {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 10px;
  background: var(--ink-inset);
  box-shadow: inset 0 -1px 0 0 var(--line-soft);
}
.wa__back { color: var(--text-3); font-size: 17px; line-height: 1; margin-right: -2px; }
.wa__av {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, #FF8A5C, var(--accent));
  display: grid; place-items: center;
  font: 700 12px/1 var(--font-display); color: #0D1013;
}
.wa__id { display: grid; gap: 1px; flex: 1; min-width: 0; }
.wa__who {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.8125rem; font-weight: 600; color: var(--text);
}
.wa__tick { color: var(--live); flex: none; }
.wa__st { font-size: 0.625rem; color: var(--text-3); }
.wa__acts { display: flex; align-items: center; gap: 13px; color: var(--text-3); flex: none; }

/* ---- chat body ---- */
.wa__chat {
  padding: 9px 9px 11px;
  display: grid; gap: 6px; align-content: start;
  /* Faint dot field standing in for WhatsApp's doodle wallpaper. */
  background:
    radial-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 15px 15px,
    var(--ink);
}

.wa__chip {
  justify-self: center;
  font: 500 0.5625rem/1.5 var(--font-mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3);
  background: var(--ink-raise);
  box-shadow: var(--ring-soft);
  padding: 4px 10px; border-radius: 7px;
  margin: 2px 0;
}
.wa__chip--enc {
  text-transform: none; letter-spacing: 0.01em;
  font-family: var(--font-body); font-size: 0.625rem;
  text-align: center; max-width: 92%;
  color: var(--text-3);
}

.wa__row { display: flex; }
.wa__row--out { justify-content: flex-end; }

.wa__bub {
  position: relative;
  max-width: 84%;
  padding: 7px 10px 5px;
  font-size: 0.8rem; line-height: 1.4;
  color: var(--text);
  border-radius: 10px;
}
/* Incoming: the business. Outgoing: the customer — tinted with the palette's
   live green so it carries WhatsApp's read without borrowing its exact hue. */
.wa__bub--in {
  background: var(--ink-card);
  box-shadow: var(--ring-soft);
  border-top-left-radius: 3px;
}
.wa__bub--out {
  background: #14372A;
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.16);
  border-top-right-radius: 3px;
}
.wa__bub b { font-weight: 600; }

.wa__meta {
  display: block; text-align: right;
  font-family: var(--font-mono); font-size: 0.5rem;
  letter-spacing: 0.06em; color: var(--text-3);
  margin-top: 3px;
}
/* --text-3 lands at 3.5:1 against the green outgoing bubble, and this is 8px
   type. Lifted to a green-neutral grey that clears 4.5:1 on that surface. */
.wa__bub--out .wa__meta { color: #9BA8A2; }
.wa__rr { color: var(--live); letter-spacing: -0.1em; }

/* Quoted reply strip above an outgoing message */
.wa__quote {
  display: block; margin-bottom: 5px; padding: 5px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 2px 0 0 0 var(--live);
  font-size: 0.6875rem; line-height: 1.4; color: #9EAAA4;
}
.wa__quote b { display: block; color: var(--live); font-size: 0.6875rem; }

.wa__link { color: #62B6FF; text-decoration: underline; text-underline-offset: 2px; }
.wa__paid { display: block; color: var(--live); margin-bottom: 2px; }

/* Interactive flow card — the WhatsApp Flows message */
.wa__flow { padding: 0; overflow: hidden; max-width: 90%; }
/* Deliberately a burnt accent, not --accent itself. At this block size full
   #FF5A1F outshouts the headline next to it and drags the eye out of the copy. */
.wa__flowhero {
  display: block; padding: 9px 10px;
  background: linear-gradient(135deg, #A8380F, #6E2409);
  font: 700 0.75rem/1 var(--font-display);
  letter-spacing: 0.01em;
  color: #FFEDE5; text-align: center;
}
.wa__flowbody { display: block; padding: 9px 10px 10px; }
.wa__flowbody b { display: block; font-size: 0.8125rem; margin-bottom: 3px; }
.wa__flowbody em { font-style: normal; font-size: 0.75rem; line-height: 1.45; color: var(--text-2); }
.wa__flowbtn {
  display: block; text-align: center;
  padding: 9px; color: var(--live);
  font: 600 0.75rem/1 var(--font-body);
  box-shadow: inset 0 1px 0 0 var(--line-soft);
}

/* ---- input bar ---- */
.wa__input {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px 14px;
  background: var(--ink-inset);
}
.wa__field {
  flex: 1; padding: 8px 12px; border-radius: var(--r-pill);
  background: var(--ink-card); box-shadow: var(--ring-soft);
  font-size: 0.75rem; color: var(--text-3);
}
.wa__mic {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--accent); color: #0D1013;
  display: grid; place-items: center;
}

/* Case-study cards */
.case { display: flex; flex-direction: column; }
.case__metrics { margin-top: auto; padding-top: var(--s-3); display: grid; gap: 1px; background: var(--line-soft); border-radius: var(--r-sm); }
.case__metrics { background: none; gap: 0; }
.metric {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2);
  padding: 12px 0;
  box-shadow: inset 0 -1px 0 0 var(--line-soft);
}
.metric:last-child { box-shadow: none; }
.metric__k { font-size: 0.875rem; color: var(--text-2); }
.metric__v {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.75rem; letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   13. Process
   -------------------------------------------------------------------------- */

.step { position: relative; padding-top: var(--s-4); }
.step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line);
}
.step::after {
  content: ''; position: absolute; top: 0; left: 0; width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.7s var(--ease);
}
.step.is-in::after { width: 100%; }
.step__n {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.6875rem; letter-spacing: 0.12em;
  color: var(--accent); display: block; margin-bottom: var(--s-3);
}
.step h3 { margin-bottom: var(--s-2); }
.step__when {
  display: inline-block; margin-top: var(--s-3);
  font-family: var(--font-mono); font-size: 0.625rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
  padding: 6px 12px; border-radius: var(--r-pill); box-shadow: var(--ring);
}

/* --------------------------------------------------------------------------
   14. Studio
   -------------------------------------------------------------------------- */

.studio__grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) {
  .studio__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
}
.studio__copy p + p { margin-top: var(--s-3); }

/* Photography frame.
   Radius is chosen by role: this is a standard content surface, so it takes
   --r-md like every other card. It is deliberately NOT the pill treatment —
   at the width this column resolves to, a clamped 999px radius leaves almost
   no straight side and reads as a squashed circle rather than a pill, which is
   the exact failure the pill rule exists to prevent. A percentage radius stays
   banned either way. */
.media-frame {
  aspect-ratio: 3 / 2;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--ring), 0 40px 80px -50px rgba(0, 0, 0, 1);
  background: var(--ink-raise);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   15. CTA + footer
   -------------------------------------------------------------------------- */

.cta {
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-4);
  text-align: center;
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(255, 90, 31, 0.14), transparent 60%),
    var(--ink-raise);
  box-shadow: var(--ring);
}
@media (min-width: 900px) { .cta { padding: var(--s-8) var(--s-6); } }
.cta .h2 { margin-bottom: var(--s-3); max-width: 20ch; margin-inline: auto; }
.cta .lede { max-width: 46ch; margin-inline: auto; margin-bottom: var(--s-5); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }

.ftr { padding-block: var(--s-5); box-shadow: inset 0 1px 0 0 var(--line-soft); margin-top: var(--s-7); }
.ftr .wrap { --gutter: 24px; }
@media (min-width: 1200px) { .ftr .wrap { --gutter: 32px; } }
.ftr__in {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-2) var(--s-3);
  justify-content: space-between;
}
.ftr__links { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.ftr__links a { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--text-3); transition: color 0.2s var(--ease); }
.ftr__links a:hover { color: var(--accent); }
.ftr__c { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--text-3); }

.ftr__contact {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  box-shadow: inset 0 -1px 0 0 var(--line-soft);
  font-size: 0.9375rem;
}
.ftr__contact .mono { color: var(--text-3); }
.ftr__sep { color: var(--text-3); }

/* --------------------------------------------------------------------------
   16. Legal / prose pages
   -------------------------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2;
  margin-top: var(--s-6); margin-bottom: var(--s-2);
  padding-top: var(--s-3);
  box-shadow: inset 0 1px 0 0 var(--line-soft);
}
.prose h2:first-of-type { margin-top: var(--s-5); }
.prose h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; letter-spacing: -0.01em;
  margin-top: var(--s-4); margin-bottom: var(--s-1);
}
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: var(--s-2); }
.prose ul { margin-top: var(--s-2); display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before {
  content: ''; position: absolute; left: 4px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.backlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.6875rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
  padding: 9px 16px 9px 12px; border-radius: var(--r-pill);
  box-shadow: var(--ring);
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.backlink:hover { color: var(--text); box-shadow: var(--ring-loud); transform: translateX(-3px); }

.page-head { padding-top: var(--s-6); padding-bottom: var(--s-3); }
.page-head .display { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
.page-head .mono { display: block; margin-top: var(--s-3); }

.contact-card {
  margin-top: var(--s-5);
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--ink-raise);
  box-shadow: var(--ring);
  max-width: 460px;
}
.contact-card dl { display: grid; gap: 0; }
.contact-card > dl > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
  padding: 12px 0;
  box-shadow: inset 0 -1px 0 0 var(--line-soft);
}
.contact-card > dl > div:last-child { box-shadow: none; }
.contact-card dt { font: 500 0.625rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.contact-card dd { font-size: 0.9375rem; text-align: right; }

/* --------------------------------------------------------------------------
   17. Scroll reveal
   -------------------------------------------------------------------------- */

/* Gated on .js so the site is never blank when JavaScript is off, blocked or
   still loading. The hidden state is opt-in, applied by the head script. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); }
  .js [data-reveal].is-in {
    opacity: 1; transform: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--d, 0ms);
  }
}
