/* ==========================================================================
   GridBox Solutions — sleek, monochrome, flat (no shadows/gradients/glows)
   ========================================================================== */

:root {
  --black: #000000;
  --near-black: #111113;
  --white: #ffffff;
  --grey-25: #fafafa;
  --grey-50: #f5f5f7;
  --grey-100: #e8e8ed;
  --grey-300: #d2d2d7;
  --grey-500: #86868b;
  --grey-700: #6e6e73;
  --text: #1d1d1f;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

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

ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 24px; top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover { background: var(--near-black); }

.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--grey-300);
}
.btn-ghost:hover { border-color: var(--black); }

.btn-invert {
  background: var(--white);
  color: var(--black);
}
.btn-invert:hover { background: var(--grey-50); }

.btn-small { padding: 9px 18px; font-size: 13px; }
.btn-full { width: 100%; padding: 14px 26px; font-size: 16px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--grey-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.wordmark-primary { font-weight: 700; }
.wordmark-secondary { font-weight: 400; color: var(--grey-700); }

.main-nav ul {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--black);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--black);
  width: 100%;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mobile-nav.open {
  max-height: 320px;
  border-top-color: var(--grey-100);
}
.mobile-nav ul { padding: 8px 24px 20px; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--grey-100);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 120px 0 72px;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; max-width: 780px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-700);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--grey-700);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-graphic {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}
.hero-graphic svg { width: 100%; height: 100%; }
.hero-graphic line { stroke: var(--grey-100); stroke-width: 1; }
.hero-graphic circle { fill: var(--grey-300); }

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-100);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll-left 32s linear infinite;
}
.marquee-track span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--grey-500);
  white-space: nowrap;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-tint { background: var(--grey-50); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 8px;
}
.section-sub {
  font-size: 17px;
  color: var(--grey-700);
  margin-top: 14px;
  line-height: 1.55;
}

/* ---------- Accordion ---------- */

.accordion-item {
  border-top: 1px solid var(--grey-300);
}
.accordion-item:last-child { border-bottom: 1px solid var(--grey-300); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  background: transparent;
  border: none;
  padding: 26px 4px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.accordion-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--grey-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.accordion-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--black);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s var(--ease);
}

.accordion-title {
  flex: 1;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.accordion-chevron {
  flex: none;
  width: 22px;
  height: 22px;
  transition: transform 0.3s var(--ease);
}
.accordion-chevron svg {
  width: 100%;
  height: 100%;
  stroke: var(--grey-700);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.accordion-trigger[aria-expanded="true"] .accordion-chevron { transform: rotate(180deg); }
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  background: var(--black);
  border-color: var(--black);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon svg { stroke: var(--white); }

/* Without JS the panel stays fully open (plain, accessible content list).
   Only collapse/expand once script.js confirms it can drive it. */
.js .accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 4px 30px 74px;
}
.tag-list li {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 980px;
  border: 1px solid var(--grey-300);
  color: var(--grey-700);
}

/* ---------- Why grid ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--grey-300);
  border: 1px solid var(--grey-300);
}

.why-card {
  background: var(--white);
  padding: 36px 28px;
}

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  margin-bottom: 24px;
}
.why-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 15px;
  color: var(--grey-700);
  line-height: 1.55;
}

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-step { padding-top: 20px; border-top: 1px solid var(--grey-300); }
.process-num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-500);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.process-step h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.process-step p {
  font-size: 15px;
  color: var(--grey-700);
  line-height: 1.55;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--black);
  color: var(--white);
  padding: 88px 0;
}
.cta-band-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-band h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 17px;
  color: var(--grey-300);
  margin-bottom: 32px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-list { margin-top: 32px; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--grey-300);
  font-size: 16px;
}
.contact-list li:last-child { border-bottom: 1px solid var(--grey-300); }
.contact-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey-500);
}

.contact-row-address {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.contact-row-address span:last-child {
  max-width: 420px;
  line-height: 1.5;
}
.contact-list a:hover { text-decoration: underline; }

.social-row { display: flex; gap: 12px; margin-top: 32px; }
.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--grey-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social-row a:hover { background: var(--black); border-color: var(--black); }
.social-row a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.social-row a:hover svg { stroke: var(--white); }

.footer-brand .social-row a { border-color: #333336; }
.footer-brand .social-row a:hover { background: var(--white); border-color: var(--white); }
.footer-brand .social-row a:hover svg { stroke: var(--black); }

.contact-form {
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.optional { font-weight: 400; color: var(--grey-500); }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--black);
}
.form-row textarea { resize: vertical; min-height: 96px; }

.form-note {
  font-size: 12px;
  color: var(--grey-500);
  margin-top: 14px;
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--near-black);
  color: var(--grey-300);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-brand .wordmark-footer { color: var(--white); margin-bottom: 16px; }
.footer-brand .wordmark-secondary { color: var(--grey-500); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-500);
  max-width: 260px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 12px; font-size: 14px; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #2c2c2e;
  padding: 24px 0;
}
.footer-bottom p { font-size: 13px; color: var(--grey-500); }

/* ---------- Scroll reveal ----------
   Content is visible by default so the page works with JS disabled or
   failing. The reveal-on-scroll treatment only activates once script.js
   confirms it can run it (adds .js-reveal to <html>). */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js-reveal .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 8px; }
}

@media (max-width: 640px) {
  .hero { padding: 96px 0 56px; }
  .hero-sub { font-size: 17px; }
  .section { padding: 72px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-step { padding-bottom: 28px; }
  .tag-list { padding-left: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hide-mobile { display: none; }
}
