:root {
  color-scheme: light;
  --bg: #f2efe8;
  --sf: #fbfaf6;
  --ln: #d9d4c6;
  --tx: #121212;
  --mut: #6c685e;
  --ac: #cdf23c;
  --ink: #121212;
  --emc: #121212;
  --emb: linear-gradient(transparent 58%, #cdf23c 58% 90%, transparent 90%);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
}
* {
  box-sizing: border-box;
  margin: 0;
}
::selection {
  background: var(--ac);
  color: var(--ink);
}
body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--tx);
  font:
    17px/1.6 "Inter Tight",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
.w {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.serif,
h1,
h2,
h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}
.mono {
  font:
    12px "JetBrains Mono",
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mut);
}
em {
  font-style: italic;
  color: var(--emc);
  background: var(--emb);
}

/* ===== GLASS NAVBAR ===== */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 239, 232, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px rgba(18, 18, 18, 0.06);
}
header .w {
  max-width: none;
  padding: 0 clamp(16px, 3.5vw, 56px);
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  color: var(--tx);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.logo img {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  object-fit: contain;
  display: block;
}
nav {
  display: flex;
  gap: clamp(28px, 3.4vw, 52px);
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: 500;
  color: var(--mut);
}
nav a {
  padding: 8px 2px;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--tx);
}
nav a.on {
  color: var(--tx);
  box-shadow: inset 0 -2px var(--ac);
}
.nr {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ln);
  border-radius: 99px;
  padding: 10px 20px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.pill:hover {
  background: var(--tx);
  color: var(--bg);
  border-color: var(--tx);
}
.mb {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ln);
  background: none;
  cursor: pointer;
  position: relative;
}
.mb span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--tx);
  transition: transform 0.3s;
}
.mb span:first-child {
  top: 15px;
}
.mb span:last-child {
  top: 21px;
}
.mb:hover {
  border-color: var(--tx);
}
header.open .mb span:first-child {
  transform: translateY(3px) rotate(45deg);
}
header.open .mb span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* hero */
.hero {
  padding-top: 64px;
}
.hg {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 56px;
  align-items: end;
}
h1 {
  font-size: clamp(44px, 6.8vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.ln > span {
  display: block;
  transform: translateY(108%);
  animation: ri 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--d) * 0.12s + 0.1s);
}
@keyframes ri {
  to {
    transform: none;
  }
}
.hb {
  display: flex;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hb p {
  max-width: 400px;
  color: var(--mut);
  font-size: 18px;
}
.acts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ac);
  color: var(--ink);
  padding: 15px 26px;
  border-radius: 99px;
  font-weight: 500;
  font-size: 16px;
  transition: transform 0.25s;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn.o {
  background: none;
  color: var(--tx);
  border: 1px solid var(--ln);
}
.btn.o:hover {
  border-color: var(--tx);
}
.ph {
  position: relative;
}
.ph img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 18px;
  border: 1px solid var(--ln);
  background: #e9e5d9;
}

