/* ============================================================
   OUR BUSINESS FAMILY — Award-Worthy Design System
   ============================================================ */

/* ===== TOKENS ===== */
:root {
  /* Dark palette */
  --ink: #0c0e12;
  --ink-light: #161a22;
  --ink-lighter: #1e2330;
  --ink-border: rgba(255,255,255,0.06);

  /* Warm palette */
  --cream: #F8F4ED;
  --cream-dark: #EDE8DF;
  --warm-white: #FDFBF7;

  /* Text */
  --text-hero: #FFFFFF;
  --text-hero-muted: rgba(255,255,255,0.55);
  --text-dark: #1a1a2e;
  --text-medium: #5a5a72;
  --text-light: #9090a8;
  --text-faint: #c0c0d0;

  /* Accents */
  --accent-rose: #D4726A;
  --accent-amber: #D4A04A;
  --accent-sage: #6AAF7B;
  --accent-blue: #5B8FD4;
  --accent-plum: #9B6EB0;
  --accent-teal: #4DA8A0;

  /* Soft tints */
  --tint-rose: #FFF0EE;
  --tint-amber: #FFF6E8;
  --tint-sage: #EEFAF0;
  --tint-blue: #EDF4FF;
  --tint-plum: #F6EFFA;
  --tint-teal: #EDFAF8;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-glow-rose: 0 8px 32px rgba(212,114,106,0.15);
  --shadow-glow-blue: 0 8px 32px rgba(91,143,212,0.15);
  --shadow-glow-sage: 0 8px 32px rgba(106,175,123,0.15);

  /* Layout */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 100px;

  /* Type */
  --font-display: 'Bricolage Grotesque', -apple-system, sans-serif;
  --font-accent: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: 0.2s var(--ease);
  --transition-smooth: 0.5s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--cream);
  cursor: none; /* hide default cursor */
}

a, button, .portal, .branch, .navbar__cta, .navbar__link, .footer__link {
  cursor: none !important; /* hide default cursor on interactables */
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }



/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(12, 14, 18, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ink-border);
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(12, 14, 18, 0.92);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar__link {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
  letter-spacing: 0.01em;
}

.navbar__link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.navbar__link--active { color: #fff; background: rgba(255,255,255,0.1); }

.navbar__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  flex: 1;
}

.navbar__cta {
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.navbar__cta:hover {
  background: var(--cream);
  transform: translateY(-1px);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.navbar__toggle span {
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.navbar__cta--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.navbar__cta--outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  background: url('hero.webp') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 48px 24px; /* reduced top/bottom padding */
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Subtle gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,114,106,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(91,143,212,0.06) 0%, transparent 70%);
  bottom: -50px; left: -100px;
  pointer-events: none;
}

/* Noise texture overlay */
.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  width: 100%;
}

.hero__search-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s var(--ease-out-expo) 0.2s both;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
}

.hero__search-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero__search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 28px;
  
  /* No visible CSS edge, relying entirely on the canvas cutout hole */
  border: none;
  box-shadow: none;
  transition: transform var(--transition-fast);
}

.hero__search-bar:focus-within {
  transform: translateY(-2px);
}

.hero__search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  /* Dark text for contrast against the exposed bright background */
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  min-width: 0;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); /* subtle glow to ensure readability anywhere */
}

.hero__search-input::placeholder {
  color: rgba(12, 14, 18, 0.65);
  font-weight: 500;
  text-shadow: none;
}

.hero__search-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(12, 14, 18, 0.1);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(12, 14, 18, 0.1);
}

.hero__search-btn:hover {
  background: var(--ink);
  color: #fff;
  transform: scale(1.05);
}

.hero__search-btn svg {
  width: 22px;
  height: 22px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 800;
  color: var(--text-hero);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fadeInUp 1s var(--ease-out-expo) 0.3s both;
}

.hero__title em {
  font-family: var(--font-display);
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 0.05em;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-hero-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
  font-weight: 400;
  font-style: normal;
  animation: fadeInUp 1s var(--ease-out-expo) 0.5s both;
}

