:root {
  --paper: #f1efe7;
  --paper-2: #fbf9f2;
  --ink: #17170f;
  --ink-soft: #4d4d40;
  --ink-faint: #8a8a7c;
  --sage: #b9cda6;
  --sage-deep: #5f7a4e;
  --sticky: #f6efa6;
  --display: "Permanent Marker", "Instrument Sans", sans-serif;
  --hand: "Caveat", "Instrument Sans", cursive;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1180px;
  --pad: clamp(20px, 4.5vw, 44px);
  --line: 1.5px solid var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 23, 15, 0.13) 1px, transparent 1.3px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }

.mono { font-family: var(--mono); }
.hand { font-family: var(--hand); }

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2.5px solid var(--sage-deep); outline-offset: 3px; border-radius: 4px; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px var(--pad);
  background: rgba(241, 239, 231, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}
.topbar.scrolled { border-bottom-color: var(--ink); }

.logo { display: block; }
.logo svg {
  width: 46px;
  height: 30px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.logo:hover svg { transform: rotate(-4deg) scale(1.04); }

.pill {
  display: flex;
  gap: 2px;
  padding: 5px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: 3px 3px 0 rgba(23, 23, 15, 0.12);
}
.pill a {
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: background 0.18s ease, color 0.18s ease;
}
.pill a:hover { background: rgba(23, 23, 15, 0.06); color: var(--ink); }
.pill a.active { background: var(--sage); color: var(--ink); }

.clock {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  border: var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--paper-2);
  white-space: nowrap;
}
.clock .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-deep); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) var(--pad) clamp(52px, 8vh, 92px);
}

.eyebrow {
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  color: var(--sage-deep);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(3.2rem, 7.6vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  font-weight: 400;
  margin: 0 0 18px;
}

.typer {
  font-size: clamp(13px, 1.15vw, 15px);
  color: var(--ink-soft);
  min-height: 1.6em;
  margin-bottom: 26px;
  letter-spacing: -0.01em;
}
.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.16em;
  background: var(--ink);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.note {
  position: relative;
  max-width: 380px;
  padding: 20px 22px 18px;
  background: var(--paper-2);
  border: var(--line);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--sage);
  transform: rotate(-0.8deg);
}
.note-title {
  font-family: var(--hand);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}
.note li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.note li::before {
  content: "–";
  position: absolute;
  left: 2px;
  color: var(--sage-deep);
  font-weight: 600;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--sage); font-weight: 600; }
