/* ==========================================================================
   Andrea Cavalluzzo - personal site
   Palette: cool lavender paper, iris accent, dark product shots as the anchors.
   Type:    Bricolage Grotesque (display) / Instrument Sans (body) / JetBrains Mono (data)
   ========================================================================== */

/* ---- tokens ------------------------------------------------------------- */
:root {
  --f-disp: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r-blk: 20px;
  --r-panel: 24px;
  --gutter: clamp(18px, 4vw, 48px);
  --sec-pad: clamp(64px, 8.5vw, 132px);
  --bar-h: 59px;
}

html[data-theme='light'] {
  --paper: #f4f2f8;
  --paper-2: #e9e6f2;
  --panel: #fff;
  --ink: #191926;
  --ink-2: #585771;
  --ink-3: #78768f;
  --line: #dcd8ea;
  --iris: #4a3ad1;
  --iris-soft: #ebe8fc;
  --on-iris: #fff;
  --live: #17845f;
  --bar-bg: rgba(244, 242, 248, .8);
  --end-bg: #191926;
  --end-ink: #f4f2f8;
  --end-ink-2: #a4a1bd;
  --frame: #0d0d15;
  --shade: 0 1px 2px rgba(25, 25, 38, .05), 0 14px 30px -16px rgba(25, 25, 38, .22);
  --shade-lift: 0 2px 4px rgba(25, 25, 38, .06), 0 26px 46px -20px rgba(25, 25, 38, .3);
}

html[data-theme='dark'] {
  --paper: #121220;
  --paper-2: #191930;
  --panel: #1d1d2e;
  --ink: #eceaf6;
  --ink-2: #a3a1bb;
  --ink-3: #8d8ba7;
  --line: #2f2f49;
  --iris: #a99cff;
  --iris-soft: #262450;
  --on-iris: #16162a;
  --live: #3ac79b;
  --bar-bg: rgba(18, 18, 32, .76);
  --end-bg: #23233a;
  --end-ink: #eceaf6;
  --end-ink-2: #a3a1bb;
  --frame: #08080e;
  --shade: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 34px -18px rgba(0, 0, 0, .72);
  --shade-lift: 0 2px 6px rgba(0, 0, 0, .45), 0 28px 50px -22px rgba(0, 0, 0, .8);
}

/* ---- base -------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 22px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(15px, 1.02vw, 16.5px)/1.62 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--f-disp);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.06;
}

p {
  margin: 0;
  text-wrap: pretty;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

.sprite {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--iris);
  color: var(--on-iris);
  font: 500 13px var(--f-mono);
  text-decoration: none;
}

.skip:focus {
  left: 12px;
}

.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- top bar ----------------------------------------------------------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  background: var(--bar-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}

.bar.stuck {
  border-bottom-color: var(--line);
}

.bar-mark {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  text-decoration: none;
}

.bar-mono {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--iris);
  color: var(--on-iris);
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .04em;
}

.bar-name {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.02em;
}

.bar-nav {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
}

.bar-nav a {
  position: relative;
  padding: 4px 0;
  font: 400 12.5px var(--f-mono);
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s;
}

.bar-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1);
}

.bar-nav a:hover,
.bar-nav a.on {
  color: var(--iris);
}

.bar-nav a:hover::after,
.bar-nav a.on::after {
  transform: scaleX(1);
}

.tbtn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.tbtn:hover {
  border-color: var(--iris);
  color: var(--iris);
}

.tbtn svg {
  width: 16px;
  height: 16px;
}

html[data-theme='light'] .tbtn-sun,
html[data-theme='dark'] .tbtn-moon {
  display: none;
}

/* ---- mobile menu ------------------------------------------------------- */
.mbtn {
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
}

.mbtn-bars {
  display: grid;
  gap: 5px;
}

.mbtn-bars i {
  display: block;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .26s cubic-bezier(.2, .7, .2, 1);
}

.mbtn[aria-expanded='true'] {
  border-color: var(--iris);
  color: var(--iris);
}

.mbtn[aria-expanded='true'] i:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.mbtn[aria-expanded='true'] i:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.sheet {
  display: none;
}

.sheet-nav {
  display: grid;
}

.sheet-nav a {
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(1.6rem, 8vw, 2.1rem);
  letter-spacing: -.03em;
  text-decoration: none;
}

.sheet-nav a:first-child {
  border-top: 1px solid var(--line);
}

.sheet-nav a.on {
  color: var(--iris);
}

.sheet-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 28px;
}

.sheet-links a {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  font: 400 12px var(--f-mono);
  text-decoration: none;
}

/* ---- hero board -------------------------------------------------------- */
.hero {
  padding-block: clamp(30px, 5vw, 64px) clamp(48px, 6vw, 90px);
}

.board {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: clamp(10px, 1.1vw, 15px);
}

.blk {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.1vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-blk);
  background: var(--panel);
  box-shadow: var(--shade);
  animation: rise .75s cubic-bezier(.2, .75, .25, 1) both;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.blk-say {
  grid-row: span 2;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
}

.blk-stack {
  grid-column: 1 / -1;
}

