/* =========================================================
   WHALE LAND CHAPTER SERVICE HUB
   Full-screen brand chapters + dynamic service hub
   ========================================================= */

:root {
  --hub-ink: #06264a;
  --hub-muted: rgba(6, 38, 74, 0.66);
  --hub-line: rgba(6, 38, 74, 0.11);
  --hub-cream: #fbf4e6;
  --hub-blue: #1674d8;
}

html {
  scroll-padding-top: 76px;
}

body {
  background:
    radial-gradient(circle at 12% 2%, rgba(155, 223, 255, 0.24), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(95, 201, 130, 0.14), transparent 18%),
    linear-gradient(180deg, #f8fbfc 0%, var(--hub-cream) 100%);
}

.site-header {
  height: 72px;
  color: var(--hub-ink);
  background: rgba(255, 252, 244, 0.82);
  border-bottom: 1px solid rgba(6, 38, 74, 0.09);
  box-shadow: 0 12px 34px rgba(4, 39, 77, 0.06);
  backdrop-filter: blur(20px);
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand span {
  color: var(--hub-ink);
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.desktop-nav {
  gap: 24px;
}

.desktop-nav a {
  color: rgba(6, 38, 74, 0.64);
  font-size: 0.72rem;
}

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

.language-nav {
  padding: 4px;
  border: 1px solid rgba(6, 38, 74, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.language-nav button {
  color: rgba(6, 38, 74, 0.58);
  font-size: 0.68rem;
}

.language-nav button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--hub-blue), #0e4d98);
}

.menu-toggle {
  color: var(--hub-ink);
  border-color: rgba(6, 38, 74, 0.12);
  background: rgba(255,255,255,0.48);
}

.mobile-panel {
  top: 72px;
  background: rgba(255, 252, 244, 0.96);
  border-bottom: 1px solid rgba(6, 38, 74, 0.1);
}

.mobile-panel a {
  color: rgba(6, 38, 74, 0.82);
}

.home-main {
  overflow: hidden;
}

.chapter {
  position: relative;
  min-height: 100svh;
  padding: 110px max(22px, 6vw) 76px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 72px;
}

.chapter-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.chapter-bg-one {
  background:
    radial-gradient(circle at 48% 44%, rgba(255, 255, 255, 0.82), transparent 22%),
    radial-gradient(circle at 26% 24%, rgba(155, 223, 255, 0.42), transparent 22%),
    radial-gradient(circle at 78% 74%, rgba(95, 201, 130, 0.20), transparent 24%),
    linear-gradient(180deg, #eefbff 0%, #c6efff 52%, #fbf4e6 100%);
  animation: gradientBreathe 9s ease-in-out infinite alternate;
}

.chapter-bg-two {
  background:
    radial-gradient(circle at 12% 20%, rgba(95, 201, 130, 0.16), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(155, 223, 255, 0.34), transparent 24%),
    linear-gradient(180deg, #fbf4e6 0%, #eff9fc 100%);
}

.chapter-bg-three {
  background:
    radial-gradient(circle at 20% 10%, rgba(155, 223, 255, 0.22), transparent 26%),
    radial-gradient(circle at 88% 74%, rgba(95, 201, 130, 0.18), transparent 24%),
    linear-gradient(145deg, #05274f 0%, #063667 100%);
}

.logo-chapter {
  place-items: center;
  text-align: center;
  color: var(--hub-ink);
}

.logo-stage {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  transform: translate(var(--pointer-x, 0), var(--pointer-y, 0));
  transition: transform 0.35s ease-out;
}

.logo-stage-mark {
  width: min(360px, 68vw);
  height: auto;
  filter:
    drop-shadow(0 30px 64px rgba(4, 55, 105, 0.18))
    drop-shadow(0 0 10px rgba(255,255,255,0.9));
  animation: logoFloat 6.5s ease-in-out infinite;
}

.logo-stage-title {
  margin: 18px 0 0;
  color: var(--hub-ink);
  font-size: clamp(2.35rem, 7vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.logo-stage-note {
  margin: 18px 0 0;
  color: rgba(6, 38, 74, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.logo-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(6, 67, 128, 0.13);
  border-radius: 50%;
  pointer-events: none;
  animation: ringSpin linear infinite;
}

.logo-orbit-one {
  width: min(540px, 86vw);
  aspect-ratio: 1;
  animation-duration: 32s;
}

.logo-orbit-two {
  width: min(700px, 108vw);
  aspect-ratio: 1;
  border-style: dashed;
  opacity: 0.52;
  animation-duration: 46s;
  animation-direction: reverse;
}

.floating-dot {
  position: absolute;
  width: 14px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(22, 116, 216, 0.28);
  box-shadow: 0 0 0 14px rgba(22, 116, 216, 0.05);
  animation: dotFloat 7s ease-in-out infinite;
}

.dot-one { left: 16%; top: 26%; }
.dot-two { right: 18%; top: 30%; animation-delay: -2.1s; }
.dot-three { left: 25%; bottom: 18%; animation-delay: -4.2s; }

.chapter-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 34px;
  height: 54px;
  border: 1px solid rgba(6, 38, 74, 0.22);
  border-radius: 999px;
  transform: translateX(-50%);
}

.chapter-scroll span {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(6, 38, 74, 0.56);
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 14px;
  color: #0b79be;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.intro-chapter {
  color: var(--hub-ink);
}

.intro-card,
.contact-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: clamp(26px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 26px 70px rgba(5, 61, 116, 0.10);
  backdrop-filter: blur(18px);
}

.intro-title,
.contact-title {
  margin: 0;
  max-width: 880px;
  font-size: clamp(2rem, 5.2vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.intro-body,
.contact-body {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--hub-muted);
  font-size: clamp(0.98rem, 1.35vw, 1.16rem);
  line-height: 1.86;
  white-space: pre-line;
}

.service-feature-panel {
  color: var(--hub-ink);
  background:
    radial-gradient(circle at 76% 28%, color-mix(in srgb, var(--service-accent, #1674d8) 22%, transparent), transparent 28%),
    linear-gradient(180deg, #f7fbfc 0%, #fbf4e6 100%);
}

.service-feature-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.82;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,0.74), transparent 22%),
    radial-gradient(circle at 86% 70%, rgba(255,255,255,0.56), transparent 26%);
}

.service-feature-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}

.service-feature-copy {
  position: relative;
}

.service-feature-number {
  display: inline-flex;
  margin-bottom: 22px;
  color: color-mix(in srgb, var(--service-accent, #1674d8) 80%, #06264a);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.service-feature-copy h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 5.1vw, 5.35rem);
  line-height: 1.03;
  letter-spacing: -0.058em;
}

.service-feature-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--hub-muted);
  font-size: clamp(0.98rem, 1.3vw, 1.13rem);
  line-height: 1.82;
}

.service-feature-copy .button {
  margin-top: 30px;
}

.service-feature-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.service-feature-orbit {
  position: absolute;
  width: min(440px, 82vw);
  aspect-ratio: 1;
  border: 1px dashed color-mix(in srgb, var(--service-accent, #1674d8) 28%, transparent);
  border-radius: 50%;
  animation: ringSpin 42s linear infinite;
}

.service-feature-frame {
  position: relative;
  width: min(340px, 72vw);
  aspect-ratio: 1;
  padding: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.64);
  border-radius: 34px;
  background: rgba(255,255,255,0.68);
  box-shadow: 0 26px 62px rgba(5, 61, 116, 0.12);
  backdrop-filter: blur(14px);
  animation: logoFloat 7.2s ease-in-out infinite;
}

.service-feature-frame img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.82rem;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #0b77d8, #074f9e);
  box-shadow: 0 16px 36px rgba(13, 101, 190, 0.20);
}

.service-list-chapter {
  color: var(--hub-ink);
  background: linear-gradient(180deg, #fbf4e6 0%, #eef9fc 100%);
}

.section-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.service-list-head {
  max-width: 820px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 4.3vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.052em;
}

.section-body {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--hub-muted);
  font-size: 0.98rem;
  line-height: 1.76;
}

.service-list-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-list-card {
  position: relative;
  min-height: 360px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hub-line);
  border-radius: 26px;
  color: var(--hub-ink);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 18px 42px rgba(5, 61, 116, 0.07);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-list-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--hub-blue) 28%, transparent);
  box-shadow: 0 28px 58px rgba(5, 61, 116, 0.12);
}

.service-list-index {
  color: rgba(6, 38, 74, 0.46);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.service-list-icon {
  height: 128px;
  margin: 18px 0 22px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.96), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(220, 241, 249, 0.82));
}

.service-list-icon img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #8090a1;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.status-pill {
  padding: 5px 8px;
  border-radius: 999px;
  color: #0b3d6f;
  background: rgba(137, 213, 255, 0.24);
}

.service-list-card h3 {
  margin: 12px 0 0;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.16;
  letter-spacing: -0.036em;
}

.service-list-card p {
  margin: 12px 0 0;
  color: var(--hub-muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.world-link {
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-size: 1.2rem;
}

.contact-chapter {
  color: #fff;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.20);
}

.contact-card .eyebrow {
  color: #9bdfff;
}

.contact-body {
  color: rgba(248, 251, 255, 0.72);
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-line,
.copy-email-button {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0,0,0,0.12);
  backdrop-filter: blur(12px);
}

.contact-line span {
  color: rgba(248, 251, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-line strong {
  font-size: 0.9rem;
}

.copy-email-button {
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
}

.hub-footer {
  padding: 30px max(22px, 6vw);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(220px, 0.8fr);
  gap: 28px;
  align-items: center;
  color: rgba(6, 38, 74, 0.68);
  background: #fbf4e6;
  border-top: 1px solid rgba(6, 38, 74, 0.09);
  font-size: 0.82rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: var(--hub-ink);
}

.footer-brand span {
  margin-top: 4px;
  color: rgba(6, 38, 74, 0.54);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a,
.footer-contact a {
  color: rgba(6, 38, 74, 0.72);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--hub-blue);
}

.footer-contact {
  display: grid;
  gap: 5px;
  justify-items: end;
  font-style: normal;
}

.footer-contact span {
  color: rgba(6, 38, 74, 0.42);
  font-size: 0.74rem;
}

.service-page .service-hero {
  min-height: auto;
  padding: 112px max(22px, 6vw) 74px;
  color: var(--hub-ink);
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 246, 203, 0.58), transparent 20%),
    radial-gradient(circle at 84% 48%, rgba(95, 201, 130, 0.20), transparent 18%),
    linear-gradient(180deg, #eefbff 0%, #9fe3ff 52%, #fbf4e6 100%);
}

.service-page .service-hero-title,
.service-page .statement-title,
.service-page .section-title,
.service-page .closing-card h2 {
  font-size: clamp(2rem, 4.2vw, 4.35rem);
  line-height: 1.07;
  letter-spacing: -0.052em;
}

.service-page .service-hero-lead,
.service-page .statement-body,
.service-page .closing-card p {
  font-size: 0.96rem;
  line-height: 1.78;
}

.service-page .service-art {
  min-height: 390px;
}

.service-page .service-art-frame {
  width: min(360px, 78vw);
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 24px 54px rgba(5, 61, 116, 0.14);
}

.service-page .section {
  padding: 76px max(22px, 6vw);
}

.service-page .feature-card,
.service-page .process-step {
  min-height: 230px;
  padding: 22px;
  border-radius: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

@keyframes dotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 18px); }
}

@keyframes gradientBreathe {
  from { filter: saturate(0.95) brightness(1); }
  to { filter: saturate(1.08) brightness(1.03); }
}

@media (max-width: 1100px) {
  .chapter {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 64px;
  }

  .service-feature-inner,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .service-feature-visual {
    min-height: 300px;
    order: -1;
  }

  .service-list-grid {
    grid-template-columns: 1fr;
  }

  .service-list-card {
    min-height: auto;
  }

  .hub-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-contact {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 68px;
  }

  .site-header {
    height: 68px;
    padding: 0 14px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand span {
    display: none;
  }

  .language-nav button {
    padding: 7px 5px;
  }

  .chapter {
    padding: 94px 18px 52px;
  }

  .logo-stage-mark {
    width: min(280px, 72vw);
  }

  .logo-stage-title {
    font-size: clamp(2.3rem, 13vw, 4.2rem);
  }

  .logo-orbit-one {
    width: min(360px, 92vw);
  }

  .logo-orbit-two {
    width: min(430px, 110vw);
  }

  .intro-card,
  .contact-card {
    padding: 28px 22px;
    border-radius: 26px;
  }

  .intro-title,
  .contact-title,
  .service-feature-copy h2,
  .section-title {
    font-size: clamp(1.72rem, 9vw, 3.05rem);
  }

  .intro-body,
  .contact-body,
  .service-feature-copy p,
  .section-body {
    font-size: 0.94rem;
    line-height: 1.76;
  }

  .service-feature-visual {
    min-height: 250px;
  }

  .service-feature-frame {
    width: min(260px, 78vw);
    padding: 22px;
    border-radius: 24px;
  }

  .service-feature-orbit {
    width: min(310px, 90vw);
  }

  .service-list-grid {
    margin-top: 24px;
  }

  .service-list-icon {
    height: 108px;
  }

  .contact-line {
    display: grid;
    justify-content: stretch;
    gap: 6px;
  }

  .hub-footer {
    padding: 28px 18px 34px;
  }
}

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

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