/* If you have a variable Alterwave, the first block alone covers every weight.
   If your licence ships separate files, the Light face below is used for the
   large display type. */
@font-face {
  font-family: "Alterwave";
  src: url("../fonts/alterwave.woff2") format("woff2"),
       url("../fonts/alterwave.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alterwave";
  src: url("../fonts/alterwave-light.woff2") format("woff2"),
       url("../fonts/alterwave-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Raiwin Solutions - Website Development Portfolio
   Flat dark UI. Solid surfaces, hairline borders, one accent colour.
   No gradient fills, no glows, no ambient light.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Navy ramp - sampled from the Raiwin site header */
  --rw-bg: #0a1626;
  --rw-door: #060e19; /* preloader ground - a shade under the page */
  --rw-surface: #0e1e33;
  --rw-surface-2: #12253d;
  --rw-navy-700: #16304e;

  /* Single accent. Used sparingly - links, one word per heading, key numbers. */
  --rw-blue: #2e8fde;
  --rw-blue-hover: #4ba2e8;
  --rw-blue-dim: #1a6fb0;

  /* Text */
  --rw-text: #e8eef5;
  --rw-text-dim: #9aa9bc;
  --rw-text-mute: #6b7c93;

  /* Hairlines */
  --rw-line: #1c3149;
  --rw-line-2: #24405c;
  --rw-line-3: #35597d;

  --rw-on-blue: #ffffff;
  --rw-lb-bg: #05101d;
  --rw-backdrop: rgba(4, 10, 18, 0.92);
  --rw-scrim: rgba(5, 16, 29, 0.85);
  --rw-shine-out: rgba(255, 255, 255, 0);
  --rw-shine-mid: rgba(255, 255, 255, 0.5);
  --rw-shine-hot: rgba(255, 255, 255, 0.92);

  --rw-radius: 10px;
  --rw-radius-lg: 14px;
  --rw-shell: 1200px;
  /* Satoshi loads from Fontshare. Alterwave is a licensed face - drop the files
     into assets/fonts/ and it takes over the headings automatically. */
  --rw-font: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rw-font-display: "Alterwave", "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
}


/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;  /* disabled below when Lenis is active */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

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

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--rw-font-display);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0;
  font-weight: 300;
}

/* Small uppercase headings are labels, not display type — they need weight
   to stay legible at 10–12px. */
.rw-block h3,
.rw-footer h4,
.rw-case-meta dt {
  font-weight: 700;
}

::selection { background: var(--rw-blue); color: var(--rw-on-blue); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--rw-bg); }
::-webkit-scrollbar-thumb { background: #24405c; }
::-webkit-scrollbar-thumb:hover { background: var(--rw-line-3); }

:focus-visible { outline: 2px solid var(--rw-blue); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.rw-shell {
  width: 100%;
  max-width: var(--rw-shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.rw-section { position: relative; padding-block: clamp(64px, 7vw, 104px); }
.rw-layer { position: relative; }

/* --------------------------------------------------------------------------
   4. Type primitives
   -------------------------------------------------------------------------- */
.rw-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rw-text-mute);
}

.rw-title {
  font-family: var(--rw-font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 700;
}

.rw-lead {
  color: var(--rw-text-dim);
  font-size: 1rem;
  max-width: 60ch;
}

/* Solid, not gradient-filled */
.rw-steel { color: var(--rw-text); }
.rw-accent { color: var(--rw-blue); }

/* --------------------------------------------------------------------------
   5. Buttons - solid fill, no glow, no sheen
   -------------------------------------------------------------------------- */
.rw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--rw-radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rw-btn svg { width: 16px; height: 16px; flex: none; }

.rw-btn-primary { background: var(--rw-blue); color: var(--rw-on-blue); }
.rw-btn-primary:hover { background: var(--rw-blue-hover); }

.rw-btn-ghost {
  background: transparent;
  border-color: var(--rw-line-2);
  color: var(--rw-text);
}
.rw-btn-ghost:hover { border-color: var(--rw-line-3); background: var(--rw-surface); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.rw-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: var(--rw-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.rw-header.is-stuck { border-bottom-color: var(--rw-line); }

.rw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.rw-brand { display: flex; align-items: center; }
.rw-brand img { height: 38px; width: auto; }

.rw-nav { display: none; align-items: center; gap: 30px; }

.rw-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rw-text-dim);
  transition: color 0.18s ease;
}
.rw-nav a:hover { color: var(--rw-text); }
.rw-nav a.is-active { color: var(--rw-blue); }

.rw-header-cta { display: none; }

/* Mobile menu */
.rw-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--rw-radius);
  border: 1px solid var(--rw-line-2);
  background: transparent;
  cursor: pointer;
}

.rw-burger span {
  display: block;
  height: 1.5px;
  background: var(--rw-text);
  transition: transform 0.25s ease, opacity 0.15s ease;
}

.rw-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.rw-burger.is-open span:nth-child(2) { opacity: 0; }
.rw-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.rw-mobile-nav {
  position: fixed;
  inset: 72px 0 auto 0;
  z-index: 89;
  background: var(--rw-bg);
  border-bottom: 1px solid var(--rw-line);
  padding: 8px 24px 20px;
  display: none;
}
.rw-mobile-nav.is-open { display: grid; }

.rw-mobile-nav a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--rw-line);
  color: var(--rw-text-dim);
}
.rw-mobile-nav a:last-of-type { border-bottom: 0; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.rw-hero {
  padding-top: clamp(124px, 14vw, 168px);
  padding-bottom: clamp(56px, 6vw, 84px);
}

.rw-hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  max-width: 18ch;
}

