/* Pilgrim's Journey Studios: cinematic scroll build
   Colors: PJS design system (midnight indigo ink, parchment, brass).
   Display type: Arsenica (Zetafonts web license, self-hosted WOFF2 from /fonts).
   Labels: Inter Tight (free SIL Open Font License), also self-hosted: no requests to Google. */

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/InterTight-Regular.woff2?v=1") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/InterTight-Medium.woff2?v=1") format("woff2");
  font-weight: 500 600; font-style: normal; font-display: swap;
}

@font-face {
  font-family: "Arsenica";
  src: url("/fonts/Arsenica-Regular.woff2?v=1") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Arsenica";
  src: url("/fonts/Arsenica-Italic.woff2?v=1") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Arsenica Text";
  src: url("/fonts/Arsenica-Text-Regular.woff2?v=1") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Arsenica Text";
  src: url("/fonts/Arsenica-Text-Bold.woff2?v=1") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Arsenica";
  src: url("/fonts/Arsenica-Medium.woff2?v=1") format("woff2");
  font-weight: 500 600; font-style: normal; font-display: swap;
}

:root {
  /* PJS design system */
  --pjs-ink: #292044;
  --pjs-ink-deep: #1B1530;
  --pjs-parchment: #F5EFE2;
  --pjs-brass: #B98A3E;
  --pjs-brass-soft: #D8B570;

  --ground: var(--pjs-ink-deep);
  --cream: var(--pjs-parchment);
  --cream-2: #D6CCE0;
  --muted: #B9B0D0;
  --accent: var(--pjs-brass-soft);
  --line-on-ink: rgba(245, 239, 226, .16);

  /* Type roles */
  --title-hero: "Arsenica", Georgia, serif;
  --title: "Arsenica", Georgia, serif;
  --script: "Arsenica", Georgia, serif;
  --script-style: italic;
  --label: "Inter Tight", Inter, system-ui, sans-serif;   /* small labels above titles, unchanged */
  --body: "Arsenica Text", "Arsenica", Georgia, serif;   /* smaller text */
  --title-weight: 500;

  --pad: 40px;
  --hold: 1200px;            /* scroll pause after each full-bleed panel (desktop only) */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
main { overflow-x: clip; }   /* the hero's landing zoom must never make the page wider than the window (no flash of a bottom scrollbar) */   /* keep the scrollbar's space reserved so the page never shifts when the intro ends */
body {
  margin: 0; background: var(--ground); color: var(--cream);
  font-family: var(--body); font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cream); }
