/* ═══════════════════════════════════════════════════════════
   HAIRSPRING — Nordic Minimal
   Palette: Black · White · Grey — no accent colour
   Type: Syne (display) · Instrument Sans (body)
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --dark:    #111110;
  --cream:   #F6F4F1;
  --text:    #111110;

  --muted-l: rgba(17, 17, 16, 0.42);
  --muted-d: rgba(246, 244, 241, 0.42);
  --rule-l:  rgba(17, 17, 16, 0.11);
  --rule-d:  rgba(246, 244, 241, 0.09);
  --line-l:  rgba(17, 17, 16, 0.22);
  --line-d:  rgba(246, 244, 241, 0.22);

  --f-disp:  'Syne', system-ui, sans-serif;
  --f-body:  'Instrument Sans', system-ui, sans-serif;

  --max-w:   720px;
  --pad-h:   clamp(24px, 6vw, 64px);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-weight: 300;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Fixed header ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 30px var(--pad-h);
  pointer-events: none;
  mix-blend-mode: difference;
}

.wordmark {
  font-family: var(--f-disp);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  animation: fadeIn 1s 0.8s ease forwards;
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--dark);
  display: flex;
  align-items: center;
  padding: 130px var(--pad-h) 90px;
  overflow: hidden;
}

/* ── CSS Watch Mechanism (monochrome) ───────────────────────── */
.mechanism {
  position: absolute;
  right: clamp(-60px, -2vw, 0px);
  top: 50%;
  transform: translateY(-50%);
  width: min(58vw, 560px);
  height: min(58vw, 560px);
  pointer-events: none;
  user-select: none;
}

.ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.r-outer {
  width: 100%; height: 100%;
  border: 1px solid rgba(246, 244, 241, 0.12);
  animation: spinCW 100s linear infinite;
}

.r-tick-60 {
  width: 100%; height: 100%;
  background: repeating-conic-gradient(
    rgba(246, 244, 241, 0.28) 0deg 0.38deg,
    transparent 0.38deg 6deg
  );
  -webkit-mask-image: radial-gradient(transparent 87%, #000 89.5%);
          mask-image: radial-gradient(transparent 87%, #000 89.5%);
  animation: spinCCW 120s linear infinite;
}

.r-tick-12 {
  width: 100%; height: 100%;
  background: repeating-conic-gradient(
    rgba(246, 244, 241, 0.55) 0deg 0.7deg,
    transparent 0.7deg 30deg
  );
  -webkit-mask-image: radial-gradient(transparent 84%, #000 87%);
          mask-image: radial-gradient(transparent 84%, #000 87%);
  animation: spinCW 160s linear infinite;
}

.r-mid {
  width: 72%; height: 72%;
  border: 1px solid rgba(246, 244, 241, 0.14);
  animation: spinCCW 55s linear infinite;
}

.r-inner {
  width: 46%; height: 46%;
  border: 1px dashed rgba(246, 244, 241, 0.16);
  animation: spinCW 22s linear infinite;
}

.r-core {
  width: 18%; height: 18%;
  border: 1px solid rgba(246, 244, 241, 0.2);
  animation: spinCCW 10s linear infinite;
}

.mech-centre {
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(246, 244, 241, 0.7);
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes spinCW  { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinCCW { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0.3; }
}

/* ── Hero content ───────────────────────────────────────────── */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--f-body);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 244, 241, 0.45);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-tagline {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(3.5rem, 11.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.06em;
  margin-bottom: 3rem;
}

.tl-1 {
  opacity: 0;
  animation: fadeUp 1s 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tl-2 {
  opacity: 0;
  animation: fadeUp 1s 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 3rem;
  opacity: 0;
  animation: fadeUp 1s 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-sub {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted-d);
  letter-spacing: 0.01em;
  max-width: 26ch;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  border: 1px solid rgba(246, 244, 241, 0.22);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.cta:hover {
  border-color: rgba(246, 244, 241, 0.7);
  background: rgba(246, 244, 241, 0.05);
}

.cta-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.cta:hover .cta-arrow { transform: translateX(5px); }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: var(--pad-h);
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(246, 244, 241, 0.4), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(0.6); transform-origin: top; }
}

/* ══════════════════════════════════════════════════════════════
   SHARED SECTION ELEMENTS
   ══════════════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 108px) var(--pad-h);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: none; }

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 52px;
}

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}

.hairline {
  display: block;
  flex: 1;
  height: 1px;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT (light)
   ══════════════════════════════════════════════════════════════ */
.about {
  background: var(--cream);
}

.about .eyebrow { color: var(--muted-l); }
.about .hairline { background: var(--line-l); }

.lede {
  font-family: var(--f-disp);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.75rem;
  max-width: 54ch;
  letter-spacing: -0.01em;
}

.body-copy {
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted-l);
  max-width: 50ch;
  margin-bottom: 3.5rem;
}

.mantra {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule-l);
  font-family: var(--f-disp);
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.mantra-dot { color: var(--muted-l); }

/* ══════════════════════════════════════════════════════════════
   SERVICES (dark)
   ══════════════════════════════════════════════════════════════ */
.dark {
  background: var(--dark);
  color: var(--cream);
}

.dark .eyebrow { color: var(--muted-d); }
.dark .hairline { background: var(--line-d); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.service {
  padding: 34px 0;
  border-bottom: 1px solid var(--rule-d);
}

.service:first-child { border-top: 1px solid var(--rule-d); }

.s-num {
  display: block;
  font-family: var(--f-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted-d);
  margin-bottom: 14px;
}

.s-title {
  font-family: var(--f-disp);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 10px;
}

.s-desc {
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted-d);
  max-width: 36ch;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT (light)
   ══════════════════════════════════════════════════════════════ */
.contact {
  background: var(--cream);
}

.contact .eyebrow { color: var(--muted-l); }
.contact .hairline { background: var(--line-l); }

.contact-heading {
  font-family: var(--f-disp);
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.contact-body {
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted-l);
  margin-bottom: 3rem;
  max-width: 36ch;
}

.email-link {
  display: inline-block;
  font-family: var(--f-disp);
  font-size: clamp(1rem, 3.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-l);
  padding-bottom: 4px;
  transition: opacity 0.22s ease;
}

.email-link:hover { opacity: 0.45; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  padding: 36px var(--pad-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule-d);
}

.footer-mark {
  font-family: var(--f-disp);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(246, 244, 241, 0.28);
}

.footer-copy {
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(246, 244, 241, 0.18);
}

/* ══════════════════════════════════════════════════════════════
   DESKTOP — 2×2 SERVICE GRID
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
  }

  .service:nth-child(2) { border-top: 1px solid var(--rule-d); }
  .service:nth-child(3),
  .service:nth-child(4) { border-bottom: none; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 580px) {
  .mechanism {
    right: -25%;
    width: 85vw;
    height: 85vw;
    opacity: 0.5;
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .r-outer, .r-tick-60, .r-tick-12,
  .r-mid, .r-inner, .r-core,
  .mech-centre, .scroll-line { animation: none; }

  .wordmark, .hero-eyebrow,
  .tl-1, .tl-2, .hero-foot { animation: none; opacity: 1; transform: none; }

  .reveal { opacity: 1; transform: none; transition: none; }
}
