/* ═══════════════════════════════════════════════════════════
   SRT ROYAL — Premium Style Sheet
   Theme: Midnight Navy (#0B0F1F) + Antique Gold (#C9A24B) + Emerald (#2F8261)
   Font: Fraunces (headings) + Inter (body)
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0B0F1F;
  --navy-2:      #121729;
  --navy-3:      #1B2340;
  --navy-card:   #10152A;
  --gold:        #C9A24B;
  --gold-2:      #E2BE78;
  --gold-dim:    rgba(201,162,75,.12);
  --gold-glow:   rgba(201,162,75,.25);
  --white:       #F6F4EE;
  --text:        #E4E6F0;
  --text-muted:  #8B92A8;
  --border:      rgba(201,162,75,.16);
  --moss:        #2F8261;
  --natural-green: #3E9A75;
  --muted-sky:   #7D93B8;
  --soft-light:  #E9D9A8;
  --emerald:     #2F8261;
  --emerald-dim: rgba(47,130,97,.14);
  --success:     #34a67a;
  --danger:      #e5686b;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow-card: 0 8px 40px rgba(0,0,0,.55);
  --shadow-gold: 0 0 30px rgba(201,162,75,.2);
  --shadow-navy: 0 8px 26px rgba(6,10,26,.55), 0 0 0 1px rgba(90,120,200,.12);
  --transition:  .3s cubic-bezier(.4,0,.2,1);
  --motion-fast: .18s cubic-bezier(.4,0,.2,1);
  --font-head:   'Fraunces', serif;
  --font-body:   'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.hidden { display: none !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.15; }
.text-gold { color: var(--gold); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: var(--gold-2);
  box-shadow: 0 6px 30px var(--gold-glow), var(--shadow-navy);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold-dim);
  box-shadow: var(--shadow-navy);
  transform: translateY(-2px);
}

.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }

/* Micro-interactions: soft-lift on hover (JS adds a tiny magnetic pull via --mx/--my),
   quick press-down on click. */
.btn {
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform var(--motion-fast), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-gold:hover, .btn-outline:hover { transform: translate(var(--mx, 0), calc(-2px + var(--my, 0))); }
.btn:active { transform: translate(var(--mx, 0), var(--my, 0)) scale(.96); transition: transform .12s ease; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: background var(--transition), color var(--transition), border-color var(--transition); }
  .btn, .btn:active, .btn-gold:hover, .btn-outline:hover { transform: none !important; }
}

/* ─── SECTION COMMON ─── */
.section { padding: 100px 0; position: relative; overflow: hidden; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
  display: inline-block;
  padding: 5px 16px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(.98);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-42px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(42px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--soft-light));
  box-shadow: 0 0 12px rgba(207,168,90,.7);
  z-index: 1001;
  transition: width .1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    transition-duration: .01ms !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 0;
  background: transparent;
  transition: background .4s, box-shadow .4s, padding .3s;
}
.navbar.scrolled {
  background: transparent;
  box-shadow: 0 2px 30px rgba(0,0,0,.6);
  border-bottom: 1px solid var(--border);
}
/* Blur lives on a separate layer, not on .navbar itself — backdrop-filter on
   an ancestor turns it into the containing block for position:fixed children,
   which was breaking the full-screen mobile #navLinks panel once scrolled. */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,15,30,.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity .4s;
  z-index: -1;
  pointer-events: none;
}
.navbar.scrolled::before { opacity: 1; }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
}
.nav-logo-img { height: 36px; width: auto; }
.logo-accent { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.nav-link:hover { color: var(--gold); background: var(--gold-dim); }
/* Underline grows outward from center on hover/focus */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: 3px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: left .28s cubic-bezier(.4,0,.2,1), right .28s cubic-bezier(.4,0,.2,1);
}
.nav-link:hover::after, .nav-link:focus-visible::after { left: 14px; right: 14px; }
.nav-link.active::after { left: 14px; right: 14px; }
@media (prefers-reduced-motion: reduce) {
  .nav-link::after { transition: none; }
}

.nav-login-link { color: var(--text-muted); }

