/* Base RAFTEC Variables extracted to replace missing colors_and_type.css */
:root {
  /* Fonts */
  --font-display: 'Jost', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-ui: 'Jost', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Basic scaling/spacing for completeness */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-32: 128px;
  
  --radius-1: 9px;
  --radius-2: 9px;
  --radius-3: 9px;
  --radius-pill: 9999px;
}

html, body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: #0d0d0f radial-gradient(circle at 50% 0%, #2a2a2f 0%, #0d0d0f 80%);
  background-attachment: fixed;
  color: var(--stone-200);
  
  /* Disable text selection across the site */
  user-select: none;
  -webkit-user-select: none;
}

a {
  text-decoration: none;
  color: inherit;
  pointer-events: none; /* Disable all links for coming soon mode */
}

button {
  border: none;
  background: none;
  font-family: inherit;
  pointer-events: none; /* Disable all buttons for coming soon mode */
}

* {
  box-sizing: border-box;
}


/* =========================================================
   RAFTEC website UI kit — page-scoped styles
   Builds on tokens from /colors_and_type.css, then OVERRIDES
   them on .rt-page with the rich oxblood + warm-stone theme.
   ========================================================= */

/* ---------- PALETTE OVERRIDE (rich oxblood + warm stone) ---------- */

.rt-page {
  /* warm dark surfaces (slight red undertone, not cool gunmetal) */
  --bg-page: transparent;
  --bg-section: rgba(0, 0, 0, 0.2);
  --bg-raised: rgba(255, 255, 255, 0.05);
  --bg-card: rgba(0, 0, 0, 0.4);
  --bg-sunken: rgba(0, 0, 0, 0.3);

  /* warm-stone neutral scale, anchored on #6b7280 */
  --stone-50:   #f3eee8;
  --stone-100:  #e3dcd2;
  --stone-200:  #cdc4b8;
  --stone-300:  #aaa197;
  --stone-400:  #6b7280;   /* ★ brand stone */
  --stone-500:  #54504a;
  --stone-600:  #3a3631;
  --stone-700:  #2a2622;
  --stone-800:  #1c1814;

  /* remap the system's steel-* tokens onto the stone scale */
  --steel-50:   var(--stone-50);
  --steel-100:  var(--stone-100);
  --steel-200:  var(--stone-200);
  --steel-300:  var(--stone-300);
  --steel-400:  var(--stone-400);
  --steel-500:  var(--stone-500);
  --steel-600:  var(--stone-600);

  --ink-700: var(--bg-card);
  --ink-800: var(--bg-section);
  --ink-900: var(--bg-page);
  --ink-1000: var(--bg-sunken);

  /* steel accent scale (replacing oxblood) */
  --oxblood-900: #1a1b1e;
  --oxblood-800: #25262b;
  --oxblood-700: #3a3d45;   /* ★ brand steel */
  --oxblood-600: #5c5f66;
  --oxblood-500: #a89f91;
  --oxblood-400: #c1b5a5;
  --oxblood-300: #e0d5c8;

  /* remap ember-* (used throughout the kit) onto the oxblood scale */
  --ember-700:  var(--oxblood-900);
  --ember-600:  var(--oxblood-800);
  --ember-500:  var(--oxblood-700);
  --ember-400:  var(--oxblood-700);   /* primary accent */
  --ember-300:  var(--oxblood-500);

  /* warm-tinted borders, not gray */
  --border-faint:  rgba(144,129,104,0.06);
  --border-soft:   rgba(144,129,104,0.12);
  --border-medium: rgba(144,129,104,0.22);
  --border-strong: rgba(144,129,104,0.38);

  /* gradients */
  --grad-brushed: linear-gradient(145deg, rgba(144, 129, 104, 0.15) 0%, rgba(95, 61, 51, 0.25) 50%, rgba(0, 0, 0, 0.4) 100%);
  --grad-brushed-h: linear-gradient(90deg,
    #1c1714 0%,
    #2a2521 22%,
    #160f0d 50%,
    #2a2521 78%,
    #1c1714 100%);
  --grad-oxblood: linear-gradient(135deg, #6e1d26 0%, #3a3d45 50%, #2a0a0e 100%);
  --grad-hairline: linear-gradient(90deg,
    transparent,
    rgba(144,129,104,0.5) 50%,
    transparent);

  /* enriched shadows — deeper, warmer */
  --shadow-1: 0 1px 0 rgba(255,235,210,0.04) inset, 0 4px 14px rgba(0,0,0,0.5);
  --shadow-2: 0 1px 0 rgba(255,235,210,0.05) inset, 0 14px 40px rgba(0,0,0,0.55);
  --shadow-3: 0 1px 0 rgba(255,235,210,0.06) inset, 0 30px 80px rgba(0,0,0,0.65);
  --shadow-inset: inset 0 1px 0 rgba(255,235,210,0.06), inset 0 -1px 0 rgba(0,0,0,0.5);
  --shadow-ember: 0 0 0 1px rgba(110,29,38,0.5), 0 14px 36px rgba(95,61,51,0.4);

  /* page background — a faint warm vignette */
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(95,61,51,0.13), transparent 55%),
    radial-gradient(900px 700px at 0% 110%, rgba(144,129,104,0.08), transparent 55%),
    var(--bg-page);
  color: var(--stone-200);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* film grain overlay — sells the "rich" feel without imagery */
.rt-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.rt-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 128px 32px;
  position: relative;
}
.rt-section--alt {
  background: linear-gradient(180deg, var(--bg-page), var(--bg-section) 18%, var(--bg-section) 82%, var(--bg-page));
  max-width: none;
}
.rt-section--alt > * { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
.rt-section--alt .rt-section-head { padding-left: 0; padding-right: 0; }

.rt-section-head { max-width: 800px; margin-bottom: 80px; }
.rt-section-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--stone-50);
  margin: 14px 0 22px;
}
.rt-section-lead {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--stone-200);
  max-width: 660px;
}

