/* Paventic palette and the shared project experience. */
@view-transition { navigation: auto; }
::selection { color: #fff; background: #007f76; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.hero { color: #f5faf8; background: radial-gradient(ellipse at 85% 75%, #07564f 0, #062d2a 32%, #030b0b 72%); }
.hero-grid { background-image: linear-gradient(to right, transparent calc(100% - 1px), rgba(255,255,255,.075) 1px); }
.hero-meta, .hero-meta span:first-child { color: #b9d3ce; }
.hero h1 em { color: var(--accent-light); }
.hero h1 { line-height: .9; }
.hero-copy > p { color: #c4d3cf; }
.hero-bottom > p { color: #d4e0dc; }
.hero .pill-dark { color: var(--ink); background: #e8f9f3; }
.hero .pill-dark:hover { background: var(--accent-light); }
.portrait-stage { pointer-events: auto; }
.portrait-stage > img { object-position: center; }
.portrait-block { background: linear-gradient(145deg, #42b9a9, #0a635b 58%, #052824); border: 1px solid #ffffff20; }
.portrait-stage::after { border-color: #91dace50; }
.portrait-note { background: #041a18dc; border: 1px solid #9ccebe35; }
.identity-avatar { background: #227a6e; }
.site-nav > a[aria-current] { color: #fff; background: #ffffff18; }
.services h2 em, .service-row i, .service-row:hover { color: var(--accent-light); }
.contact { background: linear-gradient(125deg, #062b27, #00766e); }
.contact h2 em { color: var(--accent-light); }
.contact .contact-cta { color: var(--ink); background: #f1faf6; }
.contact .contact-cta small { color: #425e56; }
.contact .contact-cta:hover { background: var(--accent-light); }
.service-preview img { height: auto; object-fit: contain; }
.eyebrow { font-size: 12px; }
.clients-intro { font-size: 12px; }
.work.section { padding: clamp(80px, 8vw, 128px) 0; }
.work .section-heading { grid-template-columns: 1fr auto; gap: 32px; margin-bottom: 44px; }
.work .section-heading h2 { font-size: clamp(46px, 5.2vw, 80px); line-height: .98; margin-top: 20px; }
.work .section-side { align-self: end; }
.work .section-side p { max-width: 340px; font-size: 16px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 42px 28px; }
.project, .project-wide { grid-column: auto; min-width: 0; margin: 0; }
.project-media, .project-wide .project-media { aspect-ratio: 4 / 3; background: var(--project-bg, #e7ece9); border-radius: 12px; overflow: hidden; }
.project-media > img, .project-media > video { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: opacity .55s ease, transform .8s cubic-bezier(.2,.72,.22,1); }
.project a:hover .project-media > img:first-child, .project a:hover .project-alt { transform: none; filter: none; }
.project-media > .project-alt { object-fit: contain; background: var(--project-bg, #e7ece9); }
.project a:hover .project-alt, .project a:focus-visible .project-alt { opacity: 1; }
.project-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid #0619180a; border-radius: inherit; }
.project-caption { align-items: center; gap: 18px; padding: 18px 0 0; border: 0; }
.project-caption h3 { margin: 0; font-size: clamp(25px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -.045em; }
.project-caption span { display: block; margin-top: 7px; font-size: 14px; }
.project-caption .project-open { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin: 0; color: var(--ink); font-size: 14px; }
.project-open i { font-size: 23px; font-style: normal; transition: transform .25s; }
.project a:hover .project-open i { transform: translate(3px, -3px); }
.project-cursor { width: 94px; height: 94px; padding: 16px; text-align: center; background: #f5faf5f2; color: var(--ink); backdrop-filter: blur(8px); }
.work-end { display: flex; justify-content: center; margin-top: 54px; }
.work-end .pill { gap: 72px; }
.motion-label { position: absolute; top: 16px; left: 16px; padding: 6px 10px; border-radius: 4px; color: #fff; background: #041a18b3; font-size: 12px; pointer-events: none; }
.motion-control { position: absolute; z-index: 8; bottom: 18px; right: 18px; min-width: 44px; min-height: 44px; padding: 8px 15px; border: 1px solid #ffffff50; border-radius: 50px; color: #fff; background: #031716dd; cursor: pointer; font-size: 12px; }
.project:has(.motion-control) { position: relative; }
.project > .motion-control { top: 18px; right: 18px; bottom: auto; }

.page-shell { width: var(--shell); margin-inline: auto; }
.archive-intro { padding: 164px 0 60px; }
.archive-intro .eyebrow { color: var(--accent); }
.archive-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 36px; margin-top: 22px; border-bottom: 1px solid var(--line); }
.archive-title h1 { margin: 0; font-size: clamp(60px, 9vw, 132px); line-height: .92; letter-spacing: -.075em; font-weight: 550; }
.archive-title h1 em { display: block; color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
.archive-title p { max-width: 350px; margin: 0; color: var(--muted); font-size: 17px; }
.archive-count { display: flex; justify-content: space-between; padding-top: 24px; font-size: 13px; color: var(--muted); }
.archive-work { padding-bottom: 110px; }
.project-contact { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 70px 0; border-top: 1px solid var(--line); }
.project-contact h2 { margin: 0 0 10px; font-size: clamp(32px, 4.3vw, 64px); font-weight: 550; line-height: 1.08; letter-spacing: -.05em; }
.project-contact p { margin: 0; color: var(--muted); }

.case-intro { padding: 132px 0 44px; }
.case-breadcrumb { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 32px; color: var(--muted); font-size: 13px; }
.case-breadcrumb a { padding-block: 8px; }
.case-heading { display: grid; grid-template-columns: 1fr minmax(260px, 430px); align-items: end; gap: 44px; }
.case-heading h1 { margin: 0; font-size: clamp(58px, 7.8vw, 116px); font-weight: 550; line-height: 1; letter-spacing: -.065em; }
.case-heading .case-subtitle { max-width: 710px; margin: 20px 0 0; font-size: clamp(22px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -.035em; }
.case-details { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 0; padding-bottom: 4px; }
.case-details dt { margin-bottom: 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.case-details dd { margin: 0; font-size: 14px; }
.case-cover { position: relative; background: var(--project-bg, #e7ece9); overflow: hidden; border-radius: 12px; }
.case-cover > img { width: 100%; height: auto; max-height: 84svh; object-fit: contain; }
.case-cover > video { display: block; width: 100%; max-height: 84svh; aspect-ratio: 16/9; object-fit: contain; }
.case-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,7vw,110px); padding: 64px 0 70px; }
.case-story h2 { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 550; letter-spacing: .06em; text-transform: uppercase; }
.case-story p { margin: 0; font-size: clamp(17px,1.6vw,23px); line-height: 1.55; letter-spacing: -.02em; }
.case-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px; padding-bottom: 40px; }
.case-frame { grid-column: 1 / -1; margin: 0; min-width: 0; }
.case-frame.compact-motion { grid-column: span 2; }
.compact-motion figcaption { display: block; }
.compact-motion figcaption span:last-child { display: none; }
.case-gallery > .case-interlude { grid-column: 1 / -1; }
.case-frame button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: #eef1ef; overflow: hidden; border-radius: 8px; }
.case-frame img { display: block; width: 100%; height: auto; }
.case-frame .gallery-film { display: block; width: 100%; height: auto; max-height: 88svh; object-fit: contain; background: #eef1ef; border-radius: 8px; }
.case-frame figcaption { display: flex; justify-content: space-between; gap: 20px; margin: 12px 0 20px; color: var(--muted); font-size: 13px; }
.case-frame figcaption span:first-child { color: var(--ink); }
.case-interlude { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding: 46px 0; }
.case-interlude h2 { margin: 0; font-size: clamp(30px,4vw,56px); font-weight: 550; line-height: 1.1; letter-spacing: -.05em; }
.case-interlude p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.case-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 58px 0 70px; border-top: 1px solid var(--line); }
.case-navigation .next-label { display: block; margin-bottom: 18px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.case-navigation h2 { margin: 0 0 24px; font-size: clamp(34px,5vw,74px); font-weight: 550; line-height: 1; letter-spacing: -.05em; }
.case-next-image { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; background: #e6eeeb; }
.case-next-image img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.case-next-image:hover img { opacity: .85; }
.case-progress { position: fixed; z-index: 210; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; scale: 0 1; pointer-events: none; }

.image-viewer { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 76px 32px 70px; border: 0; color: #fff; background: #030b0bf5; }
.image-viewer::backdrop { background: #030b0b; }
.image-viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.image-viewer img { display: block; max-width: 100%; max-height: calc(100svh - 156px); width: auto; height: auto; object-fit: contain; }
.image-viewer.is-zoomed { display: block; overflow: auto; }
.image-viewer.is-zoomed img { max-width: none; max-height: none; width: max(100%, 1400px); margin-inline: auto; }
.viewer-bar { position: fixed; z-index: 2; top: 16px; left: 22px; right: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 6px; background: #061918eb; }
.viewer-title { font-size: 14px; }
.viewer-actions, .viewer-navigation { display: flex; gap: 8px; }
.image-viewer button { min-width: 44px; min-height: 44px; padding: 8px 15px; border: 1px solid #ffffff50; border-radius: 50px; color: #fff; background: #061918; cursor: pointer; }
.viewer-navigation { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); align-items: center; padding: 6px; border-radius: 50px; background: #061918ed; }
.viewer-counter { min-width: 74px; text-align: center; font-size: 13px; }
.reveal { opacity: 1; translate: 0 0; }
.has-js .reveal { opacity: 0; translate: 0 20px; }
.has-js .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (max-width: 860px) {
  .identity { position: relative; z-index: 4; }
  .site-nav { z-index: 2; inset: -22px -22px auto; padding-top: 120px; }
  .work .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .work .section-side { display: flex; justify-content: space-between; gap: 30px; width: 100%; max-width: none; align-items: end; }
  .work .section-side p { margin-bottom: 0; }
  .project-grid { gap: 34px 20px; }
  .project-caption { align-items: start; }
  .project-caption .project-open { font-size: 0; gap: 0; }
  .project-caption .project-open i { font-size: 24px; }
  .project-caption h3 { font-size: 26px; }
  .project-caption span { font-size: 13px; }
  .case-heading { grid-template-columns: 1fr; gap: 30px; }
  .case-details { max-width: 500px; }
  .archive-title { display: block; }
  .archive-title p { margin-top: 28px; max-width: 460px; }
}
@media (max-width: 620px) {
  .hero h1 { line-height: .94; }
  .site-nav { inset: -14px -16px auto; }
  .site-header.is-scrolled .site-nav { top: -8px; }
  .work .section-heading h2 { font-size: 47px; }
  .work .section-side { display: block; }
  .work .section-side p { margin-bottom: 24px; }
  .project-grid { grid-template-columns: 1fr; gap: 34px; }
  .project, .project:last-child { margin: 0; }
  .project-media, .project-wide .project-media { aspect-ratio: 4/3; border-radius: 8px; }
  .project-caption h3 { font-size: 28px; }
  .project-caption span { font-size: 14px; }
  .project-caption .project-open { display: flex; }
  .archive-intro { padding: 116px 0 34px; }
  .archive-title h1 { font-size: 66px; }
  .archive-count { font-size: 12px; }
  .archive-work { padding-bottom: 70px; }
  .case-intro { padding: 102px 0 30px; }
  .case-breadcrumb { padding-bottom: 24px; }
  .case-heading h1 { font-size: clamp(44px,13vw,70px); }
  .case-subtitle { font-size: 24px; }
  .case-story, .case-interlude { grid-template-columns: 1fr; gap: 30px; padding: 36px 0; }
  .case-gallery { gap: 16px; }
  .case-frame.compact-motion { grid-column: 1 / -1; width: 100%; max-width: 568px; margin-inline: auto; }
  .case-frame figcaption { font-size: 12px; margin-bottom: 12px; }
  .case-navigation { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .project-contact { flex-direction: column; align-items: start; padding: 50px 0; }
  .project-contact h2 { font-size: 36px; }
  .image-viewer { padding: 82px 12px 80px; }
  .viewer-bar { left: 8px; right: 8px; top: 8px; }
  .viewer-title { max-width: 140px; font-size: 12px; }
  .image-viewer button { padding: 8px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .has-js .reveal { opacity: 1; translate: none; }
  .project a:hover .project-alt { opacity: 0; }
}
