/* UnderDawn Enterprise Styles with Parallax + Tilt + Flip Cards */

:root {
  --bg: #020202;
  --bg-alt: #050505;
  --surface: #050509;
  --border-subtle: #111827;
  --border-strong: #4b5563;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.16);
  --accent-2: #ffffff;
  --accent-2-soft: rgba(168, 85, 247, 0.16);
  --danger: #f97373;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.88);
  --shadow-subtle: 0 18px 40px rgba(0, 0, 0, 0.9);

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Clash Display", "Space Grotesk", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: radial-gradient(circle at top, #020617 0, #020617 35%, #000 100%);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  padding-top: var(--nav-height);
}

/* Layout */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.03), transparent 55%), radial-gradient(circle at bottom, rgba(148, 163, 184, 0.05), transparent 60%);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: 0.03em;
  margin: 0;
}

.section-subtitle {
  margin: 10px 0 0;
  color: #e5e7eb;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 0.9vw + 0.9rem, 1.6rem);
  line-height: 1.35;
  max-width: 42rem;
}

/* Header / Nav */

.site-header {
  overflow: visible;
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
  background: linear-gradient(to bottom, rgba(5, 8, 22, 0.94), rgba(5, 8, 22, 0.82), transparent);
  border-bottom: 1px solid rgba(15, 23, 42, 0.7);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(148, 163, 184, 0.45), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(34, 211, 238, 0.4), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(168, 85, 247, 0.4), transparent 70%);
  background-color: #020617;
  border: 1px solid rgba(148, 163, 184, 0.72);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 40px rgba(34, 211, 238, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  display: block;
  width: 96%;
  height: 96%;
  background-image: url("images/underdawn-lion-logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


.brand-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transform: translateX(4px);
  white-space: nowrap;
  transition: max-width 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.brand.brand-expanded .brand-text {
  max-width: 260px;
  opacity: 1;
  transform: translateX(0);
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Nav */

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 4px;
  border-bottom: 1px solid transparent;
}


.nav-links a:hover {
  color: var(--text-main);
  border-bottom-color: var(--accent);
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-main);
}

.nav-cta:hover {
  border-color: var(--accent);
  background: radial-gradient(circle at top left, var(--accent-soft), transparent 65%);
}

/* Mobile nav */

.nav-toggle {
  display: none;
  width: 40px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: rgba(15, 23, 42, 0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle-line {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.22), transparent 65%);
  opacity: 0.9;
  pointer-events: none;
  will-change: transform;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 120px;
}

.hero-copy {
  opacity: 0;
  animation: heroFade 0.9s ease forwards 0.1s;
  max-width: 820px;
}

.hero-visual {
  opacity: 0;
  animation: heroFade 0.9s ease forwards 0.25s;
}

@keyframes heroFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


.hero-title {
  position: relative;
  display: inline-block;
}

.hero-title .hero-line {
  display: inline-block;
  will-change: transform;
}

.hero-title-shift .hero-line-right {
  animation: heroLineRightShift 1.1s cubic-bezier(0.25, 0.8, 0.25, 1) 0.15s forwards;
}

@keyframes heroLineRightShift {
  0% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(8ch);
  }
}
.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: #ffffff;
  margin: 0 0 10px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}


.hero-title .hero-line {
  display: inline-block;
}

.hero-subtext-slow {
  transition-duration: 1s;
  transition-delay: 0.12s;
}

.hero-subtext-slow-long {
  transition-duration: 1.15s;
  transition-delay: 0.28s;
}
.hero-subtitle {
  margin: 0 0 16px;
  color: var(--text-muted);
  max-width: 720px;
}

.hero-accent-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
}

.hero-accent-bar {
  width: 40px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-2, #ffffff);
  flex-shrink: 0;
}

.hero-accent-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-support {
  margin: 0 0 20px;
  color: #cbd5f5;
  font-size: 0.94rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-highlights li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 6px;
}

/* Hero visual */

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: 32px;
  padding: 1px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.7), rgba(168, 85, 247, 0.7), rgba(15, 23, 42, 1));
  box-shadow: var(--shadow-soft);
}

.hero-frame-inner {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

.hero-frame-glow {
  position: absolute;
  inset: 22%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
  filter: blur(26px);
  opacity: 0.75;
  pointer-events: none;
  will-change: transform;
}

.hero-poster {
  position: relative;
  padding-bottom: 68%;
  background: radial-gradient(circle at 30% 20%, #1f2937, transparent 60%), radial-gradient(circle at 70% 80%, #020617, #000);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.05) contrast(1.05);
}

.hero-poster-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(15, 23, 42, 0.9), transparent 40%, rgba(15, 23, 42, 0.9));
  mix-blend-mode: soft-light;
}

.hero-poster-label {
  position: absolute;
  inset: auto 14px 14px 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.74rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-poster-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
}

.hero-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-iframe.loaded {
  opacity: 1;
}

.hero-visual-caption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  background: transparent;
  color: var(--text-main);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(15, 23, 42, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top left, var(--accent-soft), transparent 65%);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent);
}

/* Cards & grids */

.cards-grid {
  display: grid;
  gap: 20px;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top, #020617, #020617 35%, #000 100%);
  border: 1px solid rgba(30, 64, 175, 0.9);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-subtle);
}


/* Tilt base style (still used on non-flip sections) */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out;
}

