/* ═══════════════════════════════════════════════════════════
   rw-style.css — RoberWeb shared design system
   Shared across: index.html, projects.html, articles.html,
                  project-single.html, article-single.html
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════ */
:root {
  --ink-50:  #F7F7F5;
  --ink-100: #EFEFE9;
  --ink-200: #DEDED5;
  --ink-300: #C2C2B8;
  --ink-400: #8F8F84;
  --ink-500: #5E5E54;
  --ink-600: #3D3D36;
  --ink-700: #272721;
  --ink-800: #161612;
  --ink-900: #0A0A08;
  --blue:    #2563EB;
  --blue-hov:#1D4ED8;
  --nav-h:   72px;
  --section-py: clamp(5rem, 10vw, 8rem);
  --container-px: clamp(1.5rem, 5vw, 3rem);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--ink-50);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--blue); color: #fff; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY SCALE (fluid)
═══════════════════════════════════════════════════════════ */
.hero-h1    { font-size: clamp(3rem, 7.5vw, 6rem);    font-weight: 900; letter-spacing: -0.045em; line-height: .93; }
.page-h1    { font-size: clamp(2.5rem, 6vw, 4.5rem);  font-weight: 900; letter-spacing: -0.045em; line-height: .95; }
.section-h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.cta-h2     { font-size: clamp(2.75rem, 7vw, 5.5rem);  font-weight: 900; letter-spacing: -0.045em; line-height: .95; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════════════════════════ */
.rw-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ═══════════════════════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════════════════════ */
#rw-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 100%;
  background: var(--blue);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════
   DARK SECTIONS
═══════════════════════════════════════════════════════════ */
.dark-section {
  background-color: var(--ink-900);
  background-image:
    radial-gradient(ellipse 70% 60% at 75% 55%, rgba(37,99,235,.09) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(37,99,235,.04) 0%, transparent 60%);
}
.dark-footer { background-color: #060606; }

.grid-overlay {
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════════════════ */
#rw-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
}
body.admin-bar #rw-header {
  top: 32px;
}
body.admin-bar #mobile-menu {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar #rw-header {
    top: 46px;
  }
  body.admin-bar #mobile-menu {
    top: 46px;
  }
}
#rw-nav-bg {
  position: absolute; inset: 0;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(ellipse 70% 60% at 75% 55%, rgba(37,99,235,.09) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(37,99,235,.04) 0%, transparent 60%);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: backdrop-filter .5s ease, box-shadow .5s ease;
}
#rw-header .rw-container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.rw-logo {
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}
.rw-logo span { color: var(--blue); }
.rw-logo:hover { color: #fff; }

/* Desktop nav links */
.rw-nav-links { display: flex; align-items: center; gap: 2rem; }
.rw-nav-link {
  position: relative;
  font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s ease;
}
.rw-nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width .35s cubic-bezier(.25,.46,.45,.94);
}
.rw-nav-link:hover,
.rw-nav-link.is-active { color: #fff; }
.rw-nav-link:hover::after,
.rw-nav-link.is-active::after { width: 100%; }

/* Hamburger */
#ham-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; padding: 0; cursor: pointer;
}
.hb-line {
  display: block; height: 1px;
  background: rgba(255,255,255,.8);
  transition: transform .35s cubic-bezier(.25,.46,.45,.94), opacity .25s ease;
}
@media (max-width: 767px) {
  .rw-nav-links { display: none; }
  #ham-btn { display: flex; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU OVERLAY
═══════════════════════════════════════════════════════════ */
#mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,10,8,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
#mobile-menu.is-open { opacity: 1; pointer-events: all; }

#mm-close-btn {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: none; cursor: pointer;
  color: rgba(255,255,255,.5);
  transition: color .2s ease, border-color .2s ease;
}
#mm-close-btn:hover { color: #fff; border-color: rgba(255,255,255,.3); }

