/* ================================================================
   DreamxLabs single-page website styles
   ----------------------------------------------------------------
   QUICK EDIT POINTS
   - Brand green:       --accent
   - Dark soft panels:  --deep
   - Page width:        --page-max / --content-max
   - Rounded panels:    --radius-xl / --radius-lg
   - Main font:         --font-main
   ================================================================ */

/* ----------------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------------- */
:root {
  --accent: #20c997;
  --accent-strong: #12b886;
  --accent-soft: rgba(32, 201, 151, 0.14);
  --accent-glow: rgba(32, 201, 151, 0.22);

  /* Charcoal green surfaces: dark gray base with a subtle green character. */
  --charcoal: #173f35;
  --charcoal-2: #3d6151;
  --charcoal-3: #354d46;
  --charcoal-text: #f3faf7;
  --charcoal-muted: #b8c7c1;

  /* Kept as aliases so older class names still work. */
  --deep: var(--charcoal);
  --deep-2: var(--charcoal-2);
  --deep-soft: #eaf3ef;
  --pastel: var(--charcoal);
  --pastel-2: var(--charcoal-2);
  --pastel-3: var(--charcoal-3);
  --pastel-ink: var(--charcoal-text);

  --ink: #1e1e1e;
  --muted: #737373;
  --line: #e7e7e4;
  --divider: #ddddda;
  --panel: #f4f4f1;
  --media-bg: #f8f8f8;
  --white: #ffffff;

  --page-max: 1440px;
  --content-max: 1200px;
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 28px 80px rgba(8, 36, 30, 0.18);

  --font-main: "Golos Text", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ----------------------------------------------------------------
   2. Reset / base
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-main);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
button, input, textarea { font: inherit; }

/* ----------------------------------------------------------------
   3. Global layout
   ---------------------------------------------------------------- */
.page {
  width: min(var(--page-max), 100%);
  margin: 0 auto;
  padding: 18px 18px 22px;
}
.section {
  position: relative;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  overflow: hidden;
  scroll-margin-top: 110px;
}

/* Boxed-section layout: no divider lines are needed between sections. */
.section + .section::before {
  display: none;
}
.section-pad { padding: clamp(38px, 6vw, 92px) clamp(28px, 5vw, 76px); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

/* ----------------------------------------------------------------
   4. Typography
   ---------------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}
.kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
h1 {
  max-width: 1040px;
  font-size: clamp(3.15rem, 8.2vw, 8.65rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  font-weight: 700;
}
h2 {
  max-width: 880px;
  font-size: clamp(2.25rem, 5vw, 5.55rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  font-weight: 700;
}
h3 { letter-spacing: -0.035em; }
.accent, .soft { color: var(--accent); }
.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.48;
  letter-spacing: -0.018em;
}

/* ----------------------------------------------------------------
   5. Floating menu
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(var(--content-max), calc(100% - 24px));
  margin: 0 auto 18px;
  padding: 8px;
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
}
.nav-inner {
  padding: 0px 10px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 46px;
  border-radius: 999px;
}
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 4px;
  font-size: 0.9rem;
  color: #333;
}
.site-nav a {
  padding: 12px 14px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.site-nav a:hover,
.site-nav a.is-active { background: var(--panel); color: #000; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--pastel-ink);
  background: var(--deep);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease;
}
.nav-action:hover { transform: translateY(-1px); background: var(--deep-2); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

/* ----------------------------------------------------------------
   6. Buttons
   ---------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn.primary { color: var(--charcoal-text); background: var(--deep); }
.btn.primary:hover { background: var(--deep-2); transform: translateY(-1px); }
.btn.secondary { background: #fff; border-color: var(--line); }
.btn.secondary:hover { transform: translateY(-1px); border-color: #d5d5d5; }
.btn.green { background: var(--accent); color: #fff; }
.btn.green:hover { background: var(--accent-strong); transform: translateY(-1px); }
.arrow { font-size: 1.1em; transform: translateY(-1px); }

/* ----------------------------------------------------------------
   7. Hero
   ---------------------------------------------------------------- */
.hero {
  min-height: calc(100svh - 120px);
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(22px, 4vw, 60px);
  align-items: stretch;
  background:
    radial-gradient(circle at 78% 24%, var(--accent-soft), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fbfbfb 100%);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.hero-top { padding-top: clamp(10px, 2vw, 32px); }
.hero-sub {
  max-width: 690px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.75vw, 1.55rem);
  line-height: 1.36;
  letter-spacing: -0.026em;
}
.hero-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 40px;
}
.hero-chip {
  min-height: 92px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
}
.chip-num {
  display: block;
  margin-bottom: 6px;
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.chip-label { color: #555; font-size: 0.92rem; line-height: 1.28; }

/* Right hero panel: animated technical visual, no logo inside the page. */
.hero-visual {
  position: relative;
  min-height: 560px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 12%, rgba(32,201,151,0.34), transparent 36%),
    linear-gradient(145deg, #f7fbf8 0%, #eaf5f0 52%, #dff1e9 100%);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -28% -35% auto auto;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(12px);
  opacity: 0.10;
  animation: softDrift 12s ease-in-out infinite;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24,53,45,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,53,45,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.92), transparent 82%);
}
.orbit-card {
  position: absolute;
  z-index: 2;
  left: 32px;
  right: 32px;
  bottom: 32px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(8,36,30,0.10);
  animation: cardBreathe 9s ease-in-out infinite;
}
.orbit-title {
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.93;
  letter-spacing: -0.07em;
  font-weight: 700;
}
.orbit-text {
  max-width: 430px;
  margin-top: 18px;
  color: #555;
  font-size: 1rem;
  line-height: 1.45;
}
.board-lines {
  position: absolute;
  z-index: 1;
  left: 38px;
  right: 38px;
  top: 42px;
  display: grid;
  gap: 14px;
}
.trace {
  height: 14px;
  border-radius: 999px;
  background: rgba(24,53,45,0.10);
  overflow: hidden;
}
.trace:nth-child(1) { width: 72%; }
.trace:nth-child(2) { width: 46%; }
.trace:nth-child(3) { width: 88%; }
.trace:nth-child(4) { width: 58%; }
.trace span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(32,201,151,0.32);
  animation: tracePulse 4.8s ease-in-out infinite;
}
.trace:nth-child(2) span { width: 28%; animation-delay: 0.5s; }
.trace:nth-child(3) span { width: 34%; animation-delay: 1.1s; }
.trace:nth-child(4) span { width: 22%; animation-delay: 1.7s; }

