/* Overclock — site styles
   Mobile layout first; desktop layout from 900px up.
   Brand colours live in the variables below. */

:root {
  --teal: #047A6F;
  --ink: #13302C;
  --muted: #4A5F5B;
  --soft: #6C8580;
  --page: #FAFCFB;
  --mint: #E6F2EF;
  --line: #DCE9E6;
  --line-2: #CFE2DE;
  --dash: #9CC7BF;
  --lime: #D8F0C8;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; color: var(--teal); font-weight: 500; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .24em; color: var(--teal); }

/* ---------- Logo mark (built by script.js) ---------- */
.mark { display: inline-block; flex: none; line-height: 0; }
.mark svg { display: block; overflow: visible; }
.mark g { transform-box: view-box; transform-origin: 50px 50px; }
.mark .r1 { animation: ocSpin 90s linear infinite; }
.mark .r2 { animation: ocSpinRev 140s linear infinite; }
@keyframes ocSpin { to { transform: rotate(360deg); } }
@keyframes ocSpinRev { to { transform: rotate(-360deg); } }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-word { font-size: 20px; font-weight: 300; color: var(--teal); }
.nav-side { display: none; }
.menu-btn {
  font: 600 14px Manrope, sans-serif; color: var(--ink);
  background: none; border: 0; padding: 12px 4px; min-width: 44px; text-align: right; cursor: pointer;
}
.mobile-menu { display: flex; flex-direction: column; padding: 8px 24px 32px; border-bottom: 1px solid var(--line-2); }
.mobile-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--line);
  font-size: 26px; font-weight: 300; color: var(--ink);
}
.mobile-menu a.active { color: var(--teal); }
.mobile-menu .arrow { font-size: 16px; color: var(--teal); }

