:root {
  --bg: #fbf9f4;
  --ink: #161616;
  --mut: #6a6a64;
  --blue: #2447f5;
  --coral: #ff6b4a;
  --yel: #ffd23f;
  --mint: #4fe0a0;
  --card: #fff;
  --line: #e7e3d9;
  --onyel: #161616;

  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 70px);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 30;
}

a {
  color: inherit;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* nav */

header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.25rem var(--head);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.mono {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font: 700 0.95rem var(--head);
  letter-spacing: -0.06em;
}

.links {
  display: flex;
  gap: clamp(16px, 4vw, 36px);
}

.links a {
  text-decoration: none;
  color: var(--mut);
  font-weight: 500;
  transition: color 0.2s;
}

.links a:hover {
  color: var(--ink);
}

/* hero */

.hero {
  padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
}

.tag {
  font: 600 0.8rem var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 0 0 clamp(20px, 3vw, 36px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
}

.hh {
  position: relative;
  display: inline-block;
  margin: 0;
  font: 700 clamp(3.1rem, 12.4vw, 9.6rem)/0.9 var(--head);
  letter-spacing: -0.055em;
  padding-left: 0.28em;
}

.hh span {
  display: block;
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hh span:nth-child(2) {
  animation-delay: 0.12s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.25em);
  }
}

.st {
  position: absolute;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.st:hover {
  transform: rotate(12deg) scale(1.12);
}

.st.pop {
  animation: wig 0.6s;
}

@keyframes wig {
  25% {
    transform: rotate(-18deg) scale(1.2);
  }
  60% {
    transform: rotate(14deg) scale(1.15);
  }
}

.st svg {
  display: block;
  width: 100%;
  height: 100%;
}

.spark {
  left: -0.02em;
  top: 0.08em;
  width: 0.3em;
  height: 0.3em;
  animation: spin 14s linear infinite;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

.pill {
  left: 9.1em;
  top: -0.19em;
  padding: 0.05em 0.45em;
  background: var(--mint);
  color: #0b3d2a;
  border-radius: 99px;
  font: 600 0.16em var(--hand);
  font-size: clamp(1rem, 3vw, 2.2rem);
  transform: rotate(-4deg);
  letter-spacing: 0;
}

.heart {
  left: -0.05em;
  bottom: -0.1em;
  width: 0.52em;
  height: 0.52em;
  transform: rotate(-8deg);
}

.sub {
  max-width: 34ch;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  margin: clamp(28px, 4vw, 44px) 0 28px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 99px;
  transition:
    transform 0.2s,
    background 0.2s;
}

.btn:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

.note {
  font: 600 1.6rem var(--hand);
  color: var(--blue);
  transform: rotate(-3deg);
}

.scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(36px, 6vw, 64px);
  color: var(--mut);
  font-size: 0.9rem;
}

.scroll b {
  width: 22px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.scroll b::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 3px;
  background: currentColor;
  animation: dot 1.8s infinite;
}

@keyframes dot {
  60% {
    transform: translateY(10px);
    opacity: 0;
  }
}

/* sections */

section {
  padding: clamp(56px, 9vw, 110px) 0;
}

h2 {
  font: 700 clamp(2.2rem, 6vw, 4.4rem)/0.98 var(--head);
  letter-spacing: -0.045em;
  margin: 0 0 clamp(28px, 4vw, 48px);
}

.lbl {
  font: 600 0.78rem var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}

/* phone */

.show {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--blue);
  border-radius: 36px;
}

.phone {
  width: min(260px, 62vw);
  aspect-ratio: 9/19.2;
  border: 9px solid #101010;
  border-radius: 38px;
  background: #101010;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.5);
}

.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 70px;
  height: 20px;
  margin-left: -35px;
  background: #101010;
  border-radius: 12px;
  z-index: 2;
}

.scr {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #101010;
  padding: 0;
  display: block;
}

.scr img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scr strong {
  display: block;
  color: var(--ink);
  font: 700 1.1rem var(--head);
  margin-bottom: 6px;
}

.fade {
  animation: fd 0.35s;
}

@keyframes fd {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

.stage .st {
  right: 14px;
  top: -18px;
  width: 62px;
  height: 62px;
  transform: rotate(14deg);
}

.ctl {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.ctl button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: none;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.ar:hover {
  background: var(--ink);
  color: var(--bg);
}

.dots {
  display: flex;
  gap: 8px;
}

.dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: none;
  padding: 0;
  cursor: pointer;
  transition:
    width 0.25s,
    background 0.25s;
}

.dots button[aria-current="true"] {
  width: 30px;
  border-radius: 8px;
  background: var(--ink);
}

.cap {
  font: 700 clamp(1.6rem, 3.4vw, 2.4rem)/1.05 var(--head);
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}

.desc {
  color: var(--mut);
  max-width: 44ch;
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--card);
  border: 1.5px solid var(--line);
}

.chips li:nth-child(4n + 1) {
  background: var(--yel);
  color: var(--onyel);
  border-color: transparent;
}

.chips li:nth-child(4n + 2) {
  background: var(--mint);
  color: #0b3d2a;
  border-color: transparent;
}

.chips li:nth-child(4n + 3) {
  background: var(--coral);
  color: #fff;
  border-color: transparent;
}

.case {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 2px dashed var(--line);
  font-size: 0.98rem;
}

.case p {
  margin: 0 0 8px;
}
.case b {
  font-family: var(--head);
}

/* projects */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin-top: clamp(48px, 7vw, 80px);
}

.card {
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: var(--card);
  transition:
    transform 0.25s,
    border-color 0.25s;
}

