/* ==========================================================================
   Adriano Affar — Portfolio
   Concept: broadcast control room. PGM red / PVW green / amber, monospace
   readouts, switcher buttons, faders and a live monitor.

   1. Tokens         6. Marquee        11. Education
   2. Base           7. About          12. Footer
   3. Components     8. Work           13. Motion
   4. Header         9. Experience
   5. Hero          10. Skills
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --f-display: 'Montserrat', system-ui, sans-serif;
  --f-body: 'Montserrat', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --header-h: 64px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Dark (default): control room at night */
  color-scheme: dark;
  --bg: #0a0b0d;
  --surface: #121418;
  --surface-2: #1a1d22;
  --ink: #edebe5;
  --ink-2: #a3a7ae;
  --line: #262a30;
  --pgm: #ff3b30;
  --pvw: #2fe08f;
  --amber: #ffb020;
  --on-pgm: #fff;
}

[data-theme='light'] {
  /* Light: studio daylight */
  color-scheme: light;
  --bg: #eceae3;
  --surface: #f8f7f3;
  --surface-2: #e2dfd6;
  --ink: #121316;
  --ink-2: #55595f;
  --line: #cfcbc0;
  --pgm: #e5251b;
  --pvw: #0e9f63;
  --amber: #b87800;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background .35s ease, color .35s ease;
}
body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol, dl, figure { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

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

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  font: 500 .8rem var(--f-mono);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }

/* 3. Components ------------------------------------------------------------ */
.section { padding-block: clamp(72px, 10vw, 128px); }

.section-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: clamp(32px, 5vw, 56px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-head__no { font: 500 .8rem var(--f-mono); color: var(--pgm); }
.section-head h2 {
  font: 800 clamp(2rem, 6vw, 3.6rem)/1 var(--f-display);
  letter-spacing: -.02em; text-transform: uppercase;
}
.section-head__cue {
  margin-left: auto;
  font: 400 .72rem var(--f-mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}

.live-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--pgm);
  animation: pulse 1.8s infinite;
}
.live-dot--green { background: var(--pvw); --pulse: var(--pvw); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line); border-radius: 8px;
  font: 600 .76rem var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn i { font-size: 1.15rem; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--pgm); border-color: var(--pgm); color: var(--on-pgm, #fff); }
.btn--primary:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--pgm) 40%, transparent); }
.btn--ghost { background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); }

.chip {
  display: inline-flex; align-items: center;
  padding: 3px 11px;
  border: 1px solid var(--line); border-radius: 999px;
  font: 500 .68rem var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.chip--btn { padding: 8px 16px; background: var(--surface); transition: .2s; }
.chip--btn:hover { color: var(--ink); border-color: var(--ink-2); }
.chip--btn[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip--on-media {
  position: absolute; left: 12px; top: 12px;
  background: rgb(0 0 0 / .6); border-color: transparent; color: #fff;
  backdrop-filter: blur(6px);
}

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); font-size: 1.15rem;
  transition: border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--amber); }

/* 4. Header ---------------------------------------------------------------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); }
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__progress {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--pgm); transform: scaleX(var(--p, 0)); transform-origin: left;
}

.brand { display: flex; align-items: center; gap: 10px; font: 600 .8rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.header__actions { display: flex; align-items: center; gap: 8px; }

.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; min-width: 40px; padding: 0 11px;
  border-radius: 999px; background: #25d366; color: #06210f;
  font: 600 .74rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-wa i { font-size: 1.25rem; }
.btn-wa span { display: none; }
.btn-wa:hover { transform: translateY(-1px); box-shadow: 0 6px 18px #25d36655; }

/* Mobile Menu Close Button */
.nav-close {
  display: none;
}

/* Mobile Menu: Drawer / Sidebar Slide Out dari Kanan */
@media (max-width: 999px) {
  .nav-close {
    display: grid;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1001;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -300px;
    bottom: 0;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--line);
    padding: calc(var(--header-h) + 24px) 24px 32px;
    display: flex;
    flex-direction: column;
    z-index: 998;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: right .35s var(--ease);
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
  }

  body.nav-open .nav {
    right: 0;
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 6px;
    border-bottom: 1px solid var(--line);
    font: 700 1.05rem var(--f-display);
    text-transform: uppercase;
    color: var(--ink-2);
    transition: color .2s, background .2s, padding-left .2s;
  }

  .nav__link:hover,
  .nav__link.is-active {
    color: var(--ink);
    background: var(--surface-2);
    padding-left: 18px;
  }
}

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  padding: calc(var(--header-h) + 32px) 0 60px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 45% at 85% 25%, color-mix(in srgb, var(--pgm) 16%, transparent), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 88px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 88px 100%;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 95%);
          mask-image: linear-gradient(#000 30%, transparent 95%);
  opacity: .55;
}

