/* ─────────────────────────────────────────────────────────
   Hitesh Kumawat — Portfolio v2
   Soft neutrals · Jost · micro-interactions
   ───────────────────────────────────────────────────────── */

:root {
  /* color system from attached swatches */
  --c-bg:        #FFFFFF;
  --c-bg-soft:   #F5F5F7;
  --c-divide:    #E8E8ED;
  --c-mute:      #707070;
  --c-secondary: #474747;
  --c-body:      #333333;
  --c-ink:       #1D1D1F;

  /* type */
  --font-sans: 'Jost', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* layout */
  --max: 1284px;
  --gutter: 24px;
  --section-y: 120px;

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

::selection { background: var(--c-ink); color: var(--c-bg-soft); }

/* Skip to content (WCAG 2.4.1) */
.skip-link {
  position: fixed;
  top: 8px; left: 50%;
  transform: translateX(-50%) translateY(-150%);
  z-index: 1000;
  padding: 10px 18px;
  background: var(--c-ink); color: #fff;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 768px) {
  :root { --section-y: 72px; }
  .hero { padding-top: 120px; min-height: 0; }
  .work__head { margin-bottom: 48px; }
  .hero__meta { margin-top: 56px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-y: 60px; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Cursor blob (decorative) ─── */
.cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(29,29,31,.06), rgba(29,29,31,0) 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity .4s ease;
  opacity: 0;
}
body.has-cursor .cursor-blob { opacity: 1; }
@media (max-width: 900px) { .cursor-blob { display: none; } }

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .9s var(--ease-out),
    transform .9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 32px), 1100px);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(232,232,237,0);
  transition: border-color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease), top .4s var(--ease);
}
.nav.is-scrolled {
  border-color: var(--c-divide);
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 40px -20px rgba(29,29,31,.18);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 10px 24px;
}
.nav__logo {
  color: var(--c-ink);
  display: inline-flex; align-items: center;
}
.nav__logo svg { display: block; }
.nav__links {
  display: flex; gap: 8px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav__links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--c-secondary);
  border-radius: 999px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav__links a:hover { color: var(--c-ink); background: var(--c-bg-soft); }
@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--dark {
  background: var(--c-ink); color: #fff;
  border-color: var(--c-ink);
}
.btn--dark:hover { opacity: .82; }
.btn--ghost {
  background: transparent; color: var(--c-ink);
  border-color: var(--c-divide);
}
.btn--ghost:hover { border-color: var(--c-ink); }
.btn--light {
  background: var(--c-bg-soft); color: var(--c-ink);
  border-color: var(--c-bg-soft);
}
.btn--light:hover { background: #fff; }

/* Coming-soon (non-interactive) button */
.btn--soon {
  cursor: default;
  opacity: .55;
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}
.btn--soon:hover { opacity: .55; }
.soon-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 168px var(--gutter) 80px;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--max); margin: 0 auto;
}
.hero__inner { position: relative; z-index: 1; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-divide);
  border-radius: 999px;
  font-size: 13px; color: var(--c-secondary);
  margin-bottom: 40px;
}
.status__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2d8f4e;
  box-shadow: 0 0 0 0 rgba(45,143,78,.6);
  animation: pulse 2.4s infinite var(--ease-out);
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45,143,78,.5); }
  60%  { box-shadow: 0 0 0 8px rgba(45,143,78,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,143,78,0); }
}
.status__label { font-weight: 500; color: var(--c-ink); }
.status__sep { color: var(--c-mute); }
.status__time { font-family: var(--font-mono); font-size: 12px; color: var(--c-mute); letter-spacing: 0; }

.hero__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--c-ink);
}
.hero__title .hero__line { display: block; }
.hero__accent {
  color: var(--c-mute);
  position: relative;
  display: inline-block;
}

/* Name line — secondary to the work statement */
.hero__name {
  margin: 28px 0 0;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--c-secondary);
}
.hero__name em {
  font-style: normal;
  font-weight: 600;
  color: var(--c-ink);
}
@keyframes highlight {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.hero__sub {
  margin: 24px 0 0;
  max-width: 720px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--c-secondary);
}
.hero__sub a {
  color: var(--c-ink);
  font-weight: 500;
  border-bottom: 1px solid var(--c-divide);
  transition: border-color .25s var(--ease);
}
.hero__sub a:hover { border-color: var(--c-ink); }

.hero__cta { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--c-divide);
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--c-ink);
  line-height: 1;
}
.meta-lbl { font-size: 12.5px; color: var(--c-mute); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 760px) {
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
}

