/* ============================================================
   Russell Transue - personal site
   Aesthetic: bright arcade deco
   Bright saturated colors, deep-navy ink outlines, hard offset
   shadows, checkerboard + gold-ring motifs, diagonal everything.
   Fonts: Poiret One (display) / Chakra Petch (body)
          / Syncopate (labels)
   No em dashes anywhere. Bold and unapologetic.
   ============================================================ */

:root {
  /* paper + ink */
  --paper:    #fff4dd;   /* bright cream */
  --paper-2:  #ffe7bd;   /* deeper cream block */
  --ink:      #14163a;   /* deep navy, used for text + outlines */
  --ink-soft: #444a78;
  --white:    #ffffff;

  /* the brave palette */
  --blue:   #1f6bff;   /* electric blue (primary) */
  --pink:   #ff2e8b;   /* hot magenta */
  --yellow: #ffce1f;   /* warm gold */
  --cyan:   #12c6e6;   /* */
  --red:    #ff3b27;   /* */
  --green:  #1bc56b;   /* bright green */

  --accent: var(--blue);          /* per-section override below */
  --accent-ink: var(--white);     /* readable text color on --accent */

  /* type */
  --display: "Poiret One", "Trebuchet MS", sans-serif;
  --body:    "Chakra Petch", system-ui, sans-serif;
  --label:   "Syncopate", "Arial", sans-serif;

  /* layout */
  --container: 1180px;
  --pad: clamp(1.1rem, 5vw, 4rem);
  --border: 2.5px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 9px 9px 0 var(--ink);
  --ease: cubic-bezier(0.34, 1.4, 0.5, 1);   /* slight overshoot = bouncy */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* faint diagonal hatch texture over the whole page */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(20,22,58,0.035) 0 2px,
    transparent 2px 9px
  );
}

