/* =====================================================================
   RaneWorks — public site theme
   Direction: CINEMATIC DARK. Deep plum throughout, purple as light/glow.
   Display: Space Grotesk.  Text/UI: Open Sans.  No orange.
   ===================================================================== */

:root {
  /* Dark surfaces */
  --rw-bg:    #131019;   /* page */
  --rw-bg-2:  #1a1622;   /* alternate sections / card base */
  --rw-bg-3:  #221c30;   /* raised */

  /* Light type on dark */
  --rw-ink:   #ffffff;
  --rw-text:  rgba(255, 255, 255, 0.74);
  --rw-muted: rgba(255, 255, 255, 0.52);
  --rw-line:  rgba(255, 255, 255, 0.10);
  --rw-line-2:rgba(255, 255, 255, 0.18);

  /* Brand purple family */
  --rw-purple:        #694bcd;   /* brand fill */
  --rw-purple-bright: #8a6fe6;   /* hover / glow */
  --rw-purple-deep:   #4a2f93;
  --rw-orchid:        #b9a8e6;   /* light accent: eyebrows, links, arrows */
  --rw-purple-ink:    #1a1330;   /* footer / deep band */

  /* Bright interlude band (logo wall) */
  --rw-light:       #f4f3f7;
  --rw-light-2:     #ffffff;
  --rw-light-ink:   #1b1623;
  --rw-light-muted: #6f6880;
  --rw-light-line:  rgba(28, 23, 38, 0.12);

  --rw-radius:   4px;
  --rw-container:1680px;
  --rw-gutter:   3vw;
  --rw-header-h: 88px;
  --rw-ease: cubic-bezier(0.22, 0.68, 0.18, 1);
}

/* --------------------------------------------------------------- Base */

html { font-size: 18px; scroll-behavior: smooth; }
@media (max-width: 640px) { html { font-size: 17px; } }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--rw-text);
  background: var(--rw-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.015em;
  color: var(--rw-ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--rw-orchid); text-decoration: none; transition: color 0.2s var(--rw-ease); }
a:hover { color: #fff; text-decoration: none; }
.rw-band-light a:hover { color: var(--rw-purple); }

img { max-width: 100%; height: auto; display: block; }
::selection { background: rgba(138, 111, 230, 0.35); color: #fff; }

/* ------------------------------------------------------ Accessibility */

/* Visible, consistent keyboard focus (WCAG 2.4.7) */
:focus-visible { outline: 2px solid var(--rw-orchid); outline-offset: 2px; border-radius: 2px; }
#rw-main:focus { outline: none; }

/* Screen-reader-only text */
.rw-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link: hidden until focused, then pinned top-left */
.rw-skip {
  position: fixed; top: 0; left: 0; z-index: 2000;
  transform: translateY(-120%); transition: transform 0.2s var(--rw-ease);
  background: var(--rw-purple); color: #fff; padding: 0.8em 1.2em;
  font-weight: 600; font-size: 0.9rem; border-radius: 0 0 8px 0;
}
.rw-skip:focus { transform: translateY(0); color: #fff; }

/* Inline text links need a non-colour cue (WCAG 1.4.1) */
.rw-lead a, .rw-prose a, .rw-post__excerpt a, .rw-statement p a, .rw-cap__text a {
  text-decoration: underline; text-underline-offset: 3px;
}

/* Honour reduced-motion across the board (WCAG 2.2.2 / 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------- Helpers */

.rw-container { width: min(var(--rw-container), 94vw); margin-inline: auto; }
.rw-container--narrow { width: min(820px, 94vw); margin-inline: auto; }
.rw-section { padding: clamp(78px, 9vw, 140px) 0; }
.rw-section--tight { padding: clamp(58px, 6vw, 96px) 0; }
.rw-center { text-align: center; }

.rw-eyebrow {
  display: inline-flex; align-items: center; gap: 0.85em;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--rw-orchid); margin: 0 0 1.3rem;
}
.rw-eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: 0.6; }
.rw-eyebrow--center { justify-content: center; }
.rw-eyebrow--light { color: rgba(255, 255, 255, 0.7); }

.rw-display    { font-family: 'Inter', sans-serif; font-weight: 300; font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.02em; }
.rw-display-lg { font-family: 'Inter', sans-serif; font-weight: 300; font-size: clamp(2.6rem, 6.8vw, 5.4rem); letter-spacing: -0.025em; line-height: 1.04; }
.rw-h2         { font-family: 'Inter', sans-serif; font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.02em; }
.rw-lead   { font-size: clamp(1.05rem, 1.5vw, 1.26rem); line-height: 1.62; color: var(--rw-muted); font-weight: 300; }
.rw-measure{ max-width: 60ch; }
.rw-center .rw-measure { margin-inline: auto; }

/* Buttons */
.rw-btn {
  --b: var(--rw-purple);
  box-sizing: border-box;
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1;
  padding: 1.15em 2em; border: 1px solid var(--b); border-radius: 8px;
  background: var(--b); color: #fff; cursor: pointer;
  transition: background 0.25s var(--rw-ease), border-color 0.25s var(--rw-ease), color 0.25s var(--rw-ease), transform 0.25s var(--rw-ease), box-shadow 0.25s var(--rw-ease);
}
.rw-btn:hover { background: var(--rw-purple-bright); border-color: var(--rw-purple-bright); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(138, 111, 230, 0.6); }
.rw-btn svg { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--rw-ease); }
.rw-btn:hover svg { transform: translateX(4px); }
.rw-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); box-shadow: none; }
.rw-btn--ghost:hover { background: #fff; color: var(--rw-bg); border-color: #fff; box-shadow: none; }
.rw-btn--ink { background: transparent; color: var(--rw-light-ink); border-color: var(--rw-light-line); }
.rw-btn--ink:hover { background: var(--rw-purple); color: #fff; border-color: var(--rw-purple); }

.rw-arrow { display: inline-flex; align-items: center; gap: 0.55em; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rw-orchid); }
.rw-arrow svg { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--rw-ease); }
.rw-arrow:hover svg { transform: translateX(5px); }

