/* HiraTechLabs — White & Gold Luxury Responsive Stylesheet */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-subtle: #fcfbf9;
  --surface: #ffffff;
  --surface-alt: #fbf9f5;
  --surface-tint: #f5f0e6;
  --line: rgba(197, 155, 39, 0.22);
  --line-strong: rgba(197, 155, 39, 0.45);
  
  /* Gold Palette */
  --gold-primary: #c59b27;
  --gold-dark: #996515;
  --gold-light: #dfb743;
  --gold-bright: #f3cf65;
  --gold-pale: rgba(212, 175, 55, 0.09);
  --gold-pale-hover: rgba(212, 175, 55, 0.16);
  --gold-gradient: linear-gradient(135deg, #b8860b 0%, #d4af37 50%, #f3cf65 100%);
  --gold-gradient-soft: linear-gradient(135deg, #fefbf3 0%, #f9f2e2 100%);
  --gold-gradient-dark: linear-gradient(135deg, #8a6508 0%, #b8860b 50%, #684a05 100%);
  --gold-shadow: 0 10px 30px rgba(184, 134, 11, 0.12), 0 2px 6px rgba(0, 0, 0, 0.03);
  --gold-shadow-hover: 0 18px 45px rgba(184, 134, 11, 0.2), 0 4px 12px rgba(0, 0, 0, 0.05);

  /* Typography Colors */
  --text: #191816;
  --text-heading: #121110;
  --muted: #5e574c;
  --subtle: #8a8274;
  --radius: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { 
  margin: 0; 
  background-color: var(--bg); 
  color: var(--text); 
  font-family: "Cairo", "Segoe UI", sans-serif; 
  line-height: 1.85; 
  overflow-x: hidden; 
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 100% 40%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 0% 80%, rgba(212, 175, 55, 0.04) 0%, transparent 40%);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }

/* Ambient Gold Lighting */
.ambient { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(120px); }
.ambient-one { width: 500px; height: 500px; background: rgba(212, 175, 55, 0.14); top: 50px; right: -150px; }
.ambient-two { width: 420px; height: 420px; background: rgba(230, 202, 101, 0.12); top: 700px; left: -160px; }
.ambient-three { width: 380px; height: 380px; background: rgba(197, 155, 39, 0.1); top: 1600px; right: 5%; }

/* Header & Navigation */
.site-header { 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  background: rgba(255, 255, 255, 0.94); 
  border-bottom: 1px solid var(--line); 
  backdrop-filter: blur(16px); 
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.04);
}
.nav-wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 12px; direction: ltr; }
.brand-logo-frame {
  width: 46px; 
  height: 46px; 
  border-radius: 12px; 
  background: #ffffff; 
  border: 1px solid var(--line-strong); 
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand:hover .brand-logo-frame {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 155, 39, 0.28);
}
.brand-logo-img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; text-align: left; }
.brand-title { font-family: "Segoe UI", sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -0.5px; color: var(--text-heading); line-height: 1.15; }
.brand-accent { 
  background: var(--gold-gradient); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
  font-weight: 900;
}
.brand-subtitle { font-size: 8px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold-dark); margin-top: 2px; }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { 
  position: relative; 
  padding: 26px 0; 
  color: var(--muted); 
  font-size: 14px; 
  font-weight: 600; 
  transition: color 0.2s ease; 
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-dark); }
.main-nav a.active::after { 
  content: ""; 
  position: absolute; 
  bottom: 0; 
  right: 0; 
  left: 0; 
  height: 3px; 
  background: var(--gold-gradient); 
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); 
}

.header-right { display: flex; align-items: center; gap: 14px; }
.nav-cta { 
  font-size: 13px; 
  font-weight: 700;
  color: var(--gold-dark); 
  background: var(--gold-pale);
  border: 1px solid var(--line-strong); 
  padding: 9px 18px; 
  border-radius: 30px; 
  transition: all 0.25s ease; 
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-cta:hover { 
  background: var(--gold-gradient); 
  color: #ffffff; 
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(197, 155, 39, 0.35);
  transform: translateY(-1px);
}
.menu-toggle { 
  display: none; 
  color: var(--text-heading); 
  border: 1px solid var(--line); 
  background: var(--surface); 
  border-radius: 10px; 
  font-size: 20px; 
  width: 42px; 
  height: 42px; 
  cursor: pointer;
}

/* Eyebrow badge */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-pale);
  border: 1px solid var(--line);
  padding: 5px 14px;
  border-radius: 30px;
  color: var(--gold-dark);
  font: 700 11px/1.4 "Segoe UI", sans-serif;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}
