/* PAGE LAB — Agency hero (Sanggong-inspired trial layout) */
:root {
  --agency-teal: #3de0d0;
  --agency-teal-deep: #1fb8aa;
  --agency-cream: #f3efe4;
}

.agency-header {
  height: 78px;
  gap: 16px;
  padding: 0 clamp(18px, 3vw, 40px);
  background: #fff;
  color: #071018;
  border-bottom: 1px solid rgba(7, 11, 16, 0.08);
}

.agency-header.is-solid {
  background: #fff;
  backdrop-filter: none;
  border-bottom-color: rgba(7, 11, 16, 0.1);
}

.agency-header .nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: clamp(12px, 1.6vw, 22px);
  margin-right: 0;
}

.agency-header .nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 1;
  color: #0a121c;
  white-space: nowrap;
}

.agency-header .nav a:hover {
  opacity: 1;
  color: #1a6bff;
}

.agency-header .logo {
  margin-right: 0;
  z-index: 3;
}

.agency-header .logo-text b {
  background: linear-gradient(115deg, #7b3cff 0%, #3d6bff 48%, #1aa7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agency-header .logo-text i {
  color: #2b8cff;
  opacity: 1;
}

.agency-header .nav-toggle {
  color: #071018;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  z-index: 3;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    transform 0.22s var(--ease),
    background 0.22s,
    border-color 0.22s,
    color 0.22s,
    box-shadow 0.22s;
}

.btn-pill:hover { transform: translateY(-2px); }

.btn-pill-fill {
  background: linear-gradient(135deg, #6eb0ff 0%, #3d6bff 52%, #5b4dff 100%);
  color: #fff;
  border: 1px solid transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 8px 22px rgba(61, 107, 255, 0.32);
}

.btn-pill-fill span {
  opacity: 0.9;
  transition: transform 0.22s var(--ease);
}

.btn-pill-fill:hover {
  background: linear-gradient(135deg, #86beff 0%, #5480ff 52%, #6d5fff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 12px 28px rgba(61, 107, 255, 0.42);
}

.btn-pill-fill:hover span {
  transform: translateX(2px);
}

.btn-pill-line {
  border: 1px solid rgba(61, 107, 255, 0.28);
  color: #1a2a4a;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 16px rgba(26, 42, 74, 0.06);
}

.btn-pill-line:hover {
  border-color: rgba(61, 107, 255, 0.55);
  color: #3d6bff;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 10px 22px rgba(61, 107, 255, 0.12);
}

.agency-header .header-cta { display: none; }

/* —— Agency hero —— */
.agency-hero {
  align-items: center;
  justify-items: center;
  min-height: 100svh;
  background: #000;
}

.agency-hero .hero-veil {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.28) 40%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(ellipse 70% 55% at 50% 45%, transparent 20%, rgba(0, 0, 0, 0.45) 100%);
  box-shadow: none;
}

.agency-hero .hero-glow {
  background:
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(61, 224, 208, 0.12), transparent 70%);
}

.hero-center {
  position: absolute;
  left: 50%;
  top: calc(var(--header-h) + 32px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(1100px, calc(100% - 32px));
  padding: 0;
  margin: 0;
  transform: translateX(-50%);
  animation: heroCenterIn 1s var(--ease) both;
}

@keyframes heroCenterIn {
  from { opacity: 0; transform: translateX(-50%) translateY(22px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: rgba(247, 250, 252, 0.65);
}

.hero-display {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: baseline;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 8.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: none;
}

.hero-display .ch {
  display: inline-block;
  background-image: linear-gradient(
    180deg,
    #7eb6ff 0%,
    #a8d0ff 38%,
    #eef5ff 55%,
    #ffffff 72%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.hero-display .ch:nth-child(odd) {
  background-image: linear-gradient(
    180deg,
    #a78bfa 0%,
    #c4b5fd 38%,
    #f3eeff 55%,
    #ffffff 72%,
    #ffffff 100%
  );
}

.hero-display .ch:nth-child(3n) {
  background-image: linear-gradient(
    180deg,
    #2dd4bf 0%,
    #5eead4 38%,
    #e6fffa 55%,
    #ffffff 72%,
    #ffffff 100%
  );
}

.hero-display .ch-gap {
  width: 0.28em;
  background: none;
  filter: none;
}

.hero-lab {
  position: absolute;
  left: 50%;
  bottom: max(48px, 7vh);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: #fff;
  text-decoration: none;
  transition: transform 0.28s var(--ease);
}

.hero-lab:hover {
  transform: translateX(-50%) translateY(-4px);
}

.hero-lab-ring {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1.5px solid rgba(220, 235, 255, 0.9);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(145deg, rgba(12, 24, 48, 0.55), rgba(20, 48, 96, 0.42));
  backdrop-filter: blur(12px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #e8f2ff;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}

.hero-lab:hover .hero-lab-ring {
  border-color: #9ec4ff;
  box-shadow:
    0 16px 40px rgba(61, 107, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-lab-icon {
  width: 36px;
  height: 36px;
}

.hero-lab-label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-align: center;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-circles {
  position: absolute;
  left: 50%;
  bottom: max(56px, 8vh);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
  transform: translateX(-50%);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s,
    filter 0.25s,
    background 0.25s,
    border-color 0.25s;
}

.hero-cta span {
  font-weight: 600;
  transition: transform 0.22s var(--ease);
}

.hero-cta:hover {
  transform: translateY(-3px);
}

.hero-cta:hover span {
  transform: translateX(3px);
}

.hero-cta-ghost {
  background: rgba(8, 16, 32, 0.45);
  border: 1.5px solid rgba(220, 235, 255, 0.85);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hero-cta-ghost:hover {
  border-color: #9ec4ff;
  background: rgba(20, 40, 80, 0.55);
}

.hero-cta-fill {
  background: linear-gradient(
    135deg,
    #a8d4ff 0%,
    #6eb0ff 32%,
    #3d6bff 68%,
    #5b4dff 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow:
    0 10px 28px rgba(61, 107, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-cta-fill:hover {
  filter: brightness(1.06);
  box-shadow:
    0 14px 34px rgba(61, 107, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-rail {
  position: absolute;
  left: max(24px, env(safe-area-inset-left, 0px) + 16px);
  bottom: 48px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.hero-rail a {
  display: block;
  width: max-content;
  max-width: 14em;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(247, 250, 252, 0.72);
  letter-spacing: -0.01em;
  text-align: left;
  transition: color 0.2s;
}

.hero-rail a:hover,
.hero-rail a.is-current {
  color: #fff;
  font-weight: 700;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}

.hero-arrow:hover {
  background: rgba(61, 224, 208, 0.2);
  border-color: var(--agency-teal);
}

.hero-arrow-prev { left: max(12px, 2vw); }
.hero-arrow-next { right: max(12px, 2vw); }

.float-consult {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 45;
  writing-mode: vertical-rl;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: linear-gradient(180deg, #8b6bff 0%, #5c3dff 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 12px 0 0 12px;
  box-shadow: -6px 8px 24px rgba(92, 61, 255, 0.4);
  transition: padding 0.2s, background 0.2s;
}

.float-consult:hover {
  background: linear-gradient(180deg, #9d82ff 0%, #6d52ff 100%);
  padding-right: 16px;
}

.hero-corner-label {
  position: absolute;
  right: max(24px, 3vw);
  bottom: 36px;
  z-index: 4;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(247, 250, 252, 0.45);
}

.agency-hero .hero-dots {
  left: 50%;
  right: auto;
  bottom: 22px;
  transform: translateX(-50%);
}

@media (max-width: 1100px) {
  .agency-header .nav { display: none; }
  .btn-pill-line { display: none; }
}

@media (max-width: 960px) {
  .hero-rail,
  .hero-arrow,
  .hero-corner-label { display: none; }

  .hero-center {
    top: calc(var(--header-h) + 22px);
    width: calc(100% - 32px);
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
  }

  .hero-display {
    font-size: clamp(2.6rem, 13.5vw, 4.2rem);
  }

  .hero-circles {
    gap: 10px;
    bottom: max(48px, calc(72px + env(safe-area-inset-bottom)));
    width: calc(100% - 24px);
  }

  .hero-cta {
    min-height: 50px;
    padding: 0 18px;
    font-size: 0.88rem;
    border-radius: 14px;
    flex: 1 1 auto;
  }

  .float-consult {
    top: auto;
    bottom: calc(88px + env(safe-area-inset-bottom));
    padding: 14px 10px;
    font-size: 0.74rem;
  }

  .header-actions .btn-pill-fill {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 720px) {
  .agency-header { height: 64px; }
  .hero-kicker { letter-spacing: 0.16em; text-indent: 0.16em; font-size: 0.64rem; }

  .hero-lab {
    bottom: max(40px, calc(64px + env(safe-area-inset-bottom)));
    gap: 10px;
  }

  .hero-lab-ring {
    width: 76px;
    height: 76px;
  }

  .hero-lab-icon {
    width: 30px;
    height: 30px;
  }

  .hero-lab-label {
    font-size: 0.84rem;
  }
}

/* hide legacy float when agency float is present */
body:has(.float-consult) .float-cta {
  display: none;
}
