/* paulandchester.com — restriction-free rebuild
   Fonts: Playfair Display + PT Serif (Google Fonts, OFL licensed)
   Imagery: extracted from original design screenshots; background matched to #1a1615 */

:root {
  --bg: #1a1615;
  --cream: #d2c5a3;
  --cream-soft: #c7bc9b;
  --cream-dim: #6b6453;
  --field: #c7bc9b;
  --field-text: #2a2620;
  --max: 960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

a { color: inherit; text-decoration: none; }

img { display: block; }

/* ---------- Logo ---------- */
.logo {
  position: absolute;
  top: 22px;
  left: 32px;
  z-index: 30;
}
.logo img { width: 170px; height: auto; opacity: .92; transition: opacity .25s ease; }
.logo:hover img { opacity: 1; }

/* ---------- Home: faces + independent stations ---------- */
.home { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

.stations {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2.6vw, 38px);
  width: 100%;
  padding: 96px clamp(10px, 4vw, 40px) 120px;
}
/* Intro reveal — only on the first visit of the session (<html class="intro">,
   set by an inline script). Faces fade in first; then after a ~2s pause the
   three device icons fade in slowly, one after another, and finally the footer
   nav. Returning to the page later in the session shows everything at once. */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

html.intro .face-wrap { opacity: 0; animation: fadeIn 1.8s ease both; }
html.intro .home .station { opacity: 0; animation: fadeIn 3.6s ease both; }
html.intro .home .station-eyes { animation-delay: 2s; }
html.intro .home .station-soul { animation-delay: 2.7s; }
html.intro .home .station-ears { animation-delay: 3.4s; }
html.intro .home .cluster { opacity: 0; animation: fadeIn 3.6s ease 4.2s both; }

/* faces (with a hover/activate alternate state layered on top) */
.face-wrap {
  position: relative;
  flex: 0 0 auto;
  width: clamp(74px, 18vw, 232px);
  line-height: 0;
}
.face-wrap .face { width: 100%; height: auto; display: block; }
.face-alt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  pointer-events: none;
}
.face-alt.face-phones { transition: opacity .45s ease; }

.station {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.4vw, 14px);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.device-wrap { position: relative; display: block; line-height: 0; }
/* size the three devices by a shared height so they read consistently
   (the tall, thin pen no longer towers over the camera and mic) */
.station .device {
  height: clamp(54px, 8.5vw, 94px);
  width: auto;
  transition: transform .25s ease, filter .25s ease;
}
.station .label {
  height: clamp(15px, 2vw, 24px);
  width: auto;
  opacity: .78;
  transition: opacity .25s ease, transform .25s ease;
}
.station:hover .device,
.station:focus-visible .device { transform: translateY(-4px) scale(1.04); }
.station:hover .label,
.station:focus-visible .label { opacity: 1; }
.station:focus-visible { outline: none; }
.station:focus-visible .device-wrap { outline: 2px solid rgba(210,197,163,.5); outline-offset: 6px; border-radius: 6px; }

/* effect layers sit over each device, never block taps */
.fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.fx svg { position: absolute; overflow: visible; }
.fx .scribble path,
.fx .waves path { stroke: var(--cream); stroke-linecap: round; stroke-linejoin: round; fill: none; vector-effect: non-scaling-stroke; }
.fx .waves path { stroke-width: 2; }
.fx .scribble path { stroke-width: 2.4; }

/* --- eyes: flickering projector cone, projecting left toward Paul --- */
.fx-eyes .cone {
  position: absolute;
  top: 28%;
  right: 78%;
  width: clamp(28px, 5vw, 60px);
  height: clamp(22px, 4vw, 44px);
  background: linear-gradient(to left, rgba(214,201,165,.55), rgba(214,201,165,0));
  clip-path: polygon(100% 44%, 100% 56%, 0 100%, 0 0);
  opacity: 0;
}
.station:hover .fx-eyes .cone,
.station:focus-visible .fx-eyes .cone,
.station.activating .fx-eyes .cone { animation: flicker .9s steps(1, end) 2; }
@keyframes flicker {
  0%,100% { opacity: 0; }
  8% { opacity: .85; } 14% { opacity: .15; } 22% { opacity: .9; }
  34% { opacity: .35; } 48% { opacity: .8; } 62% { opacity: .25; }
  76% { opacity: .75; } 88% { opacity: .4; }
}

