/* ============================================================
   Hector Arato — personal site v3
   Concept: THE TRAVELER'S NOTEBOOK.
   Kraft paper with a dot grid, leather covers with stitching,
   washi tape, passport stamps, ticket-stub cards, ballpoint
   annotations, hard paper-stack shadows, highlighter sweeps.
   Type: Instrument Serif (display) · Schibsted Grotesk (body)
         Caveat (handwriting) · IBM Plex Mono (labels)
   ============================================================ */

:root {
  --paper: #f2ead7;        /* kraft cream page */
  --paper-hi: #fbf6e9;
  --kraft: #e7dabb;        /* deeper kraft card */
  --ink: #241d15;          /* warm sepia ink */
  --ink-soft: #55483a;
  --ink-faint: #92836c;
  --leather: #40301f;      /* cover leather */
  --leather-hi: #57422c;
  --stitch: #cbb691;       /* stitching thread on leather */
  --cream: #ecdfc4;        /* text on leather */
  --pen: #2a4fae;          /* ballpoint blue */
  --red: #c73a2a;          /* vintage stamp red */
  --red-deep: #9e2b1e;
  --hl: #f4d879;           /* aged highlighter */
  --tape: rgba(226, 205, 158, 0.8);
  --dot: rgba(85, 66, 45, 0.22);
  --max: 1100px;
  --disp: "Instrument Serif", "Georgia", serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
  --hand: "Caveat", cursive;
  --mono: "IBM Plex Mono", "Menlo", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.15px, transparent 1.15px);
  background-size: 23px 23px;
  position: relative;
}

/* the stitched binding along the spine */
body::before {
  content: "";
  position: fixed;
  top: 0; bottom: 0;
  left: clamp(14px, 4vw, 58px);
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(85, 66, 45, 0.45) 0 9px,
    transparent 9px 20px
  );
  pointer-events: none;
  z-index: 1;
}

::selection { background: var(--hl); color: var(--ink); }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.5rem, 6vw, 4rem); position: relative; }
.narrow { max-width: 820px; }
main { padding-bottom: 5rem; position: relative; z-index: 2; }

/* ---------- nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), transparent 30%),
    var(--leather);
  border-bottom: 2px solid var(--ink);
}
/* stitching along the cover edge */
header.site::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  border-top: 1.5px dashed var(--stitch);
  opacity: 0.65;
  pointer-events: none;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--disp);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--cream);
  transition: transform 0.2s;
  display: inline-block;
}
.wordmark:hover { transform: rotate(-2deg); color: var(--cream); }
.wordmark .dot { color: var(--hl); }
nav.main { display: flex; gap: 0.4rem; flex-wrap: wrap; }
nav.main a {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--stitch);
  padding: 0.35rem 0.7rem;
  position: relative;
  z-index: 1;
}
/* highlighter sweep on hover */
nav.main a::before {
  content: "";
  position: absolute;
  inset: 4px 2px;
  background: var(--hl);
  z-index: -1;
  transform: scaleX(0) skewX(-8deg);
  transform-origin: left center;
  transition: transform 0.22s cubic-bezier(0.6, 0, 0.2, 1);
}
nav.main a:hover { color: var(--ink); }
nav.main a:hover::before { transform: scaleX(1) skewX(-8deg); }
nav.main a[aria-current="page"] {
  color: var(--hl);
  text-decoration: underline wavy var(--hl) 1.5px;
  text-underline-offset: 5px;
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--disp); font-weight: 400; line-height: 1.04; }
h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--red); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.55rem; margin-bottom: 0.4rem; }
p + p { margin-top: 1rem; }
strong { font-weight: 700; }

a { color: var(--pen); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

/* highlighter link treatment inside prose */
main p a, main li a, .pull a {
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat;
  background-size: 0% 42%;
  background-position: 0 78%;
  transition: background-size 0.25s ease, color 0.2s;
  padding: 0 2px;
}
main p a:hover, main li a:hover, .pull a:hover { background-size: 100% 42%; color: var(--ink); }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pen);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--pen); }

.lede { font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); font-weight: 400; }

.sig { font-family: var(--hand); font-size: 1.5rem; color: var(--pen); transform: rotate(-1deg); display: inline-block; }
.sig a { color: var(--red); }

