/* =========================================================
   Giuseppe Orellana — Portfolio
   Functional brutalism: mono chrome + sans content,
   visible ledger grid, sharp corners, borders not shadows.
   References in spirit: rauno.me, paco.me, linear.app/docs
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Committed near-white / near-black. No tasteful mid-grays. */
  --paper:   #FFFFFF;   /* pure white */
  --paper-2: #ECEBE5;   /* recessed panels */
  --ink:     #1C1D20;   /* near-black — body + headlines */
  --mute:    #6E6C62;   /* mono chrome / metadata only */
  --faint:   #97958A;   /* least-important mono */

  /* Structural rules — the grid made legible */
  --line:    #DAD8CF;
  --line-2:  #C4C2B7;
  --line-ink:#1C1D20;

  /* One accent: deep desaturated olive. Links + a few emphasis cases only. */
  --acc:     #262C23;
  --acc-2:   #A6B29A;   /* light sage of same hue, for use on dark (inverted rows) */

  /* Type */
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing — uneven by design, not 80px everywhere */
  --pad: clamp(1.15rem, 4vw, 3.25rem);
  --gutter: clamp(3.25rem, 11vw, 9.5rem);
  --maxw: none; /* full-bleed: content fills the browser window; prose keeps its own readable measure */

  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 540; }
p { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }

/* Precise, mechanical focus */
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- The frame: continuous side rules ---------- */
.frame {
  max-width: var(--maxw);
  margin-inline: auto;
  min-height: 100vh;
}
@media (min-width: 720px) {
  .frame { border-inline: 1px solid var(--line); }
}

/* ---------- Type system ---------- */
/* mono = interface chrome / metadata / labels */
.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.mute { color: var(--mute); }
.faint { color: var(--faint); }