.rw-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--rw-ease), transform 0.8s var(--rw-ease); }
.rw-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rw-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.rw-section-head { margin-bottom: clamp(2.4rem, 4vw, 3.6rem); }
.rw-section-head--center { text-align: center; }
.rw-section-head--center .rw-measure { margin-inline: auto; }

/* ------------------------------------------------------------ Header */

.rw-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--rw-header-h); display: flex; align-items: center; transition: background 0.35s var(--rw-ease), box-shadow 0.35s var(--rw-ease), height 0.35s var(--rw-ease); }
.rw-header__inner { width: min(var(--rw-container), 94vw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.rw-header__logo img { height: 38px; width: auto; }

.rw-nav { display: flex; align-items: center; gap: 2.1rem; }
.rw-nav a { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.82rem; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.86); position: relative; padding: 0.4em 0; }
.rw-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--rw-ease); }
.rw-nav a:hover::after, .rw-nav a.rw-active::after { transform: scaleX(1); }
.rw-nav a:hover { color: #fff; }
.rw-nav__cta { border: 1px solid rgba(255, 255, 255, 0.4) !important; border-radius: 8px; padding: 0.7em 1.35em !important; text-transform: uppercase; font-size: 0.72rem !important; letter-spacing: 0.14em !important; }
.rw-nav__cta::after { display: none; }
.rw-nav__cta:hover { background: var(--rw-purple); border-color: var(--rw-purple) !important; color: #fff !important; }

.rw-drop { position: relative; }
.rw-dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 20;
  background: var(--rw-bg-3); border: 1px solid var(--rw-line-2); border-radius: var(--rw-radius);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8); padding: 0.6rem; min-width: 272px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.18s var(--rw-ease), transform 0.18s var(--rw-ease), visibility 0.18s;
}
/* Transparent bridge so the mouse can travel the gap without closing the menu */
.rw-dropdown::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
/* Open on hover (mouse) AND focus-within (keyboard: tab to the toggle or items) */
.rw-drop:hover > .rw-dropdown,
.rw-drop:focus-within > .rw-dropdown { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .rw-dropdown { transition: none; } }
.rw-dropdown a { display: block; color: var(--rw-text); font-weight: 400; letter-spacing: 0; font-size: 0.9rem; padding: 0.7em 0.9em; border-radius: 2px; }
.rw-dropdown a::after { display: none; }
.rw-dropdown a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.rw-header.is-solid { height: 72px; background: rgba(20, 15, 32, 0.9); backdrop-filter: saturate(150%) blur(10px); box-shadow: 0 16px 34px -28px rgba(0, 0, 0, 0.85); }

.rw-burger { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.rw-burger svg { width: 26px; height: 26px; }
@media (max-width: 960px) { .rw-nav { display: none; } .rw-burger { display: inline-flex; } }

.rw-mobile-nav .uk-offcanvas-bar { background: var(--rw-purple-ink); width: 300px; padding: 2.4rem 2rem; }
.rw-mobile-nav a { display: block; color: rgba(255, 255, 255, 0.86); font-family: 'Inter', sans-serif; font-weight: 500; font-size: 1.35rem; padding: 0.55em 0; border-bottom: 1px solid var(--rw-line); }
.rw-mobile-nav a:hover { color: #fff; }
.rw-mobile-nav .rw-sub a { font-family: 'Inter', sans-serif; font-size: 0.95rem; padding-left: 1rem; opacity: 0.8; }

/* -------------------------------------------------------------- Hero */

.rw-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--rw-bg-2); }
.rw-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.rw-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(13,10,20,0.55) 0%, rgba(13,10,20,0.35) 40%, rgba(13,10,20,0.96) 100%),
    radial-gradient(130% 95% at 78% 115%, rgba(105,75,205,0.55) 0%, rgba(13,10,20,0) 58%);
}
.rw-hero__inner { position: relative; z-index: 2; width: min(var(--rw-container), 94vw); margin-inline: auto; padding: calc(var(--rw-header-h) + 4vh) 0 15vh; color: #fff; }
.rw-hero__title { color: #fff; max-width: 15ch; margin: 0.4rem 0 1.5rem; }
.rw-hero__sub { color: rgba(255, 255, 255, 0.8); font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 300; max-width: 44ch; line-height: 1.55; }
.rw-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.rw-hero__cue { position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); z-index: 2; color: rgba(255, 255, 255, 0.66); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.rw-hero__cue span { width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,0.66), rgba(255,255,255,0)); animation: rw-cue 2.4s var(--rw-ease) infinite; }
@keyframes rw-cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------------------------------------------- Statement band -*/

