/* Hallmark · shape: Name-Stage (a giant name with the owner's cut-out portrait standing in front, then proof, services, the work index) · genre: editorial · theme: Ink (deal 3/3, seed plain-white-professional-personal-7d87·77d62bb4·2026-11-07·r0) · job: hire · draw: fe1088 (shape and hero chosen by the owner from Dribbble references)
 * hero: custom stage (name across the full width, portrait over it, head and actions above) · nav: edge-aligned · footer: colophon · imagery: photographs (the owner's portrait, background removed) · signature: the portrait standing in front of the name · ink: paper
 * axes: light/grotesk-sans/chromatic-teal · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: S, a name-and-portrait hero is a common portfolio move; made it specific with the accountant's real figures directly under it and the searchable work index */
/* Hallmark · waive 1 · system grotesk stack as display · the owner asked for no third-party font downloads, so the accountant's page stays self-contained */
/* Hallmark · waive 44c · the hero is a stage, its visual is the portrait over the name filling the screen below the head block · the measured text ends early by design */
/* Hallmark · waive 79 · the giant Sarvpreet name and the portrait fill the screen under the head block · Sarvpreet standing in front of the name is the visual, set big, never copy */
/* Hallmark · waive 77 · the Hello, I’m Sarvpreet section is a two-tone statement across eight columns, as in the Cole Adrian reference · its mass is the type itself */
/* Hallmark · waive 39b · the salary input stands 88px tall · the salary figure is the estimator’s one control, set at display size so the number reads like the result */
/* Hallmark · dismissed 58 · the extra words are the sample meeting notes inside the demo textarea, input for visitors to edit rather than page copy */
/* Hallmark · waive 22 · ink and greys at zero chroma · a notice board is printed in plain black, as the Ink theme sets it */
/* fonts.css, tokens.css and base.css are linked from index.html so they load in parallel */

/* ---------- Nav: floating pill ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); padding-block: var(--space-sm); }
.nav .container { min-height: 72px; display: flex; align-items: center; }
.pill {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); width: 100%;
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--color-paper) 88%, transparent); backdrop-filter: blur(10px);
}
.pill .btn { border-radius: var(--radius-pill); }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.nav ul { display: flex; align-items: center; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.nav ul a:not(.btn) { font-weight: 600; text-decoration: none; color: var(--color-ink-2); transition: color var(--dur-micro) var(--ease-out); }
.nav ul a:not(.btn):hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule); border-radius: 10px; background: var(--color-paper-2); color: var(--color-ink);
  font: 600 var(--text-md)/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.btn:hover { border-color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.btn--primary:hover { background: var(--color-ink-2); }
.nav .btn { min-height: 40px; padding: 0 var(--space-md); }

/* ---------- Hero: the name stage ---------- */
section.hero { padding-block: 0; border-bottom: var(--rule-hair) solid var(--color-ink); }
.hero .container { display: grid; grid-template-rows: auto minmax(0, 1fr); height: calc(100dvh - 96px); min-height: 640px; max-height: 1080px; padding-top: var(--space-xl); }
.hero-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-lg); align-items: end; }
.hero h1 { grid-column: 1 / 9; font-size: var(--text-display-s); line-height: 1.02; max-width: none; }
.hero-side { grid-column: 9 / 13; display: grid; gap: var(--space-lg); }
.hero-side .lead { color: var(--color-ink-2); font-size: var(--text-lg); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.stage { position: relative; overflow: clip; display: flex; justify-content: center; align-items: flex-end; min-height: 0; margin-top: var(--space-xl); }
.bigname {
  position: absolute; inset-inline: 0; bottom: 0; z-index: var(--z-base); margin: 0;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.055em; line-height: 0.74;
  font-size: clamp(4.5rem, 21.5vw, 19.5rem); color: var(--color-ink); white-space: nowrap; text-align: center;
  user-select: none;
}
.portrait { position: relative; z-index: var(--z-raised); margin: 0; height: 100%; max-height: 470px; aspect-ratio: 1; }
.portrait img { height: 100%; width: auto; }
.portrait img { aspect-ratio: 1; object-fit: contain; }
.badges { position: absolute; inset: 0; pointer-events: none; }
.badge {
  position: absolute; display: inline-flex; align-items: center; gap: var(--space-xs);
  background: var(--color-paper); border: 0;
  box-shadow: var(--shadow-card); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; white-space: nowrap;
}
.badge--pill { padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); }
.badge--in { background: var(--color-accent-soft); border-color: var(--color-accent-soft); color: var(--color-accent-soft-ink); }
.badge--card { flex-direction: column; align-items: flex-start; gap: var(--space-3xs); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); top: 30%; right: 88%; }
.badge--card strong { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; letter-spacing: -0.03em; color: var(--color-accent); }
.badge--card span { font-weight: 400; color: var(--color-ink-2); }
.badges .badge--pill:nth-of-type(2) { top: 22%; left: 86%; }
.badges .badge--pill:nth-of-type(3) { top: 46%; left: 90%; }

