:root {
  --red: #e60012;
  --red-deep: #a3000c;
  --black: #0b0b0d;
  --white: #f6f4ef;
  --ink: #111111;
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-thumb {
  background: var(--red);
}

.display {
  font-family: 'Archivo Black', 'Arial Black', Impact, sans-serif;
}

/* ============ BACKGROUND LAYERS ============ */
#bg {
  position: fixed;
  inset: -4vmax;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

#bg-stripes {
  background: repeating-linear-gradient(
    115deg,
    var(--red) 0 46px,
    var(--red-deep) 46px 52px,
    var(--red) 52px 120px,
    #c4000f 120px 126px
  );
  animation: stripeDrift 24s linear infinite;
}

@keyframes stripeDrift {
  from { background-position: 0 0; }
  to { background-position: 520px 0; }
}

.menu-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: transform;
  pointer-events: none;
  transition: opacity .55s ease;
}

body.has-art .menu-art.active-bg {
  opacity: 1;
}

#bg-halftone {
  background-image: radial-gradient(circle, rgba(0,0,0,.45) 1.6px, transparent 1.7px);
  background-size: 14px 14px;
  mix-blend-mode: multiply;
  animation: halftoneDrift 30s linear infinite;
}

@keyframes halftoneDrift {
  from { background-position: 0 0; }
  to { background-position: -140px 140px; }
}

#bg-vignette {
  background:
    linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.75) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 20%, rgba(0,0,0,.65) 100%);
}

.bg-star {
  position: absolute;
  opacity: .14;
  animation: spin 60s linear infinite;
  transform-origin: center;
}

.bg-star.s2 {
  animation-duration: 90s;
  animation-direction: reverse;
  opacity: .1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#slash {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: var(--black);
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 40% 100%, 52% 62%, 45% 60%, 60% 24%, 51% 22%);
}

body.has-art #slash {
  display: none;
}

/* ============ SHELL / HUD ============ */
#shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

#hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(16px + var(--sat)) calc(24px + var(--sar)) 0 calc(24px + var(--sal));
  letter-spacing: .14em;
  font-weight: 600;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.hud-tag {
  background: var(--black);
  color: var(--white);
  padding: 6px 14px;
  transform: rotate(-2deg);
  font-size: 14px;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(0,0,0,.4);
  line-height: 1.2;
}

.hud-tag.alt {
  background: var(--white);
  color: var(--black);
  transform: rotate(1.5deg);
}

#main-content {
  flex: 1;
  padding: 3.5vh calc(5vw + var(--sar)) 3.5vh calc(5vw + var(--sal));
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.content-wrapper {
  max-width: 820px;
  width: 100%;
}

#hud-bottom {
  padding: 14px calc(24px + var(--sar)) calc(18px + var(--sab)) calc(24px + var(--sal));
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .95;
  flex-wrap: wrap;
  width: 100%;
}

#hud-bottom .key {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  padding: 2px 8px;
  margin-right: 6px;
  font-weight: 700;
  transform: skewX(-8deg);
  border-radius: 2px;
}

/* ============ HERO HEADER ============ */
.hero-block {
  margin-bottom: 3.5vh;
  width: 100%;
}

#intro-eyebrow {
  font-size: clamp(12px, 1.8vw, 18px);
  letter-spacing: clamp(.2em, .4em, .45em);
  text-transform: uppercase;
  margin-bottom: 1.2vh;
  font-weight: 700;
  text-shadow: 2px 2px 0 var(--black);
}

#big-name {
  line-height: .92;
  margin-bottom: 2vh;
  cursor: pointer;
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  touch-action: manipulation;
}

#big-name .ransom {
  font-size: clamp(36px, 9.5vw, 110px);
  display: block;
  max-width: 100%;
}

#big-name:hover .ch {
  animation: jitter .35s ease both;
}

#big-name:hover .ch:nth-child(odd) {
  animation-delay: .03s;
}

#big-name:hover .ch:nth-child(3n) {
  animation-delay: .06s;
}

#big-name:active {
  transform: scale(.985);
}