.mm-nav { display: flex; flex-direction: column; align-items: center; gap: 2.25rem; text-align: center; }
.mm-link {
  font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em;
  color: #fff; text-decoration: none;
  opacity: .9; transition: opacity .2s ease;
}
.mm-link:hover { opacity: .45; color: #fff; }
.mm-footer { position: absolute; bottom: 2.5rem; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.2); }

/* ═══════════════════════════════════════════════════════════
   PAGE HERO (compact, for inner pages)
═══════════════════════════════════════════════════════════ */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
}
.page-hero-label {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.5rem;
}
.page-hero-label-line { width: 20px; height: 1px; background: var(--blue); flex-shrink: 0; }
.page-hero-label-text { font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.page-hero-sub { color: rgba(255,255,255,.55); font-size: 1.0625rem; line-height: 1.7; max-width: 42rem; margin-top: 1.5rem; }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION (index full-screen)
═══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero .rw-container {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
  width: 100%;
}
#hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
}
@media (max-width: 991px) {
  #hero .hero-grid { grid-template-columns: 1fr; gap: 3rem; min-height: auto; }
}

/* Hero label */
.hero-label {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 2rem;
}
.hero-label-line { width: 20px; height: 1px; background: var(--blue); flex-shrink: 0; }
.hero-label-text { font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* Subtext */
.hero-sub { color: rgba(255,255,255,.6); font-size: 1.0625rem; line-height: 1.75; max-width: 26rem; margin-bottom: 2.5rem; }

/* Location */
.hero-location { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.4); font-size: .875rem; margin-top: 3rem; }
.hero-location svg { flex-shrink: 0; }

/* Scroll indicator */
.scroll-bob {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.2);
  animation: scrollBob 2.2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .3; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: .7; }
}

/* Ambient glow */
.glow-blob {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(80px);
}

/* ═══════════════════════════════════════════════════════════
   HERO PHOTO FRAME
═══════════════════════════════════════════════════════════ */
.photo-col { display: flex; justify-content: center; align-items: center; position: relative; }
@media (min-width: 992px) { .photo-col { justify-content: flex-end; } }

.photo-wrap { position: relative; width: 100%; max-width: 360px; }
@media (min-width: 576px) { .photo-wrap { max-width: 420px; } }
@media (min-width: 992px) { .photo-wrap { max-width: none; width: 92%; } }
@media (min-width: 1200px){ .photo-wrap { width: 82%; } }

.photo-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}
.photo-frame::before,
.photo-frame::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.photo-frame::before {
  background:
    linear-gradient(to right, rgba(10,10,8,.80) 0%, transparent 28%),
    linear-gradient(to left,  rgba(10,10,8,.60) 0%, transparent 30%);
}
.photo-frame::after {
  background:
    linear-gradient(to bottom, rgba(10,10,8,.65) 0%, transparent 22%),
    linear-gradient(to top,    rgba(10,10,8,.90) 0%, transparent 38%);
}
.photo-frame img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center !important;
  position: relative;
  z-index: 0;
}

/* Decorative accent shapes */
.deco-square {
  position: absolute; bottom: 4rem; left: -1.5rem;
  width: 64px; height: 64px;
  border: 1px solid rgba(37,99,235,.2);
  border-radius: .75rem;
  transform: rotate(12deg);
  pointer-events: none;
}
.deco-circle {
  position: absolute; top: 2rem; right: -1.25rem;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  pointer-events: none;
}
.deco-dot {
  position: absolute; top: 33%; right: -2rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(37,99,235,.4);
  filter: blur(2px);
  pointer-events: none;
}
@media (max-width: 991px) { .deco-square, .deco-circle, .deco-dot { display: none; } }

