/* Page layout and type. The background scene, its .backdrop box and the colour tokens (--sky-*, --ink, --accent, ...) live in scene.css. */

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/be-vietnam-pro-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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: "Be Vietnam Pro";
  src: url("/be-vietnam-pro-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  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: "Be Vietnam Pro";
  src: url("/be-vietnam-pro-vietnamese-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/be-vietnam-pro-vietnamese-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --header-h: 60px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --panel: rgb(255 255 255 / .86);
  --chip: #e9f5f8;
  --line: #d9e6ea;
  --muted: #4d5f70;
  --shadow: 0 1px 2px rgb(31 50 71 / .06), 0 10px 30px -12px rgb(31 50 71 / .22);
  --dot-off: #3f97ad;
  --dot-wind: #6fae5c;
  --dot-pv: #6d8cc4;
  --dot-other: #c9a46a;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Be Vietnam Pro", Arial, sans-serif;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
h3 { font-size: 1.12rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1040px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: .5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
}
.skip:focus { top: .5rem; }

/* header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-h);
  background: rgb(255 255 255 / .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(31 50 71 / .08);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: none; margin-left: auto; }
.nav ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
}
.nav a:hover { color: var(--accent); }
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
}
@media (max-width: 479px) {
  .wide-only { display: none; }
}
@media (min-width: 480px) {
  .narrow-only { display: none; }
}
@media (min-width: 860px) {
  .nav { display: block; }
  .nav + .header-actions { margin-left: 0; }
}
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: #fff;
}
.lang a {
  padding: .1rem .55rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.lang a[aria-current] {
  background: var(--accent);
  color: #fff;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgb(29 111 115 / .7);
}
.btn-ghost {
  background: rgb(255 255 255 / .85);
  color: var(--accent);
}
.btn-small {
  gap: .3em;
  min-height: 36px;
  padding: .3rem .9rem;
  font-size: .9rem;
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.25rem;
}

/* hero: a compact block in the sky of the background scene */
.hero {
  padding: calc(var(--header-h) + clamp(1.25rem, 5vh, 3rem)) var(--gutter) clamp(1.75rem, 5vh, 3rem);
  text-align: center;
}
.hero-text {
  max-width: 44rem;
  margin-inline: auto;
}
.hero .cta { justify-content: center; }
.avatar {
  display: block;
  width: clamp(96px, 60px + 5vw, 124px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--hill), var(--shadow);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .25rem .8rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .85);
  font-size: .85rem;
  font-weight: 600;
}
.badge-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #3a9a5b;
}
@media (prefers-reduced-motion: no-preference) {
  .badge-dot { animation: ping 2.4s ease-out infinite; }
}
.anim-paused .badge-dot { animation-play-state: paused; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgb(58 154 91 / .5); }
  70%, 100% { box-shadow: 0 0 0 .5rem rgb(58 154 91 / 0); }
}
.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem);
  letter-spacing: -.02em;
  margin: .6rem 0 .15rem;
}
/* how to say her name, respelled for the page's readers; the IPA sits in the title tooltip */
.say {
  margin-bottom: .6rem;
  color: var(--muted);
  font-size: .95rem;
}
.say-word {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.headline {
  font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem);
  font-weight: 600;
  margin-bottom: .2rem;
}
.subline, .location {
  color: var(--muted);
  margin-bottom: .2rem;
}