/* Generic card content */

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.card li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.card li::before {
  content: "";
  margin-top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
}

/* --- Flip card system --- */

.flip-card {
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.flip-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 14px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.26s ease;
}

.flip-card-face {
  position: relative;
  min-height: 160px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-front {
  transform: rotateY(0deg);
}

.flip-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

/* 3D flip on hover (desktop) and class (all) */
@media (hover: hover) and (pointer: fine) {
  .service-card .flip-card:hover .flip-card-inner,
  .solution-card .flip-card:hover .flip-card-inner,
  .industry-card .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

/* Class-based flip (used for tap / keyboard / JS) */
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* Ensure faces share padding / layout through parent card */
.service-card .flip-card-face,
.industry-card .flip-card-face,
.solution-card .flip-card-face {
  padding: 2px 0 0;
}

/* Service front styles */

.service-card .flip-card-face {
  min-height: 190px;
}

.service-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, rgba(248, 250, 252, 0.9), transparent 60%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.35), rgba(15, 23, 42, 0.9));
  margin-bottom: 8px;
}

.service-icon {
  font-size: 1.1rem;
}

.service-front-line {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.flip-points {
  margin: 4px 0 8px;
}

.flip-points li {
  font-size: 0.84rem;
}

.flip-cta {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #e5e7eb;
  opacity: 0.9;
}

.flip-cta::after {
  content: " →";
  font-size: 0.8rem;
}

/* Industry simple flip */

.industry-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, rgba(248, 250, 252, 0.9), transparent 60%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.35), rgba(15, 23, 42, 0.9));
  margin-bottom: 8px;
}

.industry-icon {
  font-size: 1.1rem;
}

/* Case studies flip */

.solutions-grid .card {
  padding: 14px 14px 12px;
}

.case-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a5b4fc;
  margin: 2px 0 6px;
}

.case-thumb {
  position: relative;
  margin-top: 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top, #020617, #020617 40%, #000 100%);
}

.case-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.case-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.9));
}

.case-back-text {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* Trust grid, About grid, Contact layout */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.section-contact {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.06), transparent 60%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 22px;
}

.contact-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-list {
  margin: 16px 0 10px;
}

.contact-list div {
  margin-bottom: 8px;
}

.contact-list dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.contact-list dd {
  margin: 2px 0 0;
  font-size: 0.92rem;
}

.contact-list a {
  color: #e5e7eb;
}

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

.contact-calendar {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Form */

.contact-form h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.form-row {
  display: flex;
  gap: 14px;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.form-field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid rgba(30, 64, 175, 0.9);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  padding: 8px 10px;
  font-size: 0.88rem;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.form-field textarea {
  resize: vertical;
}

.form-actions {
  margin-top: 6px;
  text-align: right;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: #020617;
  padding: 32px 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr);
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 360px;
  margin-top: 10px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.footer-column h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #cbd5f5;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-column li {
  margin-bottom: 6px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(30, 64, 175, 0.7);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom-right a {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.footer-bottom-right a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Simple pages */

.simple-page {
  padding-top: var(--nav-height);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.18), transparent 55%),
    #020617;
  color: var(--text-main);
}

.simple-main {
  padding: 120px 0 96px;
}

.simple-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.simple-header {
  margin-bottom: 40px;
}

.simple-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 3vw + 1rem, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.simple-intro {
  margin-top: 10px;
  max-width: 46rem;
  font-size: 1.02rem;
  color: var(--text-muted);
}

/* Legacy simple-content (privacy / terms) still supported */
.simple-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.simple-content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 16px;
}

.simple-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Card-style section for detail pages */
.simple-section {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
  border-radius: 24px;
  padding: 32px 32px 40px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(14px);
}

