/* Vertex Labs - Elegant light theme, refined typography & animations */
/* Fonts loaded via <link> in HTML for performance */

:root {
  --color-bg: #faf9f7;
  --color-bg-elevated: #f5f3ef;
  --color-surface: #ebe8e3;
  --color-border: #e0dcd5;
  --color-border-soft: #eae7e2;
  --color-text: #1c1b19;
  --color-text-soft: #3d3b38;
  --color-text-muted: #6b6762;
  --color-text-muted-soft: #8c8883;
  --color-accent: #9a7b4f;
  --color-accent-hover: #7d6340;
  --color-accent-light: rgba(154, 123, 79, 0.12);
  --color-accent-glow: rgba(154, 123, 79, 0.2);
  --color-shadow: rgba(28, 27, 25, 0.06);
  --color-shadow-strong: rgba(28, 27, 25, 0.12);
  --font-sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.4s;
  --duration-normal: 0.7s;
  --duration-slow: 1.2s;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px var(--color-shadow);
  --shadow-md: 0 8px 24px var(--color-shadow);
  --shadow-lg: 0 16px 48px var(--color-shadow-strong);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 120%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background var(--duration-normal) var(--ease-out-expo),
    padding var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal);
}

.site-header.scrolled {
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border-soft), var(--shadow-sm);
}

.site-header .logo-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--duration-fast);
}

.site-header .logo-link:hover {
  opacity: 0.92;
}

.site-header .logo {
  display: block;
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.site-header .logo-link:hover .logo {
  transform: scale(1.03);
}

.site-header .brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color var(--duration-fast) var(--ease-out-expo);
}

.site-header .logo-link:hover .brand-name {
  color: var(--color-accent);
}

@media (max-width: 480px) {
  .site-header .brand-name {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
  }
}

/* Desktop nav */
.nav-desktop {
  display: none;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }

  .nav-desktop a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    position: relative;
    transition: color var(--duration-fast);
  }

  .nav-desktop a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--duration-normal) var(--ease-out-expo);
  }

  .nav-desktop a:hover,
  .nav-desktop a.active {
    color: var(--color-accent);
  }

  .nav-desktop a:hover::after,
  .nav-desktop a.active::after {
    width: 100%;
  }

  .nav-desktop .btn-login {
    background: transparent;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--duration-fast), color var(--duration-fast),
      border-color var(--duration-fast);
  }

  .nav-desktop .btn-login {
    border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
  }

  .nav-desktop .btn-login:hover {
    background: var(--color-text);
    color: var(--color-bg);
    box-shadow: var(--shadow-sm);
  }
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

@media (min-width: 900px) {
  .burger {
    display: none;
  }
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--duration-normal) var(--ease-out-expo),
    opacity var(--duration-fast), background var(--duration-fast);
}

.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 340px;
  background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
  padding: 5.5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out-expo);
  z-index: 999;
  overflow-y: auto;
  box-shadow: -8px 0 32px var(--color-shadow-strong);
  border-left: 1px solid var(--color-border-soft);
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile a {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.875rem 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--color-border-soft);
  transition: color var(--duration-fast), padding-left var(--duration-fast),
    background var(--duration-fast);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--color-accent);
  padding-left: 0.75rem;
  background: var(--color-accent-light);
}

.nav-mobile .btn-login {
  margin-top: 1.5rem;
  display: inline-block;
  border: 1px solid var(--color-text);
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast), color var(--duration-fast),
    border-color var(--duration-fast);
}

.nav-mobile .btn-login:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* Disclosure modal */
.disclosure-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 25, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s var(--ease-smooth),
    visibility 1s;
}

.disclosure-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.disclosure-modal {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.75rem 3rem;
  transform: scale(0.96) translateY(12px);
  box-shadow: var(--shadow-lg);
  transition: transform 0.9s var(--ease-smooth);
}

.disclosure-overlay:not(.hidden) .disclosure-modal {
  transform: scale(1) translateY(0);
}

