/* DARBEEN v3 layer (26.11.2026): home showcase carousel, Who We Serve menu and page, portfolio cases.
   Motion: opacity/transform only, --ease-out, UI ≤ 250 ms; slide crossfade 450 ms (explanatory). */

/* ---------- Home hero showcase ---------- */
.hs { display: grid; gap: 14px; min-width: 0; }
.hs__stage { position: relative; aspect-ratio: 100 / 78; }
.hs__slide { position: absolute; inset: 0; display: flex; align-items: flex-start; text-decoration: none; color: inherit; border-radius: 16px; }
.js .hs__slide { opacity: 0; visibility: hidden; transform: scale(0.985); transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out), visibility 0s linear 450ms; }
.js .hs__slide[hidden] { display: flex; }
.js .hs__slide[data-active] { opacity: 1; visibility: visible; transform: none; transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out), visibility 0s; }
.hs__slide:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.hs__slide .device { width: 100%; }

/* Harborlight concierge preview (owner, 26.11.2026): static, shortened dialogue inside the same browser frame
   as the site demos (same outer box, radius and padding). Sizes follow the frame width (cqi), with readable floors. */
/* No address bar: the app fills the same frame as the site demos (16:10 screen + the 30px bar they have). */
.browser--app { container-type: inline-size; }
.hc { container-type: inline-size; height: calc(100cqi * 0.625 + 30px); display: grid; grid-template-rows: auto 1fr; background: #f5f7fa; }
.hc__head { display: flex; align-items: center; gap: max(6px, 1.6cqi); padding: max(6px, 1.7cqi) max(10px, 3cqi); background: #ffffff; border-bottom: 1px solid #e4e8ee; min-width: 0; }
.hc__icon { flex: none; display: grid; place-items: center; width: max(22px, 5.4cqi); height: max(22px, 5.4cqi); border-radius: max(6px, 1.3cqi); background: #17344f; color: #ffffff; }
.hc__icon svg { width: 62%; height: 62%; display: block; }
.hc__name { display: grid; line-height: 1.15; min-width: 0; }
.hc__name strong { font-size: max(11px, 2.55cqi); font-weight: 650; color: #111318; white-space: nowrap; }
.hc__name small { font-size: max(9.5px, 1.85cqi); color: #5c6068; line-height: 1.2; }
.hc__mode { margin-left: auto; flex: none; font-size: max(10px, 1.75cqi); font-weight: 600; line-height: 1; padding: max(4px, 0.8cqi) max(7px, 1.4cqi); border-radius: 999px; background: #fff3e2; color: #7a4300; border: 1px solid #f0d6b0; white-space: nowrap; }
.hc__log { display: flex; flex-direction: column; justify-content: center; gap: max(5px, 1.9cqi); padding: max(8px, 2.6cqi) max(10px, 3.4cqi); min-height: 0; overflow: hidden; }
.hc__msg { margin: 0; max-width: 80%; padding: max(5px, 1.5cqi) max(8px, 2.4cqi); border-radius: max(9px, 2.6cqi) max(9px, 2.6cqi) max(9px, 2.6cqi) max(3px, 0.8cqi); background: #ffffff; border: 1px solid #e1e5eb; color: #1b1d22; font-size: max(10px, 2.95cqi); line-height: 1.35; }
.hc__msg--guest { margin-left: auto; background: #17344f; border-color: #17344f; color: #ffffff; border-radius: max(9px, 2.2cqi) max(9px, 2.2cqi) max(3px, 0.7cqi) max(9px, 2.2cqi); }
.hc__msg--final { background: #eef7f1; border-color: #cfe6d8; }
.hs-film { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 6%; border-radius: 16px; overflow: hidden; background: var(--night); box-shadow: 0 30px 60px -30px rgba(12, 13, 16, 0.45); }
.hs-film img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-play { position: absolute; left: 20px; bottom: 20px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.94); color: var(--night); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
@media (hover: hover) and (pointer: fine) { .hs__slide:hover .hs-play { transform: scale(1.06); } .hs-play { transition: transform 200ms var(--ease-out); } }

.hs__captions { display: grid; }
/* One caption grid for every slide: title and link on the first line, the one-line pitch under them, then the
   honest "Demo / Concept · fictional" note. Every slide starts these on the same lines (owner, 26.11.2026). */
.hs { container-type: inline-size; }
.hs__caption { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title go" "pitch pitch" "meta meta"; align-items: start; align-content: start; column-gap: 16px; row-gap: 3px; font-size: var(--fs-sm); color: var(--ink-3); }
.hs__title { grid-area: title; color: var(--ink); font-size: var(--fs-md); font-weight: 650; line-height: 1.3; }
.hs__go { grid-area: go; justify-self: end; white-space: nowrap; align-self: baseline; }
.hs__title { align-self: baseline; }
.hs__pitch { grid-area: pitch; margin: 2px 0 0; color: var(--ink-2); line-height: 1.5; }
.hs__meta { grid-area: meta; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; }
@container (max-width: 560px) {
  .hs__caption { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "pitch" "go" "meta"; row-gap: 4px; }
  .hs__go, .hs__title { align-self: start; }
  .hs__go { justify-self: start; white-space: normal; margin-top: 4px; line-height: 1.4; }
  .hs__pitch { min-height: calc(2 * 1.5em); line-height: 1.5; }
  html:lang(hy) .hs__pitch { min-height: calc(3 * 1.5em); }
}
.hs__caption b { font-weight: 600; color: var(--ink-2); }
.js .hs__caption { opacity: 0; visibility: hidden; transition: opacity 250ms var(--ease-out), visibility 0s linear 250ms; }
.js .hs__caption[hidden] { display: grid; }
.js .hs__caption[data-active] { opacity: 1; visibility: visible; transition: opacity 250ms var(--ease-out) 120ms, visibility 0s; }

.hs__controls { display: flex; align-items: center; gap: 10px; }
.hs__tabs { display: flex; gap: 6px; flex: 1; }
.hs__tabs button { flex: 1; display: grid; gap: 7px; text-align: left; padding: 8px 2px 4px; background: none; border: 0; cursor: pointer; font: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); transition: color var(--dur-fast) ease; min-height: 44px; align-content: start; }
.hs__tabs button[aria-selected="true"] { color: var(--ink); }
.hs__bar { display: block; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.hs__bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.hs__tabs button[aria-selected="true"] .hs__bar i { transform: scaleX(1); }
.hs[data-running] .hs__tabs button[aria-selected="true"] .hs__bar i { animation: hs-progress var(--hs-dur, 8000ms) linear forwards; }
@keyframes hs-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hs__pause { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: transform var(--dur-press) var(--ease-out); }
.hs__pause:active { transform: scale(0.94); }
.hs__pause .i-play { display: none; }
.hs__pause[aria-pressed="true"] .i-play { display: block; }
.hs__pause[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 960px) { .hs__stage { aspect-ratio: 100 / 80; } }
@media (prefers-reduced-motion: reduce) {
  .js .hs__slide, .js .hs__slide[data-active] { transform: none; transition: opacity 200ms ease, visibility 0s; }
  .hs__pause { display: none; }
}

/* ---------- Home: three works ---------- */
.three-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 960px) { .three-works { grid-template-columns: minmax(0, 1fr); } }
/* Long action labels wrap inside the card instead of widening the page on 320px phones */
.work-card { min-width: 0; }
.work-card .btn { max-width: 100%; white-space: normal; text-align: center; padding-block: 10px; line-height: 1.3; }
.three-works .shot img { object-position: top center; }

/* ---------- Who We Serve: header dropdown ---------- */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop > a { padding-right: 4px !important; }
.nav-drop__btn { width: 28px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); border-radius: 8px; cursor: pointer; }
.nav-drop__btn svg { transition: transform var(--dur-ui) var(--ease-out); }
.nav-drop__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .nav-drop__btn:hover { background: var(--paper-2); color: var(--ink); } }
.nav-drop__panel { position: absolute; top: calc(100% + 10px); left: -8px; width: 380px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -16px rgba(12, 13, 16, 0.25); transform-origin: top left; z-index: 45; }
.js .nav-drop__panel { opacity: 0; transform: scale(0.97) translateY(-4px); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.js .nav-drop__panel[data-open] { opacity: 1; transform: none; }
.nav-drop__panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
.nav-drop__panel li a { display: grid; gap: 2px; padding: 10px 12px !important; border-radius: 10px !important; white-space: normal !important; }
.nav-drop__panel li a strong { color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.nav-drop__panel li a span { color: var(--ink-3); font-size: var(--fs-xs); }
.nav-drop__all { display: block; margin-top: 4px; padding: 10px 12px !important; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px !important; font-size: var(--fs-xs) !important; font-weight: 600; color: var(--accent-ink) !important; }
@media (prefers-reduced-motion: reduce) { .js .nav-drop__panel { transform: none; } }

/* Mobile menu: segments open inside the menu */
.mm-drop { border-bottom: 1px solid var(--line); }
.mm-drop summary { list-style: none; cursor: pointer; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; padding: 12px 0; display: flex; justify-content: space-between; align-items: center; }
.mm-drop summary::-webkit-details-marker { display: none; }
.mm-drop summary::after { content: ""; width: 10px; height: 10px; border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3); transform: translateY(-3px) rotate(45deg); transition: transform var(--dur-ui) var(--ease-out); }
.mm-drop[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.mm-drop__list { display: grid; padding: 0 0 10px 14px; }
.mobile-menu__nav .mm-drop__list a { font-family: var(--font); font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; padding: 9px 0; border-bottom: 0; color: var(--ink-2); }

/* Armenian labels are the longest: menu sheet up to 1500px */
@media (max-width: 1500px) {
  html:lang(hy) .nav, html:lang(hy) .header-actions .lang-switch { display: none; }
  html:lang(hy) .site-header .menu-toggle { display: inline-flex; margin-left: auto; }
}
/* Header room: below 1320px long RU/HY/ES labels use the menu sheet */
@media (max-width: 1320px) {
  html:lang(ru) .nav, html:lang(hy) .nav, html:lang(es-US) .nav, html:lang(ru) .header-actions .lang-switch, html:lang(hy) .header-actions .lang-switch, html:lang(es-US) .header-actions .lang-switch { display: none; }
  html:lang(ru) .site-header .menu-toggle, html:lang(hy) .site-header .menu-toggle, html:lang(es-US) .site-header .menu-toggle { display: inline-flex; margin-left: auto; }
}

/* ---------- Portfolio cases ---------- */
.work-stack { display: grid; gap: clamp(48px, 7vw, 96px); }
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.case--flip > :first-child { order: 2; }
.case--full { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
@media (max-width: 900px) { .case, .case--full { grid-template-columns: 1fr; } .case--flip > :first-child { order: 0; } }
.case__media { display: block; text-decoration: none; }
.case__media .browser img { aspect-ratio: 16 / 10; }
.did { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.did li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.did li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mod, var(--accent)); margin-top: 0.55em; }
.strip { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 0.75fr)); gap: 12px; align-items: end; }
.strip__item { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.strip__item img { width: 100%; height: auto; display: block; }
.strip__item--wide img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.strip__item--tall img { aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.strip__tag { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
@media (max-width: 640px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .strip__item--wide { grid-column: 1 / -1; } }
.shot--wide { aspect-ratio: 16 / 9; }
.shot--phone { background: var(--paper-2); }
.shot--phone img { object-fit: contain !important; padding: 14px 0; }
.sample [data-showcase] { min-height: 240px; }

/* ---------- Who We Serve page ---------- */
.serve-index ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .serve-index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .serve-index ul { grid-template-columns: 1fr; } }
.serve-index a { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); text-decoration: none; transition: border-color var(--dur-fast) ease; }
.serve-index a strong { font-size: var(--fs-sm); }
.serve-index a span { font-size: var(--fs-xs); color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .serve-index a:hover { border-color: var(--ink-4); } }
.serve-seg { scroll-margin-top: var(--header-h); }
.serve-seg__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .serve-seg__grid { grid-template-columns: 1fr; } }
.serve-seg__body { display: grid; gap: 22px; }
.serve-seg__body p { margin: 0; color: var(--ink-2); }
.serve-ex { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.serve-ex a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; color: var(--ink); }
.serve-ex .note-line { display: block; margin-top: 2px; font-size: var(--fs-xs); }

/* Catalog-driven showcase: project tabs wrap instead of shrinking; vertical film posters */
.hs__tabs { display: grid; grid-template-columns: repeat(var(--hs-n, 6), minmax(0, 1fr)); column-gap: 6px; row-gap: 2px; }
.hs__tabs button { min-width: 0; overflow-wrap: break-word; }
@container (max-width: 560px) { .hs__tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hs__tab-mod { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); }
.hs__tabs button[aria-selected="true"] .hs__tab-mod { color: var(--ink-3); }
.hs-film--vertical { width: auto; height: 94%; aspect-ratio: 9 / 16; margin: 0 auto; }
.hs__slide--vertical { justify-content: center; background: radial-gradient(60% 60% at 50% 45%, var(--paper-2), transparent); }

/* Who We Serve example cards: label, project, what you can do */
.serve-ex__card { display: grid !important; gap: 6px !important; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); text-decoration: none; transition: border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out); }
.serve-ex__card:active { transform: scale(0.99); }
.serve-ex__card strong { font-size: var(--fs-md); }
.serve-ex__action { font-weight: 600; font-size: var(--fs-sm); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .serve-ex__card:hover { border-color: var(--ink-4); } }

/* Work & Demos: works navigation (each project once, direct jump to its block) and project blocks (27.11.2026) */
.badge--prototype { background: #fff1cc; color: #6b4b00; border-color: transparent; }
.work-nav { border-bottom: 1px solid var(--line); background: var(--white); padding: 20px 0 22px; }
.work-nav__groups { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 14px 40px; }
@media (max-width: 900px) { .work-nav__groups { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.work-nav__mod { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--mod); margin-bottom: 8px; }
.work-nav__mod .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mod); }
.work-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.work-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; background: var(--white); }
.work-nav a .badge { padding: 3px 8px; }
@media (hover: hover) and (pointer: fine) { .work-nav a { transition: border-color 160ms var(--ease-out); } .work-nav a:hover { border-color: var(--ink-3); } }
[id^="work-"] { scroll-margin-top: 88px; }
.work-copy .kind .badge { margin-right: 6px; vertical-align: 1px; }
.case__poster { display: grid; place-items: center; background: var(--night); border-radius: 16px; padding: clamp(16px, 3vw, 28px); }
.case__poster img { width: auto; max-width: 100%; height: min(520px, 70vh); aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; display: block; }
.case .hs-film { margin-top: 0; }

/* Creative: two entries side by side — Lumen One (playable product ad) and Stride Lab (vertical film) */
.entries { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (max-width: 900px) { .entries { grid-template-columns: minmax(0, 1fr); } }
.entry { display: grid; gap: 16px; min-width: 0; }
.entry__meta { display: grid; gap: 8px; justify-items: start; }
.entry__meta h2 { font-size: var(--fs-lg); letter-spacing: -0.01em; margin: 0; }
.entry__meta p { margin: 0; }
.entry__meta .btn { margin-top: 6px; }
.entries .sc-card--hero .sc-body { grid-template-columns: minmax(0, 1fr); }
.entry__poster { position: relative; display: grid; place-items: center; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 16px; padding: clamp(14px, 2vw, 22px); text-decoration: none; }
.entry__poster img { display: block; width: auto; max-width: 100%; height: min(440px, 62vh); aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; }
.entry__poster .hs-play { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
@media (hover: hover) and (pointer: fine) { .entry__poster .hs-play { transition: transform 200ms var(--ease-out); } .entry__poster:hover .hs-play { transform: translate(-50%, -50%) scale(1.06); } }
html[data-variant="c"] #sample .entry__meta h2, html[data-variant="c"] #sample .section-head h2 { color: var(--night-ink); }
html[data-variant="c"] #sample .entry__meta p:not(.kind), html[data-variant="c"] #sample .section-head .lead { color: var(--night-ink-2); }

/* AI: Business Automation chain — request → structured brief → next step */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
@media (max-width: 900px) { .chain { grid-template-columns: minmax(0, 1fr); } }
.chain__step { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: var(--white); display: grid; gap: 6px; }
.chain__step h3 { margin: 0; font-size: var(--fs-md); }
.chain__step p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.chain__n { font-size: var(--fs-xs); font-weight: 700; color: var(--ai, var(--accent)); letter-spacing: 0.06em; }
@media (min-width: 901px) { .chain__step:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; } }
.mode-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--paper-2); color: var(--ink-2); font-size: var(--fs-sm); border: 1px solid var(--line); }

/* Phones (showcase narrower than 560px): the project picker sits right under the preview as a compact
   4-column grid; the pause button takes the free eighth cell. Caption follows. Heights never change
   between slides, so switching projects does not move the first screen. (owner P2, 27.11.2026) */
@container (max-width: 560px) {
  .hs__stage { order: 1; }
  .hs__controls { order: 2; position: relative; display: block; }
  .hs__captions { order: 3; }
  .hs__tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 6px; row-gap: 6px; }
  .hs__tabs button { min-height: 44px; padding: 6px 2px 4px; gap: 6px; font-size: 0.8125rem; line-height: 1.2; }
  .hs__tab-mod { display: none; }
  .hs__controls .hs__pause { display: grid; position: absolute; right: 0; bottom: 4px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .hs .hs__controls .hs__pause { display: none; } }
@container (max-width: 340px) { .hs__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 560px) { html:lang(hy) .hs__tabs button { font-size: 0.75rem; } }
