/* ===========================================================================
   Arya — Portfolio
   Converted from the Claude Design source "Arya Portfolio.dc.html".
   Colour and spacing values are carried over verbatim from the design.
   =========================================================================== */

:root {
  --ink: #161412;
  --cream: #F4EDE0;
  --orange: #E0482A;
  --mustard: #E8B021;
  --olive: #5E6B45;
  --sand: #EADFCB;
  --muted: #CFC6B6;
  --green: #C5DB78;
  --gh-quiet: rgba(244, 237, 224, .09);

  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', monospace;
  --display: Anton, sans-serif;
  --serif: 'Instrument Serif', serif;

  --gutter: clamp(20px, 5vw, 64px);
  --shell: 1280px;
}

/* --- base ---------------------------------------------------------------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain. Toggle off with <html data-nograin>. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-nograin] body::after { display: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }

img { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.defs { position: absolute; width: 0; height: 0; }

/* --- motion -------------------------------------------------------------- */

@keyframes wave     { to { stroke-dashoffset: -40; } }
@keyframes shackle  { 0%, 70%, 100% { transform: translateY(0); } 80%, 90% { transform: translateY(-10px); } }
@keyframes crawl    { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg) translateY(-3px); } }
@keyframes float    { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes blip     { 0%, 100% { opacity: .15; } 40% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
/* Toggle off with <html data-still>. */
html[data-still] * { animation: none !important; }

.anim-wave    { animation: wave 1.6s linear infinite; }
.anim-shackle { animation: shackle 4s ease-in-out infinite; }
.anim-crawl   { animation: crawl 3.2s ease-in-out infinite; }
.anim-float   { animation: float 5s ease-in-out infinite; }
.anim-blip    { animation: blip 2.4s ease-in-out infinite; }
.anim-blip--delayed { animation-delay: .4s; }

/* --- layout primitives --------------------------------------------------- */

.shell { max-width: var(--shell); margin: 0 auto; }
.page  { position: relative; min-height: 100vh; }

.section { position: relative; padding: clamp(56px, 7vw, 100px) var(--gutter); }

/* Every section is a containing block: the .deco / .dots inside each one are
   absolutely positioned and would otherwise escape to .page. */
.hero, .about, .do, .bench, .work, .activity, .writing, .contact { position: relative; }

.section--dark { background: var(--ink); color: var(--cream); overflow: hidden; }
.section--anchor { scroll-margin-top: 90px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .22em;
  color: var(--orange); margin-bottom: 18px;
}
.eyebrow--mustard { color: var(--mustard); }
.eyebrow--ink { color: var(--ink); }

.h2 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 6vw, 88px); line-height: .98;
  letter-spacing: -.015em; text-wrap: balance;
}

/* A section heading paired with a trailing action on the same row. */
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 20px; margin-bottom: clamp(36px, 4vw, 56px);
}

/* Auto-fitting card grid. --min sets the track floor. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 270px)), 1fr));
  gap: var(--gap, 24px);
}

/* Decorative dot field. --dot recolours it. */
.dots {
  position: absolute; pointer-events: none;
  background-image: radial-gradient(var(--dot, var(--ink)) 1.4px, transparent 1.7px);
  background-size: 14px 14px;
}
.deco { position: absolute; pointer-events: none; }

/* Hand-drawn underline; the stroke draws itself in (see data-draw in main.js). */
.mark { position: relative; display: inline-block; isolation: isolate; }
.mark > svg { position: absolute; overflow: visible; z-index: -1; }

/* --- buttons ------------------------------------------------------------- */

/* Pill button with a circular glyph on the right. */
.pill {
  display: inline-flex; align-items: center; gap: 14px;
  border-radius: 999px; padding: 7px 7px 7px 24px;
  font-weight: 600; font-size: 16px;
  border: 1px solid var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.pill__glyph {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; flex: none;
}
.pill--sm { gap: 12px; padding: 6px 6px 6px 20px; font-size: 15px; }
.pill--sm .pill__glyph { width: 36px; height: 36px; font-size: 16px; }

.pill--ink { background: var(--ink); color: var(--cream); }
.pill--ink .pill__glyph { background: var(--orange); color: var(--ink); }
.pill--ink:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--orange); color: var(--cream); }

