/* connaugh.me — interactive CV. Editorial cream document with dark project portals. */

@font-face { font-family: "Arizona"; src: url("/assets/fonts/zkfm/arizona-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Arizona"; src: url("/assets/fonts/zkfm/arizona-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Arizona"; src: url("/assets/fonts/zkfm/arizona-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Epilogue"; src: url("/assets/fonts/zkfm/epilogue-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f2ead8;
  --paper-2: #ece2cd;
  --ink: #16120b;
  --ink-soft: #6c6557;
  --line: rgba(22, 18, 11, 0.16);
  --lime: #bfe21f;
  --serif: "Arizona", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: "Epilogue", system-ui, -apple-system, sans-serif;
  --maxw: 920px;
}

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

html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
em { font-style: italic; }

/* ---- Landing hub <-> CV toggle ---------------------------------------------
   The hub is the default view; clicking "CV" reveals the full CV in place.
   :target + :has() does it without JS; cv.js mirrors it via body.cv-open for
   browsers without :has(). */
.cv-view { display: none; }
body.cv-open .cv-view { display: block; }
body.cv-open .hub { display: none; }
body:has(#cv:target) .cv-view, body:has(.cv-view :target) .cv-view { display: block; }
body:has(#cv:target) .hub, body:has(.cv-view :target) .hub { display: none; }

.hub { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 56px 24px; }
.hub__inner { width: 100%; max-width: 560px; text-align: center; }
.hub__photo img { width: clamp(116px, 26vw, 156px); height: clamp(116px, 26vw, 156px); border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 24px; border: 1px solid var(--lime); }
.hub__name { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 7vw, 52px); letter-spacing: -0.01em; line-height: 1.02; }
.hub__role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }
.hub__options { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; text-align: left; }
.hub__label { margin: 18px 6px 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.hub__projects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
/* CV = quieter secondary option; the projects lead. */
.hub-opt {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px;
  padding: 14px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  text-decoration: none; color: var(--ink); transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.hub-opt:hover { transform: translateY(-3px); border-color: var(--ink); background: #fff; }
.hub-opt__name { grid-column: 1; font-family: var(--serif); font-weight: 500; font-size: clamp(17px, 2.2vw, 19px); line-height: 1.1; }
.hub-opt__desc { grid-column: 1; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; color: var(--ink-soft); }
.hub-opt__go { grid-column: 2; grid-row: 1 / span 2; font-size: 18px; color: var(--ink-soft); transition: transform 0.18s ease, color 0.18s ease; }
.hub-opt:hover .hub-opt__go { transform: translateX(4px); color: var(--ink); }
.hub-opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Project cards = the prominent options. One bordered box per project:
   a clickable title area, a divider line, then an in-box "What is this?" expander. */
.hub-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: 12px;
  background: var(--paper-2); transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.hub-card:has(.hub-card__link:hover) { transform: translateY(-3px); border-color: var(--ink); background: #fff; }
.hub-card__link { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; text-decoration: none; color: #fff; background: #16120b; }
.hub-card__art { position: absolute; inset: 0; display: block; }
.hub-card__art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.hub-card:has(.hub-card__link:hover) .hub-card__art img { transform: scale(1.04); }
.hub-card__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 18px; background: linear-gradient(to top, rgba(8, 7, 11, 0.92) 0%, rgba(8, 7, 11, 0.5) 48%, rgba(8, 7, 11, 0.12) 100%); }
.hub-card__name { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.05; }
.hub-card__desc { display: block; margin-top: 3px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.82); }
.hub-card__go { flex: none; font-family: var(--serif); font-size: 26px; line-height: 1; transition: transform 0.18s ease; }
.hub-card:has(.hub-card__link:hover) .hub-card__go { transform: translateX(4px); }
.hub-card__link:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; border-radius: 10px; }
.hub-card__more { border-top: 1px solid var(--line); }
.hub-card__more > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 24px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.hub-card__more > summary::-webkit-details-marker { display: none; }
.hub-card__more > summary::after { content: "▾"; transition: transform 0.2s ease; }
.hub-card__more[open] > summary::after { transform: rotate(180deg); }
.hub-card__more > summary:hover { color: var(--ink); }
.hub-card__more > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; border-radius: 6px; }
.hub-card__body { padding: 2px 24px 20px; }
.hub-card__body p { font-family: var(--sans); font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.hub-card__body p + p { margin-top: 10px; }
@media (max-width: 540px) {
  .hub__projects { grid-template-columns: 1fr; }
  /* centre the headshot so the fixed Home button doesn't clip it */
  .cv-head { padding-top: 76px; }
  .cv-portrait img { margin-left: auto; margin-right: auto; }
}

/* Back-to-menu pill, shown only inside the CV view */
.cv-back { position: fixed; top: 18px; left: 20px; z-index: 210; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.cv-back:hover { color: var(--ink); border-color: var(--ink); }
.cv-back:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- Reading progress ---- */
.cv-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--lime); z-index: 200; transition: width 0.1s linear;
}

/* ---- Section dial (right side) ---- */
.cv-dial {
  position: fixed; top: 50%; right: 26px; transform: translateY(-50%); z-index: 150;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
.cv-dial a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-soft);
  text-decoration: none; display: flex; align-items: center; gap: 9px; opacity: 0.5; transition: opacity 0.2s, color 0.2s;
}
.cv-dial a::after { content: ""; width: 22px; height: 2px; background: currentColor; display: block; transition: width 0.2s; }
.cv-dial a:hover { opacity: 1; }
.cv-dial a.is-active { opacity: 1; color: var(--ink); }
.cv-dial a.is-active::after { width: 40px; background: var(--lime); }
.cv-dial .label { display: none; }
.cv-dial a.is-active .label { display: inline; }

/* ---- Shell ---- */
.cv-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---- Header ---- */
.cv-head { padding: clamp(56px, 9vw, 110px) 0 36px; }
.cv-portrait { display: block; margin-bottom: 24px; }
.cv-portrait img { width: clamp(72px, 12vw, 104px); height: clamp(72px, 12vw, 104px); border-radius: 50%; object-fit: cover; display: block; border: 1px solid var(--lime); }
.cv-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 26px;
}
.cv-eyebrow b { color: var(--ink); font-weight: 400; }
.cv-name {
  font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 11vw, 108px);
  line-height: 0.96; letter-spacing: -0.01em;
}
.cv-name em { font-weight: 400; }
/* keep each word whole — the per-char spans must never break mid-name */
.cv-name__w { white-space: nowrap; }
.cv-role {
  margin-top: 22px; font-family: var(--mono); font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.cv-role span { color: var(--ink-soft); }
.cv-contact { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.cv-social { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; vertical-align: middle; color: var(--ink); transition: color 0.2s; }
.cv-social svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.cv-social:hover { color: var(--lime); }
.cv-social:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.cv-contact a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lime); }
.cv-contact a:hover { color: var(--ink); }
.cv-rule { height: 5px; background: var(--lime); margin: 30px 0 0; border-radius: 2px; }

/* ---- Sections ---- */
.cv-section { padding: 60px 0; border-bottom: 1px solid var(--line); }
.cv-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 30px;
}
.cv-label b { color: var(--ink); font-weight: 400; margin-right: 8px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Profile ---- */
.cv-profile p { font-family: var(--serif); font-size: clamp(19px, 2.5vw, 25px); line-height: 1.5; max-width: 760px; }
.cv-profile .lead em { font-style: italic; }

/* ---- Projects (dark portals) ---- */
.cv-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.portal {
  display: flex; flex-direction: column; text-decoration: none;
  background: #07080b; color: #f2ead8; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08); position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portal:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.28); }
.portal:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
/* Collage behind the whole panel: vivid in the art banner, darkened behind the text */
.portal__bg { position: absolute; inset: 0; z-index: 0; }
.portal__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portal__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,8,11,0.5) 0%, rgba(7,8,11,0.66) 26%, rgba(7,8,11,0.9) 50%, rgba(7,8,11,0.96) 100%); }
.portal__art, .portal__body { position: relative; z-index: 2; }
.portal__art { height: 168px; display: grid; place-items: center; overflow: hidden; }
.portal--zkfm .portal__art { background: radial-gradient(62% 90% at 50% 50%, rgba(7,8,11,0.5), transparent 80%); }
.portal--zkfm .portal__art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,0.35) 3px); }
.portal--zkfm .pmark { font-family: var(--mono); font-weight: 800; font-size: 46px; letter-spacing: 0.08em; color: #cdee4a; text-shadow: 3px 0 #ff3d7f, -3px 0 #4ad9e0; position: relative; z-index: 1; }
.portal--mm .portal__art { background: radial-gradient(62% 90% at 50% 50%, rgba(7,8,11,0.5), transparent 80%); }
.portal--mm .pmark { font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: 40px; line-height: 1; text-align: center; }
.portal--mm .pmark .m1 { display: block; color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4em; margin-left: 0.4em; margin-bottom: 6px; }
.portal--mm .pmark .m2 { display: block; font-size: 54px; font-weight: 900; letter-spacing: -0.01em; background: linear-gradient(100deg, #ff2d8a, #ff5d3a, #f5a623, #d4e000, #8fe000, #00c8a0, #00a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portal__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.portal__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: #9a9488; margin: 6px 0 12px; }
.portal__sub { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.portal__desc { font-size: 13.5px; color: #c4bdad; flex: 1; }
.portal__stats { display: flex; gap: 22px; margin: 16px 0 4px; }
.portal__stats b { font-family: var(--serif); font-size: 26px; font-weight: 500; color: #cdee4a; display: block; line-height: 1; }
.portal--mm .portal__stats b { color: #f5a623; }
.portal__stats span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: #9a9488; text-transform: uppercase; }
.portal__enter { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #cdee4a; }
.portal--mm .portal__enter { color: #f5a623; }
.portal__enter span { display: inline-block; transition: transform 0.2s ease; }
.portal:hover .portal__enter span { transform: translateX(6px); }
.cv-projects__note { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 16px; margin-bottom: 22px; max-width: 760px; }
/* Text-only project card (no live destination) — matches the portal look, no hover/click affordance */
.cv-engine {
  grid-column: 1 / -1; display: flex; flex-direction: column;
  background: #07080b; color: #f2ead8; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08); padding: 22px;
}
.cv-engine__name { font-family: var(--mono); font-weight: 800; font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.cv-engine .portal__desc { max-width: 760px; }

/* ---- Experience ---- */
.role { border-top: 1px solid var(--line); }
.role:first-of-type { border-top: 0; }
.role > summary {
  list-style: none; cursor: pointer; padding: 20px 0; display: grid;
  grid-template-columns: 1fr auto; align-items: baseline; gap: 8px 20px;
}
.role > summary::-webkit-details-marker { display: none; }
.role__title { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); font-weight: 400; }
.role__title .co { color: var(--ink-soft); }
.role__dates { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); letter-spacing: 0.05em; white-space: nowrap; }
.role__what { grid-column: 1 / -1; color: var(--ink-soft); font-size: 14px; margin-top: -6px; }
.role__toggle { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; }
.role[open] .role__toggle .more { display: none; }
.role:not([open]) .role__toggle .less { display: none; }
.role__bullets { padding: 0 0 24px; max-width: 800px; }
.role__bullets li { list-style: none; position: relative; padding-left: 22px; margin: 12px 0; font-size: 15px; line-height: 1.55; }
.role__bullets li::before { content: "–"; position: absolute; left: 0; color: var(--lime); font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.role__bullets b, .num { font-weight: 600; }

/* ---- Education ---- */
.edu { display: grid; gap: 14px; }
.edu__row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.edu__row:last-child { border-bottom: 0; }
.edu__name { font-family: var(--serif); font-size: clamp(17px, 2.2vw, 20px); }
.edu__meta { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); white-space: nowrap; }

/* ---- Footer ---- */
/* End-of-CV quick jumps into the two projects — collage click-through cards */
.cv-jump { padding: 56px 0 8px; }
.cv-jump__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cv-jump__card {
  position: relative; overflow: hidden; display: block; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: 12px;
  background: #16120b; text-decoration: none; color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cv-jump__card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(22, 18, 11, 0.22); border-color: var(--ink); }
.cv-jump__art { position: absolute; inset: 0; display: block; }
.cv-jump__art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.cv-jump__card:hover .cv-jump__art img { transform: scale(1.04); }
.cv-jump__overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 20px;
  background: linear-gradient(to top, rgba(8, 7, 11, 0.92) 0%, rgba(8, 7, 11, 0.5) 48%, rgba(8, 7, 11, 0.12) 100%);
}
.cv-jump__name { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.05; }
.cv-jump__sub { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.82); }
.cv-jump__go { flex: none; font-family: var(--serif); font-size: 26px; line-height: 1; transition: transform 0.18s ease; }
.cv-jump__card:hover .cv-jump__go { transform: translateX(4px); }
.cv-jump__card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Reusable project wordmark logos — scale to the container font-size, used in
   the hub cards and the "Explore the projects" cards (match the CV portal marks) */
.proj-logo--zk { font-family: var(--mono); font-weight: 800; letter-spacing: 0.06em; color: #cdee4a; text-shadow: 0.06em 0 #ff3d7f, -0.06em 0 #4ad9e0; line-height: 1; white-space: nowrap; }
.proj-logo--mm { display: inline-flex; flex-direction: column; line-height: 1; }
.proj-logo--mm .m1 { font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 0.28em; text-transform: uppercase; letter-spacing: 0.4em; color: rgba(255, 255, 255, 0.85); margin-left: 0.4em; margin-bottom: 0.5em; }
.proj-logo--mm .m2 { font-family: "Inter", system-ui, sans-serif; font-weight: 900; letter-spacing: -0.01em; background: linear-gradient(100deg, #ff2d8a, #ff5d3a, #f5a623, #d4e000, #8fe000, #00c8a0, #00a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 540px) { .cv-jump__grid { grid-template-columns: 1fr; } }

.cv-foot { padding: 40px 0 70px; }
.cv-foot .cv-rule { margin: 0 0 22px; }
.cv-foot p { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.cv-foot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lime); }
.foot-legal { margin-top: 12px; }
.foot-legal > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lime); }
.foot-legal > summary::-webkit-details-marker { display: none; }
.foot-legal > summary::after { content: "▾"; text-decoration: none; transition: transform 0.2s ease; }
.foot-legal[open] > summary::after { transform: rotate(180deg); }
.foot-legal__body { margin-top: 8px; max-width: 680px; font-family: var(--mono); font-size: 11px; line-height: 1.65; color: var(--ink-soft); }

a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---- Experimental: kinetic name ---- */
.char { display: inline-block; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .cv-name.split .char { opacity: 0; transform: translateY(0.5em) rotate(3deg); }
  .cv-name.split.is-revealed .char {
    opacity: 1; transform: none;
    transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
  }
}

/* ---- Experimental: section dial as a tuner ---- */
.cv-eyebrow.is-tuning b { color: var(--ink-soft); }
.cv-dial a { position: relative; }
.cv-dial a.is-active::before {
  content: ""; position: absolute; right: -4px; top: 50%; width: 6px; height: 6px;
  margin-top: -3px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 4px rgba(191, 226, 31, 0.25);
}

/* ---- Experimental: portal entry transition ---- */
.portal-enter {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  display: grid; place-items: center;
  clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
}
.portal-enter.is-on {
  clip-path: circle(150% at var(--x, 50%) var(--y, 50%));
  transition: clip-path 0.6s cubic-bezier(0.7, 0, 0.25, 1);
}
.portal-enter--zkfm { background: #07080b; }
.portal-enter--mm { background: #0d0f14; }
.portal-enter__label {
  font-family: var(--mono); letter-spacing: 0.25em; text-transform: uppercase; font-size: 13px;
  opacity: 0; transition: opacity 0.3s ease 0.25s;
}
.portal-enter.is-on .portal-enter__label { opacity: 1; }
.portal-enter--zkfm .portal-enter__label { color: #cdee4a; }
.portal-enter--mm .portal-enter__label { color: #f5a623; }

/* ---- Experimental: custom cursor + magnetic ---- */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor summary, body.has-cursor button { cursor: none; }
  .cv-cursor {
    position: fixed; top: 0; left: 0; width: 26px; height: 26px; z-index: 350;
    border: 1.5px solid var(--ink); border-radius: 50%; pointer-events: none;
    transform: translate(-50%, -50%); mix-blend-mode: difference;
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    opacity: 0;
  }
  .cv-cursor.is-ready { opacity: 1; }
  .cv-cursor.is-hot { width: 56px; height: 56px; background: #fff; }
  .magnetic { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .cv-dial { display: none; }
  .cv-projects { grid-template-columns: 1fr; }
  .role > summary { grid-template-columns: 1fr; }
  .role__dates { white-space: normal; }
}