/* ---------- Hero ---------- */
.hero-stage { display: flex; flex-direction: column; align-items: center; }
.hero-art {
  position: relative; width: 100%; height: 400px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.spiral {
  position: absolute; left: 50%; top: 50%; width: 380px; height: 380px; max-width: none;
  translate: -50% -50%;
  animation: ocSpin 120s linear infinite;
}
.hero-word {
  position: relative; font-size: 28px; font-weight: 300; color: var(--teal);
  background: var(--page); padding: 6px 14px; border-radius: 999px; box-shadow: 0 0 24px 18px var(--page);
}
.orbit { display: none; }
.hero-tag { padding: 8px 24px 0; font-size: 28px; line-height: 1.2; font-weight: 300; text-align: center; }
.hero-tag strong { color: var(--teal); font-weight: 600; }
.hero-sie { padding: 18px 24px 48px; font-size: 11px; font-weight: 600; letter-spacing: .24em; color: var(--teal); text-align: center; }

/* ---------- About ---------- */
.about { background: #fff; padding: 48px 24px; }
.about-intro { display: flex; flex-direction: column; gap: 28px; }
.about-mark { display: none; }
.about-lead { font-size: 22px; line-height: 1.4; font-weight: 300; text-wrap: pretty; }
.pillars { margin-top: 28px; display: flex; flex-direction: column; gap: 28px; }
.pillar { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.num {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--teal);
}
.pillar h3 { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--teal); }
.pillar p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Services ---------- */
.services { background: #fff; padding: 40px 24px; }
.services-head .eyebrow { margin-bottom: 16px; }
.services-head h2, .services-head .hint { display: none; }
.svc { border-top: 1px solid var(--line-2); }
.svc-row {
  width: 100%; display: grid; grid-template-columns: 36px 1fr 36px; align-items: center;
  padding: 18px 0; min-height: 44px; background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.svc-n { font-size: 13px; font-weight: 600; color: var(--teal); }
.svc-title { font-size: 18px; font-weight: 500; }
.svc-sign {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--teal); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.svc-sign::before { content: "+"; }
.svc-row[aria-expanded="true"] .svc-sign::before { content: "–"; }
.svc-panel { padding: 0 0 22px 36px; display: flex; flex-direction: column; gap: 12px; }
.svc-panel > p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.eng-title { display: none; }
.engagements ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.engagements li { font-size: 12px; font-weight: 600; color: var(--teal); background: var(--mint); padding: 6px 10px; border-radius: 999px; }

/* ---------- Team ---------- */
.team { background: var(--mint); padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.team-head .eyebrow { display: none; }
.team-lead { font-size: 22px; line-height: 1.35; font-weight: 300; }
.br-desk { display: none; }
.people { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; }
.people li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.people img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: top; }
.people strong { font-size: 14px; font-weight: 700; }
.no-photo {
  width: 104px; height: 104px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 300; color: var(--teal);
}
.people li > span:last-child { font-size: 12px; color: var(--muted); }

/* ---------- Work ---------- */
.work { background: #fff; padding: 48px 24px; }
.work-head h2 { display: none; }
.cases { margin-top: 20px; display: flex; flex-direction: column; gap: 20px; }
.case-art {
  aspect-ratio: 4 / 3; border-radius: 6px; border: 1px dashed var(--dash);
  display: flex; align-items: center; justify-content: center;
}
.case-art .case-tag, .case-art h3 { display: none; }
.soon { font: 400 12px 'Fira Mono', monospace; color: var(--soft); }
.case-meta { margin-top: 10px; }
a.case { display: block; color: inherit; }
a.case:hover h3 { color: var(--teal); }
.case-art { overflow: hidden; }
.case-art img { width: 100%; height: 100%; object-fit: cover; }
.has-image .case-art { border-style: solid; border-color: var(--line); }
.case-tag { font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--teal); }
.case-meta h3 { margin-top: 6px; font-size: 18px; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal); color: #fff; padding: 48px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
body[data-page="contact"] { min-height: 100vh; display: flex; flex-direction: column; }
body[data-page="contact"] .site-footer { flex: 1 0 auto; justify-content: center; padding: 120px 24px 64px; }
.foot-mark svg { width: 44px; height: 44px; }
.foot-line, .foot-bar { display: none; }
.foot-email { font-size: 28px; font-weight: 300; color: #fff; overflow-wrap: anywhere; }
.foot-email:hover { color: var(--lime); }

/* =====================================================
   Desktop (900px and wider)
   ===================================================== */
@media (min-width: 900px) {
  .site-header {
    display: grid; grid-template-columns: 1fr auto 1fr;
    width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px 56px;
  }
  .menu-btn, .mobile-menu { display: none !important; }
  .nav-side { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; }
  .nav-right { justify-content: flex-end; }
  .nav-side a[data-nav] { color: var(--ink); padding: 6px 0; border-bottom: 1.5px solid transparent; }
  .nav-side a[data-nav]:hover, .nav-side a.active { color: var(--teal); }
  .nav-side a.active { border-bottom-color: var(--teal); }
  .btn { font-weight: 600; color: #fff; background: var(--teal); padding: 10px 18px; border-radius: 999px; }
  .btn:hover { color: #fff; background: #035f57; }
  .brand-word { font-size: 22px; }

  /* Hero: a 1280×760 stage that scales down with the window.
     --u is one design pixel. */
  .hero-inner { max-width: 1280px; margin: 0 auto; container-type: inline-size; }
  .hero-stage { --u: calc(100cqw / 1280); position: relative; display: block; aspect-ratio: 1280 / 760; }
  .hero-art { position: absolute; inset: 0; height: auto; overflow: visible; }
  .spiral { width: calc(720 * var(--u)); height: calc(720 * var(--u)); }
  .hero-word { font-size: calc(44 * var(--u)); letter-spacing: -.01em; background: none; box-shadow: none; padding: 0; }
  .orbit {
    position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
    display: flex; align-items: center; gap: calc(14 * var(--u));
  }
  .orbit.rev { flex-direction: row-reverse; }
  .orbit .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(4,122,111,.12); transition: box-shadow .2s; }
  .orbit .lbl { font-size: max(13px, calc(18 * var(--u))); font-weight: 600; color: var(--ink); background: var(--page); padding: 4px 6px; }
  .orbit:hover .dot { box-shadow: 0 0 0 10px rgba(4,122,111,.18); }
  .orbit:hover .lbl { color: var(--teal); }
  .hero-tag {
    position: absolute; left: calc(56 * var(--u)); bottom: calc(48 * var(--u)); max-width: calc(380 * var(--u));
    padding: 0; font-size: calc(30 * var(--u)); text-align: left;
  }
  .hero-sie { position: absolute; right: calc(56 * var(--u)); bottom: calc(52 * var(--u)); padding: 0; font-size: 12px; letter-spacing: .28em; }

  /* About */
  .about { padding: 0; }
  .about-intro { padding: 112px 56px; align-items: center; text-align: center; }
  .about-mark { display: inline-block; }
  .about-eyebrow { display: none; }
  .about-lead { max-width: 900px; font-size: 34px; line-height: 1.35; }
  .pillars {
    margin: 0; gap: 0; display: grid; grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
  }
  .pillar {
    grid-template-columns: 64px 1fr; gap: 20px; padding: 48px 56px;
    border-top: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  }
  .pillar .num { width: 48px; height: 48px; font-size: 14px; }
  .pillar h3 { font-size: 15px; letter-spacing: .16em; }
  .pillar p { margin-top: 10px; font-size: 17px; }

  /* Services */
  .services { background: var(--page); padding: 112px 56px; }
  .services-inner { max-width: 1168px; margin: 0 auto; display: grid; grid-template-columns: 360px 1fr; gap: 64px; }
  .services-head { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
  .services-head .eyebrow { margin: 0; font-size: 12px; letter-spacing: .28em; }
  .services-head h2 { display: block; font-size: 48px; line-height: 1.1; font-weight: 300; }
  .services-head .hint { display: block; font-size: 15px; color: var(--muted); }
  .svc-list { border-top: 1px solid var(--ink); }
  .svc { border-top: 0; border-bottom: 1px solid var(--line-2); }
  .svc-row { grid-template-columns: 64px 1fr 40px; padding: 28px 0; }
  .svc-n { font-size: 15px; }
  .svc-title { font-size: 30px; font-weight: 400; }
  .svc-row:hover .svc-title { color: var(--teal); }
  .svc-sign { width: 36px; height: 36px; font-size: 20px; }
  .svc-panel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; padding: 0 0 36px 64px; }
  .svc-panel > p { padding-right: 40px; font-size: 17px; line-height: 1.65; }
  .engagements { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px; background: var(--mint); border-radius: 6px; align-self: start; }
  .eng-title { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--teal); }
  .engagements ul { flex-direction: column; gap: 10px; }
  .engagements li { display: flex; gap: 10px; align-items: center; background: none; padding: 0; border-radius: 0; font-size: 15px; font-weight: 400; color: var(--ink); }
  .engagements li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }

  /* Team */
  .team { padding: 104px 56px; gap: 56px; }
  .team-head { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .team-head .eyebrow { display: block; font-size: 12px; letter-spacing: .28em; }
  .team-lead { font-size: 36px; line-height: 1.3; }
  .br-desk { display: inline; }
  .people { max-width: 1168px; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 28px; }
  .people li { width: 140px; gap: 12px; }
  .ring { padding: 5px; border-radius: 50%; border: 1.5px dashed var(--teal); }
  .people img, .no-photo { width: 120px; height: 120px; }
  .people strong { font-size: 15px; }
  .people li > span:last-child { font-size: 13px; margin-top: -8px; }

  /* Work */
  .work { padding: 104px 56px; }
  .work-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .work-head .eyebrow { font-size: 12px; letter-spacing: .28em; }
  .work-head h2 { display: block; font-size: 48px; font-weight: 300; }
  .cases { max-width: 1168px; margin: 56px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .case-art {
    aspect-ratio: 1; border-radius: 50%; flex-direction: column; gap: 10px; padding: 40px; text-align: center;
  }
  .case-art .case-tag, .case-art h3 { display: block; }
  .case-art .case-tag { font-size: 12px; }
  .case-art h3 { font-size: 22px; font-weight: 500; max-width: 240px; }
  .case-meta { display: none; }
  .has-image .case-art { padding: 0; }
  .has-image .case-meta { display: block; margin-top: 18px; text-align: center; }
  .has-image .case-meta .case-tag { font-size: 12px; }
  .has-image .case-meta h3 { font-size: 22px; }

  /* Footer */
  .site-footer { padding: 96px 56px 40px; gap: 28px; }
  body[data-page="contact"] .site-footer { padding: 200px 56px 40px; }
  .foot-mark svg { width: 72px; height: 72px; }
  .foot-line { display: block; font-size: 20px; font-weight: 300; }
  .foot-email { font-size: 64px; letter-spacing: -.02em; }
  .foot-bar {
    display: flex; justify-content: space-between; width: 100%; max-width: 1168px;
    margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25);
    font-size: 13px; color: var(--lime);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spiral, .mark .r1, .mark .r2 { animation: none; }
}
