/* dannymeijer.nl — static rebuild of the Framer site (Oct 2026) */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Chivo Mono";
  src: url("../fonts/chivo-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --black: #000;
  --ink: #111111;
  --ink-2: #121212;
  --text-2: #32333b;
  --muted: #586269;
  --card: #f2f3f7;
  --card-2: #ebecf2;
  --white: #fff;
  --linkedin: #0277b7;

  --gutter: 24px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --max: 1392px;

  --display: "Inter", system-ui, sans-serif; /* Inter's optical sizing gives the "Inter Display" cut at large sizes */
  --body: "Inter", system-ui, sans-serif;
  --intro: "Figtree", system-ui, sans-serif;
  --ui: "Instrument Sans", system-ui, sans-serif;
  --mono: "Chivo Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
button, summary { font: inherit; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* ---------- Shared ---------- */
.section-head { max-width: 420px; }
.section-title {
  font-family: var(--display);
  font-size: 48px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em;
}
.section-sub {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em;
  color: var(--muted);
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: var(--gutter);
  height: calc(100svh - var(--gutter) * 2);
  min-height: 640px; max-height: 1000px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
}
.hero__bar {
  position: absolute; inset: 0 0 auto; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--gutter);
  font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 26px; letter-spacing: -0.01em;
}
.hero__logo { text-decoration: none; letter-spacing: -0.015em; }
.hero__links { display: flex; gap: 20px; }
.hero__links a { text-decoration: none; opacity: 1; transition: opacity .2s; }
.hero__links a:hover { opacity: .6; }

.hero__portrait {
  position: absolute; z-index: 1;
  /* Figma 7:21 — 1129×1021 in an 852px hero: 119.8% of the hero height, bottom 74px below
     the edge (-8.7%), centre 56px right of the hero centre (+4.0% of 1392) */
  left: 54%; bottom: -8.7%;
  height: 119.8%; width: auto; max-width: none;
  transform: translateX(-50%);
  object-fit: contain; object-position: bottom center;
  animation: heroIn 1.4s var(--ease) both;
}
.hero__name {
  position: absolute; left: 0; right: 0; bottom: 19.1%; z-index: 2;  /* Figma: role line ends 163px above the hero edge (852px frame) */
  display: grid; justify-items: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.hero__title {
  display: flex; justify-content: center; align-items: baseline; gap: .3em;  /* 48px at 160px */
  font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 11.1vw, 160px); line-height: 1; letter-spacing: -0.05em;
}
.hero__first, .hero__last { display: block; animation: nameIn 1.2s var(--ease) backwards; }
.hero__last { animation-delay: .12s; }
.hero__role {
  margin-top: 32px;
  font-family: var(--display); font-size: 15px; line-height: 1.3; text-align: center;
  color: rgba(255,255,255,.7);
  animation: fade 1s .5s backwards;
}

/* Scroll-out (scroll-linked): main.js sets --p-move (0→1) and the opacities from the
   scroll position. It starts once the top-bar is fully out of view and finishes
   HERO_RANGE later; scrolling back up plays it in reverse. `translate` is used (not
   `transform`) so it never fights the entry animation. */
.hero__first { translate: calc(var(--dx-first, -40vw) * var(--p-move, 0)) 0; opacity: var(--o-name, 1); }
.hero__last  { translate: calc(var(--dx-last, 40vw) * var(--p-move, 0)) 0;  opacity: var(--o-name, 1); }
.hero__role  { translate: 0 calc(48px * var(--p-move, 0)); opacity: var(--o-role, 1); }

@keyframes heroIn { from { opacity: 0; transform: translate(-50%, 40px) scale(1.03); } }
@keyframes nameIn { from { opacity: 0; transform: translateY(40%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Intro ---------- */
.intro {
  padding: 200px var(--gutter) 160px;
  text-align: center;
}
.intro__text {
  max-width: 900px; margin: 0 auto;
  font-family: var(--intro); font-weight: 400;
  font-size: clamp(26px, 2.95vw, 42px); line-height: 1.3; letter-spacing: -0.01em;
}
/* Word-by-word colour reveal on scroll (after folira-lite.framer.website): main.js wraps
   each word in a span; words go from grey to ink as the paragraph moves up the screen. */
.word-reveal .w { color: #aeaeae; transition: color .3s; }
.word-reveal .w.is-lit { color: var(--ink); }

.marquee {
  margin-top: 96px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.marquee__list img { height: 34px; width: auto; opacity: .55; filter: grayscale(1); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Projects ---------- */
.projects { padding: 0 var(--gutter) 20px; }
.projects .section-head { max-width: var(--max); margin: 0 auto 48px; }
.stack { max-width: var(--max); margin: 0 auto; }
.project {
  position: sticky; top: var(--gutter);
  height: min(660px, calc(100svh - 48px));
  margin-bottom: 28vh; /* dwell time before the next card slides over */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ddd;
  isolation: isolate;
}
.project:nth-child(2) { top: calc(var(--gutter) + 16px); }
.project:nth-child(3) { top: calc(var(--gutter) + 32px); }
.project:last-child { margin-bottom: 0; }
.project__media, .project__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.project__media img { object-fit: cover; }
.project__info {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  width: min(560px, 100%);
  padding: 0 48px 48px;
}
.project__logo { height: 44px; width: auto; margin-bottom: 72px; }
.project__title {
  position: relative;
  padding-left: 24px;
  font-family: var(--display); font-weight: 600;
  font-size: 32px; line-height: 1.3;
}
.project__title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 8px; border-radius: 8px; background: var(--accent);
}
.project:first-child .project__title { font-size: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tags li {
  padding: 10px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1;
  background: rgba(255,255,255,.6); color: rgba(0,0,0,.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.project--light .project__title { color: var(--ink); }
.project--green .project__title { color: #023628; }
.project--dark .project__title { color: var(--white); }
.project--dark .tags li { background: rgba(255,255,255,.12); color: rgba(255,255,255,.6); }

/* ---------- About ---------- */
.about { padding: 110px var(--gutter) 90px; }
.about__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr minmax(0, 400px) 1fr; gap: 48px;
  align-items: start;
}
.about__portrait {
  width: 100%; height: auto; aspect-ratio: 400 / 569;
  object-fit: cover; border-radius: 150px;
}
.about__text {
  align-self: center;
  font-family: var(--display); font-size: 20px; line-height: 1.7;
}
.about__text p + p { margin-top: 1.5em; }

.skills {
  max-width: var(--max); margin: 120px auto 0;
  display: grid; gap: 16px;
}
.skill {
  display: grid; grid-template-columns: 64px 1fr 1fr; align-items: center; gap: 24px;
  padding: 24px 32px;
  background: var(--card-2);
  border-radius: 19px;
}
.skill__num { font-family: var(--display); font-size: 24px; font-weight: 300; line-height: 1.7; }
.skill__title { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.7; }
.skill__desc { font-family: var(--display); font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--text-2); max-width: 440px; }

/* ---------- Testimonials ---------- */
.testimonials {
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  padding: 70px var(--gutter) 90px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.testimonials__title {
  position: sticky; top: 120px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 3.4vw, 48px); line-height: 1.4;
  max-width: 560px;
}
.testimonials__list { display: grid; gap: 32px; }
.quote {
  position: sticky; top: 48px;
  background: var(--card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 -8px 30px rgba(0,0,0,.04);
}
.quote:nth-child(2) { top: 72px; }
.quote:nth-child(3) { top: 96px; }
.quote:nth-child(4) { top: 120px; }
.quote > img { width: 100%; height: 360px; object-fit: cover; object-position: center 25%; }
.quote__body { padding: 40px 48px 48px; }
.quote blockquote p { font-size: 22px; font-weight: 500; line-height: 1.6; }
.quote figcaption { margin-top: 28px; display: grid; gap: 6px; }
.quote figcaption strong { font-size: 18px; font-weight: 700; line-height: 1; }
.quote figcaption span { font-size: 16px; font-weight: 500; line-height: 1.6; }
.quote__link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-size: 18px; font-weight: 500; line-height: 1;
  color: var(--linkedin); text-decoration: none;
}
.quote__link svg { width: 18px; height: 18px; fill: currentColor; }
.quote__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- FAQ ---------- */
.faq {
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  padding: 110px var(--gutter) 160px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--card); border-radius: var(--radius-lg); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px;
  font-family: var(--display); font-size: 18px; line-height: 1.6; letter-spacing: -0.02em; color: var(--ink-2);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 22px; height: 22px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12h8M12 8v8'/%3E%3C/svg%3E");
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E");
}
.faq__item p {
  padding: 0 24px 24px;
  font-family: var(--display); font-size: 16px; line-height: 1.6; color: var(--text-2);
}
.faq__item[open] p { animation: fade .4s both; }

/* ---------- Blog + Contact (dark) ---------- */
.dark { background: var(--ink); color: var(--white); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.blog { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 80px var(--gutter) 90px; }
.blog__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.blog__all { font-family: var(--display); font-size: 16px; font-weight: 500; color: rgba(255,255,255,.8); text-decoration: none; }
.blog__all:hover { color: var(--white); text-decoration: underline; text-underline-offset: 5px; }
.posts { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post a { display: block; text-decoration: none; }
.post img { width: 100%; aspect-ratio: 479 / 300; object-fit: cover; border-radius: 16px; transition: transform .6s var(--ease); }
.post a:hover img { transform: scale(1.02); }
.post time { display: block; margin-top: 24px; font-family: var(--display); font-size: 16px; font-weight: 500; line-height: 1.6; color: rgba(255,255,255,.8); }
.post h3 { margin-top: 6px; font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.6; }
.post a:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.contact { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 110px var(--gutter) 90px; }
.contact__title {
  max-width: 980px;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 3.4vw, 48px); line-height: 1.3; letter-spacing: -0.02em;
}
.contact__line { margin-top: 20px; font-size: 16px; color: rgba(255,255,255,.7); }
.contact__line + .contact__line { margin-top: 6px; }
.contact__line a { color: var(--white); text-underline-offset: 4px; }


/* ---------- Blog page (/blog/) — layout after bungee.framer.website/blog ---------- */
.page-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 32px;
  font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 26px; letter-spacing: -0.01em;
}
.page-bar a { text-decoration: none; }
.page-bar__links { display: flex; gap: 20px; }
.page-bar__links a { transition: opacity .2s; }
.page-bar__links a:hover { opacity: .6; }
.page-bar__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

.blog-hero {
  display: grid; justify-items: center; gap: 15px;
  padding: 62px 32px 40px;
  text-align: center;
}
.blog-hero__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(48px, 4.9vw, 70px); line-height: 1; letter-spacing: -0.03em;
}
.blog-hero__sub {
  max-width: 340px;
  font-family: var(--display); font-size: 18px; line-height: 1.4; color: var(--muted);
}

.post-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  max-width: 1376px; margin: 0 auto; padding: 0 32px 40px;
  box-sizing: content-box;
}
.post-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.post-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--white); border-radius: 20px; overflow: hidden; }
.post-card__media { aspect-ratio: 680 / 590; overflow: hidden; background: var(--card); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card a:hover .post-card__media img { transform: scale(1.04); }
.post-card__info { display: grid; gap: 8px; padding: 20px 16px; }
.post-card time { font-family: var(--mono); font-size: 14px; line-height: 1.22; color: #1e1e1e; }
.post-card h2 {
  max-width: 30ch;
  font-family: var(--display); font-size: 20px; font-weight: 500; line-height: 1.3; color: #1e1e1e;
  text-wrap: balance;
}
.post-card a:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.page-blog .dark { margin-top: 80px; }

@media (max-width: 1023px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .page-bar { padding: 16px; }
  .page-bar__links a[href^="mailto"] { display: none; }
  .blog-hero { padding: 48px 16px 32px; }
  .post-grid, .post-grid--featured { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .post-card h2 { font-size: 18px; }
  .page-blog .dark { margin-top: 48px; }
}


/* ---------- Article page (/blog/<slug>/) — layout after Bungee blog detail ---------- */
.article__head {
  display: grid; gap: 12px;
  max-width: 900px; margin: 0 auto; padding: 64px 32px 56px; box-sizing: content-box;
}
.article__head time { font-family: var(--mono); font-size: 14px; line-height: 1.22; color: #1e1e1e; }
.article__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(40px, 4.9vw, 70px); line-height: 1; letter-spacing: -0.03em; color: #1e1e1e;
  text-wrap: balance;
}
.article__hero { margin: 0 32px; border-radius: 32px; overflow: hidden; background: var(--card); }
.article__hero img { width: 100%; height: auto; aspect-ratio: 1376 / 725; object-fit: cover; }

.article__body {
  max-width: 800px; margin: 120px auto 0; padding: 0 32px; box-sizing: content-box;
  font-family: var(--display); font-size: 17.6px; line-height: 1.5; color: #5a6271;
}
.article__body > * + * { margin-top: 1.15em; }
.article__body h2 {
  margin-top: 2.2em;
  font-size: 28px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; color: #1e1e1e;
  text-wrap: balance;
}
.article__body h3 { margin-top: 1.8em; font-size: 21px; font-weight: 600; line-height: 1.3; color: #1e1e1e; }
.article__body h2 + *, .article__body h3 + * { margin-top: .6em; }
.article__body strong { font-weight: 600; color: #1e1e1e; }
.article__body a { color: #1e1e1e; text-underline-offset: 3px; }
.article__body blockquote {
  margin-top: 1.6em; margin-bottom: 1.6em; padding-left: 20px;
  border-left: 2px solid #1e1e1e;
  font-size: 20px; line-height: 1.45; color: #1e1e1e;
}
.article__signoff { margin-top: 2.4em; text-align: center; }
.article__source { margin-top: 56px !important; font-family: var(--mono); font-size: 14px; color: #5a6271; }

.article__pager { display: flex; justify-content: center; gap: 16px; margin: 48px auto 0; padding: 0 32px; }
.pager-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 24px; border-radius: 12px;
  border: 1px solid rgba(30,30,30,.14); background: var(--white);
  font-family: var(--display); font-size: 17.6px; font-weight: 500; letter-spacing: -0.02em; color: #1e1e1e;
  text-decoration: none; transition: border-color .2s, background .2s;
}
.pager-btn svg { width: 16px; height: 16px; }
.pager-btn:hover { border-color: #1e1e1e; background: var(--card); }

@media (max-width: 767px) {
  .article__head { padding: 40px 16px 32px; }
  .article__hero { margin: 0 16px; border-radius: 20px; }
  .article__hero img { aspect-ratio: 4 / 3; }
  .article__body { margin-top: 48px; padding: 0 16px; font-size: 16.5px; }
  .article__body h2 { font-size: 23px; }
  .article__body blockquote { font-size: 18px; }
  .article__pager { padding: 0 16px; }
  .pager-btn { height: 48px; padding: 0 18px; font-size: 16px; }
}


/* ---------- Glass navigation (layout after folira-lite.framer.website, Apple-style glass) ---------- */
.glass-nav {
  --glass-bg: rgba(255,255,255,.58);
  --glass-edge: rgba(255,255,255,.75);
  --glass-hi: rgba(255,255,255,.9);
  --glass-shadow: 0 10px 30px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --glass-ink: #111;
  --cta-bg: #111; --cta-ink: #fff;
  position: fixed; z-index: 50;
  --nav-inset: 36px; /* same distance from the top and the right */
  top: calc(var(--nav-inset) + env(safe-area-inset-top, 0px)); right: calc(var(--nav-inset) + env(safe-area-inset-right, 0px));
  font-family: var(--display); font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
}
.glass-nav--dark {
  --glass-bg: rgba(28,28,30,.42);
  --glass-edge: rgba(255,255,255,.16);
  --glass-hi: rgba(255,255,255,.22);
  --glass-shadow: 0 10px 30px rgba(0,0,0,.35);
  --glass-ink: #fff;
  --cta-bg: #fff; --cta-ink: #111;
}
.glass-nav__menu, .glass-nav__toggle {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
  transition: background .35s, border-color .35s, box-shadow .35s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-nav { --glass-bg: rgba(255,255,255,.94); }
  .glass-nav--dark { --glass-bg: rgba(28,28,30,.92); }
}
.glass-nav__menu {
  display: flex; align-items: center; gap: 20px;
  padding: 6px 6px 6px 18px; border-radius: 15px;
}
.glass-nav__link, .glass-nav__cta { text-decoration: none; color: var(--glass-ink); transition: color .35s; }
/* text roll on hover: the real text keeps the size (and is what screen readers read);
   two painted copies roll up one line on hover */
.glass-nav__link span, .glass-nav__cta span {
  position: relative; display: inline-block; overflow: hidden; vertical-align: top;
  line-height: 1.25; color: transparent;
}
.glass-nav__link span::before, .glass-nav__link span::after,
.glass-nav__cta span::before, .glass-nav__cta span::after {
  content: attr(data-t); position: absolute; left: 0; top: 0; color: var(--glass-ink);
  transition: transform .45s var(--ease), color .35s;
}
.glass-nav__cta span::before, .glass-nav__cta span::after { color: var(--cta-ink); }
.glass-nav__link span::after, .glass-nav__cta span::after { top: 100%; }
.glass-nav__link:hover span::before, .glass-nav__link:hover span::after,
.glass-nav__cta:hover span::before, .glass-nav__cta:hover span::after { transform: translateY(-100%); }
.glass-nav__link[aria-current="page"] { opacity: .55; }
.glass-nav__cta {
  padding: 9px 13px; border-radius: 10px;
  background: var(--cta-bg); color: var(--cta-ink);
  box-shadow: 0 8px 18px rgba(0,0,0,.22), inset 0 2px 3px rgba(255,255,255,.25);
  transition: background .35s, color .35s;
}
.glass-nav__toggle { display: none; }
.glass-nav :focus-visible { outline: 2px solid var(--glass-ink); outline-offset: 3px; }

/* leave room for the fixed pill in the page bars */
.page-bar { min-height: 63px; padding-right: 380px; }

@media (max-width: 767px) {
  .glass-nav { --nav-inset: 24px; }
  .glass-nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer; padding: 0;
  }
  .glass-nav__toggle span {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--glass-ink);
    transition: transform .35s var(--ease), background .35s;
  }
  .glass-nav.is-open .glass-nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .glass-nav.is-open .glass-nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .glass-nav__menu {
    position: absolute; top: 56px; right: 0;
    width: min(240px, calc(100vw - 28px));
    flex-direction: column; align-items: center; gap: 6px;
    padding: 22px 16px; border-radius: 22px;
    font-size: 26px;
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top right;
    transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s, background .35s, border-color .35s;
  }
  .glass-nav.is-open .glass-nav__menu {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .3s, transform .35s var(--ease), visibility 0s, background .35s, border-color .35s;
  }
  .glass-nav__cta { margin-top: 8px; padding: 12px 20px; font-size: 18px; }
  .page-bar { padding-right: 80px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__grid .section-head { grid-column: 1 / -1; }
  .skill { grid-template-columns: 48px 1fr; }
  .skill__desc { grid-column: 2; }
  .testimonials, .faq { grid-template-columns: 1fr; }
  .testimonials__title { position: static; }
  .posts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .section-title { font-size: 36px; }
  .hero { min-height: 560px; }
  .hero__links a[href^="mailto"] { display: none; }
  .hero__portrait { left: 50%; bottom: 0; height: 70%; }
  .hero__name { bottom: 0; padding-bottom: 32px; justify-items: start; }
  .hero__title { flex-direction: column; align-items: flex-start; gap: 0; font-size: clamp(64px, 20vw, 96px); line-height: 1; }
  .hero__role { margin-top: 12px; max-width: 220px; text-align: left; }
  .intro { padding: 96px var(--gutter); }
  .marquee { margin-top: 56px; }
  .marquee__list { gap: 48px; padding-right: 48px; }
  .marquee__list img { height: 26px; }
  .project { height: min(640px, calc(100svh - 32px)); }
  .project__info { padding: 0 24px 24px; }
  .project__logo { margin-bottom: 32px; height: 36px; }
  .project__title, .project:first-child .project__title { font-size: 22px; padding-left: 20px; }
  .project__title::before { width: 6px; }
  .tags { margin-top: 24px; }
  .about { padding-top: 80px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { border-radius: 100px; }
  .about__text { font-size: 18px; }
  .skills { margin-top: 64px; }
  .skill { grid-template-columns: 1fr; gap: 4px; padding: 20px 24px; }
  .skill__num { display: none; }
  .skill__title { font-size: 20px; line-height: 1.4; }
  .skill__desc { grid-column: auto; font-size: 14px; }
  .quote > img { height: 260px; }
  .quote__body { padding: 28px 24px 32px; }
  .quote blockquote p { font-size: 18px; }
  .faq { padding: 80px var(--gutter) 96px; }
  .faq__item summary { font-size: 16px; padding: 20px; }
  .posts { grid-template-columns: 1fr; }
  .post h3 { font-size: 20px; }
  .blog { padding-top: 48px; }
  .contact { padding: 80px var(--gutter) 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