/* pause button: always available, since the scene is always on screen */
.pause {
  position: fixed;
  right: var(--gutter);
  bottom: 1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 36px;
  padding: .3rem .8rem;
  border: 1px solid rgb(31 50 71 / .15);
  border-radius: 999px;
  background: rgb(255 255 255 / .88);
  color: var(--ink);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.pause::before {
  content: "";
  width: .55rem;
  height: .65rem;
  border-inline: .18rem solid currentColor;
}
.pause[aria-pressed="true"]::before {
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.pause[hidden] { display: none; }
/* phones: just a round icon button, so it covers less text */
@media (max-width: 559px) {
  .pause { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .pause-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pause { display: none; }
}

/* frosted panels over the scene */
.panels {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.panel {
  display: flow-root;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
/* frosted glass over a moving background costs a blur per frame: only where there is GPU to spare */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .panel {
    background: rgb(255 255 255 / .8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
.muted { color: var(--muted); }

/* photos: circles with a white ring and a thin pastel outer ring, always beside text */
.photo {
  margin: 0;
  text-align: center;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--hill), var(--shadow);
}
.photo figcaption {
  margin-top: .75rem;
  font-size: .75rem;
  line-height: 1.35;
  color: var(--muted);
}
.photo-right {
  float: right;
  width: clamp(104px, 16vw, 190px);
  margin: 0 0 .75rem clamp(1rem, 3vw, 2rem);
}

.timeline .photo-right { width: clamp(96px, 11vw, 140px); }

/* about */
.facts {
  display: grid;
  gap: 0 1.5rem;
  margin: 1rem 0 0;
}
@media (min-width: 560px) {
  .facts { grid-template-columns: 1fr 1fr; }
}
.facts > div {
  padding: .5rem 0;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.facts dd { margin: 0; }

/* experience timeline */
.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 2rem;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: .55rem;
  top: .6rem;
  bottom: .6rem;
  width: 2px;
  background: var(--hill);
}
.tl-item {
  position: relative;
  display: flow-root;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
}
.tl-item:first-child { border-top: 0; padding-top: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-2rem + .55rem + 1px - 6px);
  top: 1.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot, var(--dot-other));
  box-shadow: 0 0 0 3px #fff;
}
.tl-item:first-child::before { top: .35rem; }
.tl-rot { padding-left: 1rem; }
.tl-rot::before {
  width: 10px;
  height: 10px;
  left: calc(-2rem + .55rem + 1px - 5px);
  background: #fff;
  border: 2px solid var(--dot, var(--dot-other));
}
.f-off { --dot: var(--dot-off); }
.f-wind { --dot: var(--dot-wind); }
.f-pv { --dot: var(--dot-pv); }
.f-other { --dot: var(--dot-other); }
/* a round flag replaces the dot where the country changes */
.flag {
  position: absolute;
  left: calc(-2rem + .55rem + 1px - 11px);
  top: .9rem;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 1px 4px rgb(31 50 71 / .25);
}
.tl-item:first-child .flag { top: .05rem; }
.tl-item:has(.flag)::before { content: none; }
.tl-when, .tl-meta {
  margin-bottom: .2rem;
  font-size: .85rem;
  color: var(--muted);
}
.tl-when { font-weight: 600; }
.tl-item h3 + .tl-meta, .tl-item h4 + .tl-meta { margin-top: .1rem; }
.tl-item > p:not(.tl-when, .tl-meta) { margin-bottom: .2rem; }

details { margin-top: .25rem; }
summary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: .4em;
  height: .4em;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: translateY(-.1em) rotate(45deg);
  transition: transform .2s ease;
}
details[open] > summary::after { transform: translateY(.1em) rotate(-135deg); }
details ul {
  margin: .4rem 0 .2rem;
  padding-left: 1.2rem;
  font-size: .95rem;
}
details li + li { margin-top: .2rem; }

/* entries below the fold fade in; flags pop in a moment later (main.js sets .pending until in view) */
.reveal {
  transition: opacity .6s ease, transform .6s ease;
}
.reveal .flag {
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1) .25s, opacity .3s ease .25s;
}
.reveal.pending {
  opacity: 0;
  transform: translateY(12px);
}
.reveal.pending .flag {
  opacity: 0;
  transform: scale(.4);
}

/* skills: four topics, each with its own tint from the scene (sea, sand, grass, panel blue) */
.skill-groups {
  display: grid;
  gap: 1.25rem 2rem;
}
@media (min-width: 760px) {
  .skill-groups { grid-template-columns: 1fr 1fr; }
}
.skill-group h3 {
  margin-bottom: .55rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.sk-pm { --chip: #e3f3f6; }
.sk-fin { --chip: #fbf0dc; }
.sk-eng { --chip: #e6f3df; }
.sk-tools { --chip: #e8edf8; }
/* neighbours arrive one after another */
.skill-group:nth-child(2), .edu-grid > .reveal:nth-child(2) { transition-delay: .1s; }
.skill-group:nth-child(3) { transition-delay: .2s; }
.skill-group:nth-child(4) { transition-delay: .3s; }

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: .25rem .75rem;
  border-radius: 999px;
  background: var(--chip);
  font-size: .88rem;
}

/* education & training */
.edu-grid {
  display: grid;
  gap: 1.25rem 2rem;
}
@media (min-width: 760px) {
  .edu-grid { grid-template-columns: 1fr 1fr; }
}
.edu {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.edu .photo {
  flex: 0 0 clamp(88px, 11vw, 120px);
}
.lines {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lines > li + li {
  margin-top: .6rem;
  padding-top: .6rem;
  border-top: 1px solid var(--line);
}
.lines strong { display: block; }
.lines span {
  font-size: .88rem;
  color: var(--muted);
}

/* contact */
.contact {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}
.contact .photo {
  flex: 0 0 clamp(96px, 16vw, 170px);
}
.contact h2 { margin-bottom: .5rem; }
@media (max-width: 559px) {
  .contact { flex-direction: column; text-align: center; }
  .contact .cta { justify-content: center; }
}

.site-footer {
  padding: 0 0 4.5rem;
  text-align: center;
  font-size: .85rem;
}
.site-footer p {
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .85);
  color: var(--muted);
}

/* print: no scene, header or toggles; link targets shown */
@media print {
  .backdrop, .site-header, .pause, .skip, summary { display: none; }
  .panel { background: none; box-shadow: none; border: 1px solid var(--line); break-inside: avoid; backdrop-filter: none; }
  .reveal.pending { opacity: 1; transform: none; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: .8em; color: var(--muted); }
}
