/* ==========================================================================
   Adept AI — Design tokens
   ========================================================================== */
:root {
  /* Brand colors, derived directly from the logo */
  --blue: #1E3FA9;
  --blue-dark: #15307F;
  --blue-light: #2F5BEA;
  --yellow: #FFC72C;
  --coral: #FF5A5F;
  --magenta: #FF4EC9;
  --purple: #8B5CF6;

  /* Neutrals */
  --bg: #FFFFFF;
  --bg-soft: #F5F7FC;
  --ink: #000000;
  --ink-soft: #000000;
  --line: #E6E9F2;

  /* Signature gradient — the same sweep used across the logo mark */
  --signal: linear-gradient(100deg, var(--yellow) 0%, var(--coral) 34%, var(--magenta) 66%, var(--purple) 100%);

  /* Type "Space Grotesk"*/
  --font-display: Arial, "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 16px;
  --shadow: 0 20px 45px -20px rgba(21, 48, 127, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--blue-dark);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p { line-height: 1.7; color: var(--ink-soft); margin: 0; }

a { color: inherit; text-decoration: none; }

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--signal);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 16px;
}

.section-head p { font-size: 17px; }

section { position: relative; }

/* Focus visibility */
a:focus-visible,
button:focus-visible,
.faq-q:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(30, 63, 169, 0.55);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); }

.btn-gradient {
  background: var(--signal);
  color: #1a1130;
  box-shadow: 0 14px 30px -12px rgba(255, 90, 95, 0.45);
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(139, 92, 246, 0.5); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--blue); background: var(--bg-soft); }

.btn-ghost-white {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.2); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(18, 20, 28, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 84px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 100px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--blue-dark);
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 96px 0 110px;
  position: relative;
  background:
    radial-gradient(900px 500px at 82% -10%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(700px 420px at 100% 30%, rgba(255, 90, 95, 0.08), transparent 60%);
  overflow: hidden;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 66px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.hero-scroll:hover { color: var(--blue); }
.hero-scroll i {
  font-size: 13px;
  color: var(--blue);
  animation: scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll i { animation: none; }
}

.section-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.section-divider svg {
  display: block;
  width: 200%;
  height: 56px;
  animation: waveDrift 22s linear infinite;
}
.section-divider path { fill: var(--bg-soft); }
.section-divider-white path { fill: #fff; }

@keyframes waveDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: 22px;
}

.hero h1 .hl {
  background: var(--signal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 19px;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta strong { font-family: var(--font-display); font-size: 22px; color: var(--blue-dark); }
.hero-meta span { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.02em; }

/* Signature visual: the logo's diagonal strokes, reinterpreted as an
   ambient mark rather than the literal logo. Three offset gradient bars
   that gently drift, echoing the "A" of the mark. */
.hero-visual {
  position: relative;
  height: 420px;
}

.signal-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}

.orb-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.orb-wrap.is-tilting { transition: transform 0.12s ease-out; }

.signal-orb {
  display: block;
  width: 80%;
  margin: 0 auto;
  height: auto;
  animation: drift 7s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(139, 92, 246, 0.35));
}

/* Glossy highlight that tracks the cursor, like light catching glass */
.orb-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 35%), rgba(255, 255, 255, 0.75), transparent 45%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.orb-wrap:hover .orb-shine,
.orb-wrap.is-tilting .orb-shine { opacity: 1; }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-card {
  position: absolute;
  right: 0;
  top: 6%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floaty 6s ease-in-out infinite;
}
.hero-card + .hero-card { top: unset; bottom: 8%; left: 0; right: auto; animation-delay: 1s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-card .icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--signal);
  color: #1a1130;
  font-size: 16px;
  flex: none;
}
.hero-card strong { display: block; font-family: var(--font-display); font-size: 14px; color: var(--blue-dark); }
.hero-card span { font-size: 12px; color: var(--ink-soft); }

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding: 110px 0;
  background: var(--bg-soft);
  position: relative;
}

.about-grid {
  display: flex;
  justify-content: center;
}

.about-copy {
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-copy .eyebrow { margin-bottom: 6px; }
.about-copy h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 22px; }
.about-copy p { margin-bottom: 18px; font-size: 16.5px; }
.about-copy p:last-of-type { margin-bottom: 30px; }

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 6px 0 30px;
}
.about-stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--signal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.about-stat-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ==========================================================================
   Cards grid (Services & Projects)
   ========================================================================== */
