/* ============================================================
   Abdulrahman Hussein — Personal Website v2
   Brand Identity v1.1: Ink / Surface / Line / Grey / Bone / Signal
   Square corners. Hairlines, never shadows. One signal per screen.
   ============================================================ */
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-Thin.woff2') format('woff2'); font-weight: 100; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-ExtraLight.woff2') format('woff2'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #0E0E0E; --surface: #191A1A; --line: #484848; --grey: #ACABAA; --bone: #E7E5E4; --signal: #FF3333;
  --font: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "SF Pro Text", Tahoma, Arial, sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --max: 1360px; --pad: clamp(1.25rem, 4vw, 3.5rem); --header: 84px;
}
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
html[dir="rtl"] body { line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.3; }
::selection { background: var(--bone); color: var(--ink); }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--bone); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { inset-inline-start: 1rem; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.muted { color: var(--grey); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header); background: rgba(14, 14, 14, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand svg { height: 36px; width: auto; display: block; }
.brand .brand-icon { display: none; height: 30px; }
.nav { display: flex; gap: 2.25rem; margin-inline: auto; }
.nav a { font-size: .9rem; color: var(--grey); transition: color .3s var(--ease); position: relative; padding-block: .4rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--bone); }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.lang { font-size: .85rem; color: var(--grey); }
.lang:hover { color: var(--bone); }
.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span { position: absolute; inset-inline: 9px; height: 1px; background: var(--bone); transition: transform .4s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 24px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; height: 46px; padding-inline: 1.5rem; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--bone); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); white-space: nowrap; }
html[dir="rtl"] .btn { letter-spacing: 0; font-size: .9rem; }
.btn-solid { background: var(--bone); color: var(--ink); }
.btn-solid:hover { background: var(--grey); border-color: var(--grey); }
.btn-line { border-color: var(--line); color: var(--bone); }
.btn-line:hover { border-color: var(--bone); }
.link-arrow { display: inline-flex; gap: .5rem; align-items: center; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--line); padding-bottom: .3rem; transition: color .3s var(--ease), border-color .3s var(--ease); }
html[dir="rtl"] .link-arrow { letter-spacing: 0; font-size: .9rem; }
.link-arrow:hover { color: var(--bone); border-color: var(--bone); }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.link-arrow:hover .arrow, .card:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .link-arrow:hover .arrow, html[dir="rtl"] .card:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- Type helpers ---------- */
.eyebrow { display: flex; align-items: center; gap: 1rem; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .85rem; }
.eyebrow .num { font-variant-numeric: tabular-nums; color: var(--bone); }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eyebrow.no-rule::after { display: none; }
.display { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 600; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.h3 { font-size: 1.35rem; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--grey); max-width: 46ch; font-weight: 300; }
.big-num { font-weight: 100; font-size: clamp(3.4rem, 6vw, 5.2rem); line-height: 1; color: var(--bone); font-variant-numeric: tabular-nums; }
.signal { display: inline-flex; align-items: center; gap: .65rem; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
html[dir="rtl"] .signal { letter-spacing: 0; font-size: .85rem; }
.signal i { width: 8px; height: 8px; background: var(--signal); flex: 0 0 auto; }
.tag { display: inline-flex; align-items: center; height: 26px; padding-inline: .7rem; border: 1px solid var(--line); font-size: .66rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
html[dir="rtl"] .tag { letter-spacing: 0; font-size: .78rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-head { padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem); }
.page-head .display { margin-top: 2rem; }
.page-head .lede { margin-top: 1.5rem; }

/* ---------- Home hero ---------- */
.hero { min-height: calc(100svh - var(--header)); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3rem; padding-block: 4rem; }
.hero-copy .display { margin-block: 2rem 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero-meta { margin-top: 3rem; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark svg { width: min(100%, 420px); height: auto; overflow: visible; }
.strip { opacity: 0; transform: translateY(14%); transform-box: fill-box; animation: strip-in 1s var(--ease) forwards; animation-delay: calc(var(--i) * 120ms + 150ms); }
@keyframes strip-in { to { opacity: 1; transform: none; } }

/* ---------- About (home) ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.portrait { border: 1px solid var(--line); background: var(--surface); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.portrait figcaption { padding: .9rem 1rem; font-size: .75rem; color: var(--grey); border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.about-copy p { color: var(--grey); font-weight: 300; font-size: 1.08rem; }
.about-copy p + p { margin-top: 1.25rem; }
.about-copy .h2 { color: var(--bone); margin-bottom: 2rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 3rem; }
.stat { padding: 1.75rem 1.25rem 0 0; }
html[dir="rtl"] .stat { padding: 1.75rem 0 0 1.25rem; }
.stat + .stat { border-inline-start: 1px solid var(--line); padding-inline-start: 1.25rem; }
.stat .label { margin-top: .75rem; font-size: .8rem; color: var(--grey); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--ink); display: flex; flex-direction: column; padding: clamp(1.5rem, 2.5vw, 2.25rem); transition: background .4s var(--ease); min-height: 100%; }
a.card:hover { background: var(--surface); }
.card .media { margin: calc(-1 * clamp(1.5rem, 2.5vw, 2.25rem)); margin-bottom: 1.75rem; overflow: hidden; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.card:hover .media img { transform: scale(1.03); }
.card .idx { font-size: .75rem; color: var(--grey); font-variant-numeric: tabular-nums; margin-bottom: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.card .h3 { margin-bottom: .75rem; }
.card p { color: var(--grey); font-size: .95rem; font-weight: 300; }
.card .foot { margin-top: auto; padding-top: 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* typographic media for items without imagery */
.media-type { display: flex; align-items: flex-end; justify-content: flex-start; padding: 1.5rem; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 46%; width: 100%; }
.bars span { flex: 1; background: var(--bone); opacity: .9; height: var(--h); }
.media-type.signal-line { position: relative; }
.media-type.signal-line::after { content: ""; position: absolute; inset-inline: 1.5rem; bottom: 1.1rem; height: 1px; background: var(--line); }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.client { background: var(--ink); aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1.75rem; }
.client img { max-height: 46px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .82; transition: opacity .3s var(--ease); }
.client:hover img { opacity: 1; }

/* ---------- CTA band ---------- */
.cta { display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { height: 38px; padding-inline: 1.1rem; border: 1px solid var(--line); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); transition: all .3s var(--ease); }
html[dir="rtl"] .filters button { letter-spacing: 0; font-size: .88rem; }
.filters button:hover { color: var(--bone); border-color: var(--bone); }
.filters button[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.masonry { columns: 4 260px; column-gap: 12px; }
.masonry figure { margin: 0 0 12px; break-inside: avoid; border: 1px solid var(--line); cursor: zoom-in; overflow: hidden; background: var(--surface); }
.masonry figure img { width: 100%; transition: transform 1s var(--ease); }
.masonry figure:hover img { transform: scale(1.025); }
.masonry figure[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(14, 14, 14, .97); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 84vh; object-fit: contain; border: 1px solid var(--line); }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: border-color .3s var(--ease); }
.lb-btn:hover { border-color: var(--bone); }
.lb-close { top: 1.25rem; inset-inline-end: 1.25rem; }
.lb-prev { inset-inline-start: 1.25rem; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 1.25rem; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 1.25rem; left: 50%; translate: -50% 0; font-size: .75rem; color: var(--grey); letter-spacing: .15em; }

/* ---------- Player / placeholder ---------- */
.player { border: 1px solid var(--line); background: var(--surface); aspect-ratio: 16 / 9; position: relative; display: flex; align-items: center; justify-content: center; }
.player .mark svg { width: 120px; height: auto; }
.player .bar { position: absolute; inset-inline: 2rem; bottom: 2rem; display: flex; align-items: center; gap: 1rem; font-size: .72rem; color: var(--grey); font-variant-numeric: tabular-nums; }
.player .track { flex: 1; height: 1px; background: var(--line); position: relative; }
.player .track::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 34%; background: var(--signal); }
.player .state { position: absolute; top: 1.5rem; inset-inline-start: 1.5rem; }
.video-tile { background: var(--surface); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; position: relative; }
.play { width: 54px; height: 54px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.play::before { content: ""; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--grey); margin-inline-start: 3px; }
html[dir="rtl"] .play::before { transform: scaleX(-1); margin-inline-start: 0; margin-inline-end: 3px; }
.video-card { background: var(--ink); }
.video-card .meta { padding: 1.25rem 1.5rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); }
.video-card .meta span { font-size: .9rem; }

/* ---------- Coming soon (shop) ---------- */
.soon { border: 1px solid var(--line); padding: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.soon .word { font-weight: 100; font-size: clamp(3.4rem, 11vw, 9.5rem); line-height: .95; letter-spacing: -0.02em; }
html[dir="rtl"] .soon .word { letter-spacing: 0; line-height: 1.15; }
.soon p { color: var(--grey); margin-top: 1.5rem; max-width: 44ch; font-weight: 300; }
.list-plain { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list-plain li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--grey); }
.list-plain li strong { color: var(--bone); font-weight: 500; }

/* ---------- Services ---------- */
.svc-group + .svc-group { margin-top: clamp(4rem, 8vw, 6.5rem); }
.svc-head { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: start; margin-bottom: 2.5rem; }
.svc-head .lede { margin-top: 1rem; }

/* ---------- Form ---------- */
.contact { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2rem, 6vw, 6rem); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; }
.field { display: grid; gap: .55rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
html[dir="rtl"] .field label { letter-spacing: 0; font-size: .85rem; }
.field label em { font-style: normal; color: var(--line); margin-inline-start: .35rem; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--bone); font: inherit; font-size: 1rem; padding: .7rem 0; transition: border-color .3s var(--ease); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--surface); color: var(--bone); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bone); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--signal); }
.form .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.form-note { font-size: .85rem; color: var(--grey); }
.aside-block + .aside-block { margin-top: 2.5rem; }
.aside-block h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); font-weight: 500; margin-bottom: .9rem; }
html[dir="rtl"] .aside-block h4 { letter-spacing: 0; font-size: .85rem; }
.aside-block a, .aside-block p { display: block; color: var(--bone); padding-block: .2rem; }
.aside-block a:hover { color: var(--grey); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: 4rem 3rem; }
.footer-top svg { height: 42px; width: auto; }
.footer-top h4 { font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 1.1rem; }
html[dir="rtl"] .footer-top h4 { letter-spacing: 0; font-size: .85rem; }
.footer-top a { display: block; padding-block: .3rem; font-size: .92rem; color: var(--bone); }
.footer-top a:hover { color: var(--grey); }
.footer-tag { margin-top: 1.5rem; color: var(--grey); font-size: .9rem; max-width: 30ch; font-weight: 300; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .75rem; color: var(--grey); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .clients { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .header-actions .btn, .header-actions .lang { display: none; }
  .menu-btn { display: block; }
  .header-actions { margin-inline-start: auto; }
  .mobile-nav { display: block; position: fixed; inset: var(--header) 0 0; background: var(--ink); z-index: 49; padding: 2rem var(--pad); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
  .menu-open .mobile-nav { opacity: 1; pointer-events: auto; }
  .mobile-nav a { display: block; font-size: 1.9rem; font-weight: 500; padding-block: .9rem; border-bottom: 1px solid var(--line); }
  .mobile-nav .m-foot { display: flex; gap: 1rem; margin-top: 2rem; align-items: center; }
  .mobile-nav .m-foot a { font-size: .95rem; border: 0; }
  .hero, .about, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-block: 3.5rem 4.5rem; }
  .hero-mark { order: -1; justify-content: flex-start; }
  .hero-mark svg { width: 150px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .svc-head { grid-template-columns: 1fr; gap: 1rem; }
  .soon { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand .brand-full { display: none; }
  .brand .brand-icon { display: block; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .client { padding: 1rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); margin-top: 1.5rem; }
  .stat { padding-inline: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .masonry { columns: 2 140px; column-gap: 8px; }
  .masonry figure { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .strip, .reveal { opacity: 1; transform: none; }
}

/* ---------- Photo grid (ordered, uniform) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-grid figure { margin: 0; border: 1px solid var(--line); background: var(--surface); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; }
.photo-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo-grid figure:hover img { transform: scale(1.025); }
.photo-grid figure[hidden] { display: none; }
@media (max-width: 640px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ---------- Work cards: portrait media ---------- */
.work-card .media { aspect-ratio: 4 / 5; }
.work-card .media img { object-position: 50% 30%; }

/* ---------- Trusted By — same treatment as the Harshlight site ---------- */
.trusted-title { text-align: center; font-size: .82rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--grey); margin-bottom: 1.5rem; }
html[dir="rtl"] .trusted-title { letter-spacing: 0; font-size: .95rem; }
.social-proof-frame { padding: 2.25rem 0; border: 1px solid var(--line); background: var(--surface); }
.marquee { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-track { display: flex; width: max-content; gap: 2.75rem; padding-inline: 1.25rem; align-items: center; animation: logos-rtl 55s linear infinite; will-change: transform; }
html[dir="rtl"] .logo-track { animation-name: logos-ltr; }
@keyframes logos-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes logos-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.logo-chip { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 128px; height: 42px; transition: transform .4s var(--ease); }
.logo-chip:hover { transform: scale(1.12); }
.logo-chip img { width: 100%; height: 100%; object-fit: contain; opacity: .88; }
.logo-chip img[src*="logo2-01"] { transform: scale(.95); }
.logo-chip img[src*="logo2-02"], .logo-chip img[src*="logo2-09"] { transform: scale(.86); }
.logo-chip--mdlbeast img { transform: scale(1.4); }
.logo-chip img[src*="logo2-04"], .logo-chip img[src*="logo2-05"] { transform: scale(1.14); }
.logo-chip img[src*="logo2-06"] { transform: scale(.9); }
.logo-chip img[src*="logo2-07"], .logo-chip img[src*="logo2-12"] { transform: scale(.96); }
.logo-chip img[src*="logo2-08"] { transform: scale(.95); }
.logo-chip img[src*="logo2-10"] { transform: scale(.92); }
.logo-chip img[src*="logo2-11"] { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; } }

/* ---------- Home: work feature (cover + discipline list) ---------- */
.work-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.work-cover { display: block; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.work-cover img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease); }
.work-cover:hover img { transform: scale(1.025); }
.disc-list { display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); }
.disc-row { display: grid; grid-template-columns: 3.5rem 1fr auto; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.disc-row .n { grid-row: 1 / 3; font-weight: 100; font-size: 2rem; color: var(--grey); font-variant-numeric: tabular-nums; }
.disc-row .t { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; }
.disc-row .d { grid-column: 2; color: var(--grey); font-size: .95rem; font-weight: 300; }
.disc-row .arrow { grid-row: 1 / 3; grid-column: 3; color: var(--grey); font-size: 1.2rem; }
.disc-row:hover { padding-inline-start: .75rem; }
.disc-row:hover .arrow { color: var(--bone); }
.svc-cards .foot { gap: 1.25rem; justify-content: flex-start; }
.svc-cards .media { aspect-ratio: 1 / 1; }
@media (max-width: 900px) { .work-feature { grid-template-columns: 1fr; } }

/* ---------- Home hero merged with About ---------- */
.hero-about { grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4rem, 7vw, 6rem); min-height: auto; }
.hero-about .hero-mark { justify-content: flex-start; margin-bottom: 2.5rem; }
.hero-about .hero-mark svg { width: clamp(110px, 12vw, 170px); }
.hero-about .display { font-size: clamp(2.4rem, 5vw, 4.4rem); margin-block: 1.5rem 2rem; }
.hero-about .about-copy p { color: var(--grey); font-weight: 300; font-size: 1.05rem; max-width: 60ch; }
.hero-about .about-copy p + p { margin-top: 1.1rem; }
.hero-about .stats { grid-template-columns: repeat(2, 1fr); max-width: 520px; margin-top: 2.5rem; }
.hero-about .hero-actions { margin-top: 2.5rem; }
.hero-about .portrait img { aspect-ratio: 3 / 4; }
@media (max-width: 900px) { .hero-about .portrait { order: 2; } .hero-about .hero-mark { order: 0; } }
@media (max-width: 640px) { .hero-about .stats { grid-template-columns: 1fr 1fr; } .hero-about .stat + .stat { border-top: 0; margin-top: 0; border-inline-start: 1px solid var(--line); padding-inline-start: 1.25rem; } }
@media (max-width: 900px) { .hero-about { grid-template-columns: 1fr; } .hero-about .portrait { max-width: 520px; } }

/* ---------- Footer: inquiry line (the site's single call to action) ---------- */
.footer-inquire { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(3.5rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.fi-line { font-weight: 200; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--bone); max-width: 18ch; }
html[dir="rtl"] .fi-line { letter-spacing: 0; line-height: 1.35; }
.fi-link { display: inline-flex; align-items: center; gap: .9rem; padding-bottom: .55rem; border-bottom: 1px solid var(--bone); font-size: .82rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--bone); transition: gap .4s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
html[dir="rtl"] .fi-link { letter-spacing: 0; font-size: 1rem; }
.fi-link:hover { gap: 1.4rem; color: var(--grey); border-color: var(--grey); }
.footer-top { grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Personal Branding ---------- */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.br-hero { min-height: auto; padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem); }
.br-hero .display { margin-block: 2rem 1.5rem; font-size: clamp(2.6rem, 5.6vw, 5rem); }
.br-dh { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.br-close { display: grid; gap: 2.5rem; }
.br-privacy { font-weight: 300; font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--bone); max-width: 52ch; }
.br-cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.br-cta .muted { font-size: .92rem; font-weight: 300; }
.br-not { font-size: .82rem; color: var(--grey); border-top: 1px solid var(--line); padding-top: 1.25rem; }
.home-br { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.home-br-link { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.5rem 1.75rem; border: 1px solid var(--line); transition: background .4s var(--ease), border-color .4s var(--ease); }
.home-br-link .signal { color: var(--bone); }
.home-br-link:hover { background: var(--surface); }
.home-br-link:hover .link-arrow { color: var(--bone); border-color: var(--bone); }
.svc-br { margin-top: 1.5rem; border: 1px solid var(--line); }
.svc-br p:not(.idx) { max-width: 60ch; }
.br-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; }
.br-fields[hidden] { display: none; }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .br-hero .hero-mark { order: -1; } .br-dh { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-5, .br-fields { grid-template-columns: 1fr; } }
.br-fields.full { grid-column: 1 / -1; }

/* =====================================================================
   v6 — standard web type scale (desktop H1 ≈ 48–52px, body 16px),
   orphan control, signal red for "coming soon", services hub
   ===================================================================== */
body { font-size: 16px; }
.display { font-size: clamp(2.1rem, 3.6vw, 3.25rem); line-height: 1.12; }
.hero-about .display { font-size: clamp(2.1rem, 3.6vw, 3.25rem); margin-block: 1.25rem 1.5rem; }
.br-hero .display { font-size: clamp(2.1rem, 3.6vw, 3.25rem); }
.h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.h3 { font-size: 1.15rem; }
.lede { font-size: clamp(1rem, 1.2vw, 1.125rem); max-width: 60ch; }
.page-head { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.page-head .display { margin-top: 1.5rem; }
.page-head .lede { margin-top: 1.25rem; }
.card p { font-size: .94rem; }
.big-num { font-size: clamp(2.6rem, 4.2vw, 3.6rem); }
.hero-about .about-copy p { font-size: 1rem; }
.hero-about .hero-mark svg { width: clamp(96px, 9vw, 140px); }
.fi-line { font-size: clamp(1.6rem, 2.8vw, 2.4rem); max-width: none; }
.soon .word { font-size: clamp(3rem, 7vw, 6rem); }
.br-privacy { font-size: 1.1rem; }
.disc-row .t { font-size: 1.5rem; }
.footer-top svg { height: 38px; }

/* Orphan control: headings balanced, paragraphs avoid a lone last word */
h1, h2, h3, .display, .h2, .h3, .fi-line, .lede, .trusted-title, .eyebrow span { text-wrap: balance; }
p, li, .card p, .about-copy p, figcaption { text-wrap: pretty; }

/* Signal red — "Coming soon / Opening soon" (identity: status square + label, Ink only) */
.signal { color: var(--signal); }
.tag.soon-tag, .card .tag { color: var(--signal); border-color: var(--signal); }
.soon .word { color: var(--signal); }
.home-br-link .signal { color: var(--signal); }

/* Services hub — two practices side by side */
.svc-hub-grid { grid-template-columns: 1fr 1fr; }
.svc-hub .media { aspect-ratio: 4 / 3; }
.svc-hub .media img { object-position: 50% 30%; }
.media-mark { display: flex; align-items: center; justify-content: center; }
.media-mark svg { width: 34%; height: auto; }
@media (max-width: 900px) { .svc-hub-grid { grid-template-columns: 1fr; } }
/* v6 fit adjustments */
@media (min-width: 901px) { .hero-about { grid-template-columns: 1.35fr .65fr; } }
.hero-about .display, .br-hero .display { font-size: clamp(1.9rem, 3.1vw, 2.75rem); }
.soon p { max-width: none; }
.eyebrow { white-space: normal; }
.display, .h2 { line-height: 1.15; }

.portrait figcaption span { white-space: nowrap; }
@media (max-width: 640px) { .hero-about .stats { grid-template-columns: 1fr; } .hero-about .stat + .stat { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); margin-top: 1.5rem; } }
.soon p.signal, p.signal, .page-head .signal { color: var(--signal); }
.signal { line-height: 1.4; }
/* v6.1 — services hub: show the photograph almost whole */
.svc-hub .media { background: var(--surface); display: flex; align-items: center; justify-content: center; padding: clamp(1.25rem, 3vw, 2.25rem); }
.svc-hub .media img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
a.card.svc-hub:hover .media img { transform: none; }
/* v6.2 — the photograph sets the shape: 3:4 frames, image fills the frame */
.svc-hub .media { aspect-ratio: 3 / 4; padding: 0; display: block; }
.svc-hub .media img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.svc-hub .media-mark { display: flex; align-items: center; justify-content: center; }
.svc-hub .media-mark svg { width: 36%; }
.svc-hub-grid { max-width: 1040px; }
.svc-hub-grid { max-width: none; }
.card .idx { min-height: 26px; }

/* =====================================================================
   v7 — THE MUSEUM: depth, light, interaction, transitions
   Only identity colours: Ink, Surface, Line, Grey, Bone, Signal (alpha only).
   ===================================================================== */
html { background: var(--ink); }
body { background: transparent; }

/* --- Dark gallery behind everything --- */
.museum { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--ink); }
.museum > div { position: absolute; will-change: transform; }
.m-wall { inset: -10%; background:
  repeating-linear-gradient(90deg, rgba(231,229,228,.012) 0 1px, transparent 1px 180px),
  linear-gradient(180deg, #121313 0%, var(--ink) 55%, #0b0b0b 100%); }
.m-spot { width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(30px);
  background: radial-gradient(closest-side, rgba(231,229,228,.075), rgba(231,229,228,.025) 45%, transparent 72%); }
.m-spot-a { left: -18vmax; top: -22vmax; }
.m-spot-b { right: -26vmax; top: 30vh; width: 80vmax; height: 80vmax; background: radial-gradient(closest-side, rgba(231,229,228,.055), rgba(231,229,228,.018) 50%, transparent 74%); }
.m-spot-c { left: 20vw; top: 140vh; background: radial-gradient(closest-side, rgba(231,229,228,.05), transparent 70%); }
.m-floor { left: -10%; right: -10%; bottom: -30vh; height: 70vh; transform-origin: 50% 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(231,229,228,.045), transparent 70%); }
.m-vignette { inset: 0; background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%); }
.m-grain { inset: -50%; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.section { border-top-color: rgba(72,72,72,.55); }

/* --- Every lit object gets its own light: a soft spot that follows the cursor --- */
.tilt { position: relative; transform-style: preserve-3d; will-change: transform;
  transition: transform .6s var(--ease), outline-color .4s var(--ease), box-shadow .4s var(--ease); outline: 1px solid transparent; outline-offset: -1px; }
.tilt .light { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(420px circle at var(--lx, 50%) var(--ly, 30%), rgba(231,229,228,.10), transparent 60%); }
.tilt:hover .light { opacity: 1; }
.tilt:hover { outline-color: var(--signal); z-index: 2; }
.tilt .media { overflow: hidden; }
.tilt .media img, .tilt .media svg { transition: transform 1.1s var(--ease); }
.tilt:hover .media img { transform: scale(1.06); }
.tilt:hover .media svg { transform: scale(1.08); }
[data-href] { cursor: pointer; }
.tilt:hover .h3 { color: var(--bone); }
.tilt:hover .link-arrow { color: var(--bone); border-color: var(--bone); }

/* gallery frames: lift, red hairline, gentle zoom */
.photo-grid figure { position: relative; transition: transform .6s var(--ease), outline-color .4s var(--ease); outline: 1px solid transparent; outline-offset: -1px; will-change: transform; }
.photo-grid figure:hover { outline-color: var(--signal); transform: translateY(-4px) scale(1.025); z-index: 2; }
.photo-grid figure:hover img { transform: scale(1.06); }
.home-br-link { outline: 1px solid transparent; outline-offset: -1px; transition: outline-color .4s var(--ease), background .4s var(--ease); }
.home-br-link:hover { outline-color: var(--signal); }

/* --- Services: two works on the wall, with air between them --- */
.svc-hub-grid { gap: clamp(1.5rem, 3.5vw, 3rem); background: none; border: 0; }
.svc-hub-grid .card { border: 1px solid var(--line); }

/* --- Next chapter: the site walks the visitor forward --- */
.next-wrap { padding-block: clamp(3rem, 6vw, 5rem); }
.next-panel { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; gap: .5rem 2rem; align-items: end;
  padding: clamp(2rem, 4vw, 3.25rem); border: 1px solid var(--line); background: rgba(25,26,26,.55); overflow: hidden; }
.next-eyebrow { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.next-title { grid-row: 2; font-weight: 200; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.015em; color: var(--bone); }
.next-line { grid-row: 3; color: var(--grey); font-weight: 300; }
.next-arrow { grid-column: 2; grid-row: 1 / 4; align-self: center; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--grey); transition: transform .6s var(--ease), color .4s var(--ease); }
.next-panel:hover .next-arrow { transform: translateX(10px); color: var(--signal); }

/* --- Guiding cursor (fine pointers only) --- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border: 1px solid var(--bone); border-radius: 50%; opacity: 0; display: flex; align-items: center; justify-content: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s var(--ease), border-color .45s var(--ease), opacity .3s; }
.cursor-label { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s var(--ease); white-space: nowrap; }
.has-cursor .cursor { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-color: var(--grey); }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--bone); border-color: var(--bone); }
.cursor.is-label .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --- Depth on scroll: content rises out of the dark --- */
.reveal { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* --- Page transition: the six strips of the mark draw like a curtain over a painting --- */
.curtain { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: 12fr 15fr 8fr 20fr 13fr 21fr; pointer-events: none; }
.curtain i { background: var(--ink); transform: translateY(0); border-inline-end: 1px solid rgba(72,72,72,.35);
  transition: transform .75s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--i) * 55ms); }
html.page-in .curtain i { transform: translateY(-101%); }
html.page-out .curtain i { transform: translateY(0); transition-duration: .55s; }
html.page-out .curtain { pointer-events: auto; }
html.no-curtain .curtain { display: none; }
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } .tilt, .photo-grid figure { transition: none; } }
/* safety: never leave the page covered if scripts stall */
.curtain i { animation: curtain-safety .01s 3s forwards; }
html.page-in .curtain i, html.page-out .curtain i { animation: none; }
@keyframes curtain-safety { to { transform: translateY(-101%); } }
/* v7.1 — red hairline that survives 3D transforms */
.tilt, .photo-grid figure, .home-br-link { outline: 0 !important; }
.tilt::after, .photo-grid figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  box-shadow: inset 0 0 0 1px var(--signal); opacity: 0; transition: opacity .4s var(--ease); }
.tilt:hover::after, .photo-grid figure:hover::after { opacity: 1; }
.home-br-link { box-shadow: inset 0 0 0 0 transparent; transition: box-shadow .4s var(--ease), background .4s var(--ease); }
.home-br-link:hover { box-shadow: inset 0 0 0 1px var(--signal); }
.next-title, .next-line { display: block; }
@media (max-width: 640px) { .next-panel { grid-template-columns: 1fr; } .next-arrow { grid-column: 1; grid-row: 4; justify-self: start; margin-top: .5rem; } }
/* v7.2 — no custom cursor circle; the card light stays */
.cursor { display: none !important; }
/* v7.3 — the logo rides the curtain, sliced across its six strips */
.curtain { width: 100vw; }
.curtain i { position: relative; overflow: hidden; }
.curtain i b { position: absolute; top: 0; left: calc(var(--o) / 89 * -100vw); width: 100vw; height: 100vh; height: 100dvh;
  display: grid; place-items: center; }
