/* Wizardy Technologies — implemented from "Wizardy Website.dc.html" */

/* Schibsted Grotesk, self-hosted variable font (weights 400–700) */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/schibsted-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/schibsted-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: oklch(0.98 0.004 240);
  --ink: oklch(0.24 0.02 250);
  --ink-muted: oklch(0.45 0.02 250);
  --ink-faint: oklch(0.55 0.02 250);
  --accent: oklch(0.55 0.09 240);
  --accent-strong: oklch(0.45 0.09 240);
  --glacier: oklch(0.72 0.09 230);
  --glacier-tint: oklch(0.9 0.03 232);
  --glacier-ring: oklch(0.85 0.03 235);
  --slate: oklch(0.35 0.03 250);
  --slate-ink: oklch(0.2 0.02 250);
  --line: oklch(0.9 0.01 240);
  --font: 'Schibsted Grotesk', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease, opacity 150ms ease;
}
a:hover { color: var(--accent-strong); }

.page {
  max-width: 1200px;
  margin: 0 auto;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 64px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  position: relative;
  padding-left: 38px; /* logo width + gap; reserved so the cursor animation never shifts layout */
  font: 600 18px/28px var(--font);
  letter-spacing: -0.01em;
}

.wordmark-logo {
  position: absolute;
  left: 0;
  top: 50%;
  border-radius: 6px;
  /* rotate() after translate() spins the mark around its own center,
     so the return reads as a square rolling back to its start */
  transform: translate(var(--cursor-x, 0px), -50%) rotate(var(--cursor-rot, 0deg));
}

.wordmark-return .wordmark-logo {
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.wordmark-text .char-hidden {
  visibility: hidden;
}
.wordmark-dot { color: var(--glacier); }

.nav-links {
  display: flex;
  gap: 36px;
  font: 500 14px var(--font);
}
.nav-link { color: var(--ink-muted); }
.nav-link:hover { color: var(--ink); }
.nav-link-accent { color: var(--accent); }
.nav-link-accent:hover { color: var(--accent-strong); }

/* Hero */
.hero {
  padding: 110px 64px 90px;
  position: relative;
  overflow: hidden;
}

.hero-shape { position: absolute; border-radius: 50%; }
.hero-shape-ring {
  right: -80px;
  top: 40px;
  width: 340px;
  height: 340px;
  border: 1px solid var(--glacier-ring);
}
.hero-shape-disc {
  right: 60px;
  top: 180px;
  width: 120px;
  height: 120px;
  background: var(--glacier-tint);
}

.eyebrow {
  font: 500 13px var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow-section { margin-bottom: 40px; }

.hero-title {
  font: 600 58px/1.1 var(--font);
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  max-width: 640px;
}

.hero-lede {
  font: 400 19px/1.6 var(--font);
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 0 40px;
}

/* Buttons */
.button {
  display: inline-block;
  font: 500 16px var(--font);
  padding: 16px 32px;
  border-radius: 6px;
}
.button-slate {
  background: var(--slate);
  color: var(--bg);
}
.button-slate:hover { opacity: 0.9; color: var(--bg); }
.button-glacier {
  background: var(--glacier);
  color: var(--slate-ink);
}
.button-glacier:hover { opacity: 0.9; color: var(--slate-ink); }

/* Expertise */
.expertise {
  padding: 80px 64px;
  border-top: 1px solid var(--line);
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.expertise-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.expertise-icon {
  width: 36px;
  height: 36px;
  background: var(--glacier-tint);
}
.expertise-icon-square { border-radius: 8px; }
.expertise-icon-circle { border-radius: 50%; }
.expertise-icon-diamond {
  transform: rotate(45deg);
  margin-left: 4px;
}

.expertise-title { font: 600 20px var(--font); }

.expertise-body {
  font: 400 15px/1.6 var(--font);
  color: var(--ink-muted);
}

/* Contact band (slate variant) */
.contact {
  padding: 90px 64px;
  background: var(--slate);
  color: var(--bg);
  text-align: center;
}

.contact-title {
  font: 600 34px/1.3 var(--font);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 64px;
  font: 400 13px var(--font);
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--ink-faint); }
.footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 44px; }
}

@media (max-width: 640px) {
  .nav, .hero, .expertise, .contact, .footer { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 72px; padding-bottom: 64px; }
  .hero-title { font-size: 36px; }
  .contact-title { font-size: 28px; }
  .footer { flex-direction: column; gap: 8px; }
}
