/* ============================================================
   tokens
   ============================================================ */
:root {
  /* surfaces */
  --bg-0:  #0B0B11;
  --bg-1:  #12121A;
  --bg-2:  #181822;
  --bg-3:  #20202D;
  --bg-4:  #2A2A39;

  --rule:   #232331;
  --rule-2: #35354A;
  --rule-3: #4A4A66;

  /* ink */
  --ink:   #E9E6F2;
  --ink-2: #A6A2BC;
  --ink-3: #6F6B86;
  --ink-4: #4A475E;

  /* accents */
  --purple:      #B49DDB;
  --purple-deep: #8C76B8;
  --purple-soft: #6A557F;
  --orange:      #E89E64;
  --orange-deep: #C77E47;
  --cyan:        #7CC4D3;
  --red:         #D45F5F;

  /* type */
  --display: "Space Grotesk", -apple-system, system-ui, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --max:   1240px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
}

/* ============================================================
   base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* faint grid + ambient glow */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(180,157,219,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,157,219,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 90%);
}
body::after {
  content: "";
  position: fixed; top: -20%; right: -10%; width: 60vw; height: 60vw;
  background:
    radial-gradient(circle at 30% 40%, rgba(180,157,219,.10), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(232,158,100,.08), transparent 60%);
  filter: blur(40px);
  pointer-events: none; z-index: 0;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--purple); color: var(--bg-0); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative; z-index: 1;
}

section { padding: 7rem 0; position: relative; z-index: 1; scroll-margin-top: 64px; }

/* ============================================================
   header
   ============================================================ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(11,11,17,.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--rule);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand {
  font-family: var(--mono); font-weight: 500; font-size: .82rem;
  color: var(--ink); letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: .55rem;
}
.brand .sigil {
  display: inline-block; width: 18px; height: 18px;
  position: relative; border: 1px solid var(--purple);
}
.brand .sigil::before {
  content: ""; position: absolute; inset: 3px;
  background: var(--purple); opacity: .5;
}
.brand .slash { color: var(--purple); }

.nav-left { display: flex; align-items: center; gap: 1.25rem; }

.nav-social { display: flex; align-items: center; gap: 0.6rem; }
.nav-social a {
  display: flex; align-items: center;
  color: var(--ink-4);
  padding: 0.25rem;
  transition: color .15s ease;
}
.nav-social a:hover { color: var(--purple); }

.nav-links { display: flex; gap: .5rem; }
.nav-links a {
  font-family: var(--mono); font-size: .78rem;
  color: var(--ink-2); letter-spacing: .04em;
  padding: .4rem .75rem; border-radius: 3px;
  transition: color .15s ease, background-color .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a::before { content: "·"; color: var(--purple); margin-right: .4rem; opacity: .4; }

/* ============================================================
   navbar status pill (desktop) + portrait avatar (narrow)
   ============================================================ */
.nav-status {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2);
  padding: .4rem .75rem .4rem .65rem;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: rgba(20,20,30,.5);
  cursor: default;
  white-space: nowrap;
}
.nav-status .led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(232,158,100,.8);
  animation: pulse 2.6s ease-in-out infinite;
}
.nav-status .label { color: var(--ink-3); }
.nav-status .sep { color: var(--ink-4); }
.nav-status .tag { color: var(--ink); }

@keyframes pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: .45; }
}

.nav-avatar {
  display: none; /* hidden by default; revealed at narrow widths */
  position: relative;
  width: 40px; height: 40px;
  background: var(--bg-1);
  border: 1px solid var(--rule-2);
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color .15s ease;
}
.nav-avatar:hover { border-color: var(--purple); }
.nav-avatar .bracket {
  position: absolute; width: 6px; height: 6px;
  border: 1px solid var(--purple);
  pointer-events: none;
}
.nav-avatar .bracket.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.nav-avatar .bracket.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.nav-avatar .bracket.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.nav-avatar .bracket.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.nav-avatar .avatar-mono {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600;
  font-size: 1rem; letter-spacing: -.04em;
  background: linear-gradient(150deg, var(--purple) 10%, var(--orange) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-avatar::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(180,157,219,.25), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(232,158,100,.18), transparent 65%);
  pointer-events: none;
}