.rw-reveal-line { display: block; overflow: hidden; }
.rw-reveal-line > span { display: block; will-change: transform; }

.rw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--rw-line-2);
  font-size: 12px;
  color: var(--rw-text-dim);
}

/* Static marker, not a pulsing beacon */
.rw-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rw-blue);
  flex: none;
}

/* Metric strip */
.rw-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius);
  overflow: hidden;
}

.rw-metric {
  padding: 20px 20px;
  border-bottom: 1px solid var(--rw-line);
  border-right: 1px solid var(--rw-line);
}
.rw-metric:nth-child(2n) { border-right: 0; }
.rw-metric:nth-last-child(-n+2) { border-bottom: 0; }

.rw-metric-num {
  font-family: var(--rw-font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--rw-text);
}

.rw-metric-label {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--rw-text-mute);
}

/* --------------------------------------------------------------------------
   8. Capability list
   -------------------------------------------------------------------------- */
.rw-cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--rw-line);
}

.rw-cap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rw-line);
}

.rw-cap-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--rw-line-2);
  color: var(--rw-blue);
  margin-top: 2px;
}
.rw-cap-ico svg { width: 17px; height: 17px; }

.rw-cap h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; }
.rw-cap p { margin: 0; color: var(--rw-text-mute); font-size: 13.5px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   9. Work grid
   -------------------------------------------------------------------------- */
.rw-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

.rw-filter {
  padding: 8px 15px;
  border-radius: var(--rw-radius);
  border: 1px solid var(--rw-line-2);
  background: transparent;
  color: var(--rw-text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.rw-filter:hover { color: var(--rw-text); border-color: var(--rw-line-3); }

.rw-filter.is-active {
  background: var(--rw-blue);
  border-color: var(--rw-blue);
  color: var(--rw-on-blue);
}

/* --------------------------------------------------------------------------
   10. Case studies
   -------------------------------------------------------------------------- */
.rw-case {
  padding-block: clamp(52px, 6vw, 80px);
  border-top: 1px solid var(--rw-line);
  scroll-margin-top: 84px;
}

.rw-case-head { margin-bottom: 40px; }

.rw-case h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-block: 10px 14px; }

.rw-case-intro { display: grid; gap: 18px; }

.rw-case-summary { display: grid; gap: 20px; justify-items: start; align-content: start; }
.rw-case-summary .rw-lead { margin: 0; }
.rw-case-visit { align-self: start; }

/* Project info — a ruled grid rather than a loose row.
   The 1px gap over a line-coloured ground draws the rules, so it stays clean
   at any column count. */
.rw-case-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--rw-line);
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius);
  overflow: hidden;
}

.rw-case-meta > div { background: var(--rw-bg); padding: 15px 18px; }
.rw-case-meta > div.is-wide { grid-column: 1 / -1; }

.rw-case-meta div { min-width: 118px; }

.rw-case-meta dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rw-text-mute);
  margin-bottom: 4px;
}

.rw-case-meta dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--rw-text); }
.rw-case-meta dd a { color: var(--rw-blue); }
.rw-case-meta dd a:hover { text-decoration: underline; }

.rw-case-grid { display: grid; gap: 22px; }

/* Media */
.rw-case-media {
  border-radius: var(--rw-radius-lg);
  overflow: hidden;
  border: 1px solid var(--rw-line);
  background: var(--rw-surface);
}

.rw-case-media video, .rw-case-media img { width: 100%; display: block; }

.rw-case-media figcaption {
  padding: 13px 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--rw-text-mute);
  border-top: 1px solid var(--rw-line);
}

.rw-video-wrap { position: relative; cursor: pointer; }

.rw-video-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rw-line-2);
  background: var(--rw-scrim);
  color: var(--rw-text);
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.rw-video-btn:hover { background: var(--rw-blue); border-color: var(--rw-blue); }
.rw-video-btn svg { width: 15px; height: 15px; }

/* Narrative blocks */
.rw-block { padding-bottom: 24px; }
.rw-block + .rw-block { border-top: 1px solid var(--rw-line); padding-top: 24px; }

.rw-block h3 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rw-text-mute);
  margin-bottom: 12px;
}

.rw-block p { margin: 0 0 12px; color: var(--rw-text-dim); font-size: 14.5px; line-height: 1.72; }
.rw-block p:last-child { margin-bottom: 0; }
.rw-block strong { color: var(--rw-text); font-weight: 600; }