.rw-statement { position: relative; background: var(--rw-bg-2); overflow: hidden; }
.rw-statement::after { content: ''; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, rgba(105,75,205,0.22), rgba(105,75,205,0) 70%); pointer-events: none; animation: rwGlowDrift 24s ease-in-out infinite alternate; }
.rw-statement > .rw-container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .rw-statement::after { animation: none; } }
.rw-statement .rw-years { font-family: 'Inter', sans-serif; font-weight: 300; color: #fff; font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; }
.rw-statement .rw-years em { font-style: normal; color: var(--rw-orchid); }

/* ---------------------------------------------------------- Services -*/

.rw-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 1100px) { .rw-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .rw-services-grid { grid-template-columns: 1fr; } }

.rw-service { background: var(--rw-bg-2); border: 1px solid var(--rw-line); border-radius: var(--rw-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s var(--rw-ease), box-shadow 0.4s var(--rw-ease), border-color 0.4s var(--rw-ease); }
.rw-service:hover { transform: translateY(-6px); border-color: var(--rw-line-2); box-shadow: 0 34px 64px -32px rgba(105, 75, 205, 0.5); }
.rw-service__media { aspect-ratio: 16 / 11; overflow: hidden; position: relative; }
.rw-service__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,16,25,0) 40%, rgba(19,16,25,0.45) 100%); }
.rw-service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--rw-ease); filter: brightness(0.92) saturate(0.95); }
.rw-service:hover .rw-service__media img { transform: scale(1.06); filter: brightness(1) saturate(1.02); }
.rw-service__body { padding: 1.7rem 1.6rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.rw-service__kicker { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rw-orchid); font-weight: 600; margin-bottom: 0.85rem; }
.rw-service__title { font-size: 1.3rem; margin-bottom: 0.7rem; }
.rw-service__title a { color: #fff; }
.rw-service:hover .rw-service__title a { color: var(--rw-orchid); }
.rw-service__text { font-size: 0.92rem; color: var(--rw-muted); line-height: 1.6; flex: 1; }
.rw-service__link { margin-top: 1.4rem; }

/* CTA tile that fills the trailing grid slot on service pages */
.rw-service--cta { justify-content: center; padding: 2.2rem 1.8rem; background: linear-gradient(160deg, var(--rw-purple-deep), var(--rw-purple-ink)); border-color: rgba(138, 111, 230, 0.34); }
.rw-service--cta:hover { box-shadow: 0 34px 64px -32px rgba(105, 75, 205, 0.6); }
.rw-service--cta .rw-service__kicker { margin-bottom: 0.7rem; }
.rw-service-cta__title { font-size: 1.4rem; font-weight: 400; color: #fff; margin-bottom: 0.7rem; }
.rw-service-cta__text { font-size: 0.92rem; color: rgba(255, 255, 255, 0.74); line-height: 1.6; margin-bottom: 1.4rem; }
.rw-service--cta .rw-service__link { margin-top: 0; }

/* Image placeholder (solutions imagery to be redone) */
.rw-ph { background: repeating-linear-gradient(135deg, #221c30 0, #221c30 13px, #1e1929 13px, #1e1929 26px); display: flex; align-items: center; justify-content: center; }
.rw-ph__label { display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); font-weight: 500; }
.rw-service:hover .rw-ph__label { color: rgba(255, 255, 255, 0.6); }

/* Branded name placeholder for clients with no logo (monogram + name) */
.rw-clientph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; text-align: center; padding: 1.6rem; position: relative; overflow: hidden;
  background:
    radial-gradient(115% 80% at 78% 6%, rgba(138, 111, 230, 0.38), rgba(138, 111, 230, 0) 55%),
    linear-gradient(150deg, var(--rw-purple-deep) 0%, var(--rw-purple-ink) 95%);
}
/* Faint "digital dots" texture (brand motif), fading across the tile */
.rw-clientph::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(160deg, rgba(0, 0, 0, 0.9), transparent 72%);
          mask-image: linear-gradient(160deg, rgba(0, 0, 0, 0.9), transparent 72%);
}
.rw-clientph__monogram {
  position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1.6rem; letter-spacing: 0.02em; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(185, 168, 230, 0.55);
  box-shadow: 0 0 0 7px rgba(105, 75, 205, 0.14), 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s var(--rw-ease), box-shadow 0.3s var(--rw-ease);
}
.rw-clientph__name { position: relative; z-index: 1; font-family: 'Inter', sans-serif; font-weight: 400; font-size: clamp(1.05rem, 1.8vw, 1.4rem); line-height: 1.25; letter-spacing: -0.01em; color: #fff; max-width: 92%; }
.rw-profile:hover .rw-clientph__monogram { border-color: var(--rw-orchid); box-shadow: 0 0 0 7px rgba(105, 75, 205, 0.24), 0 12px 30px -10px rgba(0, 0, 0, 0.5); }

/* Featured client profiles */
.rw-profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 980px) { .rw-profiles { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.rw-profile { background: var(--rw-bg-3); border: 1px solid var(--rw-line); border-radius: var(--rw-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s var(--rw-ease), box-shadow 0.4s var(--rw-ease), border-color 0.4s var(--rw-ease); }
.rw-profile:hover { transform: translateY(-6px); border-color: var(--rw-line-2); box-shadow: 0 34px 64px -32px rgba(105, 75, 205, 0.5); }
.rw-profile__media { aspect-ratio: 3 / 2; position: relative; overflow: hidden; }
.rw-profile__body { padding: 1.7rem 1.6rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.rw-profile__meta { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rw-orchid); font-weight: 600; margin-bottom: 0.8rem; }
.rw-profile__since { color: #fff; }
.rw-profile__meta a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(185, 168, 230, 0.4); transition: color 0.2s var(--rw-ease), text-decoration-color 0.2s var(--rw-ease); }
.rw-profile__meta a:hover { color: #fff; text-decoration-color: #fff; }
.rw-profile__name { font-size: 1.42rem; margin-bottom: 0.7rem; }
.rw-profile__name a { color: #fff; }
.rw-profile:hover .rw-profile__name a { color: var(--rw-orchid); }
.rw-profile__summary { font-size: 0.94rem; color: var(--rw-muted); line-height: 1.62; flex: 1; }
.rw-profile__link { margin-top: 1.4rem; }
.rw-profile__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Portfolio index: a denser, wrapping grid for the full client list */
.rw-profiles--wrap { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .rw-profiles--wrap { grid-template-columns: 1fr 1fr; max-width: none; } }
@media (max-width: 600px) { .rw-profiles--wrap { grid-template-columns: 1fr; max-width: 520px; } }

/* --------------------------------------------- Client profile detail -*/

.rw-back-row { display: flex; align-items: center; gap: 0.85em; flex-wrap: wrap; margin-bottom: 1.3rem; }
.rw-back-row .rw-back, .rw-back-row .rw-eyebrow { margin-bottom: 0; }
.rw-back { color: rgba(255, 255, 255, 0.66); }
.rw-back:hover { color: #fff; }
.rw-back svg { transition: transform 0.25s var(--rw-ease); }
.rw-back:hover svg { transform: translateX(-4px); }

.rw-prose { color: var(--rw-muted); font-size: 1.02rem; line-height: 1.78; }
.rw-prose > :first-child { margin-top: 0; }
.rw-prose h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 2.2rem 0 1rem; }
.rw-prose h3 { color: #fff; font-size: 1.2rem; margin: 1.8rem 0 0.8rem; }
.rw-prose p { margin: 0 0 1.2rem; }
.rw-prose a { color: var(--rw-orchid); text-decoration: underline; text-underline-offset: 3px; }
.rw-prose a:hover { color: var(--rw-purple-bright); }
.rw-prose ul, .rw-prose ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.rw-prose li { margin-bottom: 0.5rem; }
.rw-prose img { max-width: 100%; height: auto; border-radius: var(--rw-radius); margin: 1.4rem 0; }
.rw-prose blockquote { margin: 1.6rem 0; padding: 0.4rem 0 0.4rem 1.4rem; border-left: 2px solid var(--rw-purple); color: var(--rw-light); font-style: italic; }

/* Fact / details card on the profile page */
.rw-factcard { background: var(--rw-bg-3); border: 1px solid var(--rw-line); border-radius: var(--rw-radius); padding: 1.8rem 1.7rem; position: sticky; top: calc(var(--rw-header-h) + 22px); }
.rw-factcard__head { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rw-orchid); font-weight: 600; margin-bottom: 1.3rem; }
.rw-factcard__note { margin: 0; color: var(--rw-muted); font-size: 0.96rem; line-height: 1.62; }
.rw-facts { margin: 0; }
.rw-fact { padding: 0.95rem 0; border-top: 1px solid var(--rw-line); }
.rw-fact:first-child { padding-top: 0; border-top: 0; }
.rw-fact dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rw-subtle, rgba(255,255,255,.45)); margin-bottom: 0.5rem; }
.rw-fact dd { margin: 0; color: #fff; font-size: 0.98rem; }
.rw-fact dd a { color: var(--rw-orchid); }
.rw-fact dd a:hover { color: var(--rw-purple-bright); }
.rw-tag { display: inline-block; margin: 0 0.4rem 0.4rem 0; padding: 0.28rem 0.7rem; font-size: 0.78rem; color: var(--rw-orchid); background: rgba(105, 75, 205, 0.16); border: 1px solid rgba(138, 111, 230, 0.32); border-radius: 999px; }
.rw-tag--link { text-decoration: none; cursor: pointer; transition: background 0.2s var(--rw-ease), border-color 0.2s var(--rw-ease), color 0.2s var(--rw-ease); }
.rw-tag--link:hover { background: rgba(105, 75, 205, 0.3); border-color: var(--rw-orchid); color: #fff; }
.rw-factcard__cta { margin-top: 1.5rem; width: 100%; justify-content: center; }
@media (max-width: 959px) { .rw-factcard { position: static; margin-top: 2rem; } }

/* --------------------------------------------- Bright interlude band -*/

.rw-band-light { background: var(--rw-light); color: var(--rw-light-ink); }
.rw-band-light h1, .rw-band-light h2, .rw-band-light h3 { color: var(--rw-light-ink); }
.rw-band-light .rw-eyebrow { color: var(--rw-purple-deep); }
.rw-band-light .rw-lead { color: var(--rw-light-muted); }
.rw-band-light .rw-arrow { color: var(--rw-purple-deep); }

.rw-logos { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--rw-light-line); border-left: 1px solid var(--rw-light-line); }
@media (max-width: 1100px) { .rw-logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .rw-logos { grid-template-columns: repeat(2, 1fr); } }
.rw-logos a { display: flex; align-items: center; justify-content: center; padding: 2rem 1.4rem; min-height: 132px; border-right: 1px solid var(--rw-light-line); border-bottom: 1px solid var(--rw-light-line); background: var(--rw-light-2); transition: background 0.3s var(--rw-ease); }
.rw-logos a:hover { background: #faf9fc; }
.rw-logos img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.55; transition: filter 0.4s var(--rw-ease), opacity 0.4s var(--rw-ease), transform 0.4s var(--rw-ease); }
.rw-logos a:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }

/* --------------------------------------------------------- Insights -*/

.rw-band-2 { background: var(--rw-bg-2); }
.rw-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 880px) { .rw-posts { grid-template-columns: 1fr; } }
.rw-post { display: flex; flex-direction: column; }
.rw-post__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--rw-radius); background: var(--rw-bg-3); }
.rw-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--rw-ease); filter: brightness(0.95); }
.rw-post:hover .rw-post__media img { transform: scale(1.05); }
.rw-post__date { margin-top: 1.1rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rw-muted); }
.rw-post__title { font-size: 1.26rem; margin: 0.5rem 0 0.6rem; }
.rw-post__title a { color: #fff; }
.rw-post:hover .rw-post__title a { color: var(--rw-orchid); }
.rw-post__excerpt { font-size: 0.92rem; color: var(--rw-muted); }

/* -------------------------------------------------------- Subscribe -*/

.rw-subscribe { background: var(--rw-purple-ink); position: relative; overflow: hidden; }
.rw-subscribe::after { content: ''; position: absolute; left: 50%; bottom: -60%; width: 80%; height: 160%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(138,111,230,0.28), rgba(138,111,230,0) 70%); pointer-events: none; }
.rw-subscribe > .rw-container { position: relative; z-index: 1; }
.rw-subscribe__form { display: flex; gap: 0.8rem; margin-top: 2rem; max-width: 540px; margin-inline: auto; }
.rw-subscribe__form input[type=email] { flex: 1; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--rw-line-2); border-radius: var(--rw-radius); color: #fff; padding: 1.05em 1.2em; font-family: inherit; font-size: 0.95rem; }
.rw-subscribe__form input[type=email]::placeholder { color: rgba(255, 255, 255, 0.5); }
.rw-subscribe__form input[type=email]:focus { outline: none; border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.12); }
@media (max-width: 560px) { .rw-subscribe__form { flex-direction: column; } }