.disclosure-modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.disclosure-modal h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
  color: var(--color-text-soft);
  letter-spacing: 0.02em;
}

.disclosure-modal p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.disclosure-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.disclosure-buttons button {
  flex: 1;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
  transition: background var(--duration-fast), color var(--duration-fast),
    transform var(--duration-fast), box-shadow var(--duration-fast);
}

.disclosure-buttons button:first-child {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--color-accent-glow);
}

.disclosure-buttons button:first-child:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-accent-glow);
}

.disclosure-buttons button:last-child {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.disclosure-buttons button:last-child:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
  background: var(--color-accent-light);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 249, 247, 0.4) 0%,
    rgba(250, 249, 247, 0.75) 50%,
    rgba(250, 249, 247, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(36px);
  animation: fadeUp 1.8s var(--ease-smooth) 0.4s forwards;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 1.5s var(--ease-smooth) 0.7s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1.3s var(--ease-smooth) 1.2s forwards;
}

.hero-scroll-icon {
  width: 26px;
  height: 42px;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration-fast);
}

.hero-scroll:hover .hero-scroll-icon {
  border-color: var(--color-accent);
}

.hero-scroll-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0.5;
  }
}

/* Section numbering */
.section-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}

.section-num.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
section.full-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 2.5rem 5rem;
  position: relative;
  background: var(--color-bg);
}

section.full-section:nth-of-type(even) {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 50%, var(--color-bg) 100%);
}

.section-head {
  margin-bottom: 2.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-soft);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.section-head h3 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
}

.section-content {
  max-width: 720px;
}

.section-content p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-item {
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--color-border-soft);
  background: linear-gradient(180deg, transparent 0%, var(--color-accent-light) 100%);
  background-size: 100% 0;
  background-position: 0 0;
  background-repeat: no-repeat;
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth),
    background-size 0.5s var(--ease-smooth);
}

.stat-item:hover {
  background-size: 100% 100%;
}

.stat-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.stat-item .stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.stat-item .stat-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
  display: none;
}

@media (min-width: 600px) {
  .stat-item .stat-desc {
    display: block;
  }
}

/* Us in Numbers section (sample-site style) */
.us-in-numbers-section {
  padding-bottom: 4rem;
}

.us-in-numbers-intro {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.us-in-numbers-intro p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

.us-in-numbers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 0 2rem;
  border-top: 1px solid var(--color-border-soft);
}

@media (min-width: 600px) {
  .us-in-numbers-grid {
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--color-border-soft);
  }
}

.us-in-numbers-item {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--color-border-soft);
  border-right: none;
  background: transparent;
  background-size: 100% 0;
  transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth),
    background var(--duration-fast), background-size var(--duration-fast);
}

@media (min-width: 600px) {
  .us-in-numbers-item {
    border-bottom: none;
    border-right: 1px solid var(--color-border-soft);
    padding: 2rem 1.5rem;
  }

  .us-in-numbers-item:last-child {
    border-right: none;
  }
}

.us-in-numbers-item:hover {
  background: var(--color-accent-light);
  background-size: 100% 100%;
}

.us-in-numbers-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.us-in-numbers-value .count-num,
.us-in-numbers-value .count-suffix {
  display: inline;
}

@media (min-width: 768px) {
  .us-in-numbers-value {
    font-size: 3rem;
  }
}

.us-in-numbers-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.us-in-numbers-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 599px) {
  .us-in-numbers-desc {
    display: none;
  }
}

.us-in-numbers-footer {
  max-width: 720px;
}

.us-in-numbers-footer p {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.us-in-numbers-note {
  font-size: 0.8rem !important;
  color: var(--color-text-muted) !important;
  margin-bottom: 1.5rem !important;
}

.us-in-numbers-footer .btn-primary {
  margin-top: 0.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px var(--color-accent-glow);
  transition: background var(--duration-fast), transform var(--duration-fast),
    box-shadow var(--duration-fast);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--color-accent-glow);
}

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--duration-fast), color var(--duration-fast),
    background var(--duration-fast);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* Hallmarks / hexagon grid */
