/* johnserrantino.com
   Layout concept: a desert-highway postcard from a tropical motel. Sunset
   stripes and palms up top, sun-bleached paper underneath, typewriter notes
   in the margins, hard offset shadows like a screen-printed poster.
   Single deliberate LIGHT look: no dark palette by design. */
:root {
  --paper: #FFF3DC;      /* sun-bleached motel postcard */
  --paper-2: #FFE7BF;    /* a shade deeper, for bands */
  --ink: #1E1233;        /* purple-black, never pure black */
  --ink-soft: #4B3B63;   /* body copy that is not the headline */
  --flamingo: #F2386F;   /* the loud one, used sparingly */
  --flamingo-ink: #C21453;/* flamingo dark enough for small text */
  --lagoon: #009C9C;     /* the tropical counterweight */
  --lagoon-ink: #007373;
  --mango: #FFB21E;      /* sun and highlights */
  --jungle: #1F6F47;     /* palms */
  --line: #1E1233;

  --display: "Shrikhand", "Cooper Black", "Georgia", serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --type: "Courier Prime", "Courier New", monospace;

  --wrap: 1120px;
  --shadow: 6px 6px 0 var(--ink);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.075rem/1.65 var(--body);
  overflow-x: hidden;
}
/* paper grain, drawn once, no image request */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60;
  opacity: .22; mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(30,18,51,.18) 1px, transparent 1.2px);
  background-size: 5px 5px;
}
img { max-width: 100%; display: block; }
a { color: var(--flamingo-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--lagoon-ink); }
:focus-visible { outline: 3px dashed var(--lagoon); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--mango); padding: 8px 12px; color: var(--ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(3rem, 10vw, 7.4rem); }
h2 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
p { margin: 0; }
.type { font-family: var(--type); }
.kicker {
  font-family: var(--type); font-weight: 700; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lagoon-ink);
}
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink-soft); max-width: 60ch; }
.prose { display: grid; gap: 1.1rem; max-width: 64ch; color: var(--ink-soft); }
.prose strong { color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { font-family: var(--display); font-size: 1.45rem; color: var(--ink); text-decoration: none; line-height: 1; white-space: nowrap; }
.brand span { color: var(--flamingo); }
.brand:hover { color: var(--ink); }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav a.l {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  color: var(--ink); text-decoration: none; border: 2px solid transparent; transition: transform .2s, background .2s;
}
.nav a.l:hover { background: var(--mango); border-color: var(--ink); transform: rotate(-3deg); }
.nav a.l[aria-current="page"] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; font: 700 .9rem var(--type); text-transform: uppercase;
    letter-spacing: .1em; background: var(--mango); color: var(--ink); border: 2px solid var(--ink);
    border-radius: 999px; padding: 8px 14px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
    background: var(--paper); border-bottom: 2px solid var(--ink); padding: 12px 20px 18px; gap: 4px; }
  .nav.open ul { display: flex; }
  .nav a.l { font-size: 1.15rem; }
}

/* ---------- hero: the sunset postcard ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 3px solid var(--ink); isolation: isolate; }
.sky {
  position: absolute; inset: 0; z-index: -3;
  background:
    repeating-linear-gradient(180deg,
      #FFD27A 0 22px, #FFB21E 22px 44px, #FF8A3D 44px 66px, #F95E6E 66px 88px,
      #F2386F 88px 110px, #C8418F 110px 132px, #8C4FB0 132px 154px);
  background-size: 100% 154px;
  animation: drift 22s linear infinite;
  opacity: .9;
}
.sky::after { /* fade stripes into paper so the copy sits on calm ground */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 38%, var(--paper) 78%);
}
@keyframes drift { to { background-position: 0 154px; } }