.curtain-logo { width: 80vw; aspect-ratio: 600 / 93.487; height: auto; color: var(--bone); fill: currentColor; opacity: .92; }
/* v7.4 — larger portrait, closer to the copy */
@media (min-width: 901px) { .hero-about { grid-template-columns: minmax(0, 38rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); } }
@media (max-width: 900px) { .hero-about .portrait { max-width: 600px; } }
.hero-about .portrait { margin: 0; }
@media (min-width: 901px) and (max-width: 1199px) { .hero-about { grid-template-columns: 1.1fr .9fr; } }
/* v7.5 — service cards scaled down, same 3:4 proportion */
@media (min-width: 901px) { .svc-hub-grid { grid-template-columns: repeat(2, minmax(0, min(400px, 44vh))); justify-content: center; } }
@media (max-width: 900px) { .svc-hub-grid .card { max-width: 420px; } }
@media (max-width: 900px) { .svc-hub-grid { justify-items: center; } }
/* v7.7 — inquiry form: required marks, dial-code picker, worldwide country/city pickers */
.field label .req { color: var(--signal); margin-inline-start: .3rem; letter-spacing: 0; }
.geo-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; }
.geo-fields[hidden] { display: none; }
@media (max-width: 640px) { .geo-fields { grid-template-columns: 1fr; } }
.phone-row { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: end; }
.cbx { position: relative; }
.cbx-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: transparent; border: 0;
  border-bottom: 1px solid var(--line); color: var(--bone); font: inherit; font-size: 1rem; padding: .7rem 0; cursor: pointer; text-align: start; transition: border-color .3s var(--ease); }