.eyebrow-badge.centered { margin-inline: auto; margin-bottom: 12px; }
.gold-sparkle { color: var(--gold-primary); font-size: 13px; }

/* Gold Gradient Text */
.gold-gradient-text {
  background: linear-gradient(135deg, #946910 0%, #c59b27 45%, #855c06 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Hero Section */
.hero { 
  min-height: 580px; 
  display: grid; 
  grid-template-columns: 1.15fr 0.85fr; 
  align-items: center; 
  gap: 60px; 
  padding-block: 65px 70px; 
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { 
  font-size: clamp(34px, 4.2vw, 52px); 
  line-height: 1.42; 
  letter-spacing: -0.8px; 
  margin: 0 0 18px; 
  font-weight: 900; 
  color: var(--text-heading);
}
.hero-text { 
  max-width: 540px; 
  color: var(--muted); 
  font-size: 15.5px; 
  line-height: 2.1; 
  margin: 0 0 28px; 
}
.hero-text strong { color: var(--text-heading); }

.hero-actions { display: flex; align-items: center; gap: 18px; margin-bottom: 38px; }
.button { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px; 
  border-radius: 30px; 
  padding: 13px 26px; 
  font-size: 14px; 
  font-weight: 700; 
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; 
  cursor: pointer;
}
.button-primary { 
  background: var(--gold-gradient); 
  box-shadow: 0 8px 25px rgba(197, 155, 39, 0.32); 
  color: #ffffff; 
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.button-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 14px 34px rgba(197, 155, 39, 0.45); 
}
.button-outline { 
  background: #ffffff; 
  color: var(--gold-dark); 
  border: 1px solid var(--line-strong); 
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.button-outline:hover { 
  background: var(--gold-pale); 
  border-color: var(--gold-primary); 
  transform: translateY(-2px); 
}

/* Hero Stats Row */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(197, 155, 39, 0.06);
}
.hero-stat { display: flex; flex-direction: column; }
.stat-number { font-size: 24px; font-weight: 800; color: var(--gold-dark); line-height: 1.1; }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.stat-divider { width: 1px; height: 35px; background: var(--line); }

/* Hero Visual Art */
.hero-visual { 
  min-height: 440px; 
  position: relative; 
  display: grid; 
  place-items: center; 
  isolation: isolate; 
}
.gold-halo {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0) 70%);
  border-radius: 50%;
  filter: blur(25px);
  z-index: 1;
}
.orbit { 
  position: absolute; 
  width: 390px; 
  height: 250px; 
  border: 1.5px dashed rgba(197, 155, 39, 0.35); 
  transform: rotate(-25deg) skewX(20deg); 
  border-radius: 50px; 
  pointer-events: none;
}
.orbit-b { 
  width: 300px; 
  height: 200px; 
  transform: rotate(25deg) skewX(-20deg); 
  border-color: rgba(212, 175, 55, 0.25); 
  border-style: solid;
}

/* Center Emblem with real logo */
.center-emblem {
  position: relative;
  z-index: 5;
  width: 170px;
  height: 170px;
  background: #ffffff;
  border: 2px solid var(--gold-primary);
  border-radius: 36px;
  box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.1), 0 20px 50px rgba(184, 134, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}
.center-emblem:hover { transform: rotate(0deg) scale(1.03); }
.emblem-img { width: 100%; height: 100%; object-fit: contain; }

/* Floating Cards in Hero */
.float-card { 
  position: absolute; 
  z-index: 6; 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  padding: 10px 14px; 
  border: 1px solid var(--line-strong); 
  border-radius: 14px; 
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(184, 134, 11, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04); 
  direction: ltr; 
  transition: transform 0.25s ease;
}
.float-card:hover { transform: translateY(-3px); }
.float-card b { display: block; font: 700 11.5px "Segoe UI", sans-serif; color: var(--text-heading); }
.mini-icon { 
  display: grid; 
  place-items: center; 
  width: 32px; 
  height: 32px; 
  font-size: 16px; 
  border-radius: 9px; 
  background: var(--gold-pale); 
  border: 1px solid var(--line);
}
.mini-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(197, 155, 39, 0.1);
}
.mini-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.badge-live { 
  display: block; 
  color: #1a7f37; 
  font: 700 9.5px "Cairo", sans-serif; 
  direction: rtl; 
  text-align: left;
}
.badge-dev { 
  display: block; 
  color: var(--gold-dark); 
  font: 700 9.5px "Cairo", sans-serif; 
  direction: rtl; 
  text-align: left;
}