.rw-embed { margin-top: 2.4rem; }

/* Full-bleed helper */
.rw-bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Client logo marquee (full-bleed, dual-row, auto-scroll) */
.rw-marquee { margin-top: clamp(2.4rem, 4vw, 3.4rem); border-top: 1px solid var(--rw-light-line); }
.rw-marquee__row { overflow: hidden; border-bottom: 1px solid var(--rw-light-line); }
.rw-marquee__track { display: flex; width: max-content; animation: rw-scroll 80s linear infinite; }
.rw-marquee__track--rev { animation-direction: reverse; }
.rw-marquee:hover .rw-marquee__track { animation-play-state: paused; }
.rw-marquee__item { flex: 0 0 auto; width: 210px; height: 122px; display: flex; align-items: center; justify-content: center; padding: 0 2rem; border-right: 1px solid var(--rw-light-line); }
.rw-marquee__item img { max-height: 54px; max-width: 150px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.5; transition: filter 0.4s var(--rw-ease), opacity 0.4s var(--rw-ease), transform 0.4s var(--rw-ease); }
.rw-marquee__item:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.06); }
@keyframes rw-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .rw-marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; } }

/* Testimonials light band (Elfsight needs a light surface) */
.rw-testimonials { background: linear-gradient(180deg, #ffffff 0%, #efeaf8 100%); }

/* ------------------------------------------------------------ Footer -*/

.rw-footer { background: var(--rw-purple-ink); color: rgba(255, 255, 255, 0.62); padding: clamp(64px, 7vw, 96px) 0 2.4rem; }
.rw-footer a { color: rgba(255, 255, 255, 0.78); }
.rw-footer a:hover { color: #fff; }
.rw-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding-bottom: 3.4rem; border-bottom: 1px solid var(--rw-line); }
@media (max-width: 820px) { .rw-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; } }
@media (max-width: 520px) { .rw-footer__grid { grid-template-columns: 1fr; } }
.rw-footer__logo img { height: 40px; width: auto; margin-bottom: 1.4rem; }
.rw-footer__tag { color: rgba(255, 255, 255, 0.58); font-size: 0.95rem; max-width: 34ch; }
.rw-footer__col h4 { color: #fff; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.2rem; }
.rw-footer__col ul { list-style: none; margin: 0; padding: 0; }
.rw-footer__col li { margin-bottom: 0.7rem; font-size: 0.92rem; }
.rw-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.62); }
.rw-footer__bottom a { color: rgba(255, 255, 255, 0.78); }
.rw-footer__bottom svg { width: 0.95em; height: 0.95em; vertical-align: -0.14em; opacity: 0.85; margin-right: 4px; }
.rw-social { display: flex; gap: 1rem; margin-top: 1.6rem; }
.rw-social a { width: 38px; height: 38px; border: 1px solid var(--rw-line-2); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.82); }
.rw-social a:hover { background: var(--rw-purple); border-color: var(--rw-purple); color: #fff; }
.rw-social svg { width: 16px; height: 16px; }

/* ===================================================== Interior pages */

/* Page hero (clears the fixed header) */
.rw-page-hero { position: relative; background-color: var(--rw-bg-2); background-size: cover; background-position: center; overflow: hidden; padding: calc(var(--rw-header-h) + clamp(54px, 8vw, 104px)) 0 clamp(48px, 7vw, 92px); }
.rw-page-hero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(19,16,25,0.68) 0%, rgba(19,16,25,0.80) 55%, rgba(19,16,25,0.94) 100%),
    radial-gradient(120% 92% at 82% 112%, rgba(105,75,205,0.42) 0%, rgba(19,16,25,0) 60%); }
