/* ===== VARIABLES ===== */
:root {
  --teal-900: #072A32;
  --teal-800: #0A3D47;
  --teal-700: #0D5060;
  --teal-600: #116670;
  --teal-500: #147A80;
  --teal-400: #1A9090;
  --teal-300: #24ADA0;
  --teal-200: #40C8B8;
  --teal-100: #8DE0D8;
  --teal-50: #D0F2EF;

  --white: #FFFFFF;
  --gray-50: #F4FAFA;
  --gray-100: #E6F0F0;
  --gray-200: #C4D8D8;
  --gray-400: #85AAAA;
  --gray-600: #3A6060;
  --gray-700: #264A4A;
  --gray-800: #152E30;
  --gray-900: #0A1A1C;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --hero-bg: linear-gradient(135deg, #052228 0%, #0A4050 40%, #106266 70%, #157373 100%);
  --nav-scrolled-bg: rgba(10, 61, 71, 0.97);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow: 0 4px 12px rgba(0, 0, 0, .10);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .14);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, .18);

  --transition: 240ms ease;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
}

input,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
}

p {
  line-height: 1.7;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  padding: var(--section-pad) 0;
}

.section--teal {
  background: var(--hero-bg);
  color: var(--white);
}

.section--gray {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  margin-top: .75rem;
  color: var(--gray-600);
  font-size: 1.1rem;
}

.section--teal .section-header p {
  color: var(--teal-100);
}

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== NAVIGATION ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 1.1rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.site-nav--scrolled {
  background: var(--nav-scrolled-bg);
  padding: .75rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--white);
  flex-shrink: 0;
}

.nav-logo {
  height: 36px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-menu a {
  color: rgba(255, 255, 255, .85);
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.nav-link--active {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
}

.nav-menu a.nav-link--active {
  background: rgba(255, 255, 255, .18);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-btn {
  color: rgba(255, 255, 255, .7);
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .55rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, .1);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--teal-400);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26, 144, 144, .4);
}

.btn--primary:hover {
  background: var(--teal-300);
  box-shadow: 0 6px 20px rgba(26, 144, 144, .5);
}

.btn--outline {
  border: 2px solid rgba(255, 255, 255, .6);
  color: var(--white);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .1);
}

.btn--solid {
  background: var(--white);
  color: var(--teal-700);
  font-weight: 700;
}

.btn--solid:hover {
  background: var(--teal-50);
}

.btn--outline-dark {
  border: 2px solid var(--teal-400);
  color: var(--teal-600);
  background: transparent;
}

.btn--outline-dark:hover {
  background: rgba(13, 80, 96, .06);
  border-color: var(--teal-600);
}

.btn--sm {
  padding: .55rem 1.2rem;
  font-size: .875rem;
}

/* ===== HERO (HOMEPAGE) ===== */
@keyframes heroGradient {
  0% {
    background-position: 0% 30%;
  }

  33% {
    background-position: 100% 70%;
  }

  66% {
    background-position: 60% 0%;
  }

  100% {
    background-position: 0% 30%;
  }
}

.hero {
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(135deg, #052228 0%, #0A4050 20%, #106266 45%, #157373 65%, #0E525A 85%, #052228 100%);
  background-size: 150% 150%;
  animation: heroGradient 60s ease infinite;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: clamp(4.5rem, 10vh, 7rem) 1.5rem 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}


.hero-plus-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0px, black 110px);
  mask-image: linear-gradient(to bottom, transparent 0px, black 110px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 5rem; /* reserve space for absolute tags */
}

.hero-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  margin-bottom: clamp(1.75rem, 4.5vh, 3rem);
}

.hero-logo {
  height: clamp(52px, 9vw, 96px);
  width: auto;
  max-width: 600px;
}

.hero-divider {
  width: 72px;
  height: 2px;
  background: rgba(255, 255, 255, .35);
  margin: 0 auto clamp(2.25rem, 4.5vh, 3.5rem);
}

