/* ============================================================
   Catharina Michels — portfolio
   Palette "Route & Stone", drawn from her own photos:
   sage paper, pine ink, transit teal (UITP slide), sandstone.
   ============================================================ */

:root {
  --paper: #F3F5EF;
  --paper-raise: #FBFCF8;
  --ink: #14281E;
  --body-c: #3C4C42;
  --pine: #1C4634;
  --teal: #0FA189;
  --sand: #C8A76F;
  --coral: #DE7A3D;
  --hairline: rgba(20, 40, 30, 0.14);
  --dark: #0E1F17;
  --wrap: 1160px;
  --pad: clamp(20px, 4vw, 48px);
  --route-left: 103px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(15, 161, 137, 0.25); }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Archivo", system-ui, sans-serif;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 4.5rem);
  font-weight: 800;
  font-variation-settings: "wdth" 122;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 750;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 650;
  font-variation-settings: "wdth" 106;
  line-height: 1.2;
}

p { color: var(--body-c); }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 14px;
}

.eyebrow-light { color: var(--sand); }

.section-head { margin-bottom: clamp(36px, 6vw, 56px); }

/* ---------------- nav ---------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  background: rgba(243, 245, 239, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav-name {
  font-family: "Archivo", sans-serif;
  font-weight: 750;
  font-variation-settings: "wdth" 115;
  font-size: 1.02rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--body-c);
}

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

.nav-cta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pine);
  border: 1px solid rgba(28, 70, 52, 0.35);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--pine); color: var(--paper); }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(130px, 16vh, 180px) var(--pad) clamp(56px, 8vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/texture-light.png") center / cover no-repeat;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 96%);
  mask-image: linear-gradient(#000 55%, transparent 96%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.lede {
  max-width: 34em;
  margin-top: 22px;
  font-size: 1.13rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-photo {
  position: relative;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  background: var(--sand);
  border-radius: 999px 999px 24px 24px;
  opacity: 0.55;
}

.hero-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  border-radius: 999px 999px 24px 24px;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-block;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid { background: var(--pine); color: var(--paper); }
.btn-solid:hover { background: var(--ink); }

.btn-ghost { border: 1.5px solid rgba(20, 40, 30, 0.3); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--pine); }

.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }

.btn-ghost-light { border: 1.5px solid rgba(243, 245, 239, 0.4); color: var(--paper); }
.btn-ghost-light:hover { border-color: var(--sand); color: var(--sand); }

/* ---------------- logos ---------------- */

.logos {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) var(--pad);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.logos-label {
  color: var(--body-c);
  flex: none;
  padding-right: 8px;
  border-right: 1px solid var(--hairline);
}

.logo-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}

.logo {
  filter: grayscale(1) contrast(0.85);
  opacity: 0.55;
  mix-blend-mode: multiply;
  transition: filter 0.25s ease, opacity 0.25s ease;
  width: auto;
}

.logo:hover { filter: none; opacity: 1; }

.logo-workday { height: 24px; }
.logo-hlag { height: 17px; }
.logo-bonprix { height: 38px; }
.logo-uitp { height: 38px; }

.logo-text {
  font-family: "Archivo", sans-serif;
  font-weight: 750;
  font-variation-settings: "wdth" 108;
  font-size: 1.3rem;
  line-height: 1;
  color: #57645B;
  opacity: 0.75;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.logo-text-caps {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

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

/* ---------------- sections shared ---------------- */

.focus, .route-section, .skills {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--pad) 0;
}

/* ---------------- focus ---------------- */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.focus-card {
  background: var(--paper-raise);
  border: 1px solid rgba(20, 40, 30, 0.09);
  border-radius: 20px;
  padding: 30px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(20, 40, 30, 0.08);
}

.focus-card h3 { margin: 18px 0 10px; }

.focus-card p { font-size: 0.98rem; }

.line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 1rem;
}

.badge-teal { background: var(--teal); color: var(--paper); }
.badge-sand { background: var(--sand); color: var(--ink); }
.badge-coral { background: var(--coral); color: var(--paper); }

