/* Final color and layout refinements */
.split-intro .play-tile::before {
  background: linear-gradient(0deg, rgba(66,103,145,.9), rgba(66,103,145,.32) 74%);
}

.split-intro .play-tile:hover::before {
  background: linear-gradient(0deg, rgba(66,103,145,.78), rgba(66,103,145,.18) 74%);
}

.contact {
  width: min(1120px, calc(100% - 48px));
  margin: 92px auto;
  padding: clamp(46px, 6vw, 82px);
  background: var(--orange);
  border: 2px solid var(--orange);
  box-shadow: 12px 13px 0 var(--blue);
}

@media (max-width: 760px) {
  .contact {
    width: calc(100% - 32px);
    margin: 56px auto;
    padding: 42px 26px;
    box-shadow: 7px 8px 0 var(--blue);
  }
}

/* Centered title with flanking editorial image blocks */
.hero-grid {
  grid-template-columns: minmax(160px, .72fr) minmax(360px, 1.5fr) minmax(160px, .72fr);
  gap: clamp(22px, 4vw, 64px);
  align-items: center;
}
.hero-copy { text-align: center; }
.hero h1 { font-size: clamp(2.8rem, 5vw, 5.2rem); }
.hero-subtitle { text-align: center; }
.hero-copy .intro { margin-left: auto; margin-right: auto; }
.hero-links { margin-top:28px; color:var(--ink); font:500 15px 'DM Mono',monospace; }
.hero-links a { color:var(--ink); text-decoration:underline; text-decoration-thickness:3px; text-underline-offset:6px; }
.hero-links a:first-child { text-decoration-color:var(--orange); }
.hero-links a:last-child { text-decoration-color:var(--blue); }
.split-heading,.split-intro { display:none; }
.hero-gallery { height: 350px; position: relative; }
.hero-photo { position: absolute; margin: 0; overflow: hidden; border: 2px solid var(--ink); background: var(--paper); }
.hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-gallery-left .laptop { width: 170px; height: 185px; left: 0; top: 15px; transform: rotate(-4deg); box-shadow: 7px 8px 0 var(--blue); }
.hero-gallery-left .laptop img { object-position: 50% 34%; transform: scale(1.16); }
.hero-gallery-left .portrait-small { width: 118px; height: 150px; right: 0; bottom: 20px; transform: rotate(6deg); box-shadow: 6px 7px 0 var(--orange); }
.hero-gallery-left .portrait-small img { object-position: 50% 32%; }
.hero-gallery-right .hobbies { width: 175px; height: 190px; right: 0; top: 8px; transform: rotate(4deg); box-shadow: 7px 8px 0 var(--pink); }
.hero-gallery-right .hobbies img { object-position: 50% 50%; }
.hero-gallery-right .mountain-small { width: 120px; height: 154px; left: 0; bottom: 12px; transform: rotate(-6deg); box-shadow: 6px 7px 0 var(--green); }
.hero-gallery-right .mountain-small img { object-position: 50% 35%; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { order: 1; }
  .hero-gallery { height: 180px; order: 2; }
  .hero-gallery-left, .hero-gallery-right { display: block; }
  .hero-gallery-left .laptop { width: 135px; height: 145px; left: 8%; top: 0; }
  .hero-gallery-left .portrait-small { width: 94px; height: 116px; right: 14%; bottom: 0; }
  .hero-gallery-right .hobbies { width: 138px; height: 148px; right: 12%; top: 0; }
  .hero-gallery-right .mountain-small { width: 94px; height: 116px; left: 14%; bottom: 0; }
}

/* Collage-led hero refresh */
.hero h1, h2, h3, blockquote,
.split-heading h2, .split-intro strong,
.testimonial-heading h2, .testimonial-card blockquote {
  font-family: 'Pink Average', serif;
}

