:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --ink: #222222;
  --muted: #4a4a4a;
  --accent: #003c65;
  --accent-dark: #031a2d;
  --accent-soft: #e6eef5;
  --border: #dde3e9;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(3, 26, 45, 0.08);
  --shadow-sm: 0 4px 14px rgba(3, 26, 45, 0.06);
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-head: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-ui: "Quicksand", "Segoe UI", Helvetica, Arial, sans-serif;
  --radar-grid: #9fb0bf;
  --radar-label: #222222;
  --radar-shape: #003c65;
}

* { box-sizing: border-box; }

h1, h2, h3, h4, h5, h6 { font-weight: 400; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  font-family: var(--font-ui);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--accent); }

.lang-toggle {
  flex-shrink: 0;
  cursor: pointer;
  font-family: var(--font-ui);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background: var(--accent-dark);
  overflow: hidden;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slides { z-index: 0; }

.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 35s infinite;
}

.hero-slide--lead {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: heroFade 35s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }
.hero-slide:nth-child(6) { animation-delay: 25s; }
.hero-slide:nth-child(7) { animation-delay: 30s; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(3, 26, 45, 0.78), rgba(3, 26, 45, 0.55));
}

.hero .container {
  position: relative;
  z-index: 2;
}

@keyframes heroFade {
  0% { opacity: 0; }
  2.86% { opacity: 1; }
  14.29% { opacity: 1; }
  17.14% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 300;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.headline {
  font-size: 1.25rem;
  color: var(--accent);
  margin: 0 0 6px;
  font-weight: 600;
}

.location {
  color: var(--muted);
  margin: 0 0 28px;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Post card links */
.card.post {
  text-decoration: none;
  color: inherit;
}

.card.post:hover {
  border-color: var(--accent);
}

.card.post:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section--navy { background: var(--accent); }
.section--soft { background: var(--accent-soft); }
.section--light { background: var(--bg); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 300;
  margin: 0 0 24px;
  letter-spacing: -0.3px;
}

.lead {
  font-size: 1.15rem;
  max-width: 720px;
  color: var(--ink);
  margin: 0;
}

.article-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.about-photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, outline-color 0.18s ease;
}

.about-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 36px rgba(3, 26, 45, 0.14);
  outline-color: var(--accent);
}