.rw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.rw-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--rw-text-dim);
  line-height: 1.6;
}

.rw-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rw-blue-dim);
}

/* Outcome - flat panel, single accent rule */
.rw-outcome {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--rw-line-2);
  border-left: 2px solid var(--rw-blue);
  border-radius: 0 var(--rw-radius) var(--rw-radius) 0;
  background: var(--rw-surface);
}

.rw-outcome p { margin: 0; font-size: 14.5px; line-height: 1.68; color: var(--rw-text); }

/* Scoreboard */
.rw-score {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius);
  overflow: hidden;
}

.rw-score-cell {
  padding: 16px;
  border-bottom: 1px solid var(--rw-line);
  border-right: 1px solid var(--rw-line);
}
.rw-score-cell:nth-child(2n) { border-right: 0; }
.rw-score-cell:nth-last-child(-n+2) { border-bottom: 0; }

.rw-score-num {
  font-family: var(--rw-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--rw-text);
}

.rw-score-cell p { margin: 7px 0 0; font-size: 12.5px; color: var(--rw-text-dim); }
.rw-score-cell span { display: block; margin-top: 2px; font-size: 11px; color: var(--rw-text-mute); }

/* Testimonial */
.rw-quote {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius);
}

.rw-quote svg { display: none; }

.rw-quote blockquote {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--rw-text-dim);
}

.rw-quote cite {
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rw-text-mute);
}

/* Shot gallery */
.rw-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }

.rw-shots a {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rw-line);
  aspect-ratio: 1;
}
.rw-shots img { width: 100%; height: 100%; object-fit: cover; }
.rw-shots a:hover { border-color: var(--rw-line-3); }

/* --------------------------------------------------------------------------
   11. Process
   -------------------------------------------------------------------------- */
.rw-steps { display: grid; gap: 0; margin-top: 40px; counter-reset: step; border-top: 1px solid var(--rw-line); }

.rw-step { padding: 22px 0; border-bottom: 1px solid var(--rw-line); counter-increment: step; }

.rw-step::before {
  content: "0" counter(step);
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rw-text-mute);
  margin-bottom: 10px;
}

.rw-step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 7px; }
.rw-step p { margin: 0; font-size: 13.5px; color: var(--rw-text-mute); line-height: 1.62; }

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */
.rw-contact-card {
  display: grid;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius-lg);
  overflow: hidden;
}

.rw-contact-left {
  padding: 32px 26px;
  background: var(--rw-surface);
  border-bottom: 1px solid var(--rw-line);
}

.rw-contact-left h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-block: 12px 12px; }
.rw-contact-left > p { color: var(--rw-text-dim); font-size: 14.5px; max-width: 40ch; margin: 0 0 24px; }

.rw-reach { display: grid; gap: 10px; }

.rw-reach-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  border-radius: var(--rw-radius);
  border: 1px solid var(--rw-line-2);
  transition: border-color 0.18s ease;
}
.rw-reach-tile:hover { border-color: var(--rw-line-3); }

.rw-reach-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rw-text-mute);
  margin-bottom: 3px;
}

.rw-reach-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--rw-text);
  word-break: break-all;
}

.rw-reach-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 9px 15px;
  border-radius: var(--rw-radius);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--rw-blue);
  color: var(--rw-on-blue);
  transition: background-color 0.18s ease;
}
.rw-reach-action:hover { background: var(--rw-blue-hover); }
.rw-reach-action svg { width: 14px; height: 14px; }

.rw-copy-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--rw-line-2);
  background: transparent;
  color: var(--rw-text-mute);
  cursor: pointer;
  flex: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.rw-copy-btn:hover { color: var(--rw-blue); border-color: var(--rw-line-3); }
.rw-copy-btn svg { width: 13px; height: 13px; }

.rw-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--rw-radius);
  border: 1px solid var(--rw-line-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--rw-text);
  transition: border-color 0.18s ease;
}
.rw-whatsapp:hover { border-color: var(--rw-line-3); }
.rw-whatsapp svg { width: 17px; height: 17px; color: var(--rw-text-dim); }

.rw-assurance {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rw-line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--rw-text-mute);
}
.rw-assurance b { color: var(--rw-text-dim); font-weight: 600; }

.rw-assurance .rw-pulse {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

/* Form */
.rw-contact-right { padding: 32px 26px; }
.rw-contact-right h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 7px; }
.rw-contact-right > p { color: var(--rw-text-dim); font-size: 14px; margin: 0 0 24px; }

.rw-form { display: grid; gap: 16px; }
.rw-form-row { display: grid; gap: 16px; }
.rw-field { display: grid; gap: 7px; }

.rw-field label { font-size: 12.5px; font-weight: 600; color: var(--rw-text-dim); }
.rw-field label span { color: var(--rw-blue); }

.rw-input, .rw-select, .rw-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--rw-radius);
  border: 1px solid var(--rw-line-2);
  background: var(--rw-bg);
  color: var(--rw-text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.18s ease;
}