/* ---------------- route (experience) ---------------- */

.route {
  position: relative;
  padding: 8px 0 8px;
}

.route-line {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: var(--route-left);
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    var(--teal) 0%,
    var(--teal) 13%,
    var(--pine) 20%,
    var(--pine) 62%,
    var(--sand) 72%,
    var(--sand) 100%
  );
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.8s cubic-bezier(0.3, 0.6, 0.2, 1);
}

.route-line.in { transform: scaleY(1); }

.stops {
  list-style: none;
  display: grid;
  gap: clamp(38px, 5vw, 54px);
}

.stop {
  display: grid;
  grid-template-columns: 64px 40px 1fr;
  column-gap: 20px;
}

.stop-code {
  color: var(--pine);
  text-align: right;
  padding-top: 5px;
  font-weight: 500;
}

.stop-marker {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--paper);
  border: 3.5px solid var(--pine);
  justify-self: center;
  margin-top: 5px;
  position: relative;
  z-index: 1;
}

.stop.is-here .stop-marker {
  border-color: var(--teal);
  box-shadow: 0 0 0 6px rgba(15, 161, 137, 0.16);
}

.stop.terminus .stop-marker {
  border-color: var(--sand);
  background: var(--sand);
}

.stop-body { max-width: 58em; }

.stop-body h3 { margin-bottom: 8px; }

.stop-body h3 em {
  font-style: normal;
  color: var(--teal);
}

.stop-body p { font-size: 0.98rem; max-width: 46em; }

.stop-meta {
  color: var(--body-c);
  margin-bottom: 8px;
}

.here-badge {
  color: var(--teal);
  font-weight: 500;
  margin-right: 10px;
}

.seg-start { margin-top: 6px; }

/* ---------------- speaking ---------------- */

.speaking {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--pad) 0;
}

.speaking-photo img {
  width: 100%;
  border-radius: 24px;
}

.speaking-copy {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding-top: 34px;
}

.speaking-copy > p { max-width: 36em; padding-bottom: 4px; }

/* ---------------- skills ---------------- */

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 5vw, 72px);
}

.skill {
  padding: 20px 0;
  border-top: 2px dotted rgba(20, 40, 30, 0.22);
}

.skill dt {
  font-family: "Archivo", sans-serif;
  font-weight: 650;
  font-variation-settings: "wdth" 106;
  font-size: 1.06rem;
  margin-bottom: 4px;
}

.skill dd { font-size: 0.95rem; color: var(--body-c); }

/* ---------------- contact ---------------- */

.contact {
  margin-top: clamp(72px, 10vw, 130px);
  background: var(--dark) url("assets/texture-dark.png") center / cover no-repeat;
  padding: clamp(72px, 10vw, 130px) var(--pad);
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 { color: var(--paper); }

.contact p {
  color: rgba(243, 245, 239, 0.78);
  margin-top: 18px;
}

.contact .cta-row { justify-content: center; }

/* ---------------- footer ---------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px var(--pad);
}

.footer p { font-size: 0.85rem; color: var(--body-c); }

.footer .mono { font-size: 0.7rem; color: var(--sand); }

/* ---------------- motion ---------------- */

.rise {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.26s; }
.d4 { animation-delay: 0.36s; }

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .route-line { transform: none; transition: none; }
  .btn, .focus-card { transition: none; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 340px; grid-row: 1; }
  .focus-grid { grid-template-columns: 1fr; }
  .speaking-copy { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --route-left: 13px; }
  .nav-links { display: none; }
  .stop { grid-template-columns: 28px 1fr; column-gap: 14px; }
  .stop-code {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    order: -1;
    padding: 0 0 2px;
  }
  .stop-marker { grid-column: 1; grid-row: 1; margin-top: 3px; }
  .stop-body { grid-column: 2; }
  .logos { flex-direction: column; align-items: flex-start; }
  .logos-label { border-right: none; }
}