/* sans = content. Aggressive hierarchy. */
.display {
  font-family: var(--sans);
  font-size: clamp(2.55rem, 7.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 560;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 545;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  font-weight: 545;
}
.body {
  font-size: 1.0625rem;
  line-height: 1.58;
  max-width: 66ch;
}
.body-lg {
  font-size: clamp(1.15rem, 1.7vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  max-width: 50ch;
}

/* Inline link — precise underline shift on hover */
.a {
  color: var(--acc);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: text-underline-offset 0.12s var(--ease), color 0.12s var(--ease);
}
.a:hover { text-underline-offset: 4px; }
.a-ink { color: var(--ink); text-decoration-color: var(--line-2); }
.a-ink:hover { text-decoration-color: var(--ink); }

.acc { color: var(--acc); }

/* ---------- Status marker (square, not a soft dot) ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  white-space: nowrap;
}
.status .sq {
  width: 7px; height: 7px;
  background: var(--acc);
  flex: none;
}

/* ---------- Buttons: sharp, bordered, invert on hover ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7em 1.05em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.btn .ar { transition: transform 0.14s var(--ease); }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:hover .ar { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
button.btn { cursor: pointer; line-height: 1; -webkit-appearance: none; appearance: none; }
.btn[data-copied="true"] { background: var(--acc); border-color: var(--acc); color: var(--paper); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 0 0 var(--pad);
  font-family: var(--mono);
  font-size: 0.74rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding-block: 0.85rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand .mark {
  width: 1.45em; height: 1.45em;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  letter-spacing: 0;
}
/* Split-flap brand: each glyph is a mechanical card that flips back "in"
   while the new face swings "out", staggered into a cascade on hover. */
.flapline { display: inline-flex; align-items: flex-end; }
.flap {
  display: inline-block;
  position: relative;
  height: 1.3em;
  vertical-align: bottom;
}
.flap__roll {
  position: relative;
  display: block;
  height: 1.3em;
}
.flap__roll > span {
  display: block;
  height: 1.3em;
  line-height: 1.3;
  white-space: pre;
  transform-origin: center;
}
/* current glyph: folds inward */
.flap__roll > span:nth-child(1) {
  transition: transform 0.2s cubic-bezier(0.5, 0, 1, 0.5);
  transition-delay: var(--d, 0ms);
}
/* incoming glyph: starts folded, springs out after the first one is gone */
.flap__roll > span:nth-child(2) {
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transition: transform 0.22s cubic-bezier(0, 0.5, 0.4, 1);
  transition-delay: calc(var(--d, 0ms) + 0.2s);
}
.brand:hover .flap__roll > span:nth-child(1),
.brand:focus-visible .flap__roll > span:nth-child(1) {
  transform: scaleY(0);
}
.brand:hover .flap__roll > span:nth-child(2),
.brand:focus-visible .flap__roll > span:nth-child(2) {
  transform: scaleY(1);
}
@media (prefers-reduced-motion: reduce) {
  .flap__roll > span { transition-duration: 0.001s !important; transition-delay: 0s !important; }
}
.nav-links { display: flex; align-items: stretch; gap: 0; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  padding: 0 clamp(0.9em, 2vw, 1.3em);
  border-left: 1px solid var(--line-2);
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.nav-links a:last-child { border-right: 1px solid var(--line-2); }
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
.nav-status { display: none; }
@media (min-width: 760px) { .nav-status { display: inline-flex; } }

/* ---------- Ledger row: gutter (index/label) + content ---------- */
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 0;
  padding: clamp(1.75rem, 4vw, 3rem) var(--pad);
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row-tight { padding-block: clamp(1.1rem, 2.2vw, 1.5rem); }
@media (min-width: 760px) {
  .row {
    grid-template-columns: var(--gutter) 1fr;
    gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  }
}
.row__side {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.row__side .idx { color: var(--ink); }
.row__side .acc { color: var(--acc); }

/* ---------- Image placeholders — technical figure ---------- */
.ph {
  position: relative;
  width: 100%;
  border: 1px solid var(--line-2);
  background-color: var(--paper-2);
  background-image:
    repeating-linear-gradient(-45deg,
      transparent 0, transparent 7px,
      rgba(20,19,15,0.035) 7px, rgba(20,19,15,0.035) 8px);
  overflow: hidden;
}
.ph__tag, .ph__dim {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid var(--line-2);
  padding: 0.3em 0.55em;
  color: var(--mute);
}
.ph__tag { top: -1px; left: -1px; color: var(--ink); }
.ph__dim { bottom: -1px; right: -1px; color: var(--acc); }
.ph__note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--mute);
  padding: 2.5rem 1.5rem;
}

.r-16-10 { aspect-ratio: 16 / 10; }
.r-16-9  { aspect-ratio: 16 / 9; }
.r-4-3   { aspect-ratio: 4 / 3; }
.r-3-2   { aspect-ratio: 3 / 2; }
.r-1-1   { aspect-ratio: 1 / 1; }
.r-9-16  { aspect-ratio: 9 / 16; }
.r-3-4   { aspect-ratio: 3 / 4; }

/* Real image figure (replaces a .ph placeholder) */
.figimg {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  transition: border-color 0.12s var(--ease);
}
.feat:hover .figimg { border-color: var(--ink); }

/* Zoomable exhibit figure — click to expand */
.figzoom {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  position: relative;
  cursor: zoom-in;
}
.figzoom .figimg { transition: border-color 0.12s var(--ease); }
.figzoom:hover .figimg,
.figzoom:focus-visible .figimg { border-color: var(--ink); }
.figzoom:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.figzoom::after {
  content: "⤢ click to expand";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.6rem;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.14s var(--ease), transform 0.14s var(--ease);
  pointer-events: none;
}
.figzoom:hover::after,
.figzoom:focus-visible::after { opacity: 1; transform: none; }

/* Gallery lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in oklab, var(--ink) 90%, transparent);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), visibility 0.18s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__stage {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 0;
  min-width: 0;
}
.lightbox__img {
  max-width: min(82vw, 1100px);
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line-2);
  background: var(--paper);
  transform: scale(0.97);
  transition: transform 0.18s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: none; }

.lightbox__cap {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 82vw;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 78%, transparent);
}
.lightbox__count { color: var(--paper); font-weight: 500; }
.lightbox__label { color: color-mix(in oklab, var(--paper) 64%, transparent); }

.lightbox__close {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  transition: background 0.12s var(--ease), color 0.12s var(--ease), border-color 0.12s var(--ease);
}
.lightbox__close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.lightbox__nav {
  grid-row: 1;
  align-self: center;
  width: clamp(2.6rem, 5vw, 3.4rem);
  height: clamp(2.6rem, 5vw, 3.4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: color-mix(in oklab, var(--paper) 12%, transparent);
  color: var(--paper);
  border: 1px solid color-mix(in oklab, var(--paper) 28%, transparent);
  cursor: pointer;
  transition: background 0.12s var(--ease), color 0.12s var(--ease), border-color 0.12s var(--ease);
}
.lightbox__nav:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lightbox__nav--prev { grid-column: 1; justify-self: start; }
.lightbox__nav--next { grid-column: 3; justify-self: end; }
.lightbox__nav[hidden] { display: none; }

.lightbox__thumbs {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.lightbox__thumbs[hidden] { display: none; }
.lightbox__thumb {
  width: clamp(48px, 7vw, 70px);
  height: clamp(34px, 5vw, 48px);
  padding: 0;
  border: 1px solid color-mix(in oklab, var(--paper) 26%, transparent);
  background: var(--paper);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.12s var(--ease), border-color 0.12s var(--ease);
}
.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox__thumb:hover { opacity: 0.85; }
.lightbox__thumb.is-active {
  opacity: 1;
  border-color: var(--paper);
  outline: 1px solid var(--paper);
}
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible,
.lightbox__thumb:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

@media (max-width: 640px) {
  .lightbox__img { max-height: 60vh; }
  .lightbox__nav { width: 2.4rem; height: 2.4rem; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad) 1.5rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer h4 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; font-weight: 400; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; font-family: var(--mono); font-size: 0.78rem; }
.footer-links a { color: var(--mute); width: fit-content; transition: color 0.12s var(--ease); }
.footer-links a:hover { color: var(--ink); }
.footer-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  padding: 1.1rem var(--pad);
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.7rem; color: var(--faint); letter-spacing: 0.03em;
}

/* ---------- Utilities ---------- */
.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; }
.skip-link { position: absolute; left: var(--pad); top: -3rem; background: var(--ink); color: var(--paper); padding: 0.6em 1em; z-index: 100; font-family: var(--mono); font-size: 0.78rem; transition: top 0.15s var(--ease); }
.skip-link:focus { top: 0.75rem; }

/* =========================================================
   HOME
   ========================================================= */

/* Dark banner surface — shared by home hero + page headers (Work, About).
   Re-scopes the tokens so every descendant adapts to the dark ground. */
.hero,
.page-head {
  background: #1C1D20;
  color: var(--ink);
  --paper:   #1C1D20;   /* the dark ground (e.g. button text on light fill) */
  --paper-2: #26272B;
  --ink:     #F4F3EF;   /* primary text/headlines → near-white */
  --mute:    #9D9C95;   /* metadata / mono chrome */
  --faint:   #74736C;
  --line:    rgba(244, 243, 239, 0.14);
  --line-2:  rgba(244, 243, 239, 0.30);
  --acc:     #A6B29A;   /* light sage of the olive hue, legible on dark */
}

/* Hero — asymmetric, left-aligned, dense */
.hero {
  min-height: calc(100svh - 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.25rem, 5vw, 4rem) var(--pad);
  border-bottom: 1px solid var(--line);
}
.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.hero__eyebrow .sep { color: var(--line-2); }
.hero__title { max-width: 17ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.hero__sub {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}
@media (min-width: 820px) {
  .hero__sub {
    grid-template-columns: 1fr minmax(15rem, 19rem);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }
}
.hero__lede { color: var(--ink); }
.hero__lede .metric { color: var(--acc); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* Centered hero variant — eyebrow / name / tagline / CTAs stacked & centered */
.hero--centered { align-items: center; text-align: center; }
.hero--centered .hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 60rem;
}
.hero--centered .hero__eyebrow { justify-content: center; font-size: 0.78rem; color: #fff; }
.hero--centered .hero__eyebrow .status,
.hero--centered .hero__eyebrow .sep { color: #fff; }
.hero--centered .hero__eyebrow .status { font-size: inherit; }
.hero--centered .hero__title {
  max-width: none;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.hero--centered .hero__tagline {
  color: var(--ink);
  max-width: 28ch;
  text-wrap: balance;
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
}
.hero--centered .hero__cta { margin-top: 0; justify-content: center; }

/* Facts ledger in hero */
.facts { border-top: 1px solid var(--line); }
.facts__row {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.45;
}
.facts__row dt { color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; margin: 0; }
.facts__row dd { margin: 0; color: var(--ink); }

/* Section caption row (lowercase mono + number + rule) */
.cap {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: clamp(1.4rem, 3vw, 2rem) var(--pad) 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.cap .num { color: var(--acc); }
.cap::after { content: ""; flex: 1; height: 1px; background: var(--line); transform: translateY(-0.28em); }

/* Work entries */
.entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem 0;
  padding: clamp(2rem, 4vw, 3.25rem) var(--pad);
  border-top: 1px solid var(--line);
  color: inherit;
}
.entry-first { border-top: 0; }
@media (min-width: 760px) {
  .entry { grid-template-columns: var(--gutter) 1fr; gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
}
.entry__side {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  gap: 0.85rem;
  color: var(--faint);
}
.entry__side .idx { color: var(--ink); }
@media (min-width: 760px) { .entry__side { flex-direction: column; gap: 0.4rem; } }

/* Featured */
.feat .entry__body { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 980px) {
  .feat .entry__body {
    grid-template-columns: 1fr 0.82fr;
    gap: clamp(2rem, 4vw, 3.75rem);
    align-items: start;
  }
}
.entry__role { font-family: var(--mono); font-size: 0.72rem; color: var(--mute); letter-spacing: 0.02em; margin-bottom: 0.9rem; }
.entry__title { display: inline; }
.entry__title .ar {
  display: inline-block;
  color: var(--acc);
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 0.14s var(--ease), opacity 0.14s var(--ease);
}
.entry:hover .entry__title .ar { transform: translateX(2px); opacity: 1; }
.entry__teaser { font-size: 1.0625rem; line-height: 1.55; color: var(--ink); max-width: 44ch; margin-top: 1rem; }
.entry__teaser .em { color: var(--acc); }
.entry__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.entry__read { color: var(--ink); display: inline-flex; align-items: center; gap: 0.5em; }
.entry__read .ul { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; transition: text-underline-offset 0.12s var(--ease), text-decoration-color 0.12s var(--ease); }
.entry:hover .entry__read .ul { text-underline-offset: 4px; text-decoration-color: var(--ink); }
.feat .ph { transition: border-color 0.12s var(--ease); }
.feat:hover .ph { border-color: var(--ink); }

/* Compact (more work) — full-row invert on hover */
.entry-min {
  align-items: baseline;
  padding-block: clamp(1.25rem, 2.4vw, 1.7rem);
  transition: background 0.1s var(--ease);
}
.entry-min .entry__min-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}
@media (min-width: 760px) {
  .entry-min .entry__min-body {
    grid-template-columns: 1fr 1.3fr auto;
    gap: 0 clamp(1.5rem, 3vw, 2.5rem);
    align-items: baseline;
  }
}
.entry-min .min-name { font-size: 1.3rem; letter-spacing: -0.02em; font-weight: 545; }
.entry-min .min-desc { color: var(--mute); font-size: 0.95rem; }
.entry-min .min-tag { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); white-space: nowrap; }
.entry-min .min-ar { display: none; }
.entry-min:hover { background: var(--ink); }
.entry-min:hover, .entry-min:hover .min-name, .entry-min:hover .min-desc, .entry-min:hover .min-tag, .entry-min:hover .entry__side, .entry-min:hover .entry__side .idx { color: var(--paper); }
.entry-min:hover .min-tag { color: var(--acc-2); }

/* Positioning statement */
.positioning {
  padding: clamp(2.75rem, 6vw, 5rem) var(--pad);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.positioning .body-lg { max-width: 30ch; }
.positioning .h3 { color: var(--ink); }

/* About teaser + contact */
.about-body { max-width: 60ch; }
.about-body p { margin-bottom: 1.25rem; }
.contact-card {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 60ch;
}
.contact-card .label { margin-bottom: 0.9rem; color: var(--acc); }
.contact-card p { color: var(--ink); margin-bottom: 1.5rem; max-width: 40ch; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (min-width: 760px) {
  .contact-grid { display: grid; grid-template-columns: 1fr; gap: 0; width: 100%; }
}
.footer-blurb { font-family: var(--mono); font-size: 0.78rem; line-height: 1.55; color: var(--mute); margin-top: 1rem; max-width: 38ch; }