.rw-input::placeholder, .rw-textarea::placeholder { color: var(--rw-text-mute); }

.rw-input:focus, .rw-select:focus, .rw-textarea:focus {
  outline: none;
  border-color: var(--rw-blue);
}

.rw-textarea { min-height: 124px; resize: vertical; line-height: 1.6; }

.rw-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7c93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
  cursor: pointer;
}
.rw-select option { background: var(--rw-surface); color: var(--rw-text); }

.rw-phone {
  display: flex;
  align-items: stretch;
  border-radius: var(--rw-radius);
  border: 1px solid var(--rw-line-2);
  background: var(--rw-bg);
  overflow: hidden;
  transition: border-color 0.18s ease;
}
.rw-phone:focus-within { border-color: var(--rw-blue); }

.rw-phone-prefix {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-right: 1px solid var(--rw-line-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--rw-text-dim);
  flex: none;
}
.rw-phone-prefix img { width: 19px; height: 14px; border-radius: 2px; }

.rw-phone .rw-input { border: 0; border-radius: 0; }

.rw-submit {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: var(--rw-radius);
  font-size: 14px;
  font-weight: 600;
}

.rw-form-note { font-size: 12px; color: var(--rw-text-mute); margin: 0; line-height: 1.6; }

.rw-form-status {
  display: none;
  padding: 12px 14px;
  border-radius: var(--rw-radius);
  font-size: 13px;
  border: 1px solid var(--rw-line-2);
  color: var(--rw-text-dim);
}
.rw-form-status.is-visible { display: block; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.rw-footer {
  border-top: 1px solid var(--rw-line);
  padding-block: 44px 24px;
}

.rw-footer-grid { display: grid; gap: 30px; }
.rw-footer img { height: 36px; width: auto; margin-bottom: 16px; }
.rw-footer p { color: var(--rw-text-mute); font-size: 13.5px; max-width: 38ch; margin: 0; }

.rw-footer h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rw-text-mute);
  margin-bottom: 13px;
}

.rw-footer-links { display: grid; gap: 9px; }
.rw-footer-links a { font-size: 13.5px; color: var(--rw-text-dim); transition: color 0.18s ease; }
.rw-footer-links a:hover { color: var(--rw-blue); }

.rw-socials { display: flex; gap: 8px; }

.rw-social {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--rw-line-2);
  color: var(--rw-text-mute);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.rw-social:hover { color: var(--rw-text); border-color: var(--rw-line-3); }
.rw-social svg { width: 15px; height: 15px; }

.rw-footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--rw-line);
  font-size: 12.5px;
  color: var(--rw-text-mute);
}

/* Back to top */
.rw-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--rw-radius);
  border: 1px solid var(--rw-line-2);
  background: var(--rw-surface);
  color: var(--rw-text-dim);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, color 0.18s ease;
}
.rw-top.is-visible { opacity: 1; visibility: visible; }
.rw-top:hover { color: var(--rw-text); }
.rw-top svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   14. Animation entry states
   -------------------------------------------------------------------------- */
.rw-fade { opacity: 0; transform: translateY(14px); }
[data-hero] { opacity: 0; }
.rw-reveal-line > span { transform: translateY(112%); }

.js-off .rw-fade,
.js-off [data-hero] { opacity: 1; transform: none; }
.js-off .rw-reveal-line > span { transform: none; }

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .rw-metrics { grid-template-columns: repeat(4, 1fr); }
  .rw-metric { border-bottom: 0; }
  .rw-metric:nth-child(2n) { border-right: 1px solid var(--rw-line); }
  .rw-metric:last-child { border-right: 0; }
  .rw-form-row { grid-template-columns: 1fr 1fr; }
  .rw-score { grid-template-columns: repeat(3, 1fr); }
  .rw-score-cell:nth-child(2n) { border-right: 1px solid var(--rw-line); }
  .rw-score-cell:nth-child(3n) { border-right: 0; }
  .rw-score-cell:nth-last-child(-n+3) { border-bottom: 0; }
}

@media (min-width: 768px) {
  .rw-shell { padding-inline: 32px; }
  .rw-cap-grid { grid-template-columns: repeat(2, 1fr); column-gap: 36px; }
  .rw-steps { grid-template-columns: repeat(2, 1fr); column-gap: 36px; }
  .rw-contact-left, .rw-contact-right { padding: 40px 36px; }
  .rw-footer-grid { grid-template-columns: 1.5fr 1fr; column-gap: 48px; }
}