/* ===== PORTAL CARDS IN HERO ===== */
.hero__portals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1160px;
  animation: fadeInUp 1s var(--ease-out-expo) 0.7s both;
}

.portal {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px 24px 22px;
  text-align: left;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.portal:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.portal--task:hover { box-shadow: var(--shadow-glow-rose); }
.portal--visitor:hover { box-shadow: var(--shadow-glow-blue); }
.portal--cert:hover { box-shadow: var(--shadow-glow-sage); }
.portal--mpl:hover { box-shadow: 0 8px 32px rgba(155,110,176,0.15); }

.portal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.portal__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.portal:hover .portal__icon { transform: scale(1.05); }

.portal--task .portal__icon { background: rgba(212,114,106,0.12); color: var(--accent-rose); }
.portal--visitor .portal__icon { background: rgba(91,143,212,0.12); color: var(--accent-blue); }
.portal--cert .portal__icon { background: rgba(106,175,123,0.12); color: var(--accent-sage); }
.portal--mpl .portal__icon { background: rgba(155,110,176,0.12); color: var(--accent-plum); }

.portal__icon svg { width: 22px; height: 22px; }

.portal__badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal__badge--member {
  background: rgba(212,160,74,0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(212,160,74,0.18);
}

.portal__badge--public {
  background: rgba(106,175,123,0.1);
  color: var(--accent-sage);
  border: 1px solid rgba(106,175,123,0.18);
}

.portal__badge svg { width: 10px; height: 10px; }

.portal__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.portal__desc {
  font-size: 13px;
  color: var(--text-hero-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.portal__url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-border);
  margin-top: auto;
  transition: var(--transition-fast);
}

.portal:hover .portal__url {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

.portal__url-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

.portal--task .portal__url-dot { background: var(--accent-rose); }
.portal--visitor .portal__url-dot { background: var(--accent-blue); }
.portal--cert .portal__url-dot { background: var(--accent-sage); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.portal__url-text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  flex: 1;
  letter-spacing: 0.01em;
}

.portal__url-arrow {
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  transition: var(--transition-fast);
}

.portal:hover .portal__url-arrow {
  color: rgba(255,255,255,0.7);
  transform: translateX(3px);
}

/* Hero scroll indicator */
.hero__scroll {
  display: inline-flex;
  margin-top: 16px; /* reduced from 24px */
  align-items: center;
  justify-content: center;
  width: 44px; /* slightly smaller */
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeInUp 1s var(--ease-out-expo) 1.2s both, floatUp 2.5s ease-in-out infinite;
  transition: var(--transition-fast);
}

.hero__scroll:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}


/* ============================================================
   BRANCHES SECTION
   ============================================================ */
.branches {
  position: relative;
  z-index: 1;
  background: var(--cream);
  padding: 100px 48px;
}

.branches__inner {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#icon-scatter {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.scatter-icon {
  position: absolute;
  top: 0; left: 0;
  width: 60px;
  height: 60px;
  opacity: 0.2; /* Slightly darker to make SVGs visible */
  will-change: transform;
}

.scatter-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-rose);
  background: var(--tint-rose);
  border: 1px solid rgba(212,114,106,0.12);
  margin-bottom: 16px;
}

.section-tag svg { width: 13px; height: 13px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: 48px;
}

/* Services Alternating Layout */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding-top: 40px;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 80px 64px;
  border-radius: 48px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* Quirky uneven formatting & alternating backgrounds */
.service-row:nth-child(1) { background: var(--tint-blue); transform: rotate(-1.5deg) translateX(-15px); }
.service-row:nth-child(2) { background: var(--tint-sage); transform: rotate(1deg) translateX(15px); }
.service-row:nth-child(3) { background: var(--tint-teal); transform: rotate(-1deg) translateX(5px); }
.service-row:nth-child(4) { background: var(--tint-amber); transform: rotate(1.5deg) translateX(-10px); }
.service-row:nth-child(5) { background: var(--tint-plum); transform: rotate(-0.5deg) translateX(20px); }
.service-row:nth-child(6) { background: var(--tint-rose); transform: rotate(1.2deg) translateX(-10px); }