.hallmarks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.hallmark-item {
  text-align: center;
  padding: 2rem 1rem;
  opacity: 0;
  transform: translateY(25px) scale(0.98);
  transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}

.hallmark-item.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hallmark-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-accent);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-fast), color var(--duration-fast),
    background var(--duration-fast), box-shadow var(--duration-fast),
    transform var(--duration-fast);
}

.hallmark-item:hover .hallmark-icon {
  border-color: var(--color-accent);
  color: #fff;
  background: var(--color-accent);
  box-shadow: 0 6px 20px var(--color-accent-glow);
  transform: scale(1.05);
}

.hallmark-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

/* Section images */
.section-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth),
    box-shadow var(--duration-normal);
}

.section-image.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.section-image:hover {
  box-shadow: var(--shadow-lg);
}

/* Home: one shared background for Culture, Careers, Contact */
.home-sections-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-sections-bg .section-with-bg {
  background-image: none;
}

.section-with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 249, 247, 0.88) 0%,
    rgba(250, 249, 247, 0.75) 50%,
    rgba(250, 249, 247, 0.92) 100%
  );
  z-index: 0;
}

.section-with-bg .section-num,
.section-with-bg .section-head,
.section-with-bg .section-content,
.section-with-bg .section-cta,
.section-with-bg .us-in-numbers-intro,
.section-with-bg .us-in-numbers-grid,
.section-with-bg .us-in-numbers-footer,
.section-with-bg .hallmarks {
  position: relative;
  z-index: 1;
}

/* Page hero (inner pages) */
.page-hero {
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 9rem 2.5rem 5rem;
  background-size: cover;
  background-position: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 249, 247, 0.7) 0%,
    rgba(250, 249, 247, 0.85) 100%
  );
}

.page-hero h1 {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-text);
  animation: fadeUp 1.4s var(--ease-smooth);
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.6);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-surface) 100%);
  padding: 4.5rem 2.5rem 2.5rem;
  border-top: 1px solid var(--color-border-soft);
  box-shadow: 0 -2px 24px var(--color-shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(4, 1fr);
  }
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand .logo {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

.footer-column h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  padding: 0.25rem 0;
  transition: color var(--duration-fast);
}

.footer-column a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-legal a:hover {
  color: var(--color-accent);
}

/* Inner page sections (multi-section layout like home) */
.inner-section {
  padding: 5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.inner-section:nth-of-type(even) {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 50%, var(--color-bg) 100%);
}

.inner-section .section-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.inner-section .section-head {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-soft);
}

.inner-section .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.inner-section .section-head h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* Split section: text + image side by side */
.inner-section--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.inner-section--split .section-num,
.inner-section--split .section-head {
  grid-column: 1;
}

@media (min-width: 768px) {
  .inner-section--split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .inner-section--split .section-num,
  .inner-section--split .section-head {
    grid-column: 1 / -1;
  }

  .inner-section--split .split-content {
    grid-column: 1;
  }

  .inner-section--split .split-image {
    grid-column: 2;
  }

  .inner-section--split.reverse .split-content {
    grid-column: 2;
  }

  .inner-section--split.reverse .split-image {
    grid-column: 1;
  }
}

.split-content p {
  color: var(--color-text-soft);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.inner-section--split .split-content p {
  margin-bottom: 1.25rem;
}

.inner-section--split .split-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.inner-section--split .split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

/* Founder / leadership quote block */
.founder-section .founder-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.founder-section .founder-title {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.founder-section .founder-speech {
  margin: 0;
  padding: 0;
  border: none;
}
.founder-section .founder-speech p {
  color: var(--color-text-soft);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.founder-section .founder-speech p:last-child {
  margin-bottom: 0;
}

/* Full-width image section with overlay text */
.inner-section--image {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.inner-section--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 249, 247, 0.75) 0%, rgba(250, 249, 247, 0.9) 100%);
}

.inner-section--image .section-head,
.inner-section--image .section-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.inner-section--image .section-content p {
  color: var(--color-text-soft);
  line-height: 1.85;
}

/* Card grid section */
.inner-section--cards {
  padding: 5rem 2.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .cards-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}

.card-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-item .card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.card-item h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.card-item p {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.card-item a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.card-item a:hover {
  color: var(--color-accent);
}

/* Small decorative image in section */
.section-image-sm {
  width: 100%;
  max-width: 480px;
  margin: 2rem auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease-smooth), transform 1.1s var(--ease-smooth);
}

.section-image-sm.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Inner page content (legacy / simple blocks) */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.page-content p {
  margin-bottom: 1.25rem;
  color: var(--color-text-soft);
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 2.75rem 0 1rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-soft);
}