/* legacy .nav-cta block kept for safety in case anything still references it */
.nav-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-4);
  padding: .45rem .7rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  cursor: default;
}

@media (max-width: 780px) { .nav-links { display: none; } }

/* default: in-hero status hidden at desktop (navbar status takes the slot) */
.status { display: none; }

/* ============================================================
   hero
   ============================================================ */
.hero {
  padding-top: calc(64px + 5rem);
  padding-bottom: 6rem;
  position: relative; overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "name  stack"
    "tag   stack"
    "bot   stack";
  column-gap: 4rem;
  row-gap: 0;
  align-items: start;
}
.hero-name        { grid-area: name; }
.hero-tag         { grid-area: tag; }
.id-stack         { grid-area: stack; }
.hero-text-bottom { grid-area: bot; }

/* status strip — display is toggled by responsive blocks at end of file */
.status {
  align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2);
  padding: .4rem .75rem .4rem .65rem;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: rgba(20,20,30,.4);
  margin-bottom: 2.5rem;
}
.status .led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
}
.status .sep { color: var(--ink-4); }
.status .tag { color: var(--ink-2); }

/* name */
.title-block { position: relative; }
.title-block::before {
  content: ">_";
  position: absolute; left: -1.2em; top: .45em;
  font-family: var(--mono); font-size: .7rem; color: var(--ink-4);
  letter-spacing: .06em;
}

h1.name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 7.5vw, 6.25rem);
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  overflow: visible;
}
h1.name .word {
  display: block;
  overflow: visible;
}
/* The gradient "Brodsky" word uses -webkit-background-clip: text, so its
   gradient region is bound to the element's box. The 'y' descender drops
   below the line box — padding-bottom extends the box (and thus the
   gradient) down through the descender, preventing visual clipping. */
h1.name .word.accent {
  padding-bottom: 0.22em;
}
h1.name .accent {
  background: linear-gradient(100deg, var(--purple) 0%, var(--orange) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-tag {
  font-family: var(--mono); font-size: .78rem;
  color: var(--ink-2); letter-spacing: .06em;
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding-top: 0.5rem;
}
.hero-tag .pipe { color: var(--ink-4); }
.hero-tag .role { color: var(--purple); }
.hero-tag .role2 { color: var(--orange); }

.hero-lede {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.65vw, 1.4rem);
  font-weight: 400;
  line-height: 1.45; color: var(--ink);
  max-width: 36ch; text-wrap: balance;
  margin-bottom: 1.5rem;
  letter-spacing: -.01em;
}
.hero-lede .em { color: var(--purple); }
.hero-lede .em2 { color: var(--orange); }

.hero-body {
  color: var(--ink-2); font-size: .95rem; line-height: 1.7;
  max-width: 48ch; text-wrap: pretty;
  margin-bottom: 2.5rem;
}
.hero-body .term {
  font-family: var(--mono); font-size: .88em;
  color: var(--purple);
  background: rgba(180,157,219,.08);
  padding: .05em .35em; border-radius: 2px;
  border: 1px solid rgba(180,157,219,.15);
}

.cta-row { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .04em;
  color: var(--bg-0); background: var(--purple);
  padding: .85rem 1.25rem;
  border-radius: 3px;
  transition: background-color .15s ease, transform .15s ease, box-shadow .25s ease;
  box-shadow: 0 0 0 1px rgba(180,157,219,.3), 0 8px 28px -8px rgba(180,157,219,.4);
}
.btn-primary:hover {
  background: #C7B0EA; transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(180,157,219,.5), 0 12px 36px -8px rgba(180,157,219,.55);
}
.btn-primary .arr { transition: transform .2s ease; }
.btn-primary:hover .arr { transform: translate(2px, 2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .04em;
  color: var(--ink);
  padding: .85rem 1rem;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); background: rgba(232,158,100,.05); }

/* portrait + id card */
.id-stack {
  display: flex; flex-direction: column; gap: 1rem;
  position: relative;
}

.portrait-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%; max-width: 360px;
  background: var(--bg-1);
  border: 1px solid var(--rule-2);
  overflow: hidden;
  align-self: flex-end;
}