/* circled word (SVG draws itself in) */
.circled { position: relative; white-space: nowrap; }
.circled svg {
  position: absolute;
  inset: -14% -7%;
  width: 114%;
  height: 128%;
  overflow: visible;
  pointer-events: none;
}
.circled svg path {
  fill: none;
  stroke: var(--red);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.1s 0.7s cubic-bezier(0.5, 0, 0.3, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* rotating word */
.rotator {
  display: inline-block;
  color: var(--pen);
  font-style: italic;
  min-width: 2.5em;
  text-align: center;
  transition: opacity 0.25s, transform 0.25s;
}
.rotator.swap { opacity: 0; transform: translateY(0.35em) rotate(2deg); }

/* handwritten margin note */
.note-margin {
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--pen);
  display: block;
  max-width: 240px;
  transform: rotate(-2.5deg);
  margin: 1.6rem 0;
}
.note-margin::before { content: "↖ "; }
@media (min-width: 1600px) {
  .note-margin.float-right {
    position: absolute;
    right: -240px;
    width: 210px;
    margin: 0;
    transform: rotate(3deg);
  }
  .note-margin.float-right::before { content: "← "; }
}

/* rubber stamp */
.stamp {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 3px double var(--red);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  display: inline-block;
  transform: rotate(-5deg);
  opacity: 0.9;
  mix-blend-mode: multiply;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.55' numOctaves='2'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='2.2' intercept='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='120' height='120' fill='%23fff' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.55' numOctaves='2'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='2.2' intercept='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='120' height='120' fill='%23fff' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stamp.thunk { animation: thunk 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes thunk {
  0% { transform: rotate(-5deg) scale(2.1); opacity: 0; }
  60% { transform: rotate(-5deg) scale(0.94); opacity: 1; }
  100% { transform: rotate(-5deg) scale(1); opacity: 0.9; }
}
.stamp.blue { color: var(--pen); border-color: var(--pen); }

/* ---------- hero ---------- */
.hero { padding: 4.5rem 0 3.5rem; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero .lede { margin-top: 1.6rem; max-width: 33em; }
.hero-actions { margin-top: 2.3rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ---------- buttons: paper with hard shadow, pressable ---------- */
.btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  display: inline-block;
  border: 2px solid var(--ink);
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.btn-solid {
  background: var(--red);
  color: var(--paper-hi);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-solid:hover { background: var(--red-deep); color: var(--paper-hi); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-solid:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-ghost { background: var(--paper-hi); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost:hover { background: var(--hl); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }

/* ---------- placeholder photos: taped-in prints ---------- */
.ph {
  position: relative;
  border: 2px solid var(--ink);
  background:
    repeating-linear-gradient(-45deg, transparent 0 16px, rgba(85, 66, 45, 0.07) 16px 32px),
    var(--paper-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  box-shadow: 5px 5px 0 rgba(23, 20, 14, 0.85);
  transform: rotate(-1.2deg);
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.4, 1), box-shadow 0.25s;
}
.ph:nth-child(even) { transform: rotate(1deg); }
.ph:hover { transform: rotate(0deg) scale(1.012); box-shadow: 8px 8px 0 rgba(23, 20, 14, 0.85); }
/* washi tape */
.ph::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 30px;
  background:
    repeating-linear-gradient(45deg, rgba(199, 58, 42, 0.28) 0 6px, transparent 6px 13px),
    var(--tape);
  transform: translateX(-50%) rotate(-3deg);
  border-left: 1px dashed rgba(36, 29, 21, 0.15);
  border-right: 1px dashed rgba(36, 29, 21, 0.15);
  box-shadow: 0 1px 2px rgba(36, 29, 21, 0.12);
  z-index: 2;
}
.ph:nth-child(even)::before {
  background:
    repeating-linear-gradient(45deg, rgba(42, 79, 174, 0.24) 0 6px, transparent 6px 13px),
    var(--tape);
  transform: translateX(-50%) rotate(2.5deg);
}
/* the notebook's elastic band, across a taped-in print */
.band {
  position: absolute;
  top: -16px;
  bottom: -16px;
  right: 17%;
  width: 11px;
  background: linear-gradient(90deg, var(--leather-hi), var(--leather) 55%);
  border-radius: 5px;
  box-shadow: 1px 0 3px rgba(36, 29, 21, 0.35);
  z-index: 3;
}
/* circular passport roundel over the photo corner */
.photo-stack { position: relative; }
.roundel {
  position: absolute;
  width: 132px;
  height: 132px;
  bottom: -30px;
  left: -26px;
  color: var(--red);
  font-family: var(--mono);
  letter-spacing: 0.18em;
  transform: rotate(-12deg);
  mix-blend-mode: multiply;
  opacity: 0.88;
  z-index: 4;
  transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.4, 1);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.55' numOctaves='2'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='2.2' intercept='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='120' height='120' fill='%23fff' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.55' numOctaves='2'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='2.2' intercept='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='120' height='120' fill='%23fff' filter='url(%23n)'/%3E%3C/svg%3E");
}
.photo-stack:hover .roundel { transform: rotate(2deg); }
.ph::after {
  content: attr(data-label);
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--ink-faint);
  transform: rotate(-2deg);
}
.ph-portrait { aspect-ratio: 4 / 5; }
.ph-wide { aspect-ratio: 16 / 8; min-height: 200px; margin-top: 1.5rem; }
.ph-square { aspect-ratio: 1; min-height: 180px; }

/* ---------- fact ticker ---------- */
.ticker {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background:
    linear-gradient(rgba(0, 0, 0, 0.14), transparent 35%),
    var(--leather);
  color: var(--cream);
  overflow: hidden;
  padding: 0.65rem 0;
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker span b { color: var(--hl); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stat strip ---------- */
.stats { padding: 3rem 0 1rem; }
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.2rem;
}
.stat {
  background: var(--paper-hi);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 1.4rem 1.4rem 1.2rem;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
/* vintage label inner frame */
.stat::before, .fact::before, .card::before, .pull::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(36, 29, 21, 0.3);
  pointer-events: none;
}
.stat:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); }
.stat b {
  font-family: var(--disp);
  font-size: 2.6rem;
  display: block;
  line-height: 1;
  color: var(--ink);
}
.stat b .u { color: var(--red); }
.stat span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-top: 0.6rem;
  line-height: 1.6;
}

/* ---------- sections ---------- */
section.block { padding: 3.5rem 0; }
section.block + section.block { border-top: 2px dashed rgba(23, 20, 14, 0.25); }

/* ---------- cards: index cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.8rem; margin-top: 2.2rem; }
.card {
  background: var(--paper-hi);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 1.7rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
  will-change: transform;
}
a.card:hover { box-shadow: 9px 9px 0 var(--red); color: var(--ink); }
.card .tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  padding: 0.25rem 0.7rem;
  align-self: flex-start;
  background: var(--hl);
  transform: rotate(-2deg);
}
.card .tag.live { background: #b8c47d; }
.card .tag.soon { background: var(--paper); color: var(--ink-soft); border-style: dashed; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card .more {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-top: auto;
  transition: letter-spacing 0.2s;
}
a.card:hover .more { letter-spacing: 0.16em; }
.card .ph { margin: -0.2rem 0 0.4rem; min-height: 150px; }

/* ---------- pull quote: torn strip ---------- */
.pull {
  background: var(--kraft);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 1.7rem 2rem;
  margin: 2.4rem 0;
  font-family: var(--disp);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--ink);
  transform: rotate(-0.8deg);
  position: relative;
}
.pull::after {
  content: "✦";
  position: absolute;
  top: -0.85em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  color: var(--red);
  font-size: 1rem;
  font-style: normal;
  padding: 0 0.6rem;
}

/* ---------- case study ---------- */
.case-header { padding: 4rem 0 2rem; }
.case-header .stamp { margin-bottom: 1.4rem; }
.case-meta {
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 1.3rem 0 0;
  border-top: 2px solid var(--ink);
}
.case-meta div b { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 0.25rem; font-weight: 500; }
.case-meta div span { font-size: 0.98rem; font-weight: 500; }

.case-body h2 { margin-top: 3.2rem; position: relative; }
.case-body h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.55rem;
  background:
    repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 12px);
}
.case-body ul { padding-left: 1.2rem; margin: 1rem 0; }
.case-body li { margin-bottom: 0.65rem; }
.case-body li::marker { content: "✗ "; color: var(--red); }
.case-body li::marker { content: "→ "; color: var(--red); font-family: var(--mono); }