.card-sales { top: 25px; right: -10px; }
.card-pos { top: 15px; left: 10px; }
.card-clinic { bottom: 85px; right: -5px; }
.card-cos { bottom: 45px; left: 10px; }

.connection { position: absolute; width: 140px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-primary), transparent); transform: rotate(30deg); pointer-events: none; }
.connection-one { top: 110px; left: 100px; }
.connection-two { bottom: 120px; right: 100px; transform: rotate(-25deg); }

.visual-caption { 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  display: flex; 
  justify-content: space-between; 
  color: var(--subtle); 
  font: 700 9px "Segoe UI", sans-serif; 
  letter-spacing: 1.2px; 
  direction: ltr; 
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

/* Projects Section */
.projects-section { 
  border-block: 1px solid var(--line); 
  background: linear-gradient(180deg, #faf7ef 0%, #ffffff 50%, #faf7ef 100%); 
  padding: 70px 0 60px; 
}
.section-heading { text-align: center; margin-bottom: 38px; }
.section-heading h2 { font-size: 34px; margin: 0 0 10px; font-weight: 800; color: var(--text-heading); }
.section-heading > p { margin: 0 auto 24px; font-size: 15px; color: var(--muted); max-width: 620px; }

/* Filter Tabs */
.filter-tabs {
  display: inline-flex;
  gap: 10px;
  background: #ffffff;
  padding: 6px;
  border-radius: 40px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 18px rgba(197, 155, 39, 0.08);
  flex-wrap: wrap;
  justify-content: center;
}
.filter-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-tab:hover { color: var(--gold-dark); background: var(--gold-pale); }
.filter-tab.active {
  background: var(--gold-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.3);
}

/* Project Grid & Cards */
.project-grid { 
  display: grid; 
  grid-template-columns: repeat(3, minmax(0, 1fr)); 
  gap: 26px; 
  margin-top: 36px;
}
.project-card { 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  overflow: hidden; 
  background: #ffffff; 
  box-shadow: var(--gold-shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease; 
  display: flex;
  flex-direction: column;
}
.project-card:hover { 
  transform: translateY(-6px); 
  border-color: var(--gold-primary); 
  box-shadow: var(--gold-shadow-hover); 
}

/* Project Art Mockups */
.project-art { 
  height: 185px; 
  position: relative; 
  padding: 14px 16px; 
  overflow: hidden; 
  background: linear-gradient(135deg, #fdfbf7 0%, #f6f0e2 100%); 
  border-bottom: 1px solid var(--line); 
  direction: ltr; 
}
.project-art::after { 
  content: ""; 
  position: absolute; 
  inset: auto 0 0; 
  height: 35px; 
  background: linear-gradient(transparent, #ffffff); 
  pointer-events: none; 
}
.art-top { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  color: var(--gold-dark); 
  font: 700 8.5px "Segoe UI", sans-serif; 
  position: relative; 
  z-index: 2; 
}
.window-dots { color: var(--gold-primary); letter-spacing: 2px; font-size: 8px; }
.art-label { letter-spacing: 1px; }

/* Status Badges */
.status-badge { 
  position: absolute; 
  top: 12px; 
  left: 12px; 
  z-index: 4; 
  border-radius: 20px; 
  padding: 4px 10px; 
  font: 700 10.5px "Cairo", sans-serif; 
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: rtl; 
}
.status-live {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.12);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 8px #22c55e;
}
.status-dev {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.1);
}
.status-dot-dev {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
}
.status-internal {
  background: #fdfaf2;
  border: 1px solid var(--line-strong);
  color: var(--gold-dark);
}
.status-dot-internal {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-primary);
}

/* Art 1: Lynx Sales Chart Mockup */
.mockup-chart-container {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 8px 18px rgba(184, 134, 11, 0.08);
}
.mockup-kpi-row { display: flex; gap: 8px; margin-bottom: 8px; }
.kpi-box { 
  flex: 1; 
  background: #fbf9f4; 
  border: 1px solid var(--line); 
  border-radius: 6px; 
  padding: 4px 8px; 
  display: flex; 
  flex-direction: column; 
}
.kpi-box small { font-size: 8px; color: var(--subtle); }
.kpi-box b { font-size: 12px; color: var(--text-heading); font-family: "Segoe UI", sans-serif; }
.kpi-up { font-size: 8px; color: #16a34a; font-weight: 700; }
.mockup-bars { display: flex; align-items: flex-end; gap: 6px; height: 42px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.mockup-bars span { 
  flex: 1; 
  border-radius: 3px 3px 0 0; 
  background: linear-gradient(180deg, var(--gold-light), var(--gold-primary)); 
  opacity: 0.8;
}
.mockup-bars span.highlight {
  background: var(--gold-gradient-dark);
  opacity: 1;
}

/* Art 2: SpiceFlow POS Mockup */
.mockup-pos-container {
  margin-top: 14px;
}
.pos-screen {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 18px rgba(184, 134, 11, 0.08);
}
.pos-topbar {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}
.pos-topbar span:last-child { color: #16a34a; }
.pos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 7px 0;
}
.pos-grid i {
  height: 20px;
  background: #fcfaf5;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.pos-receipt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gold-pale);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  color: var(--gold-dark);
}

/* Art 3: ClincApp Mockup */
.mockup-clinic-container { margin-top: 14px; }
.clinic-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 8px 18px rgba(184, 134, 11, 0.08);
}
.clinic-patient { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.avatar-ph { 
  display: grid; 
  place-items: center; 
  width: 28px; 
  height: 28px; 
  background: var(--gold-pale); 
  border: 1px solid var(--line); 
  border-radius: 50%; 
  font-size: 14px;
}
.clinic-mockup-avatar {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  padding: 2px;
  box-shadow: 0 2px 6px rgba(197, 155, 39, 0.15);
}
.clinic-patient b { display: block; font-size: 11px; color: var(--text-heading); }
.clinic-patient small { font-size: 8.5px; color: var(--subtle); }
.clinic-schedule { display: flex; gap: 5px; }
.sched-slot { 
  flex: 1; 
  text-align: center; 
  padding: 4px 2px; 
  font-size: 8px; 
  font-weight: 700; 
  border: 1px solid var(--line); 
  border-radius: 5px; 
  color: var(--muted); 
}
.sched-slot.active { background: var(--gold-pale); border-color: var(--gold-primary); color: var(--gold-dark); }

/* Art 4: COS Dashboard Mockup */
.dashboard-layout { 
  display: flex; 
  height: 115px; 
  margin: 14px 2px 0; 
  border: 1px solid var(--line); 
  border-radius: 8px; 
  background: #ffffff; 
  overflow: hidden; 
  box-shadow: 0 8px 18px rgba(184, 134, 11, 0.08); 
}
.dash-sidebar { 
  width: 28px; 
  flex-shrink: 0; 
  background: #fbf9f4; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 10px; 
  padding-top: 12px; 
  border-right: 1px solid var(--line); 
}
.dash-sidebar i { width: 10px; height: 3px; background: var(--gold-primary); border-radius: 3px; }
.dash-main { flex: 1; padding: 10px; }
.dash-title { width: 45%; height: 5px; background: var(--gold-primary); border-radius: 4px; opacity: 0.6; margin-bottom: 10px; }
.metric-row { display: flex; gap: 6px; }
.metric-row span { flex: 1; height: 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--gold-pale); }
.chart { display: flex; height: 38px; align-items: flex-end; gap: 5px; padding: 4px 6px 0; border-bottom: 1px solid var(--line); margin-top: 8px; }
.chart b { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--gold-light), var(--gold-primary)); opacity: 0.75; }
.chart b:nth-child(1) { height: 35%; }
.chart b:nth-child(2) { height: 60%; }
.chart b:nth-child(3) { height: 45%; }
.chart b:nth-child(4) { height: 80%; }
.chart b:nth-child(5) { height: 65%; }
.chart b:nth-child(6) { height: 90%; }
.chart b:nth-child(7) { height: 70%; }
.chart b:nth-child(8) { height: 98%; }
.chart b:nth-child(9) { height: 75%; }

/* Art 5: Factory Code Mockup */
.code-window { 
  display: flex; 
  position: relative; 
  gap: 10px; 
  margin: 14px 2px 0; 
  padding: 10px; 
  height: 115px; 
  border: 1px solid var(--line); 
  border-radius: 8px; 
  background: #ffffff; 
  box-shadow: 0 8px 18px rgba(184, 134, 11, 0.08); 
}
.code-sidebar { width: 26px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line); }
.code-sidebar i { width: 14px; height: 3px; border-radius: 3px; background: var(--gold-primary); opacity: 0.6; }
.code-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.code-lines i { width: 55%; height: 3px; border-radius: 3px; background: var(--gold-light); opacity: 0.7; }
.code-lines i.long { width: 85%; background: var(--gold-dark); }
.code-lines i.mid { width: 68%; background: var(--gold-primary); }
.code-lines i.short { width: 35%; background: var(--subtle); }
.pipeline { 
  position: absolute; 
  bottom: 8px; 
  left: 8px; 
  right: 8px; 
  display: flex; 
  justify-content: space-around; 
  align-items: center; 
  color: var(--gold-dark); 
  font: 700 7.5px "Segoe UI", sans-serif; 
  background: #fbf9f4;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.pipeline b { color: var(--gold-primary); }

/* Art 6: Control Platform Mockup */
.mockup-ops-container { margin-top: 14px; }
.ops-grid { display: flex; gap: 8px; margin-bottom: 8px; }
.ops-node { 
  flex: 1; 
  background: #ffffff; 
  border: 1px solid var(--line); 
  border-radius: 8px; 
  padding: 6px 10px; 
  display: flex; 
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 10px rgba(184, 134, 11, 0.06);
}
.ops-node small { font-size: 8.5px; color: var(--subtle); }
.ops-node b { font-size: 12px; color: var(--text-heading); font-family: "Segoe UI", sans-serif; }
.node-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-primary);
}
.pulse-gold {
  box-shadow: 0 0 0 rgba(212, 175, 55, 0.5);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}