.btn-primary:hover { background: #c6d8b4; }

/* ---------- hero art ---------- */

.hero-art {
  position: relative;
  min-height: clamp(360px, 44vw, 460px);
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  width: clamp(240px, 27vw, 330px);
  aspect-ratio: 1;
  border: clamp(30px, 3.4vw, 44px) solid var(--sage);
  border-radius: 50%;
  transform: translate(12%, -6%);
  opacity: 0.95;
}
.blob {
  position: absolute;
  width: clamp(150px, 16vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper-2);
  border: var(--line);
  transform: translate(-54%, 62%);
}

.terminal {
  position: relative;
  z-index: 2;
  width: min(100%, 446px);
  background: var(--ink);
  border-radius: 13px;
  border: var(--line);
  box-shadow: 9px 9px 0 var(--sage-deep);
  transform: rotate(1.2deg);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(241, 239, 231, 0.16);
}
.terminal-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8695c;
}
.terminal-bar i:nth-child(2) { background: #e8c15e; }
.terminal-bar i:nth-child(3) { background: #7fb069; }

.terminal-body {
  padding: 16px 16px 20px;
  font-size: 12px;
  line-height: 1.85;
  color: #e9e7dd;
}
.terminal-body .prompt { color: var(--sage); margin-right: 6px; }
.terminal-body .cmd { color: #fffdf5; white-space: pre-wrap; word-break: break-word; }
.terminal-body .out { color: #b9b7ab; opacity: 0; transform: translateY(4px); }
.terminal-body .ok { color: var(--sage); opacity: 0; transform: translateY(4px); }
.hero-art.in .terminal-body .out,
.hero-art.in .terminal-body .ok {
  animation: line-in 0.35s ease forwards;
}
.hero-art.in .terminal-body .out[data-step="1"] { animation-delay: 0.35s; }
.hero-art.in .terminal-body .out[data-step="2"] { animation-delay: 0.6s; }
.hero-art.in .terminal-body .out[data-step="3"] { animation-delay: 0.85s; }
.hero-art.in .terminal-body .ok[data-step="4"] { animation-delay: 1.1s; }
@keyframes line-in { to { opacity: 1; transform: none; } }

.chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  padding: 6px 13px;
  background: var(--paper-2);
  border: var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(var(--r));
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  animation: bob 5.5s ease-in-out infinite;
}
.chip:nth-of-type(2) { animation-delay: -1.2s; }
.chip:nth-of-type(3) { animation-delay: -2.4s; }
.chip:nth-of-type(4) { animation-delay: -3.1s; }
.chip:nth-of-type(5) { animation-delay: -0.6s; }
.chip:nth-of-type(6) { animation-delay: -4s; }
.chip.dragging { cursor: grabbing; animation: none; box-shadow: 5px 5px 0 var(--sage-deep); z-index: 6; }
@keyframes bob { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(var(--r)) translateY(-6px); } }

.scribble {
  position: absolute;
  left: 43%;
  top: -20px;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-soft);
  transform: rotate(-4deg);
  white-space: nowrap;
}
.scribble svg {
  width: 56px;
  height: 26px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 9px;
}

/* ---------- sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(52px, 8vh, 84px) var(--pad) 0;
}
section[id] { scroll-margin-top: 88px; }

.section-head { max-width: 660px; margin-bottom: clamp(24px, 3.5vh, 38px); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--ink-faint);
}

h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.sub { color: var(--ink-soft); font-size: 16px; max-width: 56ch; }

/* ---------- package cards ---------- */

.stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}

.pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 20px;
  background: var(--paper-2);
  border: var(--line);
  border-radius: 14px;
  box-shadow: 5px 5px 0 rgba(23, 23, 15, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.pkg-card:nth-child(3n + 1) { transform: rotate(-0.7deg); }
.pkg-card:nth-child(3n + 2) { transform: rotate(0.5deg); }
.pkg-card:nth-child(3n) { transform: rotate(-0.3deg); }
.pkg-card:hover {
  transform: rotate(0) translate(-2px, -3px);
  box-shadow: 8px 8px 0 var(--sage);
}

.tape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 74px;
  height: 22px;
  margin-left: -37px;
  background: rgba(185, 205, 166, 0.55);
  border: 1px solid rgba(23, 23, 15, 0.14);
  transform: rotate(-2.5deg);
  backdrop-filter: blur(1px);
}
.tape-dark { background: rgba(95, 122, 78, 0.45); }

.pkg-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.pkg-card h3 {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.stamp {
  flex: none;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border: 1px solid var(--sage-deep);
  border-radius: 4px;
  color: var(--sage-deep);
  transform: rotate(-3deg);
  background: rgba(185, 205, 166, 0.22);
}

.pkg-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tags li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  border: 1px solid rgba(23, 23, 15, 0.2);
  border-radius: 999px;
  padding: 3px 8px;
}
.go {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--ink-faint);
  transition: color 0.2s ease;
}
.pkg-card:hover .go { color: var(--sage-deep); }

/* ---------- work ---------- */

.project {
  position: relative;
  background: var(--ink);
  color: #f1efe7;
  border: var(--line);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--sage-deep);
  padding: clamp(24px, 3.4vw, 40px);
  margin-bottom: clamp(18px, 2.6vw, 30px);
}
.proj-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.proj-head h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1;
  margin: 0;
}
.badge-soon {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--sage);
  color: var(--ink);
  border: var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  transform: rotate(-2.5deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}