.hero h1 {
  max-width: 860px;
  margin: 0 auto 1rem;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto clamp(2.25rem, 4.5vh, 3.5rem);
  opacity: .8;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
  margin-bottom: auto;
}

.hero-tags {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: .7;
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
  font-weight: 500;
  letter-spacing: .05em;
}

.hero-tags .sep {
  opacity: .4;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--hero-bg);
  color: var(--white);
  text-align: center;
  padding: 9rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
  margin-bottom: .6rem;
  position: relative;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: .8;
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

/* ===== SERVICES CARDS (homepage preview) ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal-600);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
}

.card h3 {
  margin-bottom: .5rem;
}

.card p {
  color: var(--gray-600);
  font-size: .95rem;
}

.section-footer {
  text-align: center;
  margin-top: 2.75rem;
}

/* ===== CLIENTS CAROUSEL ===== */
.clients-section {
  padding-bottom: var(--section-pad);
}

.clients-section .section-header {
  margin-bottom: 2.5rem;
}

@keyframes scrollClients {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.clients-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 7rem;
  width: max-content;
  animation: scrollClients 36s linear infinite;
  will-change: transform;
}

.clients-track:hover {
  animation-play-state: paused;
}

.client-logo {
  flex-shrink: 0;
  height: 64px;
  display: flex;
  align-items: center;
}

.client-logo img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.45);
  transition: filter 0.35s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.clients-track:hover .client-logo a:hover img {
  filter: grayscale(0%) opacity(1);
}

.client-logo a {
  display: flex;
  align-items: center;
  height: 100%;
}

/* ===== STATS ===== */
.stats-section {
  background: var(--hero-bg);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: .4rem;
  color: var(--teal-200);
}

.stat-label {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .75;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-visual {
  position: relative;
}

.about-preview-box {
  background: var(--hero-bg);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

.about-preview-box--photo {
  padding: 0;
  overflow: hidden;
  position: relative;
  height: 360px;
}

.about-preview-box--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.about-preview-box .logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.about-logo {
  width: 72px;
  height: auto;
}

.about-preview-box .tagline {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .7;
}

.about-preview-content h2 {
  margin-bottom: .75rem;
}

.about-preview-content h4 {
  color: var(--teal-500);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.about-preview-content p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ===== PRODUCTS ===== */
.products-section {
  margin-bottom: 4rem;
}

.products-section-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--gray-100);
}

.products-section--software .products-section-header {
  border-color: var(--teal-200);
}

.products-section--hardware .products-section-header {
  border-color: #d97706;
}

.products-section-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.products-section--software .products-section-icon {
  background: rgba(13,80,96,.08);
}

.products-section--hardware .products-section-icon {
  background: rgba(217,119,6,.08);
}

.products-section-icon--img {
  width: 96px;
  height: 72px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: none;
}

.products-section-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.products-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: .2rem;
}

.products-section-sub {
  font-size: .875rem;
  color: var(--gray-500);
  margin: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ── Product cards (grid on products.html) ── */
.product-card {
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.13);
}

.product-card:target {
  animation: product-card-highlight 2.4s ease forwards;
  outline: none;
}

@keyframes product-card-highlight {
  0%   { box-shadow: 0 0 0 3px var(--teal-300), var(--shadow); }
  50%  { box-shadow: 0 0 0 3px var(--teal-300), var(--shadow); }
  100% { box-shadow: var(--shadow); }
}

.product-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  font-size: 3.5rem;
}

.product-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: .3rem;
}

.product-tagline {
  font-size: .875rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

/* ── Shared badges (used on product detail page) ── */
.product-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}

.product-badge {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 100px;
}

.product-badge--available {
  background: rgba(16, 185, 129, .12);
  color: #059669;
}

.product-badge--beta {
  background: rgba(245, 158, 11, .12);
  color: #d97706;
}

.product-badge--coming {
  background: rgba(99, 102, 241, .12);
  color: #4f46e5;
}