.ops-telemetry {
  display: flex;
  gap: 4px;
  height: 28px;
  align-items: flex-end;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.ops-telemetry span {
  flex: 1;
  background: var(--gold-pale);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.ops-telemetry span:nth-child(1) { height: 45%; }
.ops-telemetry span:nth-child(2) { height: 75%; background: var(--gold-primary); }
.ops-telemetry span:nth-child(3) { height: 60%; }
.ops-telemetry span:nth-child(4) { height: 90%; background: var(--gold-primary); }
.ops-telemetry span:nth-child(5) { height: 50%; }

/* Project Card Content */
.project-content { 
  padding: 20px 22px 24px; 
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-title-row { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-bottom: 12px; 
}
.project-icon { 
  display: grid; 
  place-items: center; 
  width: 44px; 
  height: 44px; 
  border-radius: 12px; 
  flex-shrink: 0; 
  font-size: 22px; 
  border: 1px solid var(--line-strong); 
  background: var(--gold-pale); 
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.1);
}
.project-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  padding: 5px;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover .project-logo-frame {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(197, 155, 39, 0.22);
}
.project-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.project-title-row h3 { 
  margin: 0; 
  font-size: 18px; 
  line-height: 1.4; 
  font-weight: 800;
  color: var(--text-heading);
  direction: ltr; 
  text-align: right; 
}
.english-name { 
  margin: 2px 0 0; 
  color: var(--gold-dark); 
  font: 700 11.5px "Segoe UI", sans-serif; 
  direction: ltr; 
  text-align: right; 
}
.project-content > p { 
  margin: 0 0 16px; 
  color: var(--muted); 
  font-size: 13.5px; 
  line-height: 1.95; 
  flex: 1;
}
.tag-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 6px; 
  margin-top: auto; 
  direction: ltr; 
  justify-content: flex-end; 
}
.tag-row span { 
  padding: 4px 9px; 
  border-radius: 6px; 
  border: 1px solid var(--line); 
  color: var(--gold-dark); 
  background: var(--gold-pale); 
  font: 700 9.5px "Segoe UI", sans-serif; 
}

.projects-footnote { 
  text-align: center; 
  margin: 35px 0 0; 
  color: var(--subtle); 
  font-size: 13px; 
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* About Section */
.about-section { 
  display: grid; 
  grid-template-columns: 0.85fr 1.15fr; 
  gap: 75px; 
  align-items: center; 
  padding-block: 95px; 
}
.about-mark-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.about-mark { 
  position: relative; 
  width: 270px; 
  height: 250px; 
  display: grid; 
  place-items: center; 
}
.about-logo-img { 
  width: 140px; 
  height: 140px; 
  object-fit: contain; 
  background: #ffffff; 
  border: 2px solid var(--gold-primary); 
  border-radius: 32px; 
  padding: 16px;
  box-shadow: 0 0 0 12px rgba(212, 175, 55, 0.08), 0 20px 50px rgba(184, 134, 11, 0.2); 
  transform: rotate(-5deg); 
  position: relative;
  z-index: 3;
}
.mark-ring { 
  position: absolute; 
  width: 240px; 
  height: 170px; 
  border: 1.5px solid var(--line-strong); 
  border-radius: 50%; 
  transform: rotate(34deg); 
  pointer-events: none;
}
.ring-two { 
  transform: rotate(-34deg); 
  border-color: rgba(212, 175, 55, 0.2); 
}
.motto-box {
  text-align: center;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 20px;
}
.motto-box b { display: block; font-size: 14px; color: var(--text-heading); }
.motto-box p { margin: 0; font-size: 10px; color: var(--gold-dark); font-weight: 700; letter-spacing: 1px; }

.about-copy h2 { font-size: 34px; line-height: 1.5; margin: 0 0 16px; font-weight: 800; color: var(--text-heading); }
.about-copy > p:not(.eyebrow-badge) { 
  color: var(--muted); 
  font-size: 15px; 
  line-height: 2.1; 
  margin-bottom: 20px; 
}
.about-copy strong { color: var(--text-heading); }

/* Principles Section */
.approach-section { 
  border-block: 1px solid var(--line); 
  padding: 70px 0 75px; 
  background: #fdfbf7; 
}
.principles-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px;
  margin-top: 36px;
}
.principle { 
  text-align: center; 
  padding: 28px 20px; 
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.principle:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--gold-shadow);
}
.principle-icon { 
  display: grid; 
  place-items: center; 
  width: 54px; 
  height: 54px; 
  margin: 0 auto 16px; 
  border: 1px solid var(--line-strong); 
  border-radius: 16px; 
  color: var(--gold-dark); 
  background: var(--gold-pale); 
  font-size: 26px; 
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.15); 
}
.principle h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; color: var(--text-heading); }
.principle p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* Site Footer */
.site-footer { 
  background: #fbf9f4; 
  border-top: 1px solid var(--line-strong); 
}
.footer-main { 
  display: grid; 
  grid-template-columns: 1.4fr 0.9fr 1fr; 
  gap: 50px; 
  padding-block: 50px 40px; 
}
.footer-tagline { 
  color: var(--muted); 
  font-size: 13.5px; 
  line-height: 1.9; 
  margin: 16px 0 0; 
  max-width: 360px;
}
.footer-links h4, .footer-contact h4 { 
  margin: 0 0 14px; 
  color: var(--text-heading); 
  font-size: 14px; 
  font-weight: 800; 
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); font-size: 13.5px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold-dark); }

