/* ================================================
   CSS Cove — style.css
   WCAG 2.1 AA compliant
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


/* ---- LIGHT THEME ---- */
:root {
  --bg:        #ffffff;
  --bg-raised: #f5f5f5;
  --fg:        #111111;
  --fg-soft:   #333333;
  --grey:      #595959;
  --grey-dim:  #767676;
  --rule:      rgba(0,0,0,0.10);
  --inv-bg:    #111111;
  --inv-fg:    #ffffff;
  --focus:     #0057b8;

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Inter", system-ui, sans-serif;

  --pad:   clamp(1.5rem, 5vw, 5rem);
  --nav-h: 64px;

  --line-height-body:    1.75;
  --line-height-heading: 1.1;
  --letter-spacing-body: 0.01em;
}


/* ---- DARK THEME ---- */
[data-theme="dark"] {
  --bg:        #0d0d0d;
  --bg-raised: #1a1a1a;
  --fg:        #f5f5f5;
  --fg-soft:   #d0d0d0;
  --grey:      #a8a8a8;
  --grey-dim:  #8a8a8a;
  --rule:      rgba(255,255,255,0.10);
  --inv-bg:    #f5f5f5;
  --inv-fg:    #0d0d0d;
  --focus:     #5b9cf6;
}


/* ---- BASE ---- */
html { scroll-behavior: smooth; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }


/* ---- FOCUS ---- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--focus);
  color: #fff;
  padding: .6rem 1.2rem;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }


/* ---- UTILITY ---- */
.label {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 2rem;
}