@media (min-width: 1024px) {
  .rw-nav, .rw-header-cta { display: flex; }
  .rw-burger { display: none; }
  .rw-steps { grid-template-columns: repeat(4, 1fr); column-gap: 30px; }
  .rw-case-grid { grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
  .rw-case-grid.is-flipped .rw-case-col-media { order: -1; }
  .rw-contact-card { grid-template-columns: 0.9fr 1.1fr; }
  .rw-contact-left { border-bottom: 0; border-right: 1px solid var(--rw-line); }
  .rw-case-col-media { position: sticky; top: 96px; }
}

/* --------------------------------------------------------------------------
   16. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rw-fade { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .rw-header, .rw-top, .rw-contact-right { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   17. Door transition / preloader
   Two panels meet at the centre; the brand icon is split across the seam so
   it reassembles as they close and tears apart as they open.
   ========================================================================== */
.rw-doors {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.rw-door {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background: var(--rw-door);
  will-change: transform;
}

/* The left panel runs 1px past centre so no hairline shows at the seam. The
   right panel sits on top, hiding exactly that 1px - which keeps the two icon
   halves meeting on the true centre line rather than overlapping. */
.rw-door-l { left: 0; width: calc(50% + 1px); }
.rw-door-r { right: 0; }

/* Each door carries one supplied half of the mark, flush to the seam */
.rw-door-icon {
  position: absolute;
  top: 50%;
  height: 92px;
  margin-top: -46px;
  background-repeat: no-repeat;
  background-size: contain;
}

.rw-door-l .rw-door-icon {
  right: 0;
  width: 47px;
  background-image: url("../img/raiwin-icon-firsthalf.png");
  background-position: right center;
}

.rw-door-r .rw-door-icon {
  left: 0;
  width: 44px;
  background-image: url("../img/raiwin-icon-secondhalf.png");
  background-position: left center;
}

/* Shine sweep.
   The mark is split across two panels, so the gleam is a single overlay sitting
   above both - masked to the full icon silhouette so the light only lands on the
   logo itself. It runs twice, then the doors part. */
.rw-door-shine {
  position: absolute;
  top: 50%;
  left: calc(50% - 46px);
  width: 91px;
  height: 92px;
  margin-top: -46px;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;

  -webkit-mask-image: url("../img/raiwin-icon.png");
  mask-image: url("../img/raiwin-icon.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.rw-door-shine::before {
  content: "";
  position: absolute;
  top: -25%;
  left: 0;
  width: 52%;
  height: 150%;
  background: linear-gradient(90deg,
    var(--rw-shine-out) 0%,
    var(--rw-shine-mid) 42%,
    var(--rw-shine-hot) 50%,
    var(--rw-shine-mid) 58%,
    var(--rw-shine-out) 100%);
  transform: translateX(-200%) skewX(-18deg);
}

/* Two passes with a beat between them, then it rests off-mask */
.rw-doors.is-shining .rw-door-shine::before {
  animation: rw-shine 0.75s ease-in-out 2;
}

@keyframes rw-shine {
  0%   { transform: translateX(-200%) skewX(-18deg); }
  46%  { transform: translateX(200%) skewX(-18deg); }
  100% { transform: translateX(200%) skewX(-18deg); }
}

/* Once the panels start parting, the assembled mark no longer exists */
.rw-doors.is-open .rw-door-shine { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .rw-door-shine { display: none; }
}

/* Closed: panels meet in the middle. This is the default so every page
   arrives closed and opens itself once loaded. */
.rw-doors .rw-door-l { transform: translateX(0); }
.rw-doors .rw-door-r { transform: translateX(0); }

/* Open: panels retreat to their edges */
.rw-doors.is-open { pointer-events: none; }
.rw-doors.is-open .rw-door-l { transform: translateX(-100%); }
.rw-doors.is-open .rw-door-r { transform: translateX(100%); }

.rw-doors.is-animating .rw-door {
  transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Fully retracted - taken out of the accessibility tree and paint entirely */
.rw-doors.is-done { visibility: hidden; }

/* Closing again on navigation */
.rw-doors.is-closing { pointer-events: all; }

@media (prefers-reduced-motion: reduce) {
  .rw-doors { display: none; }
}

/* ==========================================================================
   18. Hero - editorial two-column layout
   ========================================================================== */
.rw-hero-inner { max-width: 62ch; }

.rw-hero-rule {
  height: 1px;
  background: var(--rw-line);
  margin-top: 40px;
}


/* Scroll cue */
.rw-scroll-cue {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rw-text-mute);
}
.rw-scroll-cue svg { width: 14px; height: 14px; }

/* ==========================================================================
   19. Inner project pages
   ========================================================================== */
.rw-crumb {
  padding-top: 96px;
  padding-bottom: 4px;
  font-size: 12.5px;
  color: var(--rw-text-mute);
}
.rw-crumb .rw-shell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rw-crumb a { color: var(--rw-text-dim); }
.rw-crumb a:hover { color: var(--rw-blue); }
.rw-crumb span[aria-current] { color: var(--rw-text); }

/* On an inner page the case study is the whole page, so drop the divider */
.rw-case-page { border-top: 0; padding-top: 12px; }
.rw-case-page h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-block: 10px 14px; }

.rw-nextwrap { padding-top: 0; }

.rw-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius-lg);
  transition: border-color 0.18s ease;
}
.rw-next:hover { border-color: var(--rw-line-3); }
.rw-next strong { display: block; font-size: 1.2rem; font-weight: 600; margin-top: 5px; }
.rw-next svg { width: 20px; height: 20px; flex: none; color: var(--rw-blue); }