/* eyebrow */
.rt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--stone-300);
}
.rt-eyebrow--ember { color: var(--oxblood-400); }
.rt-eyebrow--small { font-size: 11px; letter-spacing: 0.2em; margin-bottom: 18px; }
.rt-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 9px; background: var(--oxblood-500);
  box-shadow: 0 0 0 4px rgba(95,61,51,0.18), 0 0 12px rgba(138,40,50,0.6);
  animation: rt-pulse 2.6s ease-in-out infinite;
}

.rt-mono { font-family: var(--font-mono); font-size: 12px; color: var(--stone-300); }
.rt-mono--accent { color: var(--oxblood-400); }

/* ============================================================
   BUTTONS
   ============================================================ */

.rt-btn {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 9px;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: all 240ms cubic-bezier(.2,.7,.2,1);
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; color: var(--stone-100);
  position: relative;
  overflow: hidden;
}
.rt-btn:hover { border-color: var(--oxblood-500); color: var(--oxblood-300); transform: translateY(-1px); }

.rt-btn--primary {
  background: #0d0d0f radial-gradient(circle at 50% 0%, #2a2a2f 0%, #0d0d0f 80%);
  color: var(--stone-50);
  border-color: rgba(193,181,165,0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(193,181,165,0.2),
    0 14px 32px rgba(0,0,0,0.45);
}
.rt-btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255,255,255,0.15) 50%,
    transparent 70%);
  transform: translateX(-100%);
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.rt-btn--primary:hover { transform: translateY(-2px); border-color: rgba(193,181,165,0.9); box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 0 1px rgba(193,181,165,0.4), 0 18px 40px rgba(0,0,0,0.55); }
.rt-btn--primary:hover::before { transform: translateX(100%); }
.rt-btn--primary > * { position: relative; z-index: 1; }

.rt-btn--ghost { background: var(--grad-brushed); color: var(--stone-50); box-shadow: var(--shadow-inset); }
.rt-btn--ghost:hover { border-color: var(--oxblood-500); color: var(--oxblood-300); }
.rt-btn--block { width: 100%; justify-content: center; }
.rt-arrow { font-family: var(--font-mono); font-weight: 400; transition: transform 240ms; }
.rt-btn:hover .rt-arrow { transform: translateX(4px); }
.rt-arrow-inline { color: var(--oxblood-400); margin-left: 4px; }

/* ============================================================
   NAVBAR
   ============================================================ */

.rt-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(20,20,22,0.95) 0%, rgba(13,13,15,0.85) 100%);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid rgba(193,181,165,0.15);
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
  overflow: hidden;
  margin: 0 16px;
  box-shadow: 
    inset 0 -1px 0 rgba(255,255,255,0.03), 
    inset 0 1px 0 rgba(255,255,255,0.03), 
    0 16px 40px rgba(0,0,0,0.6);
  animation: rt-fade-in 600ms ease-out;
}
.rt-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px;
}
.rt-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; transition: transform 240ms; }
.rt-mark:hover { transform: scale(1.02); }
.rt-mark img { width: 36px; height: 36px; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.rt-mark-text {
  font-family: 'Kanit', sans-serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--stone-50);
}

/* Highly unique sunken track for links */
.rt-links { 
  display: flex; gap: 4px; align-items: center; 
  background: rgba(0,0,0,0.4);
  padding: 6px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}
.rt-link {
  font-family: var(--font-ui);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--stone-300); font-weight: 500; text-decoration: none;
  cursor: pointer; transition: all 300ms cubic-bezier(.2,.7,.2,1);
  position: relative; padding: 10px 18px;
  border-radius: 9px;
}
.rt-link:hover { 
  color: var(--stone-50); 
  background: rgba(193,181,165,0.08);
}
.rt-link.is-active {
  color: var(--stone-50); 
  background: rgba(193,181,165,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.2);
}

/* Unique Ghost Button */
.rt-cta-ghost {
  font-family: var(--font-ui);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 12px 24px; border-radius: 9px; 
  border: 1px solid rgba(193,181,165,0.3);
  color: var(--stone-50); font-weight: 500; 
  background: rgba(193,181,165,0.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer; transition: all 300ms cubic-bezier(.2,.7,.2,1);
  display: inline-flex; align-items: center; gap: 8px;
}
.rt-cta-ghost:hover { 
  border-color: var(--oxblood-400); 
  color: var(--oxblood-300); 
  background: rgba(193,181,165,0.1); 
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* ============================================================
   HERO
   ============================================================ */

.rt-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 32px 80px;
  position: relative;
}
.rt-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 96px;
  align-items: center;
}
.rt-hero-copy > * { opacity: 0; animation: rt-fade-up 900ms cubic-bezier(.2,.7,.2,1) forwards; }
.rt-hero-copy > *:nth-child(1) { animation-delay: 100ms; }
.rt-hero-copy > *:nth-child(2) { animation-delay: 260ms; }
.rt-hero-copy > *:nth-child(3) { animation-delay: 420ms; }
.rt-hero-copy > *:nth-child(4) { animation-delay: 580ms; }