/* sections */
section {
  padding: 140px 0 0;
}
.sh {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 20px;
}
h2 {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

/* projects */
.proj {
  position: sticky;
  top: calc(92px + var(--i) * 22px);
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 40px);
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 56px;
  transform-origin: 50% 0;
  will-change: transform;
}
.info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.proj h3 {
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 0.95;
  margin: 16px 0 20px;
  letter-spacing: -0.02em;
}
.proj p {
  color: var(--mut);
  max-width: 380px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0 32px;
}
.tags span {
  border: 1px solid var(--ln);
  border-radius: 99px;
  padding: 4px 13px;
  font-size: 14px;
}
.plinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--ln);
}
.pl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 99px;
  border: 1px solid var(--ln);
  font-weight: 500;
  font-size: 15px;
  transition:
    transform 0.25s,
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.pl svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.pl i {
  font-style: normal;
  transition: transform 0.25s;
}
.pl:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.pl:hover i {
  transform: translate(2px, -2px);
}
.pl.pri {
  background: var(--ac);
  border-color: var(--ink);
  color: var(--ink);
}
.pl.pri:hover {
  background: var(--ink);
  color: var(--ac);
}
.shot {
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3.2vw, 44px);
  overflow: hidden;
  min-width: 0;
}
.win {
  width: 100%;
  background: #fff;
  color: #111;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  font-size: 12px;
  line-height: 1.4;
}
.proj:hover .win {
  transform: translateY(-10px) rotate(-0.5deg);
}
.win img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tb {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}
.tb i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddd;
}
.tb b {
  margin-left: 12px;
  flex: 1;
  max-width: 240px;
  height: 20px;
  border-radius: 99px;
  background: #f3f3f3;
  font:
    400 10px "JetBrains Mono",
    monospace;
  color: #999;
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.bd {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.mn {
  display: flex;
  gap: 16px;
  align-items: center;
}
.mn b {
  margin-right: auto;
  font-size: 15px;
}
.mn u {
  text-decoration: none;
  background: #111;
  color: #fff;
  border-radius: 99px;
  padding: 3px 10px;
}
.hr {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  flex: 1;
}
.hr h4 {
  font-size: clamp(17px, 2.2vw, 28px);
  line-height: 1.04;
  margin: 10px 0 14px;
  font-weight: 600;
}
.bt {
  font-style: normal;
  background: #111;
  color: #fff;
  border-radius: 99px;
  padding: 6px 14px;
  display: inline-block;
  font-size: 11px;
}
.im {
  background: #e8e3d5;
  border-radius: 10px;
  position: relative;
  min-height: 80px;
}
.im:before {
  content: "";
  position: absolute;
  inset: 16% 24% 0;
  border-radius: 50% 50% 0 0;
  background: #111;
}
.p3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  font-weight: 600;
}
.p3 i {
  display: block;
  height: 40px;
  border-radius: 8px;
  background: #ece8dc;
  margin-bottom: 5px;
}
.p3 div:nth-child(2) i {
  background: #cdf23c;
}
.p3 b {
  float: right;
}
.tw {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  flex: 1;
}
.sb {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid #eee;
  padding-right: 12px;
}
.sb b {
  margin-bottom: 8px;
  font-size: 15px;
}
.sb span {
  padding: 5px 8px;
  border-radius: 6px;
}
.sb .on {
  background: #111;
  color: #fff;
}
.ls h4 {
  font-size: 20px;
  margin-bottom: 6px;
  font-weight: 600;
}
.ls small {
  font-weight: 400;
  color: #999;
  font-size: 12px;
}
.tk {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #eee;
}
.tk i {
  width: 14px;
  height: 14px;
  border: 2px solid #111;
  border-radius: 4px;
  flex: none;
}
.tk.d {
  color: #aaa;
  text-decoration: line-through;
}
.tk.d i {
  background: #111;
}
.tk em {
  margin-left: auto;
  font-style: normal;
  background: #ffe3d9;
  color: #111;
  border-radius: 99px;
  padding: 1px 9px;
  font-size: 10px;
}
.wx {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
  flex: 1;
  align-items: end;
}
.wx h4 {
  font-size: 60px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.hh {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 96px;
}
.hh i {
  flex: 1;
  background: #dbe8ff;
  border-radius: 5px 5px 0 0;
}
.hh i.n {
  background: #111;
}
.dy {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 10px;
  color: #777;
}
.dy b {
  display: block;
  color: #111;
}

/* about */
.ab2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.ab2 .lead {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(30px, 3.7vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}
.dl {
  border-bottom: 1px solid var(--ln);
}
.dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--ln);
}
.dl dd {
  margin: 0;
  color: var(--mut);
  font-size: 17px;
}
.dl dt {
  padding-top: 4px;
}

/* skills */
.sk {
  border-top: 1px solid var(--ln);
}
.sr {
  display: grid;
  grid-template-columns: 0.4fr 1.6fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--ln);
}
.sr .it {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.sr .it span {
  transition: color 0.2s;
  cursor: default;
}
.sr .it span:hover {
  color: var(--emc);
  font-style: italic;
}
.sr .it span:not(:last-child):after {
  content: " / ";
  color: var(--ln);
}

/* contact (base) */
.ct {
  padding: 140px 0 0;
}
.cc {
  position: relative;
  overflow: hidden;
  background: var(--ac);
  color: var(--ink);
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(56px, 9vw, 120px) clamp(24px, 5vw, 72px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cc .q {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
}
.cc .q:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.7);
  }
}
.cc h2 {
  font-size: clamp(46px, 8.2vw, 124px);
  line-height: 0.95;
  max-width: 900px;
  margin: 28px 0 48px;
}
.cc em {
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 0.045em;
  text-underline-offset: 0.12em;
}
.em {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--ac);
  border: 0;
  border-radius: 99px;
  padding: 18px 36px;
  font:
    500 clamp(16px, 2vw, 20px) "Inter Tight",
    system-ui,
    sans-serif;
  cursor: pointer;
  transition: transform 0.25s;
}
.em:hover {
  transform: translateY(-3px);
}
.ea {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.em.o {
  background: none;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.em.o:hover {
  background: var(--ink);
  color: var(--ac);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--tx);
  outline-offset: 3px;
}

/* reveal + effects */
html.js .rv {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .rv.in {
  opacity: 1;
  transform: none;
}
h2 em {
  background: none;
}
h1 em {
  background: linear-gradient(transparent 58%, #cdf23c 58% 90%, transparent 90%)
    no-repeat 0 0/0% 100%;
  animation: sweep 0.9s 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes sweep {
  to {
    background-size: 100% 100%;
  }
}
.rot {
  position: absolute;
  right: -14px;
  top: -14px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--ac);
  border: 1px solid var(--tx);
  display: grid;
  place-items: center;
}
.rot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 16s linear infinite;
}
.rot text {
  font:
    500 10.5px "Inter Tight",
    sans-serif;
  fill: var(--ink);
}
.rot i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.mq {
  margin-top: 110px;
  border-block: 1px solid var(--ln);
  overflow: hidden;
  padding: 22px 0;
  background: var(--sf);
}
.mt {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.mq:hover .mt {
  animation-play-state: paused;
}
.mt span {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1;
  padding-right: 0.5em;
  white-space: nowrap;
}
.mt span:after {
  content: "";
  display: inline-block;
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: var(--ac);
  border: 1px solid var(--tx);
  margin-left: 0.5em;
  vertical-align: 0.1em;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.shot.seen {
  animation: wipe 1s cubic-bezier(0.7, 0, 0.2, 1) backwards;
}
.shot.seen .win {
  animation: winIn 1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.dots {
  display: none;
}
@keyframes nudge {
  0%,
  100% {
    translate: 0 0;
  }
  40% {
    translate: -44px 0;
  }
}
@keyframes wipe {
  from {
    clip-path: inset(0 100% 0 0 round 18px);
  }
}
@keyframes winIn {
  from {
    transform: translateY(70px) rotate(3deg) scale(0.96);
    opacity: 0;
  }
}
@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
}
.skip:focus {
  left: 16px;
  z-index: 100;
  background: var(--ac);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 500;
}

/* ===== NAV POLISH ===== */
.pill.av:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ac);
  border: 1px solid var(--ink);
  animation: pulse 2s ease-in-out infinite;
}
@media (min-width: 901px) {
  nav {
    gap: 4px;
    padding: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 18px rgba(18, 18, 18, 0.05);
  }
  nav a {
    padding: 9px 22px;
    border-radius: 99px;
    transition:
      background 0.25s,
      color 0.25s;
  }
  nav a:hover {
    background: rgba(18, 18, 18, 0.07);
    color: var(--tx);
  }
  nav a.on {
    background: var(--ac);
    color: var(--ink);
    box-shadow: none;
  }
}

/* ===== ABOUT POLISH ===== */
.ab2 .lead {
  font-size: clamp(32px, 4.2vw, 62px);
}
html.js .ab2 .lead em {
  background: linear-gradient(transparent 58%, #cdf23c 58% 90%, transparent 90%)
    no-repeat 0 0/0% 100%;
}
html.js .ab2.in .lead em {
  background-size: 100% 100%;
  transition: background-size 1s 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dl {
  counter-reset: r;
}
.dl > div {
  counter-increment: r;
  position: relative;
  isolation: isolate;
}
.dl > div:before {
  content: "";
  position: absolute;
  inset: 0 -14px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(205, 242, 60, 0.32), transparent);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: -1;
}
.dl > div:hover:before {
  opacity: 1;
}
.dl dt:before {
  content: counter(r, decimal-leading-zero);
  display: block;
  color: var(--tx);
  margin-bottom: 6px;
}
.dl dd {
  font-size: 19px;
  transition: color 0.3s;
}
.dl > div:hover dd {
  color: var(--tx);
}

/* hero heading: stop italic clipping, keep highlight aligned */
.ln {
  padding: 0 0.12em 0.12em;
  margin: 0 -0.12em;
}
h1 em {
  padding: 0 0.08em;
  margin: 0 -0.08em;
}

/* ===== SIZE & SPACING TUNE (Work + Contact) ===== */
section,
.ct {
  padding-top: 100px;
}
.sh {
  margin-bottom: 40px;
}
h2 {
  font-size: clamp(40px, 5vw, 72px);
}
.proj {
  margin-bottom: 40px;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(18px, 2.4vw, 32px);
}
.proj h3 {
  font-size: clamp(38px, 4.2vw, 58px);
  margin: 12px 0 14px;
}
.tags {
  margin: 18px 0 24px;
}
.shot {
  padding: clamp(16px, 2.4vw, 32px);
}
.pl {
  padding: 10px 18px;
  font-size: 14px;
}
.cc {
  padding: clamp(44px, 6vw, 84px) clamp(20px, 4vw, 56px);
}
.cc h2 {
  font-size: clamp(36px, 6vw, 84px);
  margin: 20px 0 32px;
}
.em {
  padding: 14px 28px;
  font-size: clamp(15px, 1.5vw, 18px);
}

/* ===== SCROLL ANIMATIONS (About -> Footer) ===== */
html.js .dl > div,
html.js .sr,
html.js .ab2 .lead,
html.js .cc > *,
html.js .ft-col,
html.js .ft-bottom {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .rv.in .dl > div,
html.js .rv.in .sr,
html.js .rv.in .lead,
html.js .cc.in > *,
html.js .ft-card.in .ft-col,
html.js .ft-card.in .ft-bottom {
  opacity: 1;
  transform: none;
}
html.js .rv.in .lead {
  transition-delay: 0.1s;
}
html.js .rv.in .dl > div:nth-child(1),
html.js .rv.in .sr:nth-child(1) {
  transition-delay: 0.15s;
}
html.js .rv.in .dl > div:nth-child(2),
html.js .rv.in .sr:nth-child(2) {
  transition-delay: 0.3s;
}
html.js .rv.in .dl > div:nth-child(3),
html.js .rv.in .sr:nth-child(3) {
  transition-delay: 0.45s;
}
html.js .cc.rv {
  transform: translateY(70px) scale(0.95);
  transition:
    opacity 0.9s ease,
    transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .cc.rv.in {
  transform: none;
}
html.js .cc.in > *:nth-child(1) {
  transition-delay: 0.25s;
}
html.js .cc.in > *:nth-child(2) {
  transition-delay: 0.4s;
}
html.js .cc.in > *:nth-child(3) {
  transition-delay: 0.55s;
}
html.js .ft-card.in .ft-col:nth-child(1) {
  transition-delay: 0.25s;
}
html.js .ft-card.in .ft-col:nth-child(2) {
  transition-delay: 0.4s;
}
html.js .ft-card.in .ft-col:nth-child(3) {
  transition-delay: 0.5s;
}
html.js .ft-card.in .ft-bottom {
  transition-delay: 0.6s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  header .w {
    display: flex;
    justify-content: space-between;
    height: 68px;
  }
  .logo img {
    width: 40px;
    height: 40px;
  }
  nav {
    display: none;
  }
  .mb {
    display: inline-block;
  }
  header.open nav {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 0;
    background: rgba(251, 250, 246, 0.97);
    border: 1px solid var(--ln);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(18, 18, 18, 0.18);
    padding: 8px 18px 12px;
  }
  header.open nav a {
    display: block;
    padding: 14px 16px;
    font-size: 22px;
    color: var(--tx);
    border-bottom: 1px solid var(--ln);
    border-radius: 14px;
    transition: background 0.2s;
    animation: navIn 0.45s both;
  }
  header.open nav a:nth-child(2) {
    animation-delay: 0.05s;
  }
  header.open nav a:nth-child(3) {
    animation-delay: 0.1s;
  }
  header.open nav a:nth-child(4) {
    animation-delay: 0.15s;
  }
  header.open nav a:hover {
    background: rgba(205, 242, 60, 0.35);
    border-color: transparent;
  }
  header.open nav a.on {
    box-shadow: none;
    background: rgba(205, 242, 60, 0.35);
    border-color: transparent;
  }
  header.open nav a:last-child {
    border-bottom-color: transparent;
  }
  .pill {
    padding: 8px 14px;
    font-size: 14px;
  }
  .shot {
    order: -1;
  }
  .win {
    aspect-ratio: auto;
  }
  .mn span {
    display: none;
  }
  .hr h4 {
    font-size: 16px;
  }
  .wx h4 {
    font-size: 44px;
  }
  .tw {
    grid-template-columns: 84px 1fr;
  }
  .hr {
    min-height: 110px;
  }
  h1 {
    white-space: normal;
  }
  .hg,
  .sr,
  .ab2 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .hg {
    gap: 48px;
  }
  .ph {
    width: 100%;
    max-width: 360px;
  }
  .rot {
    width: 104px;
    height: 104px;
    right: -8px;
    top: -8px;
  }
  #stack {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 24px 13vw 28px;
    margin: 0 -28px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  #stack::-webkit-scrollbar {
    display: none;
  }
  .proj {
    flex: 0 0 74vw;
    scroll-snap-align: center;
    grid-template-columns: 1fr;
    position: relative;
    top: auto !important;
    margin-bottom: 0;
    opacity: var(--o, 1);
    transform: perspective(900px) rotateY(var(--r, 0deg)) scale(var(--s, 1)) !important;
  }
  #stack.hint .proj {
    animation: nudge 1.2s 0.4s ease-in-out;
  }
  .dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
  }
  .dots button {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    border: 1px solid var(--tx);
    background: none;
    padding: 0;
    cursor: pointer;
    transition:
      width 0.3s,
      background 0.3s;
  }
  .dots button.on {
    width: 28px;
    background: var(--ac);
  }
  #cnt:after {
    content: " \00b7  swipe";
  }
  section,
  .ct {
    padding-top: 100px;
  }
}
@media (max-width: 520px) {
  .pill.av {
    display: none;
  }
  .logo {
    font-size: 20px;
  }
  .w {
    padding: 0 20px;
  }
  header .w {
    padding: 0 16px;
  }
}
@media (max-width: 900px) {
  .hero {
    padding-top: 36px;
  }
  h1 {
    line-height: 0.98;
    font-size: clamp(44px, 11.5vw, 80px);
  }
  .hb {
    margin-top: 28px;
    gap: 24px;
  }
  .hb p {
    font-size: 17px;
  }
}
@media (max-width: 520px) {
  .acts {
    flex-direction: column;
    width: 100%;
  }
  .acts .btn {
    justify-content: center;
    width: 100%;
  }
}
@media (max-width: 900px) {
  section,
  .ct {
    padding-top: 72px;
  }
  .sh {
    margin-bottom: 28px;
  }
  #stack {
    align-items: flex-start;
    padding: 16px 9vw 20px;
  }
  .proj {
    flex: 0 0 82vw;
    padding: 18px;
  }
  .proj h3 {
    font-size: 36px;
    margin: 10px 0 12px;
  }
  .tags {
    margin: 16px 0 20px;
  }
  .plinks {
    margin-top: 0;
    padding-top: 18px;
  }
  .pl {
    padding: 9px 16px;
    font-size: 14px;
  }
  .cc {
    padding: 44px 22px;
  }
  .cc h2 {
    margin: 16px 0 26px;
  }
  .em {
    padding: 13px 24px;
  }
}
@media (max-width: 520px) {
  #stack {
    margin: 0 -20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .ln > span {
    transform: none;
  }
  html.js .rv,
  html.js .dl > div,
  html.js .sr,
  html.js .ab2 .lead,
  html.js .cc > *,
  html.js .ft-col,
  html.js .ft-bottom {
    opacity: 1 !important;
    transform: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .ab2 .lead em {
    background-size: 100% 100% !important;
  }
  h1 em {
    background-size: 100% 100%;
  }
}

/* ===== FIXES: cards, work + contact sizing (all devices) ===== */
.proj {
  align-items: stretch;
}
.info {
  justify-content: center;
}
.plinks {
  margin-top: 8px;
}
section,
.ct {
  padding-top: clamp(64px, 8vw, 100px);
}
.sh {
  margin-bottom: clamp(24px, 3vw, 40px);
}
h2 {
  font-size: clamp(34px, 5vw, 64px);
}
.proj {
  min-height: 0;
  padding: clamp(16px, 2.2vw, 28px);
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: 32px;
}
.proj h3 {
  font-size: clamp(34px, 4vw, 54px);
  margin: 10px 0 12px;
}
.tags {
  margin: 16px 0 22px;
}
.plinks {
  margin-top: 8px;
  padding-top: 18px;
  gap: 10px;
}
.shot {
  padding: clamp(14px, 2vw, 26px);
  align-content: center;
}
.win {
  aspect-ratio: 16/10;
}
.cc {
  padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 56px);
}
.cc h2 {
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1;
  max-width: 760px;
  margin: 16px 0 28px;
}
.ea {
  width: 100%;
  justify-content: center;
}
.em {
  padding: 14px 26px;
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  #stack {
    align-items: stretch;
    padding: 12px 9vw 16px;
  }
  .proj {
    flex: 0 0 82vw;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px;
    gap: 14px;
  }
  .shot {
    order: -1;
    flex: none;
    width: 100%;
    padding: 14px;
  }
  .win {
    aspect-ratio: 16/11;
  }
  .hr {
    min-height: 0;
  }
  .info {
    flex: 1;
    justify-content: flex-start;
  }
  .proj h3 {
    font-size: 32px;
    margin: 8px 0 10px;
  }
  .proj p {
    max-width: none;
  }
  .tags {
    margin: 12px 0 16px;
  }
  .plinks {
    margin-top: auto;
    padding-top: 16px;
  }
  .pl {
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 14px;
  }
  .cc {
    padding: 36px 18px;
  }
  .cc h2 {
    font-size: clamp(30px, 8.5vw, 44px);
    margin: 14px 0 22px;
  }
  .ea {
    flex-direction: column;
    align-items: stretch;
    max-width: 380px;
  }
  .em {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 18px;
    font-size: 15px;
  }
}