/* Straighten out and elevate slightly on hover for an interactive feel */
.service-row:hover {
  transform: translateY(-8px) rotate(0deg) translateX(0);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.service-row--reverse {
  flex-direction: row-reverse;
}

.service-row__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.service-row__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-row__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.service-row__tagline {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.service-row__desc {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 32px;
}

.service-row__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.service-row__cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--ink-light);
}

.service-row__cta-arrow {
  transition: transform var(--transition-fast);
}

.service-row__cta:hover .service-row__cta-arrow {
  transform: translateX(4px);
}

/* Branch Card (used as visual centerpiece) */
.branch {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  background-color: var(--warm-white); /* fallback */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.branch:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,0,0,0.08);
}

.branch__header {
  padding: 24px 24px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.branch__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.branch:hover .branch__icon { transform: scale(1.06) rotate(2deg); }

.branch__icon svg { width: 22px; height: 22px; }

/* Color variants */
.branch--blue .branch__icon { background: var(--tint-blue); color: var(--accent-blue); }

.branch--sage .branch__icon { background: var(--tint-sage); color: var(--accent-sage); }

.branch--teal .branch__icon { background: var(--tint-teal); color: var(--accent-teal); }

.branch--amber .branch__icon { background: var(--tint-amber); color: var(--accent-amber); }

.branch--plum .branch__icon { background: var(--tint-plum); color: var(--accent-plum); }

.branch--rose .branch__icon { background: var(--tint-rose); color: var(--accent-rose); }

.branch__info { min-width: 0; }

.branch__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-dark);
  line-height: 1.2;
}

.branch__tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  line-height: 1.4;
  margin-top: 4px;
}

.branch__body {
  padding: 0 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.branch__desc {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.65;
  margin-bottom: 18px;
}

.branch__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: auto;
}

.branch__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-sage);
}

.branch__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-sage);
  animation: pulse 2.5s ease-in-out infinite;
}