/* About: two-tone statement */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: start; }
.about h2 { grid-column: 1 / 5; }
.statement { grid-column: 5 / 13; font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl); line-height: 1.22; letter-spacing: -0.025em; color: var(--color-ink); max-width: 32ch; }
.statement span { color: var(--color-muted); }

/* ---------- Sections ---------- */
section { padding-block: var(--section-gap) 0; }

/* Proof strip */
section.proof { padding-block: var(--section-gap-s) 0; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.figures div { padding-inline: var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.figures div:first-child { padding-left: 0; border-left: 0; }
.figures div:last-child { padding-right: 0; }
.figures dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--text-display-s); line-height: 1; letter-spacing: -0.04em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.figures dt { margin-top: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); max-width: 22ch; }
.figures div:first-child dd { color: var(--color-accent); }

/* What I do: bento */
.do h2 { margin-bottom: var(--space-2xl); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-2xl); min-height: 260px; padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); }
.tile:nth-child(1) { grid-column: 1 / 6; }
.tile:nth-child(2) { grid-column: 6 / 13; }
.tile--ink { grid-column: 1 / 13; min-height: 280px; background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.tile h3 { font-size: var(--text-2xl); }
.tile--ink h3 { color: var(--color-paper); }
.tile p { color: var(--color-ink-2); max-width: 44ch; }
.tile--ink p { color: var(--color-paper-3); }
.tile--ink .split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); }
.tag { display: inline-flex; padding: var(--space-3xs) var(--space-sm); border-radius: var(--radius-pill); background: var(--color-paper-3); font-size: var(--text-xs); font-weight: 600; color: var(--color-ink-2); }
.tag--in { background: var(--color-accent-soft); color: var(--color-accent-soft-ink); }
.tile--ink .tag { background: var(--color-ink-2); color: var(--color-paper); }

/* The work index */
.index-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; row-gap: var(--space-lg); }
.index-head h2 { grid-column: 1 / 8; }
.index-head .lead { grid-column: 8 / 13; color: var(--color-ink-2); }
.timeline { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; border-top: var(--rule-hair) solid var(--color-ink); }
.tl-year {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: var(--gap-columns);
  padding-top: var(--space-xl);
}
.tl-yr {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display);
  font-size: var(--text-2xl); line-height: 1; font-variant-numeric: tabular-nums; color: var(--color-ink);
}
.tl-items { list-style: none; margin: 0; padding: 0 0 var(--space-xl) var(--space-xl); border-left: 2px solid var(--color-rule); }
.tl-item { position: relative; padding-bottom: var(--space-lg); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(var(--space-xl) * -1 - 7px); top: 0.55em;
  width: 12px; height: 12px; border-radius: 50%; background: var(--color-paper); border: 2px solid var(--color-muted);
}
.tl-item--lead::before { background: var(--color-accent); border-color: var(--color-accent); }
.tl-item h3 { font-size: var(--text-title); display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.tl-item--lead h3 { font-size: var(--text-2xl); }
.tl-item p { color: var(--color-ink-2); max-width: 60ch; margin-top: var(--space-2xs); }
.tl-item .tl-where { color: var(--color-muted); font-size: var(--text-sm); font-weight: 600; }
.tl-now {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0;
  padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill);
  background: var(--color-accent-soft); color: var(--color-accent-soft-ink);
}

/* Close */
.close { margin-top: var(--section-gap-l); padding-block: var(--section-gap-s); background: var(--color-ink); color: var(--color-paper); }
.close h2 { color: var(--color-paper); }
.close .mail {
  display: inline-block; margin-top: var(--space-xl);
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(1.15rem, 5.4vw, 5rem); color: var(--color-paper); white-space: nowrap; text-decoration-thickness: 2px; text-underline-offset: 0.12em;
}
.close .mail:hover { text-decoration-color: var(--color-accent-soft); }
.close .meta { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); margin-top: var(--space-xl); color: var(--color-paper-3); }
.close .gh { color: var(--color-paper); font-weight: 600; }
.close .gh:hover { text-decoration-color: var(--color-accent-soft); }

/* Footer: colophon */
.foot { padding-block: var(--space-xl); font-size: var(--text-sm); color: var(--color-ink-2); }

/* ---------- Under 60rem ---------- */
@media (max-width: 60rem) {
  .nav ul li.wide { display: none; }
  .badges { display: none; }
  .about h2, .statement { grid-column: 1 / -1; }
  .statement { font-size: var(--text-2xl); }
  .hero .container { height: auto; min-height: 0; max-height: none; }
  .portrait { height: auto; }
  .portrait img { width: 100%; height: auto; }
  .hero h1, .hero-side, .index-head h2, .index-head .lead { grid-column: 1 / -1; }
  .portrait { width: min(54vw, 320px); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .figures div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures div:nth-child(2) { padding-right: 0; }
  .tile:nth-child(1), .tile:nth-child(2), .tile--ink { grid-column: 1 / -1; min-height: 0; }
  .tile--ink .split { grid-template-columns: 1fr; }
  .tl-year { grid-template-columns: 1fr; gap: var(--space-md); }
  .tl-items { padding-left: var(--space-lg); }
  .tl-item::before { left: calc(var(--space-lg) * -1 - 7px); }
}
@media (max-width: 40rem) {
  .hero h1 br { display: none; }
  .wordmark { font-size: var(--text-md); }
  .pill { padding-left: var(--space-md); gap: var(--space-sm); }
}

/* ---------- Shared split head ---------- */
.split-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: end; margin-bottom: var(--space-2xl); }
.split-head h2 { grid-column: 1 / 8; }
.split-head .lead { grid-column: 8 / 13; color: var(--color-ink-2); }
a.inline { font-weight: 600; }
a.inline:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }

/* ---------- Automation demo ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: stretch; }
.demo-in { display: grid; gap: var(--space-sm); align-content: start; }
.demo-in label { font-size: var(--text-sm); color: var(--color-ink-2); }
.demo-in textarea {
  width: 100%; min-height: 260px; resize: vertical; padding: var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card);
  background: var(--color-paper); color: var(--color-ink); font: var(--text-sm)/1.7 var(--font-outlier);
}
.demo-in textarea:focus-visible, .money input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.demo-out { padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); min-height: 340px; }
.demo-status { color: var(--color-ink-2); font-size: var(--text-sm); }
.tasks { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.task { display: grid; gap: var(--space-xs); padding: var(--space-md); border-radius: 10px; background: var(--color-paper); box-shadow: inset 3px 0 0 var(--color-accent); opacity: 0; transform: translateY(8px); animation: rise var(--dur-long) var(--ease-out) forwards; animation-delay: calc(var(--i) * 90ms); }
.task .owner { font-weight: 700; color: var(--color-ink); }
.task p { color: var(--color-ink-2); font-size: var(--text-sm); }
.task .due { font-size: var(--text-xs); font-weight: 600; color: var(--color-accent-soft-ink); background: var(--color-accent-soft); justify-self: start; padding: var(--space-3xs) var(--space-sm); border-radius: var(--radius-pill); }
.task .due--none { background: var(--color-paper-3); color: var(--color-ink-2); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- GitHub repos ---------- */
.repos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.repo a { display: flex; flex-direction: column; gap: var(--space-xs); height: 100%; min-height: 200px; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); text-decoration: none; transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.repo a:hover { border-color: var(--color-ink); transform: translateY(-2px); }
.repo strong { font-family: var(--font-display); font-size: var(--text-title); letter-spacing: -0.02em; color: var(--color-ink); }
.repo span { color: var(--color-ink-2); font-size: var(--text-sm); }
.repo .meta-row { margin-top: auto; display: flex; gap: var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); }
.repo--static a { background: var(--color-paper); border-style: dashed; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.quick-label { margin-top: var(--space-xl); color: var(--color-paper-3); font-size: var(--text-sm); }
.quick { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-muted); color: var(--color-paper); font-weight: 600; font-size: var(--text-sm); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.chip:hover { background: var(--color-paper); color: var(--color-ink); }
.close .ghl { color: var(--color-paper); font-weight: 600; }
.close .mail { font-size: clamp(1.15rem, 3.4vw, 3.25rem); }
.cform { display: grid; gap: var(--space-md); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-ink-2); }
.f { display: grid; gap: var(--space-2xs); }
.f label { font-size: var(--text-sm); color: var(--color-paper-3); }
.f input, .f select, .f textarea { min-height: 48px; padding: var(--space-sm) var(--space-md); border-radius: 10px; border: var(--rule-hair) solid var(--color-muted); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); }
.f textarea { resize: vertical; }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: 2px solid var(--color-accent-soft); outline-offset: 2px; }
.f [aria-invalid="true"] { border-color: var(--color-error); }
.btn--light { background: var(--color-paper); border-color: var(--color-paper); color: var(--color-ink); justify-self: start; }
.btn--light:hover { background: var(--color-paper-3); }
.form-status { min-height: 1lh; font-size: var(--text-sm); color: var(--color-paper-3); }

/* Custom topic dropdown (enhances the native select) */
.dd { position: relative; }
.dd-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dd-btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); width: 100%;
  min-height: 48px; padding: var(--space-sm) var(--space-md); border-radius: 10px;
  border: var(--rule-hair) solid var(--color-muted); background: var(--color-paper); color: var(--color-ink);
  font: inherit; font-size: var(--text-md); text-align: left; cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease-out);
}
.dd-btn:hover { border-color: var(--color-ink); }
.dd-btn:focus-visible { outline: 2px solid var(--color-accent-soft); outline-offset: 2px; }
.dd-chev { flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.dd-btn[aria-expanded="true"] .dd-chev { transform: translateY(2px) rotate(-135deg); }
.dd-list {
  position: absolute; z-index: var(--z-dropdown); left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: var(--space-2xs); list-style: none; border-radius: 12px;
  background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); box-shadow: var(--shadow-card);
  opacity: 0; transform: translateY(-4px); visibility: hidden;
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short);
}
.dd.is-open .dd-list { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.dd-opt {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  min-height: 44px; padding: 0 var(--space-md); border-radius: 8px; cursor: pointer; color: var(--color-ink);
}
.dd-opt.is-active { background: var(--color-paper-3); }
.dd-opt[aria-selected="true"] { font-weight: 600; color: var(--color-accent-soft-ink); }
.dd-opt[aria-selected="true"]::after { content: ""; width: 6px; height: 11px; border-right: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); transform: translateY(-2px) rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .dd-list, .dd-chev { transition: none; } }