.image-collage { height: 430px; position: relative; }
.collage-photo { margin: 0; overflow: hidden; position: absolute; background: #ddd; border: 2px solid var(--cream); }
.collage-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.collage-photo.portrait { width: 290px; height: 365px; right: 14%; top: 4px; transform: rotate(2deg); box-shadow: 8px 9px 0 var(--orange); }
.collage-photo.portrait img { object-position: 50% 38%; }
.collage-photo.mountain { width: 168px; height: 200px; left: 2%; top: 40px; transform: rotate(-7deg); box-shadow: 7px 8px 0 var(--blue); }
.collage-photo.trail { width: 150px; height: 180px; right: 0; bottom: 6px; transform: rotate(6deg); box-shadow: 7px 8px 0 var(--pink); }
.collage-label { position: absolute; left: 20%; bottom: 12px; color: var(--green); font: 11px/1.15 'DM Mono', monospace; letter-spacing: 1px; transform: rotate(-5deg); background: var(--lime); padding: 9px 11px; box-shadow: 4px 4px 0 var(--green); }

.split-heading { padding-top: 50px; }
.split-intro a { min-height: 420px; }
.split-intro a::after { content: none; }
.color-rhythm { height: 29px; }
.color-rhythm i:before { width: 56px; height: 56px; top: -35px; left: calc(50% - 28px); }

@media (min-width: 900px) {
  .work-heading h2 { white-space: nowrap; }
}

.play-subtitle { margin-bottom: 12px; }

/* Centered monogram navigation with work/play on the left. */
.topbar {
  justify-content: center;
  position: sticky;
  top: 0;
  height: 184px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: color-mix(in srgb, var(--cream) 93%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 48, 44, .12);
}
.primary-nav {
  width: min(86vw, 1440px);
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(64px, 8vw, 140px);
}
.nav-cluster { display: flex; align-items: center; gap: clamp(42px, 5vw, 76px); }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.primary-nav .wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  height: 156px;
}
.primary-nav .wordmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.primary-nav .nav-cluster a { font-size: 14px; letter-spacing: 1.3px; }
.primary-nav > a:not(.wordmark) { text-align: center; }
.primary-nav .resume-link { background: transparent; color: inherit !important; padding: 0; border-radius: 0; }

/* Push the hero imagery toward the page edges, reserving the center for its statement. */
.hero { max-width: 1520px; padding-left: clamp(24px, 3.5vw, 64px); padding-right: clamp(24px, 3.5vw, 64px); }
.hero-grid {
  grid-template-columns: minmax(190px, .6fr) minmax(500px, 2.2fr) minmax(190px, .6fr);
  gap: clamp(28px, 5vw, 92px);
}
.hero-gallery-left .laptop { left: -10px; }
.hero-gallery-left .portrait-small { right: -18px; }
.hero-gallery-right .hobbies { right: -10px; }
.hero-gallery-right .mountain-small { left: -18px; }

.work-heading { display: block; }
.work-heading p { max-width: 500px; margin-top: 20px; }
.testimonial-card { border-radius: 18px; }

/* Tags frame the side-quest heading rather than sitting on top of it. */
.play-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(64px, 8vw, 144px); }
.side-quest-heading { position: relative; min-height: 258px; padding: 72px 0 48px; max-width: 690px; }
.side-quest-heading h2 { position: relative; z-index: 1; }
.side-quest-heading .play-notes { display: block; margin: 0; }
.side-quest-heading .play-notes span { position: absolute; margin: 0; white-space: nowrap; }
.side-quest-heading .play-notes span:nth-child(1) { top: 10px; left: 19%; transform: rotate(-5deg); }
.side-quest-heading .play-notes span:nth-child(2) { top: 23px; right: 3%; transform: rotate(4deg); }
.side-quest-heading .play-notes span:nth-child(3) { bottom: 10px; left: 6%; transform: rotate(3deg); }
.side-quest-heading .play-notes span:nth-child(4) { bottom: 3px; right: 14%; transform: rotate(-3deg); }

@media (min-width: 1100px) {
  .side-quest-heading h2 { white-space: nowrap; font-size: clamp(3.8rem, 5.1vw, 5.25rem); }
}

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 100px; padding-left: 14px; padding-right: 14px; }
  .primary-nav { width: 100%; gap: 12px; }
  .nav-cluster { gap: 10px; }
  .primary-nav .wordmark { width: 76px; height: 76px; }
  .primary-nav .nav-cluster a { font-size: 10px; }
  .play-grid { grid-template-columns: 1fr; gap: 28px; }
  .side-quest-heading { min-height: 245px; padding-top: 72px; }
  .side-quest-heading .play-notes span:nth-child(1) { left: 32%; }
  .side-quest-heading .play-notes span:nth-child(2) { right: 1%; }
  .side-quest-heading .play-notes span:nth-child(3) { left: 3%; }
  .side-quest-heading .play-notes span:nth-child(4) { right: 5%; }
  .image-collage { height: 355px; }
  .collage-photo.portrait { right: 4%; width: 235px; height: 300px; }
  .collage-photo.mountain { width: 125px; height: 150px; left: 0; }
  .collage-photo.trail { width: 110px; height: 130px; }
  .collage-label { left: 16%; bottom: 0; }
  .split-intro a { min-height: 270px; }
}