.portrait-cell .bracket {
  position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--purple);
  pointer-events: none;
}
.portrait-cell .bracket.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.portrait-cell .bracket.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.portrait-cell .bracket.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.portrait-cell .bracket.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.portrait-inner {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(180,157,219,.18), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(232,158,100,.14), transparent 60%),
    var(--bg-1);
}
.portrait-inner::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}
/* edge-fade vignette composited over the photo */
.portrait-inner::after {
  content: ""; position: absolute; inset: 7%; z-index: 2;
  border-radius: 8px;
  pointer-events: none;
  background:
    linear-gradient(to right,  transparent 0%, transparent 70%, var(--bg-1) 100%),
    linear-gradient(to bottom, transparent 0%, transparent 70%, var(--bg-1) 100%),
    linear-gradient(to left,   transparent 0%, transparent 70%, var(--bg-1) 100%),
    linear-gradient(to top,    transparent 0%, transparent 70%, var(--bg-1) 100%);
}
.portrait-photo {
  position: absolute; inset: 7%;
  width: 86%; height: 86%;
  object-fit: cover; object-position: center 30%;
  border-radius: 8px;
}
.portrait-cell .corners {
  position: absolute; left: .6rem; right: .6rem; top: .6rem; bottom: .6rem;
  display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none;
}
.portrait-cell .corners-bottom {
  position: absolute; left: .6rem; right: .6rem; bottom: .6rem;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--mono); font-size: .62rem;
  color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase;
  pointer-events: none;
}
.portrait-cell .corners .px {
  font-family: var(--mono); font-size: .62rem;
  color: var(--ink-3); letter-spacing: .06em;
}

.id-card {
  background: var(--bg-1);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.25rem;
  width: 100%; max-width: 360px;
  align-self: flex-end;
  position: relative;
}
.id-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--purple) 0%, var(--orange) 100%);
}
.id-card-head {
  font-family: var(--mono); font-size: .65rem;
  color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: .85rem;
  display: flex; justify-content: space-between;
}
.id-card-head .id { color: var(--purple); }
.id-rows {
  display: grid; grid-template-columns: 5.5rem 1fr;
  row-gap: .5rem; column-gap: 1rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .02em;
}
.id-rows dt { color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; }
.id-rows dd { color: var(--ink); }
.id-rows dd .accent { color: var(--orange); }
.id-rows dd .accent-p { color: var(--purple); }

/* ============================================================
   section headers
   ============================================================ */
.shead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
}
.shead-left { display: flex; align-items: baseline; gap: 1.5rem; flex-wrap: wrap; }
.s-id {
  font-family: var(--mono); font-size: .72rem; color: var(--purple);
  letter-spacing: .1em; padding-top: .5rem;
}
.s-id .slash { color: var(--ink-4); margin: 0 .3em; }
.s-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -.025em; line-height: 1.05;
  color: var(--ink);
}
.s-meta {
  font-family: var(--mono); font-size: .72rem; color: var(--ink-3);
  letter-spacing: .06em; text-align: right;
}
.s-meta .v { color: var(--ink-2); }
.s-meta .slash { color: var(--ink-4); margin: 0 .4em; }

.s-lede {
  color: var(--ink-2); font-size: 1rem;
  max-width: 62ch; margin-bottom: 3rem;
  text-wrap: pretty; line-height: 1.7;
  margin-top: -1.5rem;
}