.rt-hero-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--stone-50);
  margin: 22px 0 28px;
}
.rt-hero-h em {
  font-style: normal;
  background: linear-gradient(135deg, var(--stone-50) 0%, var(--stone-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rt-hero-lead {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--stone-200);
  max-width: 560px;
  margin-bottom: 36px;
}
.rt-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* medallion */
.rt-hero-medallion {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  opacity: 0;
  animation: rt-fade-in 1200ms ease-out 200ms forwards;
}
.rt-medallion-frame {
  position: relative;
  width: 380px; height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.rt-medallion-frame img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 70px rgba(0,0,0,0.7)) drop-shadow(0 0 40px rgba(95,61,51,0.25));
  position: relative; z-index: 2;
  animation: rt-medallion-in 1.5s cubic-bezier(.2,.7,.2,1) 200ms backwards,
             rt-float 8s ease-in-out 1.7s infinite;
}
.rt-medallion-ring {
  position: absolute;
  inset: -20px;
  border: 1px solid var(--border-medium);
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,235,220,0.05), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(95,61,51,0.18), transparent 55%);
  animation: rt-ring-in 1.6s cubic-bezier(.2,.7,.2,1) 300ms backwards;
}
.rt-medallion-ring::after {
  content: '';
  position: absolute;
  inset: 28px;
  border-radius: 9px;
  border: 1px dashed rgba(144,129,104,0.18);
  animation: rt-spin 80s linear infinite;
}
.rt-medallion-ring::before {
  content: '';
  position: absolute;
  inset: -32px;
  border-radius: 9px;
  border: 1px solid var(--border-faint);
}
.rt-medallion-caption { text-align: center; display: flex; flex-direction: column; gap: 4px; }

/* stat strip */
.rt-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border-soft);
}
.rt-stat { position: relative; padding-top: 4px; opacity: 0; }
.rt-stat.is-in { animation: rt-fade-up 700ms cubic-bezier(.2,.7,.2,1) forwards; }
.rt-stat:nth-child(1).is-in { animation-delay: 0ms; }
.rt-stat:nth-child(2).is-in { animation-delay: 100ms; }
.rt-stat:nth-child(3).is-in { animation-delay: 200ms; }
.rt-stat:nth-child(4).is-in { animation-delay: 300ms; }
.rt-stat::before {
  content:''; position: absolute; top: -49px; left: 0; width: 0; height: 1px;
  background: var(--oxblood-500);
  transition: width 700ms cubic-bezier(.2,.7,.2,1) 400ms;
}
.rt-stat.is-in::before { width: 36px; }
.rt-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 46px);
  letter-spacing: -0.04em;
  color: var(--stone-50);
  line-height: 1;
}
.rt-stat-lbl {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-300);
  margin-top: 12px;
  font-weight: 500;
}

/* ============================================================
   CAPABILITIES
   ============================================================ */

.rt-cap-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: stretch;
}
.rt-cap-tabs { display: flex; flex-direction: column; gap: 8px; }
.rt-cap-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: all 260ms cubic-bezier(.2,.7,.2,1);
  position: relative;
  overflow: hidden;
}
.rt-cap-tab::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--oxblood-500);
  transform: scaleY(0);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
  transform-origin: top;
}
.rt-cap-tab:hover { border-color: var(--border-medium); transform: translateX(4px); }
.rt-cap-tab.is-active {
  background: linear-gradient(90deg, rgba(95,61,51,0.18), transparent 70%);
  border-color: rgba(110,29,38,0.45);
}
.rt-cap-tab.is-active::before { transform: scaleY(1); }
.rt-cap-tab-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone-400);
  transition: color 240ms;
}
.rt-cap-tab.is-active .rt-cap-tab-num { color: var(--oxblood-400); }
.rt-cap-tab-lbl {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-100);
  font-weight: 500;
}
.rt-cap-tab-arrow {
  font-family: var(--font-mono); color: var(--stone-400);
  transition: transform 240ms, color 240ms;
}
.rt-cap-tab.is-active .rt-cap-tab-arrow { color: var(--oxblood-400); transform: translateX(4px); }

.rt-cap-panel {
  padding: 56px 48px;
  border-radius: 9px;
  position: relative; overflow: hidden;
  background: var(--grad-brushed);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-inset), 0 20px 50px rgba(0,0,0,0.3);
}
.rt-cap-panel::before {
  content:''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 2px, rgba(255,235,210,.012) 2px, rgba(255,235,210,.012) 3px);
  pointer-events: none;
}
.rt-cap-panel::after {
  content:''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,235,210,.22), transparent);
}
.rt-cap-panel-content { position: relative; z-index: 1; animation: rt-fade-up 480ms cubic-bezier(.2,.7,.2,1); }
.rt-cap-panel-head { margin-bottom: 18px; }
.rt-cap-panel-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.025em;
  color: var(--stone-50);
  margin: 10px 0 0;
  line-height: 1.1;
}
.rt-cap-panel-body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--stone-200);
  max-width: 560px;
}
.rt-cap-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.rt-cap-spec-k {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-400);
  font-weight: 500;
  margin-bottom: 8px;
}
.rt-cap-spec-v {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stone-100);
}

/* ============================================================
   MATERIALS
   ============================================================ */