.rw-page-hero > .rw-container { position: relative; z-index: 1; }
.rw-page-hero h1 { max-width: 18ch; }
.rw-page-hero .rw-lead { max-width: 60ch; margin-top: 1.4rem; }

/* Stat row */
.rw-stats { display: flex; flex-wrap: wrap; gap: clamp(2.2rem, 6vw, 5rem); margin-top: 3rem; }
.rw-stat__num { font-family: 'Inter', sans-serif; font-weight: 300; font-size: clamp(2.1rem, 4vw, 3rem); color: #fff; line-height: 1; letter-spacing: -0.02em; }
.rw-stat__num em { font-style: normal; color: var(--rw-orchid); }
.rw-stat__label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rw-muted); margin-top: 0.7rem; }

/* Team */
/* Centered auto-fit: fits ~4 members per row on a desktop and stays balanced
   at any count, no left-aligned orphans. Cards are capped at 360px so a small
   team doesn't stretch into oversized cards, and the 300px minimum keeps the
   email on one line. */
.rw-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 360px)); justify-content: center; gap: 1.8rem; }
@media (max-width: 560px) { .rw-team { grid-template-columns: minmax(0, 360px); } }
.rw-member { background: var(--rw-bg-2); border: 1px solid var(--rw-line); border-radius: var(--rw-radius); overflow: hidden; transition: transform 0.4s var(--rw-ease), box-shadow 0.4s var(--rw-ease), border-color 0.4s var(--rw-ease); }
.rw-member:hover { transform: translateY(-5px); border-color: var(--rw-line-2); box-shadow: 0 30px 60px -32px rgba(105, 75, 205, 0.45); }
.rw-member__media { position: relative; aspect-ratio: 4 / 5; }
.rw-member__media img { width: 100%; height: 100%; object-fit: cover; }
/* Scrim so the signature stays legible over any photo. */
.rw-member__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(8, 6, 14, 0.85) 0%, rgba(8, 6, 14, 0.34) 26%, rgba(8, 6, 14, 0) 50%); }
.rw-member__media.rw-ph::after { background: linear-gradient(to top, rgba(8, 6, 14, 0.5) 0%, rgba(8, 6, 14, 0) 55%); }
/* Signature: first name, signed into the bottom-left corner. */
.rw-member__sig { position: absolute; left: 0.55rem; bottom: 0.3rem; z-index: 2; white-space: nowrap; font-family: 'Caveat', cursive; font-weight: 700; font-size: clamp(2.7rem, 8vw, 3.7rem); line-height: 0.82; color: var(--rw-orchid); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); transform: rotate(-5deg); transform-origin: left bottom; }
.rw-member:hover .rw-member__sig { color: #cdbcff; }
.rw-member__body { padding: 1.3rem 1.5rem 1.6rem; }
.rw-member__role { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rw-orchid); font-weight: 600; margin-bottom: 0.7rem; }
.rw-member__bio { font-size: 0.9rem; color: var(--rw-muted); line-height: 1.6; }
.rw-member__contact { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--rw-line); display: flex; flex-direction: column; gap: 0.5rem; }
.rw-member__contact a { display: inline-flex; align-items: center; gap: 0.6em; max-width: 100%; font-size: 0.82rem; color: var(--rw-muted); transition: color 0.2s var(--rw-ease); }
.rw-member__contact a svg { flex: 0 0 auto; color: var(--rw-orchid); opacity: 0.85; }
.rw-member__contact a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-member__contact a:hover { color: #fff; }
.rw-member__bio + .rw-member__contact { margin-top: 1.1rem; }

/* 404 — helpful links grid */
.rw-404-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.rw-404-link { display: block; padding: 1.3rem 1.4rem; background: var(--rw-bg-2); border: 1px solid var(--rw-line); border-radius: var(--rw-radius); transition: transform 0.3s var(--rw-ease), border-color 0.3s var(--rw-ease), background 0.3s var(--rw-ease); }
.rw-404-link:hover { transform: translateY(-3px); border-color: var(--rw-line-2); background: var(--rw-bg-3); }
.rw-404-link__label { display: flex; align-items: center; gap: 0.5em; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.05rem; color: #fff; }
.rw-404-link__label svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--rw-orchid); transition: transform 0.3s var(--rw-ease); }
.rw-404-link:hover .rw-404-link__label svg { transform: translateX(4px); }
.rw-404-link__desc { display: block; margin-top: 0.4rem; font-size: 0.86rem; color: var(--rw-muted); line-height: 1.5; }