.sun {
  position: absolute; z-index: -2; width: min(64vw, 520px); aspect-ratio: 1; max-width: 100%;
  right: -6%; top: -18%; border-radius: 50%;
  background:
    radial-gradient(circle, #FFF6C9 0 30%, #FFD25A 31% 45%, transparent 46%),
    repeating-conic-gradient(from 0deg, rgba(255,243,220,.75) 0 7deg, transparent 7deg 18deg);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.palm { position: absolute; z-index: -1; transform-origin: 50% 100%; pointer-events: none; }
.palm svg { width: 100%; height: auto; overflow: visible; }
.palm.left { right: 18%; bottom: 20px; width: min(26vw, 220px); animation: sway 7s ease-in-out infinite; }
.palm.right { right: -50px; bottom: 10px; width: min(34vw, 300px); animation: sway 8.5s ease-in-out infinite reverse; }
@media (max-width: 900px) { .palm.left { display: none; } .palm.right { width: 170px; right: -60px; opacity: .55; } }
@keyframes sway { 0%,100% { transform: rotate(-2.5deg); } 50% { transform: rotate(3deg); } }

.bats { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bat { position: absolute; width: 44px; color: var(--ink); animation: fly 14s linear infinite; }
.bat svg { width: 100%; animation: flap .35s ease-in-out infinite alternate; transform-origin: 50% 60%; }
.bat:nth-child(1) { top: 16%; animation-delay: -2s; }
.bat:nth-child(2) { top: 28%; width: 30px; animation-delay: -7s; animation-duration: 18s; }
.bat:nth-child(3) { top: 9%; width: 24px; animation-delay: -11s; animation-duration: 21s; }
@keyframes fly {
  0% { transform: translate(-10vw, 0) rotate(-6deg); }
  25% { transform: translate(25vw, -24px) rotate(4deg); }
  50% { transform: translate(55vw, 18px) rotate(-3deg); }
  75% { transform: translate(85vw, -12px) rotate(5deg); }
  100% { transform: translate(115vw, 6px) rotate(-4deg); }
}
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }

.hero-in { position: relative; padding-block: clamp(56px, 10vw, 120px) clamp(40px, 7vw, 80px); display: grid; gap: 22px; }
.hero .kicker { color: var(--ink); background: var(--mango); border: 2px solid var(--ink); display: inline-block;
  padding: 4px 10px; border-radius: 4px; width: fit-content; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--ink); }
.hero h1 { color: var(--ink); filter: url(#heat); }
.hero h1 .w { display: inline-block; }
.hero h1 .c { display: inline-block; animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.18s); }
.hero h1 .c:nth-child(odd) { color: var(--flamingo); }
.hero h1 .w + .w .c:nth-child(odd) { color: var(--lagoon); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-2deg); } }
.hero .lede { color: var(--ink); max-width: 52ch; }
.hero .lede em { font-family: var(--type); font-style: normal; background: var(--paper); padding: 0 4px; }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); }

/* the road at the foot of the hero */
.road { position: relative; height: 70px; background: var(--ink); overflow: hidden; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--mango) 0 44px, transparent 44px 88px); animation: lines 1.1s linear infinite; }
@keyframes lines { to { background-position: -88px 0; } }
.car { position: absolute; bottom: 10px; width: 120px; animation: cruise 12s linear infinite; }
.car svg { width: 100%; animation: bump .5s ease-in-out infinite alternate; }
@keyframes cruise { from { left: -140px; } to { left: 105%; } }
@keyframes bump { to { transform: translateY(-2px) rotate(-.6deg); } }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.02rem;
  padding: 13px 22px; border-radius: 999px; border: 2px solid var(--ink); text-decoration: none;
  background: var(--flamingo); color: #fff; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: #fff; transform: translate(-2px,-2px) rotate(-1.5deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.alt { background: var(--paper); color: var(--ink); }