.card:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  border-color: var(--ink);
}

.card .n {
  font: 600 1.5rem var(--hand);
  color: var(--blue);
}

.card h3 {
  font: 700 1.7rem var(--head);
  letter-spacing: -0.03em;
  margin: 2px 0 6px;
}

.card p {
  margin: 0 0 14px;
  color: var(--mut);
  font-size: 0.98rem;
}

.mini {
  height: 150px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font: 600 1.25rem var(--hand);
  color: var(--onyel);
}

.stat {
  font-size: 0.85rem;
  color: var(--mut);
  margin-top: 14px;
}

/* about */

.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.about p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  margin: 0 0 18px;
  max-width: 36ch;
}
.about {
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 54px);
  align-items: stretch;
}
.about .exp {
  position: relative;
  min-height: 260px;
  padding: 26px 28px 24px 34px;
  transform: rotate(1deg);
  overflow: hidden;
}
.about .exp::after {
  content: "{ }";
  position: absolute;
  right: 18px;
  bottom: -24px;
  font: 700 6rem var(--head);
  color: rgba(22, 22, 22, 0.1);
  transform: rotate(-12deg);
  pointer-events: none;
}
.about .exp h3 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}
.about .exp li {
  position: relative;
  z-index: 1;
  padding: 11px 0;
}

.exp {
  list-style: none;
  margin: 0;
  padding: 24px;
  border-radius: 22px;
  background: var(--yel);
  color: var(--onyel);
  transform: rotate(1.5deg);
}

.exp h3 {
  font: 600 1.7rem var(--hand);
  margin: 0 0 8px;
}

.exp li {
  padding: 9px 0;
  border-top: 1.5px solid rgba(0, 0, 0, 0.18);
  font-weight: 500;
}

/* contact */

.contact {
  text-align: center;
  background: var(--blue);
  color: #fff;
  border-radius: 40px;
  padding: clamp(48px, 8vw, 96px) 24px;
  margin: 0 clamp(12px, 3vw, 32px);
}

.contact h2 {
  margin-inline: auto;
  max-width: 14ch;
  color: #fff;
}

.contact p {
  max-width: 38ch;
  margin: 0 auto 30px;
  font-size: 1.15rem;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #161616;
  padding: 16px 30px;
  border-radius: 99px;
  font: 700 1.15rem var(--head);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.mail:hover {
  transform: scale(1.06) rotate(-2deg);
}

.mail svg {
  width: 24px;
  height: 24px;
  animation: bob 2.2s ease-in-out infinite;
}

.mail:hover svg {
  animation: wag 0.5s infinite;
}

@keyframes bob {
  50% {
    transform: translateY(-4px);
  }
}

@keyframes wag {
  50% {
    transform: rotate(18deg);
  }
}

/* footer */

footer {
  padding: 48px 0 40px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}

.foot .sig {
  font: 600 1.5rem var(--hand);
  color: var(--blue);
}

.foot small {
  color: var(--mut);
  width: 100%;
}

.rv {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
.rv.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 520px) {
  .show,
  .about {
    grid-template-columns: 1fr;
  }
  .stage {
    max-width: 360px;
  }
}

@media (max-width: 520px) {
  .pill {
    left: 4.6em;
    top: 0.5em;
  }
}

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

/* Refinements: keep the expressive identity, improve hierarchy and usability */
.logo {
  gap: 0;
}
.wordmark {
  font: 700 1.22rem var(--head);
  letter-spacing: -0.055em;
}
.wordmark .code-mark {
  color: var(--blue);
  font-weight: 600;
}
.logo-mark {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-right: 9px;
}
.hero {
  max-width: 1120px;
  padding-top: clamp(30px, 5vw, 58px);
  padding-bottom: clamp(38px, 5vw, 58px);
}
.hh {
  max-width: 100%;
}
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5% 0 10% 35%;
  opacity: 0.28;
  pointer-events: none;
  background-image: radial-gradient(var(--mut) 0.7px, transparent 0.7px);
  background-size: 17px 17px;
  mask-image: linear-gradient(90deg, transparent, black 35%, transparent);
}
.building {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  font: 600 0.72rem var(--body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mut);
}
.cursor {
  width: 7px;
  height: 17px;
  background: var(--mint);
  display: inline-block;
  border-radius: 2px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--mut);
  font: 500 0.68rem var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-meta span:last-child {
  color: var(--blue);
}
.hh .heart {
  left: auto;
  right: -0.05em;
  bottom: -0.32em;
  width: 0.52em;
  height: 0.52em;
  filter: drop-shadow(0 5px 5px rgba(255, 107, 74, 0.12));
  animation: heartFloat 3.8s ease-in-out infinite;
}
.hh .heart svg {
  overflow: visible;
}
.hh .heart path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 68;
  stroke-dashoffset: 0;
}
@keyframes heartFloat {
  0%,
  100% {
    transform: rotate(-9deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-9px);
  }
}
.annotation {
  position: absolute;
  color: var(--mut);
  font: 500 0.65rem var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.annotation::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 1px;
  background: var(--blue);
  vertical-align: middle;
  margin-right: 8px;
}
.annotation.a {
  right: 5%;
  top: 24%;
  transform: rotate(7deg);
}
.annotation.b {
  left: 1%;
  bottom: 14%;
  transform: rotate(-5deg);
}
.work-wrap {
  position: relative;
}
.work-wrap::before {
  content: "";
  position: absolute;
  inset: 4% 0 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black, transparent 82%);
}
.work-wrap > * {
  position: relative;
}
.sub {
  max-width: 38ch;
}
.show {
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}
.stage {
  min-height: 420px;
  overflow: hidden;
}