.nav-cta {
  margin-left: 10px;
  padding: 9px 22px;
  font-size: .88rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

/* Radial glow background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(207,168,90,.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(26,39,80,.6) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(10,25,60,.5) 0%, transparent 60%);
  pointer-events: none;
}

/* Grid pattern */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(207,168,90,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207,168,90,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 400px;
  background: rgba(207,168,90,.06);
  top: -100px; left: 50%;
  transform: translateX(-50%);
}
.glow-2 {
  width: 400px; height: 300px;
  background: rgba(30,60,130,.3);
  bottom: 0; right: 10%;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(207,168,90,.08);
  border: 1px solid rgba(207,168,90,.2);
  border-radius: 50px;
  font-size: .83rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 28px;
  animation: fadeSlideDown .8s ease forwards;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.4)} 50%{box-shadow:0 0 0 6px rgba(34,197,94,0)} }

.hero-headline {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: 24px;
  animation: fadeSlideUp .9s .2s ease both;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.75;
  animation: fadeSlideUp .8s .85s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeSlideUp .8s 1s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 36px;
  backdrop-filter: blur(10px);
  animation: fadeSlideUp .8s 1.15s ease both;
}

.hero-stat { text-align: center; padding: 0 32px; }
.stat-val {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-lbl {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
  display: block;
}
.hero-stat-divider {
  width: 1px; height: 48px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .78rem;
  letter-spacing: .08em;
  animation: fadeIn 1.5s 1.2s ease both;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 4px;
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(10px)} }

/* ─── HERO: DIAGONAL SPLIT LAYOUT ─── */
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: stretch;
  text-align: left;
  padding: 0;
  min-height: 100vh;
}
.hero-split-content {
  position: relative;
  z-index: 2;
  padding: 150px 5vw 70px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-split .hero-badge { margin-left: 0; }
.hero-split .hero-headline { text-align: left; }
.hero-split .hero-sub { margin: 0 0 40px; text-align: left; }
.hero-split .hero-actions { justify-content: flex-start; margin-bottom: 48px; }
.hero-split .hero-stats { justify-content: flex-start; margin: 0; width: fit-content; }
.royal-env-canvas-page {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
}
.hero-split-inner { position: relative; z-index: 1; }
.hero-split-photo {
  position: relative;
  overflow: hidden;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
  background: var(--navy-3);
}
.hero-split-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(10%) contrast(1.05);
}
.hero-split-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(10,15,30,.35) 30%, transparent 55%),
    linear-gradient(180deg, transparent 55%, var(--navy) 100%);
}
.hero-split-seam {
  position: absolute; top: 0; left: 14%;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--gold), transparent 70%);
  opacity: .7;
  transform: skewX(-11deg);
  transform-origin: top;
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-split-content { padding: 120px 24px 40px; order: 2; }
  .hero-split-photo { clip-path: none; height: 320px; order: 1; }
  .hero-split-seam { display: none; }
  .hero-split .hero-badge,
  .hero-split .hero-actions,
  .hero-split .hero-stats { justify-content: center; margin-left: auto; margin-right: auto; }
  .hero-split .hero-headline, .hero-split .hero-sub { text-align: center; }
}