/* ===== WORK SECTION: ANIMATIONS (all devices) ===== */
#work .sh h2 em {
  background: linear-gradient(transparent 58%, #cdf23c 58% 90%, transparent 90%)
    no-repeat 0 0/0% 100%;
}
#work .sh.in h2 em {
  background-size: 100% 100%;
  transition: background-size 1s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.js #work .sh.in h2 {
  animation: hdIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
@keyframes hdIn {
  from {
    opacity: 0;
    translate: -60px 0;
    filter: blur(12px);
    letter-spacing: 0.08em;
  }
}

/* card contents fly in, staggered */
.proj.seen .info > * {
  animation: flyIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.proj.seen .info > *:nth-child(1) {
  animation-delay: 0.1s;
}
.proj.seen .info > *:nth-child(2) {
  animation-delay: 0.2s;
  animation-name: titleIn;
}
.proj.seen .info > *:nth-child(3) {
  animation-delay: 0.32s;
}
.proj.seen .info > *:nth-child(4) {
  animation-delay: 0.42s;
}
.proj.seen .info > *:nth-child(5) {
  animation-delay: 0.52s;
}
@keyframes flyIn {
  from {
    opacity: 0;
    translate: 0 40px;
    filter: blur(8px);
  }
}
@keyframes titleIn {
  from {
    opacity: 0;
    translate: -70px 0;
    rotate: -3deg;
    filter: blur(14px);
    letter-spacing: 0.06em;
  }
}
.proj.seen .tags span {
  animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
}
.tags span:nth-child(1) {
  animation-delay: 0.6s !important;
}
.tags span:nth-child(2) {
  animation-delay: 0.7s !important;
}
.tags span:nth-child(3) {
  animation-delay: 0.8s !important;
}
.tags span:nth-child(4) {
  animation-delay: 0.9s !important;
}
@keyframes pop {
  from {
    opacity: 0;
    scale: 0.3;
    rotate: -12deg;
  }
}
.tags span {
  transition:
    background 0.25s,
    color 0.25s,
    translate 0.25s;
}
.tags span:hover {
  background: var(--ink);
  color: var(--ac);
  translate: 0 -3px;
}

/* screenshot: floating window, drifting blobs, glare, 3D tilt */
.shot {
  position: relative;
  isolation: isolate;
  transform: perspective(1000px) rotateX(var(--tx, 0deg))
    rotateY(var(--ty, 0deg));
  transition: transform 0.25s ease-out;
}
.win {
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
.shot.seen .win {
  animation:
    winIn 1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) backwards,
    bob 5s 1.4s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 0 -10px;
    rotate: 0.6deg;
  }
}
.shot:before,
.shot:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.shot:before {
  width: 60%;
  aspect-ratio: 1;
  left: -15%;
  top: -25%;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(40px);
  z-index: 1;
  animation: drift 9s ease-in-out infinite alternate;
}
.shot:after {
  inset: 0;
  border-radius: inherit;
  z-index: 3;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.4),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.shot:hover:after {
  opacity: 1;
}
@keyframes drift {
  to {
    translate: 60% 50%;
    scale: 1.4;
  }
}

