/* K1000 Vision — site styles */
:root {
  --bg: #0d0d0d;
  --fg: #ededE8;
  --muted: #a3a39d;
  --faint: #8a8a84;
  --line: #262626;
  --line-2: #3a3a3a;
  --accent: #E0743A;
  --max: 1360px;
  --pad: clamp(20px, 3vw, 40px);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow { margin: 0 0 16px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -.01em; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid rgba(237,237,232,.5); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn:hover { border-color: var(--accent); }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.site-header--solid { position: static; border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; }
.logo img { height: 48px; width: auto; }
.nav__links { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.nav__links a[aria-current="page"], .nav__links .is-accent { color: var(--accent); }

/* Hero */
.hero { position: relative; height: 92vh; min-height: 560px; max-height: 960px; overflow: hidden; display: flex; align-items: flex-end; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,0) 30%, rgba(13,13,13,0) 55%, rgba(13,13,13,.92) 100%); }
.hero__inner { position: relative; z-index: 1; width: 100%; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero h1 { font-size: clamp(40px, 6vw, 88px); line-height: 1.02; letter-spacing: -.02em; max-width: 820px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Clients */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 48px; padding-top: 28px; padding-bottom: 28px; font-family: var(--display); font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: #9a9a94; }
.clients__label { font-family: var(--body); font-size: 12px; letter-spacing: .2em; color: var(--faint); }

/* Sections */
.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: 40px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(32px, 4vw, 56px); }
.section__head p { margin: 0; color: var(--muted); max-width: 420px; }

.feature { display: block; margin-bottom: 56px; }
.feature__img { aspect-ratio: 16 / 8; overflow: hidden; background: #1a1a1a; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform .6s ease; }
.feature:hover .feature__img img, .card:hover .card__img img { transform: scale(1.03); }
.meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 16px; }
.meta__title { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600; }
.feature .meta__title { font-size: 28px; }
.meta__sub { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.meta__tag { margin: 4px 0 0; font-size: 13px; letter-spacing: .16em; color: var(--muted); white-space: nowrap; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 56px 32px; }
.card { display: block; color: var(--fg); }
.card:hover { color: var(--fg); }
.card:hover .meta__title { color: var(--accent); }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; background: #1a1a1a; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.center { display: flex; justify-content: center; margin-top: 64px; }

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 40px 32px; }
.service { border-top: 1px solid #333; padding-top: 24px; }
.service__n { margin: 0 0 12px; font-size: 13px; letter-spacing: .18em; color: var(--accent); }
.service h3 { font-size: 24px; margin-bottom: 12px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

/* About */
.about { position: relative; overflow: hidden; min-height: 460px; aspect-ratio: 16 / 9; background: #c9cacc; }
.about > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.about::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,13,13,.9) 0%, rgba(13,13,13,.62) 36%, rgba(13,13,13,0) 60%); }
.about__text { position: relative; z-index: 1; max-width: 520px; padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px); }
.about__text h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; margin-bottom: 24px; }
.about__text p { margin: 0 0 16px; color: #dcdcd6; font-size: 17px; }
.about__text .btn { margin-top: 16px; border-color: rgba(237,237,232,.6); }
@media (max-width: 760px) {
  .about { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--bg); }
  .about > img { position: static; aspect-ratio: 16 / 10; height: auto; }
  .about::after { display: none; }
  .about__text { padding: 32px 0 0; }
}

