/* ---------- shared feature-video placeholder ---------- */
.vid.is-missing video { visibility: hidden; }
.vid.is-missing::before {
  content: "Video coming soon"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: "KC Mono", monospace; font-size: 12px; color: #cfc6bb; letter-spacing: .02em;
}
.vid.is-missing .sound-pill { display: none; }

/* ================= CONTACT ================= */
.contact { display: flex; flex-direction: column; }
/* "contact me" in liquid, spray-painted letters, so faint it's only just there: character, not noise */
.contact-stage {
  position: relative; flex: 1; display: grid; min-height: calc(100svh - var(--nav-h) - 120px);
}
.contact-stage::before {
  content: ""; grid-area: 1 / 1; pointer-events: none;
  background: url(../img/contact-me-blob.png?v=3) center / min(96vw, 1600px, 210svh) auto no-repeat;
  opacity: .085;
}
.contact-body {
  grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px;
}
/* the labels in the KIERA CURRY lettering from the top bar */
.contact-label { margin: 34px 0 6px; font-family: "KC Display", "Bodoni 72", Didot, serif; font-weight: 800; font-size: clamp(15px, 1.25vw, 19px); letter-spacing: .14em; color: var(--ink); }
.contact-label:first-child { margin-top: 0; }
.contact-link {
  font-family: "KC Sans", "Helvetica Neue", Arial, sans-serif; font-weight: 400; font-size: clamp(26px, 5vw, 72px);
  line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere;
  display: inline-block; -webkit-tap-highlight-color: transparent;
  transition: transform .55s var(--ease-out), letter-spacing .55s var(--ease-out);
}
/* pointing at a detail (any mouse or trackpad, set in common.js): it swells and turns a deep oxblood */
.contact-link { transition: transform .55s var(--ease-out), letter-spacing .55s var(--ease-out), color .45s var(--ease-out); }
.contact-link.is-hover, .contact-link:focus-visible { transform: scale(1.07); letter-spacing: -.012em; color: #4a0711; }
.contact-link:active { transform: scale(.97); transition-duration: .15s; }
@media (max-width: 760px) {
  .contact-stage { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .contact-stage::before { background-image: url(../img/contact-me-blob-m.png?v=3); background-size: 100vw auto; }
  .contact-link { font-size: clamp(22px, 7.2vw, 34px); letter-spacing: -.02em; }
}



/* ================= ADVERTISEMENT ================= */
.ad-layout { margin: clamp(24px, 5vh, 56px) auto 0; scroll-margin-top: calc(var(--nav-h) + 16px); }
.ad .credit.ad-credit { width: min(100%, 1920px, calc((100svh - 240px) * 16 / 9)); margin-left: auto; margin-right: auto; }

/* opening studio sheet: a huge pale word with small mono labels over it */
.studio {
  position: relative; min-height: calc(62svh - var(--nav-h)); margin: 8px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  font-family: "KC Mono", monospace; font-weight: 700; font-size: 11px; line-height: 1.25; text-transform: uppercase; letter-spacing: .01em;
}
.studio-word {
  position: absolute; left: 0; right: 0; top: 0; margin: 0; text-align: center; pointer-events: none; user-select: none;
  font-family: "KC Sans", sans-serif; font-weight: 300; font-size: 23.5vw; line-height: .82; letter-spacing: -.02em;
  color: rgba(27, 23, 20, .055); white-space: nowrap;
  opacity: 0; transform: translateY(14px); animation: studio-in 1.4s var(--ease-out) .1s forwards;
}
@keyframes studio-in { to { opacity: 1; transform: none; } }
.studio-top, .studio-bottom { position: relative; display: grid; grid-template-columns: 1fr 1.4fr .6fr; gap: 16px; align-items: start; }
.studio-top { padding-top: 7vw; }
.studio-top h1 { margin: 0; font: inherit; }
.studio-bottom { padding-bottom: 10px; }
.studio-top > :last-child, .studio-bottom > :last-child { justify-self: end; }
.studio-bottom a { padding: 4px 0 4px 12px; }
@media (hover: hover) { .studio-bottom a:hover { color: var(--ink-soft); } }
@media (prefers-reduced-motion: reduce) { .studio-word { animation: none; opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .studio { min-height: 46svh; font-size: 10px; }
  .studio-word { font-size: 25vw; top: 6px; }
  .studio-top, .studio-bottom { grid-template-columns: 1fr 1fr; }
  .studio-top > :last-child { display: none; }
  .studio-bottom > :nth-child(2) { display: none; }
  .studio-top { padding-top: 18vw; }
}
/* the ad sets the size: native 16:9, up to its full 1920px, as large as the screen allows */
.ad .vid.wide { width: min(100%, 1920px, calc((100svh - 240px) * 16 / 9)); margin: 0 auto; background: #000; }
.ad .brief { max-width: 1180px; margin-left: auto; margin-right: auto; }
.brief {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px);
  margin-top: clamp(28px, 5vh, 56px);
  font-family: "KC Serif", "Times New Roman", serif; font-size: 16px; line-height: 1.6; color: #2c2622;
}
.brief h2 { font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin: 0 0 20px; text-wrap: balance; }
.brief h3 { font-family: "KC Mono", monospace; font-weight: 700; font-size: 12px; text-transform: uppercase; margin: 6px 0 10px; }
.brief p { margin: 0; max-width: 62ch; }
.brief ul { list-style: none; margin: 0; padding: 0; }
.brief li { padding: 3px 0; }
.brief dl { margin: 28px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; }
.brief dt { font-family: "KC Mono", monospace; font-size: 12px; text-transform: uppercase; font-weight: 700; padding-top: 4px; }
.brief dd { margin: 0; }
@media (max-width: 860px) { .brief { grid-template-columns: 1fr; } }

/* ================= PROJECTS: MAGAZINE ================= */
.mag-wrap { margin: 12px auto 0; max-width: 1800px; }
.mag-table {
  position: relative; padding: 14px clamp(0px, 1.5vw, 24px) 22px;
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(255,255,255,.55), transparent 70%),
    var(--paper);
}
/* soft contact shadow so the magazine sits on the surface with some weight */
.mag-table::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: clamp(10px, 3vw, 40px); height: 30px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(30, 20, 12, .35), transparent 70%);
  filter: blur(10px); z-index: 0; pointer-events: none;
}
.mag { position: relative; z-index: 1; margin: 0 auto; }
.mag-page { background: #f6f3ee; overflow: hidden; }
.mag-page img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
/* paper: gentle gutter curvature + a satin (matte gloss) sheen */
.mag-page::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.mag-page.is-left::after {
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.05) 40%, rgba(0,0,0,0) 80%, rgba(0,0,0,.10) 93%, rgba(0,0,0,.28) 100%),
    linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,0) 40%);
}
.mag-page.is-right::after {
  background:
    linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.06) 40%, rgba(0,0,0,0) 80%, rgba(0,0,0,.10) 93%, rgba(0,0,0,.26) 100%),
    linear-gradient(200deg, rgba(255,255,255,.12), rgba(255,255,255,0) 45%);
}
.mag-table[data-orientation="portrait"] .mag-page::after {
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0) 6%), linear-gradient(170deg, rgba(255,255,255,.10), rgba(255,255,255,0) 40%);
}
.stf__parent { filter: drop-shadow(0 18px 22px rgba(28, 18, 10, .28)) drop-shadow(0 2px 3px rgba(28, 18, 10, .2)); }

