:root {
  --ink: #090b0a;
  --paper: #f3f4ef;
  --muted: #949b96;
  --line: rgba(255,255,255,.17);
  --green: #78ff5b;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  --serif: "Newsreader", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 16px; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
button, a { color: inherit; }
button { font: inherit; }
a { text-decoration: 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; }

.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--green); color: var(--ink); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 1.8rem 3.5vw 2.6rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; isolation: isolate; }
.site-header::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(9,11,10,.94) 0%, rgba(9,11,10,.76) 58%, rgba(9,11,10,0) 100%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transform: translateY(-18%); transition: opacity .35s ease, transform .35s ease; }
.site-header.is-scrolled::before, .site-header:focus-within::before { opacity: 1; transform: none; }
.identity { display: grid; gap: .25rem; }
.identity-name { font-size: clamp(.95rem, 1.35vw, 1.25rem); }
.identity small { font-size: .68rem; letter-spacing: .28em; }
.identity small a { transition: color .2s ease; }
.identity small a:hover, .identity small a:focus-visible { color: var(--green); }
nav { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4.5rem); font-size: .75rem; }
nav a { position: relative; padding-bottom: .35rem; }
nav a::after { content: ""; position: absolute; height: 1px; left: 0; bottom: 0; width: 0; background: var(--green); transition: width .3s ease; }
nav a:hover::after, nav a:focus-visible::after { width: 100%; }
.menu-toggle { display: none; background: none; border: 0; text-transform: uppercase; font-family: var(--mono); letter-spacing: .15em; }

.hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; background: #121713; }
.hero-media { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background-color: transparent; background-size: cover; background-position: center; cursor: pointer; transform: scale(1.01); transition: opacity .35s ease, transform 8s ease; }
.hero-media:not(.is-changing) { transform: scale(1.055); }
.hero-media.is-changing { opacity: .2; }
.hero-media:focus-visible { outline: 2px solid var(--green); outline-offset: -4px; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,7,6,.82) 0%, rgba(5,7,6,.2) 58%, rgba(5,7,6,.48) 100%), linear-gradient(0deg, rgba(5,7,6,.86) 0%, transparent 48%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .15; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 2; width: min(72rem, 92vw); margin: 0 0 10vh 3.5vw; }
.hero-count, .eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.hero-count { margin-bottom: 1.2rem; color: var(--green); }
.hero-count span:last-child { color: var(--paper); opacity: .65; }
.eyebrow { margin: 0 0 1rem; color: rgba(255,255,255,.62); }
.eyebrow.green { color: var(--green); }
h1, h2, p { margin-top: 0; }
.hero-client-title { max-width: none; margin: 0 0 .25rem; font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 7.8rem); font-weight: 400; line-height: .88; letter-spacing: -.035em; white-space: nowrap; }
.hero-project-title { margin: 0 0 1rem; font-size: clamp(1.45rem, 3.1vw, 3.6rem); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.hero-meta { color: rgba(255,255,255,.68); font-family: var(--mono); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.play-button { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.2rem; padding: 0; border: 0; background: transparent; font-family: var(--mono); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.play-icon { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border: 1px solid rgba(255,255,255,.76); border-radius: 50%; font-size: .7rem; transition: .25s ease; }
.play-button:hover .play-icon { color: var(--ink); border-color: var(--green); background: var(--green); transform: scale(1.08); }
.hero-controls { position: absolute; z-index: 2; left: 3.5vw; right: 3.5vw; bottom: 2.2rem; display: flex; align-items: center; gap: 1.2rem; }
.hero-controls button { width: 2.4rem; height: 2.4rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(0,0,0,.18); cursor: pointer; }
.hero-controls button:hover { border-color: var(--green); color: var(--green); }
.hero-progress { flex: 1; max-width: 24rem; height: 1px; background: rgba(255,255,255,.28); overflow: hidden; }
.hero-progress span { display: block; width: 100%; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }
.hero-progress span.run { animation: progress 8s linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }

.work-section, .about-section { padding: clamp(5rem, 10vw, 10rem) 3.5vw; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.section-heading h2, .about-section h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6vw, 6.3rem); line-height: .9; letter-spacing: -.04em; }
.view-toggle { padding: .65rem 0; border: 0; border-bottom: 1px solid var(--green); background: none; font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.4rem, .65vw, .75rem); padding-top: clamp(.75rem, 1.4vw, 1.25rem); }
.more-work-wrap { display: flex; justify-content: center; padding-top: clamp(2.25rem, 4vw, 4rem); }
.view-toggle:hover, .view-toggle:focus-visible { color: var(--green); }
.project-card { min-width: 0; }
.project-card button { width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.project-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #181b19; }
.project-image::after { content: ""; position: absolute; inset: 0; background: rgba(6,8,7,0); transition: background .4s ease; }
.project-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); transform: scale(1.002); transition: transform .7s cubic-bezier(.2,.65,.2,1), filter .45s ease; }
.project-play { position: absolute; z-index: 2; left: 1.1rem; bottom: 1rem; padding: .55rem .7rem; background: var(--green); color: var(--ink); font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transform: translateY(.5rem); transition: .3s ease; }
.project-card button:hover img { transform: scale(1.045); filter: saturate(1) contrast(1.05); }
.project-card button:hover .project-image::after { background: transparent; }
.project-card button:hover .project-play { opacity: 1; transform: none; }
.project-image { transition: border-radius .3s ease; }
.client-overlay { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; padding: .75rem; text-align: center; color: #fff; isolation: isolate; opacity: 0; transition: opacity .3s ease; }
.client-overlay::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--client-color); opacity: .86; }
.client-overlay strong { font-family: var(--sans); font-size: clamp(1rem, 1.55vw, 1.65rem); font-weight: 600; line-height: 1.05; text-transform: uppercase; }
.client-overlay > span { font-size: clamp(.72rem, .9vw, .9rem); line-height: 1.15; }
.client-overlay small { font-family: var(--mono); font-size: clamp(.58rem, .7vw, .7rem); line-height: 1.2; }
.project-card button:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }
.project-card button:focus-visible .client-overlay { opacity: 1; }
.project-card button:focus-visible .project-image { border-radius: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .project-card button:hover .client-overlay { opacity: 1; }
  .project-card button:hover .project-image { border-radius: 1rem; }
}