.blk-title {
  margin-bottom: 18px;
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.say {
  max-width: 24ch;
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: .99;
  letter-spacing: -.038em;
  text-wrap: balance;
}

.say-sub {
  max-width: 56ch;
  color: var(--ink-2);
  font-size: clamp(.96rem, 1.1vw, 1.06rem);
}

.now-role {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 500 12.5px var(--f-mono);
  color: var(--ink-2);
}

.now-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 var(--live);
  animation: beat 2.6s ease-out infinite;
}

@keyframes beat {

  0%,
  70%,
  100% {
    box-shadow: 0 0 0 0 rgba(23, 132, 95, .5);
  }

  35% {
    box-shadow: 0 0 0 6px rgba(23, 132, 95, 0);
  }
}

.now-co {
  margin: 8px 0 auto;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.1vw, 1.95rem);
  letter-spacing: -.03em;
}

.now-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 22px 0 0;
}

.now-meta dt {
  font: 400 10px var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.now-meta dd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 5px 0 0;
  font-size: 14px;
}

.now-clock {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--iris-soft);
  color: var(--iris);
  font: 500 11px var(--f-mono);
  font-variant-numeric: tabular-nums;
}

.now-clock:empty {
  display: none;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-width: 400px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tiles a {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 10px 2px 8px;
  border-radius: 14px;
  text-decoration: none;
  transition: background .2s;
}

.tiles a:hover {
  background: var(--paper-2);
}

.tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), background .2s, color .2s, border-color .2s;
}

.tile svg {
  width: 19px;
  height: 19px;
}

.tiles a:hover .tile {
  transform: translateY(-3px);
  background: var(--iris);
  border-color: var(--iris);
  color: var(--on-iris);
}

.tile-cap {
  font: 400 10.5px var(--f-mono);
  color: var(--ink-2);
}

/* ---- shared bits ------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  font: 400 11.5px/1.35 var(--f-mono);
  color: var(--ink-2);
}

.chips-lg li {
  padding: 9px 13px;
  font-size: 12.5px;
  background: var(--panel);
}

.notes {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes li {
  position: relative;
  padding-left: 19px;
  color: var(--ink-2);
  font-size: .96em;
}

.notes li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--iris);
  opacity: .6;
}

.notes b {
  color: var(--ink);
  font-weight: 600;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 11px var(--f-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--iris);
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  font: 400 12px var(--f-mono);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, border-color .2s, background .2s;
}

.btn svg {
  width: 13px;
  height: 13px;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--iris);
}

.btn-fill {
  background: var(--iris);
  border-color: var(--iris);
  color: var(--on-iris);
}

/* ---- sections ---------------------------------------------------------- */
.sec {
  padding-block: var(--sec-pad);
}

.sec-alt {
  background: var(--paper-2);
}

.sec-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.sec-title {
  margin: 16px 0 0;
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  text-wrap: balance;
}

.lede {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- projects ---------------------------------------------------------- */
.proj {
  padding: clamp(22px, 2.8vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--panel);
  box-shadow: var(--shade);
}

.proj+.proj,
.arc {
  margin-top: clamp(20px, 2.6vw, 34px);
}

.proj-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-bottom: clamp(20px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
}

.proj-id {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: auto;
}

.proj-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.proj-mark-nx {
  display: grid;
  place-items: center;
  background: var(--frame);
  color: #f4f2f8;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 26px;
}

.proj-name {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
}

.proj-kind {
  margin-top: 5px;
  font: 400 11.5px var(--f-mono);
  color: var(--ink-3);
}

.proj-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.proj-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(22px, 3vw, 46px);
  padding-block: clamp(24px, 2.8vw, 36px);
}

.proj-lead {
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  line-height: 1.5;
}

.proj>.chips {
  margin-top: clamp(24px, 3vw, 34px);
}

/* phones */
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shots li {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  max-width: 250px;
  justify-self: center;
}

.shots li:nth-child(even) {
  padding-top: clamp(10px, 1.8vw, 26px);
}

.phone {
  width: 100%;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--frame);
  cursor: zoom-in;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
  box-shadow: var(--shade);
}

.phone:hover {
  transform: translateY(-6px);
  box-shadow: var(--shade-lift);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 21px;
}

.phone-cap {
  font: 400 10.5px var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* browser frame */
.browser {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shade);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 15px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.browser-url {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font: 400 11px var(--f-mono);
  color: var(--ink-3);
}

.browser-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.browser-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* archive */
.arc-title {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  margin-bottom: 6px;
}

.arc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.arc-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  padding: 16px 4px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background .22s;
}

a.arc-row:hover {
  background: var(--panel);
}

.arc-thumb {
  width: 88px;
  height: 54px;
  object-fit: cover;
  object-position: 50% 30%;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

a.arc-row:hover .arc-thumb {
  transform: scale(1.05);
}

.arc-main h4 {
  font-size: 1.06rem;
  letter-spacing: -.015em;
}

.arc-main p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: .9rem;
}

.arc-stack {
  font: 400 11px var(--f-mono);
  color: var(--ink-3);
  text-align: right;
}

.arc-go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}

