/* Paper Comet Studios homepage, comet-O redesign (2026-11-08).
   Brand: direction 3, comet A. Night navy, cream, gold; the comet's teal ion tail and orange dust tail are the only accents.
   Classroom room = paper and teal; Pictures room = screening-room dark and dust orange. */

:root {
  --sky-top: #0B1430; --sky-mid: #16244A; --sky-bot: #23365F; --deep: #0A1228;
  --cream: #F6EEDF; --cream-2: #EADFCB; --cream-3: #D9CAB0; --ink: #1B2440;
  --gold: #F4B942; --gold-d: #C98A12; --orange: #EE8434; --orange-d: #B9601E; --teal: #36A99A; --teal-d: #1F7468; --class-blue: #12204A;
  --screen: #0F1A3C;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --wm: clamp(46px, 10.4vw, 164px);
  --pad: clamp(20px, 5vw, 72px);
  --max: 1220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--deep); color: var(--cream); font: 400 18px/1.6 var(--sans); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font: 600 clamp(34px, 4.6vw, 62px)/1.05 var(--serif); letter-spacing: -0.012em; text-wrap: balance; }
h3 { font: 600 22px/1.25 var(--serif); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 500 17px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 24px -8px rgba(244,185,66,.6); }
.btn-gold:hover { box-shadow: 0 10px 30px -8px rgba(244,185,66,.75); }
.btn-ghost { border-color: rgba(246,238,223,.4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(246,238,223,.06); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-dust { background: var(--orange); color: #1A0E05; }
.btn-big { min-height: 60px; padding: 0 32px; font-size: clamp(17px, 2.2vw, 22px); }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.link:hover { text-decoration-thickness: 3px; }

/* top bar */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); transition: background-color .3s ease, box-shadow .3s ease, transform .35s ease; }
.bar.is-solid { background: rgba(10,18,40,.96); box-shadow: 0 1px 0 rgba(246,238,223,.08); }
.bar.is-hidden { transform: translateY(-100%); }
.bar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px/1 var(--serif); letter-spacing: .01em; opacity: 0; transition: opacity .4s ease; }
.bar.is-solid .bar-brand, .bar-brand:focus-visible { opacity: 1; }
.bar-icon { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(246,238,223,.12); }
.bar-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.bar-links a { text-decoration: none; font-weight: 500; font-size: 16px; color: rgba(246,238,223,.82); }
.bar-links a:hover { color: var(--cream); }
.bar-links .bar-cta { color: var(--ink); background: var(--gold); padding: 10px 18px; border-radius: 999px; }
@media (max-width: 720px) { .bar-links a:not(.bar-cta) { display: none; } .bar-brand span { display: none; } }