/* History timeline */
.rw-timeline { max-width: 880px; }
.rw-milestone { display: grid; grid-template-columns: 140px 1fr; gap: 2rem; padding: 1.9rem 0; border-top: 1px solid var(--rw-line); }
.rw-milestone:last-child { border-bottom: 1px solid var(--rw-line); }
@media (max-width: 600px) { .rw-milestone { grid-template-columns: 1fr; gap: 0.5rem; } }
.rw-milestone__year { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 1.9rem; color: var(--rw-orchid); letter-spacing: -0.02em; line-height: 1; }
.rw-milestone__title { font-size: 1.18rem; color: #fff; margin-bottom: 0.4rem; }
.rw-milestone__text { font-size: 0.92rem; color: var(--rw-muted); line-height: 1.6; }

/* Values */
.rw-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .rw-values { grid-template-columns: 1fr; } }
.rw-value { border-top: 2px solid var(--rw-purple); border-radius: 0; padding-top: 1.4rem; }
.rw-value__num { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rw-orchid); font-weight: 600; margin-bottom: 0.8rem; }
.rw-value__title { font-size: 1.2rem; color: #fff; margin-bottom: 0.5rem; }
.rw-value__text { font-size: 0.92rem; color: var(--rw-muted); line-height: 1.6; }

/* --------------------------------- Expertise pages: intro + capabilities -*/

/* Intro figure: framed solution image with an offset depth panel + glow */
.rw-intro-figure { position: relative; margin: 0; }
.rw-intro-figure::before { content: ''; position: absolute; inset: 20px -20px -20px 20px; border-radius: var(--rw-radius); background: linear-gradient(155deg, rgba(105, 75, 205, 0.32), rgba(105, 75, 205, 0) 70%); z-index: 0; }
.rw-intro-figure img { position: relative; z-index: 1; display: block; width: 100%; border-radius: var(--rw-radius); border: 1px solid var(--rw-line-2); box-shadow: 0 44px 86px -44px rgba(105, 75, 205, 0.55); }
.rw-intro-figure figcaption { position: relative; z-index: 1; margin-top: 0.95rem; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rw-muted); display: flex; align-items: center; gap: 0.6em; }
.rw-intro-figure figcaption::before { content: ''; width: 22px; height: 1px; background: var(--rw-orchid); opacity: 0.7; }