.branch__cta {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.branch--blue .branch__cta { color: var(--accent-blue); }
.branch--sage .branch__cta { color: var(--accent-sage); }
.branch--teal .branch__cta { color: var(--accent-teal); }
.branch--amber .branch__cta { color: var(--accent-amber); }
.branch--plum .branch__cta { color: var(--accent-plum); }
.branch--rose .branch__cta { color: var(--accent-rose); }

.branch__cta-arrow {
  transition: transform var(--transition-fast);
}

.branch:hover .branch__cta-arrow {
  transform: translateX(3px);
}


/* ============================================================
   VALUES / TRUST STRIP
   ============================================================ */
.values {
  background: var(--ink);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.values::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  pointer-events: none;
}

.values__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.value {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.value__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value__icon svg { width: 20px; height: 20px; }

.value:nth-child(1) .value__icon { background: rgba(212,114,106,0.1); color: var(--accent-rose); }
.value:nth-child(2) .value__icon { background: rgba(212,160,74,0.1); color: var(--accent-amber); }
.value:nth-child(3) .value__icon { background: rgba(106,175,123,0.1); color: var(--accent-sage); }
.value:nth-child(4) .value__icon { background: rgba(91,143,212,0.1); color: var(--accent-blue); }

.value__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.value__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--ink-border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__link {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: var(--transition-fast);
}

.footer__link:hover { color: rgba(255,255,255,0.7); }


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  box-shadow: 0 0 4px rgba(255,255,255,0.8);
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  /* RGB shimmering glow */
  box-shadow: 0 0 10px rgba(255, 0, 100, 0.6), 
              0 0 20px rgba(0, 255, 150, 0.6), 
              inset 0 0 10px rgba(0, 100, 255, 0.6);
  animation: rgbGlow 3s linear infinite;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

@keyframes rgbGlow {
  0% { box-shadow: 0 0 15px rgba(255,0,50,0.7), inset 0 0 10px rgba(0,100,255,0.7); border-color: rgba(255,0,50,0.5); }
  33% { box-shadow: 0 0 15px rgba(0,255,100,0.7), inset 0 0 10px rgba(255,0,50,0.7); border-color: rgba(0,255,100,0.5); }
  66% { box-shadow: 0 0 15px rgba(0,100,255,0.7), inset 0 0 10px rgba(0,255,100,0.7); border-color: rgba(0,100,255,0.5); }
  100% { box-shadow: 0 0 15px rgba(255,0,50,0.7), inset 0 0 10px rgba(0,100,255,0.7); border-color: rgba(255,0,50,0.5); }
}

/* Same as rgbGlow but without the inset shadow, used for transparent cutouts like the search bar */
@keyframes rgbGlowOuter {
  0% { box-shadow: 0 0 15px rgba(255,0,50,0.7); border-color: rgba(255,0,50,0.5); }
  33% { box-shadow: 0 0 15px rgba(0,255,100,0.7); border-color: rgba(0,255,100,0.5); }
  66% { box-shadow: 0 0 15px rgba(0,100,255,0.7); border-color: rgba(0,100,255,0.5); }
  100% { box-shadow: 0 0 15px rgba(255,0,50,0.7); border-color: rgba(255,0,50,0.5); }
}

/* Hover effects for custom cursor */
body.hovering .cursor-dot {
  width: 0; height: 0; opacity: 0;
}
body.hovering .cursor-ring {
  width: 60px; height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  animation: none; /* remove rgb on hover for clarity */
}


/* Hide cursor when mouse leaves window */
body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

/* Touch devices: disable custom cursor */
@media (pointer: coarse) {
  body, a, button, .portal, .branch, .navbar__cta, .navbar__link, .footer__link {
    cursor: auto !important;
  }
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .navbar { padding: 0 24px; }
  .navbar__menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 280px;
    background: rgba(12, 14, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
    border-left: 1px solid var(--ink-border);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  }

  .navbar.open .navbar__menu {
    transform: translateX(0);
  }

  .navbar__toggle { display: flex; }
  
  .navbar.open .navbar__toggle span:nth-child(1) { transform: rotate(45deg); }
  .navbar.open .navbar__toggle span:nth-child(2) { opacity: 0; transform: translateX(20px); }
  .navbar.open .navbar__toggle span:nth-child(3) { transform: rotate(-45deg); }

  .navbar__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .navbar__link { font-size: 18px; padding: 12px 0; }

  .navbar__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: auto;
  }
  
  .navbar__cta { text-align: center; }

  .hero { padding: 100px 24px 80px; }

  .hero__portals {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .branches { padding: 72px 24px; }

  .services-list { gap: 64px; }
  
  .service-row {
    flex-direction: column !important;
    gap: 40px;
    text-align: center;
    padding: 56px 32px;
    border-radius: 32px;
  }
  
  .service-row__content {
    align-items: center;
  }

  .values__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .navbar { padding: 0 16px; height: 60px; }
  .navbar__name { font-size: 15px; }
  .navbar__logo { width: 34px; height: 34px; font-size: 14px; }

  .hero { padding: 90px 16px 60px; }
  .hero__title { letter-spacing: -1px; }
  .hero__subtitle { font-size: 15px; margin-bottom: 36px; }
  .hero__portals { gap: 14px; }

  .portal { padding: 22px 18px 18px; }
  .portal__name { font-size: 17px; }

  .branches { padding: 56px 16px; }

  .services-list { gap: 48px; }
  .service-row {
    padding: 40px 20px;
    border-radius: 24px;
    /* Reduce quirkiness slightly on very small screens to preserve reading width */
    transform: rotate(0deg) translateX(0) !important;
  }
  .service-row__title { font-size: 26px; }

  .values { padding: 48px 16px; }
  .values__inner { grid-template-columns: 1fr; gap: 20px; }

  .footer { padding: 20px 16px; }
  .footer__links { gap: 16px; }
}