.role-badge {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 600;
  padding: 8px 16px;
  transform: rotate(-1deg);
  box-shadow: 6px 6px 0 rgba(0,0,0,.5);
  border-left: 4px solid var(--red);
  letter-spacing: .06em;
  max-width: 100%;
  line-height: 1.3;
}

/* ============ HEADERS & RANSOM LETTERING ============ */
.screen-head {
  margin: 1.5vh 0 2.5vh;
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.screen-head .ransom {
  font-size: clamp(30px, 6vw, 64px);
}

.screen-head::after {
  content: "";
  position: absolute;
  left: -6px;
  bottom: -8px;
  height: 8px;
  width: 105%;
  max-width: calc(100% + 12px);
  background: var(--red);
  transform: skewX(-24deg);
}

.ransom {
  display: inline-block;
  white-space: nowrap;
}

.ransom .ch {
  display: inline-block;
  line-height: 1;
  padding: 0 .01em;
  transition: transform .15s;
}

.ransom .ch.box {
  background: var(--black);
  color: var(--white);
  padding: .02em .08em;
  margin: 0 .03em;
}

.ransom .ch.boxw {
  background: var(--white);
  color: var(--black);
  padding: .02em .08em;
  margin: 0 .03em;
}

.ransom .ch.red {
  color: var(--red);
  text-shadow: 1px 1px 0 var(--black);
}

@keyframes jitter {
  0% { transform: var(--t) translateY(0); }
  35% { transform: var(--t) translateY(-6px) rotate(3deg); }
  70% { transform: var(--t) translateY(2px) rotate(-2deg); }
  100% { transform: var(--t) translateY(0); }
}

/* ============ ABOUT SECTION / PAPER ============ */
.about-card-section {
  margin-bottom: 4vh;
  width: 100%;
}

.paper {
  width: 100%;
  background: var(--white);
  color: var(--ink);
  padding: 32px 36px;
  font-size: 18px;
  line-height: 1.6;
  clip-path: polygon(0 2.5%, 2% 0, 100% 0, 100% 97.5%, 98% 100%, 0 100%);
  transform: rotate(-.5deg);
  box-shadow: 10px 10px 0 rgba(0,0,0,.6);
  margin-bottom: 2vh;
  user-select: text;
  word-break: break-word;
}

.paper strong {
  color: var(--red);
}

.paper .quote {
  line-height: 1.8;
  margin-bottom: 4px;
}

.paper .quote em {
  display: inline;
  background: var(--black);
  color: var(--white);
  font-style: italic;
  padding: 3px 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: 1.8;
}

/* Polaroid profile photo */
.about-photo {
  float: right;
  width: min(220px, 36%);
  margin: 0 0 16px 24px;
  background: var(--white);
  padding: 10px 10px 32px;
  transform: rotate(3deg);
  box-shadow: 8px 8px 0 rgba(0,0,0,.35);
  position: relative;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  filter: contrast(1.05);
}

.about-photo::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 84px;
  height: 24px;
  background: var(--red);
  opacity: .9;
  clip-path: polygon(4% 0, 96% 8%, 100% 92%, 0 100%);
}

.about-photo figcaption {
  text-align: center;
  margin-top: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink);
}

/* ============ LINKS SECTION ============ */
.links-section {
  margin-bottom: 4vh;
  width: 100%;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px 18px;
  padding-top: 10px;
  width: 100%;
}

.contact-chip {
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-family: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  text-transform: uppercase;
  padding: 14px 20px;
  min-height: 52px;
  transform: skewX(-6deg) rotate(-0.5deg);
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  box-shadow: 5px 5px 0 rgba(0,0,0,.45);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  touch-action: manipulation;
}

.contact-chip span {
  display: inline-block;
  transform: skewX(6deg);
}

.contact-chip small {
  display: block;
  font-size: 11px;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  letter-spacing: .08em;
  opacity: .8;
  text-transform: none;
  font-weight: 400;
  margin-top: 2px;
}

@media (hover: hover) {
  .contact-chip:hover {
    background: var(--white);
    color: var(--red);
    transform: skewX(-6deg) rotate(0) scale(1.04);
    box-shadow: 7px 7px 0 var(--black);
  }

  .contact-chip.cv-chip:hover {
    background: var(--white);
    color: var(--red);
  }
}