.product-cat {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-500);
  background: rgba(13,80,96,.07);
  padding: .2rem .65rem;
  border-radius: 100px;
}

/* ── Pages without a hero: always show nav background ── */
.page-no-hero .site-nav {
  background: var(--nav-scrolled-bg);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Product detail page ── */
.pd-section {
  padding-top: 7rem;
}

.pd-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--teal-600);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color var(--transition);
}

.pd-back:hover {
  color: var(--teal-800);
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.pd-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-50);
}

.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-gallery-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

.pd-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-thumb.active,
.pd-thumb:hover {
  border-color: var(--teal-500);
}

.pd-gallery-placeholder {
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  font-size: 5rem;
}

.pd-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: .5rem 0 .4rem;
  line-height: 1.2;
}

.pd-tagline {
  font-size: 1rem;
  color: var(--teal-600);
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.pd-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.pd-price span {
  font-size: .875rem;
  font-weight: 400;
  color: var(--gray-400);
  margin-left: .25rem;
}

.pd-desc {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.pd-features {
  margin-bottom: 2rem;
}

.pd-features h3 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-400);
  margin-bottom: .6rem;
  font-weight: 700;
}

.pd-features ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.pd-features li {
  font-size: .82rem;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: .3rem .75rem;
}

.pd-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.pd-notfound {
  padding: 4rem 0;
  text-align: center;
  color: var(--gray-500);
}

/* ── Product detail tabs ── */
.pd-tabs {
  margin-top: 3rem;
  border-top: 1px solid var(--gray-100);
  padding-top: 2rem;
}

.pd-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-100);
  margin-bottom: 2rem;
}

.pd-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: .75rem 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.pd-tab-btn:hover {
  color: var(--teal-600);
}

.pd-tab-btn.active {
  color: var(--teal-700);
  border-bottom-color: var(--teal-500);
}

.pd-tab-panel {
  display: none;
}

.pd-tab-panel.active {
  display: block;
}

.pd-tab-panel h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 1.5rem 0 .4rem;
}

.pd-tab-panel h4:first-child {
  margin-top: 0;
}

.pd-tab-panel p,
.pd-tab-panel li {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.pd-tab-panel code {
  font-family: monospace;
  font-size: .85em;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 4px;
  padding: .1em .4em;
  color: var(--gray-700);
}

/* Specs table */
.product-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.product-specs th,
.product-specs td {
  padding: .65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}

.product-specs th {
  font-weight: 600;
  color: var(--gray-500);
  width: 38%;
  background: var(--gray-50);
}

.product-specs td {
  color: var(--gray-800);
}

.product-specs tr:last-child th,
.product-specs tr:last-child td {
  border-bottom: none;
}

/* Docs list */
.product-docs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .5rem;
}

.product-docs li {
  font-size: .9rem;
  color: var(--teal-600);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.product-docs li::before {
  content: '↓';
  font-size: .8rem;
  color: var(--teal-400);
}

@media (max-width: 768px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pd-title {
    font-size: 1.6rem;
  }

  .pd-tab-btn {
    padding: .65rem 1rem;
    font-size: .82rem;
  }
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--teal-800);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-band h2 {
  margin-bottom: .75rem;
}

.cta-band p {
  opacity: .8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--teal-900);
  color: rgba(255, 255, 255, .75);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-legal-link {
  color: rgba(255,255,255,.4);
  font-size: .8rem;
  transition: color var(--transition);
}
.footer-legal-link:hover { color: var(--white); }

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

.footer-brand .nav-logo {
  height: 48px;
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: .4rem;
}

.footer-col h5 {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-col a,
.footer-col p {
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
  display: block;
  margin-bottom: .5rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .4);
}

/* ===== SERVICES PAGE ===== */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block.reverse {
  direction: rtl;
}

.service-block.reverse>* {
  direction: ltr;
}

.service-block-visual {
  background: var(--hero-bg);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  min-height: 280px;
  overflow: hidden;
}

.service-block-visual:has(img) {
  padding: 0;
  position: relative;
  height: 360px;
  align-self: start;
}


.service-block-visual svg {
  width: 80px;
  height: 80px;
  stroke-width: 1.25;
  opacity: .9;
}

.service-block-content h3 {
  font-size: 1.75rem;
  margin-bottom: .85rem;
}

.service-block-content p {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--gray-700);
  font-size: .95rem;
}