/* Page title labels + hero studio label get the accent chip */
.page-hero > .label,
.contact-page > .label,
.hero__studio-label {
  display: inline-block;
  width: fit-content;
  background: var(--nav-accent, #ffe066);
  color: var(--nav-accent-fg, #111111);
  padding: .2em .55em;
  border-radius: 2px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.label-link {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .25s, background .25s, border-color .25s, padding .25s;
}
.label-link:hover,
.label-link:focus-visible {
  background: var(--nav-accent, #ffe066);
  color: var(--nav-accent-fg, #111111);
  border-color: transparent;
  padding: 2px 6px 4px;
}


/* ---- LOADER ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2.5rem;
  transition: transform .7s cubic-bezier(.77,0,.175,1), opacity .5s ease;
}
.loader.exit { transform: translateY(-100%); opacity: 0; }

.loader__logo-anim {
  width: clamp(100px, 20vw, 140px);
  height: clamp(100px, 20vw, 140px);
}

.loader__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Black circle scales in */
.loader__circle-main {
  transform-origin: 80px 80px;
  animation: circleIn .5s cubic-bezier(.23,1,.32,1) forwards;
  opacity: 0;
}
@keyframes circleIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Text fade + slide up */
.loader__svg-text {
  opacity: 0;
  animation: textIn .8s ease .4s forwards;
}
.loader__svg-text--delay {
  animation-delay: .55s;
}
@keyframes textIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Tag line */
.loader__tag {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0;
  animation: tagFade .6s ease 1.5s forwards;
}
@keyframes tagFade { to { opacity: 1; } }

.loader__dot-final {
  opacity: 0;
  transform-origin: 108px 122px;
  animation: dotPop .5s cubic-bezier(.34,1.56,.64,1) 1.35s forwards;
}
@keyframes dotPop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}



/* ---- THEME TOGGLE ---- */
.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .25s, transform .3s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--fg); transform: rotate(18deg); }
.theme-icon {
  width: 15px;
  height: 15px;
  color: var(--grey);
  transition: color .25s, opacity .35s ease, transform .4s ease;
  position: absolute;
}
.theme-toggle:hover .theme-icon { color: var(--fg); }
.theme-icon--sun  { opacity: 1; transform: rotate(0deg)   scale(1);  }
.theme-icon--moon { opacity: 0; transform: rotate(40deg)  scale(.5); }
[data-theme="dark"] .theme-icon--sun  { opacity: 0; transform: rotate(-40deg) scale(.5); }
[data-theme="dark"] .theme-icon--moon { opacity: 1; transform: rotate(0deg)   scale(1);  }


/* ---- BURGER ---- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  position: relative;
}
.burger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  position: absolute;
  transition: transform .35s cubic-bezier(.77,0,.175,1), opacity .2s ease, top .35s cubic-bezier(.77,0,.175,1);
}
.burger__line:nth-child(1) { top: calc(50% - 5px); }
.burger__line:nth-child(2) { top: calc(50% + 5px); }
.burger.is-open .burger__line:nth-child(1) { top: 50%; transform: rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { top: 50%; transform: rotate(-45deg); }


/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 150;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem var(--pad) 3rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .55s cubic-bezier(.77,0,.175,1), opacity .35s ease;
  pointer-events: none;
  border-top: 1px solid var(--rule);
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 700;
  line-height: var(--line-height-heading);
  color: var(--grey);
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
  transition: color .2s;
  letter-spacing: -.02em;
}
.mobile-menu__links a:first-child { border-top: 1px solid var(--rule); }
.mobile-menu__links a:hover,
.mobile-menu__links a:focus-visible,
.mobile-menu__links .nav__active { color: var(--fg); }
.mobile-menu__footer {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-dim);
}


/* ---- NAV ---- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--rule);
}
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav__right { display: flex; align-items: center; gap: 2.5rem; }
.nav__right > a {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color .2s;
  padding: .25rem 0;
}
.nav__right > a:hover,
.nav__right > a:focus-visible,
.nav__right .nav__active { color: var(--fg); }


/* ---- NAV ACTIVE INDICATOR ---- */
.nav__right > a.nav__active {
  color: var(--fg);
  position: relative;
}
.nav__right > a.nav__active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--nav-accent, #ffe066);
  border-radius: 2px;
}


/* ---- HOME HERO ---- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: var(--nav-h) var(--pad) 0;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5rem 0 0;
}
.hero__main {
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 3rem 0;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 9rem);
  font-weight: 700;
  line-height: var(--line-height-heading);
  letter-spacing: -.02em;
  color: var(--fg);
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--grey); }


/* ---- HERO CAROUSEL ---- */
.hero__carousel { position: relative; width: 100%; }
.hero__carousel-window { width: 100%; overflow: hidden; border-radius: 6px; }
.hero__carousel-track { display: flex; width: 100%; }
.hero__carousel-track.is-ready { transition: transform .65s cubic-bezier(.77,0,.175,1); }
.hero__carousel-slide { flex: 0 0 100%; min-width: 100%; }
.hero__carousel-slide img,
.hero__carousel-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.hero__carousel-dots { display: flex; gap: .5rem; margin-top: 1.25rem; }
.hero__carousel-dot {
  width: 20px;
  height: 3px;
  background: var(--fg);
  opacity: .2;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  transition: width .3s, opacity .25s;
}
.hero__carousel-dot.is-active { background: var(--fg); opacity: 1; width: 36px; }

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 3rem;
}
.hero__scroll {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .25; }
}
.hero__desc { text-align: right; font-size: .95rem; color: var(--grey); line-height: var(--line-height-body); }