.stage::after {
  content: "LIVE PREVIEW";
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font: 600 0.58rem var(--body);
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
}
.stage .phone {
  z-index: 1;
}
.show > div:last-child {
  position: relative;
  padding: 10px 0 10px 24px;
  border-left: 1px solid var(--line);
}
.show > div:last-child::before {
  content: "PROJECT NOTES";
  position: absolute;
  top: -22px;
  left: 24px;
  color: var(--mut);
  font: 600 0.58rem var(--body);
  letter-spacing: 0.16em;
}
.case {
  margin-top: 20px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
.case p {
  margin: 0;
  font-size: 0.9rem;
}
.case p:last-child {
  grid-column: 1/-1;
}
.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.card {
  min-height: 160px;
  padding: 18px;
}
.project-card .n {
  font-size: 1.2rem;
}
.project-card h3 {
  font-size: 1.35rem;
}
.project-open {
  font-size: 0.76rem;
}

.stage {
  box-shadow: 0 18px 45px -28px rgba(36, 71, 245, 0.65);
}
.phone {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s;
}
.show:hover .phone {
  transform: translateY(-4px) rotate(-1deg);
}
.card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
}
.project-card {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.project-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue) inset;
  transform: translateY(-3px);
}
.project-open {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
}
.preview-art {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  padding: 18px;
  background: linear-gradient(150deg, #fff 0%, #f3f0e8 100%);
  color: #24231f;
  border-radius: 20px;
}
.preview-label {
  font: 600 0.48rem var(--body);
  letter-spacing: 0.12em;
  color: #777;
}
.preview-art strong {
  font: 700 1.2rem var(--head);
  line-height: 1.1;
  max-width: 12ch;
}
.preview-line {
  width: 70%;
  height: 8px;
  border-radius: 9px;
  background: var(--preview-accent);
  opacity: 0.85;
  box-shadow:
    0 18px 0 rgba(0, 0, 0, 0.06),
    0 36px 0 rgba(0, 0, 0, 0.04);
}
.preview-art small {
  font: 500 0.62rem/1.5 var(--body);
  color: #68665f;
  max-width: 24ch;
}
.preview-foot {
  font: 600 0.56rem var(--body);
  letter-spacing: 0.08em;
  color: #777;
}
.card .mini {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.card .mini::before,
.card .mini::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(22, 22, 22, 0.22);
  border-radius: 18px;
  transform: rotate(-9deg);
  width: 76px;
  height: 112px;
  right: 18%;
  top: 20px;
  background: rgba(255, 255, 255, 0.38);
  z-index: -1;
}
.card .mini::after {
  right: 11%;
  top: 30px;
  transform: rotate(8deg);
  background: rgba(255, 255, 255, 0.2);
}
.card h3 {
  margin-top: 5px;
}
.card .chips li {
  font-size: 0.78rem;
  padding: 5px 10px;
}
.contact {
  position: relative;
  overflow: hidden;
}
.contact::after {
  content: "✳";
  position: absolute;
  right: 5%;
  top: 8%;
  font-size: clamp(3rem, 8vw, 7rem);
  color: rgba(255, 255, 255, 0.18);
  transform: rotate(14deg);
  pointer-events: none;
}
.foot .logo {
  gap: 0;
}
@media (max-width: 820px) {
  .show {
    grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
    gap: 24px;
  }
  .stage {
    min-height: 440px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case {
    grid-template-columns: 1fr;
  }
  .case p:last-child {
    grid-column: auto;
  }
}
@media (max-width: 680px) {
  .show {
    grid-template-columns: 1fr;
  }
  .stage {
    max-width: none;
    min-height: 460px;
  }
  .show > div:last-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 32px 0 0;
  }
  .show > div:last-child::before {
    top: 10px;
    left: 0;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .about .exp {
    min-height: 0;
  }
}
@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
  }
  .card {
    min-height: 145px;
    padding: 14px;
  }
  .project-card h3 {
    font-size: 1.16rem;
  }
  .project-open {
    font-size: 0.7rem;
  }
  .stage {
    min-height: 420px;
  }
  .hero-meta {
    font-size: 0.56rem;
  }
  .annotation.a {
    right: 1%;
    top: 21%;
  }
  .annotation.b {
    left: 0;
    bottom: 12%;
  }
  .hh .heart {
    right: 0;
    bottom: -0.35em;
    width: 0.42em;
    height: 0.42em;
  }
  .preview-art {
    min-height: 330px;
  }
  nav {
    height: 62px;
  }
  .links {
    gap: 14px;
  }
  .links a {
    font-size: 0.88rem;
  }
  .hero {
    padding-top: 46px;
  }
  .hh {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
    padding-left: 0.08em;
  }
  .sub {
    font-size: 1.08rem;
  }
  .stage {
    padding: 20px;
    border-radius: 28px;
  }
  .contact {
    border-radius: 28px;
    margin-inline: 8px;
  }
}
@media (max-width: 360px) {
  .links {
    gap: 9px;
  }
  .links a {
    font-size: 0.8rem;
  }
  .logo {
    font-size: 1.1rem;
  }
}