@media (max-width: 60rem) {
  .split-head h2, .split-head .lead { grid-column: 1 / -1; }
  .demo-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .tasks { grid-template-columns: minmax(0, 1fr); }
  .repos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .repos { grid-template-columns: minmax(0, 1fr); }
  .demo-out, .cform { padding: var(--space-lg); }
}
.gh { margin-top: var(--space-3xl); }
.gh-title { margin-bottom: var(--space-lg); font-size: var(--text-2xl); }

/* ---------- Mona Sans widths: condensed for display, normal for reading ---------- */
body { font-stretch: 100%; }
h1, h2, h3, .wordmark, .bigname, .statement, .figures dd, .badge--card strong, .repo strong, .close .mail, .tl-yr { font-stretch: 75%; letter-spacing: -0.01em; }
.bigname { font-weight: 800; letter-spacing: -0.02em; line-height: 0.8; }

/* ---------- Nav wordmark: lowercase first name, normal width ---------- */
.wordmark { display: inline-flex; align-items: baseline; font-stretch: 100%; font-weight: 600; font-size: var(--text-xl); letter-spacing: -0.03em; color: var(--color-ink); }
.wm-dot { color: var(--color-accent); transition: color var(--dur-short) var(--ease-out); }
.wordmark:hover .wm-dot { color: var(--color-ink); }
@media (max-width: 40rem) { .wordmark { font-size: var(--text-lg); } }

/* =====================================================================
   Lime accent + motion
   Lime (--color-pop) is used as a fill only; text accents on white use olive (--color-accent).
   ===================================================================== */
::selection { background: var(--color-pop); color: var(--color-pop-ink); }

/* Buttons: lime variant and a fill sweep on hover */
.btn { position: relative; isolation: isolate; overflow: hidden; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--color-pop); transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-long) var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); }
.btn:hover { border-color: var(--color-ink); color: var(--color-pop-ink); }
.btn--primary:hover { background: var(--color-ink); }
.btn--primary:hover { color: var(--color-pop-ink); }
.btn--pop { background: var(--color-pop); border-color: var(--color-pop); color: var(--color-pop-ink); }
.btn--pop::before { background: var(--color-ink); }
.btn--pop:hover { color: var(--color-paper); border-color: var(--color-ink); }
.cform .btn--pop { justify-self: start; }

/* Hero: highlighter that draws itself behind "Busywork by code." */
.hl {
  background-image: linear-gradient(var(--color-pop), var(--color-pop));
  background-repeat: no-repeat; background-position: 0 88%; background-size: 100% 0.42em;
  padding-inline: 0.04em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.badge--in { background: var(--color-pop); color: var(--color-pop-ink); }

/* Figures: lime underline under each number */
.figures dd { position: relative; padding-bottom: var(--space-sm); }
.figures dd::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 40px; border-radius: 4px;
  background: var(--color-pop); transform-origin: left center;
}