/* --- eyes also lights up Paul's face: a beam flickers from him, then holds --- */
.face-paul.fx-on .face-beam {
  opacity: .9;
  animation: beamFlicker .85s steps(1, end) 1;
}
@keyframes beamFlicker {
  0% { opacity: 0; }
  10% { opacity: .9; } 17% { opacity: .2; } 26% { opacity: 1; }
  38% { opacity: .4; } 52% { opacity: .9; } 66% { opacity: .3; }
  80% { opacity: .85; } 92% { opacity: .5; } 100% { opacity: .9; }
}

/* --- ears also puts headphones on Chester (fades in via .face-phones) --- */
.face-chester.fx-on .face-phones { opacity: 1; }

/* --- soul: a vertical scribble drawing itself upward above the pen --- */
.fx-soul .scribble {
  left: 50%;
  bottom: 80%;
  transform: translateX(-50%);
  width: clamp(20px, 3vw, 32px);
  height: clamp(42px, 7vw, 80px);
}
.fx-soul .scribble path { stroke-dasharray: 150; stroke-dashoffset: 150; opacity: 0; }
.station:hover .fx-soul .scribble path,
.station:focus-visible .fx-soul .scribble path,
.station.activating .fx-soul .scribble path { animation: scribble 1s ease forwards; }
@keyframes scribble {
  0% { stroke-dashoffset: 150; opacity: 0; }
  8% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

/* --- ears: sound waves ripple up-and-right from the mic's top corner,
       clear of Chester's headphones (matches the original art) --- */
.fx-ears .waves {
  left: 84%;
  bottom: 68%;
  width: clamp(22px, 3.6vw, 40px);
  height: clamp(28px, 4.6vw, 46px);
  transform-origin: left bottom;
  transform: rotate(-32deg);
}
.fx-ears .waves path { opacity: 0; transform-box: fill-box; transform-origin: left center; }
.station:hover .fx-ears .waves path,
.station:focus-visible .fx-ears .waves path,
.station.activating .fx-ears .waves path { animation: emanate 1.1s ease-out 2; }
.fx-ears .waves .w1 { animation-delay: 0s; }
.fx-ears .waves .w2 { animation-delay: .12s; }
.fx-ears .waves .w3 { animation-delay: .24s; }
@keyframes emanate {
  0% { opacity: 0; transform: scale(.45); }
  35% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.15); }
}

/* ---------- Inner page shell ---------- */
.page {
  position: relative;
  min-height: 100vh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 32px 140px;
}

/* ---------- BLOG! | PLAYS top nav ---------- */
.sectnav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 18px;
}
.sectnav a { color: var(--cream-dim); transition: color .25s ease; }
.sectnav a:hover { color: var(--cream); }
.sectnav a.active { color: var(--cream); }
.sectnav .pen { width: 26px; height: auto; opacity: .9; }

/* ---------- Headings ---------- */
.display-italic {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
  font-size: 52px;
  line-height: 1.05;
  margin: 10px 0 28px;
}

/* ---------- Blog columns ---------- */
.cols { display: flex; gap: 56px; flex-wrap: wrap; }
.col { flex: 1 1 320px; min-width: 280px; }
.col h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 46px;
  margin: 0 0 26px;
  color: var(--cream);
}
.entry { margin: 0 0 34px; }
.entry .date {
  font-style: italic;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cream);
  margin: 0;
}
.entry .ttl {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 2px 0 12px;
}
.entry p {
  font-size: 13.5px;
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
  margin: 0 0 12px;
  color: #c4b896;
}
.sign {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  text-align: right;
  opacity: .8;
  margin-top: 6px;
}