.arc-go svg {
  width: 14px;
  height: 14px;
}

a.arc-row:hover .arc-go {
  background: var(--iris);
  border-color: var(--iris);
  color: var(--on-iris);
}

.arc-none {
  width: 34px;
  height: 34px;
}

/* ---- experience -------------------------------------------------------- */
.roles {
  display: grid;
  gap: clamp(30px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.role {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 34px);
}

.role-when {
  padding-top: 5px;
  font: 400 12px var(--f-mono);
  color: var(--ink-2);
}

.role-body {
  position: relative;
  padding-left: clamp(20px, 2.6vw, 34px);
  border-left: 1px solid var(--line);
}

.role-body::before {
  content: '';
  position: absolute;
  left: -4.5px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--iris);
}

.role-what {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

.role-at {
  color: var(--iris);
}

.role-where {
  margin-top: 7px;
  font: 400 11.5px var(--f-mono);
  color: var(--ink-3);
}

.role-about {
  margin: 16px 0 16px;
  max-width: 66ch;
  color: var(--ink);
}

.role-body .chips {
  margin-top: 18px;
}

/* ---- about ------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(26px, 3.4vw, 56px);
  align-items: start;
}

.about-text {
  display: grid;
  gap: 14px;
  max-width: 56ch;
  color: var(--ink-2);
}

.about-text p:first-child {
  color: var(--ink);
  font-size: 1.08em;
}

.about-side {
  display: grid;
  gap: clamp(12px, 1.4vw, 18px);
}

.panel {
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-blk);
  background: var(--panel);
  box-shadow: var(--shade);
}

.panel-title {
  margin-bottom: 16px;
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tool {
  display: grid;
  gap: 14px;
  margin: 0;
}

.tool dt {
  font: 400 10px var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--iris);
}

.tool dd {
  margin: 5px 0 0;
  color: var(--ink-2);
  font-size: .95rem;
}

.edu-what {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.edu-where {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: .94rem;
}

.edu-when {
  margin-top: 9px;
  font: 400 11.5px var(--f-mono);
  color: var(--ink-3);
}

/* ---- contact ----------------------------------------------------------- */
.end {
  padding: clamp(34px, 5vw, 76px);
  border-radius: 28px;
  background: var(--end-bg);
  color: var(--end-ink);
}

.end .eyebrow {
  color: var(--end-ink-2);
}

.end-line {
  margin: 20px 0 0;
  max-width: 24ch;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -.035em;
  line-height: 1;
  text-wrap: balance;
}

.end-mail {
  display: inline-block;
  margin-top: clamp(26px, 3vw, 38px);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  font: 400 clamp(.95rem, 1.5vw, 1.15rem) var(--f-mono);
  text-decoration: none;
  transition: border-color .25s, color .25s;
}

.end-mail:hover {
  border-bottom-color: currentColor;
}

.end-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 3.4vw, 44px);
}

.end-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  font: 400 12px var(--f-mono);
  text-decoration: none;
  transition: transform .2s, background .2s, border-color .2s;
}

.end-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .38);
}

.end-links svg {
  width: 14px;
  height: 14px;
}

.foot {
  padding-block: 26px 34px;
  border-top: 1px solid var(--line);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font: 400 11.5px var(--f-mono);
  color: var(--ink-3);
}

/* ---- screenshot viewer ------------------------------------------------- */
.box {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(9, 9, 16, .84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade .25s ease both;
}

.box[hidden] {
  display: none;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.box-fig {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 15px;
}

.box-fig img {
  max-height: 78vh;
  width: auto;
  border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}

.box-fig figcaption {
  font: 400 12px var(--f-mono);
  color: rgba(255, 255, 255, .74);
  text-align: center;
}

.box-close {
  position: fixed;
  top: clamp(12px, 2vw, 22px);
  right: clamp(12px, 2vw, 22px);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.box-close:hover {
  background: rgba(255, 255, 255, .16);
}

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 1020px) {
  .board {
    grid-template-columns: 1fr;
  }

  .blk-say {
    grid-row: auto;
  }

  .say {
    max-width: 22ch;
  }

  .proj-cols {
    grid-template-columns: 1fr;
  }

  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about {
    grid-template-columns: 1fr;
  }
}

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

  .mbtn {
    display: grid;
  }

  .sheet {
    position: fixed;
    inset: var(--bar-h) 0 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 6vw, 34px) var(--gutter) 44px;
    background: var(--paper);
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: sheet-in .3s cubic-bezier(.2, .75, .25, 1) both;
  }

  .sheet[hidden] {
    display: none;
  }

  .sheet-links {
    margin-top: auto;
  }

  @keyframes sheet-in {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
  }

  .role {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .role-when {
    padding-top: 0;
  }

  .arc-row {
    grid-template-columns: 68px minmax(0, 1fr) 32px;
    gap: 14px;
  }

  .arc-thumb {
    width: 68px;
    height: 46px;
  }

  .arc-stack {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 460px) {
  .bar-name {
    display: none;
  }

  .tiles {
    gap: 0;
  }

  .shots li:nth-child(even) {
    padding-top: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
