:root {
  --ink: #292321;
  --muted: #625650;
  --paper: #faf7f2;
  --stone: #f0e9df;
  --line: #dcd1c6;
  --ember: #a63f28;
  --gold: #e6a862;
  --dark: #221c1a;
  --gold-mark: url("/media/storyworks-gold-mark.jpg");
  --display: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: inherit; }
a, u, ins {
  text-underline-offset: .32em;
  text-decoration-skip-ink: none;
}
img { display: block; width: 100%; height: auto; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid #b15434; outline-offset: 5px; }
::selection { background: #e9bd9f; color: var(--ink); }
[hidden] { display: none !important; }
.wrap { width: min(1350px, calc(100% - clamp(36px, 10vw, 148px))); margin-inline: auto; }
.skip { position: absolute; z-index: 100; top: 10px; left: 10px; padding: .6rem 1rem; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { width: clamp(150px, 16vw, 215px); display: block; flex: none; }
.brand img { height: 53px; object-fit: contain; object-position: left center; }
.desktop-nav, .footer-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.15vw, 2rem); }
.desktop-nav a, .mobile-nav a, .footer-nav a { text-decoration: none; font-weight: 650; font-size: .9rem; }
.desktop-nav a[aria-current="page"], .desktop-nav a:hover, .mobile-nav a[aria-current="page"], .mobile-nav a:hover { color: var(--ember); }
.mobile-menu { display: none; }
.cta { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: .76rem 1.22rem; min-height: 47px; border: 1px solid transparent; background: var(--ember); color: white; text-decoration: none; font-weight: 700; font-size: .91rem; transition: background .18s, color .18s; }
.cta:hover { background: #87321e; color: white !important; }
.cta.light { color: var(--dark); background: #f5e7d6; }
.cta.light:hover { background: #dfbc9b; color: var(--dark) !important; }
.cta.outline { background: transparent; border-color: currentColor; color: inherit; }
.cta.outline:hover { background: var(--ink); color: var(--paper) !important; }
.dark .cta.outline:hover, .home-hero .cta.outline:hover { color: var(--ink) !important; background: var(--paper); }
.eyebrow { color: var(--ember); font-size: .88rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
.dark .eyebrow, .home-hero .eyebrow, .image-intro .eyebrow { color: #ffd09c; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -.042em; text-wrap: balance; }
h1 { font-size: clamp(3.15rem, 7.2vw, 7.6rem); }
h2 { font-size: clamp(2.4rem, 4.2vw, 4.7rem); }
h3 { font-size: clamp(1.7rem, 2.55vw, 2.8rem); }
p { margin: 0 0 .95rem; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(1.04rem, 1.5vw, 1.3rem); line-height: 1.55; }
.home-hero { position: relative; isolation: isolate; display: grid; align-items: end; overflow: hidden; background: #332721; color: white; }
.home-hero { min-height: clamp(555px, 48vw, 760px); }
.hero-img { z-index: -2; position: absolute; inset: 0; height: 100%; object-fit: cover; }
.home-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(22,16,15,.9),rgba(24,17,16,.75) 35%,rgba(24,17,16,.15) 82%), linear-gradient(0deg,rgba(24,17,16,.44),transparent 65%); }
.hero-content { padding-block: clamp(3rem, 7vw, 6.3rem); }
.home-hero h1 { max-width: 10ch; }
.home-hero .lede { max-width: 46ch; margin: 1.4rem 0 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .72rem; margin-top: 1.4rem; }

/* Interior pages and homepage sections below the hero. */
.content-wrap {
  width: min(1160px, calc(100% - clamp(36px, 10vw, 144px)));
  min-width: 0;
}
.band {
  padding-block: clamp(3rem, 5.2vw, 5.75rem);
  font-size: 1.0625rem;
  line-height: 1.68;
}
.band + .band:not(.dark):not(.stone) { border-top: 1px solid var(--line); }
.band.compact { padding-block: clamp(1.75rem, 3vw, 3rem); }
.dark { background: var(--dark); color: var(--paper); }
.stone { background: var(--stone); }
.intro {
  padding-block: clamp(2.6rem, 5.6vw, 5rem) clamp(1.75rem, 3vw, 3rem);
}
.intro h1, .brand-opening h1 {
  font-size: clamp(2.95rem, 5.7vw, 5.35rem);
  line-height: 1.09;
  letter-spacing: -.018em;
}
.band h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.55rem);
  line-height: 1.13;
  letter-spacing: -.015em;
}
.band h3 {
  font-size: clamp(1.4rem, 2.15vw, 2rem);
  line-height: 1.22;
  letter-spacing: -.008em;
}
.band .subheading {
  font: 700 1.125rem/1.4 var(--sans);
  letter-spacing: normal;
}
.band .eyebrow { letter-spacing: .1em; }
.intro .lede, .band .lede { font-size: clamp(1.07rem, 1.6vw, 1.26rem); line-height: 1.58; }
.intro .lede { margin-block: 1rem 0; max-width: 61ch; }
.services-opening {
  padding-block: clamp(2.4rem, 5vw, 4.75rem);
  background: linear-gradient(110deg, #f8edde, var(--stone));
}
.services-opening-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.75rem);
}
.services-opening-copy::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-bottom: clamp(.85rem, 2vw, 1.5rem);
  background: var(--ember);
}
.services-opening .lede {
  max-width: 38ch;
  margin-top: clamp(1rem, 2vw, 1.5rem);
}
.services-opening-photo { box-shadow: .55rem .55rem 0 #e2c6a8; }
@media (max-width: 760px) {
  .services-opening-grid { grid-template-columns: minmax(0, 1fr); }
}
.prose { max-width: 62ch; }
.prose > * + * { margin-top: 1rem; }
.band h2 + p, .band h2 + .prose { margin-top: 1rem; }
.section-head { margin-bottom: clamp(1.4rem, 2.8vw, 2.6rem); }
.section-head p { max-width: 64ch; }
.text-link {
  display: inline-block;
  margin-top: .85rem;
  color: var(--ember);
  font-weight: 700;
}
.dark .text-link { color: #ffd09c; }
figure { margin: 0; min-width: 0; }
figcaption { margin-top: .65rem; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.split, .statement {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(1.75rem, 4.7vw, 4.75rem);
  align-items: center;
}
.split.top, .statement { align-items: start; }
.split .photo img, .gallery img, .process-card img, .service-card img { height: auto; }
.split > *, .statement > * { min-width: 0; }
.purpose-copy .prose { max-width: 46ch; }
.capabilities {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.15rem, 2.6vw, 2.2rem);
  background: linear-gradient(135deg, #fbefdc, #f3e9df 72%);
  box-shadow: inset 0 3px 0 var(--gold);
}
.capabilities::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -1.5rem -3rem auto;
  width: clamp(10rem, 17vw, 15rem);
  aspect-ratio: 1;
  background: var(--gold-mark) center / contain no-repeat;
  mix-blend-mode: multiply;
  opacity: .17;
  pointer-events: none;
}
.capabilities .subheading { color: var(--ember); }
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0 1.1rem;
  list-style: none;
  margin: .85rem 0 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.45;
}
.service-list li { border-top: 1px solid #d8c2ac; padding-block: .68rem; overflow-wrap: anywhere; }

.media-frame { min-width: 0; width: 100%; background: #171312; }
.media-frame iframe, .media-frame video {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 1.7778);
  border: 0;
}
.media-frame video { height: auto; object-fit: contain; }
.video-preview { position: relative; display: grid; place-items: center; width: 100%; }
.video-preview img { width: 100%; height: auto; }
.video-preview[data-video-file], .media-frame.vertical .video-preview { aspect-ratio: var(--ratio, 1.7778); }
.video-preview[data-video-file] img, .media-frame.vertical .video-preview img { height: 100%; object-fit: contain; }
.video-preview span {
  position: absolute;
  color: white;
  background: #221c1a;
  border: 1px solid #f0e9df;
  padding: .5rem .9rem;
  font-size: .92rem;
  font-weight: 700;
}
.video-preview:hover span { background: #81311f; }
.video-source { display: inline-block; font-size: .94rem; margin-top: .75rem; }
.featured-film .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.featured-film-links { display: flex; flex-wrap: wrap; column-gap: 1rem; }

.process-feature .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.profile-section .split {
  grid-template-columns: minmax(0, 12rem) minmax(0, 39rem);
  justify-content: center;
  align-items: start;
  gap: clamp(1.25rem, 4.25vw, 3.75rem);
}
.small-portrait { width: min(100%, 11.25rem); }
.small-portrait img { border-radius: 2px; }
.bio details { margin-top: 1.1rem; border-block: 1px solid var(--line); padding: .65rem 0; }
.bio summary { cursor: pointer; font-weight: 700; }
.bio details p { margin-top: .65rem; }
.about-profile .split { grid-template-columns: minmax(0, 17rem) minmax(0, 39rem); justify-content: center; }
.about-profile .founder-name { color: var(--ember); }
.profile-in-action { max-width: 17rem; }
.contact-section {
  padding-block: clamp(3rem, 7.5vw, 7rem);
  background: linear-gradient(115deg, var(--paper) 22%, #f1e4d5);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.contact-intro h1::before {
  content: "";
  display: block;
  width: clamp(2.5rem, 4vw, 3.5rem);
  aspect-ratio: 1;
  margin-bottom: 1rem;
  background: var(--gold-mark) center / contain no-repeat;
  mix-blend-mode: multiply;
}
.contact-intro .contact-lead {
  margin-block: 1rem .55rem;
  font: clamp(1.35rem, 2vw, 1.8rem)/1.3 var(--display);
}
.contact-intro p { max-width: 38ch; }
.contact-card {
  min-width: 0;
  padding: clamp(1.35rem, 3.5vw, 3.5rem);
  background: var(--dark);
  color: var(--paper);
  border-top: 3px solid var(--gold);
  box-shadow: .5rem .5rem 0 #e2c6a8;
}
.contact-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.25rem);
}
.contact-profile img { width: clamp(4rem, 7vw, 6rem); border-radius: 50%; }
.contact-profile h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
  letter-spacing: -.015em;
}
.contact-profile p { margin-top: .35rem; color: #f0c9a2; }
.contact-details {
  display: grid;
  justify-items: start;
  gap: .85rem;
  margin-top: clamp(1.25rem, 2.6vw, 2.25rem);
  padding-top: clamp(1.05rem, 2vw, 1.6rem);
  border-top: 1px solid #68534a;
}
.contact-details a { min-width: 0; }
.contact-details a:hover { color: #ffd09c; }
.contact-details a:focus-visible { outline-color: var(--gold); }
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

.film-portfolio { padding-top: clamp(.8rem, 2vw, 1.4rem); }
.film-lead {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.15rem, 3.75vw, 3.4rem);
  padding: clamp(1rem, 2.5vw, 2.2rem);
  background: var(--dark);
  color: var(--paper);
  margin-bottom: clamp(2rem, 4.75vw, 4rem);
}
.film-grid, .quotes, .values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(1.4rem, 3.5vw, 3rem);
}
.film h2 { font-size: clamp(1.45rem, 2.3vw, 2.15rem); line-height: 1.2; }
.film-lead h2 { font-size: clamp(1.9rem, 3.15vw, 3rem); }
.film-grid .film-info { padding: 1.05rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.film-meta { margin-top: .8rem; }
.film-meta p { font-size: 1rem; line-height: 1.48; margin: 0 0 .33rem; }
.film-meta strong { font-weight: 650; }

.grid-three { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.1rem, 2.75vw, 2.25rem); }
.process-card img {
  width: 100%;
  height: clamp(156px, 22vw, 245px);
  object-fit: contain;
  background: #e6ddd2;
}
.process-card h3, .service-card h3 { margin: 1rem 0 .6rem; }
.service-card ul { margin: 0; padding-left: 1.25em; }
.service-card li + li { margin-top: .35rem; }

.service-demos {
  display: grid;
  /* Match player heights at 16:9 and 9:16. */
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .31640625fr);
  align-items: start;
  gap: clamp(1.1rem, 2.8vw, 2.6rem);
}
.service-demos article:not(.vertical-demo) .media-frame { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.service-demos article { min-width: 0; }
.service-demos h3 { margin-top: .65rem; }
.logos { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.65rem, 1.45vw, 1.1rem); }
.logos img { width: 100%; height: clamp(84px,11vw,120px); object-fit: contain; padding: 1rem; background: #fff; }
.logos .dca-logo { filter: brightness(1.045); }
blockquote { margin: 0; }
.quote { padding: clamp(1.25rem, 2.8vw, 2.5rem); border: 1px solid var(--line); background: #fffaf5; }
.quote p { font-family: var(--display); font-size: clamp(1.24rem, 1.7vw, 1.65rem); line-height: 1.46; }
.quote cite { display: block; font-style: normal; font-size: .95rem; color: var(--muted); }

.band.compact.gallery-section { padding-top: .35rem; }
.gallery { columns: 3; column-gap: clamp(.8rem, 2vw, 1.6rem); }
.gallery a {
  display: block;
  break-inside: avoid;
  margin-bottom: clamp(.8rem, 2vw, 1.6rem);
  background: var(--stone);
}
.gallery a:hover { outline: 2px solid var(--ember); outline-offset: 3px; }
dialog { color: white; background: #171312; border: 0; width: min(1100px, 96vw); max-height: 94vh; padding: .75rem; }
dialog::backdrop { background: rgba(15,12,11,.87); }
dialog img { max-height: 72vh; width: 100%; object-fit: contain; }
.lightbox-top, .lightbox-bottom { display: flex; gap: .7rem; align-items: center; }
.lightbox-top { justify-content: end; margin-bottom: .5rem; }
.lightbox-bottom { justify-content: center; margin-top: .55rem; }
.lightbox-bottom p { margin: 0; text-align: center; }
.lightbox-button { background: transparent; color: white; border: 1px solid #7b7573; padding: .38rem .72rem; cursor: pointer; font-size: .88rem; }

.values-section > h2 { margin-bottom: 1.4rem; }
.client-commitments > h2 { margin-bottom: clamp(1.8rem, 3.4vw, 2.5rem); }
.values-grid { max-width: 68rem; }
.values-grid article { border-top: 1px solid #cfc1b5; padding-top: 1.05rem; }
.values-grid h3 { margin-bottom: .55rem; }
.client-promises { margin-block: 0; padding-left: 1.25em; }
.client-promises li + li { margin-top: .55rem; }

.brand-opening .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.brand-photo { height: auto; }
.brand-opening .lede { margin-top: 1.15rem; }
.brand-science article { border-top: 1px solid var(--line); padding-top: 1rem; }
.brand-science h3 { margin-bottom: .75rem; }
.brand-stats .editorial-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.brand-stats .quote { padding: clamp(1rem, 2vw, 1.6rem); }
.brand-stats .quote p { font: 1rem/1.55 var(--sans); }
.brand-stats .quote strong { display: block; color: var(--ember); font: 2.5rem/1.1 var(--display); margin-bottom: .55rem; }

.site-footer { border-top: 1px solid #443831; background: var(--dark); color: var(--paper); }
.foot-inner { padding-block: 2.6rem; display: flex; justify-content: space-between; align-items: start; gap: 1.6rem; }
.footer-title { font-family: var(--display); font-size: 1.55rem; text-decoration: none; }
.footer-nav { flex-wrap: wrap; justify-content: end; gap: .6rem 1.35rem; }
.footer-nav a:hover { color: var(--gold); }
.contact-email { display: inline-block; overflow-wrap: anywhere; }
.endcap { border-bottom: 1px solid var(--line); }
.endcap .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.endcap h2 {
  display: flex;
  align-items: center;
  gap: clamp(.65rem, 1.7vw, 1.25rem);
  font-size: clamp(1.9rem, 3vw, 2.95rem);
}
.endcap h2::before, .brand-opening h1::before {
  content: "";
  display: block;
  flex: none;
  width: clamp(2.25rem, 5vw, 3.55rem);
  aspect-ratio: 1;
  background: var(--gold-mark) center / contain no-repeat;
  mix-blend-mode: multiply;
}
.brand-opening h1::before { margin-bottom: 1rem; }

@media (min-width: 851px) {
  .desktop-nav a.cta[aria-current="page"] { color: white; background: #87321e; }
}
@media (max-width: 850px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { cursor: pointer; font-weight: 700; padding: .42rem .7rem; border: 1px solid var(--line); }
  .mobile-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: .6rem 6vw 1.15rem; }
  .mobile-nav a { display: block; padding: .58rem 0; }
  .home-hero .hero-img { object-position: 55% center; }
  .home-hero::after { background: linear-gradient(90deg,rgba(22,16,15,.88),rgba(24,17,16,.52) 72%,rgba(24,17,16,.32)); }
  .gallery { columns: 2; }
  .brand-stats .editorial-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 660px) {
  .split, .statement, .featured-film .split, .process-feature .split, .about-profile .split,
  .profile-section .split, .brand-opening .split,
  .film-grid, .film-lead, .grid-three, .quotes, .values-grid { grid-template-columns: minmax(0,1fr); }
  .profile-section .split, .about-profile .split { justify-content: start; }
  .profile-section .small-portrait { width: min(8.5rem,100%); }
  .process-feature .photo { order: 1; }
  .process-card img { height: auto; }
  .service-demos { grid-template-columns: 1fr; }
  .vertical-demo { width: min(10rem,100%); }
  .logos { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .foot-inner { display: grid; }
  .footer-nav { justify-content: start; }
}
@media (max-width: 610px) {
  .topbar { min-height: 67px; }
  .brand img { height: 42px; }
  .home-hero { min-height: 540px; }
}
@media (max-width: 415px) {
  .gallery { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