/* Skills */
.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.skill-list li {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* Grid + cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.grid-posts > .card.post:first-child:last-child { grid-column: 1 / -1; }

.post-tag {
  color: var(--accent) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px !important;
}

/* Contact */
.contact-intro {
  margin: 0 0 24px;
  color: var(--muted);
}

.contact-intro a {
  color: var(--accent);
}

.contact-intro a:hover {
  color: var(--accent-dark);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Footer */
.site-footer {
  background: var(--accent-dark);
  padding: 28px 0;
  color: #cfe0ee;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner p { margin: 0; }

/* Mentality mapping */
.mentality-state[hidden] { display: none; }

.mentality-intro-text {
  max-width: 720px;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 20px;
}

.mentality-progress {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mentality-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.mentality-progress-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
}

.mentality-question {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin: 0 0 24px;
}

.mentality-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}

.mentality-option {
  cursor: pointer;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 1rem;
  color: var(--ink);
  font-family: var(--font-ui);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.mentality-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.mentality-option-value {
  display: inline-block;
  min-width: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-right: 12px;
}

.mentality-radar {
  max-width: 400px;
  margin: 0 auto 28px;
}

.mentality-radar svg {
  width: 100%;
  height: auto;
  display: block;
}

.mentality-radar__svg,
.mentality-radar__svg text {
  font-family: var(--font-ui);
}

.mentality-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.mentality-column h3,
.mentality-profile h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 0 0 14px;
}

.mentality-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mentality-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.mentality-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
}

.mentality-item-body strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.mentality-item-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.mentality-profile {
  margin-bottom: 24px;
}

.mentality-profile-row {
  display: grid;
  grid-template-columns: 200px 1fr 48px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mentality-profile-label {
  font-size: 0.9rem;
  color: var(--ink);
}

.mentality-profile-track {
  height: 10px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.mentality-profile-fill {
  height: 100%;
  border-radius: 999px;
}

.mentality-profile-pct {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

.mentality-disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 20px;
}

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

/* Mentality demo (preset example profiles) */
.mentality-demo {
  margin: 0 0 28px;
}

.mentality-demo-hint {
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.mentality-demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.mentality-demo-chip {
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mentality-demo-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mentality-demo-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.mentality-demo-grid {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 24px;
  align-items: start;
}

.mentality-demo-radar svg {
  width: 100%;
  height: auto;
  display: block;
}

.mentality-demo-cols {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mentality-demo-col h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.mentality-demo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.95rem;
}

.mentality-demo-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mentality-demo-name {
  flex: 1;
  color: var(--ink);
}

.mentality-demo-pct {
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Booking (Cal.com) */
.booking {
  margin: 32px 0 28px;
}

.booking-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin: 0 0 16px;
}

.booking-calendar {
  width: 100%;
  min-height: 640px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero-card { padding: 28px; }
  .panel { padding: 28px; }
  .about-grid { grid-template-columns: 1fr; }
  .mentality-columns { grid-template-columns: 1fr; }
  .mentality-demo-grid { grid-template-columns: 1fr; }
  .mentality-profile-row { grid-template-columns: 140px 1fr 44px; }
  .booking-calendar { min-height: 560px; }
}


/* Mobile hamburger navigation */
.nav-toggle {
  display: none;
}

html.js .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

html.js .nav-toggle:hover,
html.js .nav-toggle:focus {
  border-color: var(--accent);
  outline: none;
}

html.js .nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

html.js .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

html.js .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

html.js .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 860px) {
  html.js .site-header {
    z-index: 50;
  }

  html.js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 40;
  }

  html.js .nav.is-open {
    display: flex;
  }

  html.js .nav a {
    display: block;
    padding: 14px 24px;
    min-height: 44px;
    font-size: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
  }

  html.js .nav a:hover,
  html.js .nav a:focus {
    background: var(--accent-soft);
    color: var(--accent);
    outline: none;
  }
}

/* Side quotes (decorative, parallax)
   The quotes are rendered by js/main.js, which also adds .has-quotes to the
   asides. Without that class the rails stay hidden, so visitors without JS
   never see empty white panels. */
.side-quotes {
  position: fixed; top: 0; bottom: 0;
  width: 200px;
  display: none; align-items: center;
  padding: 0 12px;
  pointer-events: none; z-index: 5;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}

.side-quotes--left  { left: 0; }
.side-quotes--right { right: 0; }

.side-quotes__track {
  display: flex; flex-direction: column;
  height: 2000px;
  justify-content: space-between;
  will-change: transform;
}

.side-quote {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(3, 26, 45, 0.10);
}

@supports not (backdrop-filter: blur(1px)) {
  .side-quote { background: rgba(255, 255, 255, 0.94); }
}

.side-quote blockquote {
  margin: 0; font-style: italic;
  font-family: var(--font-head); color: var(--accent);
  font-size: 0.82rem; line-height: 1.35;
}
.side-quote figcaption {
  margin-top: 5px; font-family: var(--font-ui);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}

/* Rail visibility, in two steps so the quotes never overlap the content
   column:
      1200-1399px: left rail only, 180px wide. 1200 - 860 - 48 (container
      padding) = 292px of free width, so 180px fits on the outside with room
      to spare.
      1400px+:     both rails, 190px wide. 1400 - 900 - 48 = 452px of free
      width, so 190px per side fits. */
@media (min-width: 1200px) {
  .side-quotes.has-quotes {
    display: flex;
    width: 180px;
  }
  .side-quotes--right.has-quotes { display: none; }
  .container { max-width: 860px; }
}

@media (min-width: 1400px) {
  .side-quotes.has-quotes { width: 190px; }
  .side-quotes--right.has-quotes { display: flex; }
  .container { max-width: 900px; }
}