/* Editorial alignment */
.wrap {
  max-width: 1240px;
  padding-inline: clamp(24px, 5.2vw, 76px);
}
.logo {
  font-size: 1.3rem;
  min-width: max-content;
}
.links {
  gap: clamp(24px, 4vw, 52px);
}
.links a {
  padding: 10px 0;
}
.hero {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 100px);
}
.hero .sub {
  margin-top: clamp(34px, 4vw, 52px);
}
.hero .cta {
  margin-top: 8px;
}
section {
  padding: clamp(76px, 9vw, 124px) 0;
}
.work-wrap > h2 {
  margin-bottom: clamp(38px, 5vw, 64px);
}
.show {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(44px, 6vw, 88px);
}
.stage {
  min-height: 560px;
  padding: 34px;
}
.phone {
  width: min(270px, 68%);
}
.show > div:last-child {
  padding-left: 32px;
}
.case {
  margin-top: 28px;
  gap: 16px 28px;
}
.grid {
  margin-top: 42px;
  gap: 18px;
}
.about {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(56px, 9vw, 130px);
  align-items: center;
}
.about > div:first-child {
  max-width: 620px;
}
.about .exp {
  min-height: 280px;
}
.preview-art {
  min-height: 390px;
  padding: 15px 15px 12px;
  border-radius: 19px;
  background: linear-gradient(155deg, #fff 0%, #f5f2eb 100%);
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
  gap: 0;
}
.mock-status,
.mock-top,
.mock-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-status {
  font: 600 0.48rem var(--body);
  color: #5f5e58;
  padding: 0 2px 12px;
}
.mock-top {
  border-bottom: 1px solid #e9e5dc;
  padding: 5px 1px 12px;
}
.mock-brand {
  font: 700 0.72rem var(--head);
  color: #222;
}
.mock-menu {
  font-weight: 700;
  letter-spacing: 2px;
  color: #777;
}
.mock-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 24px;
  flex: 1;
}
.preview-label {
  font: 600 0.45rem var(--body);
  letter-spacing: 0.14em;
  color: #777;
}
.mock-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--preview-accent);
  display: grid;
  place-items: center;
  color: #222;
  font: 700 1.35rem var(--head);
  margin: 15px 0 14px;
}
.preview-art strong {
  font: 700 1.05rem/1.1 var(--head);
  max-width: 15ch;
  color: #24231f;
  margin-bottom: 9px;
}
.preview-art small {
  font: 500 0.57rem/1.5 var(--body);
  color: #68665f;
  max-width: 27ch;
}
.mock-skeleton {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.mock-skeleton i {
  height: 27px;
  border: 1px solid #e7e3d9;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}
.mock-skeleton i:nth-child(2) {
  width: 82%;
}
.mock-skeleton i:nth-child(3) {
  width: 64%;
}
.mock-accent {
  height: 26px;
  width: 100%;
  border-radius: 8px;
  background: var(--preview-accent);
  opacity: 0.72;
  margin-top: 15px;
}
.mock-nav {
  border-top: 1px solid #e9e5dc;
  padding: 11px 10px 2px;
  margin-top: 12px;
}
.mock-nav i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b8b5ad;
}
.mock-nav i:first-child {
  background: var(--preview-accent);
}
.preview-foot {
  font: 600 0.42rem var(--body);
  letter-spacing: 0.09em;
  color: #777;
  margin-top: 8px;
}
@media (max-width: 1100px) {
  .wrap {
    padding-inline: clamp(22px, 4vw, 48px);
  }
  .stage {
    min-height: 510px;
  }
}
@media (max-width: 900px) {
  .wrap {
    max-width: 1120px;
  }
  .show {
    grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
    gap: 30px;
  }
  .stage {
    min-height: 470px;
  }
  .about {
    gap: 38px;
  }
}
@media (max-width: 680px) {
  nav {
    height: 70px;
  }
  .links {
    gap: 18px;
  }
  .hero {
    padding-top: 52px;
  }
  .show,
  .about {
    grid-template-columns: 1fr;
  }
  .stage {
    min-height: 460px;
  }
  .phone {
    width: min(260px, 68%);
  }
  .show > div:last-child {
    padding: 32px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .show > div:last-child::before {
    left: 0;
    top: 10px;
  }
  .about {
    gap: 34px;
  }
  .about .exp {
    min-height: 0;
  }
  .preview-art {
    min-height: 380px;
  }
}
@media (max-width: 520px) {
  .wrap {
    padding-inline: 20px;
  }
  nav {
    height: 66px;
  }
  .links {
    gap: 14px;
  }
  .links a {
    font-size: 0.84rem;
  }
  .hero {
    padding-top: 44px;
  }
  .hero .sub {
    margin-top: 30px;
  }
  .grid {
    margin-top: 28px;
  }
  .stage {
    min-height: 430px;
  }
  .preview-art {
    min-height: 360px;
  }
}

/* Final layout and playful details */
.show {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(34px, 5vw, 72px);
}
.show > div:first-child {
  order: 2;
}
.show > div:last-child {
  order: 1;
  border-left: 0;
  border-right: 1px solid var(--line);
  padding: 10px 28px 10px 0;
}
.show > div:last-child::before {
  left: 0;
}
.work-wrap {
  position: relative;
}
.quote-two {
  position: absolute;
  right: 4%;
  top: 116px;
  z-index: 2;

  transform: rotate(5deg);
}
.hand-note {
  font: 600 clamp(1.15rem, 2.1vw, 1.65rem)/1.05 var(--hand);
  color: var(--blue);
  pointer-events: none;
  white-space: nowrap;
}
.home-details {
  position: absolute;
  right: clamp(8px, 3vw, 42px);
  top: 14%;
  width: min(330px, 31%);
  height: 78%;
  pointer-events: none;
}
.home-monogram {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 1rem var(--head);
  letter-spacing: -0.1em;
  color: var(--ink);
  transform: rotate(9deg);
}
.quote-one {
  position: absolute;
  right: 0;
  top: 46%;
  transform: rotate(-7deg);
}
.hanging-note {
  position: absolute;
  right: 13%;
  top: 0;
  transform-origin: 50% 0;
  animation: hang-sway 3.2s ease-in-out infinite;
  color: var(--ink);
  font: 600 clamp(1.1rem, 2vw, 1.55rem)/1 var(--hand);
  white-space: nowrap;
}
.hanging-note::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 48px;
  background: var(--mut);
  left: 50%;
  bottom: 100%;
  opacity: 0.65;
}
.hanging-note::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  left: calc(50% - 2px);
  bottom: calc(100% + 46px);
}
@keyframes hang-sway {
  0%,
  100% {
    rotate: -3deg;
  }
  50% {
    rotate: 3deg;
  }
}
.home-note {
  position: absolute;
  left: 0;
  bottom: 18%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 210px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: var(--mut);
  font: 500 0.7rem/1.45 var(--body);
  cursor: pointer;
  pointer-events: auto;
}
.home-note-label {
  font: 600 0.56rem var(--body);
  letter-spacing: 0.14em;
  color: var(--blue);
}
.home-note:hover #home-note-text {
  color: var(--ink);
}
.browser-toast {
  position: absolute;
  right: 0;
  bottom: 4%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 10px 26px rgba(22, 22, 22, 0.08);
  color: var(--ink);
  font: 500 0.75rem var(--body);
  pointer-events: none;
  animation: toast-in 0.7s 0.5s both;
}
.browser-toast b,
.browser-toast small {
  display: block;
}
.browser-toast b {
  font: 600 0.78rem var(--head);
}
.browser-toast small {
  font-size: 0.62rem;
  color: var(--mut);
  margin-top: 2px;
}
.browser-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e9efff;
  color: var(--blue);
  font-size: 0.9rem;
}
.toast-time {
  align-self: flex-start;
  color: var(--mut);
  font-size: 0.58rem;
  margin-left: 6px;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.binary-bit {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  color: var(--blue);
  font: 600 13px var(--head);
  animation: binary-float 0.85s ease-out forwards;
}
@keyframes binary-float {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0) scale(0.7);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--turn)) scale(1.1);
  }
}
@media (max-width: 1100px) {
  .home-details {
    right: 2%;
    width: 32%;
  }
  .stage {
    min-height: 510px;
  }
}
@media (max-width: 900px) {
  .home-details {
    width: 34%;
    right: 1%;
  }
  .show {
    grid-template-columns: minmax(270px, 1fr) minmax(280px, 1fr);
    gap: 28px;
  }
  .stage {
    min-height: 470px;
  }
  .quote-two {
    right: 2%;
    top: 104px;
  }
}
@media (max-width: 680px) {
  .show {
    grid-template-columns: 1fr;
  }
  .show > div:first-child,
  .show > div:last-child {
    order: initial;
  }
  .show > div:last-child {
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 32px 0 0;
  }
  .show > div:last-child::before {
    left: 0;
    top: 10px;
  }
  .home-details {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: 180px;
    margin-top: 34px;
  }
  .home-monogram {
    right: 6%;
    top: 0;
  }
  .hanging-note {
    right: 18%;
    top: 4px;
  }
  .quote-one {
    right: 5%;
    top: 52%;
  }
  .home-note {
    left: 1%;
    bottom: 5%;
    max-width: 180px;
  }
  .browser-toast {
    right: auto;
    left: 48%;
    bottom: 0;
  }
  .quote-two {
    position: relative;
    display: block;
    top: auto;
    right: auto;
    margin: -18px 0 24px 8%;
    font-size: 1.25rem;
  }
  .stage {
    min-height: 430px;
  }
}
@media (max-width: 420px) {
  .home-details {
    height: 190px;
  }
  .hanging-note {
    right: 5%;
    font-size: 1.1rem;
  }
  .quote-one {
    font-size: 1.15rem;
  }
  .browser-toast {
    transform: scale(0.92);
    transform-origin: left bottom;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hanging-note,
  .browser-toast,
  .binary-bit {
    animation: none !important;
  }
  .hanging-note {
    rotate: 0deg;
  }
}

/* V4: clear hero, true side-by-side showcase, balanced About */
.home-details {
  display: none !important;
}
.show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.88fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}
.show > .project-brief {
  order: 1;
  min-width: 0;
  padding: 12px 0;
}
.show > .project-device {
  order: 2;
  min-width: 0;
}
.show > .project-brief {
  border: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.show > .project-brief::before {
  display: none !important;
}
.show > .project-device .stage {
  min-height: 520px;
}
.show > .project-device .phone {
  width: min(250px, 68%);
}
.project-brief .desc {
  max-width: 48ch;
}
.project-brief .case {
  grid-template-columns: 1fr 1fr;
}
.project-brief .ctl {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 64px;
}
.about {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.about-quote {
  font-family: "Caveat", cursive;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  transform: rotate(-2deg);
  margin-top: 24px;
}
.about-side {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 64px 12px 52px;
}
.about-monogram {
  right: 4px;
  top: 4px;
}
.about-hanging {
  position: absolute;
  right: 18%;
  top: 0;
}
.about-home-note {
  position: relative;
  left: auto;
  bottom: auto;
  order: 0;
  align-self: flex-start;
  margin: 0 0 4px 8px;
  max-width: 230px;
}
.about-side .exp {
  width: 100%;
  min-height: 190px;
  margin: 0;
  transform: rotate(1deg);
}
.about-toast {
  position: absolute;
  right: 0;
  bottom: 0;
}
.quote-two {
  top: 108px;
  right: 6%;
}
@media (max-width: 900px) {
  .show {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 28px;
  }
  .show > .project-device .stage {
    min-height: 460px;
  }
  .about {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 30px;
  }
}
@media (max-width: 620px) {
  .show {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.82fr);
    gap: 18px;
  }
  .show > .project-device .stage {
    min-height: 390px;
    padding: 14px;
    border-radius: 24px;
  }
  .show > .project-device .phone {
    width: min(220px, 88%);
  }
  .show > .project-brief .cap {
    font-size: clamp(1.35rem, 4vw, 1.8rem);
  }
  .show > .project-brief .case {
    grid-template-columns: 1fr;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .about-side {
    min-height: 390px;
    margin-top: 8px;
  }
}
@media (max-width: 460px) {
  .show {
    grid-template-columns: 1fr;
  }
  .show > .project-device {
    order: 1;
  }
  .show > .project-brief {
    order: 2;
  }
  .show > .project-device .stage {
    min-height: 420px;
  }
  .show > .project-device .phone {
    width: min(250px, 70%);
  }
}

/* V5 refinements: balanced About rail, tighter page rhythm, compact contact */
section {
  padding: clamp(48px, 5.8vw, 76px) 0;
}
#work {
  padding-bottom: clamp(44px, 5vw, 68px);
}
#about {
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: clamp(48px, 5.5vw, 72px);
}
#contact {
  padding-top: 0;
  padding-bottom: clamp(34px, 4vw, 54px);
}
.work-wrap > h2 {
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.grid {
  margin-top: 30px;
}
.about {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}
.about > div:first-child {
  max-width: 600px;
}
.about-side {
  position: relative;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}
.about-side-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-height: 66px;
  padding: 0 4px;
}
.about-monogram {
  position: static;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}