.rt-mat-table-wrap {
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-2);
}
.rt-mat-table { width: 100%; border-collapse: collapse; }
.rt-mat-table th {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-300);
  font-weight: 500;
  text-align: left;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-medium);
  background: linear-gradient(180deg, var(--stone-700), var(--bg-section));
}
.rt-mat-table td {
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--stone-200);
  border-bottom: 1px solid var(--border-soft);
  transition: background 200ms;
}
.rt-mat-table tr:last-child td { border-bottom: none; }
.rt-mat-table tbody tr { transition: background 240ms; }
.rt-mat-table tbody tr:hover { background: rgba(95,61,51,0.08); }
.rt-mat-table tbody tr:hover .rt-mat-alloy { color: var(--oxblood-300); }
.rt-mat-alloy { font-family: var(--font-mono) !important; font-size: 14px !important; color: var(--stone-50) !important; transition: color 240ms; }
.rt-mat-spec { font-family: var(--font-mono) !important; font-size: 13px !important; color: var(--oxblood-400) !important; }
.rt-chip {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid var(--border-soft);
  background: rgba(144,129,104,0.06);
  color: var(--stone-200);
  font-weight: 500;
}
.rt-mat-footnote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--stone-400);
  margin-top: 24px;
}

/* ============================================================
   QUALITY
   ============================================================ */

.rt-quality-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
.rt-pillars { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.rt-pillar {
  display: grid; grid-template-columns: 16px 1fr; gap: 24px; align-items: start;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
}
.rt-pillar.is-in { opacity: 1; transform: translateY(0); }
.rt-pillar:nth-child(1) { transition-delay: 0ms; }
.rt-pillar:nth-child(2) { transition-delay: 120ms; }
.rt-pillar:nth-child(3) { transition-delay: 240ms; }
.rt-pillar-mark {
  width: 12px; height: 12px; border: 1px solid var(--oxblood-500); border-radius: 9px;
  margin-top: 8px;
  position: relative;
}
.rt-pillar-mark::after {
  content:''; position: absolute; inset: 2px; background: var(--oxblood-700);
}
.rt-pillar-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--stone-50);
  margin: 0 0 10px;
}
.rt-pillar-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone-300);
}
.rt-quality-plate {
  padding: 48px 40px;
  border-radius: 9px;
  position: relative; overflow: hidden;
  background: var(--grad-brushed);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-inset), 0 20px 50px rgba(0,0,0,0.3);
}
.rt-quality-plate::after { content:''; position: absolute; left:0; right:0; top:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,235,210,.22), transparent); }
.rt-std-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 28px;
  position: relative; z-index: 1;
}
.rt-std {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.rt-std:nth-child(odd) { padding-right: 16px; }
.rt-std:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--border-soft); }
.rt-std:nth-last-child(-n+2) { border-bottom: none; }
.rt-std-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.02em;
  color: var(--stone-50);
}
.rt-quality-note {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 8px;
  position: relative; z-index: 1;
}

/* ============================================================
   ABOUT
   ============================================================ */

.rt-about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
}
.rt-about-lead {
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.5;
  color: var(--stone-100);
  margin: 22px 0 24px;
}
.rt-about-body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--stone-200);
  margin-bottom: 20px;
  max-width: 620px;
}
.rt-about-facts {
  background: linear-gradient(180deg, var(--bg-raised), var(--bg-card));
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  padding: 36px;
  box-shadow: var(--shadow-inset), 0 14px 40px rgba(0,0,0,0.35);
  position: relative; overflow: hidden;
}
.rt-about-facts::before {
  content:''; position: absolute; left:0; right:0; top:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,235,210,.22), transparent);
}
.rt-fact {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.rt-fact:last-child { border-bottom: none; }
.rt-fact-k {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-400);
  font-weight: 500;
  margin-bottom: 8px;
}
.rt-fact-v {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--stone-50);
}

/* ============================================================
   CONTACT
   ============================================================ */

.rt-section--contact {
  background:
    radial-gradient(900px 600px at 100% 0%, rgba(95,61,51,0.22), transparent 60%),
    var(--bg-sunken);
  max-width: none;
  padding-top: 128px; padding-bottom: 128px;
}
.rt-section--contact > * { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
.rt-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.rt-contact-lead {
  font-family: var(--font-body);
  font-size: 19px; line-height: 1.6; color: var(--stone-200);
  margin-top: 20px; max-width: 460px;
}
.rt-contact-meta { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.rt-contact-meta-row { display: flex; flex-direction: column; gap: 8px; }
.rt-contact-meta-v {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--stone-100);
}

.rt-form {
  padding: 44px 40px;
  border-radius: 9px;
  background: var(--grad-brushed);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-inset), 0 24px 60px rgba(0,0,0,0.4);
  position: relative; overflow: hidden;
}
.rt-form::after { content:''; position: absolute; left:0; right:0; top:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,235,210,.22), transparent); }
.rt-form > * { position: relative; z-index: 1; }
.rt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rt-field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.rt-field-lbl {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-300);
  font-weight: 500;
}
.rt-input {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--stone-50);
  width: 100%;
  padding: 13px 16px;
  background: rgba(8,6,5,0.6);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255,235,210,0.04);
  transition: border-color 240ms, background 240ms;
  box-sizing: border-box;
}
.rt-input:focus { outline: none; border-color: var(--oxblood-500); background: rgba(95,61,51,0.06); }
.rt-input::placeholder { color: var(--stone-500); }
.rt-textarea { resize: vertical; font-family: var(--font-body); }

/* ============================================================
   FOOTER
   ============================================================ */