/* ─── KEYFRAMES ─── */
@keyframes fadeSlideDown { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeSlideUp   { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn        { from{opacity:0} to{opacity:1} }

/* ─── MOTION SYSTEM: hero sequence, glow sweep, page transition, micro-interactions ─── */
@keyframes crestFadeIn   { from{opacity:0;transform:translateY(-6px) scale(.96)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes heroLineIn    { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes heroGlowSweep {
  0%   { transform:translateX(-30%) rotate(8deg); opacity:.35; }
  50%  { transform:translateX(30%)  rotate(8deg); opacity:.55; }
  100% { transform:translateX(-30%) rotate(8deg); opacity:.35; }
}
@keyframes pageFadeIn  { from{opacity:0} to{opacity:1} }
@keyframes pageFadeOut { from{opacity:1} to{opacity:0} }
@keyframes fieldShake {
  0%,100% { transform:translateX(0); }
  20% { transform:translateX(-7px); }
  40% { transform:translateX(6px); }
  60% { transform:translateX(-4px); }
  80% { transform:translateX(3px); }
}
@keyframes fieldPulseError {
  0%,100% { box-shadow:0 0 0 0 rgba(229,104,107,.35); }
  50%     { box-shadow:0 0 0 5px rgba(229,104,107,.12); }
}
@keyframes skeletonShimmer {
  0%   { background-position: -180% 0; }
  100% { background-position: 180% 0; }
}
@keyframes navItemIn { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

/* Body-level page transition — fast, never blocking */
body { animation: pageFadeIn .22s ease both; }
body.page-exit { animation: pageFadeOut .2s ease forwards; }

/* Nav logo / crest — first thing to settle on load */
.nav-logo { animation: crestFadeIn .5s cubic-bezier(.16,1,.3,1) both; }

/* Hero headline split into lines by JS (falls back to the plain fade if JS hasn't run) */
.hero-headline.hero-headline--split { animation: none; opacity: 1; }
.hero-headline .hero-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: heroLineIn .7s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--line-delay, .35s);
}

/* Ambient sweep of gold light behind the hero copy — subtle, not distracting */
.hero-text-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 140%;
  background: linear-gradient(100deg, transparent 30%, rgba(207,168,90,.10) 48%, rgba(207,168,90,.16) 52%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
  animation: heroGlowSweep 9s ease-in-out infinite;
}

/* Skeleton loading shimmer (navy + silver-ash), replaces blank/plain "Loading…" flashes */
.skeleton-line, .skeleton-block {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,.045) 25%, rgba(201,162,75,.10) 50%, rgba(255,255,255,.045) 75%);
  background-size: 250% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.skeleton-line { height: 14px; margin-bottom: 10px; width: 100%; }
.skeleton-line:nth-child(2) { width: 88%; }
.skeleton-line:nth-child(3) { width: 65%; }
.skeleton-block { height: 46px; margin-bottom: 10px; }
.skeleton-wrap { padding: 4px 0; }

@media (prefers-reduced-motion: reduce) {
  body, body.page-exit { animation: none !important; opacity: 1 !important; }
  .nav-logo,
  .hero-headline .hero-line,
  .hero-text-glow,
  .skeleton-line, .skeleton-block { animation: none !important; }
  .hero-headline .hero-line { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
.about-section { background: rgba(10,15,30,.92); }

.about-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.about-visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.about-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.about-code-chip {
  position: absolute;
  bottom: 16px; left: 16px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10,15,30,.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
}

.about-content .section-tag { display: inline-block; margin-bottom: 14px; }
.about-content h2 { text-align: left; margin-bottom: 20px; }
.about-content p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }

.about-points { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.about-point { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.point-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-dim); color: var(--gold);
  font-size: .8rem; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════════════════ */
.skills-section { background: rgba(15,22,40,.92); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.skill-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
}
.skill-card:hover {
  border-color: rgba(207,168,90,.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.skill-icon { font-size: 1.6rem; }

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════════════ */
.hiw-section {
  background: var(--navy-2);
  position: relative;
}
.hiw-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.hiw-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0 12px;
}

.hiw-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 44px;
}
.hiw-connector::after {
  content: '';
  display: block;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-dim));
  border-radius: 2px;
}

.hiw-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.hiw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}
.hiw-card:hover { border-color: rgba(207,168,90,.3); transform: translateY(-6px); box-shadow: var(--shadow-card); }
.hiw-card:hover::before { opacity: 1; }

.hiw-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 24px;
}
.hiw-icon {
  width: 68px; height: 68px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: var(--transition);
}
.hiw-card:hover .hiw-icon {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.hiw-step-num {
  position: absolute;
  top: -4px; right: calc(50% - 52px);
  font-size: .7rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 2px 8px;
  letter-spacing: .08em;
}

.hiw-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.hiw-card p { font-size: .92rem; color: var(--text-muted); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   FEATURED DESIGNERS
═══════════════════════════════════════════════════════════ */
.designers-section { background: var(--navy); }

.designers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.designer-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.designer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(207,168,90,.04), transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.designer-card:hover {
  border-color: rgba(207,168,90,.35);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(207,168,90,.1);
  transform: translateY(-8px);
}
.designer-card:hover::after { opacity: 1; }

.designer-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.designer-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.designer-avatar {
  width: 66px; height: 66px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: var(--transition);
}
.designer-card:hover .designer-avatar { border-color: var(--gold); }

.designer-available-dot {
  position: absolute;
  bottom: 3px; right: 3px;
  width: 12px; height: 12px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid var(--navy-card);
}

.designer-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}
.designer-title { font-size: .83rem; color: var(--text-muted); margin-bottom: 8px; }

.designer-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .85rem;
}
.stars { color: var(--gold); font-size: .95rem; letter-spacing: -1px; }
.rating-val { font-weight: 700; color: var(--white); }
.rating-count { color: var(--text-muted); }

.designer-badge {
  position: absolute;
  top: 0; right: 0;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px 0 0 50px;
  background: var(--gold);
  color: var(--navy);
}

.designer-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.skill-tag {
  padding: 4px 12px;
  background: rgba(207,168,90,.08);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--gold);
  transition: var(--transition);
}
.skill-tag:hover { background: var(--gold-dim); border-color: rgba(207,168,90,.3); }