.page-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--color-text-soft);
  line-height: 1.8;
}

.page-content li {
  margin-bottom: 0.6rem;
}

/* Contact page */
.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-block {
  padding: 1.75rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-fast), transform var(--duration-fast),
    box-shadow var(--duration-fast), background var(--duration-fast);
}

.contact-block:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--color-bg-elevated);
}

.contact-block h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.contact-block p,
.contact-block a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.contact-block a:hover {
  color: var(--color-accent);
}

/* Login form */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 2rem;
}

.login-box {
  width: 100%;
  max-width: 440px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 2.75rem 3rem;
  box-shadow: var(--shadow-lg);
}

.login-box .logo {
  display: block;
  height: 42px;
  width: auto;
  margin: 0 auto 2rem;
}

.login-box h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1.75rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.login-box label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.login-box input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.login-box input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.login-box .btn-primary {
  width: 100%;
  padding: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
}

.login-box .footer-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.login-box .footer-text a {
  color: var(--color-accent);
  text-decoration: none;
}

/* Form elements global */
input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* Utility animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .animate-on-scroll {
  transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}

.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0.15s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.45s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.6s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.75s; }

/* Reveal block: container whose direct children animate in with stagger when in view */
.reveal-block > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-smooth), transform 1.1s var(--ease-smooth);
}

.reveal-block.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-block > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-block > *:nth-child(2) { transition-delay: 0.25s; }
.reveal-block > *:nth-child(3) { transition-delay: 0.4s; }
.reveal-block > *:nth-child(4) { transition-delay: 0.55s; }
.reveal-block > *:nth-child(5) { transition-delay: 0.7s; }
.reveal-block > *:nth-child(6) { transition-delay: 0.85s; }
.reveal-block > *:nth-child(7) { transition-delay: 1s; }
.reveal-block > *:nth-child(8) { transition-delay: 1.15s; }
.reveal-block > *:nth-child(9) { transition-delay: 1.3s; }
.reveal-block > *:nth-child(10) { transition-delay: 1.45s; }
.reveal-block > *:nth-child(11) { transition-delay: 1.6s; }
.reveal-block > *:nth-child(12) { transition-delay: 1.75s; }
.reveal-block > *:nth-child(13) { transition-delay: 1.9s; }
.reveal-block > *:nth-child(14) { transition-delay: 2.05s; }
.reveal-block > *:nth-child(15) { transition-delay: 2.2s; }

/* Single element reveal (for elements observed by JS) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-smooth), transform 1.1s var(--ease-smooth);
}

.reveal.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ========== PAGE-SPECIFIC DESIGNS (distinct, elegant, fashionable) ========== */

/* Home — Bold hero, clear sections */
.page-home .hero-title {
  letter-spacing: -0.03em;
  font-weight: 500;
}
.page-home .full-section .section-head h3 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
}
.page-home .section-num {
  font-weight: 600;
  letter-spacing: 0.25em;
}