.pill--ghost { background: transparent; color: var(--ink); }
.pill--ghost .pill__glyph { border: 1px solid var(--ink); }
.pill--ghost:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }

.pill--outline { background: transparent; color: var(--ink); }
.pill--outline .pill__glyph { background: var(--ink); color: var(--cream); }
.pill--outline:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }

/* Cards and panels that lift on hover. */
.lift { transition: transform .25s, box-shadow .25s; }
.lift:hover { transform: translate(-5px, -5px); box-shadow: 7px 7px 0 var(--ink); color: var(--ink); }

/* --- nav ----------------------------------------------------------------- */

.nav-wrap {
  position: sticky; top: 0; z-index: 60;
  padding: 14px clamp(12px, 3vw, 32px) 0;
}
.nav {
  position: relative; max-width: var(--shell); margin: 0 auto;
  background: var(--ink); color: var(--cream);
  border-radius: 999px; padding: 8px 8px 8px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--cream); }
.nav__brand:hover { color: var(--cream); }
.nav__mark { width: 26px; height: 26px; flex: none; }
.nav__name { font-family: var(--display); font-size: 22px; letter-spacing: .04em; line-height: 1; }
.nav__tag { font-family: var(--mono); font-size: 11px; opacity: .6; letter-spacing: .08em; }

.nav__links { display: flex; gap: clamp(14px, 2.2vw, 30px); font-size: 14px; font-weight: 500; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--ink);
  border-radius: 999px; padding: 6px 6px 6px 18px;
  font-weight: 600; font-size: 14px; transition: transform .2s;
}
.nav__cta:hover { transform: translateY(-2px); color: var(--ink); }
.nav__cta span {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center; font-size: 15px;
}

.nav__toggle {
  display: none; align-items: center; gap: 10px;
  background: var(--cream); color: var(--ink);
  border: 0; border-radius: 999px; padding: 6px 6px 6px 18px;
  font: 600 14px var(--sans); cursor: pointer; min-height: 44px;
}
.nav__toggle span {
  width: 32px; height: 32px; border-radius: 50%; background: var(--orange);
  display: grid; place-items: center; font-size: 15px;
}

.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--ink); border-radius: 28px;
  padding: 14px 22px 22px; display: flex; flex-direction: column;
  box-shadow: 6px 6px 0 var(--orange);
}
.nav__menu a {
  font-family: var(--display); font-size: 34px; padding: 8px 0;
  border-bottom: 1px solid rgba(244, 237, 224, .15);
}
.nav__menu a:last-child { border-bottom: 0; color: var(--mustard); }

/* The design swapped nav variants at innerWidth < 900. */
@media (max-width: 899px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (min-width: 900px) {
  .nav__menu { display: none; }
}
.nav__menu[hidden] { display: none; }

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

.hero {
  position: relative; overflow: hidden; scroll-margin-top: 90px;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(70px, 8vw, 110px);
}
.hero__grid {
  max-width: var(--shell); margin: 0 auto; position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: clamp(32px, 4vw, 56px); align-items: center;
}
.hero__copy { position: relative; z-index: 2; }
.hero__kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em;
  color: var(--orange); margin-bottom: 18px; flex-wrap: wrap;
}
.hero__title {
  margin: 0; font-family: var(--display); font-weight: 400;
  line-height: .8; letter-spacing: -.005em; text-transform: uppercase;
}
/* "K ARYA" is ~1.38x the width of "ARYA", so the scale is reduced by that
   factor to keep the same optical width; nowrap stops it breaking at the space. */
.hero__first {
  display: block; white-space: nowrap;
  font-size: clamp(109px, 18.1vw, 254px); margin-left: -.04em;
}
.hero__last  { font-size: clamp(52px, 8.6vw, 124px); margin-top: .12em; }
.hero__last > svg { left: -3%; bottom: -.2em; width: 106%; height: .34em; }
.hero__lede {
  margin: clamp(28px, 3vw, 40px) 0 0; max-width: 30em;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero__art {
  position: relative; height: clamp(460px, 50vw, 640px);
  max-width: 560px; width: 100%; justify-self: center;
}
.hero__paper {
  position: absolute; left: 4%; top: 14%; width: 94%; height: 84%;
  transform: rotate(-4deg); overflow: visible;
}
.hero__cutout {
  position: absolute; left: 0; right: 0; bottom: 2%;
  width: 100%; height: 92%;
  object-fit: contain; object-position: center bottom; z-index: 1;
  filter: drop-shadow(6px 6px 0 rgba(22, 20, 18, .9));
}
.hero__aside {
  position: absolute; right: -4%; top: 4%; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  transform: rotate(6deg);
}
.hero__aside span {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2vw, 26px); line-height: 1;
}
.hero__status {
  position: absolute; left: 2%; bottom: 18%; z-index: 3;
  background: var(--cream); border: 1.5px solid var(--ink);
  border-radius: 999px; padding: 6px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  transform: rotate(-5deg); box-shadow: 3px 3px 0 var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.hero__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }

/* Decorative asterisk, tucked beside the first line of .hero__aside. */
.hero__spark {
  position: absolute; top: 2%; right: 0; width: 46px; z-index: 2;
  color: var(--ink); stroke-width: 7;
}
/* On a narrow art box the aside's second line reaches under it, so move it
   to the clear margin on the left, below the laptop. */
@media (max-width: 899px) {
  .hero__spark { top: 30%; right: auto; left: -2%; }
}

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

.about { padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(80px, 9vw, 130px); }
.about__grid {
  max-width: var(--shell); margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.about__media { position: relative; max-width: 520px; width: 100%; }
.about__frame {
  position: relative; height: clamp(380px, 42vw, 560px);
  border: 1px solid var(--ink); border-radius: 26px; overflow: hidden;
  transform: rotate(-2deg); background: var(--sand);
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__tape {
  position: absolute; top: -14px; left: 36%; width: 120px; height: 30px;
  background: var(--mustard); opacity: .9; transform: rotate(4deg); filter: url(#torn);
}
.about__badge {
  position: absolute; right: -6%; bottom: -8%;
  width: clamp(120px, 13vw, 150px); height: clamp(120px, 13vw, 150px);
}
.about__h2 { font-size: clamp(46px, 5.8vw, 84px); }
.about__h2 em { color: var(--orange); }
.about__h2 .mark > svg { left: 0; bottom: -.08em; width: 100%; height: .28em; }
.about__body {
  margin-top: 30px; display: flex; flex-direction: column; gap: 16px;
  max-width: 34em; font-size: 17px; line-height: 1.6; text-wrap: pretty;
}
.about__body p { margin: 0; }
.about__facts {
  margin-top: 34px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--ink);
}
.about__facts > div { padding: 16px 16px 0 0; }
.fact__label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; opacity: .65; }
.fact__value { font-weight: 600; margin-top: 6px; }

/* --- what I do ----------------------------------------------------------- */

.do { padding: clamp(72px, 9vw, 130px) var(--gutter); }
.do__h2 { max-width: 12em; }
.do__h2 em { color: var(--mustard); }
.do__grid { margin-top: clamp(44px, 5vw, 72px); --min: 230px; --gap: 0; }
.do__item {
  padding: 26px 26px 26px 0;
  border-top: 1px solid rgba(244, 237, 224, .25);
  margin-right: 20px;
}
.do__top { display: flex; justify-content: space-between; align-items: flex-start; }
.do__num { font-family: var(--mono); font-size: 12px; opacity: .6; }
.do__item h3 {
  margin: 22px 0 10px; font-family: var(--display); font-weight: 400;
  font-size: 28px; letter-spacing: .01em; text-transform: uppercase;
}
.do__item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* --- skills + experience ------------------------------------------------- */

.bench { padding: clamp(56px, 7vw, 100px) clamp(12px, 3vw, 40px); }
.bench__panel {
  max-width: 1340px; margin: 0 auto;
  background: var(--ink); color: var(--cream);
  border-radius: clamp(24px, 3vw, 40px); padding: clamp(28px, 4.5vw, 64px);
  position: relative; overflow: hidden;
}
.bench__h2 { font-size: clamp(42px, 5.2vw, 76px); }
.bench__h2 em { color: var(--mustard); }
.bench__note { font-family: var(--mono); font-size: 12px; opacity: .6; max-width: 22em; }
.bench__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(36px, 4vw, 64px); align-items: start;
}