/* buttons shine + magnetic */
.pl {
  position: relative;
  overflow: hidden;
}
.pl.pri:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine {
  0%,
  60% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}
.pl {
  translate: var(--bx, 0) var(--by, 0);
}

/* mobile: active card pops its content again on every swipe */
.proj.act .tags span {
  animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
}
.proj.act .pl {
  animation: flyIn 0.6s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.proj.act .shot .win {
  animation: bob 4s ease-in-out infinite;
}
@media (max-width: 900px) {
  .shot {
    transform: none;
  }
}

/* ===== MOBILE / TABLET: TRUE 3D CAROUSEL (<=900px) ===== */
@media (max-width: 900px) {
  #work {
    overflow-x: clip;
  }
  #stack {
    display: block !important;
    position: relative;
    overflow: visible !important;
    padding: 0 !important;
    margin: 8px 0 0 !important;
    height: var(--sh, 520px);
    perspective: 1100px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    scroll-snap-type: none;
  }
  #stack.hint .proj {
    animation: none;
  }
  #stack .proj {
    position: absolute !important;
    left: 50%;
    top: 0 !important;
    flex: none;
    width: min(78vw, 380px);
    height: var(--sh, 520px);
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    transform: var(--t, none) !important;
    opacity: 1;
    transition: none;
    box-shadow: 0 30px 60px -25px rgba(18, 18, 18, 0.35);
    backface-visibility: hidden;
    will-change: transform, opacity;
  }
  #stack .proj .plinks {
    margin-top: auto;
  }
  #stack a,
  #stack img {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
  }
  .dots {
    margin-top: 22px;
  }
}