.scroll-cue {
  position: absolute;
  right: var(--gutter); bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-cue__line {
  width: 60px; height: 1px;
  background: var(--c-mute);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--c-ink);
  animation: cue 2.2s infinite var(--ease-out);
  transform-origin: left;
}
@keyframes cue {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* ─── Section primitives ─── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-mute);
  margin-bottom: 24px;
}
.section-title {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--c-ink);
}
.section-sub {
  margin: 20px 0 0;
  max-width: 600px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-secondary);
}

/* ─── About ─── */
.about {
  background: var(--c-bg-soft);
  padding: var(--section-y) var(--gutter);
  margin-top: 80px;
}
.about__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about__portrait { position: sticky; top: 120px; }
.portrait-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--c-divide);
  aspect-ratio: 4/5;
  transform: rotate(-1deg);
  transition: transform .6s var(--ease-out);
  /* Force rounded clip onto its own composite layer so the radius
     doesn't flicker to 0 while the inner image scales. */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  will-change: transform;
}
.portrait-frame:hover { transform: rotate(0deg) translateY(-4px); }
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
  filter: contrast(1.03);
  will-change: transform;
}
.portrait-frame:hover img { transform: scale(1.03); }
.portrait-tag {
  position: absolute;
  left: 16px; bottom: 16px;
  padding: 10px 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  font-size: 13px;
  display: flex; flex-direction: column; gap: 2px;
}
.portrait-tag__row { display: flex; align-items: center; gap: 6px; color: var(--c-ink); font-weight: 500; }
.portrait-tag__row--muted { color: var(--c-mute); font-weight: 400; font-size: 12px; }
.portrait-dot { width: 6px; height: 6px; border-radius: 50%; background: #2d8f4e; }

.about__copy { padding-top: 8px; }
.about__body p {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-secondary);
}
.about__body p:first-child { margin-top: 0; }
.about__body strong { color: var(--c-ink); font-weight: 600; }
.about__off { color: var(--c-mute); }
.tag {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 2px;
  background: #fff;
  border: 1px solid var(--c-divide);
  border-radius: 999px;
  font-size: 14px;
  color: var(--c-ink);
}
.about__cta { display: flex; gap: 10px; margin-top: 36px; }

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 420px; }
}

/* ─── Work / Cases ─── */
.work {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter) calc(var(--section-y) * 0.66);
}
.work__head { max-width: 720px; margin-bottom: 80px; }

.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 64px);
  padding: 48px 0;
  border-top: 1px solid var(--c-divide);
  align-items: center;
}
.case + .case { margin-top: 0; }
.case--flip { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.case--flip .case__meta { order: 2; }
.case--flip .case__visual { order: 1; }
@media (max-width: 900px) {
  .case, .case--flip { grid-template-columns: 1fr; gap: 32px; }
  .case--flip .case__meta { order: 1; }
  .case--flip .case__visual { order: 2; }
}

.case__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-mute);
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.case__pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--c-ink);
  color: #fff;
  font-weight: 500;
}
.pill--ghost { background: transparent; color: var(--c-secondary); border: 1px solid var(--c-divide); }

.case__title {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--c-ink);
  line-height: 1.05;
}
.case__role {
  margin: 6px 0 16px;
  font-size: 14px;
  color: var(--c-mute);
}
.case__desc {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-secondary);
  max-width: 500px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--c-divide);
  border-bottom: 1px solid var(--c-divide);
}
.stat__num {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__lbl {
  font-size: 12px;
  color: var(--c-mute);
  line-height: 1.4;
}

.case__cta { display: flex; gap: 10px; flex-wrap: wrap; }

.case__visual { position: relative; }
.case__shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-divide);
  aspect-ratio: 16/10;
  padding: 8px;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease);
}
.case__shot::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 28px;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-divide);
  display: none;
}
.case__shot img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
  border-radius: 10px;
  transition: transform 1.4s var(--ease-out);
}
.case:hover .case__shot { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(29,29,31,.25); }
.case:hover .case__shot img { transform: scale(1.02); }

/* ─── Process ─── */
.process {
  background: var(--c-bg-soft);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}
.process__head {
  max-width: var(--max);
  margin: 0 auto 56px;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.process__head > div:first-child { max-width: 580px; }

.process__controls { display: flex; gap: 8px; }
.round-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-divide);
  background: #fff;
  color: var(--c-ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.round-btn:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); transform: translateY(-1px); }

