/* Schuylkill Pictures — Split Frame
   Words hold still on the left; pictures move on the right. */

@font-face { font-family: 'Syne'; src: url('../assets/fonts/Syne-VF.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../assets/fonts/Figtree-VF.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --white: #FBFAF7;
  --ink: #1E1E22;
  --ink-2: #5B5B63;
  --line: rgba(30, 30, 34, .14);
  --violet: #5B4FC9;
  --violet-deep: #463BA8;
  --violet-soft: #E7E4F7;
  --display: 'Syne', system-ui, sans-serif;
  --sans: 'Figtree', system-ui, sans-serif;
  --ease: cubic-bezier(.45, 0, .25, 1);
  --pad: clamp(24px, 3vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--violet); color: var(--white); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.on-violet :focus-visible { outline-color: var(--white); }

/* ===== Frame ===== */
.split { display: grid; grid-template-columns: minmax(400px, 40%) minmax(0, 1fr); }

/* Left: the fixed panel */
.left { position: sticky; top: 0; height: 100vh; padding: var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-right: 1px solid var(--line); background: var(--white); z-index: 2; }
.left .intro { display: flex; flex-direction: column; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 4.6vw, 88px); line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
h1 span { color: var(--violet); }
.sub { margin-top: 26px; font-size: 19px; line-height: 1.45; max-width: 460px; font-weight: 500; }
.support { margin-top: 14px; color: var(--ink-2); max-width: 460px; font-size: 16px; text-wrap: pretty; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: var(--violet); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: var(--white); color: var(--violet-deep); }
.btn-white:hover { background: var(--ink); color: var(--white); }

/* "Now showing" and scroll progress */
.now { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: 13px; color: var(--ink-2); position: relative; }
.now strong { display: block; color: var(--ink); font-weight: 600; font-size: 15px; transition: opacity .3s var(--ease); }
.now strong.is-changing { opacity: 0; }
.progress { position: absolute; top: -1px; left: 0; height: 2px; width: 100%; background: var(--violet); transform-origin: left; transform: scaleX(0); }

/* Right: the moving pictures */
.right { min-width: 0; }
.panel { position: relative; height: 100vh; min-height: 560px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--violet-soft); }
.panel > video, .panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel > img { transition: transform 4s var(--ease), opacity .8s var(--ease); }
.panel:hover > img { transform: scale(1.05); }
.tag { position: absolute; left: 24px; bottom: 22px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 4px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair .panel + .panel { border-left: 1px solid var(--line); }

.reel-control { position: absolute; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.reel-control:hover { background: var(--violet); color: var(--white); }
.reel-control svg { width: 16px; height: 16px; }
.reel-control .i-play { display: none; }
.is-paused .reel-control .i-play { display: block; }
.is-paused .reel-control .i-pause { display: none; }

/* Text panels */
.panel.text { height: auto; min-height: 100vh; padding: clamp(40px, 6vw, 104px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.kicker { font-size: 14px; font-weight: 600; color: var(--violet); }
.big { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3vw, 56px); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; max-width: 980px; }
.big span { color: var(--violet); }
.body { color: var(--ink-2); max-width: 640px; text-wrap: pretty; }
.on-violet { background: var(--violet); color: var(--white); }
.on-violet .kicker { color: var(--violet-soft); }
.on-violet .big span { color: var(--violet-soft); }
.on-violet .body { color: rgba(251, 250, 247, .82); }

.list { border-top: 1px solid rgba(30, 30, 34, .18); max-width: 760px; }
.list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(30, 30, 34, .18); text-decoration: none; font-weight: 500; font-size: 19px; transition: padding-left .45s var(--ease), color .3s var(--ease); }
.list a span { transition: transform .45s var(--ease); }
.list a:hover { padding-left: 10px; color: var(--violet); }
.list a:hover span { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(30, 30, 34, .2); text-decoration: none; font-weight: 500; font-size: 15px; background: var(--white); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.chips a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Contact block (component) inside the closing panel */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 860px; border-top: 1px solid rgba(251, 250, 247, .3); padding-top: 24px; font-size: 15px; }
.contact span { display: block; font-size: 13px; opacity: .75; margin-bottom: 4px; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal { font-size: 13px; opacity: .7; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 860px; }
.legal a { text-decoration: none; }

/* ===== Nav (component) ===== */
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav .brand img { width: 44px; height: 44px; border-radius: 50%; }
.site-nav nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
.site-nav nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); position: relative; transition: color .3s var(--ease); }
.site-nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--violet); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.site-nav nav a:hover { color: var(--ink); }
.site-nav nav a:hover::after, .site-nav nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }

/* ===== Motion ===== */
.js .panel > img { opacity: 0; }
.js .panel > img.is-loaded { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .left .intro > * { animation: rise 1s var(--ease) both; }
.js .left .intro > *:nth-child(2) { animation-delay: .1s; }
.js .left .intro > *:nth-child(3) { animation-delay: .2s; }
.js .left .intro > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ===== Smaller screens: panels stack, words first ===== */
@media (max-width: 1100px) {
  .site-nav nav { gap: 16px; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .left { position: relative; height: auto; min-height: 88vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .now { display: none; }
  .panel { height: 72vh; min-height: 420px; }
  .pair { grid-template-columns: 1fr; }
  .pair .panel + .panel { border-left: 0; }
  .contact { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { flex-wrap: wrap; }
  .site-nav nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-top: 8px; }
  .site-nav.is-open nav { display: flex; }
  .site-nav nav a { font-family: var(--display); font-weight: 600; font-size: 30px; color: var(--ink); min-height: 56px; border-bottom: 1px solid var(--line); }
  .site-nav nav a::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .left .intro > * { animation: none; }
}

/* ===== Inner pages ===== */
.left { overflow-y: auto; }
.left h1.page { font-size: clamp(40px, 4vw, 72px); }

/* Jump list in the left panel; the current panel is marked */
.jumps { display: flex; flex-direction: column; margin-top: 30px; border-top: 1px solid var(--line); max-width: 460px; }
.jumps a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .3s var(--ease), padding-left .45s var(--ease); }
.jumps a::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); align-self: center; opacity: 0; transition: opacity .3s var(--ease); }
.jumps a:hover { color: var(--ink); padding-left: 6px; }
.jumps a[aria-current="true"] { color: var(--ink); }
.jumps a[aria-current="true"]::after { opacity: 1; }

/* Filter buttons (productions) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; max-width: 480px; }
.filters button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 500 15px var(--sans); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Service detail panels */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; max-width: 760px; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid rgba(30,30,34,.14); font-size: 14px; font-weight: 500; }
.lead { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.45; font-weight: 500; max-width: 720px; text-wrap: pretty; }

/* Project panels: still with a title plate */
.plate { position: absolute; left: 24px; bottom: 24px; right: 24px; max-width: 520px; background: var(--white); border-radius: 6px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; transition: transform .5s var(--ease); }
.plate .cat { font-size: 13px; font-weight: 600; color: var(--violet); }
.plate .title { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -.01em; }
.plate .log { font-size: 15px; color: var(--ink-2); }
.panel:hover .plate { transform: translateY(-4px); }
.panel[hidden] { display: none; }
a.panel { display: block; text-decoration: none; color: inherit; }
.empty { display: none; }
.empty.is-on { display: flex; }

/* Philosophy */
.tenets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(30,30,34,.18); max-width: 900px; }
.tenets div { padding: 24px 24px 26px 0; border-bottom: 1px solid rgba(30,30,34,.18); }
.tenets div:nth-child(odd) { border-right: 1px solid rgba(30,30,34,.18); }
.tenets div:nth-child(even) { padding-left: 24px; }
.tenets h3 { font-family: var(--display); font-weight: 600; font-size: 24px; margin-bottom: 8px; }
.tenets p { color: var(--ink-2); font-size: 16px; }

/* Contact form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; max-width: 860px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { background: var(--white); border: 1px solid rgba(30,30,34,.2); border-radius: 4px; color: var(--ink); font: 400 17px var(--sans); padding: 13px 14px; min-height: 52px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(91,79,201,.18); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #B23A48; }
.details { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; max-width: 460px; border-top: 1px solid var(--line); padding-top: 22px; }
.details span { display: block; font-size: 13px; color: var(--ink-2); }
.details p { font-weight: 500; }
.details a { text-decoration: none; color: var(--violet); }
.details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sent { display: none; }
.sent.is-on { display: flex; }

@media (max-width: 900px) {
  .left { overflow: visible; }
  .tenets { grid-template-columns: 1fr; }
  .tenets div:nth-child(odd) { border-right: 0; }
  .tenets div:nth-child(even) { padding-left: 0; }
  .form { grid-template-columns: 1fr; }
}