.rw-cta {
  margin-top: 20px;
  padding: 32px 24px;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius-lg);
  background: var(--rw-surface);
  text-align: center;
}
.rw-cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.rw-cta p { color: var(--rw-text-dim); font-size: 14.5px; margin: 10px 0 22px; }
.rw-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

@media (min-width: 768px) {
  .rw-crumb { padding-top: 108px; }
  .rw-cta { padding: 44px 32px; }
}

@media (min-width: 1024px) {
  .rw-scroll-cue { display: flex; }
}


/* ==========================================================================
   21. Performance-marketing page - engagement ledger
   ========================================================================== */
.rw-ledger { display: grid; gap: 0; border-top: 1px solid var(--rw-line); margin-top: 8px; }

.rw-engage { padding: 30px 0; border-bottom: 1px solid var(--rw-line); }

.rw-engage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.rw-engage-head h3 { font-size: 1.2rem; font-weight: 600; }
.rw-engage-role { font-size: 13.5px; color: var(--rw-text-dim); }
.rw-engage-when { font-size: 12.5px; color: var(--rw-text-mute); white-space: nowrap; }

.rw-engage-head-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }

.rw-headline-stat {
  display: inline-block;
  margin: 12px 0 18px;
  padding: 7px 14px;
  border: 1px solid var(--rw-line-2);
  border-left: 2px solid var(--rw-blue);
  border-radius: 0 var(--rw-radius) var(--rw-radius) 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--rw-text);
}

/* Numbers inside prose */
.rw-num { color: var(--rw-blue); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Big scoreboard on the marketing page */
.rw-bignum {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius);
  overflow: hidden;
}

.rw-bignum-cell {
  padding: 22px 18px;
  border-bottom: 1px solid var(--rw-line);
  border-right: 1px solid var(--rw-line);
}
.rw-bignum-cell:nth-child(2n) { border-right: 0; }
.rw-bignum-cell:nth-last-child(-n+2) { border-bottom: 0; }

.rw-bignum-cell strong {
  font-family: var(--rw-font-display);
  display: block;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--rw-text);
}
.rw-bignum-cell p { margin: 9px 0 0; font-size: 13px; color: var(--rw-text-dim); }
.rw-bignum-cell span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--rw-text-mute); }

/* Platform / tool chips */
.rw-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.rw-chip {
  padding: 6px 12px;
  border: 1px solid var(--rw-line-2);
  border-radius: var(--rw-radius);
  font-size: 12.5px;
  color: var(--rw-text-dim);
}

@media (min-width: 600px) {
  .rw-bignum { grid-template-columns: repeat(3, 1fr); }
  .rw-bignum-cell:nth-child(2n) { border-right: 1px solid var(--rw-line); }
  .rw-bignum-cell:nth-child(3n) { border-right: 0; }
  .rw-bignum-cell:nth-last-child(-n+3) { border-bottom: 0; }
}

/* ==========================================================================
   22. Work index - projects as an editorial list, not a card grid
   ========================================================================== */
.rw-index { margin-top: 34px; border-top: 1px solid var(--rw-line); }

.rw-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rw-line);
  will-change: transform;
}

.rw-row.is-hidden { display: none; }

.rw-row-no {
  align-self: start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rw-text-mute);
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}

.rw-row-main { min-width: 0; }

.rw-row-title {
  display: block;
  font-family: var(--rw-font-display);
  font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.14;
  color: var(--rw-text);
}

.rw-row-meta {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  color: var(--rw-text-mute);
}

.rw-row-year {
  font-size: 12.5px;
  color: var(--rw-text-mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  align-self: start;
  padding-top: 6px;
}

.rw-row-go {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rw-line-2);
  color: var(--rw-blue);
  flex: none;
}
.rw-row-go svg { width: 16px; height: 16px; }

/* Inline thumbnail carries the visual where there is no hover */
.rw-row-thumb {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--rw-radius);
  border: 1px solid var(--rw-line);
}

/* Cursor-tracked preview (pointer devices only) */
.rw-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 300px;
  height: 200px;
  margin: -100px 0 0 -150px;
  border-radius: var(--rw-radius);
  border: 1px solid var(--rw-line-2);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  display: none;
  background: var(--rw-surface);
}
.rw-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   23. Marketing band - visually separate from the development work
   ========================================================================== */
.rw-mkt { border-block: 1px solid var(--rw-line); background: var(--rw-surface); }

.rw-mkt-grid { display: grid; gap: 40px; }

.rw-mkt-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; }

.rw-mkt-nums > div { padding: 18px 4px; }

.rw-mkt-nums dd {
  font-family: var(--rw-font-display);
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--rw-text);
  font-variant-numeric: tabular-nums;
}