.footer-contact p { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.github-link { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  direction: ltr; 
  color: var(--gold-dark); 
  font: 700 13px "Segoe UI", sans-serif; 
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}
.github-link:hover {
  background: var(--gold-pale);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}
.github-mark { 
  display: grid; 
  place-items: center; 
  width: 26px; 
  height: 26px; 
  border-radius: 6px; 
  background: var(--gold-pale); 
  color: var(--gold-dark); 
}

.footer-bottom { 
  border-top: 1px solid var(--line); 
  display: flex; 
  justify-content: space-between; 
  gap: 20px; 
  padding-block: 16px; 
  color: var(--subtle); 
  font-size: 12px; 
}
.back-to-top { color: var(--gold-dark); font-weight: 700; }
.back-to-top:hover { text-decoration: underline; }

/* Responsive Queries */
@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats-row { justify-content: center; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-copy > p:not(.eyebrow-badge) { margin-inline: auto; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .container { width: min(100% - 32px, 540px); }
  .nav-wrap { min-height: 70px; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  
  .main-nav { 
    display: none; 
    position: absolute; 
    top: 70px; 
    right: 16px; 
    left: 16px; 
    padding: 12px 18px; 
    border: 1px solid var(--line-strong); 
    border-radius: 16px; 
    background: #ffffff; 
    box-shadow: 0 20px 40px rgba(184, 134, 11, 0.15); 
    flex-direction: column; 
    align-items: stretch; 
    gap: 0; 
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a.active::after { display: none; }

  .hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .hero-visual { transform: scale(0.9); margin: -10px -20px 0; }
  .project-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .hero-stats-row { flex-direction: column; gap: 12px; }
  .stat-divider { width: 80%; height: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
