/* TENTON-style dark UI + animations */
:root {
  --bg: #0a0a0a;
  --bg-card: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.08);
  --ink: #ffffff;
  --muted: #a3a3a3;
  --line: rgba(255,255,255,0.1);
  --btn-bg: #262626;
  --btn-text: #fff;
  --carousel-purple: #5b21b6;
  --carousel-blue: #1e40af;
  --header-height: 76px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  padding-top: var(--header-height);
}

.global-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.global-bg .hero-bg-animated {
  position: absolute;
  inset: 0;
}

.global-bg .topo-bg {
  opacity: 0.4;
}

/* Page container */
#app { min-height: 50vh; }

#app,
.header,
.footer {
  position: relative;
  z-index: 1;
}

.page {
  animation: pageEnter 0.5s ease forwards;
  color: var(--ink);
}

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

/* Scroll-triggered animation – soft & breathtaking */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Service detail fallback: keep content visible even if scroll reveal fails (Safari) */
#page-service-detail .animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

/* Topographic background */
.topo-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath fill='none' stroke='%23222' stroke-width='0.5' opacity='0.4' d='M0 100 Q100 80 200 100 T400 100 M0 150 Q100 130 200 150 T400 150 M0 200 Q100 180 200 200 T400 200 M0 250 Q100 230 200 250 T400 250 M0 300 Q100 280 200 300 T400 300'/%3E%3Cpath fill='none' stroke='%23333' stroke-width='0.3' opacity='0.3' d='M0 120 Q150 90 300 120 M0 180 Q150 150 300 180 M0 240 Q150 210 300 240'/%3E%3C/svg%3E");
  background-size: 400px 400px;
  pointer-events: none;
  z-index: 0;
}

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

/* Header: logo left, nav center, Contact right */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10,10,10,0.9);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 24px;
}

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--ink); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: transparent;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.lang-btn.active,
.lang-btn[aria-pressed="true"] {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
}

.btn-contact {
  padding: 12px 24px;
  background: #fff;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

/* Inner page hero (Services, Our Work, etc.) */
.page-hero {
  position: relative;
  padding: 140px 24px 100px;
  overflow: hidden;
  color: var(--ink);
}

.page-hero .topo-bg { opacity: 0.5; }

.page-hero-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.page-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 24px 0;
  max-width: 800px;
}

.page-hero-intro {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0;
}

/* CTA sections */
.cta-section { padding: 100px 0 !important; }

.text-center { text-align: center; }

.cta-section .section-intro { margin-left: auto; margin-right: auto; }

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  margin-top: 16px;
}

/* Projects page grid */
.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.project-page-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.project-page-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.25);
}

.project-page-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-page-card:hover .project-page-image img {
  transform: scale(1.05);
}

.project-page-body {
  padding: 28px;
}

.project-page-body .category {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.project-page-body h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 600;
}

.project-page-body p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Technologies page */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tech-card {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
}

.tech-card-title {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-subtitle {
  margin: 16px 0 10px 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.tech-tags-vintage {
  opacity: 0.9;
}

.tech-tag,
.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--card-border);
  transition: background 0.25s ease, color 0.25s ease;
}

.tech-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.tech-item-name {
  font-weight: 500;
}

.tech-tag:hover,
.tech-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.tech-item-vintage {
  opacity: 0.55;
  filter: grayscale(1);
  background: rgba(255,255,255,0.03);
}

.tech-item-vintage:hover {
  opacity: 0.7;
  filter: grayscale(0.6);
  background: rgba(255,255,255,0.05);
}

/* Career page */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.benefit-card {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
}

.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--ink);
  flex-shrink: 0;
}

.benefit-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.benefit-card p {
  margin: 8px 0 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.jobs-placeholder {
  padding: 48px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  text-align: center;
}

.jobs-placeholder .muted {
  color: var(--muted);
  margin: 0 0 24px 0;
  line-height: 1.6;
}

/* About page */
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-body {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

.about-body p {
  margin: 0 0 24px 0;
}

.about-body p:last-child { margin-bottom: 0; }

.about-story .split-image img {
  border-radius: 22px;
  border: 1px solid var(--card-border);
}

.about-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.about-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.about-card {
  padding: 26px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

.about-card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.04);
  text-align: center;
}

.stat-number {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.stat-label {
  margin: 8px 0 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Contact page */
.contact-page-split {
  align-items: flex-start;
  gap: 64px;
}

.contact-form-wrap .section-title {
  margin-bottom: 28px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-form select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 480px;
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--ink);
  font-family: inherit;
}

.contact-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-block h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 8px 0;
}

.contact-info-block p {
  margin: 0;
  font-size: 16px;
}

.contact-info-block a {
  color: var(--ink);
  text-decoration: none;
}

.contact-info-block a:hover { text-decoration: underline; }

.contact-map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}

.contact-map {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.04);
}