.about-section { border-top: 1px solid var(--line); }
.about-section > .eyebrow { width: 100%; }
.about-grid { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 4rem); }
.about-copy { width: min(100%, 76rem); text-align: center; }
.about-copy p { color: #e3e5e1; font-size: clamp(1.5rem, 2.55vw, 2.75rem); font-weight: 600; line-height: 1.25; letter-spacing: -.045em; }
.about-line { display: block; white-space: nowrap; }
.text-link { display: inline-grid; justify-items: center; gap: .5rem; margin-top: 1.4rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.text-link-rule { display: block; width: 100%; height: 1px; background: var(--green); }
.text-link-arrow { color: var(--green); font-size: .9rem; line-height: 1; transition: transform .25s ease; }
.text-link:hover .text-link-arrow, .text-link:focus-visible .text-link-arrow { transform: translateY(.22rem); }
.client-proof { margin-top: clamp(4rem, 8vw, 7rem); }
.client-group + .client-group { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.client-group-label { margin: 0 0 1rem; color: var(--green); font-family: var(--mono); font-size: .66rem; letter-spacing: .13em; text-align: center; text-transform: uppercase; }
.logo-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .55rem clamp(.7rem, 1.25vw, 1.4rem); align-items: center; max-width: 92rem; margin: 0 auto; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-card { display: grid; place-items: center; min-width: 0; min-height: 2.6rem; padding: .25rem; }
.logo-card img { display: block; width: auto; height: auto; max-width: 100%; max-height: 1.35rem; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .88; }
.logo-card strong { color: #e5e7e2; font-family: var(--sans); font-size: .82rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.agency-group .logo-card img { max-height: 1.25rem; }
.agency-group .logo-180la img { max-height: 1.8rem; filter: grayscale(1) invert(1); mix-blend-mode: screen; }
.logo-us-army-stacked img { max-height: 2.05rem; }
.logo-jack-in-the-box-user img { max-height: 1.75rem; filter: grayscale(1) contrast(10) invert(1); opacity: 1; }

@media (min-width: 761px) {
  #brand-logo-grid .logo-card:nth-child(n + 9) { transform: translateX(50%); }
}

@media (hover: none), (pointer: coarse) {
  .client-overlay { align-items: center; justify-content: flex-end; gap: .2rem; padding: 2.5rem 1rem .8rem; text-align: center; opacity: 1; transition: none; }
  .client-overlay::before { background: linear-gradient(0deg, var(--client-color) 0%, color-mix(in srgb, var(--client-color) 72%, transparent) 52%, transparent 100%); opacity: .92; }
  .client-overlay strong { max-width: 100%; font-size: .82rem; line-height: 1.1; }
  .client-overlay > span { max-width: 100%; font-size: .58rem; line-height: 1.1; }
  .client-overlay small { display: none; }
}

@media (max-width: 1100px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
footer { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 3.5rem 3.5vw; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-align: center; text-transform: uppercase; scroll-margin-top: 2rem; }
footer:focus { outline: none; }
.footer-email { position: relative; color: var(--paper); font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 2.1rem); letter-spacing: 0; text-transform: none; }
.footer-email::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.48rem; height: .32rem; border-radius: 999px; background: var(--green); transform: scaleX(0); transform-origin: left; }
footer.email-highlight .footer-email { animation: email-glow 1.45s ease-in-out both; }
footer.email-highlight .footer-email::after { animation: email-swipe 1.45s ease-in-out both; }
@keyframes email-swipe {
  0% { transform: scaleX(0); transform-origin: left; }
  42% { transform: scaleX(1); transform-origin: left; }
  58% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
@keyframes email-glow { 35%, 65% { color: var(--green); } }
.copy-email { padding: .55rem 0; border: 0; border-bottom: 1px solid var(--green); background: transparent; color: var(--paper); font-family: var(--mono); font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.copy-email:hover, .copy-email:focus-visible { color: var(--green); }
.copy-status { min-height: 1em; margin: -0.8rem 0 0; color: var(--muted); font-size: .58rem; letter-spacing: .06em; text-transform: none; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover, .footer-email:hover { color: var(--green); }

.video-modal { width: min(94vw, 78rem); max-width: none; padding: 0; border: 0; background: #0c0f0d; color: var(--paper); }
.video-modal::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(8px); }
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 1.2rem; }
.modal-bar > div { display: grid; gap: .2rem; }
.modal-bar strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.modal-bar span { color: var(--muted); font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; }
.modal-bar button { padding: .6rem; border: 0; background: none; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; cursor: pointer; }
.modal-bar button:hover { color: var(--green); }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

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

@media (max-width: 760px) {
  .site-header { padding: 1.25rem 1.25rem 2rem; }
  .menu-toggle { display: block; }
  nav { position: absolute; top: 4rem; right: 1.25rem; display: none; min-width: 10rem; padding: 1.25rem; background: rgba(9,11,10,.94); border: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 1rem; }
  nav.open { display: flex; }
  .hero { min-height: 82svh; }
  .hero-shade { background: linear-gradient(0deg, rgba(5,7,6,.92) 0%, rgba(5,7,6,.15) 76%); }
  .hero-content { width: calc(100% - 2.5rem); margin: 0 1.25rem 7.5rem; }
  .hero-client-title { font-size: clamp(2.35rem, 10.5vw, 4rem); }
  .hero-project-title { font-size: clamp(1.2rem, 5.2vw, 1.65rem); }
  .hero-controls { left: 1.25rem; right: 1.25rem; bottom: 1.3rem; }
  .work-section, .about-section { padding: 5.5rem 1.25rem; }
  .section-heading { align-items: flex-start; gap: 2rem; }
  .project-grid { grid-template-columns: 1fr; gap: .65rem; }
  .client-overlay strong { font-size: 1.5rem; }
  .client-overlay > span { font-size: .9rem; }
  .client-overlay small { font-size: .7rem; }
  .about-grid { margin-top: 2rem; }
  .about-copy p { font-size: clamp(1.35rem, 6.2vw, 1.8rem); line-height: 1.35; }
  .about-line { display: inline; white-space: normal; }
  .about-line + .about-line::before { content: " "; }
  #brand-logo-grid .logo-card:nth-child(n + 9) { transform: none; }
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem .75rem; }
  .logo-card { min-height: 2.35rem; padding: .2rem; }
  .logo-card img { max-height: 1.1rem; }
  .agency-group .logo-180la img, .logo-us-army-stacked img, .logo-jack-in-the-box-user img { max-height: 1.4rem; }
  .logo-card strong { font-size: .65rem; }
  .client-overlay { align-items: center; justify-content: flex-end; gap: .14rem; padding: 2.2rem .75rem .7rem; text-align: center; opacity: 1; transition: none; }
  .client-overlay strong { max-width: 100%; font-size: .75rem; line-height: 1.08; }
  .client-overlay > span { max-width: 100%; font-size: .45rem; line-height: 1.1; }
  .client-overlay small { display: none; }
  footer { gap: 1.5rem; padding: 3rem 1.25rem; }
  .footer-links { flex-wrap: wrap; }
  .modal-bar span { display: none; }
}

@media (orientation: landscape) and (max-height: 560px) and (pointer: coarse) {
  .site-header { align-items: center; padding: max(.7rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 1.35rem max(1rem, env(safe-area-inset-left)); }
  .identity { gap: 0; }
  .identity-name { font-size: .78rem; }
  .identity small { display: none; }
  nav { gap: clamp(1.25rem, 4vw, 2.5rem); font-size: .64rem; }
  .hero { min-height: 100svh; }
  .hero-content { width: min(34rem, 58vw); margin: 0 0 4.5rem max(1rem, env(safe-area-inset-left)); }
  .hero-count, .hero-content > .eyebrow { display: none; }
  .hero-client-title { font-size: clamp(2.65rem, 7vw, 4.2rem); }
  .hero-project-title { margin-bottom: .55rem; font-size: clamp(1.15rem, 3vw, 1.65rem); }
  .hero-meta { font-size: .6rem; }
  .play-button { gap: .75rem; margin-top: .6rem; font-size: .65rem; }
  .play-icon { width: 2.6rem; height: 2.6rem; }
  .hero-controls { left: max(1rem, env(safe-area-inset-left)); right: max(1rem, env(safe-area-inset-right)); bottom: .85rem; }
}
