@import url("assets/studio-fonts.css");

:root {
  color-scheme: dark;
  --paper: #18171b;
  --ink: #f1f0ed;
  --muted: #bebbc2;
  --lime: #bded70;
  --purple: #bb9df1;
  --line: #424047;
  --category: #c2afd8;
  --display: "Vermin Verile", "Arial Narrow", "Aptos Narrow", Arial, sans-serif;
  --body: "Technoma", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
:root[data-theme="light"] { color-scheme: light; --paper: #f3f2eb; --ink: #1b1b1d; --muted: #555650; --purple: #634091; --line: #c8c7bf; --category: #62566c; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.1rem; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #3975cf; outline-offset: 5px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1392px, 89%); margin-inline: auto; }
.skip { position: absolute; z-index: 4; left: 1rem; top: -5rem; background: white; color: #161418; padding: .7rem; }
.skip:focus { top: .5rem; }
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner, nav, .footer-inner, .footer-inner div { display: flex; align-items: center; justify-content: space-between; }
.masthead-inner { min-height: 80px; }
.brand { flex: 0 0 auto; }
.brand img { width: 145px; height: auto; filter: brightness(1.65); }
:root[data-theme="light"] .brand img { filter: none; }
nav { gap: clamp(15px, 3vw, 48px); font-family: var(--display); font-size: .95rem; }
nav a, footer a { padding-block: .65rem; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .28em; }
.nav-contact { border-left: 1px solid var(--line); padding-left: clamp(15px, 3.4vw, 52px); }
.theme-switch {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; margin-left: -8px;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.theme-switch:hover { border-color: var(--purple); color: var(--purple); }
.theme-switch:focus-visible { outline: 3px solid #3975cf; outline-offset: 3px; }
.theme-switch[hidden], .theme-switch .moon, :root[data-theme="light"] .theme-switch .sun { display: none; }
:root[data-theme="light"] .theme-switch .moon { display: block; }
.nav-contact span, .email span { margin-left: .4em; }
.hero { position: relative; color: white; background: #231a12; isolation: isolate; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: center 54%; }
.hero::after {
  z-index: -1; content: "";
  background: linear-gradient(90deg, rgba(15,15,17,.92) 0%, rgba(15,15,17,.73) 25%, rgba(18,15,15,.42) 51%, rgba(18,15,15,.04) 79%),
              linear-gradient(0deg, rgba(10,8,8,.5), transparent 25%);
}
.hero-inner { position: relative; padding-block: clamp(76px, 8vw, 135px); }
.eyebrow, .category, .still-credit small {
  font-family: var(--mono); font-size: .77rem; font-weight: 650; line-height: 1.45;
  letter-spacing: .105em; text-transform: uppercase;
}
.hero-kicker { color: var(--lime); display: flex; gap: .7rem; align-items: center; }
.hero-kicker::before { content: ""; width: 1.8rem; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h1 { margin-block: 24px; font-size: clamp(3.25rem, 7.2vw, 7.3rem); line-height: .98; }
h1 em { color: var(--lime); font-style: normal; font-weight: inherit; }
.series { display: block; margin-bottom: .19em; font-size: .48em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 27px; }
.hero-actions .button { margin: 0; }
.more-work { padding-block: 9px; text-decoration: underline; text-underline-offset: 5px; }
.more-work span { margin-left: 5px; }
.lede { max-width: 440px; font-size: clamp(1.16rem, 1.42vw, 1.4rem); line-height: 1.52; color: #f2f0e9; }
.button {
  display: inline-flex; align-items: center; gap: 1.6rem; margin-top: 27px;
  background: var(--lime); color: #151a10; padding: .85rem 1.15rem; border-radius: 3px;
}
.button:hover { background: #d1ff8d; }
.still-credit { position: absolute; right: 0; bottom: 30px; display: flex; gap: 13px; align-items: center; padding: 9px 12px; background: #161418df; border-radius: 3px; }
.still-credit small, .still-credit b { display: block; }
.still-credit small { color: #ebe2d1; font-size: .62rem; margin-bottom: 2px; }
.still-credit b { font-size: .95rem; }
.still-credit:hover b { text-decoration: underline; }
.viewfinder { width: 25px; height: 19px; background:
  linear-gradient(white,white) left top/7px 1px, linear-gradient(white,white) left top/1px 7px,
  linear-gradient(white,white) right top/7px 1px, linear-gradient(white,white) right top/1px 7px,
  linear-gradient(white,white) left bottom/7px 1px, linear-gradient(white,white) left bottom/1px 7px,
  linear-gradient(white,white) right bottom/7px 1px, linear-gradient(white,white) right bottom/1px 7px; background-repeat: no-repeat; }
.work, .studio { padding-block: clamp(62px, 6.5vw, 106px); }
h2 { margin-top: 10px; font-size: clamp(2.3rem, 4.2vw, 4.55rem); line-height: 1.08; }
.period { color: var(--purple); }
.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 38px); margin-top: clamp(25px, 3vw, 52px); }
.project { display: flex; flex-direction: column; align-items: flex-start; }
.project-card { width: 100%; }
.project-card:hover h3, .development-copy h2 a:hover { color: var(--purple); }
.project-card h3 span { display: inline-block; font-family: var(--body); font-size: .62em; vertical-align: .12em; color: var(--purple); }
.media { display: block; width: 100%; aspect-ratio: 16 / 9; background: #302344; overflow: hidden; border-radius: 3px; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out; }
.project-card:hover img { transform: scale(1.035); }
.category { margin-block: 23px 9px; color: var(--category); font-size: .7rem; letter-spacing: .06em; }
.category span { margin-inline: .25em; color: #7a7d6c; }
.project h3 { font-size: clamp(1.2rem, 1.42vw, 1.65rem); line-height: 1.2; overflow-wrap: anywhere; }
.description, .contact p:not(.eyebrow) { font-size: 1.15rem; line-height: 1.55; }
.description { color: var(--muted); padding-block: 12px 20px; }
.project-link { margin-top: auto; font-size: .93rem; font-weight: 680; border-bottom: 1px solid #96978a; padding: 4px 0; }
.project-link span { margin-left: .45rem; color: var(--purple); }
.project-link:hover { color: var(--purple); }
.development { padding-bottom: clamp(58px, 6vw, 100px); }
.development-inner { border-block: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.development-copy { align-self: center; padding: clamp(28px, 4vw, 66px) clamp(25px, 5vw, 80px) clamp(28px, 4vw, 66px) 0; }
.development-copy .eyebrow, .detail-intro .eyebrow { color: var(--purple); }
.development-copy h2 { margin-block: 14px; font-size: clamp(1.8rem, 3.2vw, 3.8rem); }
.development-copy p:not(.eyebrow), .detail-story p, .detail-story li { color: var(--muted); line-height: 1.62; }
.development-copy .project-link { display: inline-block; margin-top: 18px; }
.development-art img { width: 100%; height: 100%; object-fit: cover; }
.detail-page { min-height: 100vh; display: flex; flex-direction: column; }
.detail-main { flex: 1; }
.back-link { display: inline-flex; align-items: center; gap: .6em; margin-top: clamp(24px, 3vw, 48px); color: var(--muted); font-size: .92rem; }
.back-link:hover { color: var(--purple); }
.detail-hero { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(26px, 4.5vw, 76px); align-items: center; margin-block: clamp(25px, 3.5vw, 60px) clamp(40px, 5vw, 85px); }
.detail-intro h1 { font-size: clamp(2rem, 3.4vw, 4.4rem); line-height: 1.07; margin-block: 12px 20px; overflow-wrap: anywhere; }
.detail-lede { color: var(--muted); font-size: clamp(1.05rem, 1.45vw, 1.4rem); line-height: 1.53; max-width: 38em; }
.detail-feature { margin: 0; border-radius: 4px; background: #241d2e; overflow: hidden; }
.detail-feature img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.detail-story { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(24px, 4.2vw, 75px); margin-bottom: clamp(56px, 7vw, 120px); }
.detail-story section { min-width: 0; padding-top: clamp(20px, 2.4vw, 40px); border-top: 1px solid var(--line); }
.detail-story h2 { font-size: clamp(1.35rem, 2vw, 2.3rem); margin: 0 0 12px; line-height: 1.16; }
.detail-story p + p, .detail-story p + a { margin-top: .9rem; }
.detail-story a { color: var(--purple); text-decoration: underline; text-underline-offset: .2em; }
.detail-story a.project-link { display: inline-block; border: 0; }
.detail-story code { font-size: .92em; overflow-wrap: anywhere; }
.studio { background: #232026; color: #f5f2ec; }
.studio-grid { display: grid; grid-template-columns: 1.17fr 1fr; gap: clamp(45px, 8vw, 160px); }
.studio .eyebrow, .studio .period { color: var(--lime); }
.studio-copy { max-width: 39em; color: #dad6da; font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.6; margin-top: 20px; }
.contact { padding-left: clamp(25px, 4vw, 80px); border-left: 1px solid #58535a; }
.contact h3 { margin-block: 15px 9px; font-size: clamp(1.7rem, 2.6vw, 3rem); line-height: 1.1; }
.contact p:not(.eyebrow) { color: #dad6da; max-width: 26em; }
.email { display: inline-block; margin-top: 18px; padding: 3px 0; font-weight: 650; border-bottom: 1px solid #879c6b; color: var(--lime); }
.email:hover { color: white; }
footer { background: #232026; color: #dedbe0; }
.footer-inner { gap: 16px; padding-block: 20px; border-top: 1px solid #4c484f; font-size: .82rem; }
.footer-inner div { gap: 23px; }
@media (max-width: 1100px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
@media (max-width: 800px) {
  .detail-hero { grid-template-columns: 1fr; }
  .detail-feature img { aspect-ratio: 16 / 8; }
  .studio-grid { gap: 32px; }
}
@media (max-width: 590px) {
  .wrap { width: 89%; }
  .masthead-inner { min-height: 65px; }
  .brand img { width: 103px; }
  nav { font-size: .84rem; gap: 10px; }
  .nav-contact { border: 0; padding-left: 0; }
  .nav-contact span { margin-left: 0; }
  .hero-image { object-position: 55% center; }
  .hero-inner { padding-block: 56px 24px; }
  .hero::after { background: linear-gradient(90deg, #110e10df, #120d105c), linear-gradient(0deg,#150e10a8,transparent 75%); }
  h1 { font-size: clamp(2.55rem, 10vw, 4.5rem); margin-block: 23px; }
  .theme-switch { width: 32px; height: 32px; margin-left: 0; }
  .hero-actions { gap: 8px 16px; }
  .lede { max-width: 24rem; }
  .still-credit { position: static; width: fit-content; margin: 32px 0 0 auto; }
  .studio-grid, .project { display: block; }
  .projects { grid-template-columns: 1fr; gap: 28px; }
  .development-inner { grid-template-columns: 1fr; }
  .development-copy { padding: 24px 0; }
  .development-art img { max-height: 220px; }
  .detail-intro h1 { font-size: clamp(1.85rem, 6.8vw, 2.8rem); }
  .category { margin-top: 17px; }
  .description { padding-block: 10px 12px; }
  .project-link { display: inline-block; }
  .contact { border-left: 0; padding: 28px 0 0; margin-top: 28px; border-top: 1px solid #58535a; }
  .footer-inner div { gap: 12px; }
}
@media (max-width: 510px) {
  .masthead-inner { position: relative; flex-direction: column; align-items: flex-start; padding: 12px 0 4px; gap: 5px; }
  .brand img { width: 107px; }
  nav { width: 100%; justify-content: space-between; gap: 8px; font-size: .9rem; }
  nav a { padding-block: 10px; }
  .theme-switch { position: absolute; right: 0; top: 13px; }
  .development-copy h2 { font-size: clamp(1.47rem, 6vw, 1.85rem); overflow-wrap: anywhere; }
  .studio-grid { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .media img, .graphic svg { transition: none; }
}