.mag-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 18px; }
.mag-nav { display: flex; align-items: center; gap: 22px; }
.mag-corner { font-family: "KC Mono", monospace; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }
.mag-corner:last-child { justify-self: end; text-align: right; }
@media (max-width: 600px) { .mag-corner { font-size: 9.5px; max-width: 12ch; } }

/* "travel video below" nudge */
.to-video {
  position: absolute; z-index: 30; right: var(--gutter); top: calc(var(--nav-h) + 40px); /* level with the page title */
  display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: rgba(27, 23, 20, .9); color: #f3eee6; font-family: "KC Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .03em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.to-video.on { opacity: 1; transform: none; pointer-events: auto; }
.to-video.gone { opacity: 0; transform: translateY(12px); pointer-events: none; }
.to-video i { font-style: normal; display: inline-block; animation: nudge 1.6s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .to-video i { animation: none; } }
.mag-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(27, 23, 20, .22); font-size: 18px; line-height: 1;
  transition: background .3s, color .3s;
}
@media (hover: hover) { .mag-btn:hover { background: var(--ink); color: var(--paper); } }
.mag-count { font-family: "KC Mono", monospace; font-size: 12px; min-width: 8ch; text-align: center; }
.mag-hint { text-align: center; margin: 10px 0 0; font-family: "KC Mono", monospace; font-size: 11px; color: var(--ink-soft); }

/* ================= PROJECTS: TRAVEL VIDEO ================= */
.travel { margin: clamp(70px, 14vh, 150px) auto 0; }
.travel .vid.wide, .travel .credit, .travel .page-title { width: min(100%, 1920px, calc((100svh - 200px) * 16 / 9)); margin-left: auto; margin-right: auto; }
.travel .vid.wide { background: #000; }
.travel .page-title { margin-bottom: 18px; }
.wide { aspect-ratio: 16 / 9; width: 100%; }
.credit { text-align: right; margin-top: 12px; margin-bottom: 0; font-family: "KC Serif", "Times New Roman", serif; font-style: italic; font-size: 14px; color: var(--ink-soft); }
/* keep the magazine page header compact so the magazine gets the height */
.projects { padding-top: calc(var(--nav-h) + 8px); }
.projects > .page-title { margin-top: 10px; }
.to-video .tv-short { display: none; }
@media (max-width: 600px) {
  .to-video { padding: 6px 11px; font-size: 10px; top: calc(var(--nav-h) + 42px); }
  .to-video .tv-long { display: none; }
  .to-video .tv-short { display: inline; }
}

/* corner notes on the contact page, in the top bar's lettering */
.contact { position: relative; }
.contact-corner {
  position: absolute; bottom: max(22px, env(safe-area-inset-bottom)); margin: 0;
  font-family: "KC Sans", sans-serif; font-weight: 500; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
}
.contact-corner-l { left: var(--gutter); }
.contact-corner-r { right: var(--gutter); }