.fact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.2rem; margin: 2.2rem 0; }
.fact {
  background: var(--paper-hi);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 1.1rem 1.2rem;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.fact:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--pen); }
.fact b { font-family: var(--disp); font-size: 1.9rem; display: block; color: var(--red-deep); }
.fact span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.6; display: block; margin-top: 0.4rem; }

/* ---------- experience timeline ---------- */
.xp { border-left: 2px solid var(--ink); margin: 2.5rem 0 0 0.4rem; padding-left: 2.2rem; }
.xp-item { position: relative; padding-bottom: 2.8rem; }
.xp-item::before {
  content: "";
  position: absolute;
  left: calc(-2.2rem - 9px);
  top: 0.45em;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border: 3px solid var(--red);
  transform: rotate(45deg);
  transition: transform 0.25s, background 0.25s;
}
.xp-item:hover::before { transform: rotate(135deg); background: var(--hl); }
.xp-item .when { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pen); }
.xp-item h3 { margin-top: 0.35rem; }
.xp-item .where { font-family: var(--hand); font-size: 1.35rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.xp-item ul { padding-left: 1.2rem; }
.xp-item li { margin-bottom: 0.45rem; color: var(--ink-soft); font-size: 0.98rem; }
.xp-item li::marker { content: "→ "; color: var(--red); font-family: var(--mono); }

.skill-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.skill-cloud span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: var(--paper-hi);
  border: 1.5px solid var(--ink);
  padding: 0.35rem 0.85rem;
  color: var(--ink-soft);
  transition: background 0.15s, transform 0.15s, color 0.15s;
}
.skill-cloud span:hover { background: var(--hl); color: var(--ink); transform: rotate(-2deg) scale(1.05); }