/* About — Editorial / refined */
.page-about .page-hero h1 {
  letter-spacing: 0.02em;
  font-weight: 500;
}
.page-about .inner-section .section-head {
  border-bottom: none;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
}
.page-about .inner-section .section-head h3 {
  font-size: clamp(2.1rem, 4.2vw, 2.9rem);
}
.page-about .split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-soft);
}
.page-about .card-item {
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Culture — Warm / organic */
.page-culture .page-hero::after {
  background: linear-gradient(180deg, rgba(250, 249, 247, 0.72) 0%, rgba(245, 243, 238, 0.9) 100%);
}
.page-culture .inner-section--image::before {
  background: linear-gradient(180deg, rgba(250, 249, 247, 0.78) 0%, rgba(235, 232, 227, 0.92) 100%);
}
.page-culture .card-item {
  border-radius: 16px;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 4px 20px rgba(28, 27, 25, 0.04);
}
.page-culture .card-item:hover {
  box-shadow: 0 12px 32px rgba(28, 27, 25, 0.08);
}
.page-culture .section-num {
  color: var(--color-accent);
  letter-spacing: 0.3em;
}

/* Careers — Bold / dynamic */
.page-careers .page-hero h1 {
  font-weight: 600;
  letter-spacing: -0.03em;
}
.page-careers .inner-section .section-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.2em;
}
.page-careers .card-item {
  background: var(--color-bg);
  border: 2px solid var(--color-border-soft);
  border-top: 3px solid var(--color-accent);
  transition: border-color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}
.page-careers .card-item:hover {
  border-color: var(--color-accent);
  border-top-color: var(--color-accent);
}
.page-careers .inner-section--image::before {
  background: linear-gradient(180deg, rgba(28, 27, 25, 0.15) 0%, rgba(250, 249, 247, 0.88) 100%);
}
.page-careers .inner-section--image .section-head h3,
.page-careers .inner-section--image .section-content p {
  color: var(--color-text);
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Contact — Refined / form-forward */
.page-contact .card-item {
  border-radius: var(--radius-md);
  border: none;
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 2rem 2rem 2.25rem;
}
.page-contact .card-item h4 {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.page-contact .page-hero h1 {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Contact enquiry form */
.contact-form-wrap {
  max-width: 640px;
  margin: 3rem auto 0;
  padding: 2.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}
.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}
.contact-form .form-group {
  margin-bottom: 1.25rem;
}
.contact-form .btn-primary {
  margin-top: 0.5rem;
}

/* Vertex Digital — Tech / geometric */
.page-vertex-digital .page-hero h1 {
  font-weight: 500;
  letter-spacing: 0.04em;
}
.page-vertex-digital .inner-section .section-num {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.35em;
}
.page-vertex-digital .card-item {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.page-vertex-digital .card-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px var(--color-shadow);
}
.page-vertex-digital .inner-section--image::before {
  background: linear-gradient(135deg, rgba(250, 249, 247, 0.82) 0%, rgba(235, 232, 227, 0.9) 100%);
}

/* Login — Split-screen, elegant form */
.page-login .login-page {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  padding: 0;
}
@media (min-width: 900px) {
  .page-login .login-page {
    grid-template-columns: 1fr 1fr;
  }
}
.page-login .login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: var(--color-bg);
}
.page-login .login-brand-panel {
  display: none;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  position: relative;
}
@media (min-width: 900px) {
  .page-login .login-brand-panel {
    display: flex;
    align-items: flex-end;
    padding: 3rem;
  }
}
.page-login .login-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(28, 27, 25, 0.75) 100%);
}
.page-login .login-brand-panel .tagline {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.4;
  max-width: 320px;
}
.page-login .login-box {
  max-width: 400px;
  width: 100%;
  padding: 2.5rem 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.page-login .login-box .logo {
  margin-bottom: 2rem;
}
.page-login .login-box h1 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.page-login .login-box label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}
.page-login .login-box input {
  padding: 1rem 1.125rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-soft);
  background: var(--color-bg-elevated);
  font-size: 1rem;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.page-login .login-box input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}
.page-login .login-box .btn-primary {
  padding: 1rem 1.5rem;
  margin-top: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.page-login .login-box .footer-text {
  margin-top: 2rem;
  font-size: 0.85rem;
}
.page-login .login-box .footer-text a {
  transition: color var(--duration-fast);
}
.page-login .site-footer {
  grid-column: 1 / -1;
}