/* ---- EXTENSION BUTTONS ---- */
.hero__ext-buttons {
  display: flex;
  gap: 1rem;
  padding: .5rem 0 0;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.ext-btn {
  display: flex;
  align-items: center;
  gap: .85rem;
  border: 1px solid var(--rule);
  padding: .75rem 1.25rem;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--sans);
  min-width: 180px;
}
.ext-btn:hover,
.ext-btn:focus-visible {
  border-color: var(--nav-accent, #ffe066);
  background: var(--nav-accent, #ffe066);
  color: var(--nav-accent-fg, #111111);
}
.ext-btn:hover .ext-btn__sub,
.ext-btn:focus-visible .ext-btn__sub { color: var(--nav-accent-fg, #111111); opacity: .7; }
.ext-btn:hover .ext-btn__name,
.ext-btn:focus-visible .ext-btn__name { color: var(--nav-accent-fg, #111111); }
.ext-btn--wip { opacity: .65; }
.ext-btn--wip:hover,
.ext-btn--wip:focus-visible { opacity: 1; }
.ext-btn__icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.ext-btn__text { display: flex; flex-direction: column; gap: .1rem; text-align: left; }
.ext-btn__sub {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1;
}
.ext-btn__name {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}


/* ---- WIP MODAL ---- */
.wip-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: background .35s ease, opacity .35s ease;
}
.wip-modal.is-open { background: rgba(0,0,0,.75); opacity: 1; pointer-events: all; }
.wip-modal__box {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transform: translateY(16px);
  transition: transform .4s cubic-bezier(.23,1,.32,1);
  box-shadow: 0 24px 60px rgba(0,0,0,.12);
}
.wip-modal.is-open .wip-modal__box { transform: translateY(0); }
.wip-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--rule);
  color: var(--grey);
  font-size: .8rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.wip-modal__close:hover,
.wip-modal__close:focus-visible { border-color: var(--fg); color: var(--fg); }
.wip-modal__icon { width: 48px; height: 48px; object-fit: contain; margin-bottom: 1.25rem; opacity: .4; }
.wip-modal__title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: .4rem;
  letter-spacing: -.02em;
}
.wip-modal__sub {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.5rem;
}
.wip-modal__body {
  font-size: .95rem;
  color: var(--fg-soft);
  line-height: var(--line-height-body);
  margin-bottom: 2rem;
}
.wip-modal__cta {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  transition: background .25s, color .25s, border-color .25s, padding .25s;
}
.wip-modal__cta:hover,
.wip-modal__cta:focus-visible {
  background: var(--nav-accent, #ffe066);
  color: var(--nav-accent-fg, #111111);
  border-color: transparent;
  padding: 2px 6px 4px;
}


/* ---- MARQUEE ---- */
.marquee {
  overflow: hidden;
  background: var(--inv-bg);
  color: var(--inv-fg);
  padding: 1rem 0;
  transition: background .4s, color .4s;
}
.marquee__inner {
  display: flex;
  gap: 1.8rem;
  width: max-content;
  align-items: center;
  animation: ticker 28s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  white-space: nowrap;
}
.marquee__inner .sep { opacity: .3; }
.marquee__inner:hover { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ---- HOME WORK PREVIEW ---- */
.work-preview { padding: 6rem var(--pad) 0; overflow: hidden; }
.work-preview__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
}
.work-preview__header .label { margin-bottom: 0; }


/* ---- WORK ROW ---- */
.work__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
  overflow: visible;
}
.work__row::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(-1 * var(--pad));
  right: calc(-1 * var(--pad));
  background: var(--hover-color, var(--fg));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.77,0,.175,1);
  z-index: 0;
}
.work__row--static::after { display: none; }
.work__row-left,
.work__row-right { position: relative; z-index: 1; }
.work__row:hover::after { transform: scaleX(1); }
.work__row-left { display: flex; align-items: baseline; gap: 2rem; }
.work__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: .9rem;
  color: var(--grey-dim);
  transition: color .2s;
  min-width: 2rem;
}
.work__row-titles { display: flex; flex-direction: column; gap: .4rem; }
.work__name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  transition: color .2s;
  color: var(--fg);
  letter-spacing: -.02em;
}
.work__type {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color .2s;
}
.work__row-right { display: flex; align-items: center; gap: 1.5rem; }
.work__status {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color .2s;
}
.work__arrow {
  font-size: 1.3rem;
  color: var(--fg);
  transition: transform .3s, color .2s;
}
.work__row:hover .work__arrow { transform: translateX(6px); }


/* ---- INTRO STRIP ---- */
.intro-strip {
  background: var(--inv-bg);
  color: var(--inv-fg);
  padding: 8rem var(--pad);
  transition: background .4s, color .4s;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.intro-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1200px;
  gap: 3rem;
}
.intro-strip__inner p {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.intro-strip__inner em { font-style: italic; font-weight: 400; opacity: .65; }
.intro-strip .cta { border-color: var(--inv-fg); color: var(--inv-fg); flex-shrink: 0; }
.intro-strip .cta:hover,
.intro-strip .cta:focus-visible {
  background: var(--nav-accent, #ffe066);
  color: var(--nav-accent-fg, #111111);
  border-color: transparent;
  opacity: 1;
}


/* ---- PAGE HERO ---- */
.page-hero {
  min-height: 60svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 5rem) var(--pad) 5rem;
  border-bottom: 1px solid var(--rule);
}
.page-hero__title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-top: auto;
}
.page-hero__title-row .placeholder--logo {
  max-width: 120px;
  aspect-ratio: 1;
  flex-shrink: 0;
  margin-bottom: .5rem;
}
.page-hero__title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 700;
  line-height: var(--line-height-heading);
  letter-spacing: -.02em;
  margin-bottom: 0;
  color: var(--fg);
}
.page-hero__title em { font-style: italic; font-weight: 400; color: var(--grey); }
.page-hero__sub {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
}


/* ---- WORK PAGE ---- */
.work-item { border-bottom: 1px solid var(--rule); }
.work-item--alt { background: var(--bg-raised); }
.work-item__header { padding: 0 var(--pad); }
.work-item__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 5rem var(--pad) 7rem;
  max-width: 1400px;
  width: 100%;
}
.work-item__col--media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.work-item__col--detail { min-width: 0; }


