/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --accent: #38BEEF;
  --max-w: 880px;
  --pad-x: clamp(20px, 5vw, 48px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

body {
  font-family: 'Mada', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 320ms ease, color 320ms ease;
}

.theme-black {
  --bg: #000;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.15);
  --card: rgba(255, 255, 255, 0.04);
}
.theme-white {
  --bg: #ffffff;
  --fg: #000;
  --muted: rgba(0, 0, 0, 0.65);
  --line: rgba(0, 0, 0, 0.12);
  --card: rgba(0, 0, 0, 0.03);
}

body { background: var(--bg); color: var(--fg); }

a { color: var(--accent); text-decoration: none; transition: color 200ms ease; }
a:hover, a:focus-visible { color: var(--fg); }

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 900; }
p { margin: 0; }

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ===== Topbar (lang + theme toggle) ===== */
.topbar {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.topbar button {
  font-family: inherit;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.topbar button:hover,
.topbar button:focus-visible { color: var(--fg); border-color: var(--fg); outline: none; }
.topbar .sep { opacity: 0.4; margin: 0 4px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--pad-x) 100px;
  text-align: center;
}
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scroll-cue-bounce 2.4s ease-in-out infinite;
  transition: color 200ms ease, background 200ms ease;
}
.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--fg);
  background: var(--card);
  outline: none;
}
@keyframes scroll-cue-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}
.hero-inner {
  width: 100%;
  max-width: 640px;
}
.logo { display: flex; justify-content: center; margin-bottom: 28px; }
.logo-svg {
  width: 160px;
  height: 160px;
  display: block;
}
.logo-circle {
  fill: var(--fg);
  cursor: pointer;
  transition: fill 320ms ease, opacity 320ms ease;
}
.logo-circle.kept {
  fill: var(--accent);
  opacity: 1 !important;
}

.wordmark {
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1;
}
.tagline {
  font-size: clamp(18px, 2.4vw, 21px);
  font-weight: 300;
  color: var(--muted);
  margin: 10px auto 30px;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}
.availability {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
}

/* ===== CTAs ===== */
.cta.primary {
  display: inline-block;
  padding: 14px 26px;
  background: var(--accent);
  color: #001a24;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: transform 200ms ease, filter 200ms ease, background 200ms ease;
}
.cta.primary:hover,
.cta.primary:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #001a24;
}
.cta-secondary {
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.cta-secondary:hover { border-bottom-color: var(--accent); }

/* ===== Sections ===== */
section { padding: 80px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 900;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.services-grid article h3 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--accent);
}
.services-grid article p {
  font-size: 16.5px;
  color: var(--muted);
}

/* ===== Track record ===== */
.track-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.track-grid article {
  padding: 24px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 200ms ease, background 200ms ease;
}
.track-grid article:hover { border-color: var(--accent); }
.track-grid h3 {
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 6px;
}
.track-grid .role {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.track-grid p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 12px;
}
.track-grid .link {
  font-size: 15px;
  font-weight: 500;
}
.track-tail {
  font-size: 15.5px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  max-width: 680px;
  margin: 0 auto;
}

/* ===== How I work ===== */
.how-body {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.how-body p {
  font-size: 19px;
  color: var(--fg);
  font-weight: 300;
  line-height: 1.65;
}

/* ===== Contact ===== */
.contact-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  background: var(--card);
  flex-shrink: 0;
}
.contact-body { flex: 1 1 320px; }
.contact-body h2 { margin-bottom: 10px; }
.contact-body p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 24px;
  max-width: 540px;
}
.contact-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cta-or { color: var(--muted); font-size: 15px; }

/* ===== Footer ===== */
footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.legal strong { font-weight: 500; color: var(--fg); }
.copyright a { color: var(--muted); border-bottom: 1px solid transparent; }
.copyright a:hover { color: var(--fg); border-bottom-color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; gap: 22px; }
  section { padding: 60px 0; }
  .hero { padding-top: 100px; }
  .contact-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .headshot { width: 96px; height: 96px; }
  .topbar { top: 12px; right: 12px; }
  .topbar button { font-size: 11px; padding: 5px 10px; }
}

@media (min-width: 720px) {
  .track-grid { grid-template-columns: repeat(3, 1fr); }
  .track-grid article { padding: 22px 22px; }
  .track-grid p { font-size: 14.5px; }
}

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