/* masonhajighareh.com: the page's own CSS, loaded after the kit (system.css, cards.css, motion.css,
   backgrounds.css, layout.css). Palettes exactly as start.mjs printed them; one block per visitor theme. */

/* ---------- Palettes: Mint is the default (white-mint-tiles) ---------- */
:root,
:root[data-theme="mint"] {
  --p-bg: #ffffff; --p-surface: #f3f3f3; --p-ink: #232323; --p-muted: #686868;
  --p-accent: #a1ffcb; --p-accent-ink: #232323; --p-action: #232323; --p-action-ink: #ffffff;
  --p-inv-bg: #232323; --p-inv-surface: #303030; --p-inv-ink: #ffffff; --p-inv-muted: #a4a4a4;
  --p-inv-accent: #a1ffcb; --p-inv-accent-ink: #232323; --p-inv-action: #a1ffcb; --p-inv-action-ink: #232323;
}
/* Harbour: swap-pastels. Its muted ink was turned from hue 274 (violet) to 255 (blue), per the system's colour rule. */
:root[data-theme="harbour"] {
  --p-bg: #c3d7e5; --p-surface: #d0e0eb; --p-ink: #141414; --p-muted: #435367;
  --p-accent: #0f5257; --p-accent-ink: #ffffff; --p-action: #0f5257; --p-action-ink: #ffffff;
  --p-inv-bg: #141414; --p-inv-surface: #1e1f20; --p-inv-ink: #c3d7e5; --p-inv-muted: #808b94;
  --p-inv-accent: #c3d7e5; --p-inv-accent-ink: #141414; --p-inv-action: #c3d7e5; --p-inv-action-ink: #141414;
}
/* Soot: soot-pale-lime */
:root[data-theme="soot"] {
  --p-bg: #0f0f0f; --p-surface: #1a1a1a; --p-ink: #ffffff; --p-muted: #8f8f8f;
  --p-accent: #dafa9c; --p-accent-ink: #0f0f0f; --p-action: #dafa9c; --p-action-ink: #0f0f0f;
  --p-inv-bg: #ffffff; --p-inv-surface: #ececec; --p-inv-ink: #0f0f0f; --p-inv-muted: #5f5f5f;
  --p-inv-accent: #0f0f0f; --p-inv-accent-ink: #ffffff; --p-inv-action: #0f0f0f; --p-inv-action-ink: #ffffff;
}
/* Forest: forest-pale-lime */
:root[data-theme="forest"] {
  --p-bg: #0f1f10; --p-surface: #162a17; --p-ink: #ffffff; --p-muted: #9aa39a;
  --p-accent: #c6f19d; --p-accent-ink: #0f1f10; --p-action: #c6f19d; --p-action-ink: #0f1f10;
  --p-inv-bg: #ffffff; --p-inv-surface: #ecedec; --p-inv-ink: #0f1f10; --p-inv-muted: #606c60;
  --p-inv-accent: #0f1f10; --p-inv-accent-ink: #ffffff; --p-inv-action: #0f1f10; --p-inv-action-ink: #ffffff;
}
:root {
  --font-display: var(--font-manrope), "Manrope", system-ui, sans-serif;
  --font-text: var(--font-manrope), "Manrope", system-ui, sans-serif;
  --font-mono: var(--font-jetbrains), "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;
  --ly-scale: 0.97;
}
/* A theme switch recolours the page in one short crossfade (a click, never on scroll). */
:root.theme-changing,
:root.theme-changing * {
  transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease, fill 240ms ease !important;
}

/* ---------- Hero (collage): the lit ground of the art and its one result card (page CSS inside the visual) ---------- */
.hero__art { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 80%, var(--ground-accent)), transparent 70%),
    var(--ground-bg); }