/* ---- PLACEHOLDERS ---- */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px dashed var(--rule);
  background: var(--bg-raised);
  text-align: center;
  padding: 2rem;
  border-radius: 6px;
}
.placeholder--logo     { aspect-ratio: 1; max-width: 160px; }
.placeholder--portrait { width: 100%; aspect-ratio: 4 / 5; }
.placeholder--screen   { width: 100%; aspect-ratio: 16 / 10; }
.placeholder__label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
}
.placeholder__size {
  font-family: var(--serif);
  font-style: italic;
  font-size: .8rem;
  color: var(--grey-dim);
}


/* ---- WORK ITEM IMAGES ---- */
.work-item__logo {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 22px;
}
.work-item__screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.work-item__screen[data-lightbox] {
  cursor: zoom-in;
  transition: opacity .2s, transform .3s ease;
}
.work-item__screen[data-lightbox]:hover { opacity: .92; transform: scale(1.01); }


/* ---- FEATURE LIST ---- */
.work-item__col--detail p {
  font-size: 1rem;
  line-height: var(--line-height-body);
  color: var(--fg-soft);
  margin-bottom: 2.5rem;
}
.feature-list {
  list-style: none;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.75rem;
}
.feature-list li {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  display: flex;
  gap: 1rem;
  align-items: center;
}
.feature-list li::before {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: var(--fg);
  flex-shrink: 0;
  border-radius: 1px;
}


/* ---- WORK ITEM CTAS ---- */
.work-item__ctas { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }


/* ---- CTA ---- */
.cta {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 3px;
  transition: border-color .25s, color .25s, background .25s, padding .25s;
  color: var(--fg);
}
.cta:hover,
.cta:focus-visible {
  background: var(--nav-accent, #ffe066);
  color: var(--nav-accent-fg, #111111);
  border-color: transparent;
  padding: 2px 6px 4px;
  opacity: 1;
}
.cta--secondary { color: var(--grey); border-color: var(--grey); }
.cta--secondary:hover,
.cta--secondary:focus-visible {
  background: var(--nav-accent, #ffe066);
  color: var(--nav-accent-fg, #111111);
  border-color: transparent;
  opacity: 1;
}
.cta--muted { color: var(--grey); border-color: var(--grey); cursor: default; opacity: .7; }
.cta--muted:hover,
.cta--muted:focus-visible {
  background: none;
  color: var(--grey);
  border-color: var(--grey);
  padding-bottom: 3px;
  padding-left: 0;
  padding-right: 0;
  opacity: .7;
}


/* ---- ABOUT PAGE ---- */
.about-page__intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  border-bottom: 1px solid var(--rule);
}
.about-page__intro-left {
  border-right: 1px solid var(--rule);
  background: var(--bg-raised);
}
.about-page__intro-right { padding: 6rem var(--pad); }
.about-page__intro-right p {
  font-size: 1rem;
  color: var(--fg-soft);
  margin-bottom: 1.75rem;
  line-height: var(--line-height-body);
}


/* ---- LIVE LOCATION BLOCK ---- */
.about__live-block {
  padding: 6rem var(--pad);
  position: relative;
  overflow: hidden;
}
.about__live-text {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--fg);
  position: relative;
  z-index: 1;
}
.about__live-text strong { font-weight: 700; color: var(--fg); font-style: normal; }
#wx-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}


/* ---- CONTACT PAGE ---- */
.contact-page {
  padding: calc(var(--nav-h) + 5rem) var(--pad) 6rem;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  border-bottom: 1px solid var(--rule);
}
.contact-page__title {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 2.5rem;
  color: var(--fg);
}
.contact-page__title em { font-style: italic; font-weight: 400; color: var(--grey); }
.contact-page__email {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  display: inline-block;
  margin-bottom: 6rem;
  transition: background .25s, color .25s, border-color .25s, padding .25s;
  color: var(--fg);
}
.contact-page__email:hover,
.contact-page__email:focus-visible {
  background: var(--nav-accent, #ffe066);
  color: var(--nav-accent-fg, #111111);
  border-color: transparent;
  padding: 2px 8px 4px;
}
.contact-page__body {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 6rem;
  border-top: 1px solid var(--rule);
  padding-top: 4rem;
  margin-top: auto;
}
.contact-page__info { display: flex; flex-direction: column; gap: 3rem; }
.contact-info-block p { font-size: .95rem; color: var(--fg-soft); line-height: var(--line-height-body); }


/* ---- FORM ---- */
.contact-form { display: flex; flex-direction: column; gap: 2rem; }
.form-row {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
}
.form-row label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
}
.form-row input,
.form-row textarea {
  background: none;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  color: var(--fg);
  resize: none;
  width: 100%;
  line-height: var(--line-height-body);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--grey-dim); }
.form-row:focus-within { border-bottom-color: var(--fg); }
.form-submit {
  align-self: flex-start;
  background: none;
  border: 1px solid var(--rule);
  color: var(--fg);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  cursor: pointer;
  border-radius: 3px;
  transition: background .25s, color .25s, border-color .25s;
}
.form-submit:hover,
.form-submit:focus-visible {
  background: var(--nav-accent, #ffe066);
  color: var(--nav-accent-fg, #111111);
  border-color: var(--nav-accent, #ffe066);
}


/* ---- FOOTER ---- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem var(--pad);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-dim);
  border-top: 1px solid var(--rule);
  background: var(--bg);
  width: 100%;
}


/* ---- SCROLL REVEAL ---- */
.js-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.js-reveal.in { opacity: 1; transform: none; }


/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: background .35s ease, opacity .35s ease;
}
.lightbox.is-open { background: rgba(0,0,0,.92); opacity: 1; pointer-events: all; }
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  transform: scale(.93);
  transition: transform .4s cubic-bezier(.23,1,.32,1);
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.lightbox__close:hover,
.lightbox__close:focus-visible { border-color: #fff; color: #fff; }


/* ---- POLICY PAGE ---- */
.policy-page { padding: 6rem var(--pad) 8rem; border-bottom: 1px solid var(--rule); }
.policy-page__inner { max-width: 720px; }
.policy-section { padding: 4rem 0; }
.policy-section__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: var(--line-height-heading);
  letter-spacing: -.02em;
  margin-bottom: 1.75rem;
  color: var(--fg);
}
.policy-section p { font-size: 1rem; color: var(--fg-soft); line-height: var(--line-height-body); margin-bottom: 1.25rem; }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section strong { color: var(--fg); font-weight: 600; }
.policy-section a { color: var(--fg); border-bottom: 1px solid var(--rule); transition: border-color .2s; }
.policy-section a:hover,
.policy-section a:focus-visible { border-color: var(--fg); }
.policy-highlight {
  border-left: 3px solid var(--fg);
  padding: 1.25rem 1.5rem;
  background: var(--bg-raised);
  font-size: .95rem;
  color: var(--fg-soft);
  line-height: var(--line-height-body);
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}
.policy-highlight strong { color: var(--fg); }
.policy-highlight a { border-bottom: 1px solid var(--rule); transition: border-color .2s; }
.policy-highlight a:hover { border-color: var(--fg); }
.policy-rule { border: none; border-top: 1px solid var(--rule); margin: 0; }
.policy-table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: .88rem; }
.policy-table th {
  text-align: left;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  padding: .75rem 1rem;
  border-bottom: 2px solid var(--fg);
}
.policy-table td { padding: 1rem; border-bottom: 1px solid var(--rule); color: var(--fg-soft); vertical-align: top; line-height: var(--line-height-body); }
.policy-table tr:last-child td { border-bottom: none; }
.policy-table__label { font-family: var(--serif); font-weight: 700; color: var(--fg); white-space: nowrap; padding-right: 2rem; }

/* ---- WORK ITEM SLIDESHOW ---- */
.work-item__slideshow { width: 100%; }
.work-item__slideshow-window { width: 100%; overflow: hidden; border-radius: 6px; }
.work-item__slideshow-track {
  display: flex;
  transition: transform .65s cubic-bezier(.77,0,.175,1);
}
.work-item__slideshow-slide { flex: 0 0 100%; min-width: 100%; }
.work-item__slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
}
.work-item__slideshow-dots { display: flex; gap: .5rem; }
.work-item__slideshow-arrows { display: flex; gap: .75rem; }
.work-item__slideshow-arrow {
  background: none;
  border: 1px solid var(--rule);
  color: var(--fg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s, color .2s;
}
.work-item__slideshow-arrow:hover,
.work-item__slideshow-arrow:focus-visible {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}


/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
  .hero__main { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__carousel { max-width: 520px; }
}
@media (max-width: 900px) {
  .work-item__body        { grid-template-columns: 1fr; gap: 3rem; }
  .about-page__intro      { grid-template-columns: 1fr; }
  .about-page__intro-left { border-right: none; border-bottom: 1px solid var(--rule); }
  .contact-page__body     { grid-template-columns: 1fr; gap: 4rem; }
  .intro-strip__inner     { flex-direction: column; align-items: flex-start; gap: 2.5rem; }
  .page-hero__title-row   { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .burger                 { display: flex; }
  .nav__right > a         { display: none; }
  .hero__top              { flex-direction: column; gap: .5rem; align-items: flex-start; }
  .hero__bottom           { flex-direction: column; gap: .5rem; align-items: flex-start; }
  .hero__desc             { text-align: left; }
  .nav__right             { gap: 1rem; }
  .footer                 { flex-direction: column; gap: .75rem; text-align: center; }
  .work__name             { font-size: 1.6rem; }
  .contact-page__title    { font-size: clamp(3.5rem, 18vw, 6rem); }
  .hero__ext-buttons      { justify-content: flex-start; }
}