/* carousel arrows */
.cnav {
  display: none;
}
@media (max-width: 900px) {
  .cnav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
  }
  .cnav .dots {
    margin: 0;
  }
  .arr {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--ln);
    background: var(--sf);
    color: var(--tx);
    display: grid;
    place-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
      transform 0.2s,
      background 0.2s,
      color 0.2s,
      border-color 0.2s;
  }
  .arr.nx {
    background: var(--ac);
    border-color: var(--ink);
  }
  .arr:active {
    transform: scale(0.88);
  }
  .arr:hover {
    background: var(--ink);
    color: var(--ac);
    border-color: var(--ink);
  }
}

/* remove dots, show counter instead */
.cnav .dots {
  display: none !important;
}
.ccount {
  min-width: 64px;
  text-align: center;
  color: var(--tx);
}

/* ===== TOOLS & CRAFT: tidier sizing ===== */
.sr {
  gap: clamp(12px, 3vw, 40px);
  padding: clamp(20px, 2.6vw, 30px) 0;
  align-items: baseline;
}
.sr .it {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.25;
}
@media (max-width: 900px) {
  .sr {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
  .sr .it {
    font-size: clamp(26px, 7vw, 34px);
  }
}

/* ===== WORK SECTION: FINAL SIZE FIX ===== */
#work .sh h2 {
  font-size: clamp(34px, 4.6vw, 60px);
}
@media (min-width: 901px) {
  .proj {
    height: clamp(400px, 58vh, 470px);
    min-height: 0;
    padding: 24px;
    gap: 36px;
    grid-template-columns: 0.8fr 1.2fr;
    margin-bottom: 28px;
    align-items: stretch;
  }
  .proj h3 {
    font-size: clamp(36px, 3.8vw, 52px);
    margin: 8px 0 10px;
  }
  .proj p {
    font-size: 16px;
  }
  .tags {
    margin: 14px 0 16px;
  }
  .shot {
    height: 100%;
    padding: clamp(16px, 2vw, 28px);
  }
  .win {
    aspect-ratio: auto;
    height: 100%;
    max-height: 100%;
  }
  .win .bd {
    overflow: hidden;
  }
}
@media (max-width: 900px) {
  #stack .proj {
    width: min(76vw, 340px);
    padding: 14px;
  }
  .win {
    aspect-ratio: 16/10;
  }
  #stack .proj h3 {
    font-size: 30px;
  }
  #stack .proj p {
    font-size: 15px;
  }
}

