/* charlesscottbell.com. Shares the type of artkid.media and afterlife-film.com (Inter and IBM Plex Mono, mono labels)
   with upright, lighter titles and a few of Art Kid's touches: the five-color tick, the pink chip, colored row dots, color
   underlines on hover and the viewer wipe. Light only. Nothing plays on its own. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('/assets/fonts/inter-var-latin-v20.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/plexmono-400-latin-v20.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'); size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/courier-prime-regular.woff2') format('woff2'); }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white: #FFFFFF; --black: #080808;
  --g100: #F7F7F7; --g200: #EBEBEB; --g400: #6E6E6E; --g600: #555555;
  --lime: #C5E838; --pink: #E8368B; --pink-deep: #D81C79; --cyan: #40C4C4; --blue: #3355CC; --navy: #1C3545; --orange: #F5A623;
  --paint: linear-gradient(90deg, var(--lime) 0 20%, var(--pink) 20% 40%, var(--cyan) 40% 60%, var(--blue) 60% 80%, var(--navy) 80% 100%);
  --label: 12rem;   /* every list's first column; second columns start at --label + --gap */
  --gap: 1.5rem;
  --f: 'Inter', 'Inter Fallback', Arial, Helvetica, 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  color-scheme: light;
}

html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--black); font-family: var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--pink); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul, ol { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(clamp(1.5rem,5vw,4rem), env(safe-area-inset-left, 0px)); padding-right: max(clamp(1.5rem,5vw,4rem), env(safe-area-inset-right, 0px)); }
section[id] { scroll-margin-top: 1rem; }
.nw { white-space: nowrap; }

/* NAV: quiet, static */
.bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.lockup { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; flex-shrink: 0; }
.bar nav { display: flex; gap: 2rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--g400); }
.bar nav a { padding: .5rem 0; transition: color .2s; }
.bar nav a:hover { color: var(--black); }