.hero__art > .ly-piece--main { --fit-max: 560px; }
.hero__art > .ly-piece--main > .ui-term { width: 100%; }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.d-card { background: #fff; color: #16181a; border-radius: 12px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text); text-align: left;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 18px 40px -20px rgb(0 0 0 / .4); }
.d-card h5 { margin: 0 0 4px; font: 600 14px/1.3 var(--font-text); }
.d-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-chip { justify-self: end; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 13px; font-weight: 500; background: #e7f4ec; color: #17673f; white-space: nowrap; }
.d-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4247; border-top: 1px solid rgb(0 0 0 / .06); }
.d-note__line:first-of-type { border-top: 0; }
.d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e7f4ec; color: #17673f; font-style: normal; font-size: 13px; font-weight: 700; }
.d-note__line i.warn { background: #fdf0dc; color: #8a5300; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }

/* ---------- The work log (app-frame recipe, sections-library.md) ---------- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* ---------- Focus areas: one panel height for the 2x2 ---------- */
#focus .panel { --p-h: 336px; }
@media (max-width: 639px) { #focus .panel { --p-h: 220px; } }

/* ---------- Projects: one screenshot ratio, one card height ---------- */
#projects .panel { --p-h: 300px; }
#projects .panel .frame__img { object-position: top center; }
@media (max-width: 639px) { #projects .panel { --p-h: 190px; } }

/* ---------- Tools: the integrations big grid (eight 72px tiles across) ---------- */
#stack .tools { padding: var(--s-7); }
#stack .tools ul { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); margin: 0; padding: 0; list-style: none; }
#stack .tools li { display: grid; justify-items: center; gap: var(--s-3); text-align: center; }
#stack .tools .tile-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--r-md); background: var(--card, var(--p-bg)); border: 1px solid var(--line); }
#stack .tools .tile-ic img { max-width: 40px; max-height: 40px; }
#stack .tools .t-label { color: var(--ink); }
#stack .tools .yrs { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
@media (max-width: 1023px) { #stack .tools ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  #stack .tools { padding: var(--s-5); }
  #stack .tools ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5) var(--s-3); }
  #stack .tools .tile-ic { width: 64px; height: 64px; }
}

/* ---------- Experience rows on the dark band: the dates in the mono face ---------- */

/* ---------- Theme switch (nav): four swatches in a popover anchored to its button ---------- */
.theme-switch { position: relative; }
.theme-switch__btn {
  display: inline-grid; place-items: center; width: var(--btn-h, 44px); height: var(--btn-h, 44px);
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.theme-switch__dot { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--p-bg) 0 50%, var(--p-action) 0); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 25%, transparent); }
.theme-switch__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 248px; padding: var(--s-3);
  background: var(--p-bg); color: var(--p-ink); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 18px 40px -18px color-mix(in oklab, #000 45%, transparent);
  transform-origin: top right;
  transition: opacity 160ms var(--ease, ease-out), transform 200ms var(--m-ease-enter, ease-out);
}
.theme-switch__panel[data-open="false"] { opacity: 0; transform: translateY(-6px) scale(.97); pointer-events: none; }
.theme-switch__legend { margin: 0 0 var(--s-2); padding: 0 var(--s-2); font-size: 13px; font-weight: 500; color: var(--p-muted); }
.theme-switch__opt {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: var(--s-3); width: 100%; min-height: 44px;
  padding: 0 var(--s-2); border: 0; border-radius: var(--r-sm); background: transparent; color: inherit; font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.theme-switch__opt:hover, .theme-switch__opt:focus-visible { background: color-mix(in oklab, var(--p-ink) 6%, transparent); }
.theme-switch__opt small { font-size: 13px; color: var(--p-muted); }
.theme-switch__sw { width: 32px; height: 32px; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--p-ink) 18%, transparent); }
.theme-switch__opt[aria-checked="true"] .theme-switch__tick { opacity: 1; }
.theme-switch__tick { opacity: 0; width: 16px; height: 16px; }
@media (max-width: 639px) {
  /* in the phone menu the switch sits at the sheet's foot: its panel opens upward */
  .theme-switch__panel { right: auto; left: 0; top: auto; bottom: calc(100% + 10px); transform-origin: bottom left; }
  .theme-switch__panel[data-open="false"] { transform: translateY(6px) scale(.97); }
}

/* ---------- Cursor reticle (fine pointers only; the native cursor stays) ---------- */
.reticle { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; }
.reticle-ring {
  position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--p-ink) 45%, transparent);
  transition: transform 220ms var(--m-ease-enter, ease-out), border-color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}
.reticle-dot { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--p-action); transition: transform 160ms ease, opacity 160ms ease; }
.reticle-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6); opacity: 0;
  font: 500 13px/1 var(--font-text); color: var(--p-action-ink); transition: opacity 160ms ease, transform 220ms var(--m-ease-enter, ease-out);
}
.reticle[data-state="link"] .reticle-ring { transform: scale(1.5); border-color: var(--p-action); }
.reticle[data-state="link"] .reticle-dot { transform: scale(0); }
.reticle[data-state="label"] .reticle-ring { transform: scale(2.6); border-color: var(--p-action); background: var(--p-action); }
.reticle[data-state="label"] .reticle-dot { transform: scale(0); }
.reticle[data-state="label"] .reticle-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.reticle[data-state="text"] .reticle-ring, .reticle[data-hidden] .reticle-ring, .reticle[data-hidden] .reticle-dot { opacity: 0; }
.reticle[data-pressed] .reticle-ring { transform: scale(.85); }

