/* Robèrt Ratgers — Figma redesign (UTF-8) */

:root {
  --bg: #101a20;
  --bg-soft: #12212a;
  --surface: #16252e;
  --line: #2b3c46;
  --line-strong: #395361;
  --text: #f4f7f8;
  --muted: #aabdc8;
  --accent: #65c6f1;
  --accent-ink: #101a20;
  --panel-light: #255468;
  --panel-light-ink: #f2f8fa;
  --panel-light-muted: #9bc4d4;
  --panel-dark: #203d4c;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Manrope", system-ui, sans-serif;
  --container: 1280px;
  --radius-pill: 999px;
  --radius-card: 14px;
  --radius-panel: 20px;
  --header-h: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(101, 198, 241, 0.08), transparent 60%), var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

a:hover {
  color: color-mix(in srgb, var(--accent) 80%, white);
}

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 50px;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, white);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost.is-active {
  border-color: var(--accent);
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  font-weight: 500;
}

.text-link.accent,
.text-link.accent:hover {
  color: var(--accent);
}

.text-link:hover {
  gap: 0.55rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--text);
}

.logo__dot {
  color: var(--accent);
  font-size: 1rem;
  transform: translateY(-0.15rem);
}

.navmenu ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navmenu a {
  position: relative;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--accent);
}

.navmenu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.mobile-nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.header-contact {
  flex-shrink: 0;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  animation: rise 0.7s var(--ease) both;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  margin-bottom: 1rem;
}

.hero__typed {
  color: var(--accent);
  font-size: clamp(1.35rem, 2.4vw, 1.875rem);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 0.2rem;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

.hero__lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.hero__visual {
  position: relative;
  min-height: 28rem;
}

.hero__photo-wrap {
  width: min(100%, 27.5rem);
  margin-left: auto;
  aspect-ratio: 438 / 488;
  overflow: hidden;
  border-radius: 180px 180px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: floaty 4.5s ease-in-out infinite;
}

.float-label--photo {
  top: 8%;
  right: 0;
}

.float-label--web {
  top: 48%;
  left: auto;
  right: calc(min(100%, 27.5rem) - 2.5rem);
  animation-delay: 0.6s;
}

.float-label--sport {
  bottom: 8%;
  right: 2%;
  animation-delay: 1.1s;
}

.hero__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
}

