/* OC Audio/Video apex site: header, navigation and gallery. Page sections still carry their own
   inline styles; they move here as each is reworked. Breakpoint for the mobile menu: 860px. */
/* Self-hosted Manrope: variable font, Latin subset, SIL OFL (see fonts/OFL.txt). No third-party font
   request. The fallback face is Arial resized to Manrope's measured metrics so text does not jump when
   the real font swaps in. */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 600; font-display: swap;
  src: url("../fonts/manrope-v23-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 101.8%; ascent-override: 104.7%; descent-override: 29.5%; line-gap-override: 0%;
}

:root { --ocav-gold: #D9B77E; --ocav-ink: #EDEAE4; --ocav-bg: #0D0D0E; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(237, 234, 228, 0.14); }
.site-header__inner {
  max-width: 1320px; margin: 0 auto; padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ocav-ink); }
.brand img { height: 30px; width: auto; display: block; }
.brand__tag {
  padding-left: 14px; border-left: 1px solid rgba(237, 234, 228, 0.3);
  font-size: 10px; letter-spacing: 0.28em; line-height: 1.4; color: #D6D2CA;
}

.site-nav { display: flex; align-items: center; gap: 8px 32px; font-size: 13px; letter-spacing: 0.14em; }
.site-nav a { color: var(--ocav-ink); text-decoration: none; }
.site-nav a:hover { color: #F0D3A0; }
.site-nav .nav-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
  border: 1px solid var(--ocav-gold); color: var(--ocav-gold);
}
.site-nav .nav-cta:hover { color: #141414; background: var(--ocav-gold); }

.nav-toggle {
  display: none; position: relative; width: 48px; height: 48px; margin: -6px -10px -6px 0;
  background: none; border: 0; color: var(--ocav-ink); cursor: pointer; border-radius: 2px;
}
.nav-toggle:focus-visible { outline: 2px solid var(--ocav-gold); outline-offset: 2px; }
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute; left: 13px; width: 22px; height: 1.5px; background: currentColor; content: "";
}
.nav-toggle__bar { top: 23px; }
.nav-toggle__bar::before { left: 0; top: -7px; }
.nav-toggle__bar::after { left: 0; top: 7px; }
@media (prefers-reduced-motion: no-preference) {
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { transition: transform 0.2s ease, opacity 0.15s ease, top 0.2s ease; }
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .site-header__inner { padding: 18px 20px; }
  .brand__tag { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px;
    background: var(--ocav-bg); border-bottom: 1px solid rgba(237, 234, 228, 0.14);
    font-size: 14px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid #26262A; }
  .site-nav .nav-cta { justify-content: center; margin-top: 20px; border-bottom: 1px solid var(--ocav-gold); }
}

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.gallery__item { display: block; aspect-ratio: 4 / 3; background: #1B1B1E; overflow: hidden; }
.gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Hero media: poster paints first (it is the LCP image); the video fades in over it only when the
   script decides the visitor can afford it. On very wide screens the media is capped and feathered so
   a 1080p source is not stretched across an ultrawide monitor. */
.hero__media { position: absolute; inset: 0; max-width: 2400px; margin: 0 auto; overflow: hidden; }
.hero__poster, .hero__img, .hero__video {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
}
.hero__video { opacity: 0; }
/* Balance the headline so a narrow phone breaks it evenly instead of leaving "do," on a line of its own. */
.hero__title { text-wrap: balance; }
.hero__video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .hero__video { transition: opacity 0.9s ease; } }
@media (min-width: 2401px) {
  .hero__media {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  }
}

/* Inner pages: the current page in the menu, and photos placed by the photo build inside page sections.
   The wrapper sets the frame shape; the build only writes the <picture>. */
.site-nav a[aria-current="page"] { color: var(--ocav-gold); }
.ratio-1x1 .gallery__item { aspect-ratio: 1 / 1; }
.ratio-5x4 .gallery__item { aspect-ratio: 5 / 4; }
.ratio-16x10 .gallery__item { aspect-ratio: 16 / 10; }
.gallery__figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery__figure figcaption { font-size: 12px; letter-spacing: 0.2em; color: #A8A49C; }
/* A drawing, not a photo: show all of it on white rather than cropping it. */
.gallery--drawing-first .gallery__figure:first-child img { object-fit: contain; background: #FFFFFF; }

/* About page team portraits: taller frame, anchored high so faces are never cropped. */
.portrait .gallery__item { aspect-ratio: 4 / 5; border: 1px solid #2C2C31; }
.portrait .gallery__item img { object-position: center 20%; }

/* Coming-soon gate for About, What we do and Portfolio. Shown by default; Ctrl+Alt+O+C reveals the real
   page (site.js). Without JavaScript the gate simply stays up. */
.gated .gated-content { display: none; }
html:not(.gated) .soon { display: none; }
.soon { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(80vh, 780px); border-bottom: 1px solid #26262A; background: radial-gradient(ellipse 80% 70% at 50% 100%, #1D1810 0%, #0D0D0E 68%); }
.soon::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(#FFFFFF0B 1px, transparent 1px), linear-gradient(90deg, #FFFFFF0B 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 55%, #000 0%, transparent 100%); mask-image: radial-gradient(ellipse 70% 65% at 50% 55%, #000 0%, transparent 100%); }
.soon__waves { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: 150px; pointer-events: none; }
.soon__inner { width: 100%; max-width: 980px; margin: 0 auto; padding: 88px 32px 210px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.soon__status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid #33333A; border-radius: 999px; font-size: 11px; letter-spacing: 0.26em; color: #BDB9B1; background: #0D0D0EB3; }
.soon__eyebrow { font-size: 12px; letter-spacing: 0.24em; color: #D9B77E; }
.soon__title { margin: 0; font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.06; font-weight: 200; letter-spacing: -0.01em; text-wrap: balance; }
.soon__title span { color: #D9B77E; }
.soon__lede { margin: 0; max-width: 38rem; font-size: 18px; color: #BDB9B1; }
.soon__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; margin-top: 6px; }
.soon__btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 30px; border: 1px solid #D9B77E; font-size: 13px; letter-spacing: 0.2em; text-decoration: none; }
.soon__btn--solid { background: #D9B77E; color: #141414; }
.soon__btn--solid:hover { background: #F0D3A0; color: #141414; }
.soon__btn--line { color: #D9B77E; }
.soon__btn--line:hover { background: #D9B77E; color: #141414; }
.soon__channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 11px; letter-spacing: 0.26em; color: #A8A49C; }
.soon__channels li { display: inline-flex; align-items: center; gap: 10px; }
.soon__led { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #D9B77E; box-shadow: 0 0 8px #D9B77E99; }
.soon__channels li:nth-child(2) .soon__led { animation-delay: 0.8s; }
.soon__channels li:nth-child(3) .soon__led { animation-delay: 1.6s; }
@media (prefers-reduced-motion: no-preference) { .soon__led { animation: soon-pulse 2.4s ease-in-out infinite; } }
@keyframes soon-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.preview-pill { position: fixed; left: 16px; bottom: 16px; z-index: 50; padding: 9px 14px; border: 1px solid #D9B77E; background: #0D0D0EE6; color: #D9B77E; font-size: 11px; letter-spacing: 0.2em; pointer-events: none; }

/* "Start your project" card (js/intake.js). Dormant until a page sets <meta name="intake-endpoint">. */
html:has(dialog.intake[open]) { overflow: hidden; }
.intake { box-sizing: border-box; width: min(92vw, 520px); max-height: 92vh; overflow: auto; margin: auto; padding: 36px 32px 28px; border: 1px solid #33333A; background: #141416; color: #EDEAE4; font-family: Manrope, 'Manrope Fallback', system-ui, sans-serif; font-size: 16px; line-height: 1.5; box-shadow: 0 30px 80px #000000B3; }
.intake::backdrop { background: #0D0D0ED9; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) { .intake[open] { animation: intake-in 0.22s ease-out; } }
@keyframes intake-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.intake__close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; background: none; color: #BDB9B1; font-size: 30px; line-height: 1; cursor: pointer; }
.intake__close:hover { color: #D9B77E; }
.intake__eyebrow { font-size: 12px; letter-spacing: 0.24em; color: #D9B77E; }
.intake__title { margin: 10px 0 8px; font-size: 1.75rem; font-weight: 200; line-height: 1.15; }
.intake__lede { margin: 0 0 22px; color: #BDB9B1; font-size: 15px; }
.intake__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.intake__field label { font-size: 11px; letter-spacing: 0.2em; color: #A8A49C; }
.intake__opt { color: #6E6B65; letter-spacing: 0.16em; }
.intake input, .intake textarea { box-sizing: border-box; width: 100%; padding: 12px 14px; border: 1px solid #33333A; background: #0D0D0E; color: #EDEAE4; font: inherit; font-size: 16px; border-radius: 0; }
.intake textarea { resize: vertical; min-height: 96px; }
.intake input:focus-visible, .intake textarea:focus-visible, .intake button:focus-visible, .intake a:focus-visible { outline: 2px solid #D9B77E; outline-offset: 2px; }
.intake__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.intake__status { min-height: 1.5em; margin: 0 0 12px; font-size: 14px; color: #BDB9B1; }
.intake__status.is-bad { color: #E8A08A; }
.intake__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.intake__send { min-height: 52px; padding: 0 34px; border: 1px solid #D9B77E; background: #D9B77E; color: #141414; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; cursor: pointer; }
.intake__send:hover { background: #F0D3A0; }
.intake__send:disabled { opacity: 0.55; cursor: progress; }
.intake__call { color: #D9B77E; font-size: 14px; text-decoration: none; padding: 12px 0; }
.intake__call:hover { color: #F0D3A0; }
.intake__fine { margin: 18px 0 0; font-size: 12px; color: #8E8A82; }
.intake__done p { margin: 0 0 22px; color: #BDB9B1; }
@media (max-width: 520px) { .intake { padding: 32px 20px 22px; } }
.intake__kind { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.intake__kind legend { padding: 0; margin-bottom: 6px; font-size: 11px; letter-spacing: 0.2em; color: #A8A49C; }
.intake__picks { display: flex; flex-wrap: wrap; gap: 10px; }
.intake__pick { position: relative; display: inline-block; cursor: pointer; }
.intake__pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.intake__pick span { display: inline-block; padding: 12px 22px; border: 1px solid #33333A; background: #0D0D0E; font-size: 13px; letter-spacing: 0.16em; color: #BDB9B1; }
.intake__pick:hover span { border-color: #D9B77E; }
.intake__pick input:checked + span { border-color: #D9B77E; background: #D9B77E; color: #141414; }
.intake__pick input:focus-visible + span { outline: 2px solid #D9B77E; outline-offset: 2px; }

/* ---- What we do: disciplines ---------------------------------------------------------------------------------
   Phones and tablets: stacked cards, as before. From 960px up disciplines.js adds .disc--stage and the same markup
   becomes a showcase: one picture stage, a list of titles, and the text for the lit title. */
.disc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px 32px; }
.disc__frame, .disc__num, .disc__bar { display: none; }
.disc__item { display: flex; flex-direction: column; gap: 14px; }
.disc__eyebrow { font-size: 12px; letter-spacing: 0.2em; color: #D9B77E; }
.disc__title { margin: 0; font-size: 23px; font-weight: 400; }
.disc__btn { all: unset; display: inline; color: inherit; font: inherit; }
.disc__desc { margin: 0; color: #BDB9B1; font-size: 16px; }

@media (min-width: 960px) {
  .disc--stage { --t: 0.9s; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: repeat(6, auto) auto auto; column-gap: clamp(40px, 5vw, 80px); gap: 0 clamp(40px, 5vw, 80px); align-items: start; }
  .disc--stage.disc--fast { --t: 0.28s; }
  .disc--stage .disc__item { display: contents; }

  /* Picture stage: every picture sits in the same cell; the lit one fades and settles in. */
  .disc--stage .disc__media { grid-column: 1; grid-row: 1 / -1; align-self: stretch; position: relative; overflow: hidden; min-height: 480px; border: 1px solid #2C2C31; background: #141416; opacity: 0; transform: scale(1.06); visibility: hidden; transition: opacity var(--t) ease, transform calc(var(--t) * 1.6) cubic-bezier(.2,.7,.2,1), visibility 0s linear var(--t); }
  .disc--stage .disc__media .gallery__item { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
  .disc--stage .disc__item.is-active .disc__media { opacity: 1; transform: none; visibility: visible; z-index: 2; transition-delay: 0s; }
  .disc--stage .disc__item.is-active .disc__media img { animation: disc-drift calc(var(--dwell, 6500ms) + 1.5s) ease-out forwards; }
  .disc--stage.disc--fast .disc__item.is-active .disc__media img { animation-duration: 12s; }
  @keyframes disc-drift { from { transform: scale(1); } to { transform: scale(1.07); } }

  /* Frame over the stage: corner marks, a shade for the counter, and the counter itself. */
  .disc--stage .disc__frame { display: block; grid-column: 1; grid-row: 1 / -1; position: relative; z-index: 5; pointer-events: none; background: linear-gradient(to top, rgba(13,13,14,.6), transparent 30%); }
  .disc--stage .disc__frame::before, .disc--stage .disc__frame::after { content: ""; position: absolute; width: 34px; height: 34px; border: 0 solid #D9B77E; }
  .disc--stage .disc__frame::before { top: 16px; left: 16px; border-width: 1px 0 0 1px; }
  .disc--stage .disc__frame::after { top: 16px; right: 16px; border-width: 1px 1px 0 0; }
  .disc__count { position: absolute; left: 24px; bottom: 20px; font-size: 13px; letter-spacing: 0.24em; color: #BDB9B1; }
  .disc__count b { color: #D9B77E; font-weight: 400; }

  /* Title list */
  .disc--stage .disc__title { grid-column: 2; margin: 0; font-size: clamp(1.4rem, 2.1vw, 2rem); font-weight: 300; }
  .disc--stage .disc__item:nth-of-type(1) .disc__title { grid-row: 1; }
  .disc--stage .disc__item:nth-of-type(2) .disc__title { grid-row: 2; }
  .disc--stage .disc__item:nth-of-type(3) .disc__title { grid-row: 3; }
  .disc--stage .disc__item:nth-of-type(4) .disc__title { grid-row: 4; }
  .disc--stage .disc__item:nth-of-type(5) .disc__title { grid-row: 5; }
  .disc--stage .disc__item:nth-of-type(6) .disc__title { grid-row: 6; }
  .disc--stage .disc__btn { all: unset; box-sizing: border-box; position: relative; display: flex; align-items: baseline; gap: 22px; width: 100%; padding: 17px 0; border-bottom: 1px solid #26262A; color: #6F6C66; cursor: pointer; transition: color calc(var(--t) * .6) ease; }
  .disc--stage .disc__btn:focus-visible { outline: 2px solid #D9B77E; outline-offset: 2px; }
  .disc--stage .disc__num { display: inline; font-size: 13px; letter-spacing: 0.2em; color: inherit; }
  .disc--stage .disc__name { display: inline-block; transition: transform calc(var(--t) * .8) cubic-bezier(.2,.7,.2,1); }
  .disc--stage .disc__btn:hover { color: #A8A49C; }
  .disc--stage .is-active .disc__btn { color: #EDEAE4; }
  .disc--stage .is-active .disc__num { color: #D9B77E; }
  .disc--stage .is-active .disc__name { transform: translateX(12px); }
  .disc--stage .disc__bar { display: block; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: #D9B77E; }
  .disc--stage .disc__btn.is-run .disc__bar { animation: disc-fill var(--dwell, 6500ms) linear forwards; }
  .disc--stage .disc__btn.is-hold .disc__bar { width: 100%; }
  @keyframes disc-fill { from { width: 0; } to { width: 100%; } }

  /* Text for the lit title: every one shares the same two cells, so nothing jumps. */
  .disc--stage .disc__eyebrow, .disc--stage .disc__desc { grid-column: 2; opacity: 0; visibility: hidden; transform: translateY(16px); filter: blur(4px); transition: opacity calc(var(--t) * .6) ease, transform calc(var(--t) * .8) ease, filter calc(var(--t) * .6) ease, visibility 0s linear calc(var(--t) * .6); }
  .disc--stage .disc__eyebrow { grid-row: 7; margin-top: 40px; }
  .disc--stage .disc__desc { grid-row: 8; margin-top: 12px; font-size: 18px; max-width: 34rem; }
  .disc--stage .is-active .disc__eyebrow, .disc--stage .is-active .disc__desc { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: calc(var(--t) * .3); }
  .disc--stage .is-active .disc__desc { transition-delay: calc(var(--t) * .45); }
  .disc--stage.disc--fast .is-active .disc__eyebrow, .disc--stage.disc--fast .is-active .disc__desc { transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  .disc--stage .disc__media, .disc--stage .disc__eyebrow, .disc--stage .disc__desc, .disc--stage .disc__name, .disc--stage .disc__btn { transition-duration: 0.01s; transition-delay: 0s; }
  .disc--stage .disc__item.is-active .disc__media img { animation: none; }
}