/* ---------- Edit affordance (signed-in admin only) ---------- */
.edit-link {
  position: absolute; right: var(--gut); top: calc(var(--nav) + 12px); z-index: 5;
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px;
  font: 500 13px/1 var(--font-text); color: var(--p-action-ink); background: var(--p-action); text-decoration: none;
}

/* ---------- Page to page: the project screenshot carries over (cross-document view transition) ---------- */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- Inner pages (/work, /services) ---------- */
.inner .frame--shot { aspect-ratio: 16 / 9; }
.inner .frame--shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.inner .prose p { margin: 0 0 var(--s-5); max-width: 62ch; font-size: 18px; line-height: 1.7; }

/* ---------- Contact form on its panel (booking-form recipe: 48px padding on the alt ground) ---------- */
#message .form-panel { background: var(--surface); padding: var(--s-7); border-radius: var(--r-lg); }
#message .form-sent { min-height: 320px; display: grid; align-content: center; }
@media (max-width: 639px) { #message .form-panel { padding: var(--s-5); } }

/* ---------- About: three plain facts under the words ---------- */
#about .facts { display: grid; gap: var(--s-4); margin: var(--s-2) 0 0; }
#about .facts div { display: grid; gap: var(--s-1); }
#about .facts dd { margin: 0; font-size: 16px; }
#about .frame--photo .frame__img { object-position: center 30%; }


/* ---------- Heading to content: 48px (32 on a phone), the system's one rhythm ---------- */
#about .span-5 > h2, #services .span-5 > h2, #message .span-5 > h2 { margin-bottom: var(--s-7); }
#services .rows { margin-top: var(--s-7); }
#about .t-lead + .t-lead { margin-top: var(--s-4); }
#about .facts { margin-top: var(--s-7); }
@media (max-width: 639px) {
  #about .span-5 > h2, #services .span-5 > h2, #message .span-5 > h2 { margin-bottom: var(--s-6); }
  #services .rows, #about .facts { margin-top: var(--s-6); }
}

/* ---------- Experience: the rows two-up, so the band holds one screen with no hole ---------- */

/* ---------- Even gaps: the tools grid and the form fill their screens like their neighbours ---------- */
@media (min-width: 640px) {
  #stack .tools { padding: var(--s-8) var(--s-7); }
  #stack .tools ul { row-gap: var(--s-7); }
}
#message textarea { min-height: 180px; }

/* ---------- Fixes from the checker ---------- */
/* windows and the hero terminal stay inside their frames at every width */
#focus .panel { overflow: hidden; }
.hero__art { overflow: hidden; }
@media (max-width: 639px) {
  .hero__art > .ly-piece--main { left: var(--s-4); right: var(--s-4); width: auto; max-width: calc(100% - 2 * var(--s-4)); }
  /* the phone bar holds the logo, the theme switch and the menu; Resume lives in the sheet and the footer */
  .nav__actions > a.nav__link { display: none; }
  #stack .tools ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #stack .tools .t-label { font-size: 13px; }
  #focus .panel { --p-h: 170px; }
  /* three projects stack into two phone screens, each screenshot large enough to read */
  #projects { --hm: 2; }
  #projects .panel { --p-h: 300px; }
}
@media (max-width: 399px) {
  #stack .tools ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 419px) {
  /* the narrowest bar holds the logo and the menu; the main action stays in the hero on the first screen */
  .nav:not(.is-open) .nav__actions > .btn { display: none; }
}

/* ---------- The lit ground (hero frame, diagram panels) per theme: the kit ships light grounds only ---------- */
:root[data-theme="harbour"] {
  --ground-bg: #a9c3d4; --ground-surface: #bcd1df; --ground-ink: #141414; --ground-muted: #3a4a5c; --ground-accent: #0f5257;
}
:root[data-theme="soot"] {
  --ground-bg: #22251c; --ground-surface: #2c3024; --ground-ink: #ffffff; --ground-muted: #b4b9aa; --ground-accent: #dafa9c;
}
:root[data-theme="forest"] {
  --ground-bg: #1b3420; --ground-surface: #234229; --ground-ink: #ffffff; --ground-muted: #b3c2b3; --ground-accent: #c6f19d;
}
/* on a dark ground the frame's soft light is the accent, never white */
:root:is([data-theme="soot"], [data-theme="forest"]) .hero__art {
  background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 82%, var(--ground-accent)), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 70%, #000), transparent 70%),
    var(--ground-bg);
}

