/* Silicon.Garden — site-specific styles.
   Built on tokens/styles.css. Every value here is transcribed from the
   design handoff (design-sync/design_handoff_silicon_garden_site/README.md);
   nothing here overrides a token, it only lays the page out. */

/* ---------- base ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--sg-surface);
  color: var(--sg-text);
  font-family: var(--sg-font-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sg-link);
  text-decoration: var(--sg-link-decoration);
  text-underline-offset: 3px;
}
a:hover { color: var(--sg-text); }

h1, h2, h3 { color: inherit; margin: 0; }
h1, h2, h3, p { text-wrap: pretty; }

img, video { max-width: 100%; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contain { max-width: var(--sg-container); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  padding: 34px 72px;
  background: var(--sg-surface-headline);
  color: #17423F;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  max-width: var(--sg-container);
  margin-inline: auto;
}
.site-header__lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-header__mark { width: 30px; height: 30px; display: block; flex: none; }
.site-header__wordmark { width: 140px; height: auto; display: block; }

.contrast-toggle {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.contrast-toggle__dot {
  width: 32px; height: 32px; flex: none;
  border-radius: var(--sg-radius-pill);
  border: 2px solid currentColor;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--sg-motion-state) var(--sg-ease-standard);
}
.contrast-toggle[aria-pressed="true"] .contrast-toggle__dot {
  background: var(--sg-accent-drawn);
}

/* ---------- bands + waves ---------- */
.band { position: relative; padding-left: 72px; padding-right: 72px; }
.band--headline { background: var(--sg-surface-headline); }
.band--white { background: var(--sg-surface); }
.band--tint { background: var(--sg-surface-alt); }

.band__wave {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 90px; display: block; pointer-events: none;
}

.eyebrow { display: flex; align-items: center; gap: 16px; }
.eyebrow__mark {
  width: 68px; height: 16px; flex: none; display: block;
  background: var(--sg-accent-drawn);
  -webkit-mask: url(../assets/marks/rule-short.svg) center / contain no-repeat;
  mask: url(../assets/marks/rule-short.svg) center / contain no-repeat;
}
.eyebrow__label {
  font-family: var(--sg-font-text);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--sg-text-on-teal);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  box-sizing: border-box;
  padding: 17px 32px;
  font-size: 17px;
  font-family: var(--sg-font-text);
  font-weight: 600;
  border-radius: var(--sg-radius-control);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--sg-motion-state) var(--sg-ease-standard),
              border-color var(--sg-motion-state) var(--sg-ease-standard);
}
.btn--primary {
  background: var(--sg-accent-drawn);
  color: var(--sg-text-on-yellow);
  border: 0;
}
.btn--secondary {
  background: none;
  color: var(--sg-text-on-teal);
  border: 2px solid var(--sg-stroke-strong);
}

/* ---------- Band 1 — hero ---------- */
.band-hero { padding-top: 96px; padding-bottom: 245px; }
.band-hero .eyebrow { margin-bottom: 40px; }
.h-hero {
  font-family: var(--sg-font-display);
  font-weight: 800;
  font-size: clamp(34px, 6.11vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.034em;
  color: #FFFFFF;
  margin: 0 0 44px;
  max-width: 1120px;
}
.hero-subtitle {
  font-size: clamp(17px, 1.46vw, 21px);
  line-height: 1.62;
  color: #17423F;
  margin: 0 0 52px;
  max-width: 620px;
}
.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-actions__note { font-size: 16px; color: #17423F; }

/* ---------- Band 2 / 3 shared — sprint, mission ---------- */
.band-sprint { padding-top: 128px; padding-bottom: 297px; }
.band-mission { padding-top: 128px; padding-bottom: 297px; }
.band-sprint .eyebrow, .band-mission .eyebrow { margin-bottom: 32px; }

.h-section {
  font-family: var(--sg-font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.17vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.033em;
  margin: 0 0 40px;
  max-width: 900px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 1160px;
}
.two-col--sprint { margin-bottom: 64px; }
.two-col--mission { margin-bottom: 72px; }
.two-col p { font-size: 20px; line-height: 1.68; margin: 0; }
.two-col p.on-teal { color: var(--sg-text-on-teal); }

.venture-video {
  display: block;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  margin-bottom: 56px;
  background: var(--sg-surface-neutral);
  border-radius: var(--sg-radius-panel);
}

.btn-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.mission-close {
  font-family: var(--sg-font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.36vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--sg-text-on-teal);
  margin: 0;
  max-width: 820px;
}
.highlight-wrap { position: relative; display: inline-block; }
.highlight-wrap__text { position: relative; z-index: 1; }
.highlight-wrap__mark {
  position: absolute;
  left: -6px; right: -6px; bottom: -2px;
  height: 22px; width: auto; z-index: 0;
  background: var(--sg-accent-drawn);
  -webkit-mask: url(../assets/marks/highlight-sweep.svg) center / 100% 100% no-repeat;
  mask: url(../assets/marks/highlight-sweep.svg) center / 100% 100% no-repeat;
}

/* ---------- Band 4 — client logos ---------- */
.band-logos { padding-top: 128px; padding-bottom: 297px; }
.band-logos .eyebrow { margin-bottom: 32px; }
.h-section-sm {
  font-family: var(--sg-font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.61vw, 52px);
  line-height: 0.99;
  letter-spacing: -0.032em;
  margin: 0 0 56px;
  max-width: 880px;
}
.lead-muted {
  font-size: 17px;
  line-height: 1.6;
  color: var(--sg-text-muted);
  margin: 0 0 36px;
  max-width: 620px;
}

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px 28px;
  max-width: 1040px;
  font-size: 88px;
}
.logo-cell {
  flex: 0 0 calc((100% - 112px) / 5);
  height: 0.91em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.logo-cell img {
  width: auto;
  display: block;
  filter: grayscale(1);
  opacity: 0.8;
}

/* ---------- Band 5 — contact ---------- */
.band-contact { padding-top: 160px; padding-bottom: 349px; }
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 80px;
  align-items: center;
}
.contact-copy-col .eyebrow { margin-bottom: 34px; }
.h-contact {
  font-family: var(--sg-font-display);
  font-weight: 800;
  font-size: clamp(32px, 5.28vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.034em;
  color: #FFFFFF;
  margin: 0 0 30px;
  max-width: 700px;
}
.contact-copy {
  font-size: 20px;
  line-height: 1.62;
  color: #17423F;
  margin: 0;
  max-width: 520px;
}

.island {
  background: var(--sg-surface-raised);
  border-radius: var(--sg-radius-panel);
  padding: 44px 44px 40px;
  color: var(--sg-text);
}

/* ---------- fields ---------- */
.field { display: flex; flex-direction: column; }
.field__label {
  font-family: var(--sg-font-text);
  font-size: 15px;
  font-weight: 600;
  color: var(--sg-text);
  margin-bottom: 4px;
}
.field__helper {
  font-size: 13.5px;
  color: var(--sg-text-muted);
  margin-bottom: 8px;
}
.field__input {
  font-family: var(--sg-font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--sg-text);
  background: var(--sg-surface-raised);
  padding: 14px 15px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--sg-text-muted);
  border-radius: var(--sg-radius-control);
  width: 100%;
}
.field__input[aria-invalid="true"] {
  border: 2px solid var(--sg-error-border);
}
.field__error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sg-error);
}
.field__error svg { flex: none; margin-top: 2px; }