/* ---------- HERO ---------- */
.sky { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 110%, #2D3F6B 0%, transparent 60%), linear-gradient(170deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-bot) 100%); cursor: crosshair; }
.sky-canvas, .contact-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.sky-copy { position: relative; z-index: 2; text-align: center; padding: 110px var(--pad) clamp(170px, 24vw, 320px); cursor: auto; }

.wm { display: flex; flex-direction: column; align-items: center; color: var(--cream); }
.wm-line { display: inline-flex; align-items: center; white-space: nowrap; font: 600 var(--wm)/1 var(--serif); letter-spacing: .025em; }
.wm-l { display: inline-block; position: relative; z-index: 1; transition: opacity .35s ease, text-shadow .6s ease, transform .5s cubic-bezier(.2,.9,.3,1.3); }
.wm-sp { width: .2em; }
.wm-o { position: relative; z-index: 0; display: inline-block; width: calc(var(--wm) * .726); height: calc(var(--wm) * .66); margin: 0 calc(var(--wm) * .03); }
.comet { position: absolute; left: 50%; top: 50%; width: calc(var(--wm) * .66); height: calc(var(--wm) * .66); transform: translate(-50%, -50%); overflow: visible; pointer-events: none; }
.wm-studios { font: 500 calc(var(--wm) * .22)/1 var(--sans); letter-spacing: .62em; padding-left: .62em; text-transform: uppercase; color: var(--gold); margin-top: calc(var(--wm) * .22); }
.sky-tag { font: italic 400 clamp(22px, 2.8vw, 36px)/1.25 var(--serif); margin-top: clamp(22px, 3vw, 38px); color: rgba(246,238,223,.92); }
.sky-lede { max-width: 34em; margin: 14px auto 0; color: rgba(246,238,223,.72); font-size: clamp(16px, 1.6vw, 19px); }
.sky-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.sky-hint { position: absolute; z-index: 2; right: var(--pad); bottom: 22px; font: italic 400 15px/1 var(--serif); color: rgba(246,238,223,.45); pointer-events: none; transition: opacity .6s ease; }
.sky-hint.is-gone { opacity: 0; }
.sky-place { position: absolute; z-index: 4; left: 50%; bottom: clamp(16px, 2.4vw, 28px); transform: translateX(-50%); display: flex; align-items: baseline; gap: 12px; white-space: nowrap; margin: 0; pointer-events: none; }
.sky-place svg { width: 11px; height: 15px; fill: var(--gold); align-self: center; }
.sky-place-n { font: italic 400 clamp(16px, 1.5vw, 19px)/1 var(--serif); color: var(--cream); }
.sky-place-c { font: 500 13px/1 var(--sans); letter-spacing: .04em; color: rgba(246,238,223,.55); }
.js .sky-place { opacity: 0; transition: opacity 1s ease; }
.js .is-landed .sky-place { opacity: 1; transition-delay: 1.5s; }
@media (max-width: 420px) { .sky-place-c { display: none; } }
.horizon { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(150px, 24vw, 330px); z-index: 3; pointer-events: none; }

/* the intro: before the strike, letters wait in the dark; MET and everything below appear after it */
.js .wm-l { opacity: 0; transform: translateY(.1em); filter: blur(8px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1), filter .8s ease; }
.js .wm-l.is-lit { opacity: 1; transform: none; filter: none; }
.js .comet { opacity: 0; }
.js .wm-studios, .js .sky-tag, .js .sky-lede, .js .sky-ctas { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1), letter-spacing 1.1s cubic-bezier(.2,.8,.2,1); }
.js .wm-studios { letter-spacing: 1.1em; }
.js .is-landed .wm-studios { opacity: 1; transform: none; letter-spacing: .62em; transition-delay: .55s; }
.js .is-landed .sky-tag { opacity: 1; transform: none; transition-delay: .9s; }
.js .is-landed .sky-lede { opacity: 1; transform: none; transition-delay: 1.1s; }
.js .is-landed .sky-ctas { opacity: 1; transform: none; transition-delay: 1.25s; }
.strike-ring { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid rgba(255,231,168,.9); pointer-events: none; animation: ring 1.1s cubic-bezier(.1,.7,.3,1) forwards; }
.strike-flash { position: absolute; left: 50%; top: 50%; width: 300%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,247,226,.95) 0%, rgba(244,185,66,.35) 25%, transparent 60%); pointer-events: none; animation: flash .9s ease-out forwards; }
@keyframes ring { to { transform: scale(34); opacity: 0; border-width: .2px; } }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.6); } }

/* ---------- ROOMS ---------- */
.room-name { display: flex; align-items: center; gap: 10px; font: 500 17px/1 var(--sans); margin-bottom: 18px; }
.room-name sup { font-size: .55em; }
.room-dot { width: 10px; height: 10px; }