.about-hanging {
  position: relative;
  inset: auto;
  display: inline-block;
  white-space: normal;
  line-height: 1.15;
  max-width: 250px;
  padding-top: 12px;
}
.about-hanging::before {
  height: 13px;
  bottom: 100%;
}
.about-hanging::after {
  bottom: calc(100% + 11px);
}
.about-home-note {
  position: relative;
  inset: auto;
  display: flex;
  align-self: stretch;
  max-width: none;
  margin: 0;
  padding: 13px 16px;
  border-left: 2px solid var(--coral);
  background: rgba(255, 255, 255, 0.48);
  gap: 5px;
  border-radius: 0 12px 12px 0;
}
.about-home-note:hover #home-note-text {
  color: var(--ink);
}
.about-side .exp {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 20px 24px;
  transform: none;
  border-radius: 18px;
}
.about-side .exp h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}
.about-side .exp li {
  padding: 8px 0;
}
.about-toast {
  position: relative;
  inset: auto;
  align-self: flex-end;
  padding: 8px 11px;
  box-shadow: 0 5px 16px rgba(22, 22, 22, 0.06);
  border-radius: 10px;
  animation: toast-in 0.7s 0.5s both;
}
.contact {
  max-width: 900px;
  margin-inline: auto;
  border-radius: 30px;
  padding: clamp(34px, 4.5vw, 54px) 28px;
}
.contact h2 {
  max-width: 17ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 16px;
}
.contact p {
  font-size: 1rem;
  max-width: 42ch;
  margin-bottom: 22px;
}
.mail {
  padding: 13px 24px;
  font-size: 1rem;
}
footer {
  padding: 30px 0 26px;
}
.foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 28px;
}
.foot small {
  grid-column: 1/-1;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.quote-one {
  position: relative;
  display: block;
  text-align: right;
  margin: 22px 4% 0 0;
  font: 600 1.3rem var(--hand);
  color: var(--mut);
  transform: rotate(-2deg);
}
@media (max-width: 760px) {
  section {
    padding: 48px 0;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-side {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
  .contact {
    margin-inline: 12px;
  }
}
@media (max-width: 520px) {
  .foot {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }
  .foot small {
    grid-column: 1;
  }
  .about-side {
    gap: 13px;
  }
  .about-side-top {
    gap: 16px;
  }
  .about-hanging {
    font-size: 1.2rem;
  }
}

/* V6: explicit two-column About composition, compact hero, reliable footer row */

html {
  scroll-padding-top: 72px;
}
.hero {
  padding-top: clamp(14px, 2.2vh, 24px) !important;
  padding-bottom: clamp(22px, 3.2vh, 34px) !important;
}
.hero .building {
  margin: 0 0 10px !important;
}
.hero .tag {
  margin: 0 0 12px !important;
}
.hero .hh {
  font-size: clamp(3.25rem, 8.7vw, 7.4rem) !important;
  line-height: 0.86 !important;
  padding-left: 0.12em !important;
}
.hero .hh .heart {
  width: 0.43em !important;
  height: 0.43em !important;
  right: 0.02em !important;
  bottom: -0.27em !important;
}
.hero .sub {
  margin: 20px 0 18px !important;
  font-size: clamp(1rem, 1.7vw, 1.2rem) !important;
  line-height: 1.35 !important;
}
.hero .cta {
  gap: 16px;
}
.hero .btn {
  padding: 12px 22px;
}
.hero .note {
  font-size: 1.35rem;
}
.hero .scroll {
  margin-top: 20px !important;
}

/* About: the text is the left column; all supporting pieces form a deliberate grid on the right. */
#about .about {
  display: grid !important;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr) !important;
  align-items: center !important;
  gap: clamp(28px, 4vw, 56px) !important;
}
#about .about > div:first-child {
  min-width: 0;
  max-width: 600px;
}
#about .about-side {
  min-width: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-areas: "identity identity" "note explore" "toast toast";
  align-items: start;
  align-content: center;
  gap: 14px 16px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
