/* =========================================================
   Bright Lens Media Production — site styles
   Brand: red #CC111A, white, near-black. Fonts: Miedinger (Latin
   display) + Alexandria (Arabic / body).
   Breakpoints: phone < 640px, tablet 640–1023px, desktop ≥ 1024px
   ========================================================= */

@font-face { font-family: "Miedinger"; src: url("../fonts/miedinger-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Miedinger"; src: url("../fonts/miedinger-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Miedinger"; src: url("../fonts/miedinger-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Miedinger"; src: url("../fonts/miedinger-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --red: #CC111A;
  --red-dark: #a30d14;
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --line: rgba(255, 255, 255, .1);
  --text: #ffffff;
  --muted: #a3a3ab;
  --font-display: "Miedinger", "Alexandria", system-ui, sans-serif;
  --font-body: "Alexandria", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw + 10px, 18px);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; margin: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--red); padding: 8px 16px; z-index: 100; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(11, 11, 12, .92); backdrop-filter: blur(10px); border-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 34px; width: auto; }

.main-nav ul { display: flex; gap: clamp(20px, 2.5vw, 40px); list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: .95rem; position: relative; padding-block: 6px; }
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; font-family: var(--font-display); font-size: .8rem; letter-spacing: .05em;
  transition: border-color .2s, background .2s;
}
.lang-toggle:hover { border-color: var(--red); background: var(--red); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; z-index: 60;
}
.menu-toggle span { position: absolute; inset-inline: 10px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons / small bits ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--red); color: #fff; border: 1px solid var(--red);
  padding: 14px 30px; border-radius: 999px; font-weight: 500; cursor: pointer;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { background: transparent; }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, .35); }
.btn-outline:hover { border-color: var(--red); background: var(--red); }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow, [dir="rtl"] .link-arrow:hover .arrow { transform: scaleX(-1) translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; border-bottom: 1px solid var(--red); padding-bottom: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .78rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

/* Page hero (inner pages) */
.page-hero { padding-block: calc(var(--header-h) + clamp(60px, 10vw, 140px)) clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4.8rem); max-width: 16ch; }
.page-hero p { color: var(--muted); max-width: 640px; margin-top: 24px; font-size: clamp(1rem, 1.3vw, 1.2rem); }

/* About: company facts under the page hero */
.page-hero:has(.facts) { padding-bottom: 0; border-bottom: 0; }
.facts {
  display: grid; grid-template-columns: 1fr; margin: clamp(40px, 6vw, 72px) 0 0;
  border-block: 1px solid var(--line);
}
.fact { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; min-width: 0; }
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--muted); font-size: .82rem; letter-spacing: .05em; }
.fact dd { margin: 0; font-size: 1.1rem; font-weight: 500; overflow-wrap: anywhere; }
.fact dd a:hover { color: var(--red); }
.fact-name small { display: block; color: var(--muted); font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em; margin-top: 4px; font-weight: 400; }
html[lang="en"] .fact-name small { display: none; }
.fact-team dd { display: flex; align-items: baseline; gap: 10px; }
.fact-team strong { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--red); }
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 28px 24px; border-inline-start: 1px solid var(--line); }
  .fact:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .fact-wide { grid-column: 1 / -1; border-inline-start: 0; padding-inline-start: 0; }
  .fact:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .facts { grid-template-columns: 1.4fr .8fr 1fr 1.4fr; }
  .fact { border-bottom: 0; }
  .fact:nth-child(odd) { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
  .fact:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .fact:nth-last-child(2) { border-bottom: 0; }
  .facts .fact-wide { border-top: 1px solid var(--line); border-inline-start: 0; padding-inline-start: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-alt { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); max-width: 18ch; }

.statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 3.2vw, 2.6rem); line-height: 1.5; max-width: 26ch; }
.statement em { font-style: normal; color: var(--red); }
.split { display: grid; grid-template-columns: 1fr; gap: 40px; }
.split .muted { color: var(--muted); }
@media (min-width: 1024px) { .split { grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: end; } }