.rt-footer {
  background: var(--bg-sunken);
  border-top: 1px solid var(--border-soft);
  padding: 80px 32px 32px;
  position: relative;
  overflow: hidden;
}
.rt-footer::before {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 600px; height: 600px;
  background-image: url("../../assets/RAFTEC logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.025;
  pointer-events: none;
}
.rt-footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  position: relative; z-index: 1;
}
.rt-footer-mark { display: flex; align-items: center; gap: 14px; }
.rt-footer-mark img { width: 48px; height: 48px; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.5)); }
.rt-footer-mark-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-50);
}
.rt-footer-tag {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  color: var(--stone-300);
  margin-top: 16px;
}
.rt-footer-col { display: flex; flex-direction: column; gap: 10px; }
.rt-footer-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--stone-200);
  text-decoration: none;
  cursor: pointer;
  transition: color 140ms, padding-left 240ms;
}
.rt-footer-link:hover { color: var(--oxblood-300); padding-left: 4px; }
.rt-footer-addr {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--stone-300);
}
.rt-footer-rule {
  max-width: 1280px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(144,129,104,.32), transparent);
}
.rt-footer-base {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between;
  padding: 28px 0 0;
  position: relative; z-index: 1;
}

/* ============================================================
   REVEAL / ANIMATION KEYFRAMES
   ============================================================ */

.rt-reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1); }
.rt-reveal.is-in { opacity: 1; transform: translateY(0); }

@keyframes rt-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes rt-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rt-medallion-in {
  from { opacity: 0; transform: scale(.85) rotate(-10deg); filter: blur(8px) drop-shadow(0 30px 70px rgba(0,0,0,0.7)); }
  to   { opacity: 1; transform: scale(1) rotate(0deg);   filter: blur(0) drop-shadow(0 30px 70px rgba(0,0,0,0.7)) drop-shadow(0 0 40px rgba(95,61,51,0.25)); }
}
@keyframes rt-ring-in {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes rt-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes rt-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes rt-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(95,61,51,0.18), 0 0 12px rgba(138,40,50,0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(95,61,51,0.0),  0 0 18px rgba(138,40,50,0.8); }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rt-reveal { opacity: 1; transform: none; }
}

/* ============================================================
   INTRO — full-viewport logo splash with scroll-driven zoom
   --intro-p (0 → 1) is set on documentElement by Intro.jsx
   ============================================================ */

.rt-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: #0d0d0f radial-gradient(circle at 50% 0%, #2a2a2f 0%, #0d0d0f 80%);
  overflow: hidden;
  pointer-events: auto;
  /* whole intro fades out near the very end so the bg disappears clean */
  opacity: clamp(0, calc(1 - (var(--intro-p, 0) - 0.7) / 0.3), 1);
  transition: opacity 120ms linear;
}
.rt-intro[data-done="true"] {
  pointer-events: none;
}

/* blurred, oversized background logo — the "atmosphere" */
.rt-intro-bg {
  position: absolute; inset: -20%;
  background-image: url("../../assets/RAFTEC logo.png");
  background-size: 90vmin 90vmin;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(80px) saturate(110%) brightness(0.7);
  opacity: calc(0.45 - var(--intro-p, 0) * 0.35);
  transform: scale(calc(1.2 + var(--intro-p, 0) * 1.6));
  will-change: transform, opacity;
}

/* film grain overlay tuned darker for the intro */
.rt-intro::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 5;
}

/* concentric rings */
.rt-intro-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transform: scale(calc(1 + var(--intro-p, 0) * 6));
  opacity: calc(1 - var(--intro-p, 0) * 1.4);
  will-change: transform, opacity;
}
.rt-intro-ring {
  position: absolute;
  border: 1px solid rgba(144,129,104,0.15);
  border-radius: 9px;
}
.rt-intro-ring--1 { width: 56vmin;  height: 56vmin;  animation: rt-spin 60s linear infinite; }
.rt-intro-ring--2 {
  width: 78vmin;  height: 78vmin;
  border-style: dashed; border-color: rgba(144,129,104,0.10);
  animation: rt-spin 140s linear infinite reverse;
}
.rt-intro-ring--3 {
  width: 110vmin; height: 110vmin;
  border-color: rgba(144,129,104,0.06);
  animation: rt-spin 200s linear infinite;
}

/* the foreground content — scales hugely as scroll progresses */
.rt-intro-content {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  transform: scale(calc(1 + var(--intro-p, 0) * 7));
  opacity: calc(1 - var(--intro-p, 0) * 1.35);
  transform-origin: center center;
  transition: opacity 50ms linear, transform 50ms linear;
  will-change: transform, opacity;
  text-align: center;
  padding: 0 32px;
}

.rt-intro-logo-btn {
  background: transparent; border: 0; padding: 0;
  cursor: pointer;
  outline: none;
  border-radius: 9px;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.rt-intro-logo-btn:hover { transform: scale(1.03); }
.rt-intro-logo-btn:active { transform: scale(0.98); }

.rt-intro-logo {
  width: min(46vmin, 460px);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 30px 80px rgba(0,0,0,0.7))
    drop-shadow(0 0 60px rgba(95,61,51,0.35));
  animation:
    rt-intro-enter 1.4s cubic-bezier(.2,.7,.2,1) backwards;
}

.rt-intro-text {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  /* fades faster than the logo */
  opacity: calc(1 - var(--intro-p, 0) * 2.2);
  animation: rt-fade-up 1.2s cubic-bezier(.2,.7,.2,1) 400ms backwards;
}
.rt-intro-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-ui);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--stone-300); font-weight: 500;
}
.rt-intro-dot {
  width: 6px; height: 6px; border-radius: 9px;
  background: var(--oxblood-500);
  box-shadow: 0 0 0 4px rgba(95,61,51,0.18), 0 0 14px rgba(138,40,50,0.7);
  animation: rt-pulse 2.4s ease-in-out infinite;
}
.rt-intro-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-50);
  line-height: 1;
}
.rt-intro-tag {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--stone-300);
}