.contact-map iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
  filter: invert(1) hue-rotate(180deg) saturate(0.55) brightness(0.85) contrast(0.9);
}

/* Hero */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 100px;
  overflow: hidden;
}

/* Calm, honorable animated background – image + soft gradient orbs + subtle motion */
.hero-bg-animated {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 20% 20%, rgba(30, 40, 80, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 80% 60%, rgba(25, 25, 45, 0.45) 0%, transparent 45%),
    linear-gradient(180deg, rgba(10, 10, 18, 0.82) 0%, rgba(8, 8, 14, 0.88) 100%),
    url("https://images.unsplash.com/photo-1557682250-3bd19110a942?w=1920&q=75") center / cover no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 120% 120%;
  animation: hero-bg-drift 28s ease-in-out infinite;
}

.hero-bg-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%231a1a2e' stop-opacity='0.35'/%3E%3Cstop offset='100%25' stop-color='%230a0a0a' stop-opacity='0.5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23g)'/%3E%3Ccircle cx='400' cy='300' r='200' fill='none' stroke='%23222' stroke-width='0.4' opacity='0.18'/%3E%3Ccircle cx='400' cy='300' r='280' fill='none' stroke='%23333' stroke-width='0.3' opacity='0.12'/%3E%3C/svg%3E") center / cover no-repeat;
  opacity: 0.7;
  animation: hero-bg-pulse 22s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-bg-drift {
  0%, 100% { background-position: 0% 0%, 100% 100%, 0 0, 50% 50%; }
  33% { background-position: 2% 3%, 98% 97%, 0 0, 52% 48%; }
  66% { background-position: -1% 2%, 101% 99%, 0 0, 48% 52%; }
}

@keyframes hero-bg-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.03); }
}

.hero .topo-bg { opacity: 0.5; z-index: 1; }

.mascot {
  position: absolute;
  top: 100px;
  right: 12%;
  width: 140px;
  height: 160px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 50% 50% 48% 52%;
  opacity: 0.5;
  animation: mascot-float 6s ease-in-out infinite;
}

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

.mascot::before {
  content: '';
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  box-shadow: -22px 0 0 0 transparent, 22px 0 0 0 transparent;
}

.hero-content { position: relative; z-index: 1; max-width: 1200px; width: 100%; }

.hero-title {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 28px 0;
  font-weight: 700;
}

.hero-title span { display: block; }

.hero-tagline {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  max-width: 560px;
  margin: 0;
  line-height: 1.5;
}

/* Sections */
.section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
  color: var(--ink);
}

.section-dark { background: rgba(0,0,0,0.35); }

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
}

.section-title.light { color: var(--ink); }

.section-intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.section-intro.light { color: rgba(255,255,255,0.75); }

.label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px 0;
}

/* Service cards + skyline */
.section-services .section-title { margin-bottom: 48px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: rgba(20, 20, 28, 0.6);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.03);
}

.service-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 14, 0.4) 100%);
  pointer-events: none;
}