.designer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 4px;
}
.designer-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .78rem;
  color: var(--text-muted);
}
.designer-meta span { display: flex; align-items: center; gap: 5px; }

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO / RECENT WORK
═══════════════════════════════════════════════════════════ */
.portfolio-section { background: rgba(15,22,40,.92); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.portfolio-card:hover {
  border-color: rgba(207,168,90,.35);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(207,168,90,.1);
  transform: translateY(-8px);
}

.portfolio-thumb {
  position: relative;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.thumb-1 { background: linear-gradient(135deg, var(--navy-3), var(--navy) 70%); }
.thumb-2 { background: linear-gradient(135deg, var(--gold), var(--navy) 75%); }
.thumb-3 { background: linear-gradient(135deg, var(--emerald), var(--navy) 75%); }

.thumb-chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30px;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.thumb-chrome span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}

.thumb-body { font-size: 3.4rem; filter: grayscale(.15); transition: var(--transition); }
.portfolio-card:hover .thumb-body { transform: scale(1.12) rotate(-4deg); }

.portfolio-info { padding: 24px; }
.portfolio-info h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 8px; }
.portfolio-info p { font-size: .88rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }

.portfolio-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  transition: var(--transition);
}
.portfolio-link svg { transition: var(--transition); }
.portfolio-link:hover svg { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════ */
.services-section { background: rgba(10,15,30,.92); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: var(--transition);
}
.service-card:hover {
  border-color: rgba(207,168,90,.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim);
  color: var(--gold);
  margin-bottom: 18px;
}
.service-card h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: .88rem; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   WHY SRT ROYAL
═══════════════════════════════════════════════════════════ */
.why-section { background: rgba(15,22,40,.92); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 600;
  transition: var(--transition);
}
.why-item:hover { border-color: rgba(207,168,90,.3); transform: translateY(-3px); }

/* ═══════════════════════════════════════════════════════════
   HIRE REQUEST FORM
═══════════════════════════════════════════════════════════ */
.hire-section {
  background: var(--navy-2);
  position: relative;
}
.hire-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.hire-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

.hire-info h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 30px;
}

.hire-feature {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.hf-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-top: 2px;
}
.hire-feature strong { display: block; color: var(--white); font-size: .95rem; margin-bottom: 4px; }
.hire-feature p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

.hire-cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 26px;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.3);
  border-radius: var(--radius);
  color: #25d366;
  font-weight: 600;
  font-size: .92rem;
  transition: var(--transition);
}
.hire-cta-wa:hover {
  background: rgba(37,211,102,.18);
  transform: translateY(-2px);
}

