/* Galaxy2Digital — styles */
:root {
  --brand: #17744F;
  --brand-dark: #105C3E;
  --brand-soft: #D5EBDF;
  --ink: #122019;
  --slate: #55635B;
  --fog: #EEF3EF;
  --line: #D2DCD5;
  --white: #FFFFFF;
  --signal: #F2C230;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 118%;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.1; font-stretch: var(--wide); font-weight: 750; letter-spacing: -0.01em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 48px; padding: 0 22px;
  background: var(--brand); color: var(--white);
  font: inherit; font-weight: 650; font-size: 16px;
  text-decoration: none; border: 2px solid var(--brand); border-radius: 999px;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--brand); border-color: var(--white); }
.btn-light:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; }
.logo span { color: var(--ink); font-weight: 800; font-stretch: var(--wide); font-size: 19px; letter-spacing: -0.02em; }
.logo-light, .logo-light span { color: var(--white); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--brand); }
.menu-toggle { display: none; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 12ch;
}
.lede { margin-top: 28px; font-size: clamp(18px, 1.5vw, 20px); color: var(--slate); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--slate); }

/* Wheel */
.wheel-wrap { justify-self: center; width: 100%; max-width: 520px; }
.wheel { position: relative; aspect-ratio: 1; }
#wheel-svg { width: 100%; height: 100%; overflow: visible; }
.wheel-ring { transform-origin: 250px 250px; }
.wheel.spin-in .wheel-ring { animation: spinIn 1.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes spinIn { from { transform: rotate(-120deg); opacity: 0; } 30% { opacity: 1; } to { transform: rotate(0); } }

.seg { cursor: pointer; outline: none; }
.seg path { fill: var(--fog); stroke: var(--white); stroke-width: 4; transition: fill .2s; }
.seg text { fill: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 650; font-stretch: 112%; pointer-events: none; transition: fill .2s; }
.seg:hover path { fill: var(--brand-soft); }
.seg[aria-selected="true"] path { fill: var(--brand); }
.seg[aria-selected="true"] text { fill: var(--white); }
.seg:focus-visible path { stroke: var(--signal); stroke-width: 5; }
.wheel-hub { fill: var(--white); stroke: var(--line); stroke-width: 1; }
.wheel-tick { stroke: var(--signal); stroke-width: 6; stroke-linecap: round; }

.wheel-center {
  position: absolute; inset: 0; margin: auto;
  width: 40%; height: 40%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
}
.wc-name { font-weight: 800; font-stretch: 120%; font-size: clamp(17px, 2vw, 22px); line-height: 1.15; color: var(--brand); }
.wc-desc { margin-top: 8px; font-size: clamp(13px, 1.2vw, 14.5px); line-height: 1.45; color: var(--slate); }
.wc-link { margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.wheel-hint { margin-top: 18px; text-align: center; font-size: 14px; color: var(--slate); }

/* Strip */
.strip { background: var(--brand); color: var(--white); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.strip p { font-size: 15px; line-height: 1.4; color: #E2F1E8; }
.strip strong { display: block; font-size: 28px; font-stretch: 125%; font-weight: 800; color: var(--white); margin-bottom: 2px; }

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-ink { background: var(--ink); color: var(--white); }
.section-fog { background: var(--fog); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4vw, 52px); max-width: 14ch; }
.section-head p { color: var(--slate); max-width: 50ch; }
.section-ink .section-head p { color: #A3B4AA; }

/* Services */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 4vw, 56px); }
.service { padding: 28px 0 32px; border-top: 2px solid var(--ink); scroll-margin-top: 100px; }
.service h3 { font-size: 22px; }
.service p { margin-top: 12px; color: var(--slate); font-size: 16px; }
.service ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service li { font-size: 13.5px; padding: 3px 10px; background: var(--fog); border-radius: 4px; }
.service.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: var(--brand-soft); } 100% { background: transparent; } }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid #2A3B32; }
.process li { position: relative; padding: 28px 22px 8px 0; }
.process li + li { padding-left: 22px; border-left: 1px solid #2A3B32; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--signal); color: var(--ink); font-weight: 800; font-size: 16px; }
.process h3 { margin-top: 18px; font-size: 22px; }
.process p { margin-top: 10px; font-size: 15.5px; color: #B2C1B8; }
.step-time { display: block; margin-top: 16px; font-size: 14px; color: var(--signal); }
.loop-note { display: flex; align-items: center; gap: 10px; margin-top: 40px; color: #B2C1B8; font-size: 15px; }
.loop-note svg { color: var(--signal); flex: none; }

/* Work */
.work-list { display: grid; gap: 0; }
.work { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); align-items: start; }
.work:last-child { border-bottom: 1px solid var(--line); }
.work h3 { font-size: 22px; }
.tags { margin-top: 8px; font-size: 14px; color: var(--slate); }
.work-body { color: var(--slate); }
.work-stat { font-size: 15px; color: var(--slate); }
.work-stat strong { display: block; font-size: clamp(36px, 4vw, 48px); font-stretch: 125%; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 6px; }

/* Quote */
.quote-band { background: var(--signal); padding: clamp(64px, 8vw, 104px) 0; }
.quote-band blockquote { margin: 0; max-width: 900px; }
.quote-band blockquote p { font-size: clamp(24px, 3vw, 38px); font-stretch: 110%; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.quote-band footer { margin-top: 24px; font-size: 16px; }

/* Engagements */
.engage { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 0; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; }
.engage-item { padding: clamp(28px, 3vw, 40px); }
.engage-item + .engage-item { border-left: 2px solid var(--ink); }
.engage-item h3 { font-size: 24px; }
.engage-term { margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--brand); }
.engage-item > p:not(.engage-term) { margin-top: 18px; color: var(--slate); }
.engage-featured { background: var(--brand); color: var(--white); }
.engage-featured .engage-term { color: var(--signal); }
.engage-featured > p:not(.engage-term) { color: #E2F1E8; }
.engage-featured .btn { margin-top: 28px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid h2 { font-size: clamp(30px, 3.4vw, 44px); max-width: 12ch; position: sticky; top: 110px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 650; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--slate); max-width: 62ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-copy h2 { font-size: clamp(32px, 4vw, 52px); max-width: 13ch; }
.contact-copy > p { margin-top: 20px; color: var(--slate); max-width: 46ch; }
.contact-details { margin: 36px 0 0; display: grid; gap: 16px; }
.contact-details div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.contact-details dt { color: var(--slate); font-size: 15px; }
.contact-details dd { margin: 0; font-weight: 600; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

.form { background: var(--fog); padding: clamp(24px, 3vw, 40px); border-radius: 18px; display: grid; gap: 20px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.opt { font-weight: 400; color: var(--slate); }
.field input[type="text"], .field input[type="email"], .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 8px;
  transition: border-color .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.field input[aria-invalid="true"] { border-color: #C2261D; }
.err { font-size: 14px; color: #B1221A; min-height: 0; }
.err:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips label { position: relative; font-weight: 500; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; font-size: 14.5px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.form-status { font-size: 15px; }
.form-status:empty { display: none; }

/* Footer */
.site-footer { background: var(--ink); color: #A3B4AA; padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 32px; align-items: start; }
.footer-line { margin-top: 12px; font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; justify-content: flex-end; }
.footer-nav a { color: var(--white); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--signal); }
.copy { grid-column: 1 / -1; font-size: 14px; padding-top: 24px; border-top: 1px solid #2A3B32; }

/* Responsive */
@media (max-width: 1024px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; border-top: 0; }
  .process li, .process li + li { display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; padding: 22px 0; border-left: 0; border-top: 1px solid #2A3B32; }
  .process li > * { grid-column: 2; }
  .process .step-n { grid-column: 1; grid-row: 1 / span 4; }
  .process h3 { margin-top: 4px; }
  .work { grid-template-columns: 1fr 1fr; }
  .work-stat { grid-column: 2; }
  .work-body { grid-column: 1; grid-row: 2; }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    font: inherit; font-weight: 600; background: none; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); cursor: pointer;
  }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--fog); font-size: 17px; }
  .nav .btn { margin-top: 16px; min-height: 48px; }

  .hero-grid { grid-template-columns: 1fr; }
  .wheel-wrap { max-width: 440px; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .engage { grid-template-columns: 1fr; }
  .engage-item + .engage-item { border-left: 0; border-top: 2px solid var(--ink); }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-grid h2 { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .service-list { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; gap: 14px; }
  .work-stat, .work-body { grid-column: 1; grid-row: auto; }
  .seg text { font-size: 17px; }
  .wheel-center { width: 46%; height: 46%; }
  .wc-desc { font-size: 12.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