.service-card .service-card-body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card:not(:has(.service-card-image)) .service-card-body {
  padding-top: 32px;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40'%3E%3Cpath fill='%231a1a1a' d='M0 40V20 Q50 0 100 20 T200 20 T300 20 T400 20V40Z'/%3E%3C/svg%3E") center bottom / 100% 40px no-repeat;
  opacity: 0.8;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

.service-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.service-card .service-card-body .service-card-icon {
  flex-shrink: 0;
}

.service-card:hover .service-card-icon {
  transform: scale(1.05);
}

.service-card-body h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.service-card-body p {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.service-hero .split-image img {
  border-radius: 22px;
  border: 1px solid var(--card-border);
}

.service-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.service-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.timeline {
  position: relative;
  margin-top: 32px;
  padding-left: 40px;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.12);
}

.timeline-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.timeline-marker {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  flex-shrink: 0;
}

.timeline-content {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
  width: 100%;
}

.timeline-content:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

.timeline-content h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.service-hero .split-image img {
  border-radius: 22px;
  border: 1px solid var(--card-border);
}

.service-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.service-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.lifecycle-card {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.lifecycle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.lifecycle-card > * {
  position: relative;
  z-index: 1;
}

.lifecycle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

.lifecycle-index {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.lifecycle-card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.lifecycle-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.btn-explore {
  display: inline-block;
  padding: 12px 24px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-explore:hover {
  background: #333;
  transform: translateY(-1px);
}

.btn-spaced {
  margin-top: 18px;
}

.btn-explore.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

/* Our Work: carousel */
.our-work-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.btn-pill {
  padding: 12px 24px;
  background: var(--btn-bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.btn-pill:hover {
  background: #333;
  transform: translateY(-2px);
}

.projects-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.project-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  background: var(--carousel-purple);
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.project-slide::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to left, rgba(0,0,0,0.15), transparent);
  pointer-events: none;
  z-index: 2;
}

.project-slide.slide-alt { background: var(--carousel-blue); }

.project-slide-text {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.project-slide-text .category {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.project-slide-text h3 {
  margin: 0 0 12px 0;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.project-slide-text p {
  margin: 0 0 24px 0;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.project-slide-text .btn-explore {
  align-self: flex-start;
  background: #fff;
  color: #1a1a1a;
  border: none;
}

.project-slide-text .btn-explore:hover {
  background: #f0f0f0;
}

.project-slide-image {
  position: relative;
  min-height: 320px;
}

.project-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-next {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-next:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.05);
}

/* Industries: horizontal slider */
.industries-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.industries-slider {
  overflow: hidden;
  margin: 0 -24px;
  padding: 0 24px 16px;
}

.industries-track {
  overflow: hidden;
  padding-bottom: 8px;
}

.industries-track-inner {
  display: flex;
  gap: 0;
  width: max-content;
  animation: industries-auto-scroll 220s linear infinite;
}

.industries-set {
  display: flex;
  gap: 24px;
}

@media (hover: hover) and (pointer: fine) {
  .industries-track-inner:hover {
    animation-play-state: paused;
  }
}

@keyframes industries-auto-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.industry-card {
  flex: 0 0 320px;
  padding: 28px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
}

.industry-card-image {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  margin-bottom: 20px;
  background: var(--btn-bg);
  overflow: hidden;
}

.industry-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-card h3 {
  margin: 0 0 10px 0;
  font-size: 17px;
  font-weight: 600;
}

.industry-card p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Who we are + Contact: two-column with image */
.container-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.split-text .company-body,
.split-text .contact-subtitle {
  margin-bottom: 24px;
}

.btn-white {
  background: #fff !important;
  color: #0a0a0a !important;
  border: none !important;
}

.btn-white:hover {
  background: #f0f0f0 !important;
}

.split-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

.split-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.image-credit {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: rgba(0,0,0,0.6);
  font-size: 12px;
  color: #fff;
  border-radius: 6px;
}

/* Contact card: rounded dark card */
.section-contact .container-split {
  background: #1a1a1a;
  border-radius: 24px;
  padding: 48px;
  gap: 48px;
  border: 1px solid var(--line);
}

.contact-title {
  margin-bottom: 16px;
}

.contact-subtitle {
  font-size: 18px;
  margin: 0 0 24px 0;
}

.contact-email {
  margin-top: 16px;
  font-size: 14px;
}

.contact-email a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Footer: black strip, logo, links, copyright */
.footer {
  background: #000;
  padding: 40px 24px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-logo:hover { opacity: 0.8; }

.footer-logo img {
  height: 22px;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--ink); }

.footer-links .sep {
  color: var(--muted);
  font-size: 12px;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .project-slide {
    grid-template-columns: 1fr;
  }

  .project-slide-image {
    min-height: 280px;
    order: -1;
  }

  .container-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split-image { order: -1; }
}

@media (max-width: 1024px) {
  :root { --header-height: 122px; }

  .nav {
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 14px 20px;
  }

  .nav-links {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 18px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links a {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
  }

  .btn-contact {
    padding: 10px 16px;
    font-size: 13px;
  }

  .lang-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  :root { --header-height: 128px; }

  .container { padding: 0 16px; }

  .nav { padding: 12px 16px; }
  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .nav-links { gap: 14px; }

  .hero { min-height: 65vh; padding: 92px 16px 68px; }
  .page-hero { padding: 110px 16px 74px; }
  .page-hero-title { font-size: clamp(30px, 8vw, 46px); }
  .page-hero-intro { font-size: 16px; }
  .mascot { width: 100px; height: 120px; right: 5%; top: 80px; }
  .hero-title { font-size: clamp(34px, 11vw, 56px); }
  .hero-tagline { font-size: 15px; }
  .section { padding: 72px 0; }

  .services-grid,
  .tech-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .projects-page-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-page-body,
  .tech-card,
  .benefit-card {
    padding: 24px;
  }

  .our-work-header,
  .industries-header { flex-direction: column; align-items: flex-start; }
  .industry-card {
    flex: 0 0 260px;
    padding: 22px;
  }

  .jobs-placeholder { padding: 28px 22px; }

  .contact-page-split { gap: 28px; }
  .contact-form select,
  .contact-form input,
  .contact-form textarea {
    max-width: 100%;
  }

  .section-contact .container-split { padding: 32px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { position: static; transform: none; white-space: normal; }
  .footer-links { justify-content: center; }
}

@media (max-width: 560px) {
  :root { --header-height: 132px; }

  .btn-contact {
    padding: 9px 12px;
    font-size: 12px;
  }

  .lang-toggle {
    padding: 2px;
    border-radius: 10px;
  }

  .lang-btn {
    padding: 6px 8px;
    border-radius: 6px;
  }

  .section-contact .container-split {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .industry-card { flex: 0 0 230px; }

  .contact-map iframe { height: 220px; }
}