/* Form */
.hire-form, .auth-form {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.req { color: var(--gold); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(207,168,90,.12);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .93rem;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(136,153,187,.5); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(207,168,90,.4);
  background: rgba(207,168,90,.04);
  box-shadow: 0 0 0 3px rgba(207,168,90,.08);
}

/* Validation feedback: motion instead of static red text */
.form-group input.field-invalid,
.form-group textarea.field-invalid,
.form-group select.field-invalid,
.form-input.field-invalid {
  border-color: var(--danger);
  animation: fieldShake .4s ease, fieldPulseError 1.4s ease 1;
}
@media (prefers-reduced-motion: reduce) {
  .field-invalid { animation: none !important; }
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23FFD700' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-group select option { background: var(--navy-2); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 110px; }

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 14px;
}
.form-success { color: var(--success); font-size: .9rem; text-align: center; margin-top: 12px; }
.form-error   { color: var(--danger); font-size: .9rem; text-align: center; margin-top: 12px; }

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
.testimonials-section { background: rgba(10,15,30,.92); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.testimonial-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  border-color: rgba(207,168,90,.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.tcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.tcard-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: -1px; }
.quote-icon { color: rgba(207,168,90,.15); flex-shrink: 0; }

.tcard-text {
  font-size: .93rem;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 24px;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.tcard-avatar {
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.tcard-author strong { display: block; color: var(--white); font-size: .92rem; }
.tcard-author span { font-size: .8rem; color: var(--text-muted); }

/* Leave review */
.leave-review-wrap {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.leave-review-wrap h3 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.star-picker {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.8rem;
}
.rstar {
  cursor: pointer;
  color: rgba(207,168,90,.25);
  transition: var(--transition);
  line-height: 1;
}
.rstar.active { color: var(--gold); }
.rstar:hover { transform: scale(1.2); }

.review-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.rinput {
  width: 100%;
  padding: 11px 15px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(207,168,90,.12);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  transition: var(--transition);
}
.rinput::placeholder { color: rgba(136,153,187,.5); }
.rinput:focus { border-color: rgba(207,168,90,.4); box-shadow: 0 0 0 3px rgba(207,168,90,.08); }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGE (Login_page.html — sign in / create account)
═══════════════════════════════════════════════════════════ */
.auth-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
}
.auth-topbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}
.auth-topbar__logo img { width: 34px; height: 34px; border-radius: 8px; }
.auth-topbar__back {
  color: var(--text-muted);
  font-size: .9rem;
  transition: var(--transition);
}
.auth-topbar__back:hover { color: var(--gold); }

.auth {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 40px 24px 80px;
  overflow: hidden;
}
.auth__inner { position: relative; z-index: 2; width: 100%; max-width: 520px; margin: 0 auto; }

.auth-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.auth-card__header { text-align: center; margin-bottom: 28px; }
.auth-card__header h1 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.auth-card__header p { color: var(--text-muted); font-size: .95rem; }

.auth-tabs {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tabs__btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.auth-tabs__btn.is-active { background: var(--gold); color: var(--navy); }
.auth-tabs__btn:not(.is-active):hover { color: var(--gold); }

.oauth-row { display: flex; gap: 12px; margin-bottom: 20px; }
.oauth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  font-size: .85rem;
  font-weight: 600;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 22px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-panel { display: none; flex-direction: column; }
.form-panel.is-active { display: flex; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: var(--transition);
}
.form-input::placeholder { color: rgba(136,153,187,.5); }
.form-input:focus {
  outline: none;
  border-color: rgba(207,168,90,.4);
  box-shadow: 0 0 0 3px rgba(207,168,90,.08);
}
.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); cursor: pointer; }
.form-link { font-size: .85rem; color: var(--gold); }
.form-link:hover { text-decoration: underline; }

.auth-card__submit { width: 100%; justify-content: center; padding: 14px; font-size: .95rem; }
.auth-card__footnote { text-align: center; font-size: .8rem; color: var(--text-muted); margin-top: 20px; }
.auth-card__footnote a { color: var(--gold); }
.auth-card__footnote a:hover { text-decoration: underline; }

/* Map the auth page's BEM-style button modifiers onto the site's button system */
.btn--primary { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); }
.btn--primary:hover { background: var(--gold-2); box-shadow: var(--shadow-gold); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--outline:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }

/* ═══════════════════════════════════════════════════════════
   CLIENT ACCOUNT / PROFILE DASHBOARD (rendered by app.js)
═══════════════════════════════════════════════════════════ */
.profile-section-wrap { background: var(--navy-2); overflow: hidden; }
.profile-card {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar, .profile-photo {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-avatar {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
}
.profile-avatar.ceo-avatar {
  background: var(--navy-3);
  border: 2px solid var(--gold);
  font-size: 2.2rem;
}
.photo-upload-btn {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold);
  border: 2px solid var(--navy-card);
  border-radius: 50%;
  font-size: .85rem;
  cursor: pointer;
  transition: var(--transition);
}
.photo-upload-btn:hover { transform: scale(1.08); }

.profile-header h3 { font-family: var(--font-head); font-size: 1.35rem; color: var(--white); margin-bottom: 4px; }
.client-id-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.member-since { margin-top: 6px; font-size: .82rem; color: var(--text-muted); }

.profile-sub-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--white);
  margin: 30px 0 16px;
}