.rt-intro-cue {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-ui);
  font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--stone-200); font-weight: 500;
  background: transparent;
  border: 1px solid var(--border-medium);
  padding: 14px 24px; border-radius: 9px;
  cursor: pointer;
  transition: all 240ms cubic-bezier(.2,.7,.2,1);
  animation: rt-fade-up 1.2s cubic-bezier(.2,.7,.2,1) 700ms backwards;
}
.rt-intro-cue:hover {
  border-color: var(--oxblood-500);
  color: var(--oxblood-300);
  background: rgba(95,61,51,0.08);
  transform: translateY(-2px);
}
.rt-intro-cue-arrow {
  display: inline-block;
  animation: rt-bounce 2s ease-in-out infinite;
}

/* corner registration marks */
.rt-intro-corner {
  position: absolute;
  width: 28px; height: 28px;
  pointer-events: none;
  opacity: calc(1 - var(--intro-p, 0) * 1.4);
  transition: opacity 60ms linear;
}
.rt-intro-corner::before, .rt-intro-corner::after {
  content: ''; position: absolute; background: var(--stone-400); opacity: 0.6;
}
.rt-intro-corner::before { width: 100%; height: 1px; }
.rt-intro-corner::after  { width: 1px; height: 100%; }
.rt-intro-corner--tl { top: 32px;    left: 32px;    }
.rt-intro-corner--tl::before { top: 0; left: 0; }
.rt-intro-corner--tl::after  { top: 0; left: 0; }
.rt-intro-corner--tr { top: 32px;    right: 32px;   }
.rt-intro-corner--tr::before { top: 0; right: 0; }
.rt-intro-corner--tr::after  { top: 0; right: 0; }
.rt-intro-corner--bl { bottom: 32px; left: 32px;    }
.rt-intro-corner--bl::before { bottom: 0; left: 0; }
.rt-intro-corner--bl::after  { bottom: 0; left: 0; }
.rt-intro-corner--br { bottom: 32px; right: 32px;   }
.rt-intro-corner--br::before { bottom: 0; right: 0; }
.rt-intro-corner--br::after  { bottom: 0; right: 0; }

/* bottom serial-number strip */
.rt-intro-serial {
  position: absolute;
  left: 32px; right: 32px; bottom: 32px;
  display: flex; justify-content: space-between;
  font-size: 11px;
  opacity: calc(1 - var(--intro-p, 0) * 1.6);
  transition: opacity 60ms linear;
  animation: rt-fade-in 1.6s ease-out 1s backwards;
}

/* SCROLL SPACER — the page space that drives --intro-p */
.rt-intro-spacer { height: 100vh; pointer-events: none; }

/* NAV — kept hidden during the intro, fades in as it ends */
.rt-nav {
  opacity: clamp(0, calc((var(--intro-p, 0) - 0.55) / 0.45), 1);
  pointer-events: auto;
  transition: opacity 120ms linear;
}


/* KEYFRAMES used by the intro */
@keyframes rt-intro-enter {
  from { opacity: 0; transform: scale(.7) rotate(-14deg); filter: blur(14px) drop-shadow(0 30px 80px rgba(0,0,0,0.7)); }
  to   { opacity: 1; transform: scale(1) rotate(0deg);   filter: drop-shadow(0 30px 80px rgba(0,0,0,0.7)) drop-shadow(0 0 60px rgba(95,61,51,0.35)); }
}
@keyframes rt-intro-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes rt-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* MOBILE TUNING */
@media (max-width: 768px) {
  .rt-intro-mark { font-size: clamp(28px, 8vw, 48px); }
  .rt-intro-content { gap: 22px; }
  .rt-intro-logo { width: min(60vmin, 320px); }
  .rt-intro-corner--tl, .rt-intro-corner--tr { top: 20px; }
  .rt-intro-corner--bl, .rt-intro-corner--br { bottom: 20px; }
  .rt-intro-corner--tl, .rt-intro-corner--bl { left: 20px; }
  .rt-intro-corner--tr, .rt-intro-corner--br { right: 20px; }
  .rt-intro-serial { left: 20px; right: 20px; bottom: 20px; font-size: 10px; }
  .rt-intro-rings { display: none; }
  .rt-intro-content { transform: scale(calc(1 + var(--intro-p, 0) * 9)); }
}