.btn.alt:hover { background: var(--mango); color: var(--ink); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- marquee ---------- */
.mq-clip { overflow: hidden; padding-block: 14px; }
.marquee { background: var(--lagoon); color: var(--paper); border-block: 3px solid var(--ink); overflow: hidden;
  transform: rotate(-1.4deg) scale(1.04); }
.marquee-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(1.4rem, 3.4vw, 2.2rem); padding: 10px 22px; white-space: nowrap; }
.marquee span i { font-style: normal; color: var(--mango); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.band { padding-block: clamp(56px, 8vw, 96px); }
section.band.alt { background: var(--paper-2); border-block: 2px solid var(--ink); }
.head { display: grid; gap: 12px; margin-bottom: 36px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px 4px 18px 4px; padding: 20px; box-shadow: var(--shadow);
  display: grid; gap: 6px; transition: transform .25s; }
.stat:nth-child(2n) { transform: rotate(1.2deg); }
.stat:nth-child(2n+1) { transform: rotate(-1deg); }
.stat:hover { transform: rotate(0) scale(1.03); }
.stat b { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1; color: var(--flamingo); font-variant-numeric: tabular-nums; }
.stat:nth-child(2) b { color: var(--lagoon-ink); }
.stat:nth-child(3) b { color: var(--jungle); }
.stat:nth-child(4) b { color: #B86A00; }
.stat span { font-size: .95rem; color: var(--ink-soft); line-height: 1.4; }

.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }
.door { position: relative; display: grid; gap: 10px; padding: 26px 24px 64px; border: 2px solid var(--ink); border-radius: 26px;
  color: var(--ink); text-decoration: none; background: var(--paper); box-shadow: var(--shadow); transition: transform .25s, background .25s; overflow: hidden; }
.door:hover { color: var(--ink); transform: translate(-3px,-3px) rotate(-1deg); background: #FFF9EE; }
.door p { color: var(--ink-soft); }
.door .go { position: absolute; right: 18px; bottom: 16px; font-family: var(--type); font-weight: 700; color: var(--flamingo-ink); }
.door .stamp { position: absolute; right: -18px; top: -18px; width: 86px; height: 86px; border-radius: 50%; opacity: .9;
  background: repeating-conic-gradient(var(--mango) 0 12deg, var(--paper) 12deg 24deg); border: 2px solid var(--ink); animation: spin 18s linear infinite; }
.door:nth-child(2) .stamp { background: repeating-conic-gradient(var(--lagoon) 0 12deg, var(--paper) 12deg 24deg); }
.door:nth-child(3) .stamp { background: repeating-conic-gradient(var(--flamingo) 0 12deg, var(--paper) 12deg 24deg); }

/* typewriter note, taped to the page */
.note { position: relative; font-family: var(--type); font-size: 1.02rem; line-height: 1.55; background: #FFFDF6;
  border: 1px solid rgba(30,18,51,.25); padding: 26px 24px 22px; max-width: 60ch; transform: rotate(-1.2deg);
  box-shadow: 3px 5px 0 rgba(30,18,51,.12); color: var(--ink); }
.note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 24px; transform: translateX(-50%) rotate(3deg);
  background: rgba(0,156,156,.35); border: 1px solid rgba(30,18,51,.15); }

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- about: vantage points ---------- */
.seats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .seats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .seats { grid-template-columns: 1fr; } }
.seat { border: 2px solid var(--ink); border-radius: 16px; padding: 20px; background: var(--paper); display: grid; gap: 8px; align-content: start;
  transition: transform .25s, box-shadow .25s; }
.seat:hover { transform: translateY(-4px) rotate(.8deg); box-shadow: var(--shadow); }
.seat .yr { font-family: var(--type); font-weight: 700; font-size: .85rem; color: var(--lagoon-ink); letter-spacing: .08em; text-transform: uppercase; }
.seat h3 { font-size: 1.55rem; }
.seat p { color: var(--ink-soft); font-size: 1rem; }
.seat.me { background: var(--ink); color: var(--paper); }
.seat.me h3 { color: var(--mango); }
.seat.me p { color: #E9DEF5; }
.seat.me .yr { color: #7FE3E3; }

.dont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) { .dont { grid-template-columns: 1fr; } }
.dont > div { border: 2px solid var(--ink); border-radius: 20px; padding: 24px; background: var(--paper); }
.dont h3 { margin-bottom: 12px; font-size: 1.5rem; }
.dont ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; color: var(--ink-soft); }