.profile-edit-wrap {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 26px;
}
.form-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }

.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.requests-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.requests-table th, .requests-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.requests-table th {
  background: rgba(255,255,255,.03);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.requests-table tbody tr:last-child td { border-bottom: none; }
.requests-table tbody tr:hover { background: rgba(255,255,255,.02); }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.status-select {
  padding: 6px 10px;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .82rem;
  cursor: pointer;
}

/* ID card */
.id-card-section { margin-top: 34px; }
.id-card {
  max-width: 380px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--navy-3), var(--navy-card));
  border: 1px solid var(--gold-dim);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}
.id-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.id-card-logo { width: 26px; height: 26px; border-radius: 6px; }
.id-card-brand { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: .95rem; }
.id-card-type { font-size: .68rem; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.id-card-body { display: flex; gap: 16px; align-items: flex-start; }
.id-card-photo-wrap { flex-shrink: 0; }
.id-card-photo, .id-card-photo-placeholder {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
}
.id-card-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
}
.id-card-name { font-family: var(--font-head); color: var(--white); font-size: 1.05rem; margin-bottom: 2px; }
.id-card-role { color: var(--gold); font-size: .78rem; font-weight: 600; margin-bottom: 4px; }
.id-card-company, .id-card-since { font-size: .76rem; color: var(--text-muted); margin-bottom: 2px; }
.id-card-id { font-family: monospace; font-size: .82rem; color: var(--white); letter-spacing: .04em; margin: 6px 0 4px; }
.id-card-footer {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .76rem; color: var(--text-muted);
}
.id-card-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }

/* Back-to-top button (created by app.js) */
.back-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-card);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: var(--transition);
  z-index: 60;
  box-shadow: var(--shadow-card);
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }

/* ═══════════════════════════════════════════════════════════
   ANIMATED ROYAL CLOUDS — scroll-reactive background accents
═══════════════════════════════════════════════════════════ */
.parallax-cloud {
  position: absolute;
  width: 320px; height: 320px;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.parallax-cloud__inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  filter: blur(70px);
  animation: cloudFloat 16s ease-in-out infinite alternate;
}
.parallax-cloud--gold  { background: radial-gradient(circle, rgba(207,168,90,.30), transparent 70%); }
.parallax-cloud--soft  { background: radial-gradient(circle, rgba(226,232,240,.14), transparent 70%); }
.parallax-cloud--sm { width: 70%; height: 70%; }
.parallax-cloud--md { width: 100%; height: 100%; }
.parallax-cloud--lg { width: 140%; height: 140%; }

@keyframes cloudFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(24px, -16px) scale(1.06); }
  100% { transform: translate(-18px, 14px) scale(0.97); }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-cloud__inner { animation: none; }
  .parallax-cloud { transform: none !important; }
}