.tools { display: flex; flex-direction: column; }
.tool {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed rgba(244, 237, 224, .22);
}
.tool__name { font-size: 15px; font-weight: 500; }
.tool__dots { display: flex; gap: 5px; }
.tool__dots i { width: 11px; height: 11px; border-radius: 50%; box-sizing: border-box; }
.tool__dots i[data-on]        { background: var(--mustard); }
.tool__dots i:not([data-on])  { border: 1.5px solid rgba(244, 237, 224, .35); }

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px;
  background: repeating-linear-gradient(var(--cream) 0 6px, transparent 6px 11px);
  opacity: .45;
}
.tl { position: relative; padding-bottom: 28px; }
.tl::before {
  content: ""; position: absolute; left: -30px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--orange);
}
.tl__when { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--mustard); }
.tl__role {
  font-family: var(--display); font-size: 22px; letter-spacing: .01em;
  margin-top: 6px; text-transform: uppercase;
}
.tl__org { font-weight: 600; font-size: 15px; margin-top: 2px; }
.tl__note { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 6px; }

.bench__art {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; min-height: 320px;
}
.bench__art > svg { width: 100%; max-width: 300px; overflow: visible; }
.bench__caption {
  margin-top: 18px; font-family: var(--mono); font-size: 12px;
  letter-spacing: .14em; opacity: .7;
}

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

.work { padding: clamp(56px, 7vw, 100px) var(--gutter) clamp(100px, 11vw, 150px); }
.work__h2 em { color: var(--orange); }
.work__more { position: relative; display: flex; align-items: center; gap: 10px; }
.work__more > span {
  font-family: var(--serif); font-style: italic; font-size: 22px; transform: rotate(-4deg);
}

.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--ink); border-radius: 22px; overflow: hidden;
  background: var(--cream);
}
.card__art {
  position: relative; height: 290px; overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.card__meta {
  position: absolute; left: 20px; top: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; line-height: 1.7;
}
.card__word {
  position: absolute; left: 20px; bottom: 16px;
  font-family: var(--display); font-size: 44px; line-height: .9;
}
.card__foot {
  padding: 20px 20px 22px; display: flex;
  justify-content: space-between; align-items: flex-end; gap: 12px; flex: 1;
}
.card__title { font-family: var(--display); font-size: 30px; line-height: 1; }
.card__sub { font-size: 14px; margin-top: 6px; opacity: .8; }
.card__arrow {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--ink); display: grid; place-items: center;
}
.tbd {
  font-family: var(--mono); font-size: 11px;
  border: 1px dashed var(--ink); border-radius: 4px; padding: 1px 5px;
}

/* --- github activity ----------------------------------------------------- */

.activity {
  background: var(--ink); color: var(--cream);
  padding: clamp(80px, 9vw, 130px) var(--gutter);
  overflow: hidden;
}
.activity__head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(28px, 4vw, 56px); align-items: end;
}
.activity__h2 { font-size: clamp(50px, 6.6vw, 100px); line-height: .95; }
.activity__h2 em { color: var(--green); }
.activity__lede {
  margin: 20px 0 0; max-width: 26em;
  font-size: 17px; line-height: 1.55; color: var(--muted);
}
.mono-accent { font-family: var(--mono); color: var(--cream); }

