/* Isaiah Boyd — portfolio. Clean glass UI over a fixed photograph. One typeface (DM Sans), white primary, ice-blue accent. */

@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --bg: #08130f;
  --ink: #f4f7f5;
  --dim: rgba(244, 247, 245, .76);
  --faint: rgba(244, 247, 245, .52);
  --line: rgba(255, 255, 255, .14);
  --line-hi: rgba(255, 255, 255, .3);
  --glass: rgba(10, 20, 22, .46);
  --accent: #8ed1ff;
  --accent-2: #a8f0cf;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gut: clamp(18px, 4.5vw, 40px);
  --r: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --p: 0; /* scroll progress 0..1, set by main.js */
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: rgba(255, 255, 255, .3) transparent; scrollbar-width: thin; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #06121a; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }

/* ---------- photo background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg__img { /* fills the screen edge to edge */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
}
@media (min-aspect-ratio: 31/20) and (max-aspect-ratio: 41/20) { /* typical monitors: whole photo, stretched <13% so nothing is cropped and there are no bars */
  .bg__img { object-fit: fill; }
}
.bg__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 50% 38%, rgba(4, 12, 16, calc(.28 + var(--p) * .22)) 0%, transparent 70%),
    linear-gradient(180deg, rgba(4, 12, 16, .62) 0%, rgba(4, 12, 16, calc(.22 + var(--p) * .3)) 32%, rgba(4, 12, 16, calc(.4 + var(--p) * .3)) 100%);
}

/* ---------- glass ---------- */
.glass {
  position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.25); backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.glass::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .1), transparent 60%);
}
.glass:hover::before { opacity: 1; }

/* ---------- buttons: tactile 3D with a framed bezel ---------- */
.btn {
  --frame: 0 0 0 5px rgba(255, 255, 255, .06), 0 0 0 6px rgba(255, 255, 255, .2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: -.005em; isolation: isolate; white-space: nowrap; border: 0;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .25s, filter .25s; -webkit-tap-highlight-color: transparent;
}
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic:last-child:not(:first-child) { transform: translateX(3px); }

/* solid: pearl-white key cap */
.btn--solid {
  color: #0a1822; background: linear-gradient(180deg, #ffffff 0%, #f1f5f8 48%, #dde5ea 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(10, 24, 34, .12), 0 4px 0 #a9b6c0, 0 5px 0 rgba(0, 0, 0, .25), 0 14px 24px rgba(0, 0, 0, .34), var(--frame);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(10, 24, 34, .12), 0 6px 0 #a9b6c0, 0 7px 0 rgba(0, 0, 0, .25), 0 20px 30px rgba(0, 0, 0, .36), var(--frame); }
.btn--solid:active { transform: translateY(4px); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 2px rgba(10, 24, 34, .14), 0 0 0 #a9b6c0, 0 1px 0 rgba(0, 0, 0, .25), 0 4px 10px rgba(0, 0, 0, .3), var(--frame); }

/* glass: smoked-glass key cap */
.btn--glass {
  color: var(--ink); background: linear-gradient(180deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .1) 52%, rgba(255, 255, 255, .05) 100%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 3px rgba(0, 0, 0, .22), 0 4px 0 rgba(4, 12, 16, .6), 0 14px 24px rgba(0, 0, 0, .3), var(--frame);
}
.btn--glass:hover { transform: translateY(-2px); background: linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .14) 52%, rgba(255, 255, 255, .08) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 3px rgba(0, 0, 0, .22), 0 6px 0 rgba(4, 12, 16, .6), 0 20px 30px rgba(0, 0, 0, .34), var(--frame); }
.btn--glass:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 2px rgba(0, 0, 0, .25), 0 0 0 rgba(4, 12, 16, .6), 0 4px 10px rgba(0, 0, 0, .3), var(--frame); }

.btn--sm { --frame: 0 0 0 4px rgba(255, 255, 255, .06), 0 0 0 5px rgba(255, 255, 255, .18); height: 42px; padding: 0 19px; font-size: 14px; gap: 8px; }
.nav__cta { --frame: 0 0 #0000, 0 0 #0000; height: 40px; }

/* round and pill icon buttons share the same key-cap feel */
.go, .save {
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 3px rgba(0, 0, 0, .2), 0 3px 0 rgba(4, 12, 16, .55), 0 8px 16px rgba(0, 0, 0, .25);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .25s, color .25s;
}
.go:hover, .save:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 3px rgba(0, 0, 0, .2), 0 5px 0 rgba(4, 12, 16, .55), 0 12px 20px rgba(0, 0, 0, .3); }
.go:active, .save:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 rgba(4, 12, 16, .55), 0 2px 6px rgba(0, 0, 0, .3); }