/* reduced motion: skip intro entirely */
@media (prefers-reduced-motion: reduce) {
  .rt-intro { display: none; }
  .rt-intro-spacer { height: 0; }
  .rt-nav { opacity: 1; pointer-events: auto; }
}
@media (max-width: 980px) {
  .rt-hero-grid,
  .rt-cap-grid,
  .rt-quality-grid,
  .rt-about-grid,
  .rt-contact-grid,
  .rt-footer-grid { grid-template-columns: 1fr; gap: 48px; }
  .rt-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .rt-links { display: none; }
  .rt-form-row { grid-template-columns: 1fr; }
  .rt-cap-specs { grid-template-columns: 1fr; }
  .rt-section { padding: 80px 24px; }
  .rt-medallion-frame { width: 280px; height: 280px; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .rt-hero-grid,
  .rt-cap-grid,
  .rt-quality-grid,
  .rt-about-grid,
  .rt-contact-grid,
  .rt-footer-grid { grid-template-columns: 1fr; gap: 48px; }
  .rt-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .rt-links { display: none; }
  .rt-form-row { grid-template-columns: 1fr; }
  .rt-cap-specs { grid-template-columns: 1fr; }
  .rt-section { padding: 80px 24px; }
  .rt-medallion-frame { width: 280px; height: 280px; }
  .rt-hero { padding: 64px 24px 56px; }
  .rt-hero-grid { gap: 56px; }
  .rt-nav-inner { padding: 14px 20px; gap: 16px; }
  .rt-cap-panel { padding: 36px 28px; }
  .rt-form { padding: 32px 24px; }
  .rt-quality-plate { padding: 32px 28px; }
  .rt-mat-table th, .rt-mat-table td { padding: 14px 16px; font-size: 13px; }
  .rt-mat-table th { font-size: 10px; }
  .rt-footer { padding: 56px 24px 24px; }
  .rt-footer-grid { gap: 32px; padding-bottom: 36px; }
}

@media (max-width: 560px) {
  .rt-stat-strip { grid-template-columns: 1fr 1fr; gap: 24px; }
  .rt-hero-h { font-size: clamp(40px, 12vw, 56px); }
  .rt-section-h { font-size: clamp(28px, 7vw, 38px); }
  .rt-cap-panel-h { font-size: 26px; }
  .rt-mat-table-wrap { overflow-x: auto; }
  .rt-mat-table { min-width: 560px; }
  .rt-footer-base { flex-direction: column; gap: 8px; align-items: flex-start; }
}


/* ============================================================
   GALLERY (Motion.js Horizontal Scroll + Hover)
   ============================================================ */

.rt-gallery-section {
  position: relative;
  background: var(--bg-sunken);
  /* The container sets the stage */
}

.rt-gallery-header {
  padding: 80px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(95,61,51,0.1), transparent 60%);
}

.img-group-container {
  height: 500vh; /* 4 items * 100vh */
  position: relative;
}

.rt-sticky-viewport {
  position: sticky;
  top: 0;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
}

.img-group {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

.img-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* RAFTEC-styled Plate (replacing images) */
.rt-gallery-plate {
  width: min(85vw, 500px);
  aspect-ratio: 4 / 5;
  background: var(--grad-brushed);
  border: 1px solid var(--border-medium);
  border-radius: 9px;
  box-shadow: var(--shadow-inset), 0 20px 50px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
  /* Hover handled by Motion.js */
}

.rt-gallery-plate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0, transparent 2px, rgba(255,235,210,.01) 2px, rgba(255,235,210,.01) 3px);
  pointer-events: none;
}

.rt-plate-inner {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 40px;
}

.rt-plate-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--oxblood-400);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.rt-plate-inner h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--stone-50);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.1;
}

.rt-plate-inner p {
  color: var(--stone-300);
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.gallery-progress {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--oxblood-400);
  transform-origin: left;
  z-index: 100;
  margin-top: -4px; /* pull up into viewport */
}

/* Standard Gallery Grid */
.rt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.rt-gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 200ms ease, border-color 200ms ease;
}
.rt-gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--oxblood-500);
}
.rt-gallery-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--oxblood-500);
  margin-bottom: 16px;
}
.rt-gallery-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--stone-50);
  letter-spacing: -0.02em;
}
.rt-gallery-desc {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stone-300);
}

/* Floating Contact Buttons */
.rt-floating-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 55;
}
.rt-float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(30,30,32,0.95) 0%, rgba(15,15,18,0.95) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(193,181,165,0.6);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all 300ms cubic-bezier(.2,.7,.2,1);
}
.rt-float-btn svg {
  width: 24px; height: 24px;
}

.rt-float-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
}

.rt-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(5px);
  transition: opacity 1200ms cubic-bezier(.1,.6,.2,1), 
              transform 1200ms cubic-bezier(.1,.6,.2,1),
              filter 1200ms cubic-bezier(.1,.6,.2,1);
  will-change: opacity, transform, filter;
}
.rt-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}
/* Staggering for gallery items */
.rt-gallery-item:nth-child(1) { transition-delay: 50ms; }
.rt-gallery-item:nth-child(2) { transition-delay: 150ms; }
.rt-gallery-item:nth-child(3) { transition-delay: 250ms; }
.rt-gallery-item:nth-child(4) { transition-delay: 350ms; }
.rt-gallery-item:nth-child(5) { transition-delay: 450ms; }

/* Coming Soon Overlay */
.rt-coming-soon {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Allows scrolling right through the overlay */
}
.rt-cs-card {
  position: relative;
  width: min(90vw, 420px);
  padding: 56px 40px;
  background: rgba(14,10,9,0.3);
  backdrop-filter: blur(50px) saturate(120%);
  -webkit-backdrop-filter: blur(50px) saturate(120%);
  border: 1px solid rgba(193,181,165,0.15);
  border-radius: 9px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
  text-align: center;
  animation: rt-fade-up 1000ms cubic-bezier(.2,.7,.2,1) 800ms both;
}

/* Mechanical Corner Locks */
.rt-cs-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(193,181,165,0.8);
  opacity: 0.9;
}
.rt-cs-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; border-top-left-radius: 9px; }
.rt-cs-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; border-top-right-radius: 9px; }
.rt-cs-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; border-bottom-left-radius: 9px; }
.rt-cs-br { bottom: -2px; right: -2px; border-left: none; border-top: none; border-bottom-right-radius: 9px; }

/* Mechanical Screws */
.rt-cs-corner::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--stone-50);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(193,181,165,0.8);
}
.rt-cs-tl::after { top: 6px; left: 6px; }
.rt-cs-tr::after { top: 6px; right: 6px; }
.rt-cs-bl::after { bottom: 6px; left: 6px; }
.rt-cs-br::after { bottom: 6px; right: 6px; }