.cbx-btn:hover, .cbx.open .cbx-btn { border-color: var(--bone); }
.cbx-btn:disabled { cursor: not-allowed; color: var(--line); }
.cbx-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbx-ph { color: var(--grey); }
.cbx-caret { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); flex: none; opacity: .7; transition: transform .3s var(--ease); }
.cbx.open .cbx-caret { transform: rotate(-135deg) translateY(-2px); }
.cbx-dial .cbx-btn { min-width: 7.2rem; }
.field.invalid .cbx-btn { border-color: var(--signal); }
.cbx-panel { position: absolute; z-index: 60; top: calc(100% + 6px); inset-inline-start: 0; width: max(100%, 320px); max-width: calc(100vw - 40px);
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.cbx-panel[hidden] { display: none; }
.cbx-search { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--bone); font: inherit; font-size: .95rem; padding: .85rem 1rem; }
.cbx-search:focus { outline: none; border-color: var(--grey); }
.cbx-list { list-style: none; margin: 0; padding: .35rem 0; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.cbx-list li { display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; font-size: .92rem; color: var(--bone); cursor: pointer; }
.cbx-list li .flag { width: 1.4rem; flex: none; }
.cbx-list li .alt { color: var(--grey); font-size: .82rem; margin-inline-start: auto; white-space: nowrap; }
.cbx-list li .dial { color: var(--grey); margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.cbx-list li[aria-selected="true"], .cbx-list li:hover { background: rgba(231,229,228,.06); }
.cbx-list li.active { background: rgba(231,229,228,.1); box-shadow: inset 2px 0 0 var(--signal); }
.cbx-list li.cbx-empty { color: var(--grey); cursor: default; background: none; box-shadow: none; }
.cbx-list li.cbx-custom { color: var(--grey); }
.cbx-list li.cbx-custom b { color: var(--bone); font-weight: 500; }
.field .cbx-search { padding: .85rem 1rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.field .cbx-search:focus { border-color: var(--grey); }