.service-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  flex-shrink: 0;
  margin-top: .55em;
}

.service-list li strong {
  display: block;
  color: var(--gray-800);
  font-weight: 600;
  margin-bottom: .2rem;
}

.service-list li p {
  color: var(--gray-600);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* service expand */
.service-expand-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.service-expand-wrap.is-open {
  grid-template-rows: 1fr;
}

.service-expand-inner {
  overflow: hidden;
}

.service-expand-btn {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--teal-400);
  color: var(--teal-600);
  font-size: .875rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.service-expand-btn:hover {
  background: rgba(13, 80, 96, .06);
  border-color: var(--teal-600);
}

.service-expand-btn .collapse-label { display: none; }
.service-expand-btn[aria-expanded="true"] .expand-label { display: none; }
.service-expand-btn[aria-expanded="true"] .collapse-label { display: inline; }

.service-expand-btn svg {
  transition: transform .3s ease;
  flex-shrink: 0;
}

.service-expand-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  counter-increment: step;
  position: relative;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal-100);
  line-height: 1;
  margin-bottom: 1rem;
}

.process-step h4 {
  margin-bottom: .4rem;
}

.process-step p {
  color: var(--gray-600);
  font-size: .9rem;
}

/* ===== ABOUT PAGE ===== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.story-text h2 {
  margin-bottom: 1.5rem;
}

.story-text p {
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mv-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  border: 1px solid var(--gray-100);
}

.mv-card h3 {
  color: var(--teal-600);
  margin-bottom: .6rem;
}

.mv-card p {
  color: var(--gray-600);
  font-size: .95rem;
}

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

.value-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.value-card h4 {
  color: var(--teal-200);
  margin-bottom: .5rem;
}

.value-card p {
  font-size: .9rem;
  opacity: .8;
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .3rem;
  justify-content: center;
  margin-bottom: 3rem;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: .3rem;
  width: auto;
  max-width: 100%;
}

.portfolio-filters-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1.2rem;
  border-radius: var(--radius-full);
  border: none;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  background: transparent;
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--gray-800);
  background: rgba(255,255,255,.6);
}

.filter-btn.active {
  background: var(--white);
  color: var(--teal-700);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}


/* ===== TIMELINE ===== */
.portfolio-grid {
  position: relative;
  padding-left: 68px;
}

.timeline-line {
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--teal-300) 6%,
    var(--teal-300) 94%,
    transparent
  );
  border-radius: 1px;
}

.timeline-year-group {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-year-group:last-child { margin-bottom: 0; }

.timeline-year-node {
  display: flex;
  align-items: center;
  gap: .75rem;
  position: relative;
  left: -68px;
  width: calc(100% + 68px);
  margin-bottom: 1rem;
}

.timeline-year-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal-400);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal-400);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-left: 15px; /* centers 16px dot on the 2px line at left:22px */
}

.timeline-year-label {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--teal-600);
}

.timeline-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-founding {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 2rem 3.5rem;
  color: var(--teal-500);
}

.timeline-founding-line {
  flex: 1;
  height: 1px;
  background: var(--teal-500);
  opacity: 0.35;
}

.timeline-founding-text {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
}

/* Horizontal card layout */
.timeline-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

/* connector from card back to timeline line */
.timeline-card::before {
  content: '';
  position: absolute;
  left: -46px;
  top: 26px;
  width: 46px;
  height: 2px;
  background: var(--teal-100);
  pointer-events: none;
}

