:root{
  --paper: #F6F3EC;
  --paper-warm: #EFE8D8;
  --paper-shadow: #E4DCC7;
  --ink: #24231E;
  --ink-soft: #5C5847;
  --ink-faint: #8A8571;
  --red: #A13D2B;
  --chalk: #35576B;
  --gold: #B8964F;
  --line: #D9D1BB;
  --line-soft: #E6DFCB;
  --serif: 'Fraunces', Georgia, serif;
  --body: 'Inter', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --hand: 'Caveat', cursive;
  --max: 940px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html{ scroll-behavior: smooth; }

body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important; scroll-behavior:auto !important;}
}

/* PAPER TEXTURE — subtle fiber grain, no external image */
.paper-texture{
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.012) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.012) 0%, transparent 40%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.008) 0px, transparent 1px, transparent 3px);
}

/* READING PROGRESS — a thread stitched down the spine */
.progress-thread{
  position: fixed; top:0; left: 55px; width: 2px; height: 100%;
  z-index: 5; pointer-events: none;
}
.progress-thread-fill{
  width: 100%; height: 0%;
  background: linear-gradient(var(--red), var(--gold));
  transition: height 0.1s linear;
}
@media (max-width: 720px){ .progress-thread{ left: 23px; } }

.margin-rule{
  position: fixed;
  top:0; bottom:0; left: 56px;
  width: 1px;
  background: var(--line);
  z-index: 0;
}
@media (max-width: 720px){ .margin-rule{ left: 24px; } }

a{ color: var(--red); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out); }
a:hover{ border-bottom-color: var(--red); }
a:focus-visible, button:focus-visible{ outline: 2px solid var(--chalk); outline-offset: 3px; border-radius: 2px; }

/* HERO */
.hero{
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 32px 64px 88px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px){
  .hero{ grid-template-columns: 1fr; padding: 72px 24px 48px 56px; }
}

.hero-inner{ animation: rise 0.8s var(--ease-out) both; }
.hero-photo-wrap{ animation: rise 0.8s var(--ease-out) 0.15s both; }

@keyframes rise{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}

.eyebrow{
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
  position: relative;
  padding-left: 18px;
}
.eyebrow::before{
  content:"";
  position:absolute; left:0; top:50%;
  width:10px; height:1px;
  background: var(--red);
  transform: translateY(-50%);
}

.hero h1{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}
/* signature move: red-pen underline draws itself in under the name */
.hero h1::after{
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: -6px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q 20 2, 40 6 T 80 5 T 120 6 T 160 4 T 198 6' stroke='%23A13D2B' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: pen-underline 0.7s var(--ease-out) 0.7s forwards;
}
@keyframes pen-underline{
  from{ opacity: 0; transform: scaleX(0); }
  to{ opacity: 1; transform: scaleX(1); }
}

.tagline{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin-top: 18px;
}