/* ═══════════════════════════════════════════════════════════
   SECTION SHARED STYLES
═══════════════════════════════════════════════════════════ */
.section-light  { background-color: var(--ink-50); }
.section-white  { background-color: #fff; border-top: 1px solid var(--ink-100); }
.section-alt    { background-color: var(--ink-50); border-top: 1px solid var(--ink-100); }

.section-label {
  display: block;
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .75rem;
}

/* Section header row (title + "view all" link) */
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  flex-wrap: wrap; gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-rw {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; border-radius: 100px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn-rw:active { transform: scale(.97); }

.btn-white {
  background: #fff; color: var(--ink-900);
  padding: .875rem 1.75rem; font-size: .875rem;
}
.btn-white:hover { background: rgba(255,255,255,.88); color: var(--ink-900); }

.btn-ghost {
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.75);
  padding: .875rem 1.75rem; font-size: .875rem;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.45); color: #fff; }

.btn-cta {
  background: #fff; color: var(--ink-900);
  padding: 1rem 2.5rem; font-size: 1rem;
}
.btn-cta:hover { background: rgba(255,255,255,.88); color: var(--ink-900); }

.btn-blue {
  background: var(--blue); color: #fff;
  padding: .875rem 1.75rem; font-size: .875rem;
}
.btn-blue:hover { background: var(--blue-hov); color: #fff; }

/* Arrow link */
.arrow-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8125rem; font-weight: 500;
  color: var(--ink-400); text-decoration: none;
  transition: color .2s ease;
}
.arrow-link svg { transition: transform .25s ease; }
.arrow-link:hover { color: var(--ink-900); }
.arrow-link:hover svg { transform: translateX(3px); }

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8125rem; font-weight: 500;
  color: rgba(255,255,255,.4); text-decoration: none;
  transition: color .2s ease;
}
.back-link svg { transition: transform .25s ease; }
.back-link:hover { color: rgba(255,255,255,.8); }
.back-link:hover svg { transform: translateX(-3px); }

/* ═══════════════════════════════════════════════════════════
   PROJECT / ARTICLE CARDS
═══════════════════════════════════════════════════════════ */
.rw-card {
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.rw-card:hover { color: inherit; text-decoration: none; }

.card-thumb {
  border-radius: .75rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-800);
  margin-bottom: 1.25rem;
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.card-meta {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .625rem;
}
.card-meta-text { font-size: .6875rem; color: var(--ink-400); font-weight: 500; }
.card-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-300); flex-shrink: 0; }

.card-title {
  font-weight: 700; font-size: 1.0625rem;
  color: var(--ink-900); margin-bottom: .5rem;
  transition: color .2s ease;
}
.rw-card:hover .card-title { color: var(--blue); }

.card-desc { font-size: .875rem; color: var(--ink-400); line-height: 1.65; margin-bottom: 0; }

/* Article card accent */
.article-accent {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
}