@media (max-width: 768px) {
  .parallax-cloud { width: 220px; height: 220px; }
  .parallax-cloud__inner { filter: blur(50px); }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT CTA
═══════════════════════════════════════════════════════════ */
.contact-cta-section { background: rgba(15,22,40,.92); }
.contact-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 40px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.contact-cta .section-title { margin-bottom: 14px; }
.contact-cta .section-desc { margin-bottom: 32px; }
.contact-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.contact-cta-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: .9rem;
  color: var(--text-muted);
}
.contact-cta-links a { color: var(--text-muted); transition: var(--transition); }
.contact-cta-links a:hover { color: var(--gold); }
.cta-link-divider { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer { background: rgba(10,15,30,.95); border-top: 1px solid var(--border); position: relative; overflow: hidden; }

.footer-top { padding: 72px 0 48px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-tagline {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 300px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 40px; height: 40px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .88rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   WHATSAPP FAB
═══════════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 990;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: var(--transition);
  animation: fabPop .5s cubic-bezier(.34,1.56,.64,1) .6s backwards;
}
.whatsapp-fab:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,.6);
}
.whatsapp-fab-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: fabPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.9); opacity: 0;  }
}
@keyframes fabPop {
  0%   { transform: scale(0);   opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab, .whatsapp-fab-ring { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hiw-grid { grid-template-columns: 1fr; }
  .hiw-connector { display: none; }
  .hire-layout { grid-template-columns: 1fr; }
  .hire-info { order: 1; }
  .hire-form { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; margin: 0 auto; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: 74px; right: 0; bottom: 0; left: 0;
    inset: 74px 0 0 0;
    background: rgba(10,15,30,.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y: auto;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { padding: 12px 16px; width: 100%; border-radius: 10px; font-size: 1rem; }

  /* Full-screen menu items stagger in once the panel opens */
  .nav-links > li { opacity: 0; transform: translateY(14px); }
  .nav-links.open > li { animation: navItemIn .45s cubic-bezier(.16,1,.3,1) forwards; }
  .nav-links.open > li:nth-child(1)  { animation-delay: .04s; }
  .nav-links.open > li:nth-child(2)  { animation-delay: .08s; }
  .nav-links.open > li:nth-child(3)  { animation-delay: .12s; }
  .nav-links.open > li:nth-child(4)  { animation-delay: .16s; }
  .nav-links.open > li:nth-child(5)  { animation-delay: .20s; }
  .nav-links.open > li:nth-child(6)  { animation-delay: .24s; }
  .nav-links.open > li:nth-child(7)  { animation-delay: .28s; }
  .nav-links.open > li:nth-child(8)  { animation-delay: .32s; }
  .nav-links.open > li:nth-child(9)  { animation-delay: .36s; }
  @media (prefers-reduced-motion: reduce) {
    .nav-links > li, .nav-links.open > li { opacity: 1; transform: none; animation: none; }
  }
  .nav-cta { margin-left: 0; margin-top: 8px; width: 100%; justify-content: center; }
  .hamburger { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 10px; }

  /* Touch targets: buttons and form fields need real tap room on mobile */
  .btn { min-height: 44px; padding: 12px 24px; }
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* below 16px, iOS Safari zooms the whole page in on focus */
    min-height: 44px;
    padding: 12px 14px;
  }
  .form-group textarea { min-height: 110px; }
  a, button { -webkit-tap-highlight-color: transparent; }

  /* Hero */
  .hero-stats { flex-direction: column; gap: 20px; padding: 20px; }
  .hero-stat { padding: 0; }
  .hero-stat-divider { width: 80px; height: 1px; }

  /* Designers & Testimonials */
  .designers-grid,
  .portfolio-grid,
  .skills-grid,
  .services-grid,
  .why-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Form rows */
  .form-row-two { grid-template-columns: 1fr; }
  .review-form-grid { grid-template-columns: 1fr; }

  /* Auth */
  .auth-card { padding: 32px 24px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }

  /* Hire form */
  .hire-form { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .profile-card { padding: 28px 20px; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: rgba(207,168,90,.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(207,168,90,.5); }

/* ─── SELECTION ─── */
::selection { background: rgba(207,168,90,.25); color: var(--white); }

/* ─── ACCESSIBILITY: skip-to-content link ─── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10000;
  background: var(--gold, #C9A24B);
  color: var(--navy, #0B0F1F);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ─── NOTIFICATION BELL ─── */
.nav-notif-wrap { position: relative; display: flex; align-items: center; }
.nav-notif-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.15rem; line-height: 1; padding: 8px; position: relative;
  min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center;
}
.nav-notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--danger); color: #fff; font-size: .65rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-notif-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 320px; max-width: calc(100vw - 32px);
  background: rgba(10,15,30,.98); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.5);
  backdrop-filter: blur(20px); z-index: 500;
  max-height: 420px; display: flex; flex-direction: column;
}
.nav-notif-dropdown-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.nav-notif-markall {
  background: none; border: none; color: var(--gold, #C9A24B);
  font-size: .8rem; cursor: pointer; padding: 4px;
}
.nav-notif-list { overflow-y: auto; }
.nav-notif-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.05);
  color: var(--white); font-size: .85rem; cursor: pointer; line-height: 1.4;
}
.nav-notif-item:last-child { border-bottom: none; }
.nav-notif-item.unread { background: rgba(207,168,90,.06); }
.nav-notif-item .notif-time { display: block; color: var(--text-muted); font-size: .75rem; margin-top: 4px; }

@media (max-width: 768px) {
  .nav-notif-dropdown { position: fixed; top: 74px; right: 12px; left: 12px; width: auto; }
}

/* ─── PAGE HERO: compact banner for interior pages ─── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 5vw 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.page-hero::before {
  content: '';
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(207,168,90,.08), transparent 70%);
  pointer-events: none;
}
.page-hero .hero-badge { margin: 0 auto 22px; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.page-hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 14px auto 0;
  position: relative;
  z-index: 1;
}

/* ─── ADMIN PORTFOLIO: CASE STUDY ─── */
.case-study-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.case-study-card h3 { font-size: 1.3rem; margin-bottom: 22px; }
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-study-item p { color: var(--text-muted); font-size: .92rem; line-height: 1.7; margin-top: 8px; }
.case-study-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 50px;
}
@media (max-width: 768px) {
  .case-study-grid { grid-template-columns: 1fr; }
}