@keyframes tracePulse {
  0%, 100% { transform: translateX(0) scaleX(0.65); opacity: 0.48; }
  45% { transform: translateX(65%) scaleX(1.05); opacity: 1; }
  70% { transform: translateX(105%) scaleX(0.78); opacity: 0.62; }
}
@keyframes softDrift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-14px,10px,0) scale(1.04); }
}
@keyframes cardBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.008); }
}

/* ----------------------------------------------------------------
   8. Projects / product cards
   ----------------------------------------------------------------
   Project media uses one flat light gray-green background.
   No radial glow/blur layer is used behind product photos.
   ---------------------------------------------------------------- */
.project-stack { display: grid; gap: 16px; }
.product-card {
  min-height: 430px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.product-card:hover {
  border-color: var(--accent);
}
.product-copy {
  position: relative;
  z-index: 2;
  padding: clamp(26px, 4.5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  min-width: 0;
}
.product-name {
  font-size: clamp(2rem, 3.6vw, 3.75rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 700;
  white-space: nowrap;
}
.product-tag {
  margin-top: 16px;
  color: var(--accent);
  font-size: 1.02rem;
  font-weight: 700;
}
.product-desc {
  max-width: 480px;
  margin-top: 18px;
  color: #5f5f5f;
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: -0.018em;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--ink);
  font-weight: 700;
  transition: gap 0.18s ease;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.product-actions .product-link { flex: 0 0 auto; }
.product-link-muted {
  color: var(--muted);
  opacity: 0.92;
}
.product-link-muted::before {
  background: transparent;
  border: 2px solid var(--accent);
}
.product-link::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.product-card:hover .product-link,
.mini-card:hover .product-link { gap: 16px; }
.product-media {
  position: relative;
  min-height: 400px;
  background: var(--media-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-media img {
  position: relative;
  z-index: 1;
  width: min(88%, 620px);
  max-height: 360px;
  object-fit: contain;
  filter: none;
  transform: none;
  transition: transform 0.26s ease;
}
.product-card:hover .product-media img { transform: scale(1.018); }
.product-media::before { display: none; }
.product-card.reverse { grid-template-columns: 1.08fr 0.92fr; }
.product-card.reverse .product-media { order: -1; }
.product-card.deep {
  color: var(--charcoal-text);
  background: linear-gradient(135deg, var(--charcoal-3) 0%, var(--charcoal) 100%);
  border-color: rgba(32, 201, 151, 0.18);
}
.product-card.deep .product-tag { color: var(--accent); }
.product-card.deep .product-desc { color: var(--charcoal-muted); }
.product-card.deep .product-link { color: var(--charcoal-text); }
.product-card.deep .product-link-muted { color: var(--charcoal-muted); }
.product-card.deep .product-media { background: var(--media-bg); }

/* Smaller project cards */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.mini-card {
  min-height: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mini-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-soft); }
.mini-img {
  height: 400px;
  margin: -8px -8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: var(--media-bg);
  overflow: hidden;
}
.mini-img img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  filter: none;
}
.mini-title {
  font-size: clamp(1.25rem, 1.8vw, 1.85rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
  white-space: nowrap;
}
.mini-meta { margin-top: 10px; color: var(--accent); font-size: 0.94rem; font-weight: 700; }
.mini-text { margin-top: 14px; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }

/* ----------------------------------------------------------------
   9. Services / activities
   ---------------------------------------------------------------- */
.services-grid,
.activity-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.service-card,
.activity-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.service-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.deep-card {
  color: var(--charcoal-text);
  background: linear-gradient(135deg, var(--charcoal-3) 0%, var(--charcoal) 100%);
  border-color: rgba(32, 201, 151, 0.18);
}
.deep-card p { color: var(--charcoal-muted); }
.service-index { color: var(--accent); font-weight: 700; font-size: 0.88rem; }
.service-title {
  margin-top: 42px;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.service-card p,
.activity-card p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.48;
  font-size: 0.98rem;
}
.deep-card p { color: var(--charcoal-muted); }
.activity-card h3 { font-size: 1.35rem; line-height: 1.05; }



/* Activity carousel: image-based cards with simple controls. */
.activity-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.activity-track {
  display: flex;
  gap: 12px;
  transition: transform 0.55s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.activity-slide {
  flex: 0 0 100%;
  min-height: 320px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(0,0,0,0.04);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.activity-slide:hover {
  transform: translateY(-2px);
  border-color: rgba(32,201,151,0.18);
  box-shadow: 0 18px 44px rgba(0,0,0,0.06);
}

.activity-photo {
  height: 320px;              /* fixed height */
  width: 100%;
  background: var(--media-bg);
  border-radius: 28px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-photo img {
  width: auto;  
  max-width: 120%;            /* prevents overflow */
  object-fit: contain;
  object-position: center;
}

.activity-photo::after {
  content: attr(data-fallback);
  position: absolute;
  inset: auto 18px 18px 18px;
  display: none;
  color: #26695a;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}
.activity-photo.is-placeholder::after { display: block; }
.activity-slide:hover .activity-photo img { transform: scale(1.025); filter: saturate(1.04); }
.activity-content {
  padding: clamp(28px, 4.5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.activity-year {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: lowercase;
}
.activity-content h3 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 4.6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.activity-content p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.48;
}
.activity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.carousel-btn,
.activity-dots button {
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  font-weight: 800;
}
.carousel-btn:hover { transform: translateY(-1px); background: var(--deep-soft); }
.activity-dots { display: flex; gap: 8px; }
.activity-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  opacity: 0.55;
}
.activity-dots button.is-active {
  width: 28px;
  background: var(--accent);
  opacity: 1;
}

/* Subtle reveal animation. JavaScript only enables this after load, so content stays visible if JS is disabled. */
.reveal-ready .reveal {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(5px);
  transition: opacity 0.75s cubic-bezier(.16, 1, .3, 1), transform 0.75s cubic-bezier(.16, 1, .3, 1), filter 0.75s cubic-bezier(.16, 1, .3, 1);
}
.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* ----------------------------------------------------------------
   10. Mission
   ---------------------------------------------------------------- */
.mission {
  min-height: clamp(340px, 34vw, 460px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(48px, 6vw, 92px) clamp(40px, 6vw, 96px);
  background:
    radial-gradient(circle at 78% 22%, rgba(32, 201, 151, 0.16), transparent 32%),
    linear-gradient(135deg, #14362e 0%, #173f35 58%, #113026 100%);
  color: var(--charcoal-text);
  border: 1px solid rgba(32, 201, 151, 0.18);
  border-radius: clamp(34px, 4vw, 56px);
  overflow: hidden;
}
.mission h2 {
  max-width: 1050px;
  font-size: clamp(2.35rem, 4.9vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

/* ----------------------------------------------------------------
   11. About section
   ---------------------------------------------------------------- */
.about-section { background: #fbfbfb; }
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(22px, 5vw, 72px);
  align-items: start;
}
.about-copy {
  margin-top: 120px;
  max-width: 720px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.about-copy p {
  color: #585858;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
}
.about-copy p + p { margin-top: 14px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Compact social buttons inside the short About section. */
.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}
.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(32,201,151,0.44);
  background: var(--pastel);
}




/* Profile photo below the About heading.
   Put your image at: public/images/photo.jfif */
.about-photo {
  width: min(260px, 72%);
  aspect-ratio: 1;
  margin: 28px 0 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--media-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-heading-photo {
  max-width: 260px;
}

@media (max-width: 1080px) {
  .about-photo {
    width: min(220px, 64%);
  }
}

@media (max-width: 760px) {
  .about-photo {
    width: 160px;
    margin-top: 22px;
  }
}

/* ----------------------------------------------------------------
   12. Contact form
   ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}
.contact-panel {
  min-height: 430px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-panel h2 { font-size: clamp(2.5rem, 5.4vw, 6.5rem); }
.contact-form {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--charcoal-3) 0%, var(--charcoal) 100%);
  color: var(--charcoal-text);
  border: 1px solid rgba(32, 201, 151, 0.18);
}
.form-row { display: grid; gap: 8px; margin-bottom: 10px; }
.form-row label { color: var(--charcoal-muted); font-size: 0.84rem; }
.field {
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid rgba(243,250,247,0.22);
  background: transparent;
  color: var(--charcoal-text);
  outline: none;
}
.field::placeholder { color: rgba(243,250,247,0.55); }
textarea.field { min-height: 120px; resize: vertical; }
.form-note,
.form-status {
  margin-top: 18px;
  color: var(--charcoal-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.form-status { min-height: 1.2em; color: var(--accent); }
.submit-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.submit-btn:hover { background: var(--accent-strong); }

/* ----------------------------------------------------------------
   13. Footer
   ---------------------------------------------------------------- */
footer.section { background: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.6fr);
  gap: 24px;
  align-items: start;
}
.footer-title {
  font-size: clamp(2.1rem, 4.5vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 700;
}
.footer-title span { color: var(--accent); }
.footer-col h4 {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: lowercase;
}
.footer-col a,
.footer-col p {
  display: block;
  margin: 10px 0;
  color: var(--ink);
  font-size: 0.95rem;
}
.copyright {
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}



/* ----------------------------------------------------------------
   15. Mailer popup style
   ----------------------------------------------------------------
   SweetAlert2 popup styling used by the /api/contact mailer.
   It only affects the success / error / sending popups.
   ---------------------------------------------------------------- */
.dxlabs-swal-popup {
  width: min(440px, calc(100% - 32px));
  padding: 30px 30px 26px;
  border-radius: 28px;
  border: 1px solid rgba(32, 201, 151, 0.24);
  background:
    radial-gradient(circle at 84% 12%, rgba(32, 201, 151, 0.12), transparent 34%),
    #ffffff;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(8, 36, 30, 0.18);
  font-family: var(--font-main);
}

.dxlabs-swal-popup .swal2-icon {
  margin: 8px auto 18px;
}

.dxlabs-swal-title {
  max-width: none;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.dxlabs-swal-text {
  margin: 14px auto 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.dxlabs-swal-actions {
  margin-top: 24px;
}

.dxlabs-swal-confirm {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.dxlabs-swal-confirm:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

.dxlabs-swal-confirm:focus {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(32, 201, 151, 0.18);
}

.dxlabs-swal-loading .swal2-loader {
  border-color: var(--accent) transparent var(--accent) transparent;
}

@media (max-width: 520px) {
  .dxlabs-swal-popup {
    padding: 26px 22px 22px;
    border-radius: 24px;
  }
}

/* ----------------------------------------------------------------
   14. Responsive behavior
   ---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero,
  .product-card,
  .product-card.reverse,
  .contact-grid,
  .about-grid { grid-template-columns: 1fr; }
  .product-card.reverse .product-media { order: initial; }
  .hero-visual { min-height: 470px; }
  .section-head { display: block; }
  .section-head .lead { margin-top: 16px; }
  .services-grid,
  .mini-grid,
  .activity-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

@media (max-width: 820px) {
  .site-header { top: 8px; width: calc(100% - 12px); border-radius: 26px; }
  .nav-inner { align-items: center; flex-wrap: wrap; }
  .menu-toggle { display: inline-block; }
  .site-nav {
    order: 3;
    width: 100%;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
  }
  .site-header.is-open .site-nav { display: grid; }
  .site-nav a { background: var(--panel); text-align: center; }
  .nav-action { display: none; }
}

@media (max-width: 760px) {
  .page { padding: 10px; }
  .section { border-radius: 24px; margin: 10px 0; scroll-margin-top: 96px; }
  .section-pad { padding: 34px 26px; }
  h1 { font-size: clamp(3rem, 17vw, 5.7rem); }
  h2 { font-size: clamp(2.25rem, 13vw, 4.6rem); }
  .hero { min-height: auto; }
  .hero-bottom,
  .services-grid,
  .mini-grid,
  .activity-row,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 460px; }
  .orbit-card { left: 18px; right: 18px; bottom: 18px; }
  .board-lines { left: 24px; right: 24px; top: 28px; }
  .activity-slide { grid-template-columns: 1fr; flex-basis: 100%; }
  .activity-photo { height: 245px; min-height: 0; }
  .product-media { min-height: 320px; }
  .product-name { font-size: clamp(1.55rem, 7.2vw, 3.15rem); }
  .mini-title { font-size: clamp(1.28rem, 8vw, 2rem); }
  .copyright { flex-direction: column; }
}

@media (max-width: 410px) {
  .product-name { font-size: clamp(1.38rem, 6.6vw, 2.3rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