.rw-mkt-nums dt { margin-top: 8px; font-size: 12.5px; color: var(--rw-text-mute); }

/* Scroll-velocity marquee */
.rw-marquee {
  overflow: hidden;
  padding-block: 14px;
  border-bottom: 1px solid var(--rw-line);
  margin-bottom: clamp(48px, 6vw, 72px);
}

.rw-marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
  will-change: transform;
}

.rw-marquee-track span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rw-text-mute);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .rw-row { grid-template-columns: auto 1fr auto auto; padding: 26px 0; gap: 22px; }
  .rw-row-thumb { display: none; }
  .rw-row-go { display: grid; }
  .rw-mkt-nums { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .rw-mkt-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .rw-mkt-nums { grid-template-columns: repeat(2, 1fr); }
  .rw-mkt-nums > div { padding: 20px 8px; }
}

@media (hover: hover) and (pointer: fine) {
  .rw-preview { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .rw-preview { display: none !important; }
}


/* ==========================================================================
   24. Marketing case blocks - layout for the campaign write-ups
   ========================================================================== */
.rw-engage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 22px;
}

.rw-engage-head h3 {
  min-width: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.24;
  max-width: 34ch;
}

.rw-engage-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rw-text-mute);
  /* must be allowed to wrap - some of these run to 40+ characters */
  max-width: 100%;
}

.rw-engage-grid { display: grid; gap: 24px; }

/* Result tiles beside each write-up */
.rw-engage-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius);
  overflow: hidden;
}

.rw-engage-stats > div {
  padding: 16px 14px;
  border-bottom: 1px solid var(--rw-line);
  border-right: 1px solid var(--rw-line);
}
.rw-engage-stats > div:nth-child(2n) { border-right: 0; }
.rw-engage-stats > div:nth-last-child(-n+2) { border-bottom: 0; }

.rw-engage-stats strong {
  display: block;
  font-family: var(--rw-font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--rw-text);
}

.rw-engage-stats span {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--rw-text-mute);
  line-height: 1.4;
}

@media (min-width: 900px) {
  .rw-engage-grid { grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: start; }
}

/* ==========================================================================
   25. Video lightbox
   ========================================================================== */
.rw-lb {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--rw-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.rw-lb.is-open { opacity: 1; visibility: visible; }

.rw-lb-inner {
  position: relative;
  width: min(1100px, 100%);
  max-height: 88vh;
  border-radius: var(--rw-radius-lg);
  border: 1px solid var(--rw-line-2);
  background: var(--rw-lb-bg);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.rw-lb.is-open .rw-lb-inner { transform: scale(1); }

.rw-lb video { width: 100%; max-height: 74vh; display: block; background: var(--rw-lb-bg); }

.rw-lb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--rw-line);
}

.rw-lb-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--rw-line-2);
  background: transparent;
  color: var(--rw-text);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.rw-lb-btn:hover { background: var(--rw-blue); border-color: var(--rw-blue); color: var(--rw-on-blue); }
.rw-lb-btn svg { width: 16px; height: 16px; }
.rw-lb-btn .rw-ic-pause, .rw-lb-btn .rw-ic-unmute { display: none; }
.rw-lb-btn.is-playing .rw-ic-play { display: none; }
.rw-lb-btn.is-playing .rw-ic-pause { display: block; }
.rw-lb-btn.is-muted .rw-ic-mute { display: none; }
.rw-lb-btn.is-muted .rw-ic-unmute { display: block; }

.rw-lb-track {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--rw-line-2);
  cursor: pointer;
  position: relative;
}
.rw-lb-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 99px;
  background: var(--rw-blue);
}

.rw-lb-time {
  font-size: 12px;
  color: var(--rw-text-mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rw-lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rw-line-2);
  background: var(--rw-scrim);
  color: var(--rw-text);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.rw-lb-close:hover { background: var(--rw-blue); border-color: var(--rw-blue); color: var(--rw-on-blue); }
.rw-lb-close svg { width: 17px; height: 17px; }

.rw-lb-cap { padding: 0 14px 14px; font-size: 12.5px; color: var(--rw-text-mute); }

/* Signals that a case-study video opens a player */
.rw-video-wrap { cursor: zoom-in; }

body.rw-lb-open { overflow: hidden; }


/* Simple footer contact column */
.rw-foot-contact { display: grid; gap: 12px; align-content: start; }

.rw-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--rw-text);
  transition: color 0.18s ease;
}
.rw-foot-link:hover { color: var(--rw-blue); }
.rw-foot-link svg { width: 16px; height: 16px; flex: none; color: var(--rw-text-mute); }
.rw-foot-link:hover svg { color: var(--rw-blue); }


/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }


/* ==========================================================================
   26. Display weight - Alterwave Light on the big type
   ========================================================================== */
.rw-hero h1,
.rw-case-page h1,
.rw-title,
.rw-row-title,
.rw-metric-num,
.rw-bignum-cell strong,
.rw-mkt-nums dd,
.rw-score-num {
  font-weight: 300;
  letter-spacing: -0.03em;
}