/* ===== TOOLS & CRAFT: upgraded ===== */
.sk {
  counter-reset: s;
}
.sr {
  counter-increment: s;
  position: relative;
  isolation: isolate;
  grid-template-columns: 0.32fr 1.5fr 0.75fr;
  align-items: center;
}
.sr:before {
  content: "";
  position: absolute;
  inset: 0 -18px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(205, 242, 60, 0.38), transparent 85%);
  opacity: 0;
  transform: scaleX(0.96);
  transform-origin: left;
  transition:
    opacity 0.35s,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}
.sr:hover:before {
  opacity: 1;
  transform: none;
}
.sr > .mono:before {
  content: counter(s, decimal-leading-zero);
  display: block;
  color: var(--tx);
  margin-bottom: 6px;
}
.sr:hover > .mono {
  color: var(--tx);
}
.sr .nt {
  color: var(--mut);
  font-size: 15px;
  line-height: 1.5;
  max-width: 300px;
  transition:
    color 0.3s,
    translate 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sr:hover .nt {
  color: var(--tx);
  translate: 6px 0;
}
.sr.lrn .nt:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ac);
  border: 1px solid var(--ink);
  animation: pulse 2s ease-in-out infinite;
}
.sr .it span {
  display: inline-block;
  transition:
    translate 0.3s cubic-bezier(0.3, 1.6, 0.5, 1),
    rotate 0.3s,
    background-size 0.3s;
  background: linear-gradient(transparent 58%, #cdf23c 58% 90%, transparent 90%)
    no-repeat 0 0/0% 100%;
}
.sr .it span:hover {
  color: var(--tx);
  font-style: italic;
  translate: 0 -5px;
  rotate: -2deg;
  background-size: 100% 100%;
}
.sr .it span:not(:last-child):after {
  margin: 0 0.08em;
}
.sr.lrn .it span {
  color: var(--mut);
}
.sr.lrn .it span:hover {
  color: var(--tx);
}
html.js .rv.in .sr .it span {
  animation: skIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: 0.35s;
}
html.js .rv.in .sr .it span:nth-child(2) {
  animation-delay: 0.42s;
}
html.js .rv.in .sr .it span:nth-child(3) {
  animation-delay: 0.49s;
}
html.js .rv.in .sr .it span:nth-child(4) {
  animation-delay: 0.56s;
}
html.js .rv.in .sr .it span:nth-child(5) {
  animation-delay: 0.63s;
}
@keyframes skIn {
  from {
    opacity: 0;
    translate: 0 26px;
    rotate: 4deg;
  }
}
@media (max-width: 900px) {
  .sr {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sr:before {
    inset: 0 -10px;
  }
  .sr .nt {
    max-width: none;
    font-size: 14px;
  }
  .sr > .mono:before {
    display: inline;
    margin: 0 10px 0 0;
  }
}

/* logo: no animation, green dot after name */
.logo img,
.logo:hover img {
  transition: none;
  transform: none;
}
.logo span:after {
  content: "";
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: #7fc41a;
  border: 0;
  vertical-align: baseline;
}

/* =====================================================
   CONTACT: balanced sizes (final)
   ===================================================== */
.ct {
  padding-top: clamp(56px, 7vw, 88px);
}
.ct .sh {
  align-items: baseline;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.ct .sh h2 {
  font-size: clamp(34px, 4.6vw, 60px);
}
.cc {
  max-width: 100%;
  padding: clamp(32px, 4.5vw, 56px) clamp(20px, 4vw, 48px);
  border-radius: clamp(24px, 3vw, 36px);
}
.cc .q {
  font-size: 15px;
}
.cc h2 {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.04;
  max-width: 640px;
  margin: 14px 0 24px;
}
.cc .em {
  padding: 12px 24px;
  font-size: clamp(14px, 1.3vw, 16px);
}
@media (max-width: 900px) {
  .cc {
    padding: 32px 18px;
  }
  .cc h2 {
    font-size: clamp(26px, 7.5vw, 38px);
    margin: 12px 0 20px;
  }
  .cc .em {
    padding: 12px 18px;
    font-size: 15px;
  }
}

/* =====================================================
   FOOTER: full width, soft dark-olive (not black), no glow
   To change the colour, edit --ft-bg below:
     lime  ->  --ft-bg: #cdf23c;  (then set text colours to dark)
     cream ->  --ft-bg: #e7e2d4;
   ===================================================== */
.site-footer {
  --ft-bg: linear-gradient(135deg, #1f2a12 0%, #2a3815 55%, #36481b 100%);
  width: 100%;
  margin-top: clamp(56px, 7vw, 88px);
  padding: 0;
}
.site-footer .ft-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background: var(--ft-bg);
  color: var(--bg);
  padding: clamp(40px, 5vw, 64px)
    max(clamp(20px, 4vw, 64px), calc((100% - 1200px) / 2 + 28px)) 24px;
}
/* footer card is always visible (only the columns fade in) */
html.js .site-footer .ft-card.rv {
  opacity: 1;
  transform: none;
}

.site-footer .ft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
  gap: 40px 56px;
  align-items: start;
  padding-bottom: 40px;
}
.site-footer .ft-col h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ac);
  font-weight: 400;
  margin: 0 0 16px;
}
.site-footer .ft-col a {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  padding: 5px 0;
  color: rgba(242, 239, 232, 0.88);
  transition:
    color 0.25s,
    transform 0.25s;
}
.site-footer .ft-col a:hover {
  color: var(--ac);
  transform: translateX(8px);
}
.site-footer .ft-mid p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 340px;
  color: rgba(242, 239, 232, 0.8);
}