/* Filter bar (projects / articles archive) */
.filter-bar {
  display: flex; align-items: center; gap: .5rem;
  flex-wrap: wrap; margin-bottom: 3rem;
}
.filter-btn {
  padding: .375rem 1rem;
  border: 1px solid var(--ink-200);
  border-radius: 100px;
  font-size: .8125rem; font-weight: 500;
  color: var(--ink-500);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2.5rem 4rem;
  align-items: start;
}
@media (max-width: 991px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

.about-lead {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.05; color: var(--ink-900);
  margin-bottom: 2rem;
}

.about-bio { color: var(--ink-400); font-size: .9375rem; line-height: 1.8; }

/* Tech tags */
.tech-tag {
  display: inline-flex;
  padding: .375rem .875rem;
  border: 1px solid var(--ink-200);
  border-radius: 100px;
  font-size: .8125rem; font-weight: 500;
  color: var(--ink-500); cursor: default;
  transition: border-color .2s ease, color .2s ease;
  text-decoration: none;
}
.tech-tag:hover { border-color: rgba(37,99,235,.4); color: var(--blue); }

/* Stats */
.stat-val {
  font-size: 2.75rem; font-weight: 900;
  letter-spacing: -0.045em; line-height: 1;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .875rem; color: var(--ink-400); margin-top: .375rem; }

.stats-divider { border-top: 1px solid var(--ink-100); padding-top: 2rem; margin-top: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 575px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }


.stat-kicker {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #111;
  margin-bottom: .65rem;
}

.stat-label {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(0,0,0,.52);
  max-width: 220px;
}


/* ═══════════════════════════════════════════════════════════
   SINGLE PAGE — project / article prose
═══════════════════════════════════════════════════════════ */
.single-content {
  max-width: 720px;
}
.single-content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900; letter-spacing: -0.035em;
  color: var(--ink-900); margin-top: 3rem; margin-bottom: 1rem;
}
.single-content h3 {
  font-size: 1.125rem; font-weight: 700;
  color: var(--ink-900); margin-top: 2rem; margin-bottom: .75rem;
}
.single-content p {
  font-size: .9375rem; line-height: 1.85;
  color: var(--ink-500); margin-bottom: 1.25rem;
}
.single-content ul, .single-content ol {
  padding-left: 1.5rem; margin-bottom: 1.25rem;
}
.single-content li {
  font-size: .9375rem; line-height: 1.8;
  color: var(--ink-500); margin-bottom: .35rem;
}
.single-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: .875em;
  background: var(--ink-100);
  color: var(--ink-700);
  padding: .15em .45em;
  border-radius: .3rem;
}
.single-content pre {
  background: var(--ink-900);
  border-radius: .75rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.single-content pre code {
  background: none; color: var(--ink-200);
  font-size: .875rem; padding: 0;
}
.single-content blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--ink-500);
  font-style: italic;
}

/* Article meta bar */
.article-meta-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink-100);
}
.article-category {
  display: inline-block;
  padding: .25rem .875rem;
  background: rgba(37,99,235,.1);
  color: var(--blue);
  border-radius: 100px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}

/* Project sidebar */
.project-sidebar {
  position: sticky; top: calc(var(--nav-h) + 2rem);
}
.sidebar-block { margin-bottom: 2.5rem; }
.sidebar-label {
  font-size: .625rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-300); margin-bottom: .875rem;
}
.sidebar-val { font-size: .9375rem; color: var(--ink-900); font-weight: 500; line-height: 1.6; }
.sidebar-explore {
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-100);
}
.sidebar-link-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: .25rem;
}
.sidebar-link-list a {
  color: var(--ink-400);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s ease;
}
.sidebar-link-list a:hover {
  color: var(--ink-900);
}