/* ---------- Service pages: the deliverables checklist on the lit ground, ticked but never struck through ---------- */
.inner .hero-visual:not(.frame--photo) {
  background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 80%, var(--ground-accent)), transparent 70%),
    var(--ground-bg);
  border: 0;
}
:root:is([data-theme="soot"], [data-theme="forest"]) .inner .hero-visual:not(.frame--photo) {
  background: radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 82%, var(--ground-accent)), transparent 70%), var(--ground-bg);
}
.inner .hero-visual .stage > .at-rise { top: 50%; transform: translateY(-50%); }
.inner .hero-visual .ui-check.is-done .ui-check__label { color: inherit; }
.inner .hero-visual .ui-check__label::after { display: none; }
.inner .hero-visual .ui-check { height: auto; min-height: 40px; padding-block: 8px; }

/* ---------- Statement: two balanced lines, the photograph clearly inside the letters, centred on its screen ---------- */
#vancouver > .wrap { display: flex; flex-direction: column; justify-content: center; }
#vancouver .mo-gt__type { --mo-tint: color-mix(in oklab, var(--ink) 10%, transparent); text-wrap: balance; }


/* a phone: "Vancouver" (the longest word) fits the line whole at every width down to 320 */
#vancouver .mo-gt__type { overflow-wrap: normal; word-break: keep-all; }
@media (min-width: 640px) { #vancouver .mo-gt__type { font-size: clamp(64px, 15.5vw, 240px); } }
@media (max-width: 639px) { #vancouver .mo-gt__type { font-size: clamp(44px, 16.5vw, 96px); } }
/* the dark themes: a night photograph on a near-black page needs a lighter wash to read as words */
:root:is([data-theme="soot"], [data-theme="forest"]) #vancouver .mo-gt__type { --mo-tint: color-mix(in oklab, var(--ink) 38%, transparent); }
/* a phone: the letters are small, so the photograph also shows as itself under the words */
#vancouver .mo-gt__photo { display: none; }
@media (max-width: 639px) {
  #vancouver .mo-gt__photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 62%; border-radius: var(--r-lg); margin-top: var(--s-6); }
}

/* ---------- Dark themes: the inverse ground stays dark (a step below the page), never a white slab ---------- */
:root[data-theme="soot"] {
  --p-inv-bg: #050505; --p-inv-surface: #161616; --p-inv-ink: #ffffff; --p-inv-muted: #8f8f8f;
  --p-inv-accent: #dafa9c; --p-inv-accent-ink: #0f0f0f; --p-inv-action: #dafa9c; --p-inv-action-ink: #0f0f0f;
}
:root[data-theme="forest"] {
  --p-inv-bg: #091409; --p-inv-surface: #142515; --p-inv-ink: #ffffff; --p-inv-muted: #9aa39a;
  --p-inv-accent: #c6f19d; --p-inv-accent-ink: #0f1f10; --p-inv-action: #c6f19d; --p-inv-action-ink: #0f1f10;
}
:root:is([data-theme="soot"], [data-theme="forest"]) #experience { border-block: 1px solid var(--line); }

/* ---------- Experience: two timelines (work, education); each position enters as it is reached ---------- */
#experience .tl-grid { row-gap: var(--s-8); }
.tl__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-4); margin-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.tl__head h3 { margin: 0; font: var(--display-weight) 18px/1.3 var(--font-display); letter-spacing: -0.01em; }
.tl__head span { font: 400 13px/1 var(--font-mono); color: var(--muted); }
.tl__track { position: relative; --tl-p: 1; --tl-g: 40px; }
.tl__rail { position: absolute; left: calc(-1 * var(--tl-g) + 7px); top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.tl__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--tl-p)); will-change: transform; }
.tl__list { display: grid; gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.tl__item { position: relative; }
.tl__dot { position: absolute; left: calc(-1 * var(--tl-g)); top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); transition: transform 200ms var(--ease); }
.tl__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.tl__body { margin: 0 calc(-1 * var(--s-4)); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); transition: background-color 200ms var(--ease); }
.tl__when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-3); margin: 0; font: 400 13px/1.5 var(--font-mono); color: var(--muted); }
.tl__len::before { content: "·"; margin-right: var(--s-3); }
.tl__now { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 500 13px/1 var(--font-text); }
.tl__role { margin: 6px 0 0; font: var(--display-weight) 17px/1.35 var(--font-display); letter-spacing: -0.01em; }
.tl__org { margin: 2px 0 0; font-size: 15px; color: var(--ink); }
.tl__loc { color: var(--muted); }
.tl__sum { margin: var(--s-2) 0 0; max-width: 62ch; font-size: 15px; line-height: 1.55; color: color-mix(in oklab, var(--ink) 80%, var(--bg)); }
.tl__result { position: relative; margin: var(--s-2) 0 0; padding-left: 14px; max-width: 62ch; font-size: 15px; line-height: 1.55; color: var(--ink); }
.tl__result::before { content: ""; position: absolute; left: 0; top: .5em; bottom: .35em; width: 2px; border-radius: 2px; background: var(--accent); }
.tl__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.tl__tags li { padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 99px; font: 400 13px/1.3 var(--font-mono); color: var(--ink); }
/* the current role: its dot rings out twice when it arrives */
.tl__item.is-now .tl__dot::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
.tl__item.is-now.is-in .tl__dot::before { animation: tl-ring 1400ms cubic-bezier(.2, .8, .2, 1) 500ms 2; }
@keyframes tl-ring { to { box-shadow: 0 0 0 14px color-mix(in oklab, var(--accent) 0%, transparent); } }
/* hover (a mouse): the position lifts onto a surface and its dot grows */
@media (hover: hover) and (pointer: fine) {
  .tl__item:hover .tl__body { background: color-mix(in oklab, var(--ink) 5%, transparent); }
  .tl__item:hover .tl__dot { transform: scale(1.2); }
}
/* the entrance, only once the script is running (no script or reduced motion: at rest, shown) */
[data-tl-ready] .tl__dot { transition: transform 420ms cubic-bezier(.34, 1.56, .64, 1), opacity 200ms ease-out; }
[data-tl-ready] .tl__item:not(.is-in) .tl__dot { opacity: 0; transform: scale(.3); }
[data-tl-ready] .tl__body { transition: opacity 500ms cubic-bezier(.2, .8, .2, 1) 90ms, transform 600ms cubic-bezier(.2, .8, .2, 1) 90ms, background-color 200ms var(--ease); }
[data-tl-ready] .tl__item:not(.is-in) .tl__body { opacity: 0; transform: translateY(18px); }
[data-tl-ready] .tl__tags li { transition: opacity 300ms ease-out calc(260ms + var(--j, 0) * 45ms), transform 360ms cubic-bezier(.2, .8, .2, 1) calc(260ms + var(--j, 0) * 45ms); }
[data-tl-ready] .tl__item:not(.is-in) .tl__tags li { opacity: 0; transform: translateY(6px); }
[data-tl-ready] .tl__fill { transition: transform 120ms linear; }
/* a desktop: the degrees stay in view beside the roles */
@media (min-width: 1024px) { #experience .tl-side { position: sticky; top: calc(var(--nav) + var(--s-6)); align-self: start; } }
/* a tablet and a phone: the gutter is narrower, so the rail and smaller dots sit closer */
@media (max-width: 1023px) { .tl__track { --tl-g: 30px; } }
@media (max-width: 639px) {
  .tl__track { --tl-g: 19px; }
  .tl__rail { left: calc(-1 * var(--tl-g) + 5px); width: 2px; }
  .tl__dot { width: 12px; height: 12px; top: 14px; }
  .tl__dot::after { inset: 3px; }
  /* a phone reads the compact timeline: when, the role, where and what it delivered (the summary and the
     stack stay on the larger screens), so both timelines fit two phone screens */
  .tl__sum, .tl__tags { display: none; }
  .tl--edu .tl__sum { display: none; }
  .tl__list { gap: var(--s-3); }
  .tl__body { padding-block: var(--s-2); }
  .tl__head { margin-bottom: var(--s-4); }
  #experience .tl-grid { row-gap: var(--s-7); }
}
@media (prefers-reduced-motion: reduce) { .tl__item.is-now .tl__dot::before { animation: none; } }

/* ---------- Footer: one screen, the availability set large at the top, the links at the foot ---------- */
.footer__statement { margin: 0; max-width: 22ch; font: var(--display-weight) var(--t-h1)/1.08 var(--font-display); letter-spacing: var(--display-tracking); }

/* ---------- Contact form: Cloudflare Turnstile (unseen unless Cloudflare asks for a click) ---------- */
.form__captcha:empty { display: none; }
.form__captcha iframe { max-width: 100%; }