.timeline-card {
  cursor: pointer;
}

.timeline-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.timeline-card.is-open {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-200);
}

.portfolio-thumb {
  position: relative;
  height: auto;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  flex-shrink: 0;
}

.portfolio-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.timeline-card:hover .portfolio-thumb img {
  transform: scale(1.06);
}

.portfolio-info {
  padding: 1.25rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.portfolio-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}

.portfolio-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-500);
  background: var(--teal-50);
  border-radius: var(--radius-sm);
  padding: .2rem .6rem;
}

.portfolio-client {
  font-size: .7rem;
  font-weight: 600;
  color: var(--gray-400);
  padding: .2rem .6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  background: var(--white);
}

.portfolio-client-arrow {
  opacity: .45;
  font-style: normal;
  margin: 0 .1rem;
}

.portfolio-info h3 {
  font-size: 1rem;
  margin-bottom: .5rem;
  line-height: 1.3;
}

.portfolio-excerpt {
  font-size: .875rem;
  color: var(--gray-400);
  margin-top: .35rem;
  line-height: 1.5;
  max-height: 5em;
  overflow: hidden;
  opacity: 1;
  transition: opacity .25s ease, max-height .35s ease, margin .35s ease;
}

.timeline-card.is-open .portfolio-excerpt {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
}

.portfolio-chevron {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: .6rem;
  color: var(--teal-400);
  opacity: .6;
  transition: opacity var(--transition);
}

.portfolio-chevron svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.timeline-card:hover .portfolio-chevron,
.timeline-card.is-open .portfolio-chevron {
  opacity: 1;
}

.timeline-card.is-open .portfolio-chevron svg {
  transform: rotate(180deg);
}

/* Expand / collapse section */
.portfolio-expand {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
  border-top: 0px solid var(--gray-100);
}

.timeline-card.is-open .portfolio-expand {
  grid-template-rows: 1fr;
  border-top-width: 1px;
}

.portfolio-expand-inner {
  overflow: hidden;
  padding: 0 1.5rem;
  transition: padding .35s ease;
}

.timeline-card.is-open .portfolio-expand-inner {
  padding: 1.25rem 1.5rem;
}

.portfolio-client-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
  margin-bottom: 1rem;
}

.portfolio-client-table th,
.portfolio-client-table td {
  padding: .25rem .5rem .25rem 0;
  text-align: left;
  vertical-align: top;
  line-height: 1.4;
}

.portfolio-client-table th {
  color: var(--gray-400);
  font-weight: 500;
  white-space: nowrap;
  padding-right: 1rem;
  width: 1%;
}

.portfolio-client-table td {
  color: var(--gray-600);
}

.portfolio-body {
  color: var(--gray-600);
  font-size: .875rem;
  line-height: 1.65;
}

.portfolio-body p { margin-bottom: .5rem; }
.portfolio-body p:last-child { margin-bottom: 0; }

.portfolio-body ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin-top: .35rem;
  margin-bottom: .5rem;
}

.portfolio-body li {
  margin-bottom: .25rem;
}

/* ── Portfolio image gallery (single column) ── */
.portfolio-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: 1.25rem;
}

.portfolio-inline-img {
  display: block;
  padding: 0;
  border: none;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--gray-100);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.portfolio-inline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease, filter .45s ease;
}

.portfolio-inline-img:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* Gallery hint icon */
.portfolio-thumb-hint {
  position: absolute;
  top: .55rem;
  right: .55rem;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
  color: var(--white);
  z-index: 1;
}
.portfolio-thumb-hint svg { width: 13px; height: 13px; }

.timeline-card:hover .portfolio-thumb-hint {
  opacity: 1;
  background: rgba(255,255,255,.3);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7,42,50,.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.lb-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transition: opacity .16s ease;
  user-select: none;
}

.lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lb-close svg { width: 18px; height: 18px; }
.lb-close:hover { background: rgba(255,255,255,.22); }