/* Contact & footer */
.contact { border-top: 1px solid var(--line); margin-top: 80px; }
.contact .wrap { padding-top: clamp(72px, 10vw, 120px); padding-bottom: 64px; }
.contact__mail { display: inline-block; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 5.4vw, 80px); line-height: 1.05; letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact__info { display: flex; flex-wrap: wrap; gap: 24px 64px; margin-top: 56px; color: var(--muted); font-size: 15px; }
.contact__info p { margin: 0; }
.label { display: block; margin: 0 0 4px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* Work page */
.work { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; max-width: 1440px; margin: 0 auto; padding: 40px var(--pad) 80px; font-size: 14px; line-height: 1.55; }
.side { flex: 1 1 220px; max-width: 280px; min-width: 0; }
@media (min-width: 960px) { .side { position: sticky; top: 40px; } }
.side .logo img { height: 56px; }
.side nav { display: flex; flex-direction: column; gap: 2px; margin-top: 36px; }
.side nav + nav { margin-top: 28px; }
.side nav a, .side nav button { padding: 3px 0; text-align: left; }
.side .is-muted { color: #9a9a94; }
.side__foot { margin: 28px 0 0; color: #9a9a94; font-size: 13px; }
.link-btn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.link-btn:hover { color: var(--accent); }
.gallery-wrap { flex: 999 1 640px; min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); font: 600 12px var(--body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.pill:hover { border-color: var(--fg); }
.pill[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.count { margin-left: 8px; color: #9a9a94; font-size: 13px; }
.gallery { columns: 3 260px; column-gap: 16px; }
.tile { position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: #1a1a1a; cursor: zoom-in; break-inside: avoid; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .4s ease; }
.tile:hover img { transform: scale(1.03); }
.tile__cap { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; gap: 16px; padding: 40px 16px 14px; font-size: 13px; color: #fff; text-align: left; background: linear-gradient(180deg, rgba(13,13,13,0), rgba(13,13,13,.75)); opacity: 0; transition: opacity .2s ease; }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; }
.tile--film { cursor: pointer; }
.tile--film img { opacity: .85; }
.tile--film:hover img { opacity: 1; }
.tile--film .film__play { transition: background .2s, transform .2s; }
.tile--film:hover .film__play { background: var(--accent); border-color: var(--accent); }
.tile__badge { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: 99px; background: rgba(13,13,13,.6); color: #fff; border: 1px solid rgba(237,237,232,.35); }
.vplayer { position: fixed; inset: 0; z-index: 200; background: rgba(8,8,8,.96); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; }
.vplayer.is-open { display: flex; }
.vplayer__frame { width: min(92vw, calc(82vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.vplayer__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vplayer__cap { color: #a3a39d; font-size: 14px; margin: 0; text-align: center; }
.vplayer .lb-close { position: absolute; top: 16px; right: 16px; }
.tile__cap span:last-child { color: rgba(255,255,255,.75); white-space: nowrap; }
@media (hover: none) { .tile__cap { opacity: 1; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,8,.97); display: none; flex-direction: column; }
.lightbox.is-open { display: flex; }
.lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 64px 72px 16px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 24px 24px; font-size: 14px; }
.lightbox__title { margin: 0; }
.lightbox__title span { color: #9a9a94; margin-left: 12px; }
.lightbox__right { display: flex; align-items: center; gap: 20px; color: #9a9a94; }
.lightbox__right a { color: var(--fg); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.lightbox__right a:hover { color: var(--accent); }
.lb-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--fg); cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.16); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox__stage { padding: 64px 8px 8px; } .lb-prev, .lb-next { top: auto; bottom: 84px; transform: none; } }

/* Project page */
.project-head { padding-top: 72px; padding-bottom: 56px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.project-head h1 { margin-top: 24px; font-size: clamp(44px, 6.4vw, 96px); line-height: 1; letter-spacing: -.02em; }
.project-intro { display: flex; flex-wrap: wrap; gap: 40px 64px; margin-top: 56px; }
.project-intro p { flex: 999 1 480px; max-width: 680px; margin: 0; color: #c9c9c3; font-size: 20px; }
.facts { flex: 1 1 280px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin: 0; font-size: 15px; }
.facts dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 4px 0 0; }
.facts .wide { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack .row { display: flex; flex-wrap: wrap; gap: 24px; }
.stack .row > * { flex: 1 1 360px; min-width: 0; }
.stack img { width: 100%; object-fit: cover; cursor: zoom-in; }
.next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.next img { width: 360px; max-width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.next p:last-child { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 56px); line-height: 1.05; }

/* Home categories */
.cats { display: flex; flex-wrap: wrap; gap: 24px; }
.cat { flex: 1 1 320px; min-width: 0; position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #1a1a1a; color: var(--fg); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,0) 55%, rgba(13,13,13,.8) 100%); }
.cat:hover img { transform: scale(1.03); }
.cat__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; display: flex; justify-content: space-between; align-items: flex-end; font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.cat:hover .cat__label { color: var(--accent); }

.toolbar { flex-wrap: wrap; }
.subfilters { flex-basis: 100%; order: 3; margin-top: -4px; }
.subfilters[hidden], .subfilters [hidden] { display: none; }
.pill--sm { min-height: 36px; padding: 0 14px; font-size: 11px; }

/* Film page */
.film-intro { color: var(--muted, #a3a39d); max-width: 560px; margin: 12px 0 0; }
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 40px 24px; padding-bottom: 96px; }
.film { margin: 0; }
.film__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #1a1a1a; cursor: pointer; overflow: hidden; color: #fff; }
.film__frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, opacity .3s ease; opacity: .85; }
.film__frame:hover img { transform: scale(1.03); opacity: 1; }
.film__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8a8a84; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.film__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(13,13,13,.6); border: 1px solid rgba(237,237,232,.6); display: flex; align-items: center; justify-content: center; padding-left: 4px; box-sizing: border-box; transition: background .2s; }
.film__frame:hover .film__play { background: var(--accent); border-color: var(--accent); }
.film__iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: #000; }
.film figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; }
.film__title { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; }
.film__role { color: #a3a39d; font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid #262626; font-size: 13px; color: #8a8a84; }

a.pill { text-decoration: none; }
a.pill:hover { color: var(--fg); border-color: var(--fg); }
.pill[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.project-head .filters { margin-bottom: 40px; }

/* Project page gallery (masonry) */
.project-gallery { columns: 2 420px; column-gap: 16px; padding-bottom: 80px; }
.project-gallery img { width: 100%; height: auto; display: block; margin: 0 0 16px; break-inside: avoid; cursor: zoom-in; }

/* Projects index */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 40px 24px; padding-bottom: 96px; }
.pcard { display: flex; flex-direction: column; gap: 4px; color: var(--fg); text-decoration: none; }
.pcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-bottom: 12px; transition: opacity .3s; }
.pcard:hover img { opacity: .85; }
.pcard__title { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 600; }
.pcard:hover .pcard__title { color: var(--accent); }
.pcard__meta { color: #a3a39d; font-size: 14px; }

/* ================= Mobile ================= */
.burger, .mmenu { display: none; }
@media (max-width: 760px) {
  :root { --pad: 16px; }
  /* Header + burger */
  .nav { flex-wrap: nowrap; padding-top: 14px; padding-bottom: 14px; }
  .nav .logo img { height: 36px; width: auto; }
  .nav__links { display: none; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-left: auto; padding: 0 10px; border: 0; background: transparent; cursor: pointer; position: relative; z-index: 120; }
  .burger span { display: block; height: 2px; background: var(--fg); transition: transform .25s ease, opacity .2s; }
  .menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mmenu { display: flex; position: fixed; inset: 0; z-index: 110; flex-direction: column; justify-content: space-between; padding: 96px 24px 32px; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
  .menu-open .mmenu { opacity: 1; visibility: visible; }
  .mmenu__links { display: flex; flex-direction: column; gap: 4px; }
  .mmenu__links a { font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1.15; letter-spacing: -.01em; color: var(--fg); text-decoration: none; }
  .mmenu__links a:active, .mmenu__links a:hover { color: var(--accent); }
  .mmenu__foot { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
  .mmenu__foot a { color: #a3a39d; text-decoration: none; }
  .menu-open .burger { position: fixed; top: 10px; right: 12px; }
  .menu-open .side, .menu-open .site-header { z-index: 130; }

  /* Work page: side bar becomes a slim top bar */
  .work { display: block; padding: 0 0 48px; }
  .side { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; max-width: none; padding: 10px var(--pad); background: var(--bg); }
  .side .logo img { height: 36px; width: auto; }
  .side nav, .side__foot { display: none; }
  .gallery-wrap { padding: 0 8px; }
  .toolbar { position: sticky; top: 64px; z-index: 25; margin: 0 -8px 8px; padding: 8px 0 10px; background: var(--bg); gap: 8px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 16px; width: 100%; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .pill { flex: 0 0 auto; min-height: 38px; padding: 0 14px; font-size: 11px; }
  .count, #shuffle { display: none; }
  .subfilters { margin-top: 0; }

  /* Gallery: tight 2-column feed */
  .gallery { columns: 2; column-gap: 8px; }
  .tile { margin-bottom: 8px; }
  .tile__cap, .tile:hover .tile__cap { display: none; }
  .tile:hover img { transform: none; }
  .tile--film .film__play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .tile__badge { top: 8px; left: 8px; font-size: 9px; padding: 4px 6px 3px; }

  /* Lightbox */
  .lightbox__stage { padding: 56px 0 8px; }
  .lightbox__bar { padding: 12px 16px 20px; }
  .lb-prev, .lb-next { display: none; }

  /* Project pages */
  .project-head { padding-top: 32px; padding-bottom: 24px; }
  .project-head h1 { font-size: 40px; }
  .project-gallery { columns: 2; column-gap: 8px; padding: 0 8px 48px; }
  .project-gallery img { margin-bottom: 8px; }
  .project-gallery img:first-child { column-span: all; }

  /* Projects index: 2 columns */
  .pgrid { grid-template-columns: 1fr 1fr; gap: 24px 8px; padding: 0 8px 48px; }
  .pcard img { aspect-ratio: 4 / 5; margin-bottom: 8px; }
  .pcard__title { font-size: 16px; }
  .pcard__meta { font-size: 12px; }
  .project-head .filters, .films, .pgrid { margin-left: 0; }
  .project-head .filters { margin: 0 -16px 24px; width: auto; }

  /* Home categories: horizontal swipe */
  .cats { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 78%; scroll-snap-align: start; }
  .cat__label { font-size: 24px; padding: 20px; }
}

.cat--static { cursor: default; }
.cat--static:hover img { transform: none; }
.cat--static:hover .cat__label { color: var(--fg); }