.latin { text-align: center; padding-block: clamp(64px, 10vw, 120px); }
.latin h2 { font-size: clamp(3rem, 10vw, 7rem); color: var(--flamingo); filter: url(#heat); }
.latin h2 span { color: var(--lagoon); }
.latin p { margin: 16px auto 0; max-width: 54ch; color: var(--ink-soft); }

/* ---------- experience: the highway timeline ---------- */
.timeline { position: relative; display: grid; gap: 28px; padding-left: 64px; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 8px; background: var(--ink); border-radius: 4px; }
.timeline::after { content: ""; position: absolute; left: 25px; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(180deg, var(--mango) 0 18px, transparent 18px 36px); animation: lanes 2s linear infinite; }
@keyframes lanes { to { background-position: 0 36px; } }
.stop { position: relative; border: 2px solid var(--ink); border-radius: 20px; padding: 22px 24px; background: var(--paper); box-shadow: var(--shadow);
  display: grid; gap: 10px; }
.stop::before { content: ""; position: absolute; left: -54px; top: 22px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--flamingo); border: 3px solid var(--ink); box-shadow: 0 0 0 5px var(--paper); z-index: 1; }
.stop:nth-child(3n+2)::before { background: var(--lagoon); }
.stop:nth-child(3n)::before { background: var(--mango); }
.stop .when { font-family: var(--type); font-weight: 700; color: var(--lagoon-ink); letter-spacing: .06em; }
.stop h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.stop .role { font-weight: 700; color: var(--ink); }
.stop ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-soft); }
.stop .taught { font-family: var(--type); font-size: .98rem; border-top: 2px dashed rgba(30,18,51,.3); padding-top: 10px; color: var(--ink); }
.stop .taught b { color: var(--flamingo-ink); }
.stop.now { background: var(--ink); color: var(--paper); }
.stop.now h3 { color: var(--mango); }
.stop.now .role, .stop.now .taught { color: var(--paper); }
.stop.now ul { color: #E9DEF5; }
.stop.now .when { color: #7FE3E3; }
.stop.now .taught b { color: var(--mango); }
.stop.now a { color: var(--mango); }
.pill { display: inline-block; font-family: var(--type); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--mango); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; margin-left: 6px; vertical-align: middle; }
@media (max-width: 560px) {
  .timeline { padding-left: 40px; }
  .timeline::before { left: 10px; width: 6px; }
  .timeline::after { left: 12px; }
  .stop::before { left: -40px; width: 20px; height: 20px; }
}

/* ---------- projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 820px) { .projects { grid-template-columns: 1fr; } }
.proj { position: relative; border: 3px solid var(--ink); border-radius: 28px; padding: 28px 26px 26px; background: var(--paper); box-shadow: 8px 8px 0 var(--ink);
  display: grid; gap: 14px; align-content: start; overflow: hidden; transition: transform .3s; }
.proj:hover { transform: rotate(-.8deg) translate(-2px,-2px); }
.proj.big { grid-column: 1 / -1; }
.proj .tag { font-family: var(--type); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--lagoon-ink); }
.proj h3 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.proj p { color: var(--ink-soft); max-width: 62ch; }
.proj ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-soft); }
.proj .url { font-family: var(--type); font-weight: 700; word-break: break-word; }
.proj.big { background:
  radial-gradient(circle at 100% 0, rgba(255,178,30,.35) 0 22%, transparent 23%),
  radial-gradient(circle at 100% 0, rgba(242,56,111,.18) 0 34%, transparent 35%),
  var(--paper); }
.proj.past { background: var(--paper-2); box-shadow: 5px 5px 0 var(--ink); }

/* ---------- contact ---------- */
form.card { display: grid; gap: 16px; border: 3px solid var(--ink); border-radius: 26px; padding: 26px; background: #FFFDF6; box-shadow: 8px 8px 0 var(--ink); }
label { display: grid; gap: 6px; font-weight: 700; }
input, textarea, select { font: inherit; width: 100%; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--mango); outline-offset: 1px; }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-family: var(--type); color: var(--jungle); font-weight: 700; }
.ways { display: grid; gap: 16px; }
.way { border: 2px solid var(--ink); border-radius: 18px; padding: 18px 20px; background: var(--paper); display: grid; gap: 6px; }
.way h3 { font-size: 1.35rem; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding-block: 48px 36px; position: relative; overflow: hidden; }
.foot a { color: var(--mango); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }
.foot .brand { color: var(--paper); font-size: 2rem; }
.foot h4 { margin: 0 0 10px; font-family: var(--type); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #7FE3E3; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot p { color: #E9DEF5; max-width: 42ch; margin-top: 10px; }
.foot .legal { margin-top: 36px; font-family: var(--type); font-size: .85rem; color: #B8A9CC; }

/* scroll wiggle: elements are visible at rest; motion only adds a nudge */
.pop { transition: transform .6s cubic-bezier(.2,1.6,.4,1); }
.js .pop.pre { transform: translateY(18px) rotate(-1.5deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .pop.pre { transform: none; }
  .hero h1, .latin h2 { filter: none; }
}
