/* A2B - sections added for launch: work, case dialog, cinema, partners, services face, contacts, footer, legal */
@font-face { font-family: "Caveat"; src: url("../fonts/Caveat.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

.sec { padding: 14vh 0; border-top: 1px solid var(--line); }
.lead { padding: 0 var(--pad); max-width: 760px; font-family: "Roboto Serif", serif; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: var(--mute); margin: -14px 0 40px; }
.hand { font-family: "Caveat", cursive; font-weight: 500; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #000; padding: 10px 14px; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }


/* ---------- work: case grid ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); padding: 0 var(--pad); margin-top: 72px; }
@media (max-width: 760px) { .cases { grid-template-columns: minmax(0, 1fr); } .case .meta { flex-direction: column; gap: 6px; } .case .tags { white-space: normal; } }
.case { display: block; width: 100%; min-width: 0; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.case .shot { position: relative; aspect-ratio: 16 / 10; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; background: #111; padding: 3px; border-radius: 14px; overflow: hidden; }
.case .shot i { display: block; background-size: 300% 300%; border-radius: 9px; filter: grayscale(1) contrast(1.05); transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s; }
.case:hover .shot i, .case:focus-visible .shot i { filter: none; }
@media (hover: none) { .case.in .shot i { filter: none; } }
.case .meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; align-items: baseline; }
.case .client { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.case h4 { font-weight: 800; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.15; margin-top: 6px; }
.case .tags { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }

/* ---------- case dialog ---------- */
#caseDlg { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #000; color: var(--ink); }
#caseDlg::backdrop { background: #000; }
.dlg { height: 100%; overflow-y: auto; display: block; }
.dlg figure { margin: 0; background: #000; width: 100%; display: grid; place-items: center; }
.dlg figure img { width: 100%; height: min(78dvh, 56.25vw); object-fit: cover; display: block; }
.dlg figure video { width: 100%; height: auto; max-height: 82dvh; object-fit: cover; display: block; background: #000; }
.dlg figure video { pointer-events: none; }
.dlg figure video::-webkit-media-controls { display: none !important; }
.dlg .txt { padding: clamp(40px, 6vh, 72px) var(--pad) 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px clamp(32px, 6vw, 110px); align-items: start; }
@media (max-width: 900px) { .dlg .txt { grid-template-columns: 1fr; } }
.dlg .hd, .dlg .bd { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.dlg h3 { font-weight: 800; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.02; }
.dlg ul { list-style: none; display: grid; gap: 12px; font-family: "Roboto Serif", serif; font-size: 17px; line-height: 1.45; }
.dlg ul li { display: grid; grid-template-columns: 22px 1fr; }
.dlg ul li::before { content: ""; width: 9px; height: 9px; margin-top: 8px; background: var(--ink); border-radius: 2px; }
.dlg .result { border-top: 1px solid var(--line); padding-top: 18px; font-family: "Roboto Serif", serif; font-size: 17px; line-height: 1.45; }
.dlg .result b { display: block; font: 400 11px Benzin; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.dlg .nav { display: flex; gap: 22px; padding-top: 12px; }
.dlg button, .dlg-close { background: none; border: 0; color: var(--ink); font: 800 12px Benzin; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 0; }
.dlg-close { position: fixed; top: 22px; right: var(--pad); z-index: 2; mix-blend-mode: difference; }

/* ---------- cinema ---------- */
.feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 3vw, 48px); padding: 0 var(--pad); align-items: end; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
.feature img { width: 100%; display: block; border-radius: 14px; filter: grayscale(1); transition: filter 0.6s; }
.feature:hover img { filter: none; }
.feature h4 { font-weight: 800; font-size: clamp(26px, 3vw, 44px); line-height: 1.04; }
.feature p { font-family: "Roboto Serif", serif; font-size: 17px; line-height: 1.5; color: var(--mute); margin-top: 14px; }
.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); padding: 0 var(--pad); margin-top: 56px; }
@media (max-width: 640px) { .posters { grid-template-columns: repeat(2, 1fr); } .posters figure:last-child { grid-column: 1 / -1; } }
.posters figure { margin: 0; }
.posters img { width: 100%; aspect-ratio: 8 / 11; object-fit: cover; display: block; border-radius: 12px; filter: grayscale(1); transition: filter 0.6s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.posters figure:hover img { filter: none; transform: rotate(-1.2deg); }
.posters figcaption { margin-top: 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.posters figcaption b { display: block; color: var(--ink); font-size: 15px; letter-spacing: 0; text-transform: none; margin-bottom: 4px; }
.anim-note { padding: 0 var(--pad); margin-top: 56px; display: flex; align-items: center; gap: 16px; font-family: "Roboto Serif", serif; font-size: 17px; color: var(--mute); }
.anim-note .hand { font-size: 30px; color: var(--ink); }
.partners { padding: 40px var(--pad) 0; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(26px, 4vw, 64px); }
.partners img { height: 30px; width: auto; opacity: 0.8; transition: opacity 0.3s; }
.partners img:hover { opacity: 1; }
.partners .kicker { width: 100%; }

/* ---------- services as a 3x3 cube face ---------- */
.face { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #141414; padding: 6px; border-radius: 22px; margin: 0 var(--pad); }
@media (max-width: 900px) { .face { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .face { grid-template-columns: 1fr; } }
.face article { background: var(--bg); border-radius: 16px; padding: 26px 24px 30px; min-height: 230px; display: flex; flex-direction: column; gap: 14px; transition: background 0.4s, color 0.4s; }
.face article:hover { background: var(--ink); color: #000; }
.face article:hover p, .face article:hover .no { color: #444; }
.face .top { display: flex; justify-content: space-between; align-items: center; }
.face .no { font-size: 11px; letter-spacing: 0.14em; color: var(--mute); }
.face h4 { font-weight: 800; font-size: 19px; line-height: 1.15; }
.face p { font-family: "Roboto Serif", serif; font-size: 15px; line-height: 1.45; color: var(--mute); }
.face .glyph { width: 52px; height: 52px; }
/* fixed GPU layers: the glyph's rotate-back used to create and drop a layer on every hover-out,
   repainting neighbouring cards under the blended grain and cursor - the cards flickered */
.face { isolation: isolate; }
.face article { transform: translateZ(0); backface-visibility: hidden; }
.face .glyph { will-change: transform; backface-visibility: hidden; }
.face article:hover .glyph { transform: rotate(90deg); }

/* ---------- brief: consent + contacts ---------- */
#brief label.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font: 14px/1.45 "Roboto Serif", serif; color: var(--mute); margin-top: 6px; }
#brief label.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: #f4f2ee; }
#brief label.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
#brief button[disabled] { opacity: 0.5; }
.direct { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.direct a { border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.err { color: #f4f2ee; font: 13px "Roboto Serif", serif; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 64px var(--pad) 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }
.foot img { height: 26px; width: auto; display: block; }
.foot .tag { margin-top: 18px; font-family: "Roboto Serif", serif; font-size: 15px; line-height: 1.45; color: var(--mute); max-width: 300px; }
.foot h5 { font: 400 11px Benzin; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 10px; font-size: 13px; letter-spacing: 0.04em; }
.fine { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; font: 12px/1.5 "Roboto Serif", serif; color: var(--mute); }

/* ---------- legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 130px var(--pad) 90px; font-family: "Roboto Serif", serif; font-size: 16px; line-height: 1.65; color: #d9d6d0; }
.legal h1 { font-family: "Benzin", sans-serif; font-weight: 800; font-size: clamp(30px, 5vw, 54px); line-height: 1.04; color: var(--ink); margin-bottom: 12px; }
.legal h2 { font-family: "Benzin", sans-serif; font-weight: 800; font-size: 18px; color: var(--ink); margin: 40px 0 12px; }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal .upd { color: var(--mute); font-size: 14px; margin-bottom: 30px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal .fill { background: #1b1b1b; border-radius: 4px; padding: 0 5px; color: #f4f2ee; }

@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
  .case .shot i { transition: none; }
}

/* section headings (h2 for document outline, styled like the former h3) */
.head h2, .solve-copy h2 { font-weight: 800; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.01em; }
.solve-copy .kicker + h2 { margin-top: 6px; }

.err a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* case dialog: video and project link */
.dlg figure [hidden] { display: none; }
.dlg-link { align-self: flex-start; font: 800 13px Benzin; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
/* clickable departures board rows and cinema feature */
.brow[data-case] { cursor: pointer; transition: opacity 0.25s; }
.board:hover .brow[data-case]:not(:hover) { opacity: 0.55; }
.feature[data-case] { cursor: pointer; }