/* ---------- blog ---------- */
.post-list { margin-top: 2.5rem; display: flex; flex-direction: column; }
.post {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.8rem;
  padding: 1.7rem 0.5rem;
  border-top: 2px dashed rgba(23, 20, 14, 0.3);
  transition: background 0.2s;
}
.post:hover { background: var(--paper-hi); }
.post .date {
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--red);
  transform: rotate(-3deg);
  padding-top: 0.3rem;
}
.post h3 a { text-decoration: none; color: var(--ink); background: none; padding: 0; }
.post h3 a:hover { color: var(--red); }
.post p { color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.3rem; }

/* ---------- contact ---------- */
.contact-card {
  background:
    linear-gradient(rgba(0, 0, 0, 0.14), transparent 40%),
    var(--leather);
  color: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--red);
  padding: 3rem;
  margin-top: 2.5rem;
  transform: rotate(-0.6deg);
  position: relative;
}
/* stitched border inside the leather cover */
.contact-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px dashed var(--stitch);
  opacity: 0.55;
  pointer-events: none;
}
.contact-card h2 { color: var(--paper-hi); }
.contact-card p { color: var(--stitch); }
.contact-card .kicker { color: var(--hl); }
.contact-card .kicker::before { background: var(--hl); }
.contact-card a.big {
  font-family: var(--disp);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--paper-hi);
  text-decoration: none;
  border-bottom: 3px solid var(--red);
  transition: color 0.2s, border-color 0.2s;
}
.contact-card a.big:hover { color: var(--hl); border-color: var(--hl); }

/* ---------- footer ---------- */
footer.site {
  border-top: 2px solid var(--ink);
  background:
    linear-gradient(rgba(0, 0, 0, 0.16), transparent 45%),
    var(--leather);
  padding: 2.2rem 0 2.6rem;
  position: relative;
  z-index: 2;
}
/* stitching along the back-cover edge */
footer.site::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 4px;
  border-top: 1.5px dashed var(--stitch);
  opacity: 0.5;
  pointer-events: none;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: baseline; }
footer.site p, footer.site a { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: #9c8b71; }
footer.site a { color: var(--stitch); }
footer.site a:hover { color: var(--hl); }
.knight { display: inline-block; cursor: default; transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.4, 1); }
.knight:hover { transform: translateY(-7px) rotate(-12deg); }

/* ---------- scroll reveal (JS adds .rv, then .in) ---------- */
.rv { opacity: 0; transform: translateY(22px) rotate(0.3deg); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }

/* page-load rise for hero */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.24s; }
.rise-4 { animation-delay: 0.36s; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  body::before { display: none; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-grid .ph-portrait { max-width: 320px; }
  .post { grid-template-columns: 1fr; gap: 0.3rem; }
  .contact-card { padding: 2rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .rise-2, .rise-3, .rise-4, .stamp.thunk { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .circled svg path { animation: none; stroke-dashoffset: 0; }
  .ticker-track { animation: none; }
  .rotator { transition: none; }
}