.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.lb-prev svg, .lb-next svg { width: 22px; height: 22px; }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-prev:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) scale(1.06); }
.lb-next:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) scale(1.06); }
.lb-hidden { opacity: 0 !important; pointer-events: none !important; }

.lb-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  flex-shrink: 0;
}
.lb-caption {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 600;
}
.lb-counter {
  color: rgba(255,255,255,.4);
  font-size: .8rem;
}
.lb-dots {
  display: flex;
  gap: .5rem;
}
.lb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: background var(--transition), transform var(--transition);
}
.lb-dot.active {
  background: var(--white);
  transform: scale(1.35);
}
.lb-dot:hover:not(.active) { background: rgba(255,255,255,.5); }

/* ===== CONTACT PAGE ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.contact-form-wrap h2 {
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: .4rem;
}

.form-control {
  width: 100%;
  padding: .8rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: border-color var(--transition);
  display: block;
}

.form-control:focus {
  border-color: var(--teal-400);
  background: var(--white);
}

.form-control.is-invalid {
  border-color: #e74c3c;
  background: #fff8f8;
}

.field-error {
  font-size: .78rem;
  color: #c0392b;
  margin-top: .3rem;
  display: block;
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

select.form-control {
  appearance: none;
  cursor: pointer;
}

.cf-turnstile {
  margin-bottom: 1rem;
}

.captcha-error {
  font-size: .8rem;
  color: #c0392b;
  margin-top: -.5rem;
  margin-bottom: .75rem;
}

.form-success {
  background: var(--teal-50);
  border: 1.5px solid var(--teal-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  color: var(--teal-700);
  font-weight: 600;
  font-size: 1.05rem;
}

.form-error {
  background: #fff5f5;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: .85rem 1rem;
  color: #b91c1c;
  font-size: .9rem;
  margin-bottom: .75rem;
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.contact-info-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  display: block;
  margin-bottom: .2rem;
}

.contact-info-value {
  color: var(--gray-700);
  font-weight: 500;
}

.contact-info-value a:hover {
  color: var(--teal-500);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-scrolled-bg);
    padding: 1rem 1.5rem 1.5rem;
    gap: .25rem;
    backdrop-filter: blur(12px);
  }

  .nav-menu--open a {
    padding: .65rem 1rem;
  }

  .about-preview-inner,
  .story-grid,
  .mv-grid,
  .contact-layout,
  .service-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-block.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: clamp(4rem, 9vh, 6rem) 1.25rem clamp(1.5rem, 4vh, 3rem);
  }

  .page-hero {
    padding: 7rem 1.25rem 3.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Timeline collapses to stacked cards on small screens */
  .portfolio-grid {
    padding-left: 0;
  }
  .timeline-line { display: none; }
  .timeline-year-node {
    left: 0;
    width: 100%;
    margin-bottom: .75rem;
  }
  .timeline-year-dot { display: none; }
  .timeline-card {
    grid-template-columns: 1fr;
  }
  .timeline-card::before { display: none; }
  .portfolio-thumb {
    height: 160px;
  }


  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  width: calc(100% - 3rem);
  max-width: 680px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
  padding: 1.1rem 1.5rem;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s ease;
  opacity: 0;
}

#cookie-banner.cookie-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

#cookie-banner.cookie-hidden {
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: .875rem;
  color: rgba(255,255,255,.85);
  margin: 0;
  min-width: 200px;
}

.cookie-link {
  color: var(--teal-300);
  text-decoration: underline;
}

.cookie-link:hover {
  color: var(--teal-100);
}

.cookie-actions {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
}

.btn--ghost:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
}

@media (max-width: 600px) {
  #cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateX(0) translateY(110%);
  }
  #cookie-banner.cookie-visible {
    transform: translateX(0) translateY(0);
  }
  #cookie-banner.cookie-hidden {
    transform: translateX(0) translateY(110%);
  }
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