.services, .portfolio { padding: 110px 0; }
.portfolio { background: var(--bg-soft); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin-bottom: 22px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card p { font-size: 15.5px; }

/* Alternate icon fills, cycling the logo's four accent hues */
.card:nth-child(1) .card-icon { background: linear-gradient(135deg, var(--yellow), var(--coral)); }
.card:nth-child(2) .card-icon { background: linear-gradient(135deg, var(--coral), var(--magenta)); }
.card:nth-child(3) .card-icon { background: linear-gradient(135deg, var(--magenta), var(--purple)); }

/* ==========================================================================
   Projects (image-top cards with zoom-in hover)
   ========================================================================== */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.proj-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.proj-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.proj-grid .proj-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
  z-index: 2;
}

.proj-media {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.proj-media-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(1.02);
}
.proj-card:hover .proj-media-bg { transform: scale(1.14); }

.proj-media-bg.svc-1 { background: radial-gradient(120% 140% at 20% 10%, rgba(255,199,44,0.9), transparent 55%), linear-gradient(135deg, var(--yellow), var(--coral)); }
.proj-media-bg.svc-2 { background: radial-gradient(120% 140% at 20% 10%, rgba(255,90,95,0.9), transparent 55%), linear-gradient(135deg, var(--coral), var(--magenta)); }
.proj-media-bg.svc-3 { background: radial-gradient(120% 140% at 20% 10%, rgba(255,78,201,0.9), transparent 55%), linear-gradient(135deg, var(--magenta), var(--purple)); }
.proj-media-bg.svc-4 { background: radial-gradient(120% 140% at 20% 10%, rgba(139,92,246,0.9), transparent 55%), linear-gradient(135deg, var(--purple), var(--blue)); }

.proj-media-icon {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.32);
  position: relative;
  z-index: 1;
}

.proj-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(1.02);
}
.proj-card:hover .proj-media-img { transform: scale(1.14); }

.chip {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  z-index: 2;
}
.chip-a { top: 18px; left: 22px; transform: rotate(-8deg); }
.chip-b { bottom: 20px; right: 24px; transform: rotate(8deg); }

.proj-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: #fff;
  margin: -27px 0 0 32px;
  position: relative;
  z-index: 3;
  box-shadow: 0 10px 22px -8px rgba(18, 20, 28, 0.35);
}
.proj-icon-badge.svc-1 { background: linear-gradient(135deg, var(--yellow), var(--coral)); }
.proj-icon-badge.svc-2 { background: linear-gradient(135deg, var(--coral), var(--magenta)); }
.proj-icon-badge.svc-3 { background: linear-gradient(135deg, var(--magenta), var(--purple)); }
.proj-icon-badge.svc-4 { background: linear-gradient(135deg, var(--purple), var(--blue)); }

.proj-body { padding: 20px 32px 34px; }
.proj-body h3 { font-size: 19px; margin-bottom: 10px; }
.proj-body p { font-size: 15px; margin-bottom: 0; }

