/* Shared reading rhythm for GLOMA's public pages. No remote font requests. */
body.gloma-editorial {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}
.gloma-editorial main h1,
.gloma-editorial main h2,
.gloma-editorial main h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.gloma-editorial main h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -.025em !important;
}
.gloma-editorial main h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.25rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -.02em !important;
}
.gloma-editorial main h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.gloma-editorial main p { line-height: 1.7; }
.gloma-editorial :is(.eyebrow, .testimonial-type) {
  font-size: .8rem;
  letter-spacing: .08em;
  line-height: 1.5;
}
.gloma-editorial .btn {
  min-height: 48px;
  border-radius: 12px;
  font: 600 1rem/1.4 system-ui, sans-serif;
  padding: 14px 22px;
  white-space: normal;
  text-align: center;
}
.gloma-editorial .btn:not(.light):not(.ghost) {
  background: #304d39;
  border-color: #304d39;
  color: #fff;
}
.gloma-editorial :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #b0694e;
  outline-offset: 4px;
}
.gloma-editorial:not(.gloma-home) article {
  border-color: #ded8cb;
  border-radius: 16px;
  background: rgba(255,255,255,.35);
}
.gloma-home :is(.intro-copy, .story-panel p, .lead) { font-size: 1.125rem; }
.gloma-home .intro-copy p:first-child { font-size: 1.25rem; line-height: 1.6; }
.gloma-home :is(.card, .offer-card, .testimonial-card, .journey-card, .practical-card, .coming-box, .story-panel) {
  border-radius: 18px;
  box-shadow: none;
}
.gloma-home :is(.card, .offer-card, .testimonial-card, .journey-card, .practical-card, .coming-box):hover {
  transform: none;
  box-shadow: none;
}
.gloma-home :is(.journey-card, .practical-card, .testimonial-card) { border-color: rgba(96,87,64,.16); }
.gloma-home .story-panel { padding: clamp(24px, 4vw, 48px); }
.gloma-home main > section { padding-top: 80px; padding-bottom: 80px; }
.gloma-home .hero-copy { width: min(720px, 78%); }
.gloma-home .hero .hero-introduction {
  margin: 0;
  max-width: 30rem;
  color: #80663e;
  font-size: clamp(.95rem, 1.3vw, 1.125rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .01em;
}
/* The welcome mascot introduces two clear, independently clickable choices. */
.gloma-home .hero-guide {
  display: grid;
  grid-template-columns: clamp(76px, 24vw, 126px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  max-width: 510px;
  margin: 28px 0 10px;
}
.gloma-home .hero-guide-character {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 9px rgba(70, 57, 33, .12));
  pointer-events: none;
}
.gloma-home.hero-guide-in-view .chat-float .chat-figure { display: none; }
.gloma-home .hero .hero-guide-actions {
  display: grid;
  gap: 14px;
  margin: 0;
  min-width: 0;
}
.gloma-home .hero .hero-guide-bubble {
  --bubble-background: #12695c;
  --bubble-border: #12695c;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 80px;
  padding: 15px clamp(14px, 2vw, 22px);
  border: 1px solid var(--bubble-border);
  border-radius: 24px 24px 24px 7px;
  background: var(--bubble-background);
  color: #fffaf2;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(36, 75, 59, .1);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.gloma-home .hero .hero-guide-bubble::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 34px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: var(--bubble-background);
  border-left: 1px solid var(--bubble-border);
  border-bottom: 1px solid var(--bubble-border);
  pointer-events: none;
}
.gloma-home .hero .hero-guide-bubble.ghost {
  --bubble-background: #fffaf2;
  --bubble-border: #ccb992;
  color: #244b3b;
}
.gloma-home .hero-guide-copy { display: grid; gap: 4px; min-width: 0; }
.gloma-home .hero-guide-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.gloma-home .hero-guide-title { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 650; line-height: 1.3; }
.gloma-home .hero-guide-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 250, 242, .15);
  font-size: 1.15rem;
  line-height: 1;
}
.gloma-home .hero-guide-bubble.ghost .hero-guide-arrow { background: #e5ede3; }
.gloma-home .hero .hero-guide-bubble:hover {
  --bubble-background: #0c594e;
  --bubble-border: #0c594e;
  transform: translateX(3px);
  box-shadow: 0 9px 22px rgba(36, 75, 59, .16);
}
.gloma-home .hero .hero-guide-bubble.ghost:hover {
  --bubble-background: #edf2e8;
  --bubble-border: #a8b59b;
  color: #244b3b;
}
@media (prefers-reduced-motion: reduce) {
  .gloma-home .hero .hero-guide-bubble { transition: none; }
  .gloma-home .hero .hero-guide-bubble:hover { transform: none; }
}
@media (max-width: 760px) {
  body.gloma-editorial { font-size: 16px; }
  .gloma-editorial main p { font-size: 1rem; line-height: 1.7; }
  .gloma-editorial main h1 { font-size: clamp(2rem, 7.8vw, 2.6rem) !important; }
  .gloma-editorial main h2 { font-size: clamp(1.75rem, 6.7vw, 2.2rem) !important; }
  .gloma-editorial .btn { max-width: 100%; }
  .gloma-home main > section { padding-top: 52px; padding-bottom: 52px; }
  .gloma-home .hero-copy { width: 100%; }
  .gloma-home .intro-copy p:first-child { font-size: 1.125rem; }
  .gloma-home :is(.journey-card, .offer-card, .practical-card) { padding: 24px; }
}

/* Keep the mobile video area separate from the introduction. */
@media (max-width: 760px) {
  .gloma-home main > .hero { padding-top: 96px; }
  .gloma-home .hero .hero-copy { padding-top: 32px; }
  .gloma-home .hero-motion-toggle {
    top: 348px;
    bottom: auto;
    transform: translateY(-100%);
    max-width: calc(100% - 32px);
  }
}

/* Compact playback control; its translated name remains available to assistive technology. */
.gloma-home .hero-motion-toggle {
  width: 48px; height: 48px; min-height: 48px; padding: 0;
  border-radius: 50%; display: grid; place-items: center;
  background: #12695c; color: #fffaf2;
}
.gloma-home .hero-motion-toggle::before {
  content: ''; width: 0; height: 0; margin-left: 4px;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}
.gloma-home .hero-motion-toggle[data-state="playing"]::before {
  width: 12px; height: 16px; margin-left: 0;
  border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor;
}
