/* ==========================================================================
   Antony Addy — "Polyglot"
   Near-black canvas, a pointer-led aurora, condensed grotesk headlines with a
   coral-to-violet serif accent, glass surfaces and work shown in full colour.
   ========================================================================== */

:root {
  --bg: #08080a;
  --bg-2: #0e0e12;
  --surface: rgb(255 255 255 / 3.5%);
  --surface-2: rgb(255 255 255 / 6%);
  --line: rgb(255 255 255 / 9%);
  --line-2: rgb(255 255 255 / 16%);
  --fg: #f4f1ea;
  --soft: #c9c6be;
  --dim: #8f8e97;          /* 6:1 on --bg */
  --coral: #ff6b4a;
  --peach: #ffb36b;
  --violet: #8b6cff;
  --lime: #d4ff4f;
  --grad: linear-gradient(100deg, var(--coral), var(--peach) 42%, var(--violet) 84%);

  --display: "Bricolage Grotesque", "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1360px;
  --gutter: 48px;
  --header-height: 84px;
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--display); font-size: 16.5px; line-height: 1.6; font-variation-settings: "opsz" 16; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--coral); color: #160704; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main, .site-footer { position: relative; z-index: 2; }

/* ---------- ambient layers ---------- */
/* a soft aurora that drifts after the pointer (polyglot.js) */
.aurora { position: fixed; inset: -20%; z-index: 0; pointer-events: none; filter: blur(100px) saturate(1.15); opacity: .5; }
.aurora i { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; transition: transform 1.6s var(--ease); }
.aurora i:nth-child(1) { left: 50%; top: 18%; background: var(--coral); }
.aurora i:nth-child(2) { left: 20%; top: 46%; background: var(--violet); }
.aurora i:nth-child(3) { left: 64%; top: 60%; width: 30vw; height: 30vw; background: #1f5bff; opacity: .8; }
/* film grain, so the dark never looks flat */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .09; 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.skip-link { position: fixed; top: 10px; inset-inline-start: 10px; z-index: 100; padding: 12px 20px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 70; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgb(10 10 13 / 94%); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-height); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { width: auto; height: 38px; filter: brightness(0) invert(1); }
/* the links sit together in one glass pill */
.nav { display: flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 3%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav-link { position: relative; padding: 9px 15px; border-radius: 999px; font-size: 14.5px; color: #d8d6d0; transition: background .2s, color .2s; }
.nav-link:hover, .nav-link.active { background: var(--surface-2); color: var(--fg); }
.nav-meta { display: flex; align-items: center; gap: 4px; margin-inline-start: 4px; padding-inline-start: 6px; border-inline-start: 1px solid var(--line); }
.lang-select-wrap { position: relative; display: inline-block; height: 36px; }
.lang-globe { position: absolute; inset-inline-start: 11px; top: 50%; z-index: 1; width: 15px; height: 15px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.lang-select { appearance: none; -webkit-appearance: none; display: block; height: 36px; min-width: 124px; padding: 0 28px 0 32px; border: 0; border-radius: 999px; background: transparent; color: var(--fg); font-family: var(--mono); font-size: 12.5px; cursor: pointer; }
/* The options are laid out even while closed; without this, "Русский" would
   download Geist Mono's Cyrillic file on every other page. */
html:not(:lang(ru), :lang(ar)) .lang-select { font-family: "Geist Mono Latin", ui-monospace, "SFMono-Regular", Menlo, monospace; }
.lang-select:hover { background: var(--surface-2); }
.lang-select option { background: #16161b; color: var(--fg); }
.lang-select-wrap::after { content: ""; position: absolute; inset-inline-end: 12px; top: 50%; width: 5px; height: 5px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.nav-wa { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #d8d6d0; transition: background .2s, color .2s; }
.nav-wa:hover { background: var(--surface-2); color: var(--fg); }
.wa-ic { width: 17px; height: 17px; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--fg); font-family: var(--display); font-size: 15px; font-weight: 600; line-height: 1.2; transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { border-color: rgb(255 255 255 / 34%); background: var(--surface-2); }
.btn-primary { border-color: transparent; background: var(--coral); color: #160704; box-shadow: 0 10px 30px -12px rgb(255 107 74 / 70%); }
.btn-primary:hover { background: #ff825f; border-color: transparent; transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgb(255 107 74 / 80%); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.nav-cta { min-height: 44px; margin-inline-start: 4px; padding: 10px 20px; border: 0; background: var(--fg); color: var(--bg); font-size: 14px; box-shadow: none; }
.nav-cta:hover { background: #fff; transform: none; box-shadow: none; }

/* ---------- section scaffolding ---------- */
.section { padding-block: 140px; }
.section-head { margin-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.section-head h2, .lab-copy h2, .video-copy h2, .about h2, .contact h2 { margin-bottom: 20px; font-family: var(--display); font-size: clamp(38px, 5vw, 76px); font-weight: 300; line-height: 1; letter-spacing: -.028em; font-stretch: 85%; font-variation-settings: "opsz" 96; overflow-wrap: break-word; }
.section-head p { max-width: 52ch; margin-bottom: 0; font-size: 18px; color: var(--soft); }
/* the serif accent: italic, warm gradient */
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; font-variation-settings: normal; color: var(--peach); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 em, h2 em { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline-end: .06em; }
}

/* ---------- hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: calc(100svh - var(--header-height)); }
.hero-inner { display: flex; flex-direction: column; flex: 1; padding-top: 5vh; padding-bottom: 32px; }
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 3vh; font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
/* the language picker: French and English first, the other seven quieter.
   Choosing one switches the site; the chosen language is lit in lime, and the
   one on screen during the opening tour gets a quiet underline. */
.hero-langs { display: flex; align-items: center; gap: 2px; direction: ltr; font-family: var(--mono); text-transform: uppercase; }
.hero-langs button { position: relative; min-height: 32px; padding: 4px 8px; border: 0; border-radius: 7px; background: none; color: var(--dim); font-family: inherit; letter-spacing: .07em; text-transform: inherit; cursor: pointer; transition: background .4s, color .4s; }
.hero-langs button:hover { background: var(--surface-2); color: var(--fg); }
.hero-langs .prim { color: var(--fg); font-size: 13px; font-weight: 500; }
.hero-langs .sec { min-width: 24px; padding-inline: 6px; font-size: 12px; color: var(--soft); } /* --dim fell to 3.1:1 over the hero gradient */
.hero-langs .sep { width: 1px; height: 14px; margin-inline: 6px; background: var(--line-2); }
.hero-langs button[aria-pressed="true"] { background: var(--lime); color: var(--bg); }
.hero-langs button.is-shown::after { content: ""; position: absolute; inset-inline: 8px; bottom: 2px; height: 1.5px; border-radius: 2px; background: var(--peach); }

.hero h1 { position: relative; max-width: 16ch; margin-bottom: 4vh; font-family: var(--display); font-size: clamp(48px, 7vw, 120px); font-weight: 300; line-height: .94; letter-spacing: -.035em; font-stretch: 82%; font-variation-settings: "opsz" 96; }
/* min-height is set by polyglot.js to the tallest language, so nothing below moves */
.hero h1 .h1-visual { display: block; }
.hero h1 .wd { display: inline-block; white-space: nowrap; }
.hero h1 em { display: block; }
/* letters rise into a layout that is already final: only opacity, transform and
   blur animate, so lines never re-wrap mid-change */
.hero h1 .ch { display: inline-block; translate: 0 calc(var(--p, 0) * -.07em); color: color-mix(in srgb, var(--peach) calc(var(--p, 0) * 85%), var(--fg));
  transition: opacity .95s var(--ease), transform 1.2s var(--ease), filter .95s var(--ease), translate .45s var(--ease), color .45s;
  transition-delay: calc(var(--i, 0) * 38ms), calc(var(--i, 0) * 38ms), calc(var(--i, 0) * 38ms), 0s, 0s; }
.hero h1 em { transition: opacity 1.2s var(--ease), transform 1.4s var(--ease), filter 1.2s var(--ease); transition-delay: calc(var(--n, 0) * 30ms + 250ms); }
.hero h1 .is-enter .ch, .hero h1 .is-enter em { opacity: 0; transform: translateY(.28em); filter: blur(8px); transition: none; }
.hero h1 .is-out .ch, .hero h1 .is-out em { opacity: 0; transform: translateY(-.12em); filter: blur(6px); transition: opacity .55s ease, transform .6s ease, filter .55s ease; transition-delay: 0s; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 64px; margin-top: auto; }
.hero .lead { max-width: 46ch; margin: 0; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; gap: 48px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.stat .n { font-family: var(--serif); font-size: clamp(30px, 2.6vw, 40px); font-style: italic; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }

/* entrance */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-meta, .hero h1, .hero-row, .stats, .hero-visual { animation: riseIn .9s var(--ease) both; }
.hero h1 { animation-delay: .08s; }
.hero-row { animation-delay: .22s; }
.stats { animation-delay: .32s; }
.hero-visual { animation-delay: .45s; }

/* the reel: real colours, curving away like a film strip */
.hero-visual { position: relative; padding-bottom: 28px; }
.hero-wall { position: relative; height: 290px; overflow: hidden; direction: ltr; perspective: 1400px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.wall-stage, .wall-col { height: 100%; }
.wall-track { display: flex; gap: 22px; width: max-content; padding-top: 22px; transform-style: preserve-3d; animation: reel 80s linear infinite; }
@keyframes reel { to { transform: translateX(calc(-50% - 11px)); } }
.hero-wall:hover .wall-track { animation-play-state: paused; }
.thumb { flex: none; width: 380px; margin: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); box-shadow: 0 30px 60px -24px rgb(0 0 0 / 80%); transform: rotateY(-14deg); }
.thumb img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.hero-motion-toggle { position: absolute; inset-inline-end: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); bottom: 0; z-index: 3; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgb(8 8 10 / 70%); color: var(--soft); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-motion-toggle:hover { color: var(--fg); border-color: rgb(255 255 255 / 34%); }
.hero.hero-tab-hidden .wall-track, .hero.motion-paused .wall-track, .hero.hero-offscreen .wall-track,
.hero.motion-paused .kicker::before, .hero.hero-offscreen .kicker::before { animation-play-state: paused; }

/* ---------- work ---------- */
#work .section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0 64px; align-items: end; }
#work .section-head .eyebrow { grid-column: 1 / -1; }
#work .section-head h2 { margin-bottom: 0; max-width: 11ch; }
#work .section-head p { padding-bottom: 10px; }
.work-toolbar { position: sticky; top: calc(var(--header-height) + 8px); z-index: 20; display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.filters { display: flex; gap: 4px; padding: 5px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line); border-radius: 999px; background: rgb(14 14 18 / 80%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.filters::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--soft); font-size: 14px; transition: background .2s, color .2s; }
.pill:hover { background: var(--surface-2); color: var(--fg); }
.pill.active { background: var(--fg); color: var(--bg); }
.pill .c { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.pill.active .c { color: #5d5a66; }
.filter-scroll-cue { display: none; color: var(--dim); }
.work-count { margin: 0 0 0 auto; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .3s, background .3s, transform .4s var(--ease); }
/* a gradient edge lights up on hover */
.card::before { content: ""; position: absolute; inset: -1px; z-index: 0; padding: 1px; border-radius: inherit; background: var(--grad); opacity: 0; transition: opacity .35s; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card:hover, .card:focus-within { background: var(--surface-2); transform: translateY(-4px); }
.card:hover::before, .card:focus-within::before { opacity: 1; }
.shot { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; border-radius: 12px; background: var(--bg-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.card:hover .shot img { transform: scale(1.035); }
.project-browser { display: none; }
.status-tag { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: rgb(8 8 10 / 75%); color: var(--lime); font-family: var(--mono); font-size: 11px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 22px 12px 8px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.project-number { font-variant-numeric: tabular-nums; }
.card-body h3 { margin-bottom: 12px; font-family: var(--display); font-size: clamp(22px, 1.9vw, 28px); font-weight: 400; line-height: 1.12; letter-spacing: -.03em; font-stretch: 90%; font-variation-settings: "opsz" 48; }
.project-title-link { display: flex; align-items: baseline; gap: 16px; direction: ltr; }
.project-title-link > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.project-title-link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }
.project-title-link:focus-visible { outline: none; }
.project-title-link:focus-visible::after { outline: 2px solid var(--lime); outline-offset: 3px; }
.title-arrow { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; margin-inline-start: auto; border: 1px solid var(--line-2); border-radius: 50%; font-size: 16px; transition: background .3s, color .3s, border-color .3s, transform .35s var(--ease); }
.card:hover .title-arrow { border-color: transparent; background: var(--coral); color: #160704; transform: rotate(45deg); }
.card-body p { flex: 1; max-width: 60ch; margin-bottom: 18px; font-size: 15px; line-height: 1.6; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tags span { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 11.5px; color: var(--soft); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.project-name { font-size: 13px; color: var(--dim); overflow-wrap: anywhere; }
.visit, .soon { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--peach); }
.arr { font-size: 15px; }
.testi { margin: 0 0 18px; padding: 14px 16px; border-inline-start: 2px solid var(--coral); border-radius: 0 12px 12px 0; background: var(--surface-2); }
.testi blockquote { margin: 0 0 6px; font-size: 14.5px; }
.testi figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.project-story { position: relative; z-index: 4; margin-bottom: 16px; border-top: 1px solid var(--line); }
.project-story summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--fg); }
.project-story summary::-webkit-details-marker { display: none; }
.project-story summary > span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 16px; font-weight: 400; transition: transform .25s var(--ease); }
.project-story[open] summary > span { transform: rotate(45deg); }
.project-story ol { display: grid; gap: 12px; margin: 0 0 12px; padding: 0; list-style: none; counter-reset: notes; }
.project-story li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; counter-increment: notes; }
.project-story li::before { content: counter(notes, decimal-leading-zero); padding-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--peach); }
.project-story li p { margin: 0; font-size: 14px; color: var(--soft); }
@media (min-width: 901px) {
  .card.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
  .card.is-featured .shot { aspect-ratio: auto; min-height: 440px; }
  .card.is-featured .card-body { padding: 26px 22px 12px; }
  .card.is-featured h3 { font-size: clamp(24px, 2.2vw, 34px); }
  .card.is-featured .card-body > p { font-size: 16.5px; }
}
.gallery-action { display: flex; justify-content: center; margin-top: 44px; }
.gallery-action .btn { min-width: 260px; }
@keyframes filterIn { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card.filter-in { animation: filterIn .4s var(--ease); }

/* ---------- AI lab ---------- */
.ai-lab { position: relative; }
.ai-lab::before { content: ""; position: absolute; inset: 10% 0; z-index: -1; background: radial-gradient(50% 60% at 75% 50%, rgb(139 108 255 / 22%), transparent 70%); pointer-events: none; }
.lab-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 96px; align-items: center; }
.lab-copy h2 { margin-bottom: 28px; }
.lab-copy > p { max-width: 42ch; margin-bottom: 32px; font-size: 18px; color: var(--soft); }
.lab-link { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 14px 24px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; transition: background .2s, border-color .2s; }
.lab-link:hover { background: var(--surface-2); border-color: rgb(255 255 255 / 34%); }
.lab-link > span:last-child { color: var(--peach); transition: transform .25s var(--ease); }
.lab-link:hover > span:last-child { transform: translate(2px, -2px); }
.lab-copy .lab-note { margin: 20px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.demo-card { min-width: 0; padding: 28px; border: 1px solid var(--line-2); border-radius: 28px; background: rgb(18 18 23 / 75%); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 80%); }
.demo-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.demo-brand { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.demo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #160704; font-family: var(--serif); font-size: 21px; font-style: italic; }
.demo-step { font-family: var(--mono); font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; direction: ltr; }
.demo-caption { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.demo-stage { display: flex; flex-direction: column; justify-content: center; min-height: 400px; padding-block: 22px; }
.sample-scenario { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 13px; color: var(--soft); }
.sample-scenario > span { margin-inline-start: auto; padding: 3px 10px; border-radius: 999px; background: var(--lime); color: var(--bg); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.chat-message { margin: 0 32px 14px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: var(--surface-2); }
.chat-message:last-child { margin-bottom: 0; }
.chat-message p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
.chat-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.chat-you { margin: 0 0 14px 32px; border-color: transparent; border-radius: 18px 18px 6px 18px; background: var(--coral); color: #160704; }
.chat-you .chat-label { color: rgb(22 7 4 / 70%); }
.demo-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.demo-dots { display: flex; gap: 6px; }
.demo-dot { width: 20px; height: 4px; border-radius: 4px; background: var(--line-2); transition: background .3s; }
.demo-dot.active { background: var(--peach); }
#demo-next, .demo-fallback { min-height: 46px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600; transition: background .2s; }
#demo-next:hover { background: #fff; }
#sample-reply, #sample-report { animation: sampleIn .35s var(--ease); }
@keyframes sampleIn { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.report-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.report-heading h3 { margin: 8px 0 0; font-family: var(--serif); font-size: 28px; font-style: italic; font-weight: 400; line-height: 1.1; }
.level-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #160704; font-size: 21px; font-weight: 700; line-height: 1; }
.level-badge > span { margin-top: 4px; font-family: var(--mono); font-size: 9px; font-weight: 500; }
.report-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.report-section h4 { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--peach); }
.report-section ul { display: grid; gap: 6px; margin: 0; padding-inline-start: 18px; font-size: 14px; line-height: 1.55; color: var(--soft); }

/* ---------- video ---------- */
.video-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 96px; align-items: center; }
.video-copy h2 { max-width: 13ch; }
.video-copy > p { max-width: 48ch; margin-bottom: 24px; font-size: 18px; color: var(--soft); }
.video-copy .film-credit { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--dim); }
.film-summary { max-width: 50ch; border-top: 1px solid var(--line); }
.film-summary summary { min-height: 52px; padding-block: 14px; cursor: pointer; font-weight: 600; color: var(--peach); }
.film-summary p { margin: 4px 0 0; font-size: 15.5px; color: var(--soft); }
#video-error { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; font-size: 14px; color: var(--peach); }
.video-frame { display: flex; justify-content: center; }
/* a gradient-rimmed phone */
.phone { position: relative; width: min(300px, 78vw); aspect-ratio: 9/16; padding: 10px; border: 1.5px solid transparent; border-radius: 40px; background: linear-gradient(#141418, #141418) padding-box, var(--grad) border-box; box-shadow: 0 50px 100px -30px rgb(139 108 255 / 45%); }
.pitch-video { display: block; width: 100%; height: 100%; border-radius: 30px; object-fit: cover; background: #000; }
.video-play { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; border: 0; border-radius: 40px; background: linear-gradient(transparent 30%, rgb(8 8 10 / 75%)); color: var(--fg); font-weight: 600; }
.play-icon { display: grid; place-items: center; width: 72px; height: 72px; padding-inline-start: 4px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 22px; box-shadow: 0 0 0 10px rgb(244 241 234 / 12%); transition: transform .3s var(--ease); }
.video-play:hover .play-icon { transform: scale(1.08); }
.video-play:focus-visible { outline-offset: -8px; }
.video-sound { position: absolute; top: 22px; inset-inline-end: 22px; z-index: 3; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgb(8 8 10 / 70%); color: var(--fg); font-size: 12.5px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.video-sound svg { width: 16px; height: 16px; }
.video-sound .ic-sound, .sound-on .video-sound .ic-muted { display: none; }
.sound-on .video-sound .ic-sound { display: block; }
.pitch-video::cue { font-size: 14px; background: rgb(8 8 10 / 92%); color: #fff; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 96px; row-gap: 36px; align-items: start; }
.about-copy { grid-column: 1; grid-row: 1 / 3; }
.about h2 { max-width: 15ch; margin-bottom: 32px; }
.about p { max-width: 54ch; margin-bottom: 20px; font-size: 18.5px; line-height: 1.6; color: var(--soft); }
.about-grid > .portrait { grid-column: 2; grid-row: 1; }
.about-side { grid-column: 2; grid-row: 2; }
.portrait { position: relative; margin: 0; padding: 1.5px; border-radius: 30px; background: var(--grad); box-shadow: 0 40px 90px -30px rgb(255 107 74 / 40%); }
.about-photo { width: 100%; height: auto; aspect-ratio: 1; border-radius: 28px; object-fit: cover; object-position: center 30%; }
.facts { border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 116px 1fr; gap: 16px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.fact .k { padding-top: 3px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.fact .v { font-size: 15.5px; color: var(--fg); }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: svc; }
.svc { position: relative; padding: 14px 14px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-increment: svc; transition: background .3s, transform .4s var(--ease); }
.svc:hover { background: var(--surface-2); transform: translateY(-4px); }
.svc-preview { display: block; overflow: hidden; margin-bottom: 22px; border-radius: 12px; }
.svc-preview img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.svc-preview:hover img { transform: scale(1.04); }
.svc .ic { display: none; }
.svc h3, .svc p { padding-inline: 8px; }
.svc h3::before { content: counter(svc, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--serif); font-size: 34px; font-style: italic; font-weight: 400; line-height: 1; color: var(--peach); }
.svc h3 { margin-bottom: 10px; font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.svc p { margin-bottom: 0; font-size: 14.5px; line-height: 1.6; color: var(--soft); }

/* ---------- FAQ ---------- */
.faq .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-height) + 40px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 26px; cursor: pointer; list-style: none; font-size: clamp(17px, 1.5vw, 21px); font-weight: 400; line-height: 1.3; letter-spacing: -.015em; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--peach); }
.faq-chevron { flex-shrink: 0; width: 34px; height: 34px; padding: 8px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--fg); transition: transform .3s var(--ease), background .3s, color .3s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); border-color: transparent; background: var(--fg); color: var(--bg); }
.faq-a { padding: 0 58px 26px 0; }
.faq-a p { max-width: 62ch; margin-bottom: 0; font-size: 16px; color: var(--soft); }

/* ---------- contact ---------- */
.contact { position: relative; padding-block: 140px; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 55% at 25% 45%, rgb(255 107 74 / 22%), transparent 70%), radial-gradient(40% 50% at 80% 60%, rgb(139 108 255 / 20%), transparent 70%); pointer-events: none; }
.contact-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 80px; align-items: start; }
.contact h2 { max-width: 11ch; margin-bottom: 28px; font-size: clamp(44px, 6.4vw, 104px); }
.contact-intro > p { max-width: 48ch; margin-bottom: 36px; font-size: 18.5px; color: var(--soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-wa:hover { border-color: #25d366; }
.contact-back { display: inline-flex; align-items: center; min-height: 52px; padding-inline: 12px; font-size: 14.5px; color: var(--soft); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 6px; }
.contact-back:hover { color: var(--fg); }
/* the quick form: a glass sheet */
.contact-form { position: relative; padding: 34px; border: 1px solid var(--line-2); border-radius: 28px; background: rgb(18 18 23 / 72%); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 80%); }
.cf-title { margin: 0 0 8px; font-family: var(--serif); font-size: 32px; font-style: italic; font-weight: 400; line-height: 1.1; }
.contact-form .cf-intro { margin-bottom: 24px; font-size: 15px; color: var(--soft); }
.cf-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.cf-field label { font-size: 14px; font-weight: 500; color: var(--fg); }
.cf-input { width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: rgb(255 255 255 / 4%); color: var(--fg); font: inherit; font-size: 16px; transition: border-color .2s, background .2s, box-shadow .2s; }
textarea.cf-input { min-height: 136px; resize: vertical; line-height: 1.5; }
.cf-input:hover { border-color: rgb(255 255 255 / 30%); }
.cf-input:focus { outline: none; border-color: var(--peach); background: rgb(255 255 255 / 6%); box-shadow: 0 0 0 4px rgb(255 179 107 / 16%); }
.cf-input[aria-invalid="true"] { border-color: #ff6b6b; }
.contact-form .cf-err { margin: 0; font-size: 13.5px; color: #ff9c8a; }
.contact-form .cf-alert { margin: 4px 0 16px; padding: 12px 14px; border: 1px solid rgb(255 107 107 / 40%); border-radius: 12px; background: rgb(255 107 107 / 10%); color: #ffb4a8; font-size: 14px; }
.cf-err[hidden], .cf-alert[hidden], .contact-form[hidden] { display: none; }
.cf-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-submit { width: 100%; margin-top: 6px; }
.cf-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.cf-done { padding-block: 56px; text-align: center; }
.cf-done:focus { outline: none; }
.cf-done:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; }
.cf-done-ic { display: block; width: 56px; height: 56px; margin: 0 auto 18px; color: var(--lime); }
.cf-done-ic path { stroke: var(--bg); }

/* ---------- footer ---------- */
.site-footer { padding-block: 56px 64px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.site-footer .brand-logo { height: 72px; }
.site-footer .meta { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.site-footer .meta a { color: var(--soft); }
.site-footer .meta a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }

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

/* ==========================================================================
   Light interior: the hero and contact stay dark; everything between is one
   warm, sunlit sheet that rises over the hero with rounded corners. Same type
   and accents, with the gradient and peach deepened to read on light.
   ========================================================================== */
.light {
  --paper: #f6f3ee;
  --bg: #f6f3ee;            /* text on dark fills (active pills, buttons) */
  --bg-2: #ebe6de;
  --surface: #ffffff;
  --surface-2: #fffdf9;
  --line: rgb(29 23 18 / 10%);
  --line-2: rgb(29 23 18 / 18%);
  --fg: #1d1712;
  --soft: #4f4740;
  --dim: #6f665e;
  --peach: #b4501d;         /* accent text: 4.6:1 on the paper */
  --grad: linear-gradient(100deg, #e0462a, #d0702a 42%, #6a4be0 84%);
  position: relative; z-index: 2; background: var(--paper); color: var(--fg);
}
.light :focus-visible, .light.dv :focus-visible { outline-color: #1d1712; }
.sheet-top { margin-top: -1px; border-radius: 36px 36px 0 0; }
.sheet-bottom { border-radius: 0 0 36px 36px; }
.light .eyebrow::before { background: #e0462a; box-shadow: none; }
.light ::selection { background: #ffd7c9; color: #1d1712; }

/* surfaces that were glass on dark become paper cards with soft shadows */
.light .card, .light .svc { box-shadow: 0 1px 2px rgb(29 23 18 / 4%), 0 12px 32px -18px rgb(29 23 18 / 18%); }
.light .card:hover, .light .card:focus-within, .light .svc:hover { box-shadow: 0 2px 4px rgb(29 23 18 / 5%), 0 24px 48px -20px rgb(29 23 18 / 26%); }
.light .shot, .light .svc-preview { outline: 1px solid var(--line); outline-offset: -1px; }
.light .filters { background: rgb(255 255 255 / 85%); box-shadow: 0 8px 24px -16px rgb(29 23 18 / 30%); }
.light .pill.active .c { color: #b9b0a6; }
.light .tags span { background: var(--bg-2); border-color: transparent; color: var(--soft); }
.light .demo-card { background: #fff; border-color: var(--line); box-shadow: 0 2px 4px rgb(29 23 18 / 5%), 0 40px 80px -40px rgb(29 23 18 / 35%); -webkit-backdrop-filter: none; backdrop-filter: none; }
.light .chat-message { background: var(--bg-2); border-color: transparent; }
.light .chat-you { background: #cc3d22; color: #fff; }
.light .chat-you .chat-label { color: rgb(255 255 255 / 80%); }
.light .sample-scenario > span { color: #08080a; }
.light .ai-lab::before, .light.ai-lab::before { background: radial-gradient(50% 60% at 75% 50%, rgb(106 75 224 / 10%), transparent 70%); }
.light .phone { box-shadow: 0 40px 80px -30px rgb(106 75 224 / 35%); }
.light .portrait { box-shadow: 0 30px 70px -30px rgb(224 70 42 / 35%); }
.light .btn-primary { color: #fff; background: #cc3d22; box-shadow: 0 10px 26px -12px rgb(224 70 42 / 60%); }
.light .btn-primary:hover { background: #b5321a; }
.light .level-badge, .light .demo-mark { color: #fff; }
.light .faq-item[open] .faq-chevron { color: var(--bg); }
.light .gallery-action .btn { background: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --gutter: 32px; --header-height: 76px; }
  .nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 8px; border: 1px solid var(--line-2); border-radius: 50%; background: rgb(8 8 10 / 60%); }
  .nt-bar { width: 18px; height: 1.5px; background: var(--fg); transition: transform .25s var(--ease), opacity .2s; }
  .nav-toggle[aria-expanded="true"] .nt-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nt-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nt-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav { position: absolute; top: calc(100% + 6px); inset-inline: var(--gutter); display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; border-radius: 24px; background: #121216; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 80%); max-height: calc(100dvh - var(--header-height) - 20px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-link { padding: 14px 16px; border-radius: 14px; font-size: 17px; }
  .nav-meta { justify-content: space-between; margin: 6px 0 4px; padding: 10px 8px; border-inline-start: 0; border-top: 1px solid var(--line); }
  .nav-cta { min-height: 50px; margin: 4px 0 0; }
  .lab-grid, .video-grid { gap: 56px; }
  .about-grid { column-gap: 56px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-count { display: none; }
}

@media (max-width: 900px) {
  .section, .contact { padding-block: 100px; }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  #work .section-head { grid-template-columns: minmax(0, 1fr); }
  #work .section-head p { margin-top: 18px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .lab-grid, .video-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-card { width: 100%; max-width: 640px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-grid > .portrait { grid-column: 1; grid-row: 1; max-width: 320px; }
  .about-copy { grid-column: 1; grid-row: 2; }
  .about-side { grid-column: 1; grid-row: 3; }
  .faq .wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .faq .section-head { position: static; }
  .contact-card { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --header-height: 68px; --radius: 18px; }
  body { font-size: 16px; }
  .brand-logo { height: 32px; }
  .section, .contact { padding-block: 80px; }
  .section-head { margin-bottom: 36px; }
  .hero-inner { padding-top: 4vh; }
  .hero-meta { margin-bottom: 22px; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-langs { margin-inline-start: -8px; flex-wrap: wrap; }
  .hero-langs .sep { margin-inline: 3px; }
  .hero-langs .sec { padding-inline: 5px; }
  .hero h1 { margin-bottom: 26px; font-size: clamp(44px, 13vw, 62px); }
  .hero .lead { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 auto; padding-inline: 18px; }
  .stats { gap: 28px; margin-top: 28px; }
  .hero-wall { height: 210px; }
  .thumb { width: 260px; border-radius: 12px; }
  .wall-track { gap: 14px; }
  @keyframes reel { to { transform: translateX(calc(-50% - 7px)); } }
  .hero-motion-toggle { position: static; display: block; margin: 12px var(--gutter) 0 auto; }
  [dir="rtl"] .hero-motion-toggle { margin: 12px auto 0 var(--gutter); }
  .work-toolbar { top: calc(var(--header-height) + 4px); }
  .card { padding: 10px; }
  .card-body { padding: 18px 8px 6px; }
  .card-body h3 { font-size: clamp(20px, 6vw, 24px); }
  .title-arrow { width: 34px; height: 34px; }
  .gallery-action .btn { width: 100%; min-width: 0; }
  .demo-card { padding: 20px 16px; border-radius: 22px; }
  .demo-stage { min-height: 440px; }
  .chat-message { margin-inline-end: 16px; padding: 12px; }
  .chat-you { margin-inline: 16px 0; }
  .chat-message p { font-size: 14.5px; }
  #demo-next { max-width: calc(100% - 80px); padding-inline: 14px; font-size: 13px; }
  .about p { font-size: 17px; }
  .about-grid > .portrait { max-width: 250px; }
  .fact { grid-template-columns: 96px 1fr; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-item summary { padding-block: 22px; font-size: 17px; }
  .faq-a { padding-inline-end: 0; }
  .contact h2 { font-size: clamp(42px, 13vw, 60px); }
  .contact-intro > p { font-size: 17px; }
  .contact-actions .btn { flex: 1 1 auto; }
  .contact-back { justify-content: center; width: 100%; }
  .contact-form { padding: 24px 18px; border-radius: 22px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 24px; }
  .site-footer .brand-logo { height: 56px; }
  .site-footer .meta { line-height: 2; }
  .aurora { opacity: .4; }
}

@media (max-width: 360px) {
  .demo-stage { min-height: 480px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.will-reveal { opacity: 1; transform: none; }
  .hero-meta, .hero h1, .hero-row, .stats, .hero-visual { opacity: 1; }
  .hero-motion-toggle { display: none !important; }
  .btn:hover, .card:hover, .svc:hover, .card:hover .shot img, .svc-preview:hover img, .video-play:hover .play-icon { transform: none; }
}

/* ---------- Arabic & right-to-left ---------- */
html:lang(ar) {
  --display: "IBM Plex Sans Arabic", "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Noto Naskh Arabic", "IBM Plex Sans Arabic", serif;
  --mono: "IBM Plex Sans Arabic", ui-monospace, monospace;
}
html:lang(ar) body, html:lang(ar) body * { letter-spacing: 0 !important; }
html:lang(ar) em, html:lang(ar) i { font-style: normal; }
html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) h3, html:lang(ar) .stat .n { line-height: 1.4; }
html:lang(ar) .hero h1 { font-size: clamp(44px, 7vw, 110px); font-weight: 500; }
html:lang(ar) h1 em, html:lang(ar) h2 em { font-weight: 600; }
[dir="rtl"] .scroll-progress span { transform-origin: right; }
[dir="rtl"] .lang-select { padding: 0 32px 0 28px; }
[dir="rtl"] .btn .arr, [dir="rtl"] .visit .arr { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .faq-a { padding: 0 0 26px 58px; }
@media (max-width: 640px) { [dir="rtl"] .faq-a { padding-inline-start: 0; } }

/* ---------- legal pages (mentions légales, confidentialité) ---------- */
.legal { min-height: 70vh; padding-block: 72px 96px; }
.legal-wrap { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 24px; }
.legal h1, .legal .legal-en-title { margin-bottom: 12px; font-family: var(--display); font-size: clamp(38px, 6vw, 64px); font-weight: 300; line-height: 1; letter-spacing: -.03em; font-stretch: 85%; font-variation-settings: "opsz" 96; }
.legal h2 { margin: 40px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--soft); }
.legal ul { padding-inline-start: 20px; }
.legal a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.legal a:hover { text-decoration-color: currentColor; }
.legal strong { color: var(--fg); }
.legal-switch { margin-bottom: 8px; font-family: var(--mono); font-size: 13px; }
/* The English half is an h2 (one h1 per page) styled like the page title. */
.legal .legal-en-title { margin-top: 0; }
.legal-en { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line-2); }
.legal-date { margin-top: 32px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.legal .todo { padding: 1px 6px; border-radius: 6px; background: #ffe58a; color: #1d1712; font-weight: 600; }
.legal-back { font-size: 14px; color: #d8d6d0; }
.legal-back:hover { color: #fff; }
.legal-back span { color: var(--dim); }
.site-footer .meta a + a, .site-footer .meta .legal-links a { white-space: nowrap; }
@media (max-width: 640px) { .legal { padding-block: 48px 72px; } .legal-wrap { padding-inline: 18px; } .legal-back span { display: none; } }

/* Antony Addy bar: identical in every app served under www.antonyaddy.com.
   Links visitors back to the main site; colours match its brand. */
.aa-bar{position:relative;z-index:60;box-sizing:border-box;display:flex;align-items:center;gap:18px;height:60px;padding:0 24px 4px;background:linear-gradient(90deg,#ba3a2f 0 33.33%,#5b3b9c 33.33% 66.66%,#f6a463 66.66%) left bottom/100% 4px no-repeat,#111731;color:#fff;font:500 15px/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:0;text-transform:none}
.aa-bar a{color:inherit;text-decoration:none}
.aa-bar-home{display:inline-flex;flex:none;align-items:center;height:32px;padding-inline-end:18px;border-inline-end:1px solid rgba(255,255,255,.2)}
.aa-bar-mark{display:block;width:auto;height:32px}
.aa-bar-services{display:flex;flex:1;min-width:0;gap:4px;margin:0;padding:0;list-style:none;overflow:hidden}
.aa-bar-services a{display:block;padding:9px 14px;border-radius:999px;color:#e3e6f2;white-space:nowrap;transition:background-color .15s,color .15s}
.aa-bar-services a:hover{color:#fff;background:rgba(255,255,255,.08)}
.aa-bar-services a[aria-current]{color:#111731;background:#fff;font-weight:600}
.aa-bar-back{flex:none;color:#e3e6f2;white-space:nowrap}
.aa-bar-back:hover{color:#fff}
.aa-bar-arrow{display:inline-block}
[dir=rtl] .aa-bar-arrow{transform:scaleX(-1)}
.aa-bar .aa-bar-contact{flex:none;padding:11px 20px;border-radius:999px;background:#ba3a2f;color:#fff;font-weight:600;transition:background-color .15s}
.aa-bar .aa-bar-contact:hover{background:#a3322a}
.aa-bar a:focus-visible{outline:2px solid #f6a463;outline-offset:2px}
@media (max-width:720px){.aa-bar-back{display:none}.aa-bar{gap:12px;height:54px;padding-inline:16px}.aa-bar-home{height:28px;padding-inline-end:12px}.aa-bar-mark{height:28px}}
@media (max-width:520px){.aa-bar-services li:not(:has([aria-current])){display:none}}
@media (prefers-reduced-motion:reduce){.aa-bar a{transition:none}}
@media print{.aa-bar{display:none}}
