:root {
  color-scheme: dark;
  --bg: #090b0d;
  --bg-2: #0e1114;
  --fg: #eeeae5;
  --dim: #9ba0a3;
  --muted: #c2c4c5;
  --line: rgba(236,240,241,.17);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --page-pad: clamp(22px, 5.2vw, 96px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #f1eee8; outline-offset: 5px; }
.skip-link { position: fixed; z-index: 300; left: 20px; top: -70px; background: #fff; color: #000; padding: 12px 18px; }
.skip-link:focus { top: 15px; }
.content-width { width: min(100%, 1750px); padding-inline: var(--page-pad); margin-inline: auto; }

/* The compact identity bar shown in the Selected Work concept mockup. */
.floating-brand { position: fixed; z-index: 40; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 21px var(--page-pad) 27px; background: linear-gradient(180deg, #080a0dee, #080a0dbf 73%, transparent); opacity: 0; visibility: hidden; transform: translateY(-12px); pointer-events: none; transition: opacity .24s ease, transform .24s ease, visibility .24s ease; }
.floating-brand.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.floating-brand-name { font: 400 clamp(1.8rem, 2.6vw, 2.9rem)/1 var(--serif); letter-spacing: -.04em; }
.floating-brand-section { font-size: .62rem; color: #d5d5d5; font-weight: 600; letter-spacing: .2em; }

/* HERO: footage first, typography remains almost entirely out of the picture. */
.hero { position: relative; min-height: min(960px, 100svh); height: 100svh; background: #121619; isolation: isolate; overflow: hidden; }
.hero-video { position: absolute !important; inset: 0; }
.video-surface { position: relative; overflow: hidden; background: radial-gradient(ellipse at 65% 50%, #242a2c 0%, #0f1316 60%, #06080a 100%); isolation: isolate; }
.player-slot { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.player-slot iframe { display: block; border: 0 !important; width: 100%; height: 100%; position: absolute; top: 0; left: 0; pointer-events: none; }
/* Center-cover the 16:9 YouTube frame without introducing letterboxing in the hero. */
.hero-video .player-slot iframe { width: max(100%, 177.78svh); height: max(100%, 56.25vw); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; opacity: 1; transition: opacity 850ms ease; filter: saturate(.87) contrast(1.035); }
.video-surface.is-playing .video-poster { opacity: 0; }
.video-wash { position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.48), transparent 21%, transparent 62%, rgba(3,6,8,.77)); }
.video-open { display: block; position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; background: transparent; border: 0; color: inherit; cursor: pointer; }
.hero .video-open { cursor: zoom-in; }
.hero-brand { position: absolute; top: clamp(30px, 4.5vw, 72px); left: var(--page-pad); z-index: 6; pointer-events: none; text-shadow: 0 2px 18px #0007; }
.wordmark { font-family: var(--serif); font-weight: 400; font-size: clamp(3.1rem, 4.6vw, 5.2rem); letter-spacing: -.045em; line-height: .94; }
.hero-brand p { font-size: clamp(.56rem,.85vw,.78rem); letter-spacing: .23em; font-weight: 500; margin: 18px 0 0 4px; }
.hero-brand p span,.footer-line span,.project-type span { opacity: .38; padding-inline: .26em; }
.hero-tools { position: absolute; top: clamp(35px, 4.5vw, 70px); right: var(--page-pad); z-index: 8; }
.sound-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px 12px; color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.19); backdrop-filter: blur(10px); }
.sound-label { font-weight: 600; font-size: .61rem; letter-spacing: .16em; }
.icon-sound-on { display: none; }
.sound-toggle[aria-pressed="true"] .icon-sound-off { display: none; }
.sound-toggle[aria-pressed="true"] .icon-sound-on { display: block; }
.scroll-cue { display: flex; position: absolute; bottom: clamp(22px, 3.8vw, 62px); left: 50%; transform: translateX(-50%); z-index: 6; gap: 14px; align-items: center; flex-direction: column; text-decoration: none; white-space: nowrap; font-size: .63rem; letter-spacing: .22em; color: #e9e9e9; font-weight: 500; text-shadow: 0 1px 12px #000; }
.scroll-cue-line { display: block; width: 1px; height: 36px; background: rgba(255,255,255,.75); }

/* SELECTED WORK */
.work-section { padding-top: clamp(88px, 11vw, 170px); padding-bottom: clamp(105px, 12vw, 170px); }
.section-index, .project-num { display: flex; align-items: center; gap: 18px; letter-spacing: .18em; color: #b7b8b7; font-size: .77rem; }
.section-index i, .project-num i, .column-label i { width: 68px; height: 1px; background: #696e6f; opacity: .8; }
.section-heading { margin-bottom: clamp(55px, 6.9vw, 110px); }
.section-heading h1 { margin: 20px 0 0; font-family: var(--serif); letter-spacing: -.055em; font-size: clamp(4.5rem, 8.5vw, 10rem); line-height: .98; font-weight: 400; }
.project { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: center; column-gap: clamp(35px, 5vw, 90px); padding: clamp(55px, 7vw, 104px) 0; border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project-info { align-self: center; padding-block: 14px; }
.project-num { margin-bottom: clamp(28px, 4vw, 65px); }
.project-num i { width: 36px; }
.project h2 { margin: 0 0 18px; font-weight: 400; font-family: var(--serif); font-size: clamp(3.65rem, 5.6vw, 7.1rem); line-height: .91; letter-spacing: -.052em; text-wrap: balance; }
.project-type { margin: 28px 0 0; font-size: clamp(.65rem, .85vw, .76rem); font-weight: 500; letter-spacing: .2em; color: #c5c6c8; line-height: 1.7; }
.project-hint { margin: clamp(45px, 6vw, 88px) 0 0; color: #a3a7a7; font-size: .64rem; letter-spacing: .15em; }
.project-hint span { font-size: 1.2rem; vertical-align: -.08em; margin-left: 8px; }
.project-video { width: 100%; aspect-ratio: 16/9; min-width: 0; box-shadow: 0 25px 65px #0005; }
.project-video .video-wash { background: linear-gradient(180deg, #0003, transparent 24%, transparent 60%, #0006); }
.project-video .video-poster { filter: saturate(.85) contrast(1.035); }
.video-badge { position: absolute; z-index: 5; left: 17px; bottom: 17px; font-size: .58rem; font-weight: 600; letter-spacing: .14em; color: #e0e0df; background: rgba(3,5,6,.5); padding: 8px 10px; pointer-events: none; backdrop-filter: blur(6px); }
.video-corner { z-index: 5; position: absolute; top: 12px; right: 16px; font-size: 1.5rem; pointer-events: none; opacity: .85; transition: transform .2s ease; }
.project-video:hover .video-corner { transform: translate(3px,-3px); }
.project-video:hover .video-poster { filter: saturate(1.0) contrast(1.02); }

/* ABOUT + CLIENTS, styled like the final mockup, with footage-owned thumbnail only. */
.about-section { position: relative; isolation: isolate; overflow: hidden; padding: clamp(90px, 11vw, 170px) 0 clamp(105px, 12vw, 185px); background: #101519; }
.about-backdrop { position: absolute; inset: -50px; z-index: -1; background-image: linear-gradient(90deg, rgba(8,12,15,.94), rgba(10,16,21,.87)), url('https://i.ytimg.com/vi/3eyjkI8_cRA/maxresdefault.jpg?refresh=20261009-2'); background-position: center; background-size: cover; filter: saturate(.6); }
.about-inner { display: grid; grid-template-columns: minmax(0,1.17fr) minmax(0,.83fr); gap: clamp(70px, 10vw, 180px); }
.column-label { display: flex; align-items: center; gap: 18px; font-size: .7rem; font-weight: 600; letter-spacing: .24em; margin-bottom: clamp(46px, 5vw, 80px); }
.column-label i { width: 45px; }
.about-lead { font: 400 clamp(2.1rem, 3.25vw, 4.0rem)/1.14 var(--serif); margin: 0; letter-spacing: -.03em; max-width: 790px; }
.about-detail { margin: 34px 0 0; max-width: 620px; color: #bbbfc0; font-size: clamp(.9rem, 1.05vw, 1.04rem); line-height: 1.9; }
.client-grid { display: grid; list-style: none; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 34px; row-gap: 34px; padding: 0; margin: 0; }
.client-grid li { font: 400 clamp(1.4rem, 2.1vw, 2.45rem)/1.1 var(--serif); letter-spacing: -.02em; color: #e5e5e3; }
.site-footer { display: flex; align-items: center; min-height: 160px; gap: 32px; }
.footer-brand { font-family: var(--serif); font-size: 2rem; white-space: nowrap; }
.footer-line { font-size: .62rem; font-weight: 500; letter-spacing: .16em; color: #9a9e9e; }
.top-link { text-decoration: none; font-weight: 500; font-size: .65rem; letter-spacing: .17em; margin-left: auto; color: #c5c9c9; white-space: nowrap; }
.top-link:hover { color: #fff; }

/* LARGE VIDEO OVERLAY */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(14px,4vw,55px); visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
.lightbox[aria-hidden="false"] { visibility: visible; opacity: 1; }
.lightbox-shade { position: absolute; inset: 0; background: rgba(0,0,0,.95); backdrop-filter: blur(18px); }
.lightbox-inner { width: min(100%, 1430px); position: relative; z-index: 1; }
.lightbox-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 20px; font-size: .7rem; letter-spacing: .15em; color: #e1e1e1; }
.lightbox-close { background: transparent; border: 0; color: #fff; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .15em; padding: 8px 0 8px 12px; }
.lightbox-close span { font-size: 2.2rem; font-weight: 300; line-height: .7; }
.lightbox-frame { width: 100%; aspect-ratio: 16 / 9; background: #050505; box-shadow: 0 25px 90px #000; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.youtube-fallback { display: inline-block; margin-top: 17px; text-decoration: none; font-size: .61rem; letter-spacing: .18em; color: #9ca0a0; }
.youtube-fallback:hover { color: #fff; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 1020px) {
  .project { grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); column-gap: 28px; }
  .project h2 { font-size: clamp(2.6rem, 5vw, 4rem); }
  .project-hint { margin-top: 34px; font-size: .55rem; }
  .about-inner { gap: 45px; }
  .client-grid { grid-template-columns: 1fr 1fr; column-gap: 18px; }
}
@media (max-width: 730px) {
  :root { --page-pad: 22px; }
  .floating-brand { padding-top: 18px; padding-bottom: 20px; }
  .floating-brand-name { font-size: 1.8rem; }
  .floating-brand-section { font-size: .48rem; }
  .hero { height: 82svh; min-height: 560px; max-height: 850px; }
  .hero-video .player-slot iframe { width: max(100%, 146svh); height: max(100%,56.25vw); }
  .hero-brand { top: 33px; }
  .wordmark { font-size: clamp(2.9rem, 10.7vw, 4rem); }
  .hero-brand p { font-size: .56rem; margin-top: 13px; letter-spacing: .12em; }
  .hero-tools { top: auto; right: var(--page-pad); bottom: 29px; }
  .sound-label { display: none; }
  .sound-toggle { border-radius: 50%; padding: 10px; }
  .scroll-cue { left: var(--page-pad); transform: none; bottom: 27px; align-items: flex-start; font-size: .52rem; }
  .scroll-cue-line { height: 20px; }
  .section-heading h1 { font-size: clamp(4.5rem, 14vw, 7.2rem); }
  .work-section { padding-top: 84px; padding-bottom: 100px; }
  .section-heading { margin-bottom: 54px; }
  .project { grid-template-columns: 1fr; padding: 54px 0 63px; gap: 29px; }
  .project-info { padding: 0; }
  .project-num { margin-bottom: 26px; }
  .project h2 { font-size: clamp(3.5rem, 10vw, 5.7rem); margin-bottom: 0; }
  .project-type { margin: 14px 0 0; }
  .project-hint { display: none; }
  .video-badge { left: 9px; bottom: 10px; padding: 6px 7px; font-size: .5rem; }
  .about-section { padding-block: 92px 105px; }
  .about-inner { grid-template-columns: 1fr; gap: 85px; }
  .column-label { margin-bottom: 37px; }
  .about-lead { font-size: clamp(2.35rem, 8.1vw, 3.8rem); }
  .about-detail { margin-top: 25px; }
  .client-grid { gap: 23px 20px; }
  .client-grid li { font-size: clamp(1.48rem, 5.1vw, 2.5rem); }
  .site-footer { min-height: 165px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 12px; }
  .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-line { grid-column: 1 / -1; grid-row: 2; }
  .top-link { grid-column: 2; grid-row: 1; align-self: center; }
  .lightbox { padding: 16px 0; }
  .lightbox-inner { width: 100%; }
  .lightbox-topbar, .youtube-fallback { margin-inline: 18px; }
  .lightbox-frame { width: 100%; }
}
@media (max-width: 370px) {
  .hero-brand p { font-size: .49rem; }
  .client-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .top-link { grid-column: 1; grid-row: 3; margin-left: 0; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Only displayed when YouTube reports blocked/unavailable autoplay.
   Does not change the original look during normal playback. */
.hero-video.autoplay-blocked::after {
  content: "CLICK TO PLAY REEL ↗";
  position: absolute; z-index: 5; left: 50%; top: 51%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: #fff; background: rgba(0,0,0,.48);
  padding: 12px 16px; font-size: .65rem; font-weight: 600;
  letter-spacing: .19em; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.35);
}