.contact-field { margin-bottom: 22px; }
.contact-submit { width: 100%; }
.contact-status {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sg-text-on-teal);
}
.contact-status[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer {
  padding: 72px 72px 80px;
  background: var(--sg-surface);
  color: var(--sg-text);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  max-width: var(--sg-container);
  margin-inline: auto;
}
.site-footer__lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  text-decoration: none;
}
.site-footer__mark { width: 28px; height: 28px; display: block; flex: none; }
.site-footer__wordmark { width: 130px; height: auto; display: block; }
.site-footer__tagline { font-size: 15px; color: var(--sg-text-muted); }
.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: var(--sg-text-muted);
  margin-top: 28px;
}
.site-footer__legal a {
  color: var(--sg-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- legal pages ---------- */
.band-legal-hero { padding-top: 72px; padding-bottom: 206px; }
.band-legal-hero .eyebrow { margin-bottom: 30px; }
.h-legal-title {
  font-family: var(--sg-font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.17vw, 60px);
  line-height: 0.96;
  letter-spacing: -0.033em;
  color: #FFFFFF;
  margin: 0;
  max-width: 900px;
}

.band-legal-body { padding-top: 96px; padding-bottom: 80px; }
.legal-col { max-width: var(--sg-measure); }

.legal-intro p {
  font-size: 19px;
  line-height: 1.68;
  color: var(--sg-text);
  margin: 0 0 1.4em;
}

.legal-section { margin-top: 56px; }
.legal-section__head {
  font-family: var(--sg-font-display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.026em;
  color: var(--sg-text);
  margin: 0 0 20px;
}

.legal-p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--sg-text-muted);
  margin: 0 0 1.5em;
}

.legal-address, .legal-links { font-size: 17px; line-height: 1.7; margin-bottom: 18px; }
.legal-address div, .legal-links div { margin: 0; }
.legal-body2 { font-size: 17px; line-height: 1.7; color: var(--sg-text-muted); margin-bottom: 24px; }
.legal-role { font-size: 17px; line-height: 1.7; color: var(--sg-text-muted); }
.legal-person { font-size: 17px; line-height: 1.7; margin-bottom: 8px; }

.legal-items {
  display: grid;
  gap: 12px;
  margin: 0 0 1.5em;
  padding: 0;
  list-style: none;
}
.legal-items li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--sg-text-muted);
}
.legal-items li::before { content: "\00B7"; }
.legal-items li span, .legal-numbered li span { text-wrap: pretty; }

.legal-numbered {
  counter-reset: legalnum;
  display: grid;
  gap: 16px;
  margin: 0 0 1.5em;
  padding: 0;
  list-style: none;
}
.legal-numbered li {
  counter-increment: legalnum;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--sg-text-muted);
}
.legal-numbered li::before {
  content: counter(legalnum) ".";
  font-weight: 600;
  color: var(--sg-text-on-teal);
  font-variant-numeric: tabular-nums;
}

.legal-refs { font-size: 17px; line-height: 1.7; color: var(--sg-text-muted); margin-bottom: 14px; }