.process__track-wrap {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.process__line {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  top: 44px;
  height: 1px;
  background: linear-gradient(to right, var(--c-ink) 0, var(--c-ink) 84%, rgba(29,29,31,0) 100%);
  pointer-events: none;
}
.process__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 24px 0;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 84%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to right, #000 0, #000 84%, rgba(0,0,0,0) 100%);
}
.process__track::-webkit-scrollbar { display: none; }

.step {
  /* Exactly 3 cards in view: (container - 2 gaps) / 3 */
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  padding: 32px 24px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  position: relative;
  transition: transform .4s var(--ease-out);
}
@media (max-width: 900px) {
  .step { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .step { flex: 0 0 80%; }
}
.step:hover { transform: translateY(-2px); }
.step__head { display: flex; align-items: center; margin-bottom: 18px; }
.step__chip {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fff;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--c-ink);
  border-radius: 999px;
}
.step h4 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  line-height: 1.15;
}
.step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-secondary);
  max-width: 340px;
}

/* ─── Skills & Tools ─── */
.skills { padding: var(--section-y) var(--gutter); max-width: var(--max); margin: 0 auto; }
.skills__head { max-width: 720px; margin-bottom: 56px; }

.skillset {
  border-top: 1px solid var(--c-divide);
}
.skillset__row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--c-divide);
  align-items: start;
}
@media (max-width: 720px) {
  .skillset__row { grid-template-columns: 1fr; gap: 16px; }
}
.skillset__cat {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--c-ink);
}
.skillset__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-mute);
}
.skillset__items {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.skillset__items span {
  padding: 7px 14px;
  border: 1px solid var(--c-divide);
  border-radius: 999px;
  font-size: 14px;
  color: var(--c-secondary);
  background: #fff;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.skillset__items span:hover {
  border-color: var(--c-ink);
  color: var(--c-ink);
}

/* Tools logo grid */
.tools { margin-top: 64px; display: flex; flex-direction: column; gap: 36px; }
.tools__group { display: flex; flex-direction: column; gap: 16px; }
.tools__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 500;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-divide);
}
.tools__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .tools__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .tools__grid { grid-template-columns: repeat(3, 1fr); } }

.tool {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 28px 12px;
  border: 1px solid var(--c-divide);
  border-radius: 14px;
  background: #fff;
  transition: transform .35s var(--ease-out), border-color .25s var(--ease), background-color .25s var(--ease);
}
.tool:hover { transform: translateY(-3px); border-color: var(--c-ink); }
.tool__ico {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tool__ico img {
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: .58;
  filter: grayscale(1) brightness(0);
  transition: opacity .25s var(--ease);
}
.tool:hover .tool__ico img { opacity: 1; }
.tool__mono {
  display: none;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  color: var(--c-ink);
  background: var(--c-bg-soft);
  border-radius: 8px;
}
.tool__name {
  font-size: 12.5px;
  color: var(--c-mute);
  letter-spacing: -0.01em;
}
.tool:hover .tool__name { color: var(--c-ink); }

/* ─── Writing / Blog ─── */
.writing {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.writing__head { max-width: 720px; margin-bottom: 56px; }
.writing__list { border-top: 1px solid var(--c-divide); }
.post {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 4px;
  border-bottom: 1px solid var(--c-divide);
  transition: padding .3s var(--ease), background-color .25s var(--ease);
}
a.post:hover { padding-left: 16px; padding-right: 16px; background: var(--c-bg-soft); }
.post--soon { opacity: .6; }
.post__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.post__main { display: flex; flex-direction: column; gap: 6px; }
.post__title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  line-height: 1.15;
}
.post__excerpt { font-size: 15px; color: var(--c-mute); line-height: 1.5; max-width: 540px; }
.post__meta { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }
.post__date { font-family: var(--font-mono); font-size: 12px; color: var(--c-mute); white-space: nowrap; }
.post__soon {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--c-divide);
  border-radius: 999px;
  color: var(--c-mute);
  white-space: nowrap;
}
.post__arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-divide);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-ink);
  flex: 0 0 auto;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .3s var(--ease-out);
}
a.post:hover .post__arrow { background: var(--c-ink); color: #fff; transform: rotate(-45deg); }
.writing__cta { display: flex; justify-content: center; margin-top: 48px; }
@media (max-width: 720px) {
  .post { grid-template-columns: 1fr auto; gap: 16px; }
  .post__tag { grid-column: 1 / -1; }
}

/* ─── Praise / Testimonials ─── */
.praise {
  background: var(--c-bg-soft);
  padding: var(--section-y) var(--gutter);
}
.praise > * {
  max-width: calc(var(--max) - var(--gutter) * 2);
  margin-left: auto;
  margin-right: auto;
}
.praise__head {
  margin-bottom: 64px;
}
.praise__head .section-title,
.praise__head .section-sub { max-width: 720px; }
.praise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .praise__grid { grid-template-columns: 1fr; } }
@media (min-width: 700px) and (max-width: 1000px) { .praise__grid { grid-template-columns: repeat(2, 1fr); } }