/* social buttons */
.site-footer .ft-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}
.site-footer .ft-col .ft-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition:
    transform 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}
.site-footer .ft-social a.gh {
  background: var(--ac);
}
.site-footer .ft-social a.in {
  background: #a9c7ff;
}
.site-footer .ft-col .ft-social a:hover {
  background: #ffa98a;
  color: var(--ink);
  transform: translateY(-4px) rotate(-2deg);
  box-shadow: 0 10px 0 -2px var(--bg);
}
.site-footer .ft-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.site-footer .ft-social i {
  font-style: normal;
  transition: transform 0.25s;
}
.site-footer .ft-social a:hover i {
  transform: translate(3px, -3px);
}

/* bottom bar */
.site-footer .ft-bottom {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(242, 239, 232, 0.2);
  font-size: 14px;
  line-height: 1.4;
  color: rgba(242, 239, 232, 0.75);
}
.heart {
  color: #ff6b81;
  display: inline-block;
  animation: beat 1.4s ease-in-out infinite;
}
@keyframes beat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}
.site-footer .totop {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--bg);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.site-footer .totop i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ac);
  color: var(--ink);
  font-style: normal;
  font-size: 17px;
  transition:
    transform 0.3s,
    background 0.3s;
}
.site-footer .totop:hover i {
  transform: translateY(-5px);
  background: #ffa98a;
}

/* tablet / mobile */
@media (max-width: 900px) {
  .site-footer .ft-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .site-footer .ft-mid {
    grid-column: 1 / -1;
    order: -1;
  }
  .site-footer .ft-mid p {
    max-width: none;
  }
  .site-footer .ft-social {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .site-footer .ft-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .ft-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .site-footer .totop {
    margin-left: 0;
  }
}