/* Light strokes need a touch more room to breathe */
.rw-hero h1, .rw-case-page h1, .rw-title { line-height: 1.1; }


/* Project header at desktop */
@media (min-width: 900px) {
  .rw-case-intro { grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: end; }
  .rw-case-meta { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   27. Recommended case studies
   ========================================================================== */
.rw-recos { border-top: 1px solid var(--rw-line); }

.rw-reco-grid { display: grid; gap: 18px; margin-top: 30px; }

.rw-reco {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius-lg);
  overflow: hidden;
  background: var(--rw-surface);
  transition: border-color 0.2s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.rw-reco:hover { border-color: var(--rw-line-3); transform: translateY(-4px); }

.rw-reco-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--rw-line);
  background: var(--rw-surface-2);
}
.rw-reco-media img { width: 100%; height: 100%; object-fit: cover; }

/* Text panel for the engagement that has no screenshot */
.rw-reco-media--stat {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 22px;
}
.rw-reco-media--stat b {
  font-family: var(--rw-font-display);
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--rw-text);
}
.rw-reco-media--stat span { font-size: 12px; color: var(--rw-text-mute); }

.rw-reco-body { display: block; padding: 18px 20px 20px; }

.rw-reco-client {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rw-text-mute);
}

.rw-reco-body strong {
  display: block;
  margin: 7px 0 8px;
  font-family: var(--rw-font-display);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--rw-text);
}

.rw-reco-meta { display: block; font-size: 12.5px; color: var(--rw-text-mute); line-height: 1.5; }

.rw-reco-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rw-blue);
}
.rw-reco-go svg { width: 14px; height: 14px; }

@media (min-width: 640px) {
  .rw-reco-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .rw-reco-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   28. Hero — kinetic rotating word
   Sits inline in the headline; the mask is taller than the line so descenders
   are never clipped, and the offset puts the baseline back where it belongs.
   ========================================================================== */
.rw-rot {
  display: inline-block;
  overflow: hidden;
  height: 1.32em;
  vertical-align: -0.28em;
  margin-left: 0.28em;
  white-space: nowrap;
}

.rw-rot-track { display: block; will-change: transform; }

.rw-rot-track > span {
  display: block;
  /* max-content, or every word measures the container width and the
     width tween has nothing to animate */
  width: max-content;
  height: 1.32em;
  line-height: 1.32;
  white-space: nowrap;
}

/* Before JS measures it, only the first word should be visible */
.js-off .rw-rot { height: auto; vertical-align: baseline; }
.js-off .rw-rot-track > span:not(:first-child) { display: none; }

/* ==========================================================================
   29. Mobile refinements
   ========================================================================== */
@media (max-width: 767px) {
  /* A hero should still feel like a hero on a phone */
  .rw-hero h1 { font-size: clamp(2.45rem, 10.5vw, 3.2rem); letter-spacing: -0.035em; }
  .rw-hero { padding-top: 116px; padding-bottom: 52px; }
  .rw-lead { font-size: 1.02rem; line-height: 1.62; }

  .rw-title { font-size: clamp(1.95rem, 8vw, 2.4rem); }

  /* Stack the CTAs full width — easier to hit, reads more deliberate */
  .rw-hero .rw-btn { flex: 1 1 100%; padding-block: 15px; }

  .rw-metrics { margin-top: 38px; }
  .rw-metric { padding: 18px 16px; }
  .rw-metric-num { font-size: 1.75rem; }

  /* Work index: bigger titles, thumbnail leads the row */
  .rw-row { padding: 20px 0 24px; gap: 12px 14px; }
  .rw-row-title { font-size: 1.45rem; }
  .rw-row-thumb { grid-row: 1; margin-bottom: 4px; aspect-ratio: 2 / 1; }
  .rw-row-no { padding-top: 2px; }
  .rw-row-year { padding-top: 2px; }

  .rw-case-meta > div { padding: 14px 15px; }
  .rw-contact-left, .rw-contact-right { padding: 28px 22px; }
  .rw-cta { padding: 28px 20px; }
  .rw-footer-base { gap: 16px; }
}

/* Touch targets — 44px minimum on any coarse pointer */
@media (pointer: coarse) {
  .rw-filter { padding: 12px 18px; }
  .rw-burger { width: 46px; height: 46px; }
  .rw-social { width: 44px; height: 44px; }
  .rw-copy-btn { width: 44px; height: 44px; }
  .rw-brand { padding-block: 4px; }
  .rw-foot-link { padding-block: 12px; }
  .rw-filter { padding: 14px 18px; }
  .rw-reach-action { padding: 13px 18px; }
  .rw-video-btn { width: 46px; height: 46px; }
  .rw-lb-btn { width: 46px; height: 46px; }
  .rw-lb-track { height: 8px; }
  .rw-top { width: 48px; height: 48px; }
  .rw-mobile-nav a { padding: 16px 0; }
  .rw-footer-links a { padding-block: 4px; }
}