.activity__count { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.activity__total {
  font-family: var(--display); font-size: clamp(96px, 12vw, 170px);
  line-height: .8; color: var(--green);
}
.activity__caption {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05;
  padding-bottom: 6px; transform: rotate(-3deg);
}

/* --- contribution graph --- */

.graph {
  margin-top: clamp(40px, 5vw, 64px);
  border: 1px solid rgba(244, 237, 224, .25); border-radius: 22px;
  padding: clamp(18px, 2.6vw, 32px); background: #1D1A17;
}
.graph__scroll { overflow-x: auto; padding-bottom: 6px; }

/* The 53 week columns divide the full width rather than sitting at a fixed
   cell size, so the graph fills its card. Below the min-width the scroller
   takes over; 930px is the width the old 13px cells occupied, so narrow
   screens keep the same density. */
.graph__inner {
  display: flex; flex-direction: column; gap: 8px;
  width: 100%; min-width: 930px;
}

.graph__months {
  display: flex; gap: 4px; padding-left: 34px; height: 14px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
/* One slot per week column so labels stay over the right week; the text is
   wider than a column and is allowed to spill to the right. */
.graph__months span { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: visible; }

.graph__body { display: flex; gap: 4px; align-items: stretch; }
.graph__days {
  width: 30px; flex: none;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--mono); font-size: 10px; color: var(--muted);
}
/* Each label row matches one cell row, so Mon/Wed/Fri stay aligned as the
   cells grow. */
.graph__days span { flex: 1 1 0; display: flex; align-items: center; }

.graph__weeks { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; }
.graph__week { display: flex; flex-direction: column; gap: 4px; flex: 1 1 0; min-width: 0; }
.graph__day {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: var(--gh-quiet); transition: transform .15s;
}
.graph__day:hover { transform: scale(1.5); }
.graph__day[data-on] { background: var(--green); box-shadow: 0 0 0 3px rgba(197, 219, 120, .18); }
.graph__day[data-pad] { background: transparent; }

.graph__foot {
  margin-top: 18px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.graph__legend { display: flex; align-items: center; gap: 14px; }
.graph__legend > span { display: flex; align-items: center; gap: 6px; }
.graph__legend i { width: 11px; height: 11px; border-radius: 50%; }
.dot-quiet { background: var(--gh-quiet); }
.dot-shipped { background: var(--green); box-shadow: 0 0 0 3px rgba(197, 219, 120, .18); }

/* --- stat cards --- */

.activity__stats {
  margin-top: 28px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px;
}
.statcard {
  border: 1px solid rgba(244, 237, 224, .25); border-radius: 18px; padding: 20px 22px;
}
.statcard__label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--mustard);
}
/* Number plus unit on one baseline; the unit wraps under it when the card is
   too narrow rather than colliding with the 44px figure. */
.statcard__value {
  margin-top: 8px; font-family: var(--display); font-size: 44px; line-height: 1;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px;
}
.statcard__value small {
  font-family: var(--sans); font-size: 15px; color: var(--muted); line-height: 1.3;
}
.statcard--cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--green); color: var(--ink); border-color: var(--green);
  font-weight: 600; font-size: 17px;
  transition: transform .2s, box-shadow .2s;
}
.statcard--cta:hover {
  transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--mustard); color: var(--ink);
}
.statcard--cta span {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center; font-size: 18px;
}

/* --- writing ------------------------------------------------------------- */

.writing { padding: clamp(80px, 9vw, 130px) var(--gutter); }
.writing__h2 em { color: var(--orange); }
.writing__grid {
  --min: 300px;
  /* auto-fill, not auto-fit: keeps empty tracks so one or two posts stay
     card-sized instead of stretching across the row. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.post { border: 1px solid var(--ink); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.post__art { position: relative; height: 210px; overflow: hidden; }
.post__no {
  position: absolute; left: 18px; bottom: 14px;
  font-family: var(--display); font-size: 30px; color: var(--cream);
}
.post__no--ink { color: var(--ink); }
.post__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.post__meta {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--orange);
}
.post__read { font-family: var(--mono); color: var(--ink); font-weight: 400; letter-spacing: .06em; }
.post__title { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.post__flag {
  align-self: flex-start; font-family: var(--mono); font-size: 11px;
  border: 1px dashed var(--ink); border-radius: 4px; padding: 2px 6px;
}

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

.contact {
  background: var(--mustard); overflow: hidden;
  padding: clamp(90px, 10vw, 150px) var(--gutter);
}
.contact__grid {
  max-width: var(--shell); margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.contact__h2 {
  font-size: clamp(52px, 6.8vw, 112px); line-height: .95;
  letter-spacing: -.02em; max-width: 9.5em;
}
.contact__h2 .mark > svg { left: -2%; bottom: -.06em; width: 104%; height: .24em; }
.contact__lede {
  margin: 30px 0 0; max-width: 28em;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5;
}
.contact__mail {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 14px;
  border-bottom: 1.5px solid var(--ink); padding-bottom: 2px;
}
.contact__mail:hover { color: var(--ink); border-color: var(--orange); }

.form {
  position: relative; background: var(--cream);
  border: 1.5px solid var(--ink); border-radius: 26px;
  padding: clamp(24px, 3.5vw, 40px); box-shadow: 8px 8px 0 var(--ink);
  display: flex; flex-direction: column; gap: 22px; transform: rotate(.8deg);
}
.form__tape {
  position: absolute; top: -14px; left: 40px; width: 110px; height: 28px;
  background: var(--orange); opacity: .9; transform: rotate(-4deg); filter: url(#torn);
}
.form__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap;
}
.form__title { font-family: var(--display); font-size: 30px; line-height: 1; }
.form__sla { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; opacity: .7; }

/* Honeypot — bots fill it, people never see it. */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 22px;
}
.field {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
}
.field input, .field textarea {
  width: 100%; box-sizing: border-box; background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink);
  padding: 10px 0 12px; font: 500 17px var(--sans);
  color: var(--ink); outline: none; border-radius: 0;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { border-bottom-color: var(--orange); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 8px 16px;
  font: 600 14px var(--sans); letter-spacing: 0; cursor: pointer; min-height: 40px;
}
.chip:hover { background: var(--mustard); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.chip[aria-pressed="true"]:hover { background: var(--ink); }

.form__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.submit {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--cream); border: 0; border-radius: 999px;
  padding: 8px 8px 8px 26px; font: 600 17px var(--sans);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.submit:hover:not(:disabled) { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--orange); }