::selection { background: var(--pink); color: var(--white); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* content sits above the texture layer */
.nav, main, .footer, .skip-link { position: relative; z-index: 2; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 10000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font: 700 0.9rem/1 var(--body);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- micro-labels ---------- */
.eyebrow, .section__num, .card__index, .skillgroup__label,
.education__label, .footer__year, .job__range {
  font-family: var(--label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem var(--pad);
  background: var(--paper);
  border-bottom: var(--border) solid var(--ink);
  transition: box-shadow 0.3s var(--ease-out);
}
.nav.scrolled { box-shadow: 0 6px 0 -2px rgba(20,22,58,0.12); }
.nav__brand { display: flex; align-items: center; gap: 0.65rem; margin-right: auto; }
.nav__monogram {
  display: grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  background: var(--blue);
  color: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: 7px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease-out);
}
.nav__brand:hover .nav__monogram { transform: rotate(-8deg) scale(1.06); background: var(--pink); }
.nav__name { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 1.15rem; }
.nav__links a {
  position: relative;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.2rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 4px;
  background: var(--accent, var(--blue));
  transform: scaleX(0) skewX(-12deg);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__links a:nth-child(1) { --accent: var(--blue); }
.nav__links a:nth-child(2) { --accent: var(--pink); }
.nav__links a:nth-child(3) { --accent: var(--cyan); }
.nav__links a:nth-child(4) { --accent: var(--green); }
.nav__links a:nth-child(5) { --accent: var(--red); }
.nav__links a:nth-child(6) { --accent: var(--yellow); }
.nav__links a:nth-child(7) { --accent: var(--blue); }
.nav__links a:hover::after { transform: scaleX(1) skewX(-12deg); }

/* mobile: links collapse into a slide-down panel under the sticky nav */
.nav__menu { display: none; }
@media (max-width: 760px) {
  .nav { gap: 0.8rem; }
  .nav__menu {
    display: inline-block;
    font-family: var(--label);
    font-weight: 700;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    background: var(--yellow);
    border: 2px solid var(--ink);
    padding: 0.5rem 0.85rem 0.45rem;
    box-shadow: 3px 3px 0 var(--ink);
    transform: skewX(-8deg);
    cursor: pointer;
    transition: transform 0.16s var(--ease), background 0.16s var(--ease-out);
  }
  .nav--open .nav__menu { background: var(--pink); color: var(--white); }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: var(--border) solid var(--ink);
    box-shadow: 0 8px 0 rgba(20, 22, 58, 0.15);
    padding: 0.3rem 0 0.5rem;
  }
  .nav--open .nav__links { display: flex; }
  .nav__links a {
    padding: 0.85rem var(--pad);
    border-bottom: 2px solid rgba(20, 22, 58, 0.08);
  }
  .nav__links a:last-child { border-bottom: none; }
  /* the desktop underline becomes a left accent bar in the panel */
  .nav__links a::after {
    left: 0; top: 0; bottom: 0;
    width: 6px; height: auto;
    transform: none;
  }
}
@media (max-width: 480px) {
  /* the monogram carries the brand; the name does not fit beside the buttons */
  .nav__name { display: none; }
}

/* ============================================================
   BUTTONS - chunky arcade
   ============================================================ */
.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.3rem;
  border: var(--border) solid var(--ink);
  border-radius: 9px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn .ico { width: 1.1em; height: 1.1em; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:hover .ico { transform: translate(2px, -2px); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.btn--primary { --btn-bg: var(--blue);   --btn-fg: var(--white); }
.btn--pink    { --btn-bg: var(--pink);   --btn-fg: var(--white); }
.btn--ghost   { --btn-bg: var(--white);  --btn-fg: var(--ink); }
.btn--small   { padding: 0.5rem 0.9rem; font-size: 0.82rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--small:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn--block   { width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 6.5rem) var(--pad) clamp(3rem, 8vh, 6rem);
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border) solid var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1rem 0.5rem;
  box-shadow: 4px 4px 0 var(--ink);
  transform: skewX(-7deg);
  margin-bottom: clamp(1.5rem, 4vh, 2.4rem);
}
.eyebrow > * { transform: skewX(7deg); }
.eyebrow__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--red);
}
@media (prefers-reduced-motion: no-preference) {
  .eyebrow__dot { animation: ringpulse 1.6s steps(1) infinite; }
}
@keyframes ringpulse { 0%,100% { background: var(--red); } 50% { background: var(--yellow); } }

.hero__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.8rem, 17vw, 13rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: clamp(1.3rem, 3vh, 2rem);
  text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line--accent {
  color: var(--blue);
  text-shadow:
    4px 4px 0 var(--pink),
    0 0 26px rgba(255,46,139,0.55);
  transform: skewX(-6deg);
  transform-origin: left;
}
.hero__role {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.2vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: clamp(1.4rem, 4vh, 2.2rem);
}
.hero__role .sep { color: var(--pink); margin: 0 0.25em; }
.hero__lead {
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  line-height: 1.4;
  max-width: 32ch;
  margin-bottom: clamp(2rem, 5vh, 2.8rem);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* floating decorative rings / stripes */
.deco { position: absolute; z-index: 0; pointer-events: none; }
.deco-ring {
  border-radius: 50%;
  border: 9px solid var(--yellow);
  box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 3px var(--ink);
}
.hero .deco-ring--1 { width: 120px; height: 120px; top: 12%; right: 8%; }
.hero .deco-ring--2 { width: 64px; height: 64px; bottom: 14%; right: 22%; border-color: var(--cyan); }
.hero .deco-stripes {
  width: 180px; height: 180px; top: 4%; right: 26%;
  background: repeating-linear-gradient(-45deg, var(--pink) 0 10px, transparent 10px 22px);
  opacity: 0.5;
  border-radius: 12px;
}
@media (max-width: 900px) { .hero .deco { display: none; } }

/* ============================================================
   SECTION SHELL + diagonal dividers + per-section accent
   ============================================================ */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6.5rem) var(--pad);
  position: relative;
}
/* triangle-strip divider above each section */
.section::before {
  content: "";
  position: absolute;
  left: var(--pad); right: var(--pad);
  top: 0;
  height: 16px;
  background: conic-gradient(from 135deg at 50% 0,
      var(--accent, var(--ink)) 0 90deg, transparent 90deg)
    0 0 / 32px 16px repeat-x;
  opacity: 0.9;
}