/* ============================================================
   focus bento
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.bcard {
  background: var(--bg-1);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: .6rem;
  position: relative; overflow: hidden;
  transition: background-color .2s ease;
  min-height: 230px;
}
.bcard:hover { background: var(--bg-2); }
.bcard::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--rule-2);
  transition: background-color .2s ease;
}
.bcard:hover::before { background: var(--purple); }
.bcard.b-orange:hover::before { background: var(--orange); }
.bcard.b-cyan:hover::before { background: var(--cyan); }

.bcard .b-id {
  font-family: var(--mono); font-size: .7rem;
  color: var(--ink-3); letter-spacing: .08em;
}
.bcard .b-id .hex { color: var(--purple); }
.bcard.b-orange .b-id .hex { color: var(--orange); }
.bcard.b-cyan .b-id .hex { color: var(--cyan); }

.bcard h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 1.4rem; letter-spacing: -.015em;
  line-height: 1.15; color: var(--ink);
}
.bcard p { color: var(--ink-2); font-size: .92rem; line-height: 1.6; flex: 1; text-wrap: pretty; }
.bcard .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.bcard .tag {
  font-family: var(--mono); font-size: .66rem;
  color: var(--ink-2); background: var(--bg-3);
  border: 1px solid var(--rule);
  padding: .18rem .45rem; border-radius: 2px;
  letter-spacing: .02em;
}

/* feature card — large 2×2 */
.bcard.feature {
  grid-column: span 3;
  grid-row: span 2;
  padding: 2rem 1.75rem 1.75rem;
  background:
    radial-gradient(circle at 80% 0%, rgba(180,157,219,.10), transparent 55%),
    radial-gradient(circle at 10% 110%, rgba(232,158,100,.06), transparent 55%),
    var(--bg-1);
}
.bcard.feature h3 { font-size: 2rem; line-height: 1.1; letter-spacing: -.025em; }
.bcard.feature p { font-size: 1rem; max-width: 38ch; }
.bcard.feature::after {
  content: ""; position: absolute; top: 14px; right: 14px;
  width: 18px; height: 18px;
  border-top: 1px solid var(--purple);
  border-right: 1px solid var(--purple);
  opacity: .7;
}

/* span variants */
.bcard.wide { grid-column: span 3; }
.bcard.half { grid-column: span 2; }
.bcard.full { grid-column: 1 / -1; min-height: 180px; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bcard.feature { grid-column: span 2; grid-row: auto; }
  .bcard.wide { grid-column: span 2; }
  .bcard.half { grid-column: span 1; }
  .bcard.full { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bcard, .bcard.feature, .bcard.wide, .bcard.half, .bcard.full { grid-column: span 1; }
}

/* ============================================================
   contact
   ============================================================ */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}
@media (max-width: 780px) { .contact-block { grid-template-columns: 1fr; gap: 2rem; } }

.contact-prose {
  color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; text-wrap: pretty;
}
.contact-prose .em { color: var(--purple); }
.contact-prose .em2 { color: var(--orange); }

.contact-panel {
  background: var(--bg-1);
  border: 1px solid var(--rule);
  padding: 1.25rem 0;
  position: relative;
}
.contact-panel::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--purple), var(--orange));
}
.contact-panel-head {
  font-family: var(--mono); font-size: .66rem;
  color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase;
  padding: 0 1.25rem .9rem;
  border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between;
}
.contact-panel-head .ready { color: var(--purple); }

.contact-link {
  display: grid; grid-template-columns: 5.5rem 1fr auto;
  align-items: center;
  padding: .85rem 1.25rem;
  font-family: var(--mono); font-size: .82rem;
  border-bottom: 1px solid var(--rule);
  transition: background-color .15s ease;
  gap: .75rem;
}
.contact-link:last-child { border-bottom: none; }
.contact-link:hover { background: var(--bg-2); }
.contact-link .label {
  color: var(--ink-3); letter-spacing: .08em; font-size: .66rem; text-transform: uppercase;
}
.contact-link .target { color: var(--ink); }
.contact-link .arr { color: var(--ink-3); transition: color .15s ease, transform .15s ease; }
.contact-link:hover .label { color: var(--purple); }
.contact-link:hover .target { color: var(--purple); }
.contact-link:hover .arr { color: var(--orange); transform: translate(2px, -2px); }

/* ============================================================
   footer
   ============================================================ */
footer {
  padding: 2.75rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: .72rem;
  color: var(--ink-3); letter-spacing: .04em;
  position: relative; z-index: 1;
}
.foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
}
.foot .build { color: var(--ink-4); }
.foot-links { display: flex; align-items: center; gap: 1.25rem; }
.foot-links a { display: flex; align-items: center; color: var(--ink-4); transition: color .15s ease; }
.foot-links a:hover { color: var(--purple); }

/* ============================================================
   reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.25,.46,.45,.94);
}
.reveal.in { opacity: 1; transform: none; }

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

/* ============================================================
   responsive overrides — kept at end of file so they override
   the base rules they target. (CSS specificity is equal across
   media queries, so source order is what decides.)
   ============================================================ */

/* 980px — slightly narrower right rail in the hero */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
    column-gap: 2.5rem;
  }
}