@media (max-width: 980px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .proj-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact (brand-blue accent band)
   ========================================================================== */
.contact {
  padding: 100px 0;
  background: var(--blue-dark);
  background-image:
    radial-gradient(700px 380px at 12% 20%, rgba(139, 92, 246, 0.35), transparent 60%),
    radial-gradient(600px 340px at 90% 90%, rgba(255, 90, 95, 0.28), transparent 60%);
  position: relative;
  overflow: hidden;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.contact-inner h2 {
  color: #fff;
  font-size: clamp(26px, 3.2vw, 36px);
  max-width: 560px;
  margin-bottom: 10px;
}

.contact-inner p { color: rgba(255,255,255,0.75); max-width: 520px; font-size: 16px; }

.contact-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   FAQ (Split 2-Column Layout)
   ========================================================================== */
.faq { 
  padding: 110px 0; 
}

/* 1. Turn container into a 2-column grid */
.faq .container {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Left side 1 part, right side 2 parts */
  gap: 64px;
  align-items: start;
}

/* 2. Style the left header column */
.faq .section-head {
  max-width: 100%;
  margin-bottom: 0;
  position: sticky; /* Keeps header visible while scrolling through questions */
  top: 100px;
}

.faq .section-head h2 {
  font-size: clamp(32px, 3.5vw, 44px);
}

/* 3. Style the right questions column */
.faq-list { 
  width: 100%;
  max-width: 100%;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-dark);
}

.faq-q .toggle {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item.is-open .faq-q .toggle {
  background: var(--signal);
  color: #1a1130;
  transform: rotate(135deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p { padding: 0 4px 26px; font-size: 16px; max-width: 680px; }

/* 4. Mobile responsiveness: stack vertically on small screens */
@media (max-width: 860px) {
  .faq .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .faq .section-head {
    position: static;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0F1526;
  color: rgba(255,255,255,0.7);
  padding: 72px 0 28px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--signal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-brand img { height: 90px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14.5px; max-width: 280px; }

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a {
  color: rgba(255,255,255,0.62);
  font-size: 14.5px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #fff; }

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255,255,255,0.62);
  font-size: 14.5px;
  margin-bottom: 14px;
}
.footer-contact li i { color: var(--coral); margin-top: 3px; flex: none; width: 16px; text-align: center; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }
.credits { display: flex; gap: 18px; flex-wrap: wrap; }

/* ==========================================================================
   Services — expanding hover cards
   ========================================================================== */
.expand-cards {
  display: flex;
  gap: 20px;
  height: 520px;
  border-radius: 22px;
  overflow: hidden;
}

.expand-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}
.expand-card:hover,
.expand-card:focus-within,
.expand-card.is-expanded {
  flex-grow: 2.6;
}

.expand-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(1.02);
}
.expand-card:hover .expand-bg,
.expand-card:focus-within .expand-bg,
.expand-card.is-expanded .expand-bg {
  transform: scale(1.08);
}

.expand-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(10, 14, 26, 0.92) 0%, rgba(10, 14, 26, 0.45) 55%, rgba(10, 14, 26, 0.3) 100%);
}

.expand-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 24px;
  color: #fff;
  transition: padding 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.expand-card:hover .expand-content,
.expand-card:focus-within .expand-content,
.expand-card.is-expanded .expand-content {
  padding: 40px 36px;
}

.expand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 14px;
  transition: width 0.4s ease, height 0.4s ease, font-size 0.4s ease, margin 0.4s ease;
}
.expand-card:hover .expand-icon,
.expand-card:focus-within .expand-icon,
.expand-card.is-expanded .expand-icon {
  width: 46px;
  height: 46px;
  font-size: 18px;
  margin-bottom: 18px;
}

.expand-content h3 {
  color: #fff;
  font-size: 19px;
  margin-bottom: 8px;
}

.expand-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  max-width: 320px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.expand-card:hover .expand-content p,
.expand-card:focus-within .expand-content p,
.expand-card.is-expanded .expand-content p {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.expand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  width: fit-content;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
}
.expand-card:hover .expand-link,
.expand-card:focus-within .expand-link,
.expand-card.is-expanded .expand-link {
  opacity: 1;
  max-height: 40px;
  margin-top: 16px;
}
.expand-link i { transition: transform 0.25s ease; }
.expand-link:hover i { transform: translateX(4px); }

/* ==========================================================================
   Sub-page hero (Products, Product detail)
   ========================================================================== */
.page-hero {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
  border-bottom: 1px solid var(--line);
}

.product-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 150px;
  border-bottom: none;
}
.product-hero::before,
.product-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.24;
  z-index: 0;
  pointer-events: none;
}
.product-hero::before { width: 440px; height: 440px; top: -160px; right: -100px; }
.product-hero::after { width: 360px; height: 360px; bottom: -180px; left: -80px; }

.product-hero.svc-1::before { background: var(--yellow); }
.product-hero.svc-1::after { background: var(--coral); }
.product-hero.svc-2::before { background: var(--coral); }
.product-hero.svc-2::after { background: var(--magenta); }
.product-hero.svc-3::before { background: var(--magenta); }
.product-hero.svc-3::after { background: var(--purple); }
.product-hero.svc-4::before { background: var(--purple); }
.product-hero.svc-4::after { background: var(--blue); }