#about        { --accent: var(--pink);   --accent-ink: #fff;       --accent-hard: var(--yellow); --accent-glow: rgba(255,46,139,0.45); }
#experience   { --accent: var(--cyan);   --accent-ink: var(--ink); --accent-hard: var(--pink);   --accent-glow: rgba(18,198,230,0.45); }
#projects     { --accent: var(--yellow); --accent-ink: var(--ink); --accent-hard: var(--pink);   --accent-glow: rgba(255,206,31,0.5); }
#skills       { --accent: var(--green);  --accent-ink: #fff;       --accent-hard: var(--cyan);   --accent-glow: rgba(27,197,107,0.45); }
#art          { --accent: var(--red);    --accent-ink: #fff;       --accent-hard: var(--yellow); --accent-glow: rgba(255,59,39,0.4); }
#interests    { --accent: var(--cyan);   --accent-ink: var(--ink); --accent-hard: var(--green);  --accent-glow: rgba(18,198,230,0.45); }
#contact      { --accent: var(--blue);   --accent-ink: #fff;       --accent-hard: var(--cyan);   --accent-glow: rgba(31,107,255,0.55); }
#ux           { --accent: var(--pink);   --accent-ink: #fff;       --accent-hard: var(--cyan);   --accent-glow: rgba(255,46,139,0.45); }
#gardening    { --accent: var(--green);  --accent-ink: #fff;       --accent-hard: var(--yellow); --accent-glow: rgba(27,197,107,0.45); }
#smash        { --accent: var(--blue);   --accent-ink: #fff;       --accent-hard: var(--red);    --accent-glow: rgba(31,107,255,0.5); }
#realitydraft { --accent: var(--cyan);   --accent-ink: var(--ink); --accent-hard: var(--pink);   --accent-glow: rgba(18,198,230,0.45); }
#maps         { --accent: var(--green);  --accent-ink: #fff;       --accent-hard: var(--cyan);   --accent-glow: rgba(27,197,107,0.45); }
#tracker      { --accent: var(--pink);   --accent-ink: #fff;       --accent-hard: var(--cyan);   --accent-glow: rgba(255,46,139,0.45); }

/* clickable HOME pill in a gallery-page section head */
.section__num--link { text-decoration: none; transition: transform 0.14s var(--ease), background 0.14s var(--ease-out); }
.section__num--link:hover { transform: translate(-2px, -2px); background: var(--pink); color: #fff; }

/* gallery-page lead + subheads + empty states */
.page__lead { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 44ch; margin-bottom: 0.8rem; }
.page__note { font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: clamp(1.8rem, 4vh, 2.6rem); }
.page__subhead { font-family: var(--display); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.6rem); text-transform: uppercase; letter-spacing: -0.01em; margin: clamp(2rem, 5vh, 3rem) 0 1.2rem; }
.page__subhead::after { content: ""; display: block; width: 2.5ch; height: 6px; margin-top: 0.4rem; background: var(--accent); transform: skewX(-20deg); }
.gallery-empty {
  column-span: all;
  break-inside: avoid;
  border: var(--border) dashed var(--ink);
  border-radius: 12px;
  padding: clamp(1.6rem, 5vw, 3rem);
  background: var(--white);
  font-weight: 600;
  color: var(--ink-soft);
}
.gallery-empty code { font-family: var(--mono, monospace); font-size: 0.9em; background: var(--paper-2); padding: 0.1rem 0.35rem; border-radius: 5px; }
.inline-link { color: var(--ink); border-bottom: 3px solid var(--accent); font-weight: 700; }
.inline-link:hover { color: var(--pink); }

/* ============================================================
   REUSABLE PROGRESS TIMELINE (RealityDraft, Maps, gardening years)
   ============================================================ */
.tl { display: grid; gap: clamp(2.2rem, 5vh, 3.4rem); }
.tl__item { display: grid; grid-template-columns: 132px 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); }
.tl__rail { position: relative; padding-left: 1.7rem; }
.tl__rail::before {
  content: ""; position: absolute; left: 0; top: 0.15rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--accent); box-shadow: 0 0 0 2px var(--ink);
}
.tl__rail::after {
  content: ""; position: absolute; left: 8px; top: 1.7rem;
  bottom: calc(-1 * clamp(2.2rem, 5vh, 3.4rem)); width: 3px; background: var(--ink); opacity: 0.2;
}
.tl__item:last-child .tl__rail::after { display: none; }
.tl__year {
  font-family: var(--label); font-weight: 700; text-transform: uppercase; font-size: 0.6rem; color: var(--ink);
  background: var(--accent); border: 2px solid var(--ink); border-radius: 6px;
  padding: 0.45rem 0.5rem 0.35rem; box-shadow: 2px 2px 0 var(--ink); display: inline-block;
}
.tl__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.65rem); letter-spacing: -0.01em; margin: 0.1rem 0 0.4rem; }
.tl__desc { color: var(--ink-soft); font-weight: 500; margin-bottom: 1rem; max-width: 62ch; }
.tl .gallery__item { max-width: 720px; margin: 0; }
@media (max-width: 680px) {
  .tl__item { grid-template-columns: 1fr; gap: 0.9rem; }
  .tl__rail::after { display: none; }
}