/* Classroom: a blue desk with real paper on it */
.paper { position: relative; background-color: var(--class-blue); color: var(--cream); padding: clamp(80px, 11vw, 150px) var(--pad);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .7 0 0 0 0 .8 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
.paper .room-dot { fill: var(--teal); }
.paper .room-name { color: #5CC8B8; }
.paper-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.paper-copy > p { margin-top: 20px; max-width: 32em; color: #D3D9E8; }
.paper .pack-card { color: var(--ink); }
.paper .btn-ink { background: var(--gold); color: var(--ink); }
.pack-card { margin: 32px 0; padding: 22px 26px 18px; background: #FFFCF5; border: 1px solid var(--cream-3); border-radius: 3px; position: relative; max-width: 30em;
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(54,169,154,.18) 31px 32px); background-position: 0 50px; box-shadow: 0 22px 36px -20px rgba(3,8,22,.7); }
.pack-card::before { content: ""; position: absolute; left: 50px; top: 0; bottom: 0; width: 1.5px; background: rgba(217,85,59,.35); }
.pack-card h3 { font-size: 19px; padding-left: 44px; margin-bottom: 6px; }
.pack-list { list-style: none; margin: 0; padding: 0 0 0 44px; }
.pack-list li { line-height: 32px; font-size: 17px; position: relative; }
.pack-list li::before { content: ""; position: absolute; left: -30px; top: 9px; width: 12px; height: 6px; border-left: 2px solid var(--teal-d); border-bottom: 2px solid var(--teal-d); transform: rotate(-45deg); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* the Pack 1 viewer: real pages stacked on the desk; pick one and it lifts to the top */
.pack { margin: 0; }
.pack-stage { position: relative; width: min(calc(100% - 3 * var(--fan, 16px) - 12px), 440px); aspect-ratio: 935 / 1210; margin: 10px auto 0; }
.pg { position: absolute; inset: 0; background: #FFFCF5; border-radius: 2px; overflow: hidden; cursor: pointer;
  box-shadow: 0 26px 44px -22px rgba(3,8,22,.75);
  transform: translate(calc(var(--k, 0) * var(--fan, 16px)), calc(var(--k, 0) * -12px)) rotate(calc(var(--k, 0) * 2.4deg - 1.4deg));
  z-index: calc(10 - var(--k, 0)); transition: transform .65s cubic-bezier(.2,.8,.2,1), box-shadow .65s ease, filter .65s ease; }
.pg[data-k="0"] { cursor: default; box-shadow: 0 34px 60px -22px rgba(3,8,22,.85); }
.pg:not([data-k="0"]) { filter: brightness(.96); }
.pg:not([data-k="0"]):hover { transform: translate(calc(var(--k) * var(--fan, 16px) + 6px), calc(var(--k) * -12px - 8px)) rotate(calc(var(--k) * 2.4deg - 1deg)); }
.pg.is-lifting { animation: lift .65s cubic-bezier(.2,.8,.2,1); }
@keyframes lift { 40% { transform: translate(-30px, -36px) rotate(-5deg); } }
.pg img { width: 100%; height: 100%; object-fit: cover; }
.pg-film { padding: 6% 6% 0; display: flex; flex-direction: column; }
.pg-film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #222; }
.pg-film-t { font: 600 clamp(20px, 2.2vw, 26px)/1.15 var(--serif); margin-top: 14px; color: var(--ink); }
.pg-film-d { margin-top: 6px; font-size: 15px; line-height: 1.5; color: #4A5470; }
.pack-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.pack-tabs button { font: 500 15px/1 var(--sans); color: var(--cream); background: transparent; border: 1.5px solid rgba(246,238,223,.32); border-radius: 999px; padding: 10px 16px; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.pack-tabs button:hover { border-color: var(--cream); }
.pack-tabs button[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.stamp { position: absolute; right: -22px; top: 30%; z-index: 20; font: 600 15px/1 var(--sans); color: var(--teal-d); border: 2px solid var(--teal-d); border-radius: 4px; padding: 9px 12px; transform: rotate(-8deg); opacity: .85; background: rgba(255,252,245,.75); pointer-events: none; }
.credit { margin: 22px auto 0; text-align: center; font-size: 13px; line-height: 1.5; color: #A9B3CC; max-width: 40em; }


/* Pictures: the screening room */
.screen { background: var(--screen); padding: clamp(80px, 10vw, 130px) var(--pad) clamp(60px, 7vw, 96px); position: relative; overflow: hidden; }
.screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 45% at 50% 45%, rgba(246,238,223,.05), transparent 70%); pointer-events: none; }
.screen .room-dot { fill: var(--orange); }
.screen .room-name { color: var(--orange); }
.screen-inner { position: relative; max-width: var(--max); margin: 0 auto; }
.screen-head { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: clamp(30px, 4vw, 48px); }
.feature { position: relative; }
.letterbox { position: relative; aspect-ratio: 1920 / 804; background: #000; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgba(246,238,223,.07), 0 50px 90px -50px rgba(0,0,0,.9); }
.letterbox::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,14,.88) 0%, rgba(5,7,14,.35) 34%, transparent 58%); pointer-events: none; }
.letterbox video { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease; }
.letterbox.is-swapping video { opacity: 0; }
.feature-meta { position: absolute; left: clamp(20px, 3.4vw, 48px); right: clamp(20px, 3.4vw, 48px); bottom: clamp(18px, 3vw, 40px); z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 28px; }
.feature-meta h3 { font: 600 clamp(30px, 4.2vw, 60px)/1 var(--serif); grid-column: 1; }
.feature-meta p { grid-column: 1; margin: 10px 0 0; max-width: 36em; color: rgba(246,238,223,.82); font: italic 400 clamp(16px, 1.5vw, 20px)/1.4 var(--serif); }
.feature-meta p:empty { display: none; }
.feature-meta .btn { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.reel { list-style: none; padding: 0; margin: clamp(16px, 2vw, 24px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.film { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr auto; row-gap: 10px; width: 100%; }
.film video { grid-column: 1 / -1; width: 100%; aspect-ratio: 1920 / 804; object-fit: cover; border-radius: 2px; background: #111; filter: saturate(.8) brightness(.78); transition: filter .35s ease, transform .35s ease; outline: 1.5px solid transparent; outline-offset: 4px; }
.film:hover video, .film:focus-visible video { filter: none; transform: translateY(-3px); }
.film.is-on video { filter: none; outline-color: var(--gold); }
.film:focus-visible { outline: none; }
.film:focus-visible video { outline-color: var(--cream); }
.film-t { font: 600 19px/1.2 var(--serif); }
.film-s { font-size: 14px; color: rgba(246,238,223,.6); align-self: center; }
.screen-more { margin-top: 30px; }

/* Work with us */
.work { background: linear-gradient(180deg, var(--sky-top), var(--sky-mid)); padding: clamp(80px, 11vw, 150px) var(--pad); }
.work-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.work-copy > p { margin: 22px 0; max-width: 32em; color: rgba(246,238,223,.78); }
.ticks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.orbit { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 44px; }
.orbit li { display: grid; grid-template-columns: 48px 1fr; gap: 22px; align-items: start; }
.orbit h3 { font-size: clamp(22px, 2vw, 26px); }
.orbit-n { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 600 20px/1 var(--serif); color: var(--ink);
  background: radial-gradient(circle at 38% 36%, #fff 0%, #FFF8EA 40%, var(--cream) 75%, var(--gold) 100%); box-shadow: 0 0 0 6px rgba(244,185,66,.12), 0 0 28px rgba(244,185,66,.35); }
.orbit p { margin-top: 6px; color: rgba(246,238,223,.78); font-size: 18px; }

/* About */
.about { background: #1B2A52; padding: clamp(70px, 9vw, 120px) var(--pad); border-top: 1px solid rgba(246,238,223,.08); border-bottom: 1px solid rgba(246,238,223,.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .93 0 0 0 0 .87 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
.about-inner { max-width: var(--max); margin: 0 auto; }
.tenets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin: clamp(30px, 4vw, 48px) 0 0; }
.tenets div { border-top: 2px solid rgba(244,185,66,.45); padding-top: 18px; }
.tenets dt { font: 600 22px/1.25 var(--serif); }
.tenets dd { margin: 8px 0 0; color: rgba(246,238,223,.74); }

/* Contact */
.contact { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(100px, 13vw, 170px) var(--pad); background: linear-gradient(180deg, var(--sky-mid), var(--sky-top) 70%, var(--deep)); }
.contact-inner { max-width: 980px; margin: 0 auto; }
.contact-inner > p { margin: 14px 0 30px; color: rgba(246,238,223,.75); font-size: 19px; }
.socials { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.socials a { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(246,238,223,.22); text-decoration: none; font-size: 15px; color: rgba(246,238,223,.85); }
.socials a:hover { border-color: var(--gold); color: var(--cream); }
.pay { margin: 56px auto 0; max-width: 560px; padding: 28px; border-radius: 16px; background: rgba(10,18,40,.55); border: 1px solid rgba(246,238,223,.1); }
.pay p { margin: 8px 0 18px; color: rgba(246,238,223,.72); font-size: 16px; }

/* Footer */
.foot { background: var(--deep); padding: 48px var(--pad) 40px; text-align: center; color: rgba(246,238,223,.55); font-size: 14px; }
.foot-wm { width: min(400px, 78vw); height: auto; margin: 0 auto 18px; opacity: .9; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 12px; }
.foot a { color: rgba(246,238,223,.75); text-decoration: none; }
.foot a:hover { color: var(--cream); text-decoration: underline; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .paper-inner, .work-inner, .feature { grid-template-columns: 1fr; }
  .tenets { grid-template-columns: 1fr; }
  .reel { grid-template-columns: repeat(3, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .reel li { scroll-snap-align: start; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .sky-copy { padding-top: 104px; }
  .sky-hint { display: none; }
  .reel { grid-template-columns: repeat(3, 72%); }
  .stamp { right: -8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* the logo knocks the C out of the tail with a sky-coloured outline */
.wm-c { -webkit-text-stroke: calc(var(--wm) * .055) #16244A; paint-order: stroke fill; }

/* ?still (screenshots): keep the hero one screen tall even in a tall capture window */
.still .sky { min-height: 0; height: var(--still-h, 900px); }

/* ---------- the comet's trail down the page ---------- */
main { position: relative; }
.trail { position: absolute; left: 0; top: 0; width: 1px; height: 1px; visibility: hidden; pointer-events: none; } /* geometry only */
.trail-chunks { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 2; pointer-events: none; }
.trail-chunks > svg { position: absolute; overflow: visible; }
.trail-head { position: absolute; left: 0; top: 0; width: 140px; height: 40px; transform-origin: 120px 20px; will-change: transform; opacity: 0; transition: opacity .4s ease; }
.trail-head.is-on { opacity: 1; }
.paper-inner, .screen-inner, .work-inner, .about-inner { position: relative; z-index: 3; }
/* what the comet lights as it passes */
.room-dot { transition: transform .5s cubic-bezier(.2,.9,.3,1.4), filter .5s ease; }
.js .room-dot { filter: grayscale(1) opacity(.45); }
.js .room-dot.is-reached { filter: drop-shadow(0 0 6px currentColor); transform: scale(1.5); }
.paper .room-dot { color: var(--teal); } .screen .room-dot { color: var(--orange); }
.js .orbit-n { background: #26375E; color: rgba(246,238,223,.55); box-shadow: inset 0 0 0 1.5px rgba(246,238,223,.18); transition: background .5s ease, color .5s ease, box-shadow .6s ease, transform .5s cubic-bezier(.2,.9,.3,1.4); }
.js .orbit-n.is-reached { background: radial-gradient(circle at 38% 36%, #fff 0%, #FFF8EA 40%, var(--cream) 75%, var(--gold) 100%); color: var(--ink); transform: scale(1.06); box-shadow: 0 0 0 6px rgba(244,185,66,.12), 0 0 30px rgba(244,185,66,.45); }
.about-inner { position: relative; }
.trail-star { position: absolute; left: -34px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--cream) 45%, var(--gold) 100%); transition: transform .5s cubic-bezier(.2,.9,.3,1.4), box-shadow .5s ease, opacity .5s ease; }
.js .trail-star { opacity: .4; transform: scale(.7); }
.js .trail-star.is-reached { opacity: 1; transform: scale(1.2); box-shadow: 0 0 0 5px rgba(244,185,66,.14), 0 0 22px rgba(244,185,66,.6); }
.js .tenets div { border-top-color: transparent; background: linear-gradient(rgba(244,185,66,.5), rgba(244,185,66,.5)) top left / 0 2px no-repeat; transition: background-size 1s cubic-bezier(.2,.8,.2,1); }
.js .about-inner.is-reached .tenets div { background-size: 100% 2px; }
.js .about-inner.is-reached .tenets div:nth-child(2) { transition-delay: .15s; }
.js .about-inner.is-reached .tenets div:nth-child(3) { transition-delay: .3s; }
#contact-title { transition: text-shadow .8s ease; }

@media (max-width: 720px) { .trail-star { left: -14px; width: 9px; height: 9px; } }

/* nothing on the page may push it wider than the screen */
.paper, .screen, .work, .about { overflow-x: clip; }
@media (max-width: 560px) { .pack { --fan: 9px; } }

.pg-film-k { margin-top: 16px; font: 600 13px/1 var(--sans); letter-spacing: .02em; color: var(--teal-d); }
.pg-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.pg-thumbs button { all: unset; cursor: pointer; display: grid; gap: 6px; font: 500 12px/1.2 var(--sans); color: #4A5470; text-align: center; }
.pg-thumbs img { width: 100%; aspect-ratio: 935 / 520; object-fit: cover; object-position: top; border: 1px solid var(--cream-3); border-radius: 2px; transition: transform .25s ease, box-shadow .25s ease; }
.pg-thumbs button:hover img, .pg-thumbs button:focus-visible img { transform: translateY(-3px); box-shadow: 0 8px 16px -10px rgba(27,36,64,.5); }
.pg-thumbs button:focus-visible { outline: 2px solid var(--teal-d); outline-offset: 3px; border-radius: 3px; }

.foot-pay { margin-bottom: 10px; color: rgba(246,238,223,.7); }
.foot-pay a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .feature-meta { position: static; display: block; margin-top: 18px; } .letterbox::after { display: none; } .feature-meta .btn { margin-top: 16px; } }
@media (max-width: 560px) { .reel { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; } }

.sky-copy { will-change: transform, opacity; }

/* Paying an invoice: same Stripe link as itzjsn.com, pays Paper Comet Studios LLC */
.pay { margin: clamp(48px, 6vw, 72px) auto 0; max-width: 680px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 32px; align-items: center; text-align: left;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 32px); border: 1px solid rgba(246,238,223,.16); border-radius: 14px; background: rgba(10,18,40,.6); scroll-margin-top: 90px; }
.pay h3 { grid-column: 1; }
.pay p { grid-column: 1; margin: 0; font-size: 15px; line-height: 1.55; color: rgba(246,238,223,.74); }
.pay .btn { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
@media (max-width: 600px) { .pay { grid-template-columns: 1fr; } .pay .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; } }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- What we make: the service index, sitting on the dark ground below the mountains ---------- */
.make { position: relative; background: #0D1631; padding: clamp(70px, 9vw, 130px) var(--pad) clamp(80px, 10vw, 140px); overflow-x: clip; }
.make .room-dot { fill: var(--gold); color: var(--gold); }
.make .room-name { color: var(--gold); }
.make-inner { position: relative; z-index: 3; max-width: var(--max); margin: 0 auto; }
.make-head { max-width: 40em; }
.make-head > p:last-child { margin-top: 20px; max-width: 34em; color: #C9D1E4; }
.make-list { list-style: none; margin: clamp(36px, 5vw, 60px) 0 0; padding: 0; border-bottom: 1px solid rgba(246,238,223,.12); }
.make-list a { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) 8.5rem; gap: 8px clamp(20px, 3vw, 44px); align-items: baseline;
  padding: clamp(20px, 2.4vw, 28px) clamp(6px, 1.2vw, 16px); border-top: 1px solid rgba(246,238,223,.12); text-decoration: none; transition: background-color .25s ease; }
.mk-n { font: 600 clamp(24px, 2.6vw, 34px)/1.1 var(--serif); letter-spacing: -0.01em; transition: color .25s ease; }
.mk-d { color: rgba(246,238,223,.7); font-size: 17px; line-height: 1.5; max-width: 34em; }
.mk-p { justify-self: end; font: 600 clamp(22px, 2.2vw, 28px)/1 var(--serif); color: var(--gold); white-space: nowrap; transition: transform .25s ease; }
.mk-p small { font: 500 14px/1 var(--sans); color: rgba(246,238,223,.6); letter-spacing: .01em; }
.mk-q { font: italic 400 clamp(19px, 1.8vw, 23px)/1 var(--serif); color: rgba(246,238,223,.75); }
.make-list a:hover { background: rgba(246,238,223,.035); }
.make-list a:hover .mk-n { color: var(--gold); }
.make-list a:hover .mk-p { transform: translateX(-6px); }
.make-more { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(30px, 4vw, 44px); }
@media (max-width: 760px) {
  .make-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .mk-d { grid-column: 1 / -1; grid-row: 2; font-size: 16px; }
}

/* About: the founder, then the tenets */
.founder { max-width: 44em; }
.founder p { margin: 20px 0 18px; color: rgba(246,238,223,.8); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; }
.contact-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.make-inner { position: relative; z-index: 3; }