.plat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b6b4a7;
  border: 1px dashed rgba(241, 239, 231, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
}
.proj-lede {
  max-width: 64ch;
  color: #cfcdc2;
  font-size: clamp(0.98rem, 1.3vw, 1.06rem);
  line-height: 1.6;
  margin-bottom: clamp(20px, 2.6vw, 30px);
}
.feat-grid {
  list-style: none;
  margin: 0 0 clamp(20px, 2.6vw, 28px);
  padding: clamp(18px, 2.2vw, 26px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  border-top: 1px dashed rgba(241, 239, 231, 0.25);
}
.feat h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 6px;
}
.feat p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #cfcdc2;
  margin: 0;
}
.feat-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.feat-link:hover { color: #dff0cb; }
.project[id] { scroll-margin-top: 92px; }

.proj-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.proj-foot .tags { margin: 0; }
.proj-foot .tags li { border-color: rgba(241, 239, 231, 0.3); color: #d6d4c8; }
.note-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #a9a79a;
  margin: 0;
}

.kayan-panel .chat {
  max-width: 560px;
  margin: 0 0 clamp(20px, 2.6vw, 28px);
}
.kayan-panel .bubble.me { color: var(--ink); }
.kayan-panel .bubble.k { color: var(--ink); border-color: rgba(23, 23, 15, 0.35); }
.kayan-panel .proj-lede { margin-bottom: clamp(16px, 2vw, 22px); }


/* ---------- scattered screenshots ---------- */

.snap-slot { position: relative; z-index: 6; }
.snap-slot.right { float: right; margin: -44px 0 24px 30px; }
.snap-slot.left { float: left; margin: -44px 30px 24px 0; }
.snap-slot.hero-slot { position: absolute; right: 2.5%; bottom: 30px; float: none; margin: 0; }

.snap {
  width: clamp(150px, 14vw, 190px);
  margin: 0;
  transform: rotate(var(--r, -3deg));
  transition: transform 0.25s ease;
}
.snap:hover { transform: rotate(0deg) scale(1.04); }

.snap-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 7px 7px 24px;
  background: #fdfcf9;
  border: var(--line);
  border-radius: 4px;
  box-shadow: 4px 5px 0 rgba(23, 23, 15, 0.2);
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
.snap-btn img { display: block; width: 100%; height: auto; border-radius: 2px; }
.snap-btn:focus-visible { outline: 2.5px solid var(--sage-deep); outline-offset: 3px; }
.snap-cap {
  position: absolute;
  left: 10px;
  bottom: 3px;
  font-family: var(--hand);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.snap-callout {
  position: absolute;
  top: 58%;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  pointer-events: none;
  white-space: nowrap;
}
.snap-slot.right .snap-callout,
.snap-slot.hero-slot .snap-callout { right: calc(100% + 4px); }
.snap-slot.left .snap-callout { left: calc(100% + 4px); flex-direction: row-reverse; }
.snap-note {
  font-family: var(--hand);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-soft);
  transform: rotate(-5deg);
  margin-bottom: 4px;
}
.snap-callout svg {
  width: 62px;
  height: 48px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.snap-slot.left .snap-callout svg { transform: scaleX(-1); }
.snap-callout.light .snap-note { color: #f2efe4; }
.snap-callout.light svg { stroke: #f2efe4; }

.snap-slot.below .snap-callout,
.snap-slot.right.below .snap-callout,
.snap-slot.left.below .snap-callout {
  top: calc(100% + 6px);
  left: auto;
  right: 4px;
  flex-direction: row;
}


/* click-to-enlarge overlay */
.snap-zoom { position: fixed; inset: 0; z-index: 400; }
.sz-bg {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 14, 0.74);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.snap-zoom.on .sz-bg { opacity: 1; }
.sz-img {
  position: absolute;
  border-radius: 8px;
  border: 2.5px solid #fdfcf9;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  transition: left 0.32s cubic-bezier(0.3, 0.7, 0.2, 1),
              top 0.32s cubic-bezier(0.3, 0.7, 0.2, 1),
              width 0.32s cubic-bezier(0.3, 0.7, 0.2, 1),
              height 0.32s cubic-bezier(0.3, 0.7, 0.2, 1);
  cursor: zoom-out;
}
.sz-cap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--hand);
  font-size: 24px;
  font-weight: 600;
  color: #f1efe7;
  opacity: 0;
  transition: opacity 0.25s ease 0.12s;
  white-space: nowrap;
}
.snap-zoom.on .sz-cap { opacity: 1; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: var(--line);
  border-radius: 16px;
  box-shadow: 6px 6px 0 rgba(23, 23, 15, 0.16);
}
.work-card header { margin-bottom: 20px; }
.work-card h3 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.work-card header .mono {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vibe {
  background: var(--ink);
  color: #f1efe7;
  box-shadow: 6px 6px 0 var(--sage-deep);
}
.vibe header .mono { color: #a9a79a; }
.vibe .tags li { border-color: rgba(241, 239, 231, 0.3); color: #d6d4c8; }
.vibe .work-body { color: #cfcdc2; }

.player {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(241, 239, 231, 0.18);
  border-radius: 12px;
  background: rgba(241, 239, 231, 0.05);
}
.player-art {
  flex: none;
  width: 74px;
  height: 74px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 50%, #17170f 0 9px, transparent 9.5px),
    radial-gradient(circle at 50% 50%, #dfe6d3 0 26px, transparent 26.5px),
    linear-gradient(135deg, var(--sage), #d9e4c9);
  border: 1px solid rgba(241, 239, 231, 0.25);
}
.player-meta { flex: 1; min-width: 0; }
.player .track { font-size: 11.5px; color: #e9e7dd; margin-bottom: 8px; }
.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  margin-bottom: 6px;
}
.bars span {
  flex: 1;
  background: var(--sage);
  border-radius: 2px;
  height: 30%;
  animation: eq 1.1s ease-in-out infinite alternate;
}
.bars span:nth-child(2n) { animation-duration: 0.85s; height: 60%; }
.bars span:nth-child(3n) { animation-duration: 1.35s; height: 45%; }
.bars span:nth-child(5n) { animation-duration: 0.7s; }
@keyframes eq { from { height: 18%; } to { height: 92%; } }
.player .tiny { font-size: 10px; color: #a9a79a; letter-spacing: 0.04em; }

.kayan { background: var(--paper-2); }
.kayan header .mono { color: var(--ink-faint); }

.chat { display: grid; gap: 8px; margin-bottom: 20px; }
.bubble {
  max-width: 92%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.bubble.me {
  justify-self: end;
  background: var(--sage);
  border: 1px solid var(--sage-deep);
  border-bottom-right-radius: 4px;
  font-family: var(--hand);
  font-size: 23px;
  padding: 3px 15px 7px;
}
.bubble.k {
  background: #fff;
  border: 1px solid rgba(23, 23, 15, 0.18);
  border-bottom-left-radius: 4px;
}
.bubble.k .en { display: block; color: var(--ink-faint); font-size: 12px; font-family: var(--mono); margin-top: 4px; }

.work-body { font-size: 15px; line-height: 1.62; color: var(--ink-soft); margin-bottom: 18px; }
.work-card .tags { margin-top: auto; margin-bottom: 0; padding-top: 4px; }

.arabic { font-family: "Noto Naskh Arabic", "Segoe UI", serif; font-size: 0.92em; font-weight: 400; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.about-copy p { color: var(--ink-soft); margin-bottom: 14px; }
.about-copy p:last-child { margin-bottom: 0; }

.sticky {
  margin: 0 0 22px;
  padding: 20px 20px 22px;
  background: var(--sticky);
  border: var(--line);
  border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(23, 23, 15, 0.2);
  transform: rotate(-1.6deg);
}
.sticky p {
  font-family: var(--hand);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
}

.techstack { margin-bottom: 20px; }
.stack-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.tech-tags { margin-bottom: 14px; }
.tech-tags li { font-size: 10.5px; padding: 4px 9px; }
.tech-tags:last-of-type { margin-bottom: 0; }

.facts { border-top: 1.5px dashed rgba(23, 23, 15, 0.3); }
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1.5px dashed rgba(23, 23, 15, 0.3);
  font-size: 14.5px;
}
.facts span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 3px;
}

/* ---------- contact ---------- */

.contact-row {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  flex-wrap: wrap;
  padding: clamp(22px, 3vw, 32px) 0 6px;
  border-top: 1.5px dashed rgba(23, 23, 15, 0.3);
}

.round {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.round svg {
  fill: var(--paper-2);
  padding: 16px;
  width: 60px;
  height: 60px;
  background: var(--ink);
  border-radius: 50%;
  border: var(--line);
  box-shadow: 3px 3px 0 var(--sage);
  transition: transform 0.2s ease, background 0.2s ease, fill 0.2s ease;
}
.round:hover svg { transform: rotate(-7deg) scale(1.05); background: var(--sage); fill: var(--ink); }
.round span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.hint {
  font-size: 22px;
  font-weight: 600;
  color: var(--sage-deep);
  transform: rotate(-3deg);
  margin-left: auto;
}

/* ---------- footer ---------- */

footer {
  max-width: var(--max);
  margin: clamp(56px, 9vh, 92px) auto 0;
  padding: 22px var(--pad) 34px;
  border-top: 1.5px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(12px); }
.reveal.in { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none !important; }
  .chip, .bars span, .caret { animation: none !important; }
  .terminal-body .out, .terminal-body .ok { opacity: 1; transform: none; animation: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-bottom: 40px; }
  .hero-art { min-height: 400px; order: 2; }
  .work-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snap-slot.right, .snap-slot.left { float: none; display: flex; margin: 4px 0 20px !important; }
  .snap-slot.right { justify-content: flex-end; }
  .snap-slot.left { justify-content: flex-start; }
  .snap-slot.hero-slot { position: static; display: flex; justify-content: center; margin: 0 0 20px; }
  .snap-slot.below { margin: 4px 0 64px !important; }
  .snap { width: 152px; }
  .snap-note { font-size: 16px; }
  .snap-callout svg { width: 46px; height: 38px; }
  .about-grid { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr; }
  .pkg-card { transform: none !important; }
  .hint { margin-left: 0; }
}

@media (max-width: 560px) {
  .topbar { gap: 8px; padding: 12px var(--pad); }
  .logo svg { width: 38px; }
  .pill { padding: 4px; }
  .pill a { padding: 5px 8px; font-size: 11px; }
  .clock { font-size: 10.5px; padding: 5px 9px; }
  .clock .dot { display: none; }
  .clock-city { display: none; }
  .note { transform: none; box-shadow: 4px 4px 0 var(--sage); }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .typer { font-size: 11.5px; letter-spacing: 0; }
  .hero-art { min-height: 340px; }
  .ring { transform: translate(18%, -2%); }
  .blob { display: none; }
  .terminal { width: 100%; transform: none; box-shadow: 6px 6px 0 var(--sage-deep); }
  .terminal-body { font-size: 11px; }
  .chip { font-size: 10.5px; padding: 5px 10px; }
  .scribble { top: -26px; right: 0; font-size: 19px; }
  .facts li { flex-direction: column; gap: 1px; }
  .feat-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-row { gap: 12px; }
  .round svg { width: 46px; height: 46px; padding: 11px; }
  .round span { font-size: 10px; }
  .contact-row .hint { flex: 1 0 100%; margin-top: 6px; }
  .bubble.me { font-size: 18px; }
}