#about .about-side-top {
  grid-area: identity;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 58px;
  padding: 0 4px;
}
#about .about-home-note {
  grid-area: note;
  align-self: stretch;
  min-width: 0;
  max-width: none !important;
  margin: 0 !important;
  padding: 13px 14px !important;
}
#about .about-side .exp {
  grid-area: explore;
  align-self: stretch;
  min-width: 0;
  width: 100%;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 15px 17px !important;
  transform: none !important;
}
#about .about-side .exp h3 {
  font-size: 1.25rem !important;
  line-height: 1.1;
  margin: 0 0 8px !important;
}
#about .about-side .exp li {
  padding: 6px 0 !important;
  font-size: 0.92rem;
}
#about .about-toast {
  grid-area: toast;
  justify-self: end;
  position: relative !important;
  inset: auto !important;
  margin: 0 !important;
  align-self: start;
  padding: 8px 11px !important;
}
#about .about-monogram {
  position: static !important;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
}
#about .about-hanging {
  position: relative !important;
  inset: auto !important;
  display: inline-block;
  max-width: 260px;
  white-space: normal;
  padding-top: 10px;
  line-height: 1.1;
}

/* Footer: three items are explicitly assigned to three columns; legal line gets its own centered row. */
footer {
  padding: 28px 0 22px !important;
}
footer .foot {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) max-content !important;
  grid-template-areas: "brand motto email" "legal legal legal";
  align-items: center !important;
  justify-items: stretch !important;
  gap: 12px 24px !important;
  width: 100%;
}
footer .foot > #logo-foot {
  grid-area: brand;
  justify-self: start;
  min-width: 0;
}
footer .foot > .sig {
  grid-area: motto;
  justify-self: center;
  text-align: center;
  white-space: nowrap;
  font-size: 1.3rem;
}
footer .foot > #mail2 {
  grid-area: email;
  justify-self: end;
  min-width: 0;
}
footer .foot > small {
  grid-area: legal;
  display: block;
  width: 100%;
  text-align: center !important;
  margin: 6px 0 0 !important;
  padding: 12px 0 0 !important;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  #about .about {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr) !important;
    gap: 24px !important;
  }
  #about .about-side {
    gap: 12px !important;
  }
}
@media (max-width: 520px) {
  #about .about {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  #about .about-side {
    max-width: 560px;
    width: 100%;
    margin: 0 auto !important;
  }
  .hero {
    padding-top: 14px !important;
  }
  .hero .hh {
    font-size: clamp(3rem, 11vw, 4.8rem) !important;
  }
}
@media (max-width: 520px) {
  footer .foot {
    grid-template-columns: 1fr !important;
    grid-template-areas: "brand" "motto" "email" "legal";
    justify-items: center !important;
    text-align: center;
    gap: 9px !important;
  }
  footer .foot > #logo-foot,
  footer .foot > .sig,
  footer .foot > #mail2 {
    justify-self: center !important;
  }
  footer .foot > .sig {
    white-space: normal;
  }
  #about .about-side {
    grid-template-columns: 1fr 1fr !important;
    gap: 11px !important;
  }
  #about .about-side-top,
  #about .about-toast {
    grid-column: 1/-1;
  }
  #about .about-home-note,
  #about .about-side .exp {
    grid-column: auto;
  }
  .hero .sub {
    margin-top: 17px !important;
  }
  .hero .scroll {
    margin-top: 14px !important;
  }
}
/* About: always two columns */
#about .ab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 5vw, 64px);
  align-items: center;
}
#about .ab-text {
  min-width: 0;
}
#about .ab-text h2 {
  font-size: clamp(1.7rem, 5vw, 3.6rem);
  margin: 0 0 18px;
}
#about .ab-text p:not(.lbl) {
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  line-height: 1.5;
  margin: 0 0 14px;
  max-width: 36ch;
}

