:root {
  --bg: #f6f3ee; --ink: #141414; --grey: #8a867f; --yellow: #f7c32e; --red: #b71c1c; --dark: #141414;
  --pad: clamp(20px, 4vw, 56px); --head: 'Bricolage Grotesque', system-ui, sans-serif; --body: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 19px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, iframe { display: block; max-width: 100%; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); background: rgba(246,243,238,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; letter-spacing: -.01em; font-size: 20px; }
.logo svg { width: 38px; height: 38px; overflow: visible; }
.top nav { display: flex; gap: 30px; font-size: 16px; font-weight: 500; }
.top nav a { opacity: .7; transition: opacity .2s; } .top nav a:hover, .top nav a.on { opacity: 1; }

/* hero */
.hero { min-height: 100svh; padding: 16vh var(--pad) 8vh; display: grid; grid-template-columns: 1.15fr .85fr; gap: 5vw; align-items: center; }
.hero h1 { font-family: var(--head); font-weight: 700; font-size: clamp(46px, 7.4vw, 128px); line-height: .95; letter-spacing: -.045em; max-width: 11ch; }
.hero h1 .dim { color: #a8a399; }
.hero p { max-width: 28em; margin: 36px 0 32px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; color: #33322e; }
.btn { display: inline-block; background: var(--ink); color: var(--bg); padding: 16px 32px; border-radius: 99px; font-size: 17px; font-weight: 700; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--red); }
.hero-fig { width: 100%; max-height: 80vh; aspect-ratio: 1; justify-self: end; border-radius: 22px; overflow: hidden; background: #f7c12d; }
video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* sections */
section { padding: 12vh var(--pad); }
.label { font-size: 15px; font-weight: 500; color: var(--grey); margin-bottom: 28px; }
.reel { background: var(--dark); padding: 10vh var(--pad); }
.reel .label { color: #8a867f; }
.frame { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 28px; }
.card { display: block; }
.card .th { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #ddd8cf; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover img { transform: scale(1.05); }
.card .meta { padding-top: 14px; display: flex; flex-direction: column; }
.card .c { color: var(--grey); font-size: 16px; } .card .t { font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
.grid .card:nth-child(even) { margin-top: 64px; }

/* project pages */
.lede { max-width: 36em; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.45; letter-spacing: -.01em; margin-bottom: 56px; }
.lede p + p { margin-top: 1em; }
.lede dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; font-size: 16px; line-height: 1.4; margin-top: 32px; letter-spacing: 0; } .lede dt { color: var(--grey); } .lede dd { margin: 0; }
.vids { display: grid; gap: 20px; margin-bottom: 40px; } .vids.multi { grid-template-columns: repeat(2, 1fr); }
.sec { display: grid; grid-template-columns: 1fr 3fr; gap: 28px; padding: 34px 0; border-top: 1px solid #d9d4cb; }
.sec h2 { font-family: var(--head); font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.sec.sub { padding: 18px 0; } .sec.sub h2 { font-size: 18px; }
.sec p, .sec ul, .sec dl, .sec blockquote { max-width: 42em; } .sec .vids { margin: 24px 0 0; max-width: none; } .sec p + p, .sec p + ul, .sec ul + p { margin-top: 1em; }
.sec ul { padding-left: 1.1em; } .sec li { margin-bottom: .7em; } .sec li::marker { color: var(--yellow); }
.sec a { border-bottom: 1px solid var(--yellow); }
.sec blockquote { font-size: 22px; line-height: 1.4; } .sec cite { display: block; margin-top: 12px; font-style: normal; font-size: 15px; color: var(--grey); }
.sec dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; font-size: 16px; } .sec dt { color: var(--grey); }
.sec dd { margin: 0; }
.card .th.ph { background: var(--yellow); display: grid; place-items: center; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }

/* footer */
footer { background: var(--dark); color: var(--bg); padding: 14vh var(--pad) 10vh; }
footer h2 { font-family: var(--head); font-weight: 700; font-size: clamp(38px, 6vw, 100px); line-height: .98; letter-spacing: -.04em; max-width: 12ch; }
.foot { display: grid; grid-template-columns: 1.3fr .7fr; gap: 6vw; align-items: center; }
.foot-fig { aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #000; }
footer h2 em { font-style: normal; color: var(--yellow); }
footer .row { margin-top: 48px; display: flex; gap: 28px; flex-wrap: wrap; align-items: center; color: #bdb8ad; }
footer .btn { background: var(--yellow); color: var(--ink); } footer a:not(.btn) { border-bottom: 1px solid #555; } footer .btn:hover { background: var(--bg); }

/* inner pages */
.page { padding: 20vh var(--pad) 12vh; }
.page h1 { font-family: var(--head); font-weight: 700; font-size: clamp(42px, 7vw, 112px); line-height: .96; letter-spacing: -.045em; margin-bottom: 40px; }
.page h1 small { display: block; font-family: var(--body); font-size: 18px; letter-spacing: 0; color: var(--grey); font-weight: 500; margin-bottom: 14px; }
.stack { display: grid; gap: 28px; margin-top: 40px; }
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6vw; align-items: start; }
.about p { margin-bottom: 1.2em; max-width: 34em; }
.about .portrait { aspect-ratio: 1; background: #000; border-radius: 22px; overflow: hidden; }

form { display: grid; gap: 18px; max-width: 640px; }
label { font-size: 15px; font-weight: 500; color: var(--grey); display: grid; gap: 6px; }
input, textarea { font: inherit; font-size: 18px; padding: 14px 0; border: 0; border-bottom: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 0; outline: 0; }
input:focus, textarea:focus { border-color: var(--red); }
textarea { min-height: 140px; resize: vertical; }
form .btn { border: 0; cursor: pointer; font: inherit; font-size: 17px; font-weight: 700; }
#msg { min-height: 1.5em; }
.hp { position: absolute; left: -9999px; }

/* puppet + curtain */
#curtain { position: fixed; inset: 0; z-index: 100; background: var(--red); clip-path: circle(150% at 50% 50%); pointer-events: none; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; } .grid .card:nth-child(even) { margin-top: 0; }
  .vids.multi { grid-template-columns: 1fr; } .sec { grid-template-columns: 1fr; gap: 8px; }
  .hero { grid-template-columns: 1fr; padding-top: 14vh; } .hero-fig { max-height: none; } .foot { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; } .top nav { gap: 18px; font-size: 15px; } .logo span { display: none; }
}
@media (prefers-reduced-motion: reduce) { #curtain, #runner { display: none; } html { scroll-behavior: auto; } }

/* scroll runner: runs along the bottom as you scroll (see main.js) */
#runner { position: fixed; left: 0; bottom: 8px; width: 56px; height: 54px; z-index: 30; color: var(--red); pointer-events: none; overflow: visible; transform-origin: 50% 50%; will-change: transform; }

/* social icons */
.socials { display: flex; gap: 14px; margin-top: 28px; }
footer .socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #555; color: #bdb8ad; transition: background .2s, color .2s, border-color .2s; }
footer .socials a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.socials svg { width: 20px; height: 20px; }
footer.mini { display: flex; justify-content: space-between; align-items: center; padding: 28px var(--pad) 72px; font-size: 15px; color: #bdb8ad; }
footer.mini .socials { margin: 0; }