a:hover { color: #FFFFFF; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--cream); color: var(--pjs-ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header: clear over the hero, slides away while scrolling down,
   returns on an ink bar when scrolling up so it never sits on top of content */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  padding: 18px var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 20px;
  transition: transform .4s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-solid {
  background: rgba(27, 21, 48, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-on-ink);
}
.site-header.is-away { transform: translateY(-100%); }
.site-header.menu-open { z-index: 70; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
.brand img { height: 58px; width: auto; transition: opacity .3s var(--ease); }
.site-header.menu-open .brand { opacity: 0; pointer-events: none; }
/* While the menu is open the header strip is see-through: let taps reach the menu links under it
   (on short screens, such as an iPad held sideways, Home sits behind the strip). Only the X stays tappable. */
.site-header.menu-open { pointer-events: none; }
.site-header.menu-open .burger-btn { pointer-events: auto; }

/* Hamburger that turns into an X */
.burger-btn {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--cream); cursor: pointer; padding: 0;
}
.burger { position: relative; width: 26px; height: 18px; }
.burger span {
  position: absolute; left: 0; width: 26px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .45s cubic-bezier(.7, 0, .2, 1), opacity .25s ease, top .45s cubic-bezier(.7, 0, .2, 1);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 16px; }
.burger-btn[aria-expanded="true"] .burger span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.burger-btn[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.burger-btn[aria-expanded="true"] .burger span:nth-child(3) { top: 8px; transform: rotate(-45deg); }
.burger-btn:hover { color: var(--accent); }

/* Full-bleed panels */
.panel { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.panel-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.panel-img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-img { will-change: transform; }
.hero .panel-media { background: #000 url("/media/potter-hero.jpg?v=2") center / cover no-repeat; }
@media (max-width: 1000px) and (orientation: portrait) { .hero .panel-media { background-image: url("/media/potter-hero-tall.jpg?v=2"); } }
.panel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.7) 100%), radial-gradient(ellipse 80% 60% at 0% 100%, rgba(0,0,0,.55), rgba(0,0,0,0) 72%); }
.hero .panel-shade { background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.7) 100%), radial-gradient(ellipse 80% 60% at 0% 100%, rgba(0,0,0,.55), rgba(0,0,0,0) 72%); }
.placeholder-note {
  position: absolute; top: 104px; right: var(--pad); font-size: 12px; color: var(--muted);
  background: rgba(27,21,48,.5); padding: 6px 12px; border-radius: 4px; max-width: calc(100% - 2 * var(--pad));
}
.panel-copy {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 64px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
}
.panel-text { display: flex; flex-direction: column; gap: 10px; max-width: 820px; text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 2px 24px rgba(0,0,0,.45); }   /* tight edge shadow keeps small text crisp over bright photos */
.panel-copy, .panel-media { will-change: transform, opacity; }
.eyebrow { font-family: var(--label); font-size: 14px; font-weight: 500; color: var(--cream-2); letter-spacing: .02em; }
.hero .eyebrow { color: var(--accent); }
.title-xl { font-family: var(--title-hero); font-weight: var(--title-weight); font-size: 104px; line-height: .95; letter-spacing: -1px; }
.title-lg { font-family: var(--title); font-weight: var(--title-weight); font-size: 80px; line-height: .98; letter-spacing: -.5px; }
.tagline { font-family: var(--script); font-style: var(--script-style); font-size: 26px; color: var(--cream-2); }
.logline { font-size: 20px; color: #E6DEEC; max-width: 600px; }
.pill {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px;
  border: 1px solid rgba(245,239,226,.7); border-radius: 999px; text-decoration: none; font-weight: 500;
  transition: background .3s ease, color .3s ease;
}
.pill:hover { background: var(--cream); color: var(--pjs-ink); }
.text-link { font-weight: 500; text-underline-offset: 5px; }
.text-link:hover { color: var(--accent); }

.hold { height: var(--hold); }

/* Sections after the panels */
.block { position: relative; z-index: 2; background: var(--ground); padding: 120px var(--pad) 100px; }
/* Overlap each section by 1px so phone screens (which can land section edges on fractions of a
   pixel) never open a hairline gap that shows the pinned film panel behind. */
.block + .block, main + .site-footer { margin-top: -1px; }
.block.ink { background: var(--pjs-ink); }
.wrap { max-width: 1360px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.title-md { font-family: var(--title); font-weight: var(--title-weight); font-size: 48px; line-height: 1.05; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--cream); }
.card-still { aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 10px; font-size: 12px; color: var(--muted); border-radius: 6px; transition: transform .5s ease; }
.card:hover .card-still { transform: scale(1.02); }
.card-kind { font-family: var(--label); font-size: 13px; color: var(--muted); }
.card-title { font-family: var(--title); font-size: 28px; font-weight: var(--title-weight); line-height: 1.1; }
.card-line { font-size: 15px; color: var(--cream-2); }

.studio { background: var(--pjs-parchment); color: var(--pjs-ink); padding: 140px var(--pad); }
.studio .wrap { max-width: 1100px; display: flex; flex-direction: column; gap: 28px; }
.studio-big { font-family: var(--title); font-size: 72px; font-weight: var(--title-weight); line-height: 1.04; text-wrap: balance; }
.studio-body { font-size: 20px; max-width: 640px; color: #564C70; }
.studio-rule { width: 64px; height: 2px; background: var(--pjs-brass); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.journal-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.journal-card .card-still { padding: 0; }
.journal-card .card-title { font-size: 34px; }

.contact { padding: 140px var(--pad) 150px; border-top: 1px solid var(--line-on-ink); text-align: center; }
.contact-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 900px; }
.contact-big { font-family: var(--title); font-size: 56px; font-weight: var(--title-weight); line-height: 1.05; margin: 0; text-wrap: balance; }
.contact-line { font-size: 20px; color: var(--cream-2); margin: 0 0 14px; }
.site-footer { position: relative; z-index: 2; background: #130F24; border-top: 1px solid var(--line-on-ink); padding: 26px var(--pad); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-row img { height: 36px; width: auto; opacity: .85; }
.social { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.social a {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--muted); transition: color .25s ease, background-color .25s ease;
}
.social a:hover { color: var(--accent); background: rgba(245,239,226,.06); }
.social svg { display: block; }

/* Menu overlay
   Two layers so big screens stay smooth: the blur only fades (cheap for the graphics chip),
   and a plain tint layer does the circle reveal from the hamburger. */
.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; padding: 40px;
}
.menu[hidden] { display: none; }
.menu::before, .menu::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.menu::before { backdrop-filter: blur(13px) saturate(140%); -webkit-backdrop-filter: blur(13px) saturate(140%); will-change: opacity; }
.menu::after { background: rgba(41, 32, 68, .56); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.menu.is-open::before { animation: veilIn .45s ease .2s both; }
.menu.is-open::after { animation: menuReveal .6s cubic-bezier(.7,0,.2,1) both; }
.menu.is-closing::before { animation: veilOut .4s ease both; }
.menu.is-closing::after { animation: menuHide .45s cubic-bezier(.7,0,.2,1) both; }
.menu.is-closing > * { opacity: 0; transition: opacity .2s ease; }
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes veilOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes menuReveal { from { clip-path: circle(0 at calc(100% - 64px) 42px); } to { clip-path: circle(150vmax at calc(100% - 64px) 42px); } }
@keyframes menuHide { from { clip-path: circle(150vmax at calc(100% - 64px) 42px); } to { clip-path: circle(0 at calc(100% - 64px) 42px); } }
.menu-nav { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.menu-nav a { font-family: var(--title); font-weight: var(--title-weight); font-size: 50px; line-height: 1.15; color: #EDE5D6; text-decoration: none; transition: color .25s ease; }
.menu-nav a:hover { color: var(--accent); }
.menu.is-open .menu-nav a { animation: menuItem .5s ease both; }
.menu.is-open .menu-nav a:nth-child(1) { animation-delay: .18s; }
.menu.is-open .menu-nav a:nth-child(2) { animation-delay: .24s; }
.menu.is-open .menu-nav a:nth-child(3) { animation-delay: .30s; }
.menu.is-open .menu-nav a:nth-child(4) { animation-delay: .36s; }
.menu.is-open .menu-nav a:nth-child(5) { animation-delay: .42s; }
.menu.is-open .menu-rule, .menu.is-open .menu-logo, .menu.is-open .social { animation: menuItem .5s ease .46s both; }
@keyframes menuItem { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.menu-rule { width: 64px; height: 1px; background: rgba(237,229,214,.35); }
.menu-logo { width: min(340px, 70vw); height: auto; }
.menu .social a { color: #EDE5D6; }
.menu .social svg { width: 24px; height: 24px; }
/* Short screens (iPad held sideways, small laptops): a more compact menu so it fits below the header and never runs off screen */
@media (min-width: 701px) and (max-height: 820px) {
  .menu { gap: 28px; overflow-y: auto; }
  .menu-nav { gap: 8px; }
  .menu-nav a { font-size: 40px; }
  .menu-logo { width: min(260px, 60vw); }
}

/* Inner pages */
.page-hero { position: relative; height: 74vh; min-height: 480px; overflow: hidden; background: #000; }
.page-hero.short { height: auto; min-height: 0; padding: 200px 0 72px; background: var(--ground); }
.page-hero.short .page-hero-copy { position: static; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Headers whose framing needs the whole photo (Ten Thousand Miles): grow to the photo's own 16:9 shape,
   up to the screen height, so wide screens show it top to bottom. Phones keep the usual height. */
.page-hero.full-frame { height: min(100vh, 56.25vw); }
.page-hero-copy { position: absolute; left: 0; right: 0; bottom: 64px; padding: 0 var(--pad); max-width: 1360px; margin: 0 auto; }
.page-hero .title-lg { font-size: 84px; }
.film-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.film-video { position: sticky; top: 110px; }
.video-facade {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 8px;
  overflow: hidden; background: #000; cursor: pointer; color: var(--cream);
}
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s ease, transform .6s ease; }
.video-facade:hover img { opacity: 1; transform: scale(1.02); }
.video-facade .play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
  border: 1.5px solid rgba(245,239,226,.85); background: rgba(27,21,48,.35);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.video-facade:hover .play { background: var(--accent); color: var(--pjs-ink); border-color: var(--accent); }
.video-label { position: absolute; left: 18px; bottom: 14px; font: 500 14px "Inter Tight", system-ui, sans-serif; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #000; }
.prose-wrap { max-width: 760px; }
.prose { font-size: 20px; line-height: 1.68; color: #E6DEEC; }
.prose p { margin: 0; }
.prose p + p, .prose p + figure, .prose figure + p { margin-top: 1.1em; }
.prose .lead { font-family: var(--title); font-size: 30px; line-height: 1.25; color: var(--cream); margin-bottom: .5em; }
.prose a { color: var(--accent); text-underline-offset: 4px; }
.prose-figure { margin: 1.6em 0; }
.prose-figure img { width: 100%; height: auto; border-radius: 8px; display: block; }
.credits { font-size: 15px !important; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--line-on-ink); padding-top: 18px; margin-top: 2em !important; }
.film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.card-still { position: relative; overflow: hidden; }
.card-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-still img, .journal-card:hover .card-still img { transform: scale(1.04); }
.card:hover .card-still, .journal-card:hover .card-still { transform: none; }
.next-film { padding-top: 56px; padding-bottom: 56px; }
.next-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.next-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.next-title { font-family: var(--title); font-size: 40px; line-height: 1.05; transition: color .25s ease; }
.next-link:hover .next-title { color: var(--accent); }
.reel-wrap { max-width: 1100px; display: flex; flex-direction: column; gap: 18px; }
.signature { font-family: var(--title); font-style: italic; font-size: 26px; }
.contact-hero { height: 64vh; }
.contact-line.small { margin-top: 18px; font-size: 15px; color: var(--muted); }
.footer-link { color: var(--muted); text-underline-offset: 3px; }
.footer-link:hover { color: var(--cream); }
.menu-nav a[aria-current="page"] { color: var(--accent); }

/* Logo intro (plays once per visit) */
.intro { display: none; }
html.intro-on { overflow: hidden; }
html.intro-on .intro {
  position: fixed; inset: 0; z-index: 90; display: block;
  background: #020202; transition: opacity .8s var(--ease);   /* matches the logo animation's opening frame */
}
.intro video { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: var(--ox, 50%) var(--oy, 50%); }
.intro.is-diving video { will-change: transform; }   /* only during the dive: Safari can stop repainting a video kept on its own layer */
.intro.is-leaving { opacity: 0; pointer-events: none; }
/* Teleport: rush into the moon, fill the screen with moonlight, land on the page.
   The dive runs in site.js at 24 frames per second; the landing dissolve runs on every frame. */
.intro.is-diving .intro-skip { opacity: 0 !important; transition: opacity .2s ease; animation: none; }
html.intro-on .intro.is-covered { background: var(--moon); }
/* The landing dissolve is driven by site.js; the skip fade's CSS transition must stay out of its way. */
html.intro-on .intro.is-diving { transition: none; }
.intro.is-covered video { visibility: hidden; }
.intro-skip {
  position: absolute; right: var(--pad); bottom: 28px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid rgba(245,239,226,.45); background: rgba(27,21,48,.35);
  color: var(--cream); font: 500 14px "Inter Tight", system-ui, sans-serif; cursor: pointer;
  opacity: 0; animation: introSkip .6s ease 1.2s forwards;
}
.intro-skip:hover { background: var(--cream); color: var(--pjs-ink); }
@keyframes introSkip { to { opacity: 1; } }
html.intro-on { background: #020202; }   /* no purple flash while the page (or a Safari preload reload) paints */

/* Scroll-linked motion (browsers that support it) */
.drift { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.04); } }
@supports (animation-timeline: view()) {
  .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  .settle { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
}
@keyframes rise { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Tablet and phone: no scroll holds, smaller type */
@media (max-width: 1000px) {
  .hold { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-xl { font-size: 72px; }
  .title-lg { font-size: 58px; }
  .studio-big { font-size: 52px; }
  .contact-big { font-size: 46px; }
  .film-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .film-video { position: static; }
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero .title-lg { font-size: 60px; }
}
@media (max-width: 700px) {
  :root { --pad: 22px; }
  .brand img { height: 44px; }
  .panel { min-height: 520px; }
  .panel-copy { bottom: 40px; }
  .placeholder-note { top: 84px; }
  .title-xl { font-size: 48px; }
  .title-lg, .title-md { font-size: 40px; }
  .tagline { font-size: 22px; }
  .grid-4, .grid-2, .film-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero { height: 62vh; min-height: 420px; }
  .page-hero.full-frame { height: 62vh; }
  .page-hero.short { padding: 150px 0 48px; }
  .page-hero .title-lg { font-size: 42px; }
  .page-hero-copy { bottom: 40px; }
  .prose { font-size: 18px; }
  .prose .lead { font-size: 24px; }
  .next-title { font-size: 30px; }
  .block { padding: 80px var(--pad) 70px; }
  .studio { padding: 96px var(--pad); }
  .studio-big { font-size: 38px; }
  .contact-big { font-size: 36px; }
  .contact { padding: 96px var(--pad) 100px; }
  .footer-row { justify-content: center; text-align: center; }
  .menu-nav a { font-size: 38px; }
}

/* Phones held upright: stills marked phone-wide show the wider view the film page uses
   (a full-height crop would cut a face), sitting in the upper part of the screen and
   fading into the dark band where the title sits. Shoreline uses this. */
@media (max-width: 700px) and (orientation: portrait) {
  .panel-img.phone-wide {
    height: 64%; bottom: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drift, .rise, .settle, .menu::before, .menu::after, .menu.is-open .menu-nav a, .menu.is-open .menu-rule, .menu.is-open .menu-logo, .menu.is-open .social { animation: none !important; }
  .site-header, .burger span, .pill, .card-still, .menu-nav a { transition: none; }
  .intro { display: none !important; }
}
.studio-link { color: var(--pjs-ink); align-self: flex-start; }
.studio-link:hover { color: var(--pjs-brass); }
/* Keep the logo and menu button readable over bright header photos (neutral, no tint) */
.page-hero .panel-shade { background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 24%), linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 35%, rgba(0,0,0,0) 60%), linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.7) 100%), radial-gradient(ellipse 80% 60% at 0% 100%, rgba(0,0,0,.55), rgba(0,0,0,0) 72%); }
/* iPad and phone browsers: their toolbars shrink while scrolling, which makes the screen taller.
   Size the film panels to the taller screen so no background strip shows beneath them,
   and lift the titles by the toolbar's height so they are never hidden behind it. */
@supports (height: 100lvh) {
  .panel { height: 100lvh; }
  .panel-copy { bottom: calc(64px + 100lvh - 100svh); }
  @media (max-width: 700px) { .panel-copy { bottom: calc(40px + 100lvh - 100svh); } }
}

/* Phones turned sideways: the screen is short, so the full-size titles landed on faces.
   Fit each panel to the screen and set a smaller title block in a narrow column on the
   left, clear of the faces in the middle of the frame. */
@media (orientation: landscape) and (max-height: 500px) {
  .panel { min-height: 0; }
  .panel-copy { right: auto; max-width: min(38vw, 330px); flex-direction: column; align-items: flex-start; gap: 12px; }
  .panel-copy { bottom: 22px; }
  .panel-text { gap: 6px; }
  .panel .eyebrow { font-size: 12px; }
  .panel .title-xl { font-size: 36px; }
  .panel .title-lg { font-size: 30px; }
  .panel .tagline { font-size: 17px; }
  .panel .logline { font-size: 14px; line-height: 1.4; }
}
@supports (height: 100lvh) {
  @media (orientation: landscape) and (max-height: 500px) { .panel-copy { bottom: calc(22px + 100lvh - 100svh); } }
}

/* Contact form */
.contact-form { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 22px; text-align: left; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-family: var(--label); font-size: 14px; font-weight: 500; color: var(--cream-2); letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--cream);
  background: rgba(245,239,226,.06); border: 1px solid rgba(245,239,226,.28); border-radius: 8px;
  padding: 14px 16px; transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 170px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: rgba(245,239,226,.1); }   /* a clear ring, not just a border tint */
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #E59A8A; }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile:empty { display: none; }
.form-send { align-self: flex-start; background: transparent; color: var(--cream); cursor: pointer; font: inherit; font-weight: 500; }
.form-send:disabled { opacity: .55; cursor: wait; }
.form-status { min-height: 1.5em; margin: 0; font-size: 17px; color: var(--cream-2); }
.form-status.err { color: #F0B3A6; }
.contact-form.sent .field-row, .contact-form.sent .field, .contact-form.sent .cf-turnstile, .contact-form.sent .form-send { display: none; }
.contact-form.sent .form-status { font-family: var(--title); font-size: 34px; line-height: 1.15; color: var(--cream); }
@media (max-width: 700px) { .field-row { grid-template-columns: minmax(0, 1fr); } .contact-form.sent .form-status { font-size: 28px; } }