.simple-section h2 {
  font-size: 0.95rem;
  margin-top: 24px;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.simple-section h2:first-of-type {
  margin-top: 0;
}

.simple-section ul {
  margin: 8px 0 12px;
  padding-left: 1.4rem;
}

.simple-section li {
  margin-bottom: 4px;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.simple-section h2 + p,
.simple-section h2 + ul {
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  padding-top: 12px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .simple-main {
    padding: 96px 0 72px;
  }
  .simple-section {
    padding: 24px 20px 30px;
    border-radius: 20px;
  }
}

/* Scroll-in animations */

[data-animate] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  will-change: opacity, transform;
}

[data-animate="left"] {
  transform: translate3d(-40px, 0, 0);
}

[data-animate="right"] {
  transform: translate3d(40px, 0, 0);
}

[data-animate="up"] {
  transform: translate3d(0, 40px, 0);
}

[data-animate="down"] {
  transform: translate3d(0, -30px, 0);
}

.animate-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Responsive */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    order: -1;
  }
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust-grid,
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    right: 20px;
    top: var(--nav-height);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(30, 64, 175, 0.9);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.9);
    min-width: 210px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    width: 100%;
  }
  .nav-cta {
    width: 100%;
    justify-content: center;
  }
  .section {
    padding: 64px 0;
  }
  .hero-inner {
    padding-bottom: 64px;
  }
  .hero-copy h1 {
    font-size: 2.2rem;
  }
  .cards-3,
  .cards-2,
  .trust-grid,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }
  .hero-copy h1 {
    font-size: 1.9rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .case-thumb img {
    height: 160px;
  }
  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Card background images mapped from 4K assets */
.card[class*="card-bg-"] {
  position: relative;
  overflow: hidden;
  background: #020617;
}
.card[class*="card-bg-"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.82;
  filter: saturate(1.08) contrast(1.06);
  z-index: 0;
}
.card[class*="card-bg-"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.96));
  mix-blend-mode: multiply;
  z-index: 0;
}
.card[class*="card-bg-"] > * {
  position: relative;
  z-index: 1;
}
.card-bg-1 { --card-bg: url('pexels-cottonbro-5473960.jpg'); }
.card-bg-2 { --card-bg: url('pexels-diva-31495689.jpg'); }
.card-bg-3 { --card-bg: url('pexels-diva-33145118.jpg'); }
.card-bg-4 { --card-bg: url('pexels-divinetechygirl-1181263.jpg'); }
.card-bg-5 { --card-bg: url('pexels-divinetechygirl-1181354.jpg'); }
.card-bg-6 { --card-bg: url('pexels-fauxels-3184339.jpg'); }
.card-bg-7 { --card-bg: url('pexels-fauxels-3184438.jpg'); }
.card-bg-8 { --card-bg: url('pexels-fotios-photos-32421570.jpg'); }
.card-bg-9 { --card-bg: url('pexels-googledeepmind-17483910.jpg'); }
.card-bg-10 { --card-bg: url('pexels-googledeepmind-17484975.jpg'); }
.card-bg-11 { --card-bg: url('pexels-googledeepmind-17485738.jpg'); }
.card-bg-12 { --card-bg: url('pexels-googledeepmind-17485741.jpg'); }
.card-bg-13 { --card-bg: url('pexels-googledeepmind-18069695.jpg'); }
.card-bg-14 { --card-bg: url('pexels-googledeepmind-18069696.jpg'); }
.card-bg-15 { --card-bg: url('pexels-googledeepmind-18069859.jpg'); }
.card-bg-16 { --card-bg: url('pexels-googledeepmind-25626515.jpg'); }
.card-bg-17 { --card-bg: url('pexels-googledeepmind-25626519.jpg'); }
.card-bg-18 { --card-bg: url('pexels-karola-g-4046715.jpg'); }
.card-bg-19 { --card-bg: url('pexels-markusspiske-1089438 (1).jpg'); }
.card-bg-20 { --card-bg: url('pexels-markusspiske-225769.jpg'); }
.card-bg-21 { --card-bg: url('pexels-mart-production-7550534.jpg'); }
.card-bg-22 { --card-bg: url('pexels-mikael-blomkvist-6476783.jpg'); }
.card-bg-23 { --card-bg: url('pexels-moose-photos-170195-1036642.jpg'); }
.card-bg-24 { --card-bg: url('pexels-pixabay-256219.jpg'); }
.card-bg-25 { --card-bg: url('pexels-rdne-7821915.jpg'); }
.card-bg-26 { --card-bg: url('pexels-ron-lach-9783355.jpg'); }
.card-bg-27 { --card-bg: url('pexels-steve-9872812.jpg'); }
.card-bg-28 { --card-bg: url('pexels-thisisengineering-3861969.jpg'); }
.card-bg-29 { --card-bg: url('pexels-tima-miroshnichenko-7567426.jpg'); }
/* Global taller card treatment for Accenture-style richness */
.card[class*="card-bg-"] {
  min-height: 320px;
}

/* Ensure flip-card faces stretch to fill taller cards */
.service-card .flip-card-face,
.industry-card .flip-card-face,
.solution-card .flip-card-face {
  min-height: 260px;
}


