:root {
  color-scheme: dark;
  --edge: clamp(1.25rem, 3vw, 3.5rem);
  --ink: #f6f3ec;
  --muted: #9c978e;
  --paper: #e7e0d5;
  --bronze: #81705d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body { background: #050505; color: #fff; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-weight: 400; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.hero { isolation: isolate; min-height: 100svh; overflow: hidden; padding: var(--edge); display: grid; grid-template-rows: auto 1fr auto; }
.showreel, .scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.showreel { z-index: -2; object-fit: cover; object-position: center; }
.scrim { z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.28) 45%, rgba(0,0,0,.7)); }
.site-header, .hero-meta, .page-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.wordmark, nav a, .hero-meta, .page-footer, .section-label, .case-kicker, .case-scroll, .project-type {
  color: inherit; font-size: .7rem; font-weight: 700; letter-spacing: .095em; line-height: 1.25; text-decoration: none;
}
nav { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); }
nav a, .contact-links a, .project-card, .next-project { transition: opacity 160ms ease; }
nav a:hover, .contact-links a:hover, .project-card:hover, .next-project:hover { opacity: .66; }
.intro { align-self: center; padding-top: 5vh; }
h1 { max-width: 12ch; margin: 0; font-size: clamp(2.8rem, 7.8vw, 8.8rem); font-weight: 400; letter-spacing: -.075em; line-height: .85; text-shadow: 0 .05em .35em rgba(0,0,0,.52); }
.hero-meta { align-items: flex-end; }
.hero-meta span:last-child, .page-footer span:last-child { text-align: right; }