/* Cards: lift on hover */
.tile, .repo a { transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.tile:hover, .repo a:hover { transform: translateY(-6px); box-shadow: 0 18px 40px oklch(20% 0 0 / 0.10); }
.repo a:hover { border-color: var(--color-pop-2); }
.tile--ink .tag { background: var(--color-pop); color: var(--color-pop-ink); }
.tile--ink h3 { color: var(--color-pop); }
.tile--ink:hover { box-shadow: 0 18px 40px oklch(20% 0 0 / 0.18), 0 0 0 2px var(--color-pop); }

/* Timeline: lime dots, line that draws as you scroll */
.tl-items { position: relative; border-left-color: transparent; }
.tl-items::before {
  content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--color-rule);
}
.tl-items::after {
  content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--color-ink);
  transform: scaleY(var(--draw, 1)); transform-origin: top center;
}
.tl-item::before { z-index: 1; transition: background-color var(--dur-long) var(--ease-out), border-color var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.tl-item.is-in::before { background: var(--color-pop); border-color: var(--color-ink); }
.tl-item--lead::before { background: var(--color-pop); border-color: var(--color-ink); }
.tl-now { background: var(--color-pop); color: var(--color-pop-ink); }

/* Contact band */
.close .pop { color: var(--color-pop); }
.close .mail:hover, .close .gh:hover { text-decoration-color: var(--color-pop); }
.chip:hover { background: var(--color-pop); border-color: var(--color-pop); color: var(--color-pop-ink); }
.task { box-shadow: inset 3px 0 0 var(--color-pop-2); }

/* ---------- Motion (only when JS is on and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal */
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Hero load-in */
  .js .bigname .ch { display: inline-block; transform: translateY(105%); animation: ch-up 900ms var(--ease-out) forwards; animation-delay: calc(200ms + var(--i) * 55ms); }
  .js .portrait { animation: fade-up 1000ms var(--ease-out) 350ms both; }
  .js .badge { animation: pop-in 600ms var(--ease-out) both; }
  .js .badge--card { animation-delay: 900ms; }
  .js .badges .badge--pill:nth-of-type(2) { animation-delay: 1050ms; }
  .js .badges .badge--pill:nth-of-type(3) { animation-delay: 1200ms; }
  .js .hero-top { animation: fade-up 800ms var(--ease-out) both; }
  .js .hl { background-size: 0% 0.42em; animation: hl-draw 900ms var(--ease-out) 700ms forwards; }

  /* Figures underline grows when shown */
  .js .figures dd::after { transform: scaleX(0); transition: transform 900ms var(--ease-out) 200ms; }
  .js .figures .is-in dd::after { transform: scaleX(1); }

  /* Timeline dots pop when reached */
  .js .tl-item::before { transform: scale(0.4); }
  .js .tl-item.is-in::before { transform: scale(1); }

  /* Badges float gently */
  .js .badge--card { animation: pop-in 600ms var(--ease-out) 900ms both, float 6s ease-in-out 1.6s infinite; }
}
@keyframes ch-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes hl-draw { to { background-size: 100% 0.42em; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .btn::before, .tile, .repo a, .tl-item::before { transition: none; }
  .tl-items::after { transform: none; }
}

/* ---------- Services bento v2: automation band, then four tiles ---------- */
.bento > .tile { grid-column: span 6; min-height: 220px; }
.bento > .tile--ink { grid-column: 1 / -1; min-height: 280px; }
@media (max-width: 60rem) { .bento > .tile, .bento > .tile--ink { grid-column: 1 / -1; min-height: 0; } }

/* ---------- Case study ---------- */
.case-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.case-steps li { position: relative; padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); }
.case-steps li:nth-child(3) { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.case-steps li:nth-child(3) h3 { color: var(--color-pop); }
.case-steps li:nth-child(3) p { color: var(--color-paper-3); }
.case-n {
  display: inline-grid; place-items: center; min-width: 48px; height: 32px; padding-inline: var(--space-sm); border-radius: var(--radius-pill);
  background: var(--color-pop); color: var(--color-pop-ink); font-weight: 700; font-size: var(--text-sm); font-variant-numeric: tabular-nums;
}
.case-steps h3 { margin-top: var(--space-lg); font-size: var(--text-2xl); }
.case-steps p { margin-top: var(--space-sm); color: var(--color-ink-2); }
.case-link { margin-top: var(--space-xl); }
@media (max-width: 60rem) { .case-steps { grid-template-columns: minmax(0, 1fr); } }

/* Honeypot field for the contact form (hidden from people) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Mona Sans tabular digits look monospaced; use proportional digits for display numbers */
.figures dd, .case-n, .tl-yr { font-variant-numeric: normal; }

/* ---------- STM case study screenshots: compact row of three ---------- */
.case-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-xl); }
.shot { margin: 0; }
.shot a { display: block; border-radius: 10px; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 10px;
  border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2);
  box-shadow: 0 10px 24px oklch(20% 0 0 / 0.08);
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.shot a:hover img { transform: translateY(-4px); box-shadow: 0 16px 32px oklch(20% 0 0 / 0.12), 0 0 0 2px var(--color-pop); }
.shot a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.shot figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.case-note { margin-top: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }
@media (max-width: 60rem) { .case-shots { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } }

/* =====================================================================
   Phone view
   ===================================================================== */
/* Menu button + panel (shown under 60rem, where the nav links are hidden) */
.menu-li { display: none; }
.menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); color: var(--color-ink); cursor: pointer;
}
.menu-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out);
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
.pill { position: relative; }
.menu-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: var(--z-dropdown);
  display: grid; padding: var(--space-xs); border-radius: 20px;
  background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); box-shadow: var(--shadow-card);
}
.menu-panel[hidden] { display: none; }
.menu-panel a {
  display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-md); border-radius: 12px;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: var(--text-xl);
  color: var(--color-ink); text-decoration: none;
}
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--color-pop); outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .menu-panel:not([hidden]) { animation: pop-in 220ms var(--ease-out); }
}