/* Luxury capabilities styles */
.luxury-h2{font-family:'Playfair Display',serif;font-size:2.6rem;margin:0 0 0.25rem;color:#0b1620;letter-spacing:0.02em;}
.luxury-sub{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;font-weight:300;color:#3b4a55;margin-top:0.5rem;}

/* Grid */
.capabilities-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem;margin-top:2rem;}
@media(max-width:1000px){ .capabilities-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:680px){ .capabilities-grid{grid-template-columns:1fr;} }

/* Card */
.lux-card{display:flex;gap:1.25rem;align-items:flex-start;padding:1.25rem;background:linear-gradient(180deg,rgba(255,255,255,0.85),rgba(248,249,250,0.85));backdrop-filter:blur(6px);border-radius:14px;box-shadow:0 10px 30px rgba(8,16,24,0.12);border:1px solid rgba(255,255,255,0.6);transition:transform .36s cubic-bezier(.2,.9,.3,1),box-shadow .36s;}
.lux-card:hover{transform:translateY(-8px) scale(1.01);box-shadow:0 20px 45px rgba(6,18,34,0.18);}

/* Left badge */
.lux-card-left{flex:0 0 84px;display:flex;align-items:center;justify-content:center;}
.lux-badge{font-family:'Playfair Display',serif;font-size:1.6rem;padding:0.6rem 0.85rem;border-radius:10px;background:linear-gradient(135deg,#0b3b5c,#05304a);color:white;box-shadow:0 6px 18px rgba(5,22,40,0.35);letter-spacing:0.06em;}

/* Right content */
.lux-card-right h3{font-family:'Playfair Display',serif;margin:0;font-size:1.25rem;color:#071226;}
.lux-card-right .lead{margin:0.5rem 0 0.75rem;color:#3a4852;font-family:Inter;font-weight:400;}
.lux-list{margin:0;padding-left:1.2rem;color:#34434b;margin-bottom:0.8rem;}
.lux-list li{margin:0.35rem 0;padding-left:0.2rem;}

/* link */
.lux-link{display:inline-block;margin-top:0.35rem;text-decoration:none;font-weight:600;color:#0b58a6;border-bottom:1px solid rgba(11,88,166,0.12);padding-bottom:2px;}

/* Slight decorative rule */
.capabilities-luxury{background:linear-gradient(180deg,#fbfcfe,#f7f9fb);padding:3.5rem 0 3.5rem;}


/* Interactive background cards */
.capabilities-interactive{padding:3rem 0;background:linear-gradient(180deg,#ffffff,#fbfdff);}
.capabilities-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem;margin-top:2rem;}
@media(max-width:1000px){ .capabilities-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:680px){ .capabilities-grid{grid-template-columns:1fr;} }

.interactive-card{position:relative;overflow:hidden;border-radius:14px;min-height:160px;display:flex;align-items:stretch;cursor:pointer;background-size:cover;background-position:center center;box-shadow:0 10px 30px rgba(8,16,24,0.08);transition:transform .28s cubic-bezier(.2,.9,.3,1);border:1px solid rgba(6,18,34,0.04);}
.interactive-card:focus{outline:2px solid rgba(11,88,166,0.18);outline-offset:3px;}
.interactive-card:hover{transform:translateY(-6px);}

/* white wipe overlay that reveals white background left->right */
.interactive-card .card-overlay{position:absolute;inset:0;background:rgba(255,255,255,0.95);transform-origin:left;transform:scaleX(0);transition:transform .28s ease-in-out;z-index:1;pointer-events:none;}
.interactive-card.expanded .card-overlay{transform:scaleX(1);}

/* ensure text sits above overlay */
.card-inner{position:relative;z-index:2;display:flex;width:100%;}
.card-left{flex:0 0 96px;display:flex;align-items:center;justify-content:center;padding:1rem;}
.card-badge{background:rgba(2,10,20,0.6);padding:0.45rem 0.7rem;border-radius:8px;color:white;font-weight:700;font-family:'Playfair Display',serif;letter-spacing:0.06em;box-shadow:0 6px 18px rgba(2,10,20,0.28);}

/* right side content */
.card-right{flex:1;padding:1.1rem 1.25rem;color:white;display:flex;flex-direction:column;justify-content:center;min-height:120px;}
.card-title{font-family:'Playfair Display',serif;font-size:1.15rem;margin:0;color:inherit;}

/* details hidden by default, revealed on expand */
.card-details{max-width:0;overflow:hidden;opacity:0;transform:translateX(-8px);transition:all .28s ease;pointer-events:none;}
.interactive-card.expanded .card-details{max-width:100%;opacity:1;transform:translateX(0);pointer-events:auto;}

/* When overlay expanded (white), invert text color to dark */
.interactive-card.expanded .card-right{color:#091226;}
.interactive-card.expanded .card-badge{background:#071226;color:#fff;}

/* detail styles */
.lead{margin:0 0 0.6rem;color:inherit;font-family:Inter;font-weight:400;}
.detail-list{margin:0 0 0.6rem;padding-left:1.05rem;color:inherit;}
.detail-list li{margin:0.35rem 0;}
.interactive-card .lux-link{color:inherit;font-weight:600;text-decoration:none;border-bottom:1px solid rgba(0,0,0,0.06);}

/* fast left-to-right reveal animation on touch/click */
.interactive-card .card-overlay{transition-duration:.2s}
.interactive-card .card-details{transition-duration:.22s;transition-delay:.04s}

/* reduced-height variants on mobile for better tap targets */
@media(max-width:500px){
  .interactive-card{min-height:190px;}
  .card-left{flex-basis:84px;}
}




/* --- Core Capabilities hover-reveal cards (Appended by assistant) --- */
.capabilities-section{padding:40px 0;}
.capabilities-container{max-width:1180px;margin:0 auto;padding:0 18px;color:#fff}
.section-title{
  font-size: 28px;
  margin: 6px 0 6px;
  color: #fff;
}

.section-lead{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 1.1vw + 1rem, 1.8rem);
  line-height: 1.35;
  color: #e5e7eb;
  opacity: 1;
  margin-top: 6px;
  margin-bottom: 26px;
  max-width: 46rem;
}


/* Grid */
.capabilities-grid{display:flex;gap:28px;align-items:flex-start;justify-content:center;flex-wrap:wrap}

/* Card */
.cap-card{width:260px;height:520px;border-radius:14px;overflow:hidden;position:relative;background:#111;box-shadow:0 6px 22px rgba(0,0,0,0.6);transition:transform .28s cubic-bezier(.2,.9,.2,1),box-shadow .28s;cursor:pointer;margin:6px}
.cap-image{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform .28s,filter .28s;filter:contrast(1.05) saturate(1.05)}
.cap-tag{position:absolute;left:14px;bottom:18px;background:rgba(8,9,11,0.7);padding:8px 12px;border-radius:10px;font-weight:700;font-size:13px;color:#fff;z-index:4}

/* overlay */
.cap-overlay{position:absolute;top:0;left:0;height:100%;width:100%;padding:72px 28px 28px 28px;display:flex;flex-direction:column;opacity:0;transform:translateX(-8%);pointer-events:none;z-index:3}
.cap-overlay h3{margin:6px 0 4px;color:#111;font-size:20px;font-weight:800}
.cap-overlay p{color:#222;margin:0 0 8px}
.cap-overlay ul{color:#222;margin:8px 0 12px;padding-left:18px}

/* CTA inside overlay */
.cap-cta{margin-top:auto;padding:10px 14px;background:#111;color:#fff;border-radius:8px;text-decoration:none;display:inline-block;pointer-events:auto}

/* white wipe */
.cap-card::before{content:"";position:absolute;top:0;left:0;width:0;height:100%;background:linear-gradient(90deg,#ffffff 0 30%, rgba(255,255,255,0.95) 100%);transition:width .22s linear;z-index:2;pointer-events:none}

/* expanded */
.cap-card.expanded{transform:translateY(-8px) scale(1.02);box-shadow:0 18px 50px rgba(0,0,0,0.7)}
.cap-card.expanded .cap-image{transform:scale(1.06) translateY(-6px);filter:blur(1px) brightness(.95)}
.cap-card.expanded::before{width:100%;transition:width .22s linear}
.cap-card.expanded .cap-overlay{opacity:1;transform:translateX(0);transition:opacity .18s .08s,transform .24s .08s;background:#fff;border-radius:14px;color:#111;padding:28px}

/* collapse */
.cap-card:not(.expanded) .cap-overlay{opacity:0;transform:translateX(-8%)}

/* responsive */
@media (max-width:900px){.cap-card{width:220px;height:440px} .capabilities-grid{gap:18px}}
/* --- end appended styles --- */




/* --- Adjusted Core Capabilities sizing (Accenture-like) --- */
.capabilities-grid{display:flex;gap:28px;align-items:flex-start;justify-content:center;flex-wrap:wrap}
.cap-card{width:220px;height:460px;border-radius:12px;overflow:hidden;position:relative;background:#111;box-shadow:0 6px 22px rgba(0,0,0,0.6);transition:transform .28s,box-shadow .28s;cursor:pointer;margin:6px}
@media (max-width:900px){.cap-card{width:200px;height:400px} .capabilities-grid{gap:18px}}
/* --- end adjusted sizing --- */


/* --- Layout: 3 columns x 2 rows, smaller cards to fit screen --- */
.capabilities-container{max-width:1200px;margin:0 auto;padding:0 18px}
.capabilities-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;align-items:start;justify-items:stretch}
.cap-card{width:100%;height:420px;border-radius:10px;overflow:hidden;position:relative;background:#111;margin:0;display:block}
.cap-image{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform .28s,filter .28s;}

/* always-visible title overlay at top-left on image */
.cap-title{position:absolute;left:18px;top:18px;z-index:5;padding:6px 10px;border-radius:6px;background:rgba(0,0,0,0.45)}
.cap-title h3{margin:0;font-size:18px;color:#fff;line-height:1.05;font-weight:700}

/* keep tag at bottom-left */
.cap-tag{position:absolute;left:14px;bottom:14px;background:rgba(8,9,11,0.7);padding:6px 10px;border-radius:8px;font-weight:700;font-size:12px;color:#fff;z-index:6}

/* overlay (detailed content) revealed on hover */
.cap-overlay{position:absolute;top:0;left:0;height:100%;width:100%;padding:28px;display:flex;flex-direction:column;opacity:0;transform:translateX(-8%);pointer-events:none;z-index:4}
.cap-overlay h3{display:none} /* hidden because title shows already */
.cap-overlay p, .cap-overlay ul{color:#222}

/* white wipe element */
.cap-card::before{content:"";position:absolute;top:0;left:0;width:0;height:100%;background:linear-gradient(90deg,#ffffff 0 30%, rgba(255,255,255,0.95) 100%);transition:width .22s linear;z-index:3;pointer-events:none}

/* expanded state */
.cap-card.expanded{transform:translateY(-6px) scale(1.01);box-shadow:0 18px 50px rgba(0,0,0,0.7)}
.cap-card.expanded .cap-image{transform:scale(1.05) translateY(-6px);filter:blur(1px) brightness(.95)}
.cap-card.expanded::before{width:100%}
.cap-card.expanded .cap-overlay{opacity:1;transform:translateX(0);transition:opacity .18s .08s,transform .24s .08s;background:#fff;border-radius:10px;color:#111;padding:28px;pointer-events:auto;z-index:4}

/* responsive: on narrow screens, 1 column or 2 */
@media (max-width:1000px){ .capabilities-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:620px){ .capabilities-grid{grid-template-columns:1fr} .cap-card{height:380px} .cap-title h3{font-size:16px} }



/* --- Interactive Sections shared styles --- */
.interactive-section{padding:36px 0}
.interactive-container{max-width:1200px;margin:0 auto;padding:0 18px;color:#fff}
.interactive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;align-items:start;justify-items:stretch}
.interactive-card{width:100%;height:380px;border-radius:10px;overflow:hidden;position:relative;background:#111;box-shadow:0 6px 22px rgba(0,0,0,0.6);transition:transform .28s,box-shadow .28s;cursor:pointer}
.interactive-image{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform .28s,filter .28s}
.interactive-title{position:absolute;left:16px;top:14px;z-index:6;padding:6px 10px;border-radius:6px;background:rgba(0,0,0,0.45)}
.interactive-title h3{margin:0;font-size:16px;color:#fff;line-height:1.05;font-weight:700}
.interactive-tag{position:absolute;left:12px;bottom:12px;background:rgba(8,9,11,0.7);padding:6px 10px;border-radius:8px;font-weight:700;font-size:12px;color:#fff;z-index:6}
.interactive-overlay{position:absolute;top:0;left:0;height:100%;width:100%;padding:72px 20px 20px 20px;display:flex;flex-direction:column;opacity:0;transform:translateX(-6%);pointer-events:none;z-index:5}
.interactive-overlay p,.interactive-overlay ul{color:#222}
.interactive-overlay .interactive-cta{margin-top:auto;padding:10px 14px;background:#111;color:#fff;border-radius:8px;text-decoration:none;display:inline-block;pointer-events:auto}
.interactive-card::before{content:"";position:absolute;top:0;left:0;width:0;height:100%;background:linear-gradient(90deg,#fff 0 30%, rgba(255,255,255,0.95) 100%);transition:width .22s linear;z-index:4;pointer-events:none}
.interactive-card.expanded{transform:translateY(-6px) scale(1.01);box-shadow:0 18px 50px rgba(0,0,0,0.7)}
.interactive-card.expanded .interactive-image{transform:scale(1.05) translateY(-6px);filter:blur(1px) brightness(.95)}
.interactive-card.expanded::before{width:100%}
.interactive-card.expanded .interactive-overlay{opacity:1;transform:translateX(0);transition:opacity .18s .08s,transform .24s .08s;background:#fff;border-radius:10px;color:#111;padding:72px 20px 20px 20px;pointer-events:auto;z-index:7}

/* responsive tweaks */
@media (max-width:1000px){ .interactive-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .interactive-grid{grid-template-columns:1fr} .interactive-card{height:340px} .interactive-title h3{font-size:15px} }


/* ============================
   Industries – Elegant List
   ============================ */

.industries-section {
  padding: 80px 0;
  background: #faf9f7;
}

.industries-inner {
  max-width: 960px;
  margin: 0 auto;
}

.industries-header {
  margin-bottom: 40px;
}

.industries-title {
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.industries-subtitle {
  max-width: 540px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666666;
}

.industries-list {
  border-top: 1px solid #e1e0da;
}

.industry-item {
  padding: 28px 0;
  border-bottom: 1px solid #e1e0da;
  transition: background 160ms ease-out;
}

.industry-item:hover {
  background: rgba(0, 0, 0, 0.015);
}

.industry-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.industry-code {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999999;
  font-weight: 500;
}

.industry-name {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.15rem;
  margin: 0;
  color: #222222;
}

.industry-points {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.industry-points li {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #222222;
  position: relative;
  padding-left: 16px;
}

.industry-points li + li {
  margin-top: 4px;
}

.industry-points li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
}

@media (max-width: 640px) {
  .industries-section {
    padding: 64px 0;
  }

  .industry-item {
    padding: 22px 0;
  }
}


/* ============================
   Industries – Stacked Cards over Large Title
   ============================ */

.industries-stack-section {
  position: relative;
  background: #000;
  color: #fff;
  padding: 120px 0 160px;
  overflow: visible;
}

.industries-stack-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Huge background title */
.industries-stack-title {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  font-size: clamp(3.25rem, 7vw, 5.8rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
  text-transform: none;
}

.industries-stack-subtitle {
  position: relative;
  margin: 0;
  margin-top: 32px;
  max-width: 440px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #e5e5e5;
  z-index: 2;
}

/* Card stack */
.industries-stack-cards {
  position: relative;
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding-bottom: 40px;
  z-index: 2;
}

.industry-panel {
  position: relative;
  width: min(520px, 100%);
  border-radius: 24px;
  padding: 28px 28px 26px;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transform-origin: center;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.25s ease-out,
    translate 0.25s ease-out;
}

/* Alternate left / right alignment */
.industry-panel:nth-child(odd) {
  align-self: flex-start;
}

.industry-panel:nth-child(even) {
  align-self: flex-end;
}

/* Slight vertical overlap for layering effect */
.industry-panel + .industry-panel {
  margin-top: -40px;
}

/* In-view animation class (set via JS) */
.industry-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.industry-panel:hover {
  box-shadow:
    0 32px 110px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  translate: 0 -4px;
}

/* Tag and text inside cards */
.industry-panel-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
  color: #f5f5f5;
  margin-bottom: 14px;
}

.industry-panel-title {
  margin: 0 0 8px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1.2;
}

.industry-panel-lead {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #f9fafb;
}

.industry-panel-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.industry-panel-points li {
  position: relative;
  padding-left: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e5e7eb;
}

.industry-panel-points li + li {
  margin-top: 3px;
}

.industry-panel-points li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
}

/* Distinct colorways for each industry */
.industry-panel--ed {
  background: #0f3df2;
}

.industry-panel--ent {
  background: #b60032;
}

.industry-panel--gov {
  background: #4b008f;
}

.industry-panel--sv {
  background: #006466;
}

.industry-panel--bi {
  background: #7a1e76;
}

.industry-panel--dx {
  background: #f97316;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .industries-stack-title {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  font-size: clamp(3.25rem, 7vw, 5.8rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
  text-transform: none;
}

  .industries-stack-subtitle {
  position: relative;
  margin: 0;
  margin-top: 32px;
  max-width: 440px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #e5e5e5;
  z-index: 2;
}
}

@media (max-width: 720px) {
  .industries-stack-section {
    padding: 96px 0 120px;
  }

  .industries-stack-title {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  font-size: clamp(3.25rem, 7vw, 5.8rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
  text-transform: none;
}

  .industries-stack-subtitle {
  position: relative;
  margin: 0;
  margin-top: 32px;
  max-width: 440px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #e5e5e5;
  z-index: 2;
}

  .industries-stack-cards {
    margin-top: 40px;
    gap: 40px;
  }

  .industry-panel {
    width: 100%;
  }

  .industry-panel + .industry-panel {
    margin-top: 0;
  }

  .industry-panel:nth-child(even),
  .industry-panel:nth-child(odd) {
    align-self: stretch;
  }
}


/* Sticky background heading for "Our Engineering Approach" */
.approach-section {
  position: relative;
  overflow: visible;
}

.approach-background-title {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
  text-transform: none;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Keep content above the background title */
.approach-section .section-lead,
.approach-section .interactive-grid {
  position: relative;
  z-index: 2;
}

.approach-section .section-lead {
  margin-bottom: 2.5rem;
}


/* ==== Rounded Pill Shape for Engineering Approach Cards ==== */
.interactive-card {
  border-radius: 44px !important;
  overflow: hidden;
}
.interactive-card .interactive-image {
  border-radius: 44px 44px 0 0 !important;
}
.interactive-card .interactive-overlay {
  border-radius: 44px !important;
}


/* ==== Generic sticky background heading for multi-card sections ==== */
.sticky-section {
  position: relative;
  overflow: visible;
}

.sticky-background-title {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
  text-transform: none;
  margin: 0;
  padding: 0;
}

/* Ensure content sits above the background heading */
.sticky-section .section-lead,
.sticky-section .interactive-grid {
  position: relative;
  z-index: 2;
}

.sticky-section .section-lead {
  margin-bottom: 2.5rem;
}


/* ==== Hybrid Hero: Radial Tech Spotlight + Subtle AI Grid ==== */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 18% 25%, rgba(87, 213, 255, 0.34), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.24), transparent 65%),
    #050816;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/patterns/ai-grid.svg");
  background-size: 900px;
  opacity: 0.07;
  mix-blend-mode: screen;
  animation: hero-grid-shift 18s linear infinite;
  pointer-events: none;
}

@keyframes hero-grid-shift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -220px 220px;
  }
}

/* Lift hero content above the grid layer */
.hero .container {
  position: relative;
  z-index: 1;
}


/* ==== Override old hero fade + line shift animations ==== */
.hero-copy {
  opacity: 1;
  animation: none;
}

.hero-title-shift .hero-line-right {
  animation: none;
}

/* ==== New hero headline center-out animation ==== */
.hero-title .hero-line {
  display: inline-block;
  white-space: nowrap;
}

.hero-line-left {
  animation: heroLineLeftCenterOut 1s ease-out forwards;
}

.hero-line-right {
  animation: heroLineRightCenterOut 1s ease-out forwards;
}

@keyframes heroLineLeftCenterOut {
  0% {
    opacity: 0;
    transform: translateX(40vw);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroLineRightCenterOut {
  0% {
    opacity: 0;
    transform: translateX(-40vw);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==== Subtext + CTA reveal after headline ==== */
.hero-accent-row,
.hero-subtitle,
.hero-ctas {
  opacity: 0;
  transform: translateY(18px);
  animation: heroMetaReveal 0.6s ease-out forwards;
  animation-delay: 1s;
}

@keyframes heroMetaReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Hide capabilities card title when overlay is active (hover/focus) */
.cap-card:hover .cap-title,
.cap-card:focus-within .cap-title {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}


/* ==== Hero typography: Accenture-style bold grotesk ==== */
.hero-copy h1,
.hero-copy .hero-title {
  font-family: "Space Grotesk", var(--font-display), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Make sure lines behave as separate blocks we can move */
.hero-title .hero-line {
  display: inline-block;
  white-space: nowrap;
}

/* Reset old center-swoop animation */
.hero-line-left,
.hero-line-right {
  animation: none;
}

/* New Accenture-style split animation: both start together, then move apart */
.hero-line-left {
  animation: heroLineLeftSplit 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.hero-line-right {
  animation: heroLineRightSplit 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes heroLineLeftSplit {
  0% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-3ch);
  }
}
  45% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-6ch);
  }
}

@keyframes heroLineRightSplit {
  0% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(3ch);
  }
}
  45% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(6ch);
  }
}


/* Center hero headline block in viewport */
.hero-inner {
  justify-content: center;
}

.hero-copy {
  margin: 0 auto;
  text-align: center;
}

/* Ensure title itself is centered as a block */
.hero-title {
  display: inline-block;
}


/* === Hero: full-bleed video, balanced darker overlay, zoom === */
.section.hero.hero-video {
  position: relative;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) contrast(1.08) saturate(1.12);
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.52),
    rgba(0, 0, 0, 0.78)
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
}

.hero-title span {
  text-shadow: 0 0 16px rgba(0,0,0,0.7);
}

/* === Hero: Accenture-style mask reveal & stagger === */
.hero-copy .eyebrow,
.hero-accent-row,
.hero-ctas {
  opacity: 0;
  transform: translateY(10px);
}

.hero-title .hero-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  clip-path: inset(100% 0 0 0);
}

body.hero-ready .hero-copy .eyebrow {
  animation: heroEyebrowIn 0.5s ease-out 0.1s forwards;
}

body.hero-ready .hero-title .hero-line-left {
  animation: heroMaskIn 0.8s cubic-bezier(.19,1,.22,1) 0.25s forwards;
}

body.hero-ready .hero-title .hero-line-right {
  animation: heroMaskIn 0.8s cubic-bezier(.19,1,.22,1) 0.4s forwards;
}

body.hero-ready .hero-accent-row {
  animation: heroFadeUp 0.6s ease-out 0.6s forwards;
}

body.hero-ready .hero-ctas {
  animation: heroFadeUp 0.6s ease-out 0.75s forwards;
}

@keyframes heroMaskIn {
  0% {
    opacity: 0;
    transform: translateY(16px);
    clip-path: inset(100% 0 0 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroEyebrowIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
    letter-spacing: 0.3em;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.18em;
  }
}

/* === Pure white hero typography & corporate buttons (no gradients) === */
.hero-copy .eyebrow {
  color: #ffffff;
}

.hero-copy h1 {
  color: #ffffff;
}

.hero-accent-label {
  color: rgba(255, 255, 255, 0.78);
}

.hero-accent-bar {
  background: #ffffff;
}

.hero-ctas .btn,
.hero-ctas .btn-primary,
.hero-ctas .btn-outline {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

.hero-ctas .btn-primary:hover,
.hero-ctas .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.btn-primary {
  background: #ffffff;
  color: #050816;
  box-shadow: none;
}

.btn-primary:hover {
  background: #f4f4f4;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
}

/* === Accenture-style card typography and hide tags === */
.cap-tag,
.interactive-tag {
  display: none !important;
}

.cap-title {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 5;
  padding: 0;
  border-radius: 0;
  background: none !important;
}

.cap-title h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}

.interactive-title {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 5;
  padding: 0;
  max-width: 72%;
  border-radius: 0;
  background: none !important;
}

.interactive-title h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}

.interactive-card,
.cap-card {
  background-color: transparent;
}

/* === Brand signature: Fleur De Leah for "UnderDawn" === */
@font-face {
  font-family: "FleurDeLeah";
  src: url("assets/fonts/FleurDeLeah-Regular.woff2") format("woff2"),
       url("assets/fonts/FleurDeLeah-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.brand-signature {
  font-family: "FleurDeLeah", serif !important;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  color: #ffffff;
}



/* === UnderDawn splash screen (logo + glitch + swipe) === */
#ud-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  animation: udSplashFade 0.4s ease-out 0.7s forwards;
}

.ud-splash-inner {
  position: relative;
}

.ud-splash-logo {
  width: min(220px, 28vw);
  max-width: 260px;
  height: auto;
  animation: udSplashGlitch 0.6s ease-out both;
}

/* metallic swipe highlight */
#ud-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 1) 15%,
    rgba(255, 255, 255, 0.13) 35%,
    rgba(200, 220, 255, 0.2) 45%,
    rgba(0, 0, 0, 1) 65%
  );
  mix-blend-mode: screen;
  transform: translateX(-130%);
  animation: udSplashSwipe 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.18s forwards;
}

@keyframes udSplashGlitch {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0.6));
  }
  20% {
    transform: translate3d(-2px, 1px, 0) scale(1.01);
    filter: drop-shadow(0 0 14px rgba(190, 220, 255, 0.9));
  }
  40% {
    transform: translate3d(2px, -1px, 0) scale(1.02);
    filter: drop-shadow(0 0 22px rgba(160, 210, 255, 1));
  }
  60% {
    transform: translate3d(-1px, 0, 0) scale(1.005);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.85));
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
  }
}

@keyframes udSplashSwipe {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes udSplashFade {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}



/* === UnderDawn splash text styling (Fleur De Leah, subtle) === */
.ud-splash-inner {
  text-align: center;
}

.ud-splash-text {
  margin-top: 18px;
  font-family: "FleurDeLeah", serif;
  font-size: clamp(16px, 2.3vw, 26px);
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #ffffff;
  opacity: 0;
  filter: blur(4px);
  animation: udTextFade 0.6s ease-out 0.4s forwards;
}

@keyframes udTextFade {
  0% { opacity: 0; filter: blur(4px); transform: translateY(6px); }
  100% { opacity: 1; filter: blur(0px); transform: translateY(0); }
}



/* === Brand logo behavior: reveal text on hover/focus, no click required === */
.brand:hover .brand-text,
.brand:focus-visible .brand-text,
.brand.brand-expanded .brand-text {
  max-width: 260px;
  opacity: 1;
  transform: translateX(0);
}



/* === Mobile header behavior: always show brand text (no hover on touch) === */
@media (max-width: 768px) {
  .brand-text {
    max-width: 260px;
    opacity: 1;
    transform: translateX(0);
  }
}



/* === Hero video fallback for small screens / reduced data === */
.hero-video-fallback {
  display: none;
  position: absolute;
  inset: 0;
  background-image: url("assets/images/hero-fallback.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* If user prefers reduced data, or on very small screens, hide video and show static image */
@media (prefers-reduced-data: reduce), (max-width: 640px) {
  .hero-video-bg {
    display: none;
  }
  .hero-video-fallback {
    display: block;
  }
}



.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 55px rgba(56, 189, 248, 0.95);
}