/* framed avatar */
.avatar { width: 92px; height: 92px; border-radius: 50%; padding: 4px; background: linear-gradient(160deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .08)); box-shadow: 0 0 0 6px rgba(255, 255, 255, .07), 0 0 0 7px rgba(255, 255, 255, .2), 0 18px 34px rgba(0, 0, 0, .4); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #18110d; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: 12px; pointer-events: none; }
.nav__bar {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100%, 880px); margin-inline: auto; padding: 8px 8px 8px 10px;
  background: rgba(10, 20, 22, .5); border: 1px solid var(--line); border-radius: 999px;
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--sans); letter-spacing: -.01em; padding-right: 6px; }
.brand img { width: 32px; height: 32px; border-radius: 50%; background: #1a1613; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { display: block; padding: 9px 15px; border-radius: 999px; font: 500 14.5px/1 var(--sans); color: var(--dim); transition: color .2s, background .2s; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__links a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .14); }

/* ---------- badge + headings ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 20, 22, .4);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font: 500 13.5px/1 var(--sans); color: var(--dim);
}
.badge time { color: #fff; font-variant-numeric: tabular-nums; }
.badge__tz { margin-left: -5px; color: var(--faint); }
.badge--plain { color: var(--ink); font-weight: 600; letter-spacing: .01em; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2.4s infinite; }
.sep { width: 1px; height: 12px; background: var(--line-hi); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.h1 { font: 700 clamp(40px, 7.4vw, 88px)/1.02 var(--sans); letter-spacing: -.045em; text-wrap: balance; max-width: 15ch; text-shadow: 0 2px 40px rgba(0, 0, 0, .25); }
.grad { white-space: nowrap; background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; }
.lede { max-width: 58ch; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--dim); text-wrap: pretty; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 64px; }
.hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 820px); margin-top: 22px; padding: 6px; border-radius: 26px; }
.stats > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 16px 10px; position: relative; }
.stats > div + div::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stats dd { font: 700 clamp(26px, 4vw, 38px)/1 var(--sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stats dt { font: 500 13px/1.3 var(--sans); color: var(--faint); }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 10vw, 128px) 0 0; }
.sec--last { padding-bottom: clamp(56px, 8vw, 100px); }
.sh { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); }
.sh h2, .connect h2 { font: 700 clamp(32px, 5.2vw, 58px)/1.05 var(--sans); letter-spacing: -.04em; text-wrap: balance; max-width: 18ch; }
.sh__sub { max-width: 54ch; color: var(--dim); font-size: clamp(16px, 1.8vw, 18.5px); text-wrap: pretty; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .07); font: 500 13px/1 var(--sans); color: var(--ink); }
.pills--sm li { padding: 6px 11px; font-size: 12px; color: var(--dim); }

/* ---------- about ---------- */
.do { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { padding: 26px 24px 28px; display: grid; gap: 8px; align-content: start; transition: transform .35s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-hi); }
.ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); color: var(--accent); }
.ico .ic { width: 22px; height: 22px; }
.card h3 { font: 700 21px/1.2 var(--sans); letter-spacing: -.02em; }
.card p { color: var(--dim); font-size: 15.5px; line-height: 1.55; }