.submit:disabled { cursor: not-allowed; opacity: .75; }
.submit__glyph {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: var(--ink);
  display: grid; place-items: center; font-size: 18px;
}

.status { font-family: var(--mono); font-size: 13px; padding: 6px 12px; border-radius: 999px; max-width: 22em; }
.status[hidden] { display: none; }
.status[data-state="sent"]  { background: var(--olive); color: var(--cream); }
.status[data-state="error"] { background: var(--orange); color: var(--ink); }

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

.footer {
  position: relative; background: var(--ink); color: var(--cream);
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
  margin-top: -40px; padding: clamp(40px, 5vw, 60px) var(--gutter) 0;
  z-index: 2; overflow: hidden;
}
.footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 24px;
}
.footer__signoff { max-width: 34em; }
.footer__signoff p {
  margin: 0; font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 48px); line-height: 1;
  letter-spacing: -.01em; text-wrap: balance;
}
.footer__signoff em { color: var(--orange); }
.footer__label {
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  color: var(--mustard); margin-bottom: 12px;
}
.footer__marks { display: flex; align-items: center; gap: 20px; }
.footer__badge { width: 90px; height: 90px; flex: none; }
.footer__top-link {
  width: 64px; height: 64px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--cream); display: grid; place-items: center;
  font-size: 28px; transition: transform .25s, background .25s, color .25s;
}
.footer__top-link:hover {
  background: var(--mustard); color: var(--ink); transform: rotate(-12deg);
}

.footer__socials {
  margin-top: clamp(24px, 3vw, 32px);
  display: flex; flex-wrap: wrap; gap: 10px;
}
.footer__socials a {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(244, 237, 224, .35); border-radius: 999px;
  padding: 10px 18px; min-height: 44px; box-sizing: border-box; font-size: 15px;
  transition: background .2s, color .2s, border-color .2s;
}
.footer__socials a:hover {
  background: var(--orange); color: var(--ink); border-color: var(--orange);
}
.footer__socials .dim { opacity: .55; }
.footer__socials a:hover .dim { opacity: .8; }