@media (max-width: 60rem) {
  .menu-li { display: block; }
  .nav ul { gap: var(--space-xs); }

  /* Hero: name sits above the portrait instead of hidden behind it */
  .stage { flex-direction: column; align-items: center; margin-top: var(--space-lg); }
  .bigname { position: relative; inset: auto; font-size: clamp(3.5rem, 23vw, 9rem); line-height: 0.82; margin-bottom: -0.12em; }
  .portrait { width: min(62vw, 300px); }

  /* Cards: no big empty gap between heading and text */
  .tile { gap: var(--space-sm); padding: var(--space-lg); justify-content: flex-start; }
  .tile--ink .split { gap: var(--space-md); }
  .bento { gap: var(--space-md); }
  .case-steps { gap: var(--space-md); }
  .case-steps li { padding: var(--space-lg); }
  .case-steps h3 { margin-top: var(--space-md); }

  /* Empty boxes shrink to fit */
  .demo-out { min-height: 140px; }
  .demo-in textarea { min-height: 180px; }
  .repo a { min-height: 0; }
  .repos { gap: var(--space-md); }
}
@media (max-width: 40rem) {
  .statement { font-size: var(--text-xl); }
  .index-head .lead, .split-head .lead { font-size: var(--text-md); }
  .figures dd { font-size: var(--text-3xl); }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .close .mail { font-size: clamp(1.5rem, 8vw, 2.25rem); white-space: normal; overflow-wrap: anywhere; }
  .quick .chip { flex: 1 1 auto; justify-content: center; }
  .cform .btn--pop { justify-self: stretch; justify-content: center; }
  .tl-item--lead h3 { font-size: var(--text-xl); }
}

/* Footer: slim strip */
.foot { padding-block: var(--space-lg); font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink-2); }

/* ---------- Page travel ---------- */
/* Thin lime progress bar along the top edge */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: calc(var(--z-sticky-nav) + 1); pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--color-pop); transform: scaleX(0); transform-origin: left center; box-shadow: 0 0 8px var(--color-pop); }

/* Current section in the nav: lime underline that slides in */
.nav ul a:not(.btn) { position: relative; }
.nav ul a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px;
  background: var(--color-pop); transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-long) var(--ease-out);
}
.nav ul a:not(.btn).is-current { color: var(--color-ink); }
.nav ul a:not(.btn).is-current::after, .nav ul a:not(.btn):hover::after { transform: scaleX(1); }
.nav ul a:not(.btn):hover { text-decoration: none; }
.menu-panel a.is-current { background: var(--color-paper-3); }

/* Arrival: the section heading gets a lime highlighter sweep */
h2.is-arriving {
  background-image: linear-gradient(var(--color-pop), var(--color-pop));
  background-repeat: no-repeat; background-position: 0 88%;
  animation: arrive-sweep 1500ms var(--ease-out) forwards;
  width: fit-content; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.close h2.is-arriving { background-image: linear-gradient(oklch(100% 0 0 / 0.18), oklch(100% 0 0 / 0.18)); }
@keyframes arrive-sweep {
  0% { background-size: 0% 0.38em; }
  40% { background-size: 100% 0.38em; }
  75% { background-size: 100% 0.38em; }
  100% { background-size: 100% 0em; }
}
[tabindex="-1"]:focus { outline: none; }

/* =====================================================================
   Card animations on scroll + cursor spotlight
   ===================================================================== */
/* Spotlight that follows the cursor on cards */
.tile, .case-steps li, .repo a { position: relative; isolation: isolate; overflow: hidden; }
.tile::after, .case-steps li::after, .repo a::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), oklch(92% 0.2 125 / 0.35), transparent 70%);
  opacity: 0; transition: opacity var(--dur-long) var(--ease-out);
}
.tile--ink::after, .case-steps li:nth-child(3)::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), oklch(92% 0.2 125 / 0.22), transparent 70%); }
.tile:hover::after, .case-steps li:hover::after, .repo a:hover::after { opacity: 1; }
.case-steps li { transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.case-steps li:hover { transform: translateY(-6px); box-shadow: 0 18px 40px oklch(20% 0 0 / 0.10); }

@media (prefers-reduced-motion: no-preference) {
  .js .bento, .js .case-steps, .js .repos { perspective: 1200px; }

  /* Service tiles: rise with a 3D tilt and a blur that clears */
  .js .bento > .tile[data-reveal] {
    opacity: 0; transform: translateY(56px) rotateX(14deg) scale(0.96); filter: blur(6px); transform-origin: 50% 100%;
    transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out), filter 900ms var(--ease-out);
    transition-delay: calc(var(--d, 0) * 110ms);
  }
  .js .bento > .tile[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

  /* Automation band: wipes open from the bottom, then tags pop in one by one */
  .js .bento > .tile--ink[data-reveal] { clip-path: inset(100% 0 0 0 round var(--radius-card)); transform: none; filter: none; opacity: 1; transition: clip-path 1000ms var(--ease-in-out); }
  .js .bento > .tile--ink[data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--radius-card)); }
  .js .tile--ink .tag { opacity: 0; transform: translateY(10px) scale(0.8); transition: opacity 400ms var(--ease-out), transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1); }
  .js .tile--ink.is-in .tag, .js .tile--ink.is-settled .tag { opacity: 1; transform: none; }
  .js .tile--ink .tag:nth-child(1) { transition-delay: 650ms; }
  .js .tile--ink .tag:nth-child(2) { transition-delay: 740ms; }
  .js .tile--ink .tag:nth-child(3) { transition-delay: 830ms; }
  .js .tile--ink .tag:nth-child(4) { transition-delay: 920ms; }

  /* Case study steps: slide in from alternating sides, number badge bounces in */
  .js .case-steps > li[data-reveal] { opacity: 0; transform: translateX(-60px) rotate(-2deg); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 140ms); }
  .js .case-steps > li[data-reveal]:nth-child(2) { transform: translateY(60px); }
  .js .case-steps > li[data-reveal]:nth-child(3) { transform: translateX(60px) rotate(2deg); }
  .js .case-steps > li[data-reveal].is-in { opacity: 1; transform: none; }
  .js .case-steps .case-n { transform: scale(0); transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1); }
  .js .case-steps > li.is-in .case-n, .js .case-steps > li.is-settled .case-n { transform: scale(1); }
  .js .case-steps > li:nth-child(1) .case-n { transition-delay: 450ms; }
  .js .case-steps > li:nth-child(2) .case-n { transition-delay: 590ms; }
  .js .case-steps > li:nth-child(3) .case-n { transition-delay: 730ms; }

  /* Screenshots: drop in with a slight rotation, then settle */
  .js .case-shots > .shot[data-reveal] { opacity: 0; transform: translateY(40px) rotate(-3deg) scale(0.92); transition: opacity 800ms var(--ease-out), transform 1000ms cubic-bezier(0.34, 1.3, 0.64, 1); transition-delay: calc(var(--d, 0) * 120ms); }
  .js .case-shots > .shot[data-reveal]:nth-child(2) { transform: translateY(56px) scale(0.92); }
  .js .case-shots > .shot[data-reveal]:nth-child(3) { transform: translateY(40px) rotate(3deg) scale(0.92); }
  .js .case-shots > .shot[data-reveal].is-in { opacity: 1; transform: none; }

  /* GitHub cards: flip up into place */
  .js .repos > .repo[data-reveal] { opacity: 0; transform: rotateX(-70deg); transform-origin: 50% 0%; transition: opacity 600ms var(--ease-out), transform 900ms cubic-bezier(0.34, 1.3, 0.64, 1); transition-delay: calc(var(--d, 0) * 120ms); }
  .js .repos > .repo[data-reveal].is-in { opacity: 1; transform: none; }

  /* Timeline years slide in from the line */
  .js .tl-year[data-reveal] { transform: translateX(-24px); }
  .js .tl-year[data-reveal].is-in { transform: none; }

  /* Key figures: pop up */
  .js .figures > div[data-reveal] { transform: translateY(30px) scale(0.9); }
  .js .figures > div[data-reveal].is-in { transform: none; }
}