/* <= 860px — keep portrait next to the name in a 2-column hero, with the
   id-card and the lower text content spanning the full width below.
   The navbar's .nav-status pill stays visible at the top-right. */
@media (max-width: 860px) {
  section { padding: 5rem 0; }

  .hero {
    padding-top: calc(64px + 3rem);
    padding-bottom: 4rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
    grid-template-areas:
      "name     portrait"
      "tag      portrait"
      "card     card"
      "bot      bot";
    column-gap: 1.5rem;
    row-gap: 0;
  }

  /* id-stack acts as a pass-through so portrait-cell and id-card become
     direct grid items of .hero-grid (so they can claim their own areas). */
  .id-stack { display: contents; }

  .portrait-cell {
    grid-area: portrait;
    width: 100%; height: auto;
    max-width: none;
    aspect-ratio: 1 / 1;
    align-self: start;
    justify-self: stretch;
    margin-top: 0;
  }
  .portrait-cell .corners,
  .portrait-cell .corners-bottom {
    left: .5rem; right: .5rem; top: .5rem; bottom: .5rem;
  }
  .portrait-cell .corners .px,
  .portrait-cell .corners-bottom { font-size: .56rem; letter-spacing: .06em; }

  .id-card {
    grid-area: card;
    max-width: none;
    width: 100%;
    margin-top: 2rem;
    padding: 1rem 1.1rem;
  }
  .id-rows {
    grid-template-columns: 4.5rem 1fr;
    column-gap: .8rem; row-gap: .4rem;
    font-size: .72rem;
  }
  .id-rows dt { font-size: .6rem; }
  .id-card-head { font-size: .6rem; margin-bottom: .65rem; letter-spacing: .12em; }

  .title-block::before { display: none; }
  h1.name { font-size: clamp(2.5rem, 9.5vw, 4.25rem); }
  .hero-tag { font-size: .72rem; gap: .55rem; padding-top: .35rem; }

  .hero-text-bottom { margin-top: 2rem; }
  .hero-lede { max-width: none; }
  .hero-body { max-width: none; }

  /* condense the navbar status pill so it fits alongside the brand */
  .nav-status .label { display: none; }
  .nav-status .sep   { display: none; }
  .nav-status .tag   { color: var(--ink); }
}

/* <= 560px — same 2-col idea, just tighter sizes. Portrait shrinks. */
@media (max-width: 560px) {
  .hero { padding-top: calc(64px + 2rem); }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 110px;
    column-gap: 1rem;
  }

  .portrait-cell {
    max-width: 110px;
  }
  .portrait-cell .corners-bottom { font-size: .5rem; }
  .portrait-cell .corners .px { font-size: .5rem; }

  .id-card { margin-top: 1.5rem; padding: .9rem 1rem; }
  .id-rows { grid-template-columns: 4.5rem 1fr; font-size: .7rem; }
  .id-rows dt { font-size: .58rem; }

  h1.name {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
    margin-bottom: 1rem;
  }
  .hero-tag {
    font-size: .68rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }
  .hero-tag .pipe { display: none; }

  .hero-lede { font-size: 1.05rem; margin-bottom: 1.25rem; }
  .hero-body { font-size: .9rem; margin-bottom: 2rem; }

  .cta-row { gap: .75rem; }
  .cta-row .btn-primary,
  .cta-row .btn-ghost {
    flex: 1; min-width: 140px; justify-content: center;
  }

  .nav-status { font-size: .62rem; padding: .35rem .6rem .35rem .55rem; }
  .nav-status .led { width: 6px; height: 6px; }
}

/* <= 420px — tighten section heads, bento, and contact rows */
@media (max-width: 420px) {
  .shead { margin-bottom: 2rem; padding-bottom: 1rem; gap: 1rem; }
  .s-meta { text-align: left; }
  .shead-left { gap: .8rem; }

  .bcard { padding: 1.4rem 1.25rem 1.25rem; min-height: 200px; }
  .bcard.feature { padding: 1.6rem 1.3rem 1.3rem; }
  .bcard.feature h3 { font-size: 1.65rem; }

  .contact-link {
    grid-template-columns: 4.5rem 1fr auto;
    padding: .75rem 1rem;
    font-size: .76rem;
    gap: .5rem;
  }
  .contact-link .label { font-size: .6rem; }
}