#about .ab-side {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.ab-debug {
  position: relative;
  font: 600 clamp(1.05rem, 2.4vw, 1.5rem)/1 var(--hand);
  color: var(--ink);
  top: -1.19em;
}

#about .ab-stack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#about .ab-mono {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font: 700 1rem var(--head);
  letter-spacing: -0.1em;
  transform: rotate(9deg);
}
#about .ab-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  border-left: 2px solid var(--coral);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.5);
  color: var(--mut);
  font: 500 0.78rem/1.45 var(--body);
  cursor: pointer;
}
#about .ab-exp {
  background: var(--yel);
  color: var(--onyel);
  border-radius: 18px;
  padding: 16px 18px;
}
#about .ab-exp h3 {
  font: 600 1.4rem var(--hand);
  margin: 0 0 6px;
}
#about .ab-exp ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#about .ab-exp li {
  padding: 7px 0;
  border-top: 1.5px solid rgba(0, 0, 0, 0.18);
  font-weight: 500;
  font-size: 0.9rem;
}
#about .ab-toast {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(22, 22, 22, 0.06);
  font: 500 0.75rem var(--body);
}
#about .ab-toast b,
#about .ab-toast small {
  display: block;
}
#about .ab-toast small {
  font-size: 0.62rem;
  color: var(--mut);
}

@media (max-width: 520px) {
  #about .ab {
    gap: 12px;
  }
  #about .ab-side {
    gap: 6px;
  }
  #about .ab-note {
    font-size: 0.7rem;
    padding: 10px;
  }
  #about .ab-exp {
    padding: 12px;
  }
  #about .ab-exp h3 {
    font-size: 1.15rem;
  }
  #about .ab-exp li {
    font-size: 0.78rem;
    padding: 6px 0;
  }
  #about .ab-toast {
    padding: 7px 9px;
    gap: 7px;
  }
}