.section__head { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(2rem, 5vh, 3.2rem); }
.section__num {
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--accent);
  border: var(--border) solid var(--ink);
  border-radius: 7px;
  padding: 0.55rem 0.6rem 0.45rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.section__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}
.section__title::after {
  content: "";
  display: block;
  width: 3ch; height: 7px;
  margin-top: 0.5rem;
  background: var(--accent);
  transform: skewX(-20deg);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__body { display: grid; gap: clamp(1.4rem, 4vw, 2.4rem); max-width: 64rem; }
.about__lead {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.about__lead .hl { color: var(--pink); }
.about__text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; font-weight: 500; }
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.about__stats li {
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.about__stats li:nth-child(1) { background: var(--blue); }
.about__stats li:nth-child(2) { background: var(--pink); }
.about__stats li:nth-child(3) { background: var(--green); }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; color: var(--white); }
.stat__plus { font-size: 0.6em; vertical-align: super; }
.about__stats li:nth-child(3) .stat__num { color: var(--ink); }
.stat__label { font-family: var(--body); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--white); line-height: 1.3; }
.about__stats li:nth-child(3) .stat__label { color: var(--ink); }
@media (max-width: 640px) { .about__stats { grid-template-columns: 1fr; } }

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline { display: grid; gap: clamp(2rem, 5vh, 3.2rem); }
.job { display: grid; grid-template-columns: 250px 1fr; gap: clamp(1.3rem, 3.5vw, 3rem); position: relative; }
.job__meta { display: flex; flex-direction: column; gap: 0.45rem; position: relative; padding-left: 2rem; }
.job__meta::before { /* gold ring node */
  content: "";
  position: absolute;
  left: 0; top: 0.2rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 2px var(--ink);
}
.job__meta::after { /* timeline line */
  content: "";
  position: absolute;
  left: 8px; top: 1.8rem; bottom: -1.6rem;
  width: 3px;
  background: var(--ink);
  opacity: 0.25;
}
.job:last-child .job__meta::after { display: none; }
.job__range {
  font-size: 0.58rem;
  color: var(--ink);
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 5px;
  padding: 0.4rem 0.5rem 0.3rem;
  align-self: flex-start;
  box-shadow: 2px 2px 0 var(--ink);
}
.job__company { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.job__place { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); }

.job__roles { display: grid; gap: 1.6rem; }
.role__title { font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.role__dates { display: block; font-weight: 700; font-size: 0.78rem; color: var(--ink-soft); margin: 0.15rem 0 0.7rem; }
.role__points { display: grid; gap: 0.5rem; }
.role__points li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; font-weight: 500; }
.role__points li::before { /* mini gold ring bullet */
  content: "";
  position: absolute;
  left: 0; top: 0.46em;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 3px solid var(--accent);
}

.education {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.2rem;
  margin-top: clamp(2rem, 5vh, 3rem);
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}
.education__label { font-size: 0.64rem; color: var(--ink); background: var(--yellow); padding: 0.4rem 0.5rem 0.3rem; border-radius: 5px; }
.education__text { font-size: 1.05rem; font-weight: 500; }
.education__text strong { font-family: var(--display); font-weight: 800; }
@media (max-width: 780px) {
  .job { grid-template-columns: 1fr; gap: 1rem; }
  .job__meta::after { display: none; }
}

/* ============================================================
   PROJECTS - full-bleed diagonal blue band
   ============================================================ */
.projects { color: var(--white); }
.projects::after { /* full-bleed slanted band behind the section */
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 0; width: 100vw; height: 100%;
  background: var(--blue);
  clip-path: polygon(0 2.5vw, 100% 0, 100% calc(100% - 2.5vw), 0 100%);
  z-index: -1;
}
.projects .section__title, .projects .job__company { color: var(--white); }
.projects .section__num { color: var(--ink); background: var(--yellow); }
.projects .section__title::after { background: var(--yellow); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.1rem, 2.5vw, 1.7rem); }
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--white);
  color: var(--ink);
  border: var(--border) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.card::before { /* checkerboard top bar */
  content: "";
  position: absolute;
  left: 0; top: 0; width: 100%; height: 10px;
  background: repeating-conic-gradient(var(--ink) 0% 25%, transparent 0% 50%) 0 0 / 10px 10px;
}
.card:nth-child(1) { --c: var(--pink); }
.card:nth-child(2) { --c: var(--cyan); }
.card:nth-child(3) { --c: var(--yellow); }
.card:nth-child(4) { --c: var(--green); }
.card:nth-child(5) { --c: var(--red); }
.card:nth-child(6) { --c: var(--blue); }
.card:hover { transform: translate(-3px, -3px) rotate(-0.6deg); box-shadow: var(--shadow-lg); }
.card__index {
  font-size: 0.72rem;
  color: var(--ink);
  background: var(--c, var(--yellow));
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.45rem 0.5rem 0.35rem;
  align-self: flex-start;
  margin-bottom: 1rem;
  box-shadow: 2px 2px 0 var(--ink);
}
.card__arrow { position: absolute; top: clamp(1.4rem,3vw,2rem); right: clamp(1.4rem,3vw,2rem); width: 1.5rem; height: 1.5rem; stroke: var(--ink); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.22s var(--ease); }
.card--link:hover .card__arrow, .card--feature:hover .card__arrow { transform: translate(3px, -3px); }
.card__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 2.6vw, 1.8rem); letter-spacing: -0.02em; line-height: 1.02; max-width: 15ch; }
.card__org { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); margin: 0.55rem 0 0.9rem; }
.card__desc { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; margin-bottom: 1.3rem; font-weight: 500; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; }
.card__tags li {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.32rem 0.65rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--c, var(--yellow));
  color: var(--ink);
}
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================
   SKILLS
   ============================================================ */