.hero__grid {
  display: grid; gap: 20px; justify-items: start; width: 100%;
  grid-template-areas: 'status' 'title' 'bus' 'monitor' 'lede' 'cta';
}

.hero__status {
  grid-area: status; display: flex; align-items: center; gap: 10px;
  font: 500 .74rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--pgm);
}

.hero__title {
  grid-area: title;
  font: 800 clamp(2.2rem, 9.5vw, 4.5rem)/.92 var(--f-display);
  letter-spacing: -.02em; text-transform: uppercase;
  word-break: break-word;
  width: 100%;
}
.hero__title span { display: block; }

/* Role switcher bus */
.bus { 
  grid-area: bus; 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  align-items: flex-start;
  width: 100%;
}
.bus__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.bus__btn {
  width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  font: 500 .8rem var(--f-mono); color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.bus__btn:hover { color: var(--ink); border-color: var(--ink-2); }
.bus__btn[aria-pressed='true'] {
  background: var(--pgm); border-color: var(--pgm); color: #fff;
  box-shadow: 0 0 18px color-mix(in srgb, var(--pgm) 55%, transparent);
}
.bus__label {
  display: flex; align-items: center; min-height: 38px; padding: 0 14px;
  border-left: 3px solid var(--pgm); background: var(--surface);
  font: 400 .84rem var(--f-mono); color: var(--ink-2);
  width: fit-content;
  max-width: 100%;
  transition: opacity .16s;
}
.bus__label.is-swapping { opacity: 0; }

@media (min-width: 520px) {
  .bus {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

/* Monitor */
.monitor {
  grid-area: monitor; justify-self: center;
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 4 / 5;
  padding: 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
}
.monitor__screen { position: relative; height: 100%; overflow: hidden; border-radius: 8px; background: #000; }
.monitor__screen img { width: 100%; height: 100%; object-fit: cover; }
.monitor__screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(transparent 0 3px, rgb(0 0 0 / .1) 3px 4px),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgb(0 0 0 / .45));
}

.hud { position: absolute; inset: 0; z-index: 1; color: #fff; font: 500 .68rem var(--f-mono); letter-spacing: .1em; }
.hud::before {
  content: ''; position: absolute; inset: 14px; pointer-events: none;
  --c: linear-gradient(#fff, #fff);
  background:
    var(--c) top left / 20px 2px, var(--c) top left / 2px 20px,
    var(--c) top right / 20px 2px, var(--c) top right / 2px 20px,
    var(--c) bottom left / 20px 2px, var(--c) bottom left / 2px 20px,
    var(--c) bottom right / 20px 2px, var(--c) bottom right / 2px 20px;
  background-repeat: no-repeat; opacity: .7;
}
.hud > span { position: absolute; padding: 4px 9px; border-radius: 4px; background: rgb(0 0 0 / .55); backdrop-filter: blur(4px); }
.hud__pgm { left: 26px; top: 26px; display: flex; align-items: center; gap: 8px; background: var(--pgm) !important; }
.hud__pgm .live-dot { background: #fff; --pulse: #fff; }
.hud__tc { right: 26px; top: 26px; font-variant-numeric: tabular-nums; }
.hud__src { left: 26px; bottom: 26px; text-transform: uppercase; }
.hud .vu { right: 26px; bottom: 26px; display: flex; gap: 4px; height: 76px; padding: 6px; }
.vu i {
  width: 6px; height: 100%;
  background: linear-gradient(to top, var(--pvw) 0 60%, var(--amber) 60% 85%, var(--pgm) 85%);
  -webkit-mask: repeating-linear-gradient(to top, #000 0 4px, transparent 4px 6px);
          mask: repeating-linear-gradient(to top, #000 0 4px, transparent 4px 6px);
  clip-path: inset(calc(100% - var(--h, 45%)) 0 0 0);
  transition: clip-path .1s linear;
}

.hero__lede { grid-area: lede; max-width: 48ch; color: var(--ink-2); font-size: 1rem; }
.hero__cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.hero__cta .btn { flex: 1 1 160px; }

/* 6. Marquee --------------------------------------------------------------- */
.marquee { overflow: hidden; padding: 16px 0; border-block: 1px solid var(--line); background: var(--surface); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; align-items: center; }
.marquee__group span {
  display: flex; align-items: center;
  font: 500 .8rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.marquee__group span::after { content: '✦'; margin-inline: 26px; color: var(--pgm); font-size: .7rem; }

/* 7. About ----------------------------------------------------------------- */
.about { 
  display: grid; 
  gap: 48px; 
}

.about__photo { 
  position: relative; 
  width: 100%; 
  max-width: 420px; 
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.about__photo img { 
  position: relative; 
  z-index: 1; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  border-radius: var(--radius); 
}

.about__photo[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

.badge {
  position: absolute; 
  z-index: 2; 
  left: 14px; 
  bottom: 14px;
  display: flex; 
  align-items: center; 
  gap: 10px;
  padding: 8px 14px; 
  border-radius: 999px;
  background: rgb(0 0 0 / .65); 
  backdrop-filter: blur(8px); 
  color: #fff;
  font: 500 .7rem var(--f-mono); 
  letter-spacing: .06em; 
  text-transform: uppercase;
}

.about__lede { font-size: clamp(1.1rem, 2.4vw, 1.35rem); line-height: 1.55; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block: 32px; }
.stat { padding: 18px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.stat b { display: block; font: 800 clamp(1.8rem, 5vw, 2.6rem)/1 var(--f-display); color: var(--amber); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font: 400 .66rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

.spec { border-top: 1px solid var(--line); }
.spec > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 500 .68rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pgm); }
.spec dd { margin: 0; }
.about__note { margin-top: 28px; color: var(--ink-2); max-width: 60ch; }

/* 8. Work / What I Do ------------------------------------------------------ */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}

.project:hover {
  transform: translateY(-6px);
  border-color: var(--ink-2);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .25);
}

.project__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.project__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.project:hover .project__thumb img {
  transform: scale(1.06);
}

.project__go {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pgm);
  color: #fff;
  font-size: 1.1rem;
  opacity: 0;
  transform: translate(-4px, 4px) scale(.8);
  transition: .25s var(--ease);
}

.project:hover .project__go,
.project__thumb:focus-visible .project__go {
  opacity: 1;
  transform: none;
}

.project__body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project__no {
  font: 500 .72rem var(--f-mono);
  letter-spacing: .1em;
  color: var(--ink-2);
}

.project h3 {
  font: 700 1.05rem/1.3 var(--f-body);
  letter-spacing: 0;
  margin: 0;
}

.project p {
  font-size: .88rem;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}

.stack li {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  font: 400 .68rem var(--f-mono);
  color: var(--ink-2);
}

/* 9. Experience ------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.filters__count { margin-left: auto; font: 400 .74rem var(--f-mono); color: var(--ink-2); }

.exp-list { display: grid; gap: 16px; }
.exp {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s;
}
a.exp:hover { transform: translateY(-4px); border-color: var(--ink-2); }

.exp__thumb { position: relative; flex: none; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.exp__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.exp:hover .exp__thumb img { transform: scale(1.06); }
.exp__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 3rem; color: #fff; background: rgb(0 0 0 / 0);
  opacity: 0; transition: .3s;
}
.exp:hover .exp__play { opacity: 1; background: rgb(0 0 0 / .35); }

.exp__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.exp h3 { font: 700 1.08rem/1.3 var(--f-display); letter-spacing: -.01em; }
.exp__role { font: 500 .72rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pgm); }
.exp__body p:last-child { color: var(--ink-2); font-size: .9rem; }

/* 10. Skills (Perbaikan Warna & Animasi Fader) --------------------------- */
.skills { display: grid; gap: 48px; }
.skills__group > h3 {
  margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px dashed var(--line);
  font: 500 .76rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}

.fader { margin-bottom: 22px; }
.fader__top { display: flex; justify-content: space-between; margin-bottom: 10px; font: 400 .84rem var(--f-mono); }
.fader__top span:last-child { color: var(--amber); font-weight: 600; }
.fader__track {
  position: relative; height: 26px; margin-inline: 7px;
  background:
    linear-gradient(var(--line), var(--line)) center / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%) bottom / 100% 6px no-repeat;
}

.fader__fill {
  position: absolute; left: 0; top: 11px; height: 4px; border-radius: 2px;
  width: var(--lvl, 0%);
  background: linear-gradient(90deg, var(--pvw), var(--amber) 70%, var(--pgm));
  transition: width 1.2s var(--ease);
}

.fader__knob {
  position: absolute; top: 1px; width: 14px; height: 24px;
  left: var(--lvl, 0%); transform: translateX(-50%);
  border-radius: 3px; border: 1px solid var(--ink-2);
  background: linear-gradient(90deg, var(--surface-2), var(--surface) 50%, var(--surface-2));
  box-shadow: 0 2px 6px rgb(0 0 0 / .35);
  transition: left 1.2s var(--ease);
}
.fader__knob::after { content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; transform: translateX(-50%); background: var(--pgm); }

/* Jika javascript mati / prefers-reduced-motion */
html:not(.js) .fader__fill,
html:not(.js) .fader__knob {
  --lvl: var(--target);
}

/* 11. Education ------------------------------------------------------------ */
.timeline { position: relative; display: grid; gap: 40px; max-width: 820px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline > li { position: relative; padding-left: 36px; }
.timeline > li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--pgm);
}
.timeline > li:first-child::before { background: var(--pgm); }
.timeline__year { display: block; margin-bottom: 4px; font: 500 .8rem var(--f-mono); letter-spacing: .08em; color: var(--pgm); }
.timeline h3 { font: 700 1.35rem/1.25 var(--f-display); letter-spacing: -.01em; }
.timeline__school { margin: 4px 0 12px; color: var(--ink-2); }
.timeline li li { position: relative; padding-left: 18px; margin-bottom: 6px; color: var(--ink-2); font-size: .94rem; }
.timeline li li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--ink-2); }

/* 12. Footer --------------------------------------------------------------- */
#footer{
  border-top: 1px solid var(--line);
  padding: 40px 0;
  text-align:center;
}
#footer .foot-brand{ font-family: var(--f-display); font-size: 1.6rem; margin-bottom:6px; }
#footer p{ color: var(--ink-2); font-size:.85rem; margin: 0 0 18px; }
.foot-links{ display:flex; justify-content:center; gap:14px; margin-bottom: 18px; }
.foot-links a{
  width: 38px; height:38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  transition:.2s;
}
.foot-links a:hover{ background: var(--pgm); border-color: var(--pgm); color:#fff; }
.foot-note{ font-family: var(--f-mono); font-size: .72rem; color: var(--ink-2); opacity:.8; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-size: 1.4rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* 13. Motion --------------------------------------------------------------- */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pulse, var(--pgm)) 60%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { opacity: 1; animation: rise .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; }
  .monitor { transform: none !important; }
}

/* Responsive Media Queries */
@media (max-width: 999px) {
  .brand {
    border-bottom: none !important;
    box-shadow: none !important;
  }
}

@media (max-width: 980px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (min-width: 480px) {
  .spec > div { grid-template-columns: 130px 1fr; gap: 16px; }
}

@media (min-width: 700px) {
  .exp { flex-direction: row; }
  .exp__thumb { width: 38%; aspect-ratio: auto; min-height: 190px; }
  .exp__body { flex: 1; justify-content: center; }

  .skills { grid-template-columns: 1fr 1fr; gap: 56px; }
}

@media (min-width: 1000px) {
  .nav-toggle { display: none; }

  .nav { position: static; z-index: auto; padding: 0; background: none; opacity: 1; visibility: visible; transform: none; transition: none; overflow-y: visible; box-shadow: none; width: auto; height: auto; border: 0; }
  .nav__list { display: flex; gap: 2px; flex-direction: row; }
  .nav__link {
    padding: 8px 12px; border: 0; border-radius: 6px;
    font: 500 .72rem var(--f-mono); letter-spacing: .1em;
  }
  .nav__link small { display: none; }
  .nav__link:hover, .nav__link.is-active { padding-left: 12px; background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--pgm); }

  .hero { 
    padding: calc(var(--header-h) + 60px) 0 80px; 
  }

  .hero__grid {
    display: grid;
    width: min(1040px, 100%);
    margin-inline: auto;
    
    grid-template-columns: 1fr 1fr;
    column-gap: 52px;
    row-gap: 20px;
    align-items: center;
    grid-template-areas: 
      'status  monitor' 
      'title   monitor' 
      'bus     monitor' 
      'lede    monitor' 
      'cta     monitor';
  }

  .hero__title { 
    font-size: clamp(2.8rem, 4vw, 4.8rem); 
    line-height: .92;
    letter-spacing: -.02em; 
    word-break: keep-all;
    white-space: nowrap;
  }
  
  .hero__title span { 
    display: block; 
  }

  .monitor { 
    width: 100%;
    max-width: 420px; 
    justify-self: center;
    align-self: center; 
  }

  .hero__lede { 
    font-size: 1.02rem; 
    max-width: 46ch; 
  }

  .hero__cta { 
    width: auto; 
  }
  .hero__cta .btn { 
    flex: 0 0 auto; 
  }

  .about { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }

  .exp-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 1200px) {
  .btn-wa { padding: 0 18px; }
  .btn-wa span { display: inline; }
  .nav__link small { display: inline; margin-right: 2px; font-size: .62rem; }
}

@media (max-width: 380px) {
  .brand span { display: none; }
  .stat { padding: 14px 10px; }
}