/* ---------- Plays ---------- */
.plays-body { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.plays-body .poster { flex: 0 0 auto; }
.plays-body .poster img { width: 200px; height: auto; }
.plays-body .copy { flex: 1 1 360px; min-width: 300px; }
.plays-body .copy p {
  font-size: 14px;
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
  color: #c4b896;
  margin: 0 0 14px;
}

/* ---------- Contact ---------- */
.contact-row {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-top: 22vh;
  flex-wrap: wrap;
}
.contact-row a { transition: opacity .25s ease, transform .25s ease; opacity: .85; }
.contact-row a:hover { opacity: 1; transform: translateY(-3px); }
.contact-row .badge img { width: 130px; height: auto; }
.contact-row .mailicon img { width: 120px; height: auto; }

/* ---------- Mail form ---------- */
.mailform { max-width: 700px; }
.mailform label {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: .01em;
  color: var(--cream);
  margin: 18px 0 8px;
}
.mailform input,
.mailform textarea {
  width: 100%;
  background: var(--field);
  color: var(--field-text);
  border: none;
  font-family: "PT Serif", Georgia, serif;
  font-size: 15px;
  padding: 10px 12px;
  outline: none;
}
.mailform input { height: 38px; }
.mailform textarea { height: 280px; resize: vertical; line-height: 1.5; }
.mailform .submit-row { display: flex; justify-content: flex-end; margin-top: 18px; }
.mailform button {
  background: var(--field);
  color: var(--field-text);
  border: none;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 20px;
  padding: 6px 20px;
  cursor: pointer;
  transition: filter .2s ease;
}
.mailform button:hover { filter: brightness(1.08); }
.form-note { font-size: 12px; color: var(--cream-dim); margin-top: 10px; }
.form-status { margin-top: 18px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.ok {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 26px;
  color: var(--cream);
}
.form-status.err { font-size: 15px; color: #d9967f; }

/* ---------- Cluster nav (bottom-right) ---------- */
.cluster {
  position: fixed;
  right: 28px;
  bottom: 24px;
  width: 150px;
  height: 84px;
  z-index: 40;
}
.cluster > img { width: 100%; height: 100%; object-fit: contain; opacity: .9; }
.cluster .hot {
  position: absolute;
  display: block;
  border-radius: 4px;
  transition: background .2s ease;
}
.cluster .hot:hover { background: rgba(210,197,163,.16); }
/* hotspots mapped to cluster image regions */
.hot.pos-tl { left: 1%;  top: 4%;  width: 30%; height: 44%; }   /* paul face -> home  */
.hot.pos-tc { left: 33%; top: 4%;  width: 20%; height: 44%; }   /* pen       -> soul  */
.hot.pos-bl { left: 1%;  top: 52%; width: 30%; height: 46%; }   /* camera    -> eyes  */
.hot.pos-bc { left: 33%; top: 52%; width: 28%; height: 46%; }   /* chester   -> ears  */
.hot.pos-r  { left: 70%; top: 50%; width: 28%; height: 48%; }   /* megaphone -> contact */

/* ---------- eyes / soul / ears content pages ---------- */
.triadnav {
  display: flex;
  gap: clamp(16px, 3vw, 30px);
  align-items: baseline;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(34px, 6vw, 60px);
  margin: 0 0 14px;
}
.triadnav a { color: var(--cream-dim); transition: color .25s ease; }
.triadnav a:hover { color: var(--cream); }
.triadnav a.active { color: var(--cream); }

.lead { font-size: 16px; line-height: 1.55; color: #c4b896; margin: 6px 0 40px; max-width: 640px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
}
.work-item h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  margin: 14px 0 6px;
  color: var(--cream);
}
.work-item p { font-size: 13.5px; line-height: 1.5; color: #b6ab8b; margin: 0; }
.thumb {
  aspect-ratio: 16 / 10;
  background: rgba(210, 197, 163, .06);
  border: 1px solid rgba(210, 197, 163, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, border-color .25s ease;
}
.work-item:hover .thumb { background: rgba(210, 197, 163, .1); border-color: rgba(210, 197, 163, .3); }
.thumb::after {
  font-size: 30px;
  color: var(--cream-dim);
  line-height: 1;
}
/* \FE0E forces monochrome text rendering so none turn into colored emoji */
.thumb-film::after { content: "\25B7\FE0E"; }   /* ▷ */
.thumb-text::after { content: "\270E\FE0E"; }    /* ✎ */
.thumb-audio::after { content: "\266A\FE0E"; }   /* ♪ */

.crosslink { margin-top: 46px; font-size: 15px; color: #c4b896; }
.crosslink a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.crosslink a:hover { opacity: .85; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .sectnav { font-size: 44px; gap: 14px; }
  .display-italic { font-size: 38px; }
  .col h2 { font-size: 36px; }
  .mailform label { font-size: 40px; }
  .logo img { width: 140px; }
  .logo { top: 16px; left: 18px; }
  .cluster { width: 116px; height: 65px; right: 14px; bottom: 14px; }
  .page { padding: 80px 20px 120px; }
  .stations { padding: 84px 12px 110px; }
  .work-grid { gap: 22px; }
}

/* very small screens: keep the iconic faces–machine row from overflowing */
@media (max-width: 380px) {
  .stations { gap: 5px; }
  .face-wrap { width: 64px; }
  .station .device { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .face-wrap,
  .home .station,
  .home .cluster { animation: none !important; opacity: 1 !important; }
  .station .fx-eyes .cone,
  .station .fx-soul .scribble path,
  .station .fx-ears .waves path,
  .face-paul.fx-on .face-beam { animation: none !important; }
}