.skills__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.6rem, 4vw, 2.6rem) clamp(2rem, 6vw, 4rem); }
.skillgroup { background: var(--white); border: var(--border) solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); padding: 1.3rem 1.4rem; }
.skillgroup:nth-child(1) { --c: var(--blue); }
.skillgroup:nth-child(2) { --c: var(--pink); }
.skillgroup:nth-child(3) { --c: var(--cyan); }
.skillgroup:nth-child(4) { --c: var(--red); }
.skillgroup__label {
  display: inline-block;
  font-size: 0.66rem;
  color: var(--white);
  background: var(--c, var(--green));
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.45rem 0.55rem 0.35rem;
  margin-bottom: 1.1rem;
  box-shadow: 2px 2px 0 var(--ink);
}
.skillgroup:nth-child(3) .skillgroup__label { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.42rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  transition: transform 0.16s var(--ease), background 0.16s var(--ease-out), color 0.16s;
  cursor: default;
}
.chips li:hover { transform: translate(-2px,-2px); background: var(--c, var(--green)); color: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.skillgroup:nth-child(3) .chips li:hover { color: var(--ink); }
@media (max-width: 640px) { .skills__grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT - full-bleed diagonal navy band
   ============================================================ */
.contact { color: var(--white); }
.contact::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 0; width: 100vw; height: 100%;
  background: var(--ink);
  clip-path: polygon(0 2.5vw, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}
.contact .section__title { color: var(--white); }
.contact .section__num { background: var(--yellow); color: var(--ink); }
.contact .section__title::after { background: var(--yellow); }
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 4rem); align-items: start; }
.contact__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem; }
.contact__pitch { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; }
.contact__pitch .hl { color: var(--yellow); }
.contact__note { font-size: 0.95rem; color: #c9cce8; font-weight: 500; }

.contact__form {
  display: grid; gap: 1rem;
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--display); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.field input, .field textarea {
  font: inherit; font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 9px;
  padding: 0.7rem 0.85rem;
  resize: vertical;
  transition: box-shadow 0.16s var(--ease), transform 0.16s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--blue); }
.hp { position: absolute; left: -9999px; }
.form__status { font-family: var(--display); font-weight: 700; font-size: 0.95rem; min-height: 1.2em; color: var(--ink); }
.form__status.is-ok { color: var(--green); }
.form__status.is-err { color: var(--red); }
@media (max-width: 780px) { .contact__grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.4rem var(--pad) 3.2rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem;
}
.footer__name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.footer__meta { font-weight: 600; font-size: 0.85rem; color: var(--ink-soft); margin-right: auto; }
.footer__year { font-size: 0.58rem; color: var(--ink-soft); }

/* ============================================================
   ART
   ============================================================ */
.art__feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.art__frame {
  margin: 0;
  border: var(--border) solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform 0.3s var(--ease);
}
.art__frame:hover { transform: rotate(0deg) scale(1.01); }
.art__frame img { display: block; width: 100%; height: auto; }
.art__cap { color: var(--paper); font-weight: 600; font-size: 0.85rem; padding: 0.7rem 0.95rem 0.8rem; }
.art__cap strong { font-family: var(--display); font-weight: 800; color: var(--white); }
.art__ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.teaser { display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem; max-width: 60rem; }
.teaser__text { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 42ch; }
.art__lead { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.9vw, 2.2rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1rem; }
.art__text { color: var(--ink-soft); font-weight: 500; margin-bottom: 1.4rem; }
.art__text strong { color: var(--red); font-weight: 700; }