.product-hero .container { position: relative; z-index: 1; }

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.product-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-hero-img {
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 30px 40px rgba(21, 48, 127, 0.18));
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 10px; opacity: 0.6; }

.page-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  max-width: 760px;
  margin-bottom: 18px;
}
.page-hero p.lead {
  font-size: 17px;
  max-width: 640px;
}

/* ==========================================================================
   Products listing grid (4 cards)
   ========================================================================== */
.products-listing { padding: 90px 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.product-card .proj-media { height: 170px; }
.product-card .proj-body { flex: 1; display: flex; flex-direction: column; }
.product-card .proj-body p { flex: 1; margin-bottom: 22px; }

.product-card .product-meta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  opacity: 0.7;
  margin-bottom: 8px;
}

.product-card .btn { align-self: flex-start; }

.product-next {
  white-space: normal;
  text-align: left;
  max-width: 100%;
}
.product-next span { flex: 1 1 auto; min-width: 0; }

/* ==========================================================================
   Product detail page
   ========================================================================== */
.product-head {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.product-head-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #fff;
  flex: none;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.65), var(--shadow);
}
.product-head-icon.svc-1 { background: linear-gradient(135deg, var(--yellow), var(--coral)); }
.product-head-icon.svc-2 { background: linear-gradient(135deg, var(--coral), var(--magenta)); }
.product-head-icon.svc-3 { background: linear-gradient(135deg, var(--magenta), var(--purple)); }
.product-head-icon.svc-4 { background: linear-gradient(135deg, var(--purple), var(--blue)); }

.product-head h1 { margin-bottom: 10px; }

.product-tagline {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 16px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -10px rgba(21, 48, 127, 0.35);
}
.product-tag i { font-size: 11px; color: var(--purple); }

.pd-band { padding: 90px 0; }