.rt-cs-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #aaa197;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.rt-cs-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #aaa197;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.rt-cs-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: #aaa197;
}






.rt-cs-card-wrapper {
  position: relative;
  will-change: transform;
}

.rt-cs-chains {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.rt-chain {
  position: absolute;
  top: 0; left: 0;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='14'%3E%3Crect x='1' y='2' width='14' height='10' rx='5' fill='none' stroke='%23c1b5a5' stroke-width='2'/%3E%3Crect x='13' y='4' width='9' height='6' rx='3' fill='none' stroke='%236b7280' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  transform-origin: 0 50%;
  margin-top: -7px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8));
  opacity: 0.8;
}

/* Robust Mobile Overrides */
@media (max-width: 768px) {
  /* Navigation — slimmer on mobile */
  .rt-nav {
    padding: 6px 12px;
  }
  .rt-nav-inner {
    padding: 0 12px;
    height: 44px;
  }
  .rt-links {
    display: none;
  }
  .rt-mark img {
    width: 28px;
    height: 28px;
  }
  .rt-mark-text {
    font-size: 17px;
  }
  .rt-mark {
    gap: 8px;
  }
  
  /* Hero */
  .rt-hero {
    padding: 80px 20px 48px;
  }
  .rt-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .rt-hero-h {
    font-size: clamp(38px, 10vw, 52px);
    line-height: 1.08;
    margin: 14px 0 18px;
  }
  .rt-hero-lead {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .rt-eyebrow {
    font-size: 10px;
    letter-spacing: 0.18em;
    gap: 8px;
  }
  .rt-eyebrow-dot {
    width: 5px;
    height: 5px;
  }
  .rt-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .rt-hero-actions .rt-btn {
    width: 100%;
    justify-content: center;
    font-size: 11px;
    padding: 12px 20px;
  }
  
  /* Medallion */
  .rt-medallion-frame {
    width: 220px;
    height: 220px;
  }
  .rt-hero-medallion {
    gap: 12px;
  }
  .rt-medallion-ring {
    inset: -12px;
  }
  .rt-medallion-ring::before {
    inset: -18px;
  }
  .rt-medallion-ring::after {
    inset: 16px;
  }
  .rt-mono {
    font-size: 10px;
  }
  
  /* Stats Bar */
  .rt-stats-bar {
    padding: 24px 16px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .rt-stat-val {
    font-size: clamp(28px, 6vw, 36px);
  }
  .rt-stat-k {
    font-size: 9px;
    letter-spacing: 0.15em;
  }
  
  /* Coming Soon Overlay */
  .rt-cs-card {
    width: 85vw;
    padding: 28px 20px;
  }
  .rt-cs-title {
    font-size: 20px;
  }
  .rt-cs-eyebrow {
    font-size: 9px;
    margin-bottom: 14px;
  }
  .rt-cs-desc {
    font-size: 12px;
  }
  .rt-cs-lock {
    width: 10px;
    height: 10px;
  }
  
  /* Floating Contact Buttons — smaller on mobile */
  .rt-floating-contact {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }
  .rt-float-btn {
    width: 42px;
    height: 42px;
  }
  .rt-float-btn svg {
    width: 18px;
    height: 18px;
  }
  
  /* Sections */
  .rt-section {
    padding: 56px 20px;
  }
  .rt-section-head {
    margin-bottom: 48px;
  }
  .rt-section-h {
    font-size: clamp(24px, 6vw, 32px);
    margin: 10px 0 16px;
  }
  .rt-section-lead {
    font-size: 14px;
  }
  .rt-eyebrow--small {
    font-size: 9px;
  }
  
  /* Grids */
  .rt-gallery-grid {
    grid-template-columns: 1fr;
  }
  .rt-feature-grid {
    grid-template-columns: 1fr;
  }
  .rt-gallery-item {
    padding: 24px;
  }
  .rt-gallery-title {
    font-size: 18px;
  }
  .rt-gallery-desc {
    font-size: 11px;
  }
  
  /* Buttons */
  .rt-btn {
    font-size: 11px;
    padding: 12px 20px;
  }
  
  /* Footer */
  .rt-footer {
    padding: 48px 20px;
  }
  .rt-footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .rt-footer-left, .rt-footer-right {
    align-items: center;
  }
  .rt-footer-mark-text {
    font-size: 18px;
  }
  .rt-footer-desc {
    font-size: 12px;
  }
  
  /* Intro */
  .rt-intro-mark {
    font-size: clamp(28px, 8vw, 40px) !important;
  }
  .rt-intro-logo {
    width: clamp(120px, 35vw, 180px) !important;
    height: auto !important;
  }
}

/* Mobile Menu Core */
.rt-hamburger {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}
.rt-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--stone-50);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.rt-mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .rt-cta-ghost {
    display: none; /* Hide desktop CTA */
  }
  .rt-hamburger {
    display: flex;
  }
  
  .rt-mobile-menu {
    display: flex;
    position: fixed;
    top: 44px; /* Below slimmer mobile nav */
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0d0d0f;
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
  }
  
  .rt-mobile-menu .rt-link {
    font-size: 20px;
    color: var(--stone-50);
  }
  
  /* Open State */
  .rt-nav.mobile-open .rt-mobile-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .rt-nav.mobile-open .rt-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .rt-nav.mobile-open .rt-hamburger span:nth-child(2) {
    opacity: 0;
  }
  .rt-nav.mobile-open .rt-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