.page { min-height: 100svh; padding: var(--edge); display: grid; grid-template-rows: auto 1fr auto; background: #090909; }
.about-page { position: relative; isolation: isolate; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.46)), url("public/assets/about/samuel-chrisna-about.jpg") center / cover no-repeat; }
.about-page::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4), transparent 35%, rgba(0,0,0,.56)); pointer-events: none; }
.about-page > * { position: relative; z-index: 1; }
.page h1 { text-shadow: none; }
.section-label { margin: 0 0 1rem; font-size: .62rem; }
.page-footer { align-items: flex-end; }
.contact-content { align-self: center; padding-top: 2rem; }
.contact-content h1 { max-width: 11ch; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; margin-top: clamp(2.5rem, 6vh, 5rem); }
.contact-links a { color: inherit; font-size: clamp(1.1rem, 2vw, 1.7rem); letter-spacing: -.035em; text-decoration: none; }
.about-content { align-self: center; display: grid; grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 8vw, 9rem); align-items: center; padding: clamp(5rem, 10vh, 8rem) 0 4rem; }
.about-image { display: none; }
.about-image::after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(246,243,236,.28); }
.about-image span { position: relative; z-index: 1; color: rgba(255,255,255,.62); font-size: .58rem; font-weight: 700; letter-spacing: .12em; }
.about-copy { max-width: 42rem; }
.about-copy h1 { max-width: 9ch; margin-bottom: 2.2rem; font-size: clamp(3.3rem, 7vw, 7.5rem); }
.about-copy p:not(.section-label) { max-width: 37rem; color: #aaa; font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.7; }
.about-copy .about-lede { color: #f6f3ec; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.35; }
.about-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.5rem; margin: 2.6rem 0; padding: 1.2rem 0; border-top: 1px solid #303030; border-bottom: 1px solid #303030; color: #8e8e8e; font-size: .58rem; font-weight: 700; letter-spacing: .11em; }
.about-personal { margin-top: 2.4rem; }

.works-content { padding: clamp(5rem, 10vh, 8rem) 0 4rem; }
.works-heading { margin-bottom: clamp(2rem, 6vh, 4rem); }
.works-heading h1 { font-size: clamp(3.7rem, 10.2vw, 11rem); letter-spacing: -.085em; }
.feed-heading { display: grid; grid-template-columns: 1fr 2fr; column-gap: clamp(2rem, 6vw, 8rem); align-items: end; padding-bottom: clamp(3rem, 7vw, 7rem); border-bottom: 1px solid #2b2b2b; }
.feed-heading h1 { grid-column: 2; }
.feed-intro { grid-column: 2; max-width: 35rem; margin: 2rem 0 0; color: #929292; font-size: clamp(.95rem, 1.25vw, 1.15rem); line-height: 1.55; }
.work-switch { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.work-switch a { display: flex; align-items: center; justify-content: center; min-height: 4.1rem; padding: 1rem 1.2rem; border: 1px solid #505050; color: #9a9a9a; font-size: clamp(.62rem, .9vw, .78rem); font-weight: 700; letter-spacing: .12em; text-align: center; text-decoration: none; transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.work-switch a:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.work-switch a.is-active { border-color: #f3eee5; background: #f3eee5; color: #111; }
.format-nav { grid-column: 2; display: flex; gap: 1.2rem; margin: clamp(3rem, 6vw, 6rem) 0 1.5rem; }
.format-nav a { color: #777; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.format-nav a:hover, .format-nav a:focus-visible { color: #fff; }
.work-list { display: flex; flex-direction: column; }
.work-entry { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(17rem, .8fr); gap: clamp(2rem, 5vw, 7rem); padding: clamp(3rem, 7vw, 7rem) 0; border-bottom: 1px solid #2b2b2b; align-items: start; }
.work-media { position: relative; background: #000; overflow: hidden; }
.work-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.work-info { position: sticky; top: var(--edge); padding-top: .2rem; }
.work-index, .work-credit { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .11em; line-height: 1.5; color: #8e8e8e; }
.work-info h2 { max-width: 11ch; margin: clamp(1.8rem, 3vw, 2.8rem) 0 1.9rem; font-size: clamp(2.45rem, 4.65vw, 5.4rem); font-weight: 400; letter-spacing: -.07em; line-height: .92; }
.work-info p { max-width: 31rem; margin: 0 0 clamp(2.8rem, 4vw, 4rem); color: #aaa; font-size: clamp(.95rem, 1.2vw, 1.12rem); line-height: 1.7; }
.work-entry-preview { opacity: .52; }
.work-entry-preview .work-media::after { content: "PREVIEW LAYOUT"; position: absolute; top: 1rem; left: 1rem; padding: .55rem .65rem; background: rgba(0,0,0,.72); font-size: .52rem; font-weight: 700; letter-spacing: .11em; pointer-events: none; }
.format-section { margin-top: clamp(7rem, 14vw, 14rem); padding-top: clamp(2rem, 4vw, 4rem); border-top: 1px solid #303030; }
.format-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); max-width: 1100px; margin: 0 auto clamp(3rem, 7vw, 7rem); }
.format-heading .work-index { grid-column: 2; }
.format-heading h2 { grid-column: 2; margin: 1.5rem 0 2.2rem; font-size: clamp(3rem, 7vw, 7rem); font-weight: 400; letter-spacing: -.07em; line-height: .92; }
.format-heading p { grid-column: 2; max-width: 28rem; color: #aaa; font-size: 1rem; line-height: 1.7; }
.portrait-list { display: flex; flex-direction: column; gap: clamp(5rem, 10vw, 10rem); }
.portrait-entry { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 7rem); width: min(100%, 1100px); margin: 0 auto; align-items: start; }
.portrait-media { width: 100%; justify-self: start; }
.portrait-media video { aspect-ratio: 9 / 16; object-fit: cover; }
.portrait-entry .work-info { padding-top: 1rem; }
.portrait-entry .work-info h3 { max-width: 10ch; margin: 1.7rem 0 2rem; font-size: clamp(2.3rem, 4vw, 4.6rem); font-weight: 400; letter-spacing: -.07em; line-height: .92; }
.project-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.65rem, 1.25vw, 1.25rem); }
.project-card { aspect-ratio: 1 / .82; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1rem, 2vw, 1.8rem); color: #fff; text-decoration: none; background: #1b1b1b; overflow: hidden; }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.72)); }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.project-card:hover img { transform: scale(1.035); }
.project-card > span { position: relative; z-index: 1; }
.project-number { position: absolute; top: clamp(1rem, 2vw, 1.8rem); left: clamp(1rem, 2vw, 1.8rem); font-size: .65rem; font-weight: 700; letter-spacing: .1em; }
.project-name { max-width: 12ch; font-size: clamp(1.15rem, 2.2vw, 2.4rem); letter-spacing: -.055em; line-height: .95; }
.project-type { margin-top: .7rem; color: rgba(255,255,255,.68); font-size: .55rem; }
.project-arrow { position: absolute !important; right: clamp(1rem, 2vw, 1.8rem); bottom: clamp(1rem, 2vw, 1.8rem); font-size: 1.2rem; }
.project-featured { grid-column: span 4; aspect-ratio: 1.55 / .82; }
.project-tall, .project-small { grid-column: span 2; }
.muted-card { opacity: .32; cursor: default; }
.muted-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, #323232, #121212 70%); }
.project-mid::before { background: linear-gradient(145deg, #354849, #172021 72%); }

.case-body { background: #080808; color: var(--ink); }
.case-hero { position: relative; isolation: isolate; min-height: 100svh; padding: var(--edge); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.case-hero-image, .case-hero-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-hero-image { z-index: -2; object-fit: cover; object-position: center; }
.case-hero-scrim { z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 30%, rgba(0,0,0,.08)); }
.case-hero .site-header, .case-hero .section-label, .case-hero .case-scroll { color: #151412; }
.case-title { align-self: start; padding-top: clamp(5rem, 13vh, 9rem); }
.case-scroll { display: flex; justify-content: space-between; color: rgba(20,19,17,.62); }
.case-pad { padding: clamp(4.5rem, 10vw, 10rem) var(--edge); }
.case-intro { display: grid; grid-template-columns: 1fr 2.2fr 1fr; gap: clamp(2rem, 5vw, 7rem); background: var(--paper); color: #141311; }
.case-kicker { margin: .45rem 0 0; font-size: .61rem; color: inherit; }
.case-intro h2, .case-copy h2, .palette-heading h2, .motion-heading h2, .case-pending h2 {
  margin: 0; font-size: clamp(2.3rem, 5.2vw, 6.2rem); font-weight: 400; letter-spacing: -.06em; line-height: .94;
}
.case-intro-copy p, .case-copy p, .motion-heading > p:last-child, .case-pending p { max-width: 42rem; margin: 2rem 0 0; color: #59544d; font-size: clamp(1rem, 1.55vw, 1.35rem); line-height: 1.55; }
.case-meta { margin: 0; display: flex; flex-direction: column; gap: 2rem; }
.case-meta dt { margin-bottom: .45rem; font-size: .57rem; font-weight: 700; letter-spacing: .11em; }
.case-meta dd { margin: 0; color: #59544d; font-size: .88rem; line-height: 1.5; }
.full-bleed { width: 100%; }
.full-bleed img { width: 100%; height: auto; }
.logo-board { background: #f3f1ed; }
.logo-board img { width: 100%; }
.case-copy { display: grid; grid-template-columns: 1fr 3fr; gap: 3rem; background: #0a0a0a; }
.case-copy p { color: var(--muted); }
.palette-section { background: #cfc8bc; color: #161412; }
.palette-heading { display: grid; grid-template-columns: 1fr 3fr; gap: 3rem; margin-bottom: clamp(3rem, 7vw, 7rem); }
.palette-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.6rem, 1.2vw, 1.2rem); align-items: start; }
.palette-grid img { width: 100%; height: auto; object-fit: contain; }
.palette-grid img:nth-child(1) { grid-column: span 7; }
.palette-grid img:nth-child(2) { grid-column: span 5; }
.palette-grid img:nth-child(3) { grid-column: 3 / span 8; }
.motion-section { background: #030303; color: #f5f2ec; }
.motion-heading { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.motion-heading > p:last-child { margin-top: .35rem; color: var(--muted); }
.motion-film { padding: 0 var(--edge) clamp(3rem, 7vw, 7rem); }
.motion-film video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.motion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.5rem, 1vw, 1rem); padding: 0 var(--edge) var(--edge); }
.motion-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.motion-grid img:first-child, .motion-grid img:last-child { grid-column: span 2; }
.case-pending { display: grid; grid-template-columns: 1fr 3fr; gap: 3rem; background: #191816; color: #eee8dd; }
.case-pending h2 { max-width: 13ch; }
.case-pending p { color: var(--muted); }
.next-project { padding-top: 2.2rem; padding-bottom: 2.2rem; display: flex; justify-content: space-between; text-decoration: none; font-size: .68rem; font-weight: 700; letter-spacing: .1em; background: var(--paper); color: #111; }

@media (max-width: 760px) {
  .hero { padding: 1.25rem; }
  h1 { font-size: clamp(2.9rem, 15vw, 5rem); }
  .hero-meta, .page-footer { font-size: .6rem; }
  .feed-heading { grid-template-columns: 1fr; }
  .feed-heading h1, .feed-intro, .work-switch, .format-nav { grid-column: 1; grid-row: auto; }
  .work-switch { grid-column: 1; }
  .feed-heading h1 { margin-top: 1.1rem; }
  .work-entry { grid-template-columns: 1fr; gap: 1.6rem; }
  .work-info { position: static; }
  .work-info h2 { max-width: 13ch; }
  .format-heading, .portrait-entry { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; padding-top: 4rem; }
  .about-image { min-height: 50vh; order: 2; }
  .about-copy { order: 1; }
  .format-heading .work-index, .format-heading h2, .format-heading p { grid-column: 1; }
  .portrait-media { justify-self: start; width: min(100%, 24rem); }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .project-featured, .project-tall, .project-small { grid-column: span 1; aspect-ratio: 1 / 1.12; }
  .project-featured { grid-column: span 2; aspect-ratio: 1.3 / 1; }
  .case-intro, .case-copy, .palette-heading, .motion-heading, .case-pending { grid-template-columns: 1fr; }
  .case-intro-copy p { margin-top: 1.5rem; }
  .case-meta { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 1rem; }
  .palette-grid { grid-template-columns: 1fr; }
  .palette-grid img:nth-child(n) { grid-column: auto; }
  .motion-grid { grid-template-columns: 1fr 1fr; }
  .motion-grid img, .motion-grid img:nth-child(n) { grid-column: span 1; }
  .motion-grid img:first-child, .motion-grid img:last-child { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