.pd-band-problem { position: relative; background: #fff; }
.pd-band-problem .container { position: relative; z-index: 1; }

.pd-gear-watermark {
  position: absolute;
  color: #F0F2F8;
  z-index: 0;
  pointer-events: none;
}
.pd-gear-watermark.gear-1 { top: 130px; left: -50px; font-size: 300px; transform: rotate(15deg); }
.pd-gear-watermark.gear-2 { top: 30px; left: 165px; font-size: 200px; transform: rotate(-9deg); }
.pd-gear-watermark.gear-3 { bottom: -150px; right: -110px; font-size: 400px; transform: rotate(-10deg); }

.pd-heading-plain { color: var(--blue-dark); }
.pd-heading-grad {
  background: var(--signal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pd-band-how {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.pd-band-how::before,
.pd-band-how::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
.pd-band-how::before { width: 360px; height: 360px; top: -120px; left: -80px; background: var(--blue); }
.pd-band-how::after { width: 320px; height: 320px; bottom: -140px; right: -60px; background: var(--purple); }
.pd-band-how .container { position: relative; z-index: 1; }

.pd-band-features {
  position: relative;
  background: var(--blue-dark) url('../../images/blue-bg.png') center / cover no-repeat;
}
.pd-band-features .container { position: relative; z-index: 1; }
.pd-band-features .pd-section-title { color: #fff; }

.pd-band-uiux { background: var(--bg-soft); }

/* ---- Shared decorative visual panel (reused across zigzag + timeline) ---- */
.pd-visual-panel {
  position: relative;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pd-visual-icon { font-size: 84px; color: rgba(255, 255, 255, 0.34); position: relative; z-index: 1; }
.pd-visual-panel-sm { aspect-ratio: 1 / 1; min-height: 96px; border-radius: 18px; box-shadow: none; }
.pd-visual-icon-sm { font-size: 34px; color: rgba(255, 255, 255, 0.4); }

.pd-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 0;
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pd-visual-panel:hover .pd-visual-img { transform: scale(1.14); }


/* ---- Problem / Objective zigzag ---- */
.pd-zigzag { display: flex; flex-direction: column; gap: 70px; margin-top: 10px; }

.pd-row {
  display: flex;
  align-items: center;
  gap: 56px;
}
.pd-row.reverse { flex-direction: row-reverse; }
.pd-row-text { flex: 1 1 0; min-width: 0; }
.pd-row-visual { flex: 1 1 0; min-width: 0; }

.pd-row-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.pd-row-eyebrow i { font-size: 12px; }

.pd-row-text h2 { font-size: 30px; margin-bottom: 20px; }
.pd-row-text p { font-size: 18px; color: var(--ink-soft); }

/* ---- How it works: connected step circles ---- */
.pd-steps-section { margin-top: 0; }

.pd-section-title {
  text-align: center;
  font-size: 30px;
  margin-bottom: 48px;
}

.pd-steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.pd-step {
  flex: 0 1 280px;
  max-width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pd-step-badge {
  display: inline-block;
  padding: 7px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 20px;
}
.pd-step-badge.svc-1 { background: linear-gradient(135deg, var(--yellow), var(--coral)); }
.pd-step-badge.svc-2 { background: linear-gradient(135deg, var(--coral), var(--magenta)); }
.pd-step-badge.svc-3 { background: linear-gradient(135deg, var(--magenta), var(--purple)); }
.pd-step-badge.svc-4 { background: linear-gradient(135deg, var(--purple), var(--blue)); }

.pd-step-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pd-step:hover .pd-step-circle { transform: translateY(-6px); }
.pd-step-circle img { width: 100%; height: 100%; object-fit: cover; }

.pd-step h3 { font-size: 20px; margin-bottom: 8px; }
.pd-step p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.pd-step-arrow {
  flex: 0 0 auto;
  align-self: flex-start;
  color: #15307F;
  font-size: 25px;
  line-height: 1;
  padding-top: 144px;
}

/* ---- Key functions & UI/UX card grids ---- */
.pd-cards-section { margin-top: 0; }

.pd-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pd-feature-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pd-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.pd-feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 1;
}
.pd-feature-card:hover::before { transform: scaleX(1); }

.pd-feature-watermark {
  position: absolute;
  right: -18px;
  bottom: -24px;
  font-size: 120px;
  line-height: 1;
  opacity: 0.14;
  transform: rotate(-8deg);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.pd-feature-card:hover .pd-feature-watermark { opacity: 0.24; transform: rotate(-4deg) scale(1.08); }

.pd-feature-watermark.svc-1 { background: linear-gradient(135deg, var(--yellow), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-feature-watermark.svc-2 { background: linear-gradient(135deg, var(--coral), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-feature-watermark.svc-3 { background: linear-gradient(135deg, var(--magenta), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-feature-watermark.svc-4 { background: linear-gradient(135deg, var(--purple), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pd-feature-icon,
.pd-feature-card h4,
.pd-feature-card p { position: relative; z-index: 1; }

.pd-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin-bottom: 22px;
}
.pd-feature-icon.svc-1 { background: linear-gradient(135deg, var(--yellow), var(--coral)); }
.pd-feature-icon.svc-2 { background: linear-gradient(135deg, var(--coral), var(--magenta)); }
.pd-feature-icon.svc-3 { background: linear-gradient(135deg, var(--magenta), var(--purple)); }
.pd-feature-icon.svc-4 { background: linear-gradient(135deg, var(--purple), var(--blue)); }
.pd-feature-card h4 { font-size: 18px; margin-bottom: 10px; }
.pd-feature-card p { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---- Key functions: featured scroll carousel ---- */
.pd-carousel { position: relative; margin-top: 10px; }

.pd-carousel-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 0 28px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.pd-carousel-track::-webkit-scrollbar { display: none; }

.pd-carousel-card {
  flex: 0 0 clamp(260px, 32vw, 340px);
  scroll-snap-align: center;
  transform: scale(0.92);
  opacity: 0.62;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pd-carousel-card.is-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: var(--shadow);
  border-color: transparent;
}

.pd-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.pd-carousel-arrow:hover { background: var(--signal); color: #fff; transform: translateY(-50%) scale(1.06); }
.pd-carousel-prev { left: -6px; }
.pd-carousel-next { right: -6px; }

.pd-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}
.pd-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
}
.pd-carousel-dot.is-active { background: var(--signal); width: 22px; border-radius: 5px; }

/* ---- UI/UX: draggable gallery scroller ---- */
.pd-scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: none;
  padding: 4px 4px 16px;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.pd-scroller::-webkit-scrollbar { display: none; }
.pd-scroller.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }

.pd-scroller-card {
  flex: 0 0 clamp(230px, 26vw, 290px);
}

.pd-scrollbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.pd-scrollbar-arrow {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.pd-scrollbar-arrow:hover { background: var(--signal); color: #fff; border-color: transparent; }

.pd-scrollbar-track {
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.pd-scrollbar-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 6px;
  min-width: 40px;
  border-radius: 999px;
  background: var(--ink-soft);
  cursor: grab;
  transition: background 0.25s ease;
}
.pd-scrollbar-thumb:hover,
.pd-scrollbar-thumb.is-dragging { background: var(--blue-dark); }

.product-back {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; margin-top: 20px; }
  .orb-wrap { max-width: 360px; margin: 0 auto; }
  .about-copy { padding: 0 8px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .expand-cards { height: auto; flex-direction: column; }
  .expand-card { min-height: 210px; }
  .expand-card.is-expanded { min-height: 320px; }

  .product-grid { grid-template-columns: 1fr; }
  .product-sections { grid-template-columns: 1fr; }
  .pd-card-grid { grid-template-columns: repeat(2, 1fr); }

  .product-hero-grid { grid-template-columns: 1fr; }
  .product-hero-visual { max-width: 320px; margin: 28px auto 0; }

  .pd-carousel-card { flex-basis: 68vw; }
  .pd-scroller-card { flex-basis: 62vw; }
  .pd-carousel-prev { left: 6px; }
  .pd-carousel-next { right: 6px; }
}

@media (max-width: 760px) {
  .pd-band { padding: 60px 0; }

  .pd-row, .pd-row.reverse { flex-direction: column; }
  .pd-row-visual { width: 100%; max-width: 320px; }

  .pd-steps-row { flex-direction: column; align-items: center; }
  .pd-step { max-width: 320px; }
  .pd-step-arrow { align-self: center; padding-top: 0; margin: 4px 0; transform: rotate(90deg); }

  .pd-card-grid { grid-template-columns: 1fr; }

  .pd-gear-watermark.gear-1 { font-size: 130px; top: -30px; left: -40px; }
  .pd-gear-watermark.gear-2 { font-size: 80px; top: 70px; left: 90px; }
  .pd-gear-watermark.gear-3 { font-size: 220px; bottom: -80px; right: -60px; }

  .pd-carousel-card { flex-basis: 82vw; }
  .pd-scroller-card { flex-basis: 78vw; }

  .product-back { flex-direction: column; align-items: stretch; }
  .product-back .btn { justify-content: center; width: 100%; }
  .product-next { text-align: center; font-size: 14px; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 84px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow);
  }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 64px 0 72px; }
  .about, .services, .portfolio, .faq { padding: 72px 0; }
  .contact { padding: 64px 0; }

  .hero-visual { height: 280px; margin-top: 8px; margin-bottom: 44px; }
  .orb-wrap { max-width: 230px; margin: 0 auto; }
  .hero-card { padding: 12px 14px; gap: 10px; top: 0; }
  .hero-card + .hero-card { bottom: -16px; }
  .hero-card .icon { width: 34px; height: 34px; font-size: 14px; }
  .hero-card strong { font-size: 13px; }
  .hero-card span { font-size: 11px; }
  .hero-scroll { bottom: 36px; }

  .service-info { padding: 36px 28px 30px; }
  .expand-label { flex-direction: row; gap: 10px; }
  .expand-label span { writing-mode: horizontal-tb; }
  .expand-content { padding: 28px 24px; }
  .expand-content h3 { font-size: 19px; white-space: normal; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-meta { gap: 22px; }
  .hero-visual { height: 280px; }
  .orb-wrap { max-width: 220px; margin: 0 auto;}
}
/* ==========================================================================
   Scroll-to-top button
   ========================================================================== */
.scroll-top {
  position: fixed;   
  left: 20px;        
  bottom: 24px;      
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(139, 92, 246, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  z-index: 999;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.scroll-top:hover {
  background: var(--blue);
  box-shadow: 0 18px 34px -10px rgba(139, 92, 246, 0.65);
  transform: translateY(-3px) scale(1);
}
.scroll-top:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .scroll-top { left: 16px; bottom: 24px; width: 46px; height: 46px; font-size: 16px; }
}