/* G Communities — global styles
   Visual language: Monochrome black/white, light type weights, minimal,
   generous whitespace, full-bleed imagery, pill CTAs.
   Type: Figtree (matches G Developments family) + serif accent for editorial moments.
*/

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: #0a0a0a;
  color: #fafafa;
  font-family: 'Figtree', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-card: #161616;
  --fg: #fafafa;
  --fg-muted: #a0a0a0;
  --fg-dim: #6a6a6a;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.25);
  --brand: #6d2a5b;
  --brand-light: #8a3a74;
  --brand-dark: #4d1c40;
  --brand-tint: rgba(109, 42, 91, 0.12);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
}

.brand {
  color: var(--brand);
}

.brand-bg {
  background: var(--brand);
  color: #fafafa;
}

/* Type scale — light, editorial */
.display {
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.serif {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  color: var(--brand-light);
}

.eyebrow {
  font-size: 16px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-light);
  font-weight: 400;
}

.body-lg {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-muted);
  font-weight: 300;
}

.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-muted);
  font-weight: 300;
}

/* Buttons — pill, hairline border */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  transition: all 300ms ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: #fafafa;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fafafa;
}

.btn-ghost {
  background: transparent;
  color: #fafafa;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: #fafafa;
  color: var(--brand);
}

.btn-dark {
  background: var(--brand);
  color: #fafafa;
  border-color: var(--brand);
}

.btn-dark:hover {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 300ms ease;
}

.btn:hover .arrow-icon {
  transform: translateX(3px);
}


/* Section */
section {
  position: relative;
}

/* Hairline divider */
.hr {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* Placeholder image — striped, monochrome, with monospace caption */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #1a1a1a, #0f0f0f);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
}

.ph-light {
  background:
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #f4f1ec, #ebe7e0);
  border-color: rgba(0, 0, 0, 0.08);
}

.ph-light::after {
  color: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms ease, transform 900ms ease;
}

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

.reveal-delay-1 {
  transition-delay: 80ms;
}

.reveal-delay-2 {
  transition-delay: 160ms;
}

.reveal-delay-3 {
  transition-delay: 240ms;
}

/* Animated text — line clip reveal */
.line-clip {
  /* overflow: hidden; */
  display: block;
}

.line-clip>span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-visible .line-clip>span,
.line-clip.is-visible>span {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 300ms ease, padding 300ms ease, border-color 300ms ease;
  padding: 20px 0;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom-color: var(--line);
}

.site-header.theme-light {
  background: #fafafa;
}

.site-header.theme-light:not(.scrolled) {
  color: #0a0a0a;
}

.site-header.theme-light.scrolled {
  background: rgba(250, 250, 250, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
  transition: opacity 300ms ease;
}

@media (max-width: 600px) {
  .logo img {
    height: 28px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  padding: 8px 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid transparent;
  transition: all 300ms ease;
}

.nav-link:hover {
  border-bottom-color: currentColor;
}

.nav-link.is-active {
  border-bottom-color: currentColor;
  opacity: 0.9;
}

.nav-cta {
  margin-left: 12px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid currentColor;
  transition: all 300ms ease;
}

.nav-cta:hover {
  background: #fafafa;
  color: #0a0a0a;
}

.theme-light .nav-cta:hover {
  background: #0a0a0a;
  color: #fafafa;
}

.menu-btn {
  display: none;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    color: #fafafa;
    align-items: center;
    justify-content: center;
    z-index: 60;
  }

  .nav.is-open .nav-link {
    font-size: 28px;
    padding: 14px 24px;
    font-weight: 300;
  }

  .nav.is-open .nav-cta {
    margin-left: 0;
    margin-top: 12px;
    padding: 14px 32px;
    font-size: 16px;
  }
}

/* Footer */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 400;
  margin-bottom: 24px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 10px;
  transition: color 300ms ease;
  font-weight: 300;
}

.footer-col a:hover {
  color: var(--fg-muted);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--fg-dim);
  font-weight: 300;
}

.footer-bottom .group-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--brand-light);
}

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}

.marquee-track--measure {
  animation: none;
  visibility: hidden;
  position: absolute;
}

.marquee-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  font-weight: 300;
  color: var(--fg);
}

.marquee-item .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-light);
  margin: 0 40px;
  vertical-align: middle;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--marquee-width)));
  }
}

/* Card hover */
.card-hover {
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card-hover:hover {
  transform: translateY(-6px);
}

/* Forms */
.form-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--fg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  padding: 18px 0;
  transition: border-color 300ms ease;
}

.form-field::placeholder {
  color: var(--fg-dim);
}

.form-field:focus {
  outline: none;
  border-bottom-color: var(--fg);
}

textarea.form-field {
  resize: none;
  min-height: 120px;
  padding-top: 18px;
}

select.form-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a0a0a0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
}

/* Subtle text underline animation */
.under-link {
  position: relative;
}

.under-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 300ms ease;
}

.under-link:hover::after {
  width: 100%;
}

/* For light bg sections */
.invert-section {
  background: #faf6f4;
  color: #0a0a0a;
}

.invert-section .body,
.invert-section .body-lg {
  color: #4a4a4a;
}

.invert-section .eyebrow {
  color: var(--brand);
}

.invert-section .serif {
  color: var(--brand);
}

.invert-section .hr {
  background: rgba(0, 0, 0, 0.1);
}

.invert-section .form-field {
  border-color: rgba(0, 0, 0, 0.2);
  color: #0a0a0a;
}

.invert-section .form-field:focus {
  border-color: var(--brand);
}

.invert-section .form-field::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

/* Stats */
.stat-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand-light);
}

/* Hover image reveal */
.peek {
  position: relative;
  overflow: hidden;
}

.peek img,
.peek .ph {
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.peek:hover img,
.peek:hover .ph {
  transform: scale(1.04);
}

.test {}