.quote {
  margin: 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--c-divide);
  border-radius: 16px;
  display: flex; flex-direction: column; gap: 24px;
  transition: transform .4s var(--ease-out), border-color .25s var(--ease);
}
.quote:hover { transform: translateY(-4px); border-color: var(--c-ink); }
.quote blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-body);
  font-weight: 400;
  position: relative;
}
.quote blockquote::before {
  content: "“";
  position: absolute; left: -6px; top: -16px;
  font-size: 44px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--c-divide);
  line-height: 1;
}
.quote figcaption {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--c-divide);
  font-size: 14px;
}
.quote figcaption strong { display: block; color: var(--c-ink); font-weight: 500; }
.quote figcaption em { display: block; font-style: normal; font-size: 12px; color: var(--c-mute); margin-top: 2px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-divide);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: var(--c-ink);
  letter-spacing: 0.04em;
  overflow: hidden;
  flex: 0 0 auto;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.praise__cta { display: flex; justify-content: center; margin-top: 48px; }

/* ─── Footer ─── */
.foot {
  background: var(--c-ink);
  color: var(--c-bg-soft);
  padding: var(--section-y) var(--gutter) 24px;
  position: relative;
  overflow: hidden;
}
.foot__top {
  max-width: calc(var(--max) - var(--gutter) * 2);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 64px;
}
@media (max-width: 900px) {
  .foot__top { grid-template-columns: 1fr; gap: 40px; }
}

.foot__logo {
  display: block;
  width: 152px; height: auto;
  margin: 0 0 36px;
}
.foot__socials {
  display: flex; gap: 16px;
  align-items: center;
}
.foot__socials a {
  width: 24px; height: 24px;
  color: var(--c-divide);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .25s var(--ease), transform .25s var(--ease-out);
}
.foot__socials a:hover { color: #fff; transform: translateY(-2px); }

.foot__right {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.foot__right > * { width: 100%; }
.foot__title {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
  width: 100%;
}
.foot__title span { display: block; width: 100%; }
.foot__title em { font-style: normal; color: var(--c-mute); font-weight: 500; }
.foot__sub {
  margin: 0;
  max-width: 460px;
  color: var(--c-divide);
  font-size: 16px;
  line-height: 1.55;
}

/* Currently block under socials */
.foot__currently-block {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 360px;
}
.foot__currently-block h5 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 500;
}
.foot__currently { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--c-divide); }
.foot__currently--muted { color: var(--c-mute); }

/* Marquee — container-width */
.marquee {
  max-width: calc(var(--max) - var(--gutter) * 2);
  margin: 0 auto 28px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: inline-flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  align-items: center;
  color: var(--c-divide);
  font-size: 14px;
  letter-spacing: -0.01em;
  will-change: transform;
}
.marquee__item { flex: 0 0 auto; }
.marquee__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-mute); flex: 0 0 auto; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Bordered panel: vibe + copyright */
.foot__panel {
  max-width: calc(var(--max) - var(--gutter) * 2);
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.15);
  padding: 40px 24px 28px;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 24px;
}

.vibe {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.vibe__label {
  font-size: 16px;
  color: var(--c-divide);
  letter-spacing: -0.01em;
}
.vibe__stack {
  display: inline-flex;
  align-items: center;
}
.vibe__chip {
  width: 46px; height: 46px;
  display: block;
  margin-left: -8px;
  transition: transform .35s var(--ease-out);
  position: relative;
}
.vibe__chip:first-child { margin-left: 0; }
.vibe__chip:hover { transform: translateY(-3px) scale(1.05); z-index: 2; }

.foot__copy {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--c-mute);
}

/* ─── Tweaks-only overrides (toggled by JS) ─── */
body.tweak-portrait-circle .portrait-frame { aspect-ratio: 1/1; border-radius: 50%; transform: rotate(0); max-width: 380px; }
body.tweak-portrait-circle .portrait-tag { display: none; }
body.tweak-portrait-square .portrait-frame { aspect-ratio: 1/1; transform: rotate(0); border-radius: 18px; }

body.tweak-grain::before {
  content: ""; position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: multiply;
}