/* ─── ADMIN PORTFOLIO: EXPERIENCE TIMELINE ─── */
.exp-timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--border);
}
.exp-item { position: relative; padding-bottom: 36px; }
.exp-item:last-child { padding-bottom: 0; }
.exp-dot {
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--navy), 0 0 14px var(--gold-glow);
}
.exp-content h3 { font-size: 1.1rem; margin-bottom: 4px; }
.exp-period {
  display: block;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.exp-content p { color: var(--text-muted); font-size: .92rem; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   CINEMATIC SCROLL STORYTELLING (GSAP + ScrollTrigger)
   Drives .section entrances and staggered grid-card reveals.
   Initial hidden states are set by scrollCinema.js via
   gsap.set() at runtime — NOT here — so that if the GSAP CDN
   ever fails to load, content still renders normally instead
   of being stuck invisible.
═══════════════════════════════════════════════════════════ */

/* Perf hint for the browser — only while a section is
   actively animating. Removed by JS once the tween completes. */
.section.cine-animating,
.cine-animating > * {
  will-change: transform, opacity;
}

/* Once GSAP has taken ownership of an element's opacity/transform,
   kill the legacy CSS-transition reveal system on it so the two
   engines never fight over the same properties (that's what
   causes the jittery "double animation" look). */
.gsap-managed {
  transition: none !important;
}

/* Optional per-section pin hook. Add data-pin="true" to any
   <section class="section"> in the HTML to make scrollCinema.js
   pin it in the viewport while its scene plays out — use
   sparingly (hero/portfolio work well; pinning every section
   makes the page feel slow, not premium). */
[data-pin="true"] {
  overflow: visible; /* let pinned content breathe past the section's own clip */
}

/* Respect users who've asked for less motion: show everything
   at rest, no scroll-driven animation. */
@media (prefers-reduced-motion: reduce) {
  .section,
  [class*="-grid"] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