.bio{
  max-width: 52ch;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.socials{
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.socials a{ color: var(--ink); border-bottom: 1px solid var(--line); }
.socials a:hover{ color: var(--red); border-bottom-color: var(--red); }

.hero-photo-wrap{
  width: 152px; height: 152px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  transform: rotate(-1.5deg);
  position: relative;
  box-shadow: 0 8px 24px -8px rgba(36,35,30,0.25);
  transition: transform 0.4s var(--ease-out);
}
.hero-photo-wrap:hover{ transform: rotate(0deg) scale(1.02); }
.hero-photo-wrap img{ width:100%; height:100%; object-fit: cover; display:block; }
.photo-fallback-mark{
  display:none;
  width:100%; height:100%;
  align-items:center; justify-content:center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--ink-faint);
  background: var(--paper-warm);
}
.hero-photo-wrap.photo-fallback .photo-fallback-mark{ display:flex; }
.photo-tape{
  position: absolute; top: -10px; left: 50%;
  width: 60px; height: 20px;
  transform: translateX(-50%) rotate(-2deg);
  fill: rgba(201, 169, 97, 0.35);
  filter: blur(0.2px);
}

/* IDENTITY NAV — Educator / Builder / Writer, jump-to-section */
.nav-scribble{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 10px 88px;
  font-family: var(--hand);
  font-size: 1.05rem;
  color: var(--red);
  transform: rotate(-2deg);
  position: relative;
  z-index: 1;
  opacity: 0.85;
}
@media (max-width: 720px){ .nav-scribble{ padding: 0 24px 8px 56px; } }

.identity-nav{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 40px 88px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
  animation: rise 0.8s var(--ease-out) 0.3s both;
}
@media (max-width: 720px){
  .identity-nav{ padding: 0 24px 32px 56px; grid-template-columns: 1fr; }
}

.identity-tab{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.identity-tab:hover, .identity-tab.is-active{
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -16px rgba(36,35,30,0.25);
}
.identity-tab{ border-bottom: 1px solid var(--line); } /* override global link underline */

.identity-tab-mark{
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.identity-tab-text{ display: flex; flex-direction: column; gap: 2px; }
.identity-tab-label{
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
}
.identity-tab-sub{
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* per-tab accent, echoing each section's own color language */
.identity-tab[data-target="teach"]:hover, .identity-tab[data-target="teach"].is-active{
  border-color: var(--red);
}
.identity-tab[data-target="teach"]:hover .identity-tab-mark,
.identity-tab[data-target="teach"].is-active .identity-tab-mark{ color: var(--red); }

.identity-tab[data-target="build"]:hover, .identity-tab[data-target="build"].is-active{
  border-color: var(--chalk);
}
.identity-tab[data-target="build"]:hover .identity-tab-mark,
.identity-tab[data-target="build"].is-active .identity-tab-mark{ color: var(--chalk); }

.identity-tab[data-target="writing"]:hover, .identity-tab[data-target="writing"].is-active{
  border-color: var(--gold);
}
.identity-tab[data-target="writing"]:hover .identity-tab-mark,
.identity-tab[data-target="writing"].is-active .identity-tab-mark{ color: var(--gold); }

/* LANES */
main{ max-width: var(--max); margin: 0 auto; padding: 0 32px 0 88px; position: relative; z-index: 1; }
@media (max-width: 720px){ main{ padding: 0 24px 0 56px; } }

.lane{ padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 28px; }
.lane:first-of-type{ border-top: none; }

/* scroll reveal */
[data-reveal]{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

.lane-head{ position: relative; margin-bottom: 36px; }

.margin-note{
  position: absolute;
  left: -88px;
  top: 2px;
  width: 76px;
  font-family: var(--hand);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--red);
  transform: rotate(-4deg);
  line-height: 1.15;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out) 0.3s, transform 0.6s var(--ease-out) 0.3s;
}
.margin-note::before{
  content: "";
  position: absolute;
  left: -14px; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.5;
}
[data-reveal].is-visible .margin-note{
  opacity: 1;
  transform: rotate(-4deg) translateY(0);
}
@media (max-width: 900px){
  .margin-note{
    position: static;
    display: inline-block;
    width: auto;
    max-width: none;
    margin: 0 0 8px;
    padding-left: 16px;
    transform: rotate(-2.5deg);
  }
  .margin-note::before{
    left: 0; top: 50%;
    transform: translateY(-50%);
  }
  [data-reveal].is-visible .margin-note{
    transform: rotate(-2.5deg);
  }
}

.lane h2{
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.01em;
}
.lane-build h2{ color: var(--chalk); }

.lane-note{
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: 0.98rem;
}

/* SUBJECT PILLS */
.subjects{
  display:flex; flex-wrap: wrap; gap: 8px;
  margin: 28px 0 40px;
}
.subjects span{
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-soft);
  background: var(--paper-warm);
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.subjects span:hover{
  transform: translateY(-2px) rotate(-1deg);
  border-color: var(--red);
  color: var(--red);
}

/* CARD GRID (teaching content, writing) */
.card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -16px rgba(36,35,30,0.18);
  border-color: var(--ink-faint);
}
.card::before{
  content: attr(data-type);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
}
.card h3{
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 8px;
  margin-bottom: 8px;
}
.card p{ color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 12px; }
.card a.card-link{ font-family: var(--mono); font-size: 0.8rem; }
.card a.card-link::after{ content: " →"; display: inline-block; transition: transform 0.2s var(--ease-out); }
.card a.card-link:hover::after{ transform: translateX(3px); }

/* ADMIN LIST */
.admin-block{ margin-top: 44px; }
.admin-block h3{
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.admin-block ul{ list-style:none; }
.admin-block li{
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: padding-left 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.admin-block li:first-child{ border-top: none; }
.admin-block li:hover{ padding-left: 8px; color: var(--ink); }

/* PROJECTS — terminal-card treatment */
.project-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.project-card{
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #33322c;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  position: relative;
}
.project-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -18px rgba(36,35,30,0.4);
}
.project-card.is-featured{
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(184,150,79,0.3);
}
.project-card.is-featured::after{
  content: "currently teaching with this";
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--hand);
  font-size: 0.95rem;
  color: var(--gold);
  transform: rotate(3deg);
  z-index: 2;
}
.project-card .term-bar{
  display:flex; gap:6px;
  padding: 12px 16px;
  background: #26251f;
}
.term-bar span{ width:9px; height:9px; border-radius:50%; background:#55534a; }
.project-card .term-body{ padding: 20px; }
.project-card img{
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  display:block; border-bottom: 1px solid #33322c;
  filter: saturate(0.9);
  transition: filter 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.project-card:hover img{ filter: saturate(1.05); transform: scale(1.03); }
.project-card h3{
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.project-card h3::before{ content:"> "; color: var(--red); }
.project-card p{ font-size: 0.9rem; color: #C8C4B6; margin-bottom: 14px; }
.tech-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom: 14px; }
.tech-tags span{
  font-family: var(--mono); font-size: 0.68rem;
  padding: 3px 8px; border: 1px solid #45443b; border-radius: 3px; color: #A9A597;
}
.project-card a.card-link{ color: var(--gold); font-family: var(--mono); font-size: 0.8rem; }
.project-card a.card-link:hover{ border-bottom-color: var(--gold); }

/* ---------- VIDEO CARDS ---------- */
.video-card-label{
  display:block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--chalk);
  margin-bottom: 10px;
}

.video-showcase, .video-showcase-secondary{ margin-top: 40px; }
.video-showcase .video-card, .video-showcase-secondary .video-card{ max-width: 620px; }

.video-card-frame{
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px -14px rgba(36,35,30,0.3);
}
.video-card-frame iframe{ width:100%; height:100%; display:block; border:0; }

.video-thumb{
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
  transition: background 0.3s var(--ease-out);
}
.video-thumb:hover::after{ background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.45)); }

.play-badge{
  position: relative; z-index: 1;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(246,243,236,0.94);
  color: var(--red);
  display:flex; align-items:center; justify-content:center;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.video-thumb:hover .play-badge{ transform: scale(1.08); background: #fff; }
.play-badge svg{ margin-left: 3px; }

.video-card h3{
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin-top: 16px;
  margin-bottom: 6px;
}
.video-card p{ color: var(--ink-soft); font-size: 0.92rem; max-width: 60ch; }

/* ---------- BLOG EMBED ---------- */
.blog-showcase{ margin-top: 40px; max-width: 620px; }
.blog-card-frame{
  position: relative;
  height: 460px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px -14px rgba(36,35,30,0.2);
}
.blog-embed-iframe{ width:100%; height: 100%; border:0; display:block; background:#fff; }

.blog-card h3{
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin-top: 16px;
  margin-bottom: 6px;
}
.blog-card p{ color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 10px; }
.blog-card a.card-link{ font-family: var(--mono); font-size: 0.8rem; }

/* Office tutorials row — smaller, denser */
.office-row{ margin-top: 44px; }
.office-row-note{
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--ink-soft);
  transform: rotate(-0.6deg);
  margin-bottom: 18px;
  max-width: 46ch;
}
.office-row-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.video-card--small .video-card-frame{ border-radius: 4px; }
.video-card--small .play-badge{ width: 42px; height: 42px; }
.video-card--small .play-badge svg{ width:16px; height:16px; }
.video-card--small h3{ font-size: 0.95rem; margin-top: 10px; }
.video-card--small p{ font-size: 0.82rem; }

/* ---------- SHORTS ROW ---------- */
.shorts-row{ margin-top: 44px; }
.shorts-row-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  max-width: 620px;
}
.short-card-frame{
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px -12px rgba(36,35,30,0.3);
}
.short-card-frame iframe{ width:100%; height:100%; display:block; border:0; }
.short-thumb .play-badge{ width: 44px; height: 44px; }
.short-thumb .play-badge svg{ width:18px; height:18px; }
.short-card h4{
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.82rem;
  margin-top: 8px;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* Confidence video — wide banner treatment, framed as mentorship not tutorial */
.confidence-strip{ margin-top: 48px; }
.video-card--wide{ max-width: 100%; }
.video-card--wide .video-card-frame{ max-width: 720px; }

/* ---------- PROJECT SCREENSHOT + LIVE PREVIEW ---------- */
.project-shot{
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid #33322c;
  background: #1a1a16;
}
.project-shot.shot-fallback{
  display:flex; align-items:center; justify-content:center;
  background:
    repeating-linear-gradient(135deg, #232219 0px, #232219 12px, #1c1b15 12px, #1c1b15 24px);
}
.project-shot.shot-fallback::after{
  content: "◆";
  font-size: 1.6rem;
  color: var(--gold);
  opacity: 0.5;
}
.project-shot img{
  width:100%; height:100%; object-fit: cover;
  display:block;
  filter: saturate(0.9);
  transition: filter 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.project-card:hover .project-shot img{ filter: saturate(1.05); transform: scale(1.06); }

.live-preview-btn{
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 7px 12px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  background: rgba(36,35,30,0.85);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), background 0.2s var(--ease-out);
}
.project-card:hover .live-preview-btn{ opacity: 1; transform: translateY(0); }
.live-preview-btn:hover{ background: var(--gold); color: var(--ink); }

.project-live-iframe{
  width:100%; height:100%; border:0; display:block;
  background:#fff;
}

/* ---------- WRITING SHOWCASE ---------- */
.writing-showcase{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 720px){ .writing-showcase{ grid-template-columns: 1fr; } }

.substack-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.substack-card:hover{ transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(36,35,30,0.18); }
.substack-card h3{ font-family: var(--serif); font-weight:600; font-size: 1.2rem; margin-bottom: 10px; }
.substack-card p{ color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 18px; }

.showcase-card-body{
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.showcase-shot{
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.showcase-shot img{
  width:100%; height:100%; object-fit: cover; display:block;
  transition: transform 0.5s var(--ease-out);
}
.substack-card:hover .showcase-shot img,
.instagram-card:hover .showcase-shot img{ transform: scale(1.05); }

.showcase-shot.shot-fallback-light{
  display:flex; align-items:center; justify-content:center;
  background:
    repeating-linear-gradient(135deg, var(--paper-warm) 0px, var(--paper-warm) 12px, var(--paper-shadow) 12px, var(--paper-shadow) 24px);
}
.showcase-shot.shot-fallback-light::after{
  content: "◆";
  font-size: 1.3rem;
  color: var(--gold);
  opacity: 0.6;
}

.substack-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.substack-cta:hover{
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.substack-cta-arrow{ transition: transform 0.25s var(--ease-out); }
.substack-cta:hover .substack-cta-arrow{ transform: translateX(3px); }

.instagram-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.instagram-card:hover{ transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(36,35,30,0.18); }
.instagram-card .showcase-card-body{ justify-content: center; }
.instagram-card h3{ font-family: var(--mono); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }

/* SKILLS */
.skills-block{
  margin-top: 44px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 24px;
}
.skills-block .skill-group h4{
  font-family: var(--mono); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--chalk); margin-bottom: 10px;
}
.skills-block .skill-group p{ color: var(--ink-soft); font-size: 0.9rem; }

/* CERTIFICATES */
.cert-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
}
.cert-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow:hidden;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.cert-card:hover{ transform: rotate(-1deg) translateY(-3px); box-shadow: 0 14px 28px -14px rgba(36,35,30,0.2); }
.cert-card img{ width:100%; aspect-ratio: 4/3; object-fit: cover; display:block; background: var(--paper-warm); }
.cert-card.cert-fallback::before{
  content: "🎓";
  display:flex; align-items:center; justify-content:center;
  width:100%; aspect-ratio: 4/3;
  font-size: 2rem;
  background: var(--paper-warm);
  filter: grayscale(1) opacity(0.5);
}
.cert-card .cert-info{ padding: 14px 16px; }
.cert-card h4{ font-family: var(--serif); font-size: 1rem; font-weight:600; }
.cert-card p{ font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); margin-top:4px; }

/* FOOTER */
footer{
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 32px 80px 88px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px){ footer{ padding: 40px 24px 64px 56px; } }
.footer-signature{
  font-family: var(--hand);
  font-size: 1.1rem;
  color: var(--red);
  margin-left: 8px;
  display: inline-block;
  transform: rotate(-3deg);
  opacity: 0.85;
}