.footer__bar {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(244, 237, 224, .18);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 10px 24px; font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Oversized sign-off wordmark, cropped by the footer's bottom edge. */
.footer__wordmark {
  margin-top: clamp(16px, 2vw, 24px); margin-bottom: -.12em;
  font-family: Bungee, var(--display); font-size: clamp(44px, 13.5vw, 230px);
  line-height: .8; letter-spacing: -.02em;
  white-space: nowrap; text-align: center; user-select: none;
}
.footer__wordmark span { color: var(--orange); }

/* --- custom cursor ------------------------------------------------------- */

.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

/* Only hide the native cursor once JS has actually taken over. */
@media (hover: hover) and (pointer: fine) {
  html[data-cursor], html[data-cursor] * { cursor: none !important; }
}
html[data-cursor] input, html[data-cursor] textarea { cursor: text !important; }

/* --- intro loader -------------------------------------------------------- */

.loader { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.loader__panel {
  position: absolute; inset: 0; background: var(--cream);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.loader__wipe { position: absolute; inset: 0; transform: translateY(100%); }
.loader__wipe--mustard { background: var(--mustard); }
.loader__wipe--ink { background: var(--ink); }
.loader__center { position: relative; display: flex; flex-direction: column; align-items: center; }
.loader__word {
  display: flex; flex-wrap: wrap; justify-content: center;
  font-family: Bungee, var(--display); font-size: clamp(52px, 10.5vw, 170px);
  line-height: 1; color: var(--ink); letter-spacing: -.01em; text-transform: uppercase;
}
.loader__word > span { display: block; overflow: hidden; padding: .12em .01em .04em; }
.loader__word > span.is-space { width: .3em; }
.loader__word i { display: block; font-style: normal; transform: translateY(110%); }
.loader__word i.is-accent { color: var(--orange); }
.loader__brush { position: relative; width: 100%; height: clamp(18px, 3vw, 36px); margin-top: -.02em; }
.loader__tag {
  margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .24em;
  color: var(--ink); opacity: 0; font-family: var(--sans);
}
.loader__status {
  position: absolute; left: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 40px);
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--ink);
  display: flex; gap: 10px; align-items: center;
}
.loader__status i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); font-style: normal; }
.loader__verb { color: var(--orange); min-width: 7ch; }
.loader__count {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: clamp(12px, 3vw, 28px);
  font-family: var(--display); font-size: clamp(56px, 8vw, 110px);
  line-height: .85; color: var(--ink);
}
.loader__bar {
  position: absolute; left: 0; bottom: 0; height: 6px; width: 100%;
  background: var(--ink); transform-origin: 0 50%; transform: scaleX(0);
}
.loader__deco { position: absolute; }

/* --- writing: article + archive ------------------------------------------ */

.post__summary {
  margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); opacity: .72;
}
.archive__empty { font-family: var(--mono); font-size: 14px; opacity: .7; }

.article {
  position: relative;
  max-width: 68rem; margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(72px, 9vw, 120px);
}
.article__head { margin-bottom: clamp(32px, 4vw, 48px); }
.article__back {
  display: inline-block; margin-bottom: 28px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; opacity: .75;
}
.article__back:hover { opacity: 1; }
.article__title {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02;
  letter-spacing: -.015em; text-wrap: balance;
}
.article__meta {
  margin: 18px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 13px; opacity: .7;
}
.article__actions { margin-top: 26px; }
.article__foot {
  margin-top: clamp(48px, 6vw, 72px); padding-top: 28px;
  border-top: 1px solid rgba(22, 20, 18, .18);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}

/* --- prose --- */

.prose { font-size: 18px; line-height: 1.7; text-wrap: pretty; }
.prose > * + * { margin-top: 1.1em; }

/* Text keeps a readable measure while terminal output, screenshots and
   tables use the full column — a CTF write-up is mostly wide output, and
   squeezing it into a prose measure forces a scrollbar on every block.
   Everything stays flush left, so the title and the code share an edge. */
.prose > * { max-width: 46rem; }
.prose > pre,
.prose > img,
.prose > table { max-width: 100%; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--serif); font-weight: 400; line-height: 1.15;
  letter-spacing: -.01em; margin-top: 1.8em; margin-bottom: .1em;
}
.prose h2 { font-size: clamp(28px, 3.4vw, 38px); }
.prose h3 { font-size: clamp(22px, 2.6vw, 28px); }
.prose h4 { font-size: 20px; font-family: var(--sans); font-weight: 700; }
.prose p { margin: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--orange); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--orange); }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(22,20,18,.2); }
.prose hr { border: 0; border-top: 1px dashed rgba(22, 20, 18, .3); margin: 2.4em 0; }

.prose blockquote {
  margin: 0; padding: 2px 0 2px 20px;
  border-left: 3px solid var(--mustard);
  font-family: var(--serif); font-size: 1.1em; font-style: italic;
}
.prose blockquote p { margin: 0; }

.prose code {
  font-family: var(--mono); font-size: .86em;
  background: rgba(22, 20, 18, .07); border-radius: 4px; padding: .15em .4em;
}
.prose pre {
  margin: 0; overflow-x: auto;
  background: var(--ink); color: var(--cream);
  border-radius: 14px; padding: 18px 20px; line-height: 1.55;
}
/* The <pre> already carries the block styling; the inner <code> must not
   repeat the inline chip treatment. */
.prose pre code {
  background: none; padding: 0; font-size: 14px; color: inherit;
}

.prose table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  display: block; overflow-x: auto;
}
.prose th, .prose td {
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid rgba(22, 20, 18, .18);
}
.prose th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