/* ================================
   SKILLS NOTEBOOK
================================ */

.skills-section {
  padding-block: 70px 10px;
}

.skills-wrap {
  overflow: hidden;
}

.skills-intro {
  color: var(--mut);
  margin-top: 12px;
  margin-bottom: 42px;
}

/* ===== NOTEBOOK PROPORTIONS ===== */

.skills-notebook {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 24px 20px 44px;
}

/* Outer curved cover */
.skills-notebook::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  bottom: 0;

  background: linear-gradient(
    135deg,
    #8d6945,
    #4d3c23 35%,
    #a17b50 70%,
    #765537
  );

  border-radius: 38px 44px 32px 38px;

  box-shadow:
    0 18px 28px rgba(54, 39, 22, 0.2),
    inset 0 3px 5px rgba(255, 255, 255, 0.28),
    inset 0 -5px 8px rgba(50, 30, 10, 0.22);
}

/* Open pages */
.notebook-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  min-height: 480px;

  border-radius: 26px 32px 24px 22px;

  background: #fffdf7;

  box-shadow:
    0 3px 0 #e8dcc7,
    0 6px 0 #d9c9ad,
    0 9px 0 #c8b594,
    0 12px 0 rgba(100, 72, 40, 0.35),
    0 15px 20px rgba(50, 35, 20, 0.16);
}

/* Individual pages */
.notebook-page {
  min-height: 480px;
  position: relative;
  padding: 42px 36px 55px;

  background-color: #fffaf0;

  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 35px,
    rgba(120, 145, 165, 0.13) 36px
  );
}

/* Centre binding */
.notebook-spread::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 38px;
  transform: translateX(-50%);

  background: linear-gradient(
    90deg,
    rgba(90, 65, 35, 0.04),
    rgba(80, 55, 30, 0.17) 25%,
    rgba(255, 255, 255, 0.7) 48%,
    rgba(80, 55, 30, 0.16) 75%,
    rgba(90, 65, 35, 0.04)
  );

  pointer-events: none;
}

/* Curved outside edges */
.left-page {
  border-radius: 24px 4px 4px 22px;
  box-shadow: inset -12px 0 16px -14px rgba(60, 40, 20, 0.4);
}

.right-page {
  border-radius: 4px 30px 24px 4px;
  box-shadow: inset 12px 0 16px -14px rgba(60, 40, 20, 0.4);
}

/* Page headings */

.page-label {
  font-size: 0.7rem;
  min-height: 2.6em;
  letter-spacing: 0.12em;
  color: #a17d59;
  font-weight: 600;
  margin-bottom: 22px;
}

.notebook-page h3 {
  font-size: clamp(1rem, 1.6vw, 1.65rem);
  line-height: 1.3;
  max-width: 260px;
  margin-bottom: 28px;
  color: var(--ink);
}

/* Technology list */

.skill-list {
  display: grid;
  gap: 17px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-size: clamp(0.72rem, 1.1vw, 0.94rem);
  font-weight: 500;
}

.skill-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(55, 50, 40, 0.12);
  border-radius: 9px;
}

.skill-icon img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

/* Handwritten note */

.notebook-note {
  position: absolute;
  bottom: 18px;
  right: 24px;
  max-width: 45%;
  text-align: right;
  font-family: "Caveat", cursive;
  font-size: clamp(0.8rem, 1.2vw, 1.15rem);
  line-height: 1;
  transform: rotate(-4deg);
  color: #bd795e;
}

/* Page number */

.page-number {
  position: absolute;
  bottom: 17px;
  left: 24px;
  font-size: 0.7rem;
  color: #a69b87;
}

/* Navigation */

.notebook-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 24px 0 12px;
  color: #fffaf0;
}

.notebook-btn {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  color: inherit;
  padding: 9px 16px;
  border-radius: 30px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.notebook-btn:hover {
  background: #fffaf0;
  color: #514735;
}

.notebook-counter {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

/* Notebook spread navigation */
.notebook-spread {
  display: none;
}

.notebook-spread.active {
  display: grid;
}
/* Mobile layout */

@media (max-width: 650px) {
  .skills-section {
    padding-block: 65px 40px;
  }

  .skills-intro {
    margin-bottom: 28px;
  }

  .skills-notebook {
    padding: 14px 8px 32px;
  }

  .notebook-spread {
    min-height: 380px;
  }

  .notebook-page {
    min-height: 380px;
    padding: 28px 18px 48px;
  }
  .notebook-page h3 {
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
  }

  .skill-item {
    font-size: clamp(0.7rem, 2.5vw, 0.82rem);
    gap: 8px;
  }

  .skill-icon {
    width: 27px;
    height: 27px;
  }

  .notebook-note {
    right: 12px;
    bottom: 12px;
    max-width: 42%;
    font-size: clamp(0.72rem, 3vw, 0.95rem);
  }

  .notebook-controls {
    gap: 14px;
    padding: 20px 0 8px;
  }

  .notebook-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  h4 {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
    font-weight: 400;
    font-size: medium;
    min-height: 2.2em;
  }
}

@media (max-width: 380px) {
  .notebook-page {
    padding-inline: 14px;
  }

  .skill-item {
    font-size: 0.75rem;
  }

  .skill-icon {
    width: 24px;
    height: 24px;
  }
}

.project-screenshot {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: inherit;
}