/* =====================================================================
   Effects inspired by Magic UI (magicui.design, MIT), rebuilt in plain CSS/JS
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 1. Dot Pattern behind the hero, fading out towards the edges */
section.hero { position: relative; isolation: isolate; }
section.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(oklch(16% 0 0 / 0.16) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

/* 3. Shiny Button: a sheen sweeps across the hero "Email me" every few seconds */
.btn--shiny::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, oklch(100% 0 0 / 0.38), transparent);
  transform: skewX(-18deg); animation: sheen 3.6s var(--ease-in-out) 1.5s infinite;
}
@keyframes sheen { 0% { left: -60%; } 45%, 100% { left: 130%; } }

/* 4. Marquee of tools */
.marquee { padding-block: var(--space-2xl) 0; }
.mq {
  display: flex; overflow: hidden; gap: var(--space-md);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mq-track { display: flex; flex: none; gap: var(--space-md); padding-block: var(--space-xs); animation: mq 38s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-item {
  display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2);
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: var(--text-xl); white-space: nowrap; color: var(--color-ink);
}
.mq-item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-pop); box-shadow: 0 0 0 2px var(--color-ink); }
@keyframes mq { to { transform: translateX(calc(-100% - var(--space-md))); } }

/* 5. Border Beam around the contact form */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cform { position: relative; isolation: isolate; }
.cform::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--beam), transparent 0deg 290deg, oklch(92% 0.2 125 / 0.2) 310deg, var(--color-pop) 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 6s linear infinite;
}
@keyframes beam { to { --beam: 360deg; } }