@media (max-width: 900px) { .art__feature { grid-template-columns: 1fr; } }

/* ============================================================
   REUSABLE GALLERY (masonry) + LIGHTBOX
   Used by Art, and ready for Gardening / Smash / UX Design.
   ============================================================ */
.gallery { columns: 3 250px; column-gap: clamp(0.8rem, 2vw, 1.3rem); }
.gallery__item {
  display: block;
  position: relative;
  break-inside: avoid;
  margin: 0 0 clamp(0.8rem, 2vw, 1.3rem);
  border: var(--border) solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.gallery__item:hover { transform: translate(-3px, -3px) rotate(-0.6deg); box-shadow: var(--shadow-lg); }
.gallery__item img { display: block; width: 100%; height: auto; }
.gallery__cap { display: block; font-weight: 700; font-size: 0.8rem; padding: 0.55rem 0.7rem; border-top: var(--border) solid var(--ink); }
.gallery__item--video { cursor: pointer; }
.gallery__item--video::after {
  content: "";
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-style: solid; border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.6));
}
.gallery__item--video::before {
  content: "";
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--pink); border: var(--border) solid var(--ink); box-shadow: var(--shadow);
}

/* lightbox overlay */
.lb {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(20, 22, 58, 0.93);
  padding: clamp(1rem, 5vw, 3.5rem);
}
.lb.open { display: flex; }
.lb__stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; max-width: 1100px; width: 100%; }
.lb__media { max-width: 100%; max-height: 80vh; display: block; border: var(--border) solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); background: #000; object-fit: contain; }
.lb__frame { width: min(92vw, 1000px); aspect-ratio: 16 / 9; border: none; }
.lb__cap { color: var(--paper); font-weight: 600; font-size: 0.95rem; text-align: center; max-width: 60ch; }
.lb__btn {
  position: fixed; z-index: 1001;
  width: 3.1rem; height: 3.1rem;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink);
  border: var(--border) solid var(--ink); border-radius: 11px; box-shadow: var(--shadow);
  cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1;
  transition: transform 0.14s var(--ease), background 0.14s var(--ease-out);
}
.lb__btn:hover { background: var(--pink); color: #fff; transform: translate(-2px, -2px); }
.lb__btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.lb__close { top: 1.1rem; right: 1.1rem; }
.lb__prev { left: 1.1rem; top: 50%; margin-top: -1.55rem; }
.lb__next { right: 1.1rem; top: 50%; margin-top: -1.55rem; }
.lb__btn[hidden] { display: none; }
body.lb-open { overflow: hidden; }
@media (max-width: 560px) {
  .lb__prev { left: 0.5rem; } .lb__next { right: 0.5rem; }
  .lb__btn { width: 2.7rem; height: 2.7rem; }
}

/* ============================================================
   INTERESTS
   ============================================================ */
.interests__lead { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: clamp(1.5rem, 4vh, 2.2rem); }
.interests__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.interest {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.interest:nth-child(1) { --c: var(--green); }
.interest:nth-child(2) { --c: var(--pink); }
.interest:nth-child(3) { --c: var(--blue); }
.interest:nth-child(4) { --c: var(--yellow); }
.interest:nth-child(5) { --c: var(--cyan); }
.interest:nth-child(6) { --c: var(--red); }
.interest:hover { transform: translate(-3px, -3px) rotate(-0.6deg); box-shadow: var(--shadow-lg); }
.interest__name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.interest__name::before {
  content: "";
  display: inline-block;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--c, var(--green));
  border: 3px solid var(--ink);
  margin-right: 0.55rem;
  vertical-align: -1px;
}
.interest__desc { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.interest__link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.2rem;
  font-family: var(--display); font-weight: 800; font-size: 0.85rem;
  color: var(--ink);
  border-bottom: 3px solid var(--c, var(--blue));
  align-self: flex-start;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease-out);
}
.interest__link svg { width: 0.95em; height: 0.95em; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.interest__link:hover { gap: 0.55rem; color: var(--pink); }
.interests__note { margin-top: 1.4rem; font-family: var(--label); font-weight: 700; text-transform: uppercase; font-size: 0.66rem; color: var(--ink-soft); }
@media (max-width: 760px) { .interests__grid { grid-template-columns: 1fr; } }

/* ============================================================
   SCROLL REVEAL - diagonal fly-in
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translate(-26px, 30px) rotate(-1.5deg);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease);
    will-change: opacity, transform;
  }
  .reveal.in-view { opacity: 1; transform: none; }
  .hero .reveal.in-view { transition-delay: var(--d, 0ms); }
}

/* ============================================================
   TYPE OVERRIDES
   Controls, labels, and neon ink headings.
   ============================================================ */

/* Poiret One ships one weight; never synthesize bold on display type.
   Earlier rules still declare 700/800 on these selectors: this block must
   stay below them, and new sections must not set font-weight on display type. */
.hero__name, .hero__role, .section__title, .page__lead, .page__subhead,
.about__lead, .contact__pitch, .card__title, .job__company, .tl__title,
.art__lead, .teaser__text, .interests__lead, .interest__name, .role__title,
.nav__name, .footer__name, .stat__num, .art__cap strong, .education__text strong,
.form__status, .lb__btn, .nav__monogram, .interest__link {
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* labels and controls take the wide caps face */
.btn { font: 700 0.78rem/1 var(--label); text-transform: uppercase; letter-spacing: 0.04em; }
.btn--small { font-size: 0.7rem; }
.nav__links a { font-family: var(--label); font-size: 0.68rem; }
.field label { font-family: var(--label); font-weight: 700; font-size: 0.66rem; }

/* neon ink: hard offset + soft glow, headings only, never body text */
.section__title, .page__subhead {
  text-shadow:
    3px 3px 0 var(--accent-hard, var(--cyan)),
    0 0 18px var(--accent-glow, rgba(31,107,255,0.45));
}
.hero__name {
  text-shadow:
    4px 4px 0 var(--cyan),
    0 0 26px rgba(31,107,255,0.5);
}

/* ============================================================
   FACETS
   Faceted geometry: parallelogram controls, cut-corner cards,
   triangle dividers. Shadows for clipped shapes live on the
   container (clip-path eats box-shadow and same-element filters).
   Any rule that re-declares transform on these elements must
   include the skew.
   ============================================================ */

/* buttons: hard-shadowed parallelograms */
.btn {
  border-radius: 0;
  transform: skewX(-8deg);
}
.btn > * { transform: skewX(8deg); }
.btn > span { display: inline-block; }
.btn:hover  { transform: skewX(-8deg) translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: skewX(-8deg) translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

/* badges: same slant, text rides the skew */
.section__num, .card__index, .job__range, .tl__year,
.education__label, .skillgroup__label {
  border-radius: 0;
  transform: skewX(-8deg);
}

/* cut-corner cards: shadow lives on the container (clip-path would eat it) */
.cards, .about__stats, .interests__grid, .gallery, .skills__grid {
  filter: drop-shadow(6px 6px 0 var(--ink));
}
.card, .about__stats li, .interest, .gallery__item, .skillgroup {
  --cut: 18px;
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(
    0 0, calc(100% - var(--cut)) 0, 100% var(--cut),
    100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
/* hover keeps constant shadow size; lift via transform only */
.card:hover, .gallery__item:hover, .interest:hover { box-shadow: none; }

/* timeline tiles sit beside text, so no shape-only ancestor can carry a
   drop-shadow for them; skip the cut and keep their own hard shadow */
.tl .gallery__item { clip-path: none; box-shadow: var(--shadow); }
.tl .gallery__item:hover { box-shadow: var(--shadow-lg); }

/* card tag pills: squared to match the faceted language */
.card__tags li { border-radius: 0; }

/* chips: one cut corner, no shadow pop */
.chips li {
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.chips li:hover { box-shadow: none; }

/* big panels: sharp corners + accent corner facet */
.contact__form, .education, .art__frame, .gallery-empty,
.field input, .field textarea, .eyebrow, .nav__monogram,
.lb__media, .lb__btn { border-radius: 0; }
.contact__form, .education, .art__frame { position: relative; }
.contact__form::after, .education::after, .art__frame::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 34px; height: 34px;
  background: var(--accent, var(--yellow));
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* hover rules elsewhere re-declare transform; they must keep the skews */
.btn:hover .ico { transform: skewX(8deg) translate(2px, -2px); }
.section__num--link:hover { transform: skewX(-8deg) translate(-2px, -2px); }
.btn--small:hover { box-shadow: 5px 5px 0 var(--ink); }

/* simple ring-bulleted feature list for showcase pages */
.feature-list { display: grid; gap: 0.5rem; margin-bottom: clamp(1.8rem, 4vh, 2.6rem); max-width: 62ch; }
.feature-list li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-weight: 500; line-height: 1.5; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 3px solid var(--accent);
}

/* ============================================================
   FEATURED PROJECT CARDS + HERO QUICK LINKS
   ============================================================ */
.cards--featured { grid-template-columns: repeat(3, 1fr); margin-bottom: clamp(1.2rem, 2.5vw, 1.7rem); }
/* chained with .card so these outrank the base .card:nth-child color rules */
.card.card--cyan  { --c: var(--cyan); }
.card.card--green { --c: var(--green); }
.card.card--pink  { --c: var(--pink); }
/* second row of small cards continues the palette instead of repeating it */
.cards--row { margin-bottom: clamp(1.1rem, 2.5vw, 1.7rem); }
.cards--row + .cards--row .card:nth-child(1) { --c: var(--yellow); }
.cards--row + .cards--row .card:nth-child(2) { --c: var(--green); }
.card--feature .card__shot {
  width: 100%; height: auto;
  border: 2.5px solid var(--ink);
  margin-bottom: 1.1rem;
}
.card--feature .card__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
@media (max-width: 980px) { .cards--featured { grid-template-columns: 1fr; } }

/* hero quick links */
.hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.4rem; }
.hero__chips-label { font-family: var(--label); font-weight: 700; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.chip-link {
  font-family: var(--label); font-weight: 700; font-size: 0.66rem; text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 0.45rem 0.8rem 0.4rem;
  box-shadow: 3px 3px 0 var(--ink);
  transform: skewX(-8deg);
  transition: transform 0.16s var(--ease), background 0.16s var(--ease-out);
}
.chip-link:hover { transform: skewX(-8deg) translate(-2px, -2px); background: var(--yellow); }

/* ============================================================
   DIAGONAL MODE (home page only; diag.js adds html.diag-on when
   the viewport is wide and motion is allowed)
   ============================================================ */
/* body overflow-x hidden would make body the scroll container and break
   the sticky stage; hoist the horizontal clamp to the root in diag mode */
html.diag-on { overflow-x: hidden; }
html.diag-on body { overflow-x: visible; }
html.diag-on .diag__viewport {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
}
html.diag-on .diag__world {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  will-change: transform;
}
/* sections become inert grouping wrappers; static so they cannot
   become containing blocks for the absolutely positioned panels */
html.diag-on .diag .section { position: static; padding: 0; max-width: none; margin: 0; }
html.diag-on .diag .hero { padding: 0; max-width: none; margin: 0; }
html.diag-on .diag .section::before { display: none; }
html.diag-on .diag .projects::after,
html.diag-on .diag .contact::after { display: none; }
/* the featured grid has a filter (containing block); dissolve its box
   in diagonal mode and move the shadow onto each panel wrapper */
html.diag-on .diag .cards--featured { display: contents; }
html.diag-on .diag .cards--featured > .dp { filter: drop-shadow(6px 6px 0 var(--ink)); }
/* panels ride the world; this rule must come AFTER the .hero rule above */
html.diag-on .diag [data-panel] {
  position: absolute;
  top: 0; left: 0;
  width: min(880px, 74vw);
  margin: 0;
}
/* dark full-bleed bands are gone in diagonal mode; restore ink text */
html.diag-on .diag .projects { color: var(--ink); }
html.diag-on .diag .projects .section__title { color: var(--ink); }
html.diag-on .diag .projects .section__num { color: var(--ink); }
html.diag-on .diag .contact .section__title { color: var(--ink); }
html.diag-on .diag .contact__grid { grid-template-columns: 1fr; }
html.diag-on .diag .contact__pitch, html.diag-on .diag .contact__note { color: var(--ink); }
html.diag-on .diag .contact__pitch .hl { color: var(--pink); }
/* two-column layouts that get cramped at panel width */
html.diag-on .diag .art__feature { grid-template-columns: 1fr; }
/* decorative background facets, translated slower than the world */
.diag__bg { display: none; position: absolute; inset: 0; pointer-events: none; will-change: transform; }
html.diag-on .diag__bg { display: block; }
.diag__bg-facet { position: absolute; opacity: 0.16; }
.diag__bg-facet--1 { width: 56vw; height: 56vw; left: 30vw; top: 18vh; background: var(--blue); clip-path: polygon(50% 0, 100% 38%, 78% 100%, 12% 86%, 0 28%); }
.diag__bg-facet--2 { width: 44vw; height: 44vw; left: 110vw; top: 90vh; background: var(--pink); clip-path: polygon(0 0, 100% 18%, 84% 92%, 18% 100%); }