/* Capability cards with bespoke icons */
.rw-caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem 2rem; }
.rw-caps--3 { grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin-inline: auto; gap: 2.6rem 3rem; }
@media (max-width: 1100px) { .rw-caps { grid-template-columns: repeat(2, 1fr); } .rw-caps--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .rw-caps { grid-template-columns: 1fr; } .rw-caps--3 { grid-template-columns: 1fr; } }
.rw-cap__icon { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rw-line-2); border-radius: 15px; background: rgba(105, 75, 205, 0.14); color: var(--rw-orchid); margin-bottom: 1.15rem; }
.rw-cap__icon svg { width: 27px; height: 27px; }
.rw-cap__num { font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; }
.rw-cap__title { font-size: 1.2rem; color: #fff; margin-bottom: 0.55rem; }
.rw-cap__text { font-size: 0.95rem; color: var(--rw-muted); line-height: 1.62; }

/* Stroke-draw the icon in on scroll (pathLength=1 normalizes every shape) */
.rw-cap__icon svg :where(path, rect, circle, line, polyline, ellipse) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.05s var(--rw-ease) 0.2s; }
.rw-cap.is-in .rw-cap__icon svg :where(path, rect, circle, line, polyline, ellipse) { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .rw-cap__icon svg :where(path, rect, circle, line, polyline, ellipse) { stroke-dashoffset: 0; transition: none; } }