.hero__motto,
.hero__more {
  margin: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* Shared sections */
.pillars,
.featured,
.personal,
.page-intro,
.story,
.practice,
.featured-interests,
.network,
.contact-layout,
.cta-band,
.cv.section {
  padding: 4rem 0;
}

.pillars h2,
.featured h2,
.personal h2,
.page-intro h1,
.story h2,
.practice h2,
.network h2 {
  font-size: clamp(2rem, 4vw, 2.625rem);
}

.pillars__grid,
.featured__grid,
.interest-grid,
.network__grid {
  display: grid;
  gap: 1.5rem;
}

.pillars__grid,
.featured__grid,
.interest-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.pillar {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pillar__num {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

.pillar__num span {
  margin-left: 0.5rem;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 500;
}

.pillar h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
}

.pillar p {
  color: var(--muted);
}

.featured {
  background: var(--bg-soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
}

.feature-card {
  color: inherit;
  display: block;
}

.feature-card:hover {
  color: inherit;
  transform: translateY(-4px);
}

.feature-card img,
.feature-card__panel,
.interest-card img,
.interest-card__banner {
  width: 100%;
  aspect-ratio: 404 / 246;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-bottom: 1rem;
}

.feature-card__panel,
.interest-card__banner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
}

.feature-card__panel--light,
.interest-card__banner--light {
  background: linear-gradient(145deg, #2d6278 0%, var(--panel-light) 55%, #1c4454 100%);
  color: var(--panel-light-ink);
}

.interest-card__banner--dark {
  background: var(--panel-dark);
}

.feature-card__panel-cat,
.interest-card__banner-meta {
  margin: 0;
  color: var(--panel-light-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.interest-card__banner-meta--accent {
  color: var(--accent);
}

.feature-card__panel-title,
.interest-card__banner-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
}

.interest-card__banner-title--light {
  color: var(--text);
}

.feature-card__panel-meta {
  margin: 0;
  color: var(--panel-light-muted);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card__cat,
.interest-card__cat,
.network-card__cat {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h3,
.interest-card h2 {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 500;
}

.feature-card p:last-child,
.interest-card p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.personal__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.personal p {
  color: var(--muted);
  font-size: 1.125rem;
}

/* CTA */
.cta-band__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.25rem 2.25rem;
  background: var(--surface);
  border-radius: var(--radius-panel);
}

.cta-band__text {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.cta-band h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

/* About */
.page-intro {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.page-intro__lead {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.25rem;
}

.story__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.story__figure img {
  width: 100%;
  border-radius: var(--radius-card);
  aspect-ratio: 470 / 460;
  object-fit: cover;
}

.story__copy p {
  color: var(--muted);
  font-size: 1.1875rem;
}

.practice {
  background: var(--bg-soft);
}

.practice__list {
  margin-top: 2.5rem;
}

.practice__item {
  display: grid;
  grid-template-columns: 4rem 1fr 1.4fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.practice__num {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.practice__item h3 {
  font-family: var(--font-body);
  font-size: 1.625rem;
  font-weight: 500;
}

.practice__item p {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.practice__cv {
  margin-top: 2rem;
}

/* Network */
.network {
  background: var(--bg-soft);
}

.network__intro {
  max-width: 50rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.network__count {
  margin: 1.5rem 0 1.75rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.network__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.network-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 7.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: 12px;
  color: inherit;
}

.network-card:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.network-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.network-card__title {
  font-size: 1.3rem;
  font-weight: 500;
}

.network-card__arrow {
  color: var(--accent);
  font-size: 1.35rem;
}

.network-card__desc {
  color: var(--muted);
  font-size: 0.875rem;
}

.network__note {
  margin-top: 2rem;
}

.network__note .text-link {
  color: var(--muted);
  font-weight: 400;
}

.interest-card {
  display: block;
  padding: 0 0 0.5rem;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
}

.interest-card img,
.interest-card__banner {
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
}

.interest-card .interest-card__cat,
.interest-card h2,
.interest-card > p:last-of-type {
  padding-inline: 1.5rem;
}

.interest-card .interest-card__cat {
  margin-top: 1.25rem;
}

.interest-card:hover {
  color: inherit;
  transform: translateY(-4px);
}

/* Contact */
.contact-layout__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
}

.contact-info,
.contact-form-wrap {
  background: var(--surface);
  border-radius: var(--radius-panel);
  padding: 1.75rem;
}

.contact-info__item {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.contact-info h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.contact-info p,
.contact-info a {
  color: var(--muted);
}

.contact-map {
  margin-top: 0.75rem;
  min-height: 200px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.form-field input,
.form-field textarea,
.zegel-veld input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.form-field input:focus,
.form-field textarea:focus,
.zegel-veld input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-color: var(--accent);
}

.zegel-vak {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.25rem 0;
}

.zegel {
  flex: 0 0 5.5rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2d4a58, #0d171d);
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
}

.zegel-inner {
  text-align: center;
  line-height: 1.1;
}

.zegel-word {
  display: block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.zegel-sub {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.zegel-hint {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message {
  display: none;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
}

.php-email-form .loading {
  background: var(--bg);
}

.php-email-form .error-message {
  background: #7a1f2b;
  color: #fff;
}

.php-email-form .sent-message {
  background: #146b45;
  color: #fff;
}

/* CV fallback */
.cv.section .resume-item,
.cv.section .skills-box {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.cv.section .resume-dates,
.cv.section .institution,
.cv.section p {
  color: var(--muted);
}

.cv.section .section-title h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cv.section .section-title p {
  color: var(--muted);
  max-width: 40rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer__name {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-footer__tagline,
.site-footer__copy,
.site-footer__social a {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0 0 0.65rem;
}

.site-footer__meta {
  text-align: right;
}

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s var(--ease);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Motion */
@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pillars,
.featured,
.personal,
.story,
.practice,
.featured-interests,
.network,
.cta-band {
  animation: rise 0.65s var(--ease) both;
}

/* Mobile */
@media (max-width: 1100px) {
  .hero__grid,
  .personal__grid,
  .story__grid,
  .contact-layout__grid,
  .practice__item {
    grid-template-columns: 1fr;
  }

  .pillars__grid,
  .featured__grid,
  .interest-grid,
  .network__grid,
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero__photo-wrap {
    margin: 0 auto;
  }

  .float-label--web {
    left: auto;
    right: calc(min(100%, 27.5rem) - 2rem);
  }

  .cta-band__panel,
  .section-head,
  .site-footer__inner,
  .hero__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__meta {
    text-align: left;
  }
}

@media (max-width: 860px) {
  .mobile-nav-toggle {
    display: inline-grid;
    place-content: center;
    order: 3;
  }

  .header-contact {
    display: none;
  }

  .navmenu {
    position: static;
  }

  .navmenu ul {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  body.mobile-nav-active .navmenu ul {
    display: flex;
  }

  .navmenu a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  body.mobile-nav-active .header-contact {
    display: inline-flex;
    position: fixed;
    left: 1.25rem;
    right: 1.25rem;
    top: calc(var(--header-h) + 11.5rem);
    z-index: 101;
    justify-content: center;
  }

  .pillars__grid,
  .featured__grid,
  .interest-grid,
  .network__grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero__visual {
    min-height: auto;
  }

  .float-label {
    position: static;
    margin: 0.6rem 0.6rem 0 0;
    display: inline-flex;
    animation: none;
  }

  .hero__visual {
    display: flex;
    flex-direction: column;
  }

  .hero__photo-wrap {
    order: -1;
    margin-bottom: 1rem;
    border-radius: 120px 120px 20px 20px;
  }

  .zegel-vak {
    flex-direction: column;
    align-items: flex-start;
  }
}