/* ---------- projects ---------- */
.projects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.proj { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; padding: 26px; min-height: 290px; transition: transform .35s var(--ease), border-color .3s; }
.proj--half { grid-column: span 3; min-height: 0; }
.proj:hover { transform: translateY(-3px); border-color: var(--line-hi); }
.proj__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.proj__n { font: 600 13px/1 var(--sans); color: var(--faint); font-variant-numeric: tabular-nums; }
.proj h3 { font: 700 clamp(25px, 2.8vw, 31px)/1.1 var(--sans); letter-spacing: -.03em; }
.proj__role { color: var(--accent); font-weight: 500; font-size: 15px; }
.proj__desc { color: var(--dim); margin-top: 6px; }
.proj__stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; padding-top: 22px; }
.proj__stat b { font: 700 38px/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.proj__stat span { color: var(--faint); font-size: 14px; }
.proj__links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.proj--half .proj__links { margin-top: auto; padding-top: 26px; }

/* ---------- stack ---------- */
.stack { padding: 8px 30px; }
.row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 12px 24px; align-items: center; padding: 22px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row h3 { font: 600 15px/1.3 var(--sans); color: var(--dim); }
.techs { display: flex; flex-wrap: wrap; gap: 10px; }
.tech {
  --c: #fff; display: inline-flex; align-items: center; gap: 10px; padding: 10px 17px 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .07);
  font: 500 15px/1 var(--sans); transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.tech .ic { width: 20px; height: 20px; color: var(--c); }
.tech:hover { background: rgba(255, 255, 255, .14); border-color: var(--line-hi); transform: translateY(-2px); }

/* ---------- connect ---------- */
.connect { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: clamp(30px, 6vw, 64px) clamp(18px, 4vw, 48px); }
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(100%, 860px); margin: 14px 0 12px; text-align: left; }
.contact { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .06); transition: border-color .25s, background .25s; }
.contact:hover { border-color: var(--line-hi); background: rgba(255, 255, 255, .1); }
.contact__ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.contact__ico .ic { width: 21px; height: 21px; }
.contact__t { display: grid; gap: 3px; min-width: 0; flex: 1; }
.contact__t small { font: 500 12.5px/1 var(--sans); color: var(--faint); }
.contact__t a, .contact__t > span { font: 600 16px/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact__t a:hover { color: var(--accent); }
.go { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; }
.go .ic { width: 18px; height: 18px; }

/* "saved" button: icon morphs into a check */
.save { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 17px; flex: none; border-radius: 999px; overflow: hidden; font: 600 13.5px/1 var(--sans); }
.save .ic { width: 16px; height: 16px; }
.save__a, .save__b { transition: transform .35s var(--ease), opacity .25s; }
.save__b { position: absolute; left: 16px; opacity: 0; transform: translateY(120%) scale(.6); }
.save__l { min-width: 3.6em; text-align: left; }
.save.is-saved { background: linear-gradient(180deg, #fff, #dde5ea); color: #08131a; }
.save.is-saved .save__a { opacity: 0; transform: translateY(-120%) scale(.6); }
.save.is-saved .save__b { opacity: 1; transform: none; animation: pop .45s var(--ease); }
@keyframes pop { 50% { transform: scale(1.35); } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: rgba(4, 12, 16, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 26px 0; font: 500 14px/1.4 var(--sans); color: var(--dim); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.foot__mid { color: var(--faint); }
.foot a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.foot a:hover { color: #fff; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .card[data-reveal].in:hover, .js .proj[data-reveal].in:hover { transform: translateY(-3px); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .do { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj, .proj--half { grid-column: span 1; }
  .proj--half:last-child { grid-column: 1 / -1; }
  .row { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .nav__links a { padding: 9px 11px; font-size: 14px; }
  .nav__cta { display: none; }
  .nav__bar { width: auto; justify-content: center; }
  .nav { display: flex; justify-content: center; }
  .hero { padding-top: 104px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3)::before { display: none; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .do, .projects, .contacts { grid-template-columns: 1fr; }
  .avatar { width: 78px; height: 78px; }
  .proj:last-child { grid-column: auto; }
  .stack { padding: 4px 20px; }
  .btn { height: 50px; }
  .btn--sm { height: 42px; }
}
@media (max-width: 480px) {
  .nav__links a { padding: 9px 9px; font-size: 13.5px; }
  .contact__t a, .contact__t > span { white-space: normal; overflow-wrap: anywhere; font-size: 15px; }
  .save__l { min-width: 0; }
  .card, .proj { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

.nb { white-space: nowrap; }