/* 6. Safari-style browser frame around the STM screenshots */
.browser { border-radius: 10px; overflow: hidden; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); box-shadow: 0 10px 24px oklch(20% 0 0 / 0.08); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--color-paper-2); border-bottom: var(--rule-hair) solid var(--color-rule); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-url { flex: 1; margin-left: 8px; padding: 2px 10px; border-radius: 6px; background: var(--color-paper-3); font-size: 11px; color: var(--color-muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot .browser img { border: 0; border-radius: 0; box-shadow: none; transform: none; }
.shot a:hover .browser { transform: translateY(-4px); box-shadow: 0 16px 32px oklch(20% 0 0 / 0.12), 0 0 0 2px var(--color-pop); }
.shot a:hover .browser img { transform: none; box-shadow: none; }

/* 7. Hyper Text on the wordmark */
.wordmark .ht { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .btn--shiny::after, .cform::before { animation: none; }
  .cform::before { display: none; }
  .mq { -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; }
  .mq-track { animation: none; flex-wrap: wrap; }
  .mq-track[aria-hidden="true"] { display: none; }
}
@media (max-width: 40rem) { .mq-item { font-size: var(--text-lg); padding-inline: var(--space-md); } }
.shot a { text-decoration: none; }

/* =====================================================================
   More Magic UI–style effects (rebuilt in plain CSS/JS)
   ===================================================================== */

/* Text Reveal: About statement lights up word by word while scrolling */
.statement .w { transition: opacity 260ms linear; }
.js .statement.tr-on .w { opacity: 0.16; }
.js .statement.tr-on .w.lit { opacity: 1; }

/* Text Animate: section headings blur in word by word */
@media (prefers-reduced-motion: no-preference) {
  .js h2 .tw { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(0.35em); transition: opacity 600ms var(--ease-out), filter 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(120ms + var(--i) * 70ms); }
  .js .is-in h2 .tw, .js h2.is-in .tw, .js .is-settled h2 .tw, .js h2.is-settled .tw { opacity: 1; filter: none; transform: none; }
}

/* Animated Beam: Email -> Power Automate -> Planner inside the Automation tile */
.beam-flow { display: flex; align-items: center; gap: 0; margin-top: var(--space-lg); max-width: 520px; }
.bf-node {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px;
  background: var(--color-ink-2); border: var(--rule-hair) solid oklch(100% 0 0 / 0.14); color: var(--color-paper);
  box-shadow: 0 0 0 0 oklch(92% 0.2 125 / 0); position: relative;
}
.bf-node svg { width: 28px; height: 28px; }
.bf-node--mid { width: 76px; height: 76px; border-radius: 22px; background: var(--color-pop); color: var(--color-pop-ink); border-color: var(--color-pop); }
.bf-node span { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); font-size: var(--text-xs); color: var(--color-paper-3); white-space: nowrap; }
.bf-wire { flex: 1; height: 2px; position: relative; background: oklch(100% 0 0 / 0.14); overflow: hidden; min-width: 40px; }
.bf-wire::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(90deg, transparent, var(--color-pop), transparent);
  animation: wire 2.2s var(--ease-in-out) infinite;
}
.bf-wire:nth-of-type(2)::after { animation-delay: 1.1s; }
@keyframes wire { from { left: -45%; } to { left: 100%; } }
.tile--ink .split { align-items: start; }
@media (min-width: 60.01rem) {
  .tile--ink { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: auto 1fr; column-gap: var(--gap-columns); }
  .tile--ink > h3 { grid-column: 1; }
  .tile--ink > .split { grid-column: 1; grid-row: 2; grid-template-columns: 1fr; align-self: end; }
  .tile--ink > .beam-flow { grid-column: 2; grid-row: 1 / 3; align-self: center; margin-top: 0; padding-bottom: var(--space-lg); }
}

/* Ripple on button press */
.ripple { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; background: currentColor; opacity: 0.25; transform: scale(0); animation: ripple 650ms var(--ease-out) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Pulsating dot on the current role in the timeline */
.tl-item--lead::before { animation: pulse-dot 2.2s var(--ease-out) infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 oklch(92% 0.2 125 / 0.75); }
  70% { box-shadow: 0 0 0 12px oklch(92% 0.2 125 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(92% 0.2 125 / 0); }
}

/* Retro Grid moving across the bottom of the black contact band */
.close { position: relative; overflow: hidden; isolation: isolate; }
.close::before {
  content: ""; position: absolute; left: -50%; right: -50%; bottom: 0; height: 75%; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, oklch(92% 0.2 125 / 0.32) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(92% 0.2 125 / 0.32) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(55deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 70%);
          mask-image: linear-gradient(to top, #000 0%, transparent 70%);
  animation: grid-move 14s linear infinite;
}
@keyframes grid-move { from { background-position: 0 0; } to { background-position: 0 640px; } }

@media (prefers-reduced-motion: reduce) {
  .bf-wire::after, .tl-item--lead::before, .close::before, .ripple { animation: none; }
  .bf-wire::after { left: 27%; }
  .ripple { display: none; }
}
@media (max-width: 40rem) {
  .bf-node { width: 52px; height: 52px; border-radius: 14px; }
  .bf-node--mid { width: 62px; height: 62px; }
  .bf-node svg { width: 22px; height: 22px; }
  .beam-flow { margin-bottom: var(--space-lg); }
}

/* =====================================================================
   Effects inspired by 21st.dev community components (rebuilt in plain CSS/JS)
   ===================================================================== */

/* Container Scroll Animation: the demo tilts back in 3D and flattens as you scroll to it */
.demo .container { perspective: 1400px; }
.demo-grid { transform-origin: 50% 0%; will-change: transform; }
.js .demo-grid.cs-on { transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); }