/* ═══════════════════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-label-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; margin-bottom: 2rem;
}
.cta-label-line { width: 20px; height: 1px; background: var(--blue); }
.cta-label-text { font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.cta-sub { color: rgba(255,255,255,.5); font-size: 1.125rem; max-width: 38rem; margin-inline: auto; line-height: 1.7; margin-bottom: 3rem; }

/* Social links */
.social-trio { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.social-link {
  display: flex; flex-direction: column; align-items: center; gap: .625rem;
  color: rgba(255,255,255,.25); text-decoration: none;
  transition: color .25s ease;
}
.social-link:hover { color: rgba(255,255,255,.7); }
.social-icon-wrap {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s ease;
}
.social-link:hover .social-icon-wrap { border-color: rgba(255,255,255,.25); }
.social-label { font-size: .625rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
body.rw-modal-open { overflow: hidden; }

.rw-contact-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: .875rem; opacity: 0; visibility: hidden;
  pointer-events: none; transition: opacity .22s ease, visibility .22s ease;
}
.rw-contact-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.rw-contact-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(3,7,18,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.rw-contact-modal__dialog {
  position: relative; z-index: 1;
  width: min(100%, 620px); max-height: calc(100vh - 1.75rem);
  overflow: auto; background: #fff; color: var(--ink-900);
  border-radius: 8px; padding: clamp(1.1rem, 3vw, 1.75rem);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.rw-contact-modal__close {
  position: absolute; top: .7rem; right: .7rem;
  width: 32px; height: 32px; border: 1px solid rgba(15,23,42,.1);
  border-radius: 50%; background: #fff; color: var(--ink-900);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.rw-contact-modal__head { padding-right: 2rem; margin-bottom: 1rem; }
.rw-contact-modal__head .section-label { color: var(--blue); }
.rw-contact-modal__head h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1; margin: .55rem 0 .5rem; letter-spacing: 0;
}
.rw-contact-modal__head p {
  color: var(--ink-500); line-height: 1.55; margin: 0; max-width: 36rem;
  font-size: .92rem;
}
.rw-contact-modal .wpcf7 form { display: grid; gap: .75rem; }
.rw-contact-modal .rw-cf7-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.rw-contact-modal .wpcf7 label {
  display: grid; gap: .32rem;
  font-size: .78rem; font-weight: 700; color: var(--ink-900);
}
.rw-contact-modal .wpcf7 input[type="text"],
.rw-contact-modal .wpcf7 input[type="email"],
.rw-contact-modal .wpcf7 textarea {
  width: 100%; border: 1px solid rgba(15,23,42,.14);
  border-radius: 6px; padding: .68rem .8rem;
  font: inherit; color: var(--ink-900); background: #fff; outline: none;
}
.rw-contact-modal .wpcf7 textarea { min-height: 92px; resize: vertical; max-height: 120px; }
.rw-contact-modal .wpcf7 input:focus,
.rw-contact-modal .wpcf7 textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.rw-contact-modal .wpcf7-acceptance label {
  display: flex; align-items: flex-start; gap: .55rem;
  color: var(--ink-500); font-size: .78rem; font-weight: 500; line-height: 1.4;
}
.rw-contact-modal .wpcf7-submit {
  border: 0; border-radius: 999px; background: var(--blue); color: #fff;
  padding: .78rem 1.35rem; font-weight: 700; cursor: pointer; justify-self: start;
}
.rw-contact-modal .wpcf7-submit:hover { background: var(--blue-hov); }
.rw-contact-modal .wpcf7-not-valid-tip {
  color: #b42318; font-size: .75rem; margin-top: .35rem;
}
.rw-contact-modal .wpcf7-response-output {
  margin: .25rem 0 0; border-radius: 6px;
  padding: .65rem .8rem; font-size: .82rem; line-height: 1.4;
}
.rw-contact-modal form.sent .wpcf7-response-output {
  border-color: rgba(22,163,74,.3); background: rgba(22,163,74,.08);
}
.rw-contact-modal form.invalid .wpcf7-response-output,
.rw-contact-modal form.unaccepted .wpcf7-response-output,
.rw-contact-modal form.failed .wpcf7-response-output,
.rw-contact-modal form.spam .wpcf7-response-output {
  border-color: rgba(180,35,24,.28); background: rgba(180,35,24,.07);
}

@media (max-width: 640px) {
  .rw-contact-modal { padding: .75rem; }
  .rw-contact-modal__dialog { max-height: calc(100vh - 1.5rem); }
  .rw-contact-modal .rw-cf7-grid { grid-template-columns: 1fr; }
}

#rw-footer {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-block: 2.25rem;
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1.25rem;
}
.footer-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-link {
  font-size: .75rem; font-weight: 500;
  color: rgba(255,255,255,.25); text-decoration: none;
  transition: color .2s ease;
}
.footer-link:hover { color: rgba(255,255,255,.6); }
.footer-copy { font-size: .6875rem; color: rgba(255,255,255,.2); }

/* ═══════════════════════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════════════════════ */
#rw-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(10,10,8,.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  opacity: 0; transform: translateY(12px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, border-color .2s ease, color .2s ease;
}
#rw-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#rw-top:hover { border-color: rgba(255,255,255,.35); color: #fff; }
#rw-top:active { transform: scale(.93); }

/* ═══════════════════════════════════════════════════════════
   ANIMATION INITIAL STATES
═══════════════════════════════════════════════════════════ */
.hero-elem  { opacity: 0; }
.reveal     { opacity: 0; }
.reveal-card{ opacity: 0; }