/* Work grid */
.work-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); } .work-grid.featured .work-card:first-child { grid-column: span 2; grid-row: span 2; } }
.work-card { display: block; position: relative; }
.work-card[hidden] { display: none; }
.work-thumb {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); border-radius: var(--radius);
}
.work-grid.featured .work-card:first-child .work-thumb { height: calc(100% - 84px); aspect-ratio: auto; min-height: 260px; }
.work-thumb img, .work-thumb video, .work-thumb .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover .work-thumb img, .work-card:hover .work-thumb video, .work-card:hover .work-thumb .ph { transform: scale(1.05); }
/* Placeholder visual until real project images are added */
.ph { background: radial-gradient(circle at 70% 30%, rgba(204, 17, 26, .55), transparent 55%), linear-gradient(135deg, #1d1d21, #0e0e10); }
.ph::after { content: ""; position: absolute; inset: 0; margin: auto; width: 28%; aspect-ratio: 1; background: url("../images/brand/mark.webp") center / contain no-repeat; opacity: .9; }
.ph.v2 { background: radial-gradient(circle at 20% 80%, rgba(204, 17, 26, .5), transparent 50%), linear-gradient(160deg, #222226, #0c0c0e); }
.ph.v3 { background: radial-gradient(circle at 50% 50%, rgba(204, 17, 26, .35), transparent 60%), linear-gradient(200deg, #18181b, #0b0b0c); }
.play {
  position: absolute; inset-inline-end: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: .3s var(--ease);
}
.play::before { content: ""; border-left: 12px solid #fff; border-block: 8px solid transparent; margin-left: 3px; }
.work-card:hover .play { opacity: 1; transform: scale(1); }
.work-meta { padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.work-meta h3 { font-size: 1.1rem; font-weight: 500; }
.work-meta span { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px; cursor: pointer; font-size: .9rem; transition: .2s; }
.filter-btn:hover { border-color: #fff; }
.filter-btn.is-active { background: var(--red); border-color: var(--red); }

/* Team (About page) */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.member-card { display: grid; gap: 10px; align-content: start; }
.member-card .member-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 70% 30%, rgba(204, 17, 26, .45), transparent 60%), linear-gradient(135deg, #1d1d21, #0e0e10); margin-bottom: 6px; }
.member-card .member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: filter .5s, transform .8s var(--ease); }
.member-card:hover .member-photo img { filter: none; transform: scale(1.04); }
.member-card h3 { font-size: 1.15rem; }
.team-grid-page { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.team-empty { color: var(--muted); text-align: center; padding: 48px 0; margin: 0; font-size: 1.1rem; }
.member-card p { color: var(--muted); margin: 0; font-size: .95rem; line-height: 1.7; }

/* Values / cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards.cols-4 { grid-template-columns: repeat(4, 1fr); } .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); padding: 32px 28px; border-radius: var(--radius); transition: border-color .3s, transform .3s var(--ease); }
.card:hover { border-color: var(--red); transform: translateY(-4px); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 50%; background: var(--red); margin-bottom: 22px; display: grid; place-items: center; }
.card .icon::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; }

/* CTA */
.cta { text-align: center; padding-block: clamp(80px, 12vw, 160px); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(204, 17, 26, .28), transparent 65%); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(2rem, 5.5vw, 4.4rem); margin-bottom: 20px; }
.cta p { color: var(--muted); margin: 0 auto 40px; max-width: 520px; }

/* Project page */
.project-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
@media (min-width: 1024px) { .project-meta { grid-template-columns: repeat(4, 1fr); } }
.project-meta dt { color: var(--muted); font-size: .82rem; margin-bottom: 4px; }
.project-meta dd { margin: 0; font-weight: 500; }
.project-cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; border-radius: var(--radius); }
.project-cover .ph, .gallery .ph { position: absolute; inset: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #d0d0d6; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery > div { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.next-project { display: block; text-align: center; padding-block: 80px; border-top: 1px solid var(--line); }
.next-project small { color: var(--muted); display: block; margin-bottom: 12px; }
.next-project strong { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 3.6rem); transition: color .3s; }
.next-project:hover strong { color: var(--red); }

/* Jobs */
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.jobs li { border-bottom: 1px solid var(--line); }
.jobs a { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; padding: 28px 0; transition: padding .3s var(--ease); }
.jobs a:hover { padding-inline-start: 16px; }
.jobs h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; }
.jobs span { color: var(--muted); font-size: .9rem; grid-column: 1; }
.jobs .arrow-wrap { grid-row: 1 / span 2; grid-column: 2; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: .3s; }
.jobs a:hover .arrow-wrap { background: var(--red); border-color: var(--red); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 96px; } }
.contact-info dl { margin: 0; display: grid; gap: 28px; }
.contact-info dt { color: var(--muted); font-size: .85rem; margin-bottom: 4px; }
.contact-info dd { margin: 0; font-size: 1.1rem; }
.contact-info a:hover { color: var(--red); }
.form { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: #fff; font: inherit; font-size: 16px;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, .25); padding: 10px 0; border-radius: 0; transition: border-color .2s;
}
.field select option { background: var(--surface); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }

/* Social */
.social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.social a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: .25s; }
.social a:hover { background: var(--red); border-color: var(--red); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* Video lightbox */
.no-scroll { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 56px 16px 24px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-inner { width: min(1100px, 100%); }
.lightbox video { width: 100%; max-height: 78vh; background: #000; border-radius: var(--radius); display: block; }
.lightbox iframe { width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; border: 0; background: #000; border-radius: var(--radius); display: block; }
.play.is-image::before { border: 0; width: 18px; height: 14px; margin: 0; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M2 0h20a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm1 15h18l-6-8-4.5 6-3-4L3 15z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M2 0h20a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm1 15h18l-6-8-4.5 6-3-4L3 15z'/%3E%3C/svg%3E") center / contain no-repeat; }
.album-count { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(0, 0, 0, .7); border-radius: 999px; padding: 2px 10px 2px 26px; font-size: .78rem; font-family: var(--font-display); }
.album-count::before { content: ""; position: absolute; inset-inline-start: 9px; top: 50%; width: 11px; height: 11px; margin-top: -6px; border: 1.5px solid #fff; border-radius: 2px; box-shadow: 3px -3px 0 -1.5px #fff; }
.lb-gallery { position: relative; outline: none; }
.lb-gallery img { width: 100%; max-height: 78vh; object-fit: contain; background: #000; border-radius: var(--radius); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .55); cursor: pointer; }
.lb-nav::before { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; }
.lb-nav:hover { background: var(--red); border-color: var(--red); }
.lb-prev { left: 12px; } .lb-prev::before { transform: translateX(2px) rotate(135deg); }
.lb-next { right: 12px; } .lb-next::before { transform: translateX(-2px) rotate(-45deg); }
.lb-count { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, .65); border-radius: 999px; padding: 2px 12px; font-size: .82rem; direction: ltr; }
.lightbox h3 { margin-top: 14px; font-size: 1.1rem; font-weight: 500; }
.lightbox-close { position: absolute; top: 12px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: var(--red); border-color: var(--red); }

/* =========================================================
   Agency layout: hero, manifesto, stats, capabilities, rail,
   approach, tiles, CTA band, footer
   ========================================================= */
.btn-sm { padding: 9px 20px; font-size: .9rem; }
.eyebrow.light { color: rgba(255, 255, 255, .8); }
.section-lead { color: var(--muted); max-width: 440px; margin: 0; }

/* Hero */
.hero-xl {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden;
  padding-block: calc(var(--header-h) + 48px) clamp(56px, 8vw, 96px); isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background: #070708; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.hero-video.is-ready { opacity: .55; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 78% 35%, rgba(204, 17, 26, .55), transparent 70%),
    radial-gradient(40% 50% at 15% 90%, rgba(204, 17, 26, .25), transparent 70%),
    linear-gradient(180deg, rgba(7, 7, 8, .2) 0%, rgba(7, 7, 8, .1) 50%, var(--bg) 100%);
  animation: glow 14s ease-in-out infinite alternate;
}
[dir="rtl"] .hero-glow { transform: scaleX(-1); }
@keyframes glow { to { filter: hue-rotate(-8deg) brightness(1.15); background-position: 0 30px; } }
.hero-lens { position: absolute; width: min(95vw, 900px); aspect-ratio: 1; inset-inline-end: -12%; top: 50%; transform: translateY(-55%); }
.hero-lens span { position: absolute; border-radius: 50%; inset: 0; border: 1px solid rgba(255, 255, 255, .07); }
.hero-lens span:nth-child(2) { inset: 12%; border: 1px dashed rgba(255, 255, 255, .18); animation: spin 80s linear infinite; }
.hero-lens span:nth-child(3) { inset: 26%; border-color: rgba(204, 17, 26, .6); animation: spin 50s linear infinite reverse; border-style: dotted; border-width: 2px; }
.hero-lens span:nth-child(4) { inset: 40%; background: radial-gradient(circle at 40% 35%, #ff3b44, var(--red) 40%, #5a060a 75%); box-shadow: 0 0 160px 40px rgba(204, 17, 26, .45); border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-grain {
  position: absolute; inset: 0; opacity: .12; 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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-xl-inner { position: relative; }
.mega { font-size: clamp(2.2rem, 7.6vw, 6.8rem); line-height: 1.02; letter-spacing: -.01em; margin-bottom: clamp(32px, 5vw, 56px); }
.mega .line { display: block; overflow: hidden; padding-bottom: .08em; }
.mega .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.mega .line:nth-child(2) > span { animation-delay: .12s; }
.mega .line:nth-child(3) > span { animation-delay: .24s; }
.mega .accent { color: var(--red); }
@keyframes rise { to { transform: none; } }
.no-js .mega .line > span { transform: none; animation: none; }
.hero-xl-foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 28px;
  opacity: 0; animation: fade 1s .6s var(--ease) forwards;
}
.no-js .hero-xl-foot { opacity: 1; animation: none; }
@keyframes fade { to { opacity: 1; } }
.hero-xl-foot p { margin: 0; max-width: 560px; color: #d9d9de; font-size: clamp(1rem, 1.3vw, 1.2rem); }
.reel-btn { display: inline-flex; align-items: center; gap: 16px; background: none; border: 0; cursor: pointer; font-weight: 500; font-size: 1rem; padding: 0; }
.reel-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: grid; place-items: center; position: relative; transition: transform .4s var(--ease); }
.reel-circle::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(204, 17, 26, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.reel-tri { border-left: 14px solid #fff; border-block: 9px solid transparent; margin-left: 4px; }
.reel-btn:hover .reel-circle { transform: scale(1.1); }
.scroll-down { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 20px; display: none; }
.scroll-down span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 1024px) and (min-height: 760px) { .scroll-down { display: block; } }

/* Manifesto */
.manifesto {
  font-family: var(--font-display); font-weight: 500; line-height: 1.45; margin: 0 0 48px;
  font-size: clamp(1.5rem, 3.6vw, 3.2rem); max-width: 30ch;
  --p: 0%;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, #fff calc(var(--p) - 8%), rgba(255, 255, 255, .16) calc(var(--p) + 8%));
}
.no-js .manifesto { color: #fff; }
.manifesto-body { display: grid; gap: 24px; max-width: 1100px; margin-bottom: 40px; }
.manifesto-body p { margin: 0; color: #c9c9cf; font-size: clamp(1rem, 1.25vw, 1.15rem); }
@media (min-width: 1024px) { .manifesto-body { grid-template-columns: 1fr 1fr; gap: 64px; } }
.manifesto-close {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.8rem); line-height: 1.5;
  margin: 0 0 48px; padding-inline-start: 20px; border-inline-start: 3px solid var(--red); max-width: 40ch;
}
html[lang="en"] .manifesto-close { font-size: clamp(1.05rem, 1.9vw, 1.5rem); }

/* Stats */
.stats-band { border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: clamp(28px, 4vw, 56px) clamp(8px, 2vw, 32px); display: grid; gap: 6px; border-inline-start: 1px solid var(--line); }
.stat:nth-child(odd) { border-inline-start: 0; }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat strong { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; color: #fff; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.stat > span { color: var(--muted); font-size: .95rem; }
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(odd) { border-inline-start: 1px solid var(--line); }
  .stat:first-child { border-inline-start: 0; }
  .stat:nth-child(-n+2) { border-bottom: 0; }
}

/* Capabilities */
.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cap { border-bottom: 1px solid var(--line); }
.cap a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px clamp(16px, 3vw, 40px);
  padding: clamp(20px, 2.6vw, 34px) clamp(4px, 1vw, 16px); position: relative; overflow: hidden; isolation: isolate;
}
.cap a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.cap a:hover::before, .cap a:focus-visible::before { transform: scaleY(1); }
.cap-num { font-family: var(--font-display); color: var(--red); font-size: .9rem; transition: color .3s; }
.cap a:hover .cap-num { color: #fff; }
.cap h3 { min-width: 0; overflow-wrap: break-word; font-size: clamp(1.3rem, 3vw, 2.5rem); font-weight: 700; transition: transform .5s var(--ease); }
.cap a:hover h3 { transform: translateX(10px); }
[dir="rtl"] .cap a:hover h3 { transform: translateX(-10px); }
.cap p { grid-column: 2; margin: 0; color: var(--muted); font-size: .95rem; max-width: 520px; transition: color .3s; }
.cap a:hover p { color: #fff; }
.cap-go { grid-row: 1 / span 2; grid-column: 3; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; }
.cap a:hover .cap-go { background: #fff; color: var(--red); border-color: #fff; }
@media (min-width: 1024px) {
  .cap a { grid-template-columns: 70px 1fr 380px 52px; }
  .cap p { grid-column: 3; grid-row: 1; }
  .cap-go { grid-row: 1; grid-column: 4; }
}

/* Work rail */
.rail-controls { display: flex; gap: 10px; }
.rail-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: none; cursor: pointer; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.rail-btn:hover { background: var(--red); border-color: var(--red); }
.rail-btn:disabled { opacity: .3; cursor: default; background: none; border-color: rgba(255, 255, 255, .25); }
[dir="rtl"] .rail-btn .arrow { transform: scaleX(-1); }
.work-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 560px); gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: none; padding-bottom: 8px;
}
.work-rail::-webkit-scrollbar { display: none; }
.work-rail .work-card { scroll-snap-align: start; }
.work-rail .work-thumb { aspect-ratio: 16 / 10; }
.rail-foot { margin-top: 40px; }

/* Approach */
.approach { display: grid; gap: 48px; }
.approach > * { min-width: 0; }
.approach-head h2 { overflow-wrap: break-word; }
.approach-head h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); margin-bottom: 20px; }
@media (min-width: 1024px) {
  .approach { grid-template-columns: 1fr 1.2fr; gap: 96px; align-items: start; }
  .approach-head { position: sticky; top: calc(var(--header-h) + 40px); }
}
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-num { min-width: 1.9em; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--red); }
.steps h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease); }
.tile:hover { transform: translateY(-6px); }
.tile-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tile-media.ph::after { transition: transform .8s var(--ease); }
.tile:hover .tile-media.ph::after { transform: scale(1.12) rotate(-6deg); }
.tile-body { padding: 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.tile-tag { font-family: var(--font-display); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--red); }
.tile h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.tile p { color: var(--muted); margin: 0 0 12px; }
.tile .link-arrow { justify-self: start; }

/* Location map */
.location-grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
@media (min-width: 1024px) { .location-grid { grid-template-columns: 1.6fr 1fr; } }
.map-frame { position: relative; min-width: 0; height: clamp(300px, 55vw, 460px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.location-info { display: grid; align-content: center; gap: 14px; padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.location-info .btn { justify-self: start; margin-top: 8px; }
.location-pin { width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.location-pin::after { content: ""; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: #fff; transform: rotate(-45deg); }
.location-info h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.location-info > p { color: var(--muted); margin: 0; }
.location-contact { display: grid; gap: 10px; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.location-contact dt { color: var(--muted); font-size: .8rem; }
.location-contact dd { margin: 0; }
.location-contact a:hover { color: var(--red); }

/* CTA band */
.cta-band { background: var(--red); padding-block: clamp(72px, 11vw, 150px); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 70vw; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); inset-inline-end: -20vw; top: -30vw; }
.cta-band::after { content: ""; position: absolute; width: 40vw; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); inset-inline-end: -5vw; top: -10vw; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band .eyebrow::before { background: #fff; }
.cta-big { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 7vw, 6.4rem); line-height: 1.1; }
.cta-big > span:first-child { max-width: 14ch; }
.cta-circle { flex: none; width: clamp(88px, 12vw, 160px); aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font-size: clamp(1.6rem, 3vw, 2.6rem); transition: transform .5s var(--ease); }
.cta-big:hover .cta-circle { transform: rotate(-45deg) scale(1.06); }
[dir="rtl"] .cta-big:hover .cta-circle { transform: rotate(45deg) scale(1.06); }

/* Header extras */
.nav-extra { display: none; }
.site-header .btn-sm:hover { background: transparent; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px) 28px; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: clamp(40px, 6vw, 72px); margin-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.footer-claim { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 3rem); margin: 0; line-height: 1.2; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-logo img { width: 160px; }
.footer-grid p { color: var(--muted); max-width: 320px; margin: 20px 0 0; font-size: .95rem; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .15em; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.footer-grid h4.mt { margin-top: 32px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid ul.social { display: flex; }
.footer-grid ul a:hover { color: var(--red); }
.footer-word { display: block; width: 100%; height: auto; margin-top: clamp(48px, 8vw, 96px); overflow: visible; }
.footer-word text {
  font-family: "Miedinger", sans-serif; font-weight: 700; font-size: 122px;
  fill: transparent; stroke: rgba(255, 255, 255, .22); stroke-width: 1; vector-effect: non-scaling-stroke;
  transition: fill .6s, stroke .6s;
}
.footer-word:hover text { fill: var(--red); stroke: var(--red); }
.footer-bottom { margin-top: clamp(32px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .85rem; }
.to-top:hover { color: #fff; }

/* ---------- English: Miedinger is an extended face, so scale headings down ---------- */
html[lang="en"] h1, html[lang="en"] h2 { overflow-wrap: break-word; }
html[lang="en"] .page-hero h1 { font-size: clamp(1.7rem, 7vw, 4.2rem); max-width: 20ch; }
html[lang="en"] .section-head h2 { font-size: clamp(1.35rem, 5.4vw, 2.8rem); }
html[lang="en"] .cta h2 { font-size: clamp(1.5rem, 6.6vw, 3.8rem); }
html[lang="en"] .mega { font-size: clamp(1.8rem, 6.2vw, 5.8rem); }
html[lang="en"] .manifesto { font-size: clamp(1.3rem, 3vw, 2.7rem); }
html[lang="en"] .cap h3 { font-size: clamp(1.1rem, 2.6vw, 2.1rem); }
html[lang="en"] .approach-head h2 { font-size: clamp(1.35rem, 5.4vw, 2.8rem); }
html[lang="en"] .cta-big { font-size: clamp(1.8rem, 5.8vw, 5.2rem); }
html[lang="en"] .footer-claim { font-size: clamp(1.3rem, 3.4vw, 2.6rem); }
html[lang="en"] .statement { font-size: clamp(1.2rem, 2.8vw, 2.2rem); }
html[lang="en"] .main-nav a { letter-spacing: .02em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Tablet & phone navigation ---------- */
@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .logo img { height: 28px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 55; background: var(--bg);
    display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .main-nav::after { content: ""; position: absolute; width: 70vw; aspect-ratio: 1; border-radius: 50%; inset-inline-end: -25vw; bottom: -20vw; background: radial-gradient(circle, rgba(204, 17, 26, .35), transparent 65%); pointer-events: none; }
  .menu-open .main-nav { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 8px; }
  .main-nav a { font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3rem); font-weight: 700; display: inline-block; }
  .main-nav a[aria-current="page"] { color: var(--red); }
  .main-nav a::after { display: none; }
  .menu-open { overflow: hidden; }
  .header-actions { position: relative; z-index: 60; }
  .main-nav .nav-extra { display: grid; gap: 6px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
  .main-nav .nav-extra a { font-family: var(--font-body); font-size: 1rem; font-weight: 300; justify-self: start; }
}
@media (max-width: 639px) { .header-cta { display: none; } }

@media (max-width: 639px) {
  .work-meta { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