/* Shared type */
.eyebrow { font-family: var(--mono); font-size: .8rem; color: var(--g400); letter-spacing: .08em; margin: 0 0 1rem; }
.lead { font-size: 1.22rem; font-weight: 500; line-height: 1.55; max-width: 540px; text-wrap: pretty; }
.log { font-size: 1.05rem; color: var(--g600); line-height: 1.75; max-width: 520px; }
.mini { font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--g400); letter-spacing: .12em; text-transform: uppercase; margin: 1.6rem 0 .7rem; }
.rule { border: none; border-top: 1px solid var(--g200); }
.tickbar { width: 60px; height: 3px; background: var(--paint); }
.chip { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; padding: .22rem .55rem; margin-bottom: 1rem; }
.chip.pink { background: var(--pink-deep); color: #fff; }
.filmlink { display: inline-block; margin-top: 1.3rem; margin-right: 1.8rem; font-family: var(--mono); font-size: .82rem; border-bottom: 1px solid var(--black); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.filmlink:hover { color: var(--g600); border-color: var(--g600); }
.credits { font-family: var(--mono); font-size: .78rem; color: var(--g600); line-height: 2.1; }
.credits b { font-weight: 400; color: var(--g400); }

/* Section titles */
.sec-title { padding: 84px 0 1.6rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sec-title h2, .sec-title h3 { font-size: 1rem; font-family: var(--mono); font-weight: 400; color: var(--g400); letter-spacing: .12em; text-transform: uppercase; }
.sec-title .note { font-family: var(--mono); font-size: .75rem; color: var(--g400); border-bottom: 1px solid var(--g400); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.sec-title .note:hover { color: var(--black); border-color: var(--black); }

/* Intro */
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: stretch; padding-block: 40px 72px; }
.intro > div { min-width: 0; }
.intro .text { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.intro .eyebrow { line-height: 1.45; margin-top: -.25em; margin-bottom: 1rem; }
.portrait img { width: 100%; height: auto; aspect-ratio: 1 / 1; display: block; }
.intro h1 { font-size: clamp(2.6rem,5.4vw,4.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.intro h1 span { display: block; }
.intro .tickbar { margin-top: 1.4rem; }
.intro .lead { margin: 0 0 -.3em; max-width: 30em; }

/* Labeled rows (intro roles, writing, work, press) */
.rows li { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); column-gap: var(--gap); row-gap: .2rem; align-items: baseline; padding: .9rem 0; border-top: 1px solid var(--g200); }
.rows li:last-child { border-bottom: 1px solid var(--g200); }
.rows .when { font-family: var(--mono); font-size: .8rem; color: var(--black); line-height: 1.6; }
.rows .when.muted { color: var(--g400); }
.rows .what { min-width: 0; }
.rows .what .t { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.rows .what a.t, .rows .what .t a { border-bottom: 1px solid var(--g400); transition: border-color .2s; }
.rows .what a.t:hover, .rows .what .t a:hover { border-color: var(--black); }
.rows .what .src { display: block; font-family: var(--mono); font-size: .72rem; color: var(--g400); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .25rem; }
.rows .what .d { font-size: .95rem; color: var(--g600); line-height: 1.6; margin-top: .3rem; max-width: 640px; }
.rows .what .org { font-size: .95rem; color: var(--g600); line-height: 1.5; margin-top: .15rem; }
.rows .what .d a { border-bottom: 1px solid var(--g400); }
.rows .what .d a:hover { border-color: var(--black); }
.fmt { font-family: var(--mono); font-size: .7rem; color: var(--g400); border: 1px solid var(--g200); padding: .05rem .35rem; margin-left: .3rem; white-space: nowrap; }

/* Afterlife */
.still { background: #000; }
.still img { width: 100%; height: auto; display: block; }
.caption { font-family: var(--mono); font-size: .75rem; color: var(--g400); margin-top: .8rem; letter-spacing: .04em; line-height: 1.6; }
.film { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: start; padding: 44px 0 64px; }
.film > div { min-width: 0; }
.film-h { font-size: clamp(2.6rem,5.4vw,4.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 1.3rem; }
.film .lead { margin-bottom: 1rem; }
.film .log { margin-bottom: 1.4rem; }
.facts { font-family: var(--mono); font-size: .8rem; color: var(--g600); }
.pull { border-left: 2px solid var(--black); padding-left: .9rem; margin: 1.8rem 0 .4rem; max-width: 520px; }
.pull p { font-size: 1.1rem; font-weight: 500; line-height: 1.55; }
.pull footer { font-family: var(--mono); font-size: .75rem; color: var(--g400); margin-top: .5rem; }
.film .side .mini:first-child { margin-top: .2rem; }
.laurel { font-family: var(--mono); font-size: .75rem; color: var(--g600); border-left: 2px solid var(--black); padding-left: .7rem; line-height: 1.45; margin-bottom: .8rem; }
.laurel a { border-bottom: 1px solid var(--g400); transition: color .2s, border-color .2s; }
.laurel a:hover { color: var(--black); border-color: var(--black); }
.laurel .st { display: block; color: var(--g400); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .2rem; }
.laurel .nom { display: block; margin-top: .2rem; }

/* Carter Country and Tallahassee */
.film2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: start; padding: 72px 0; }
.film2 > div { min-width: 0; }
.film2 .pic { display: block; background: #000; }
.film2 .pic img { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
.film2 h3, .dev h3 { font-size: clamp(1.9rem,3.2vw,2.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 1rem; }
.film2 p.body { font-size: 1.04rem; color: var(--g600); line-height: 1.75; max-width: 440px; margin-bottom: 1.2rem; }
.dev { padding: 0 0 24px; }
.dev p.s { font-size: 1.04rem; color: var(--g600); line-height: 1.75; }

/* Video work: plain rows */
.shelf { padding-bottom: 70px; }
.crow { display: grid; grid-template-columns: 16px calc(var(--label) - 16px - var(--gap)) 1fr auto; column-gap: var(--gap); align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--g200); transition: background .2s; }
.crow:hover { background: var(--g100); }
.crow .dot { width: 8px; height: 8px; border-radius: 50%; }
.crow:nth-child(4n+1) .dot { background: var(--pink); }
.crow:nth-child(4n+2) .dot { background: var(--blue); }
.crow:nth-child(4n+3) .dot { background: var(--orange); }
.crow:nth-child(4n) .dot { background: var(--lime); }
.crow:last-child { border-bottom: 1px solid var(--g200); }
.crow .th { position: relative; overflow: hidden; background: #0a0a0a; }
.crow .th img { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
.crow .th video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none; }
.crow .th video.on { opacity: 1; }
.crow .t { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.crow .d { display: block; font-size: .92rem; color: var(--g600); line-height: 1.55; margin-top: .2rem; }
.crow .k { font-family: var(--mono); font-size: .73rem; color: var(--g400); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* Contact */
.contact { padding-block: 84px 90px; }
.contact .mini { margin: 0 0 1.2rem; }
.contact .email { font-size: clamp(1.5rem,3.6vw,2.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.contact .email a { border-bottom: 2px solid var(--black); transition: border-color .2s, color .2s; }
.contact .email a:hover { color: var(--g600); border-color: var(--g600); }
.contact .links { margin-top: 1.8rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--g600); }
.contact .links p { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); column-gap: var(--gap); align-items: baseline; padding: .55rem 0; }
.contact .links .lab { color: var(--g400); }
.contact .links .set { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.contact .links a { padding: .3rem 0; border-bottom: 1px solid var(--g200); transition: color .2s, border-color .2s; }
.contact .links a:hover { color: var(--black); border-color: var(--black); }

/* FOOTER */
footer.foot { padding: 2.4rem 0 3rem; border-top: 1px solid var(--g200); }
.fin { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.fin .c { font-size: .78rem; color: var(--g400); line-height: 1.7; }
.fin .tick { width: 60px; height: 3px; flex-shrink: 0; background: var(--paint); }
.fin nav { display: flex; gap: 1.5rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--g400); }
.fin nav a { padding: .5rem 0; transition: color .2s; }
.fin nav a:hover { color: var(--black); }

/* Video viewer */
.lb { border: none; padding: 0; background: var(--black); width: min(1080px, 92vw); margin: auto; }
.lb::backdrop { background: rgba(8,8,8,.85); }
.lb-frame { position: relative; aspect-ratio: 16/9; width: 100%; background: #000; }
.lb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; }
.lb-bar a { font-family: var(--mono); font-size: .75rem; color: rgba(255,255,255,.7); transition: color .2s; padding: .5rem 0; }
.lb-bar a:hover { color: #fff; }
.lb-close { margin-left: auto; background: none; border: 1.5px solid rgba(255,255,255,.4); color: #fff; font-family: var(--mono); font-size: .78rem; padding: .45rem .9rem; cursor: pointer; transition: border-color .2s; }
.lb-close:hover { border-color: var(--cyan); }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
@keyframes swP { from { --p: 0; } to { --p: 1; } }
.lb-frame.wipe { animation: swP .55s cubic-bezier(.37,0,.63,1) both; }
.lb-frame.wipe > iframe { clip-path: inset(0 calc(var(--r0) - (var(--r0) - var(--r1)) * var(--p)) 0 0); }
.lb-frame .bars { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; pointer-events: none; }
.lb-frame .bars b { position: absolute; left: 0; top: 0; height: 100%; width: calc(4 * var(--bw)); transform: translateX(calc(var(--x0) + (var(--x1) - var(--x0)) * var(--p))); }
.lb-frame .bars i { position: absolute; top: 0; bottom: 0; width: var(--bw); transform: translateX(calc(var(--bf, 0) * 1.2 * var(--bw) * sin(var(--p) * 180deg))); }
.lb-frame .bars i:nth-child(1) { left: 0; background: var(--lime); }
.lb-frame .bars i:nth-child(2) { left: var(--bw); background: var(--pink); --bf: 1; }
.lb-frame .bars i:nth-child(3) { left: calc(2 * var(--bw)); background: var(--cyan); --bf: 2; }
.lb-frame .bars i:nth-child(4) { left: calc(3 * var(--bw)); background: var(--blue); --bf: 3; }

/* TOUCHES from artkid.media. Color underlines: pointing at a link draws the four colors under it */
.fxl .laurel a, .fxl .filmlink, .fxl .rows .what a, .fxl .roles .what a, .fxl .contact .links a, .fxl .bar nav a, .fxl .fin nav a, .fxl .sec-title .note {
  background: linear-gradient(90deg, var(--lime) 0 25%, var(--pink) 25% 50%, var(--cyan) 50% 75%, var(--blue) 75% 100%) no-repeat 0 100% / 0 2px;
  transition: background-size .35s cubic-bezier(.37,0,.63,1), color .2s, border-color .2s; }
.fxl .bar nav a, .fxl .fin nav a { background-position: 0 calc(100% - .3rem); }
.fxl .laurel a:hover, .fxl .filmlink:hover, .fxl .rows .what a:hover, .fxl .roles .what a:hover, .fxl .contact .links a:hover, .fxl .bar nav a:hover, .fxl .fin nav a:hover, .fxl .sec-title .note:hover,
.fxl .laurel a:focus-visible, .fxl .filmlink:focus-visible, .fxl .rows .what a:focus-visible, .fxl .roles .what a:focus-visible, .fxl .contact .links a:focus-visible, .fxl .bar nav a:focus-visible, .fxl .fin nav a:focus-visible, .fxl .sec-title .note:focus-visible {
  background-size: 100% 2px; border-bottom-color: transparent; color: var(--black); }
/* Row markers: a video row's dot stretches into a short bar while you point at the row */
.fxd .crow .dot { transition: width .3s cubic-bezier(.16,1,.3,1), height .3s cubic-bezier(.16,1,.3,1), border-radius .3s; }
.fxd .crow:hover .dot, .fxd .crow:focus-visible .dot { width: 16px; height: 4px; border-radius: 2px; }

/* Screenplay page */
.script-head { padding-block: 40px 36px; }
.script-head h1 { font-size: clamp(2.6rem,5.4vw,4.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.page { background: var(--g100); padding: clamp(28px, 6vw, 72px) clamp(18px, 7vw, 96px); margin-bottom: 90px; }
.script { font-family: 'Courier Prime', 'Courier New', Courier, monospace; font-size: 16px; line-height: 1.3; max-width: 62ch; margin: 0 auto; color: var(--black); }
.script p { margin: 0 0 1.3em; }
.script .slug { text-transform: uppercase; margin-top: 2.2em; }
.script .slug:first-child { margin-top: 0; }
.script .char { text-transform: uppercase; margin: 0 0 0 37%; }
.script .dia { margin: 0 22% 0 17%; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .intro, .film, .film2 { grid-template-columns: 1fr; gap: 2.4rem; }
  .intro .text { justify-content: flex-start; gap: 1.4rem; }
  .portrait { width: min(420px, 100%); }
  .crow { grid-template-columns: 112px 1fr auto; gap: 1.1rem; }
  .crow .dot { display: none; }
  .fin { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  .bar { flex-wrap: wrap; height: auto; padding-block: 1rem .4rem; row-gap: .2rem; }
  .bar nav { width: 100%; gap: 1.4rem; }
  .sec-title { padding-top: 64px; }
}
@media (max-width: 420px) {
  .bar nav { gap: 1.1rem; font-size: .72rem; }
  .crow { grid-template-columns: 96px 1fr; }
  .crow .k { display: none; }
  .script { font-size: 14px; }
  .script .char { margin-left: 28%; }
  .script .dia { margin-left: 10%; margin-right: 6%; }
}

/* Press: a thumbnail per story */
.press li.prow { display: grid; grid-template-columns: var(--label) 1fr; column-gap: var(--gap); align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--g200); }
.press li.prow:last-child { border-bottom: 1px solid var(--g200); }
.prow > div { min-width: 0; }
.pth { display: block; background: var(--g100); }
.pth img { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
.prow .src { display: block; font-family: var(--mono); font-size: .72rem; color: var(--g400); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem; }
.prow .src span { padding-inline: .2rem; }
.prow a.t { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; border-bottom: 1px solid var(--g400); transition: border-color .2s; }
.prow a.t:hover { border-color: var(--black); }
.prow .d { display: block; font-size: .95rem; color: var(--g600); line-height: 1.6; margin-top: .35rem; }
.prow .d a { border-bottom: 1px solid var(--g400); }
.fxl .prow a.t, .fxl .prow .d a { background: linear-gradient(90deg, var(--lime) 0 25%, var(--pink) 25% 50%, var(--cyan) 50% 75%, var(--blue) 75% 100%) no-repeat 0 100% / 0 2px; transition: background-size .35s cubic-bezier(.37,0,.63,1), border-color .2s; }
.fxl .prow a.t:hover, .fxl .prow .d a:hover, .fxl .prow a.t:focus-visible { background-size: 100% 2px; border-bottom-color: transparent; }

/* Education: three seals in a row */
.edu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; border-top: 1px solid var(--g200); border-bottom: 1px solid var(--g200); padding-block: 1.1rem; }
.edu li { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.edu img { width: 56px; height: 56px; flex-shrink: 0; display: block; }
.edu .t { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.edu .org { display: block; font-size: .9rem; color: var(--g600); line-height: 1.45; margin-top: .1rem; }
@media (max-width: 900px) {
  .edu { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .press li.prow { grid-template-columns: 112px 1fr; column-gap: 1rem; align-items: start; }
  .rows li, .contact .links p { grid-template-columns: 1fr; }
  .contact .links .lab { margin-bottom: .3rem; }
}

/* Touch screens: bigger tap areas for short standalone links, with no visual change */
@media (pointer: coarse) {
  .filmlink, .laurel a, .sec-title .note, .rows .what a.t, .rows .what .t a, .prow a.t, .contact .links a, .bar nav a, .fin nav a { position: relative; }
  .filmlink::before, .laurel a::before, .sec-title .note::before, .rows .what a.t::before, .rows .what .t a::before, .prow a.t::before, .contact .links a::before, .bar nav a::before, .fin nav a::before { content: ''; position: absolute; inset: -12px -6px; }
}
@media (max-width: 560px) {
  .prow .src, .fmt, .laurel, .caption { font-size: .78rem; }
}

/* A11Y */
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: #fff; padding: .7rem 1.2rem; z-index: 200; font-size: .85rem; font-weight: 600; }
.skip:focus { left: 8px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.lb a:focus-visible, .lb button:focus-visible { outline-color: var(--cyan); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