.contact-chip.cv-chip {
  background: var(--red);
}

.contact-chip:active {
  transform: skewX(-6deg) scale(.97);
  background: var(--white);
  color: var(--red);
}

/* ============ RESPONSIVE BREAKPOINTS ============ */

/* Tablet & Medium Screens */
@media (max-width: 768px) {
  /* Hide the background image — show animated stripes instead */
  body.has-art .menu-art.active-bg {
    opacity: 0 !important;
    pointer-events: none;
  }

  /* Re-show the slash geometric overlay since bg image is hidden */
  body.has-art #slash {
    display: block;
  }

  #hud-top {
    padding: calc(14px + var(--sat)) calc(18px + var(--sar)) 0 calc(18px + var(--sal));
  }

  #hud-bottom {
    padding: 12px calc(18px + var(--sar)) calc(16px + var(--sab)) calc(18px + var(--sal));
  }

  #main-content {
    padding: 3vh 18px 3vh;
  }

  .paper {
    padding: 26px 24px;
    font-size: 17px;
  }

  .links-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 14px;
  }
}

/* Mobile Screens */
@media (max-width: 600px) {
  #hud-top {
    padding: calc(12px + var(--sat)) calc(14px + var(--sar)) 0 calc(14px + var(--sal));
    gap: 8px;
  }

  .hud-tag {
    font-size: 12px;
    padding: 4px 10px;
    box-shadow: 3px 3px 0 rgba(0,0,0,.4);
  }

  #main-content {
    padding: 2.5vh 14px 3vh;
  }

  #big-name .ransom {
    font-size: clamp(32px, 12.5vw, 68px);
  }

  .role-badge {
    font-size: 14px;
    padding: 6px 12px;
    box-shadow: 4px 4px 0 rgba(0,0,0,.5);
  }

  .screen-head .ransom {
    font-size: clamp(26px, 8.5vw, 44px);
  }

  .screen-head::after {
    height: 6px;
    bottom: -6px;
  }

  .about-photo {
    float: none;
    width: 160px;
    max-width: 65%;
    margin: 0 auto 18px;
    padding: 8px 8px 26px;
    transform: rotate(2deg);
    box-shadow: 6px 6px 0 rgba(0,0,0,.35);
  }

  .about-photo::before {
    top: -10px;
    width: 68px;
    height: 18px;
  }

  .about-photo figcaption {
    font-size: 11px;
    margin-top: 6px;
  }

  .paper {
    padding: 20px 16px;
    font-size: 15.5px;
    line-height: 1.55;
    transform: none;
    clip-path: polygon(0 1.2%, 1.5% 0, 100% 0, 100% 98.8%, 98.5% 100%, 0 100%);
    box-shadow: 6px 6px 0 rgba(0,0,0,.5);
    margin-bottom: 2vh;
  }

  .paper .quote em {
    font-size: 14px;
    padding: 2px 6px;
  }

  .links-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-chip {
    width: 100%;
    text-align: center;
    align-items: center;
    padding: 13px 18px;
    font-size: 15px;
    transform: skewX(-4deg);
    box-shadow: 4px 4px 0 rgba(0,0,0,.45);
  }

  .contact-chip span {
    transform: skewX(4deg);
  }

  .contact-chip:active {
    transform: skewX(-4deg) scale(.98);
  }

  #hud-bottom {
    padding: 10px calc(14px + var(--sar)) calc(14px + var(--sab)) calc(14px + var(--sal));
    font-size: 11px;
    gap: 10px;
    justify-content: space-between;
  }

  #hud-bottom .key {
    padding: 2px 5px;
    margin-right: 4px;
    font-size: 10px;
  }
}

/* Extra Small Screens (<= 380px) */
@media (max-width: 380px) {
  #hud-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hud-tag {
    font-size: 11px;
    padding: 3px 8px;
  }

  #big-name .ransom {
    font-size: clamp(28px, 12vw, 48px);
  }

  .role-badge {
    font-size: 13px;
    padding: 5px 10px;
  }

  .paper {
    padding: 16px 12px;
    font-size: 14.5px;
  }

  .contact-chip {
    padding: 11px 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
}