/* Slow drifting ambient glow (capabilities band, homepage "why" band, etc.) */
.rw-caps-section, .rw-glowband { position: relative; overflow: hidden; }
.rw-caps-section::before, .rw-glowband::before { content: ''; position: absolute; width: 62vw; height: 62vw; left: -12vw; top: -18vw; background: radial-gradient(circle, rgba(105, 75, 205, 0.20), rgba(105, 75, 205, 0) 62%); pointer-events: none; z-index: 0; animation: rwGlowDrift 22s ease-in-out infinite alternate; }
.rw-caps-section > .rw-container, .rw-glowband > .rw-container { position: relative; z-index: 1; }
@keyframes rwGlowDrift { from { transform: translate(0, 0); } to { transform: translate(9vw, 7vw); } }
@media (prefers-reduced-motion: reduce) { .rw-caps-section::before, .rw-glowband::before { animation: none; } }

/* Brand "digital dots" motif (echoes the logo's dispersing dots), muted white */
.rw-contours, .rw-outcome__contours { position: absolute; inset: 0; width: 100%; height: 100%; color: #ffffff; opacity: 0.13; pointer-events: none; z-index: 0; }
.rw-outcome { position: relative; overflow: hidden; }
.rw-outcome__inner { position: relative; z-index: 1; }

/* CTA band */
.rw-cta { background: var(--rw-purple-ink); position: relative; overflow: hidden; }
.rw-cta::after { content: ''; position: absolute; left: 50%; bottom: -60%; width: 80%; height: 160%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(138,111,230,0.28), rgba(138,111,230,0) 70%); pointer-events: none; }
/* Brand leaf watermark (echoes the logo mark), faint, anchored right */
.rw-cta::before {
  content: ''; position: absolute; right: 2%; top: 50%; z-index: 0; pointer-events: none;
  width: clamp(230px, 26vw, 440px); height: clamp(320px, 38vw, 600px);
  transform: translateY(-50%) rotate(8deg);
  opacity: 0.1; background-repeat: no-repeat; background-position: center; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20520'%20fill='none'%20stroke='white'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M100%2030C180%2014%20256%2096%20276%20212C294%20296%20250%20396%20174%20454C156%20468%20142%20488%20134%20512C110%20470%2060%20400%2034%20296C18%20230%2040%2090%20100%2030Z'/%3E%3Cpath%20d='M140%20330C150%20250%20150%20170%20152%20100'/%3E%3Cpath%20d='M142%20322C175%20282%20195%20230%20210%20178'/%3E%3Cpath%20d='M146%20330C185%20305%20205%20280%20226%20252'/%3E%3Cpath%20d='M138%20320C118%20285%20105%20245%2096%20200'/%3E%3C/svg%3E");
}
.rw-cta > .rw-container { position: relative; z-index: 1; }

/* Contact */
.rw-contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.4rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .rw-contact { grid-template-columns: 1fr; } }
.rw-contact__item { margin-bottom: 1.7rem; }
.rw-contact__item .lbl { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rw-muted); margin-bottom: 0.45rem; }
.rw-contact__item a, .rw-contact__item .val { color: #fff; font-size: 1.05rem; }
.rw-contact__item a:hover { color: var(--rw-orchid); }

.rw-form-field { margin-bottom: 1.25rem; }
.rw-form-field label { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rw-muted); margin-bottom: 0.5rem; font-weight: 600; }
.rw-input { box-sizing: border-box; width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--rw-line-2); border-radius: var(--rw-radius); color: #fff; padding: 0.95em 1.05em; font-family: inherit; font-size: 0.98rem; transition: border-color 0.2s var(--rw-ease), background 0.2s var(--rw-ease); }
.rw-input::placeholder { color: rgba(255,255,255,0.5); }
.rw-input:focus { outline: none; border-color: var(--rw-orchid); background: rgba(255,255,255,0.09); }
textarea.rw-input { min-height: 170px; resize: vertical; }
select.rw-input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9a8e6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 15px; }
select.rw-input option { color: #1b1623; }
select.rw-input:required:invalid { color: rgba(255,255,255,0.38); }
.rw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .rw-form-row { grid-template-columns: 1fr; } }
.rw-form-field--invalid .rw-input { border-color: rgba(255,120,120,0.7); }
.rw-form-error { color: #ff9a9a; font-size: 0.82rem; margin-top: 0.4rem; }
.rw-form-note { color: var(--rw-muted); font-size: 0.82rem; margin: 0 0 1.2rem; }
.rw-alert-error { background: rgba(192,57,43,0.16); border: 1px solid rgba(255,120,120,0.45); border-radius: var(--rw-radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; color: #ffd3d3; font-size: 0.95rem; }
.rw-form-success { background: rgba(105,75,205,0.16); border: 1px solid var(--rw-orchid); border-radius: var(--rw-radius); padding: clamp(1.6rem, 3vw, 2.4rem); color: #fff; }
.rw-form-success h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.6rem; }
.rw-form-success p { color: rgba(255,255,255,0.78); }
