@font-face {
  font-family: "Inter Display";
  src: url("/assets/fonts/InterDisplay-Black-v4.001.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Regular-v4.001.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("/assets/fonts/NotoKufiArabic-wght-v2.102.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --red: #e60000;
  --red-dark: #a90000;
  --off-white: #faf7f4;
  --white: #fffdfb;
  --charcoal: #2e2e2e;
  --muted: #6f6a66;
  --line: rgba(46, 46, 46, 0.2);
  --line-light: rgba(250, 247, 244, 0.22);
  --page: min(1440px, calc(100vw - 2 * clamp(1.25rem, 4vw, 4.75rem)));
  --gutter: max(clamp(1.25rem, 4vw, 4.75rem), calc((100vw - 1440px) / 2));
  color: var(--charcoal);
  background: var(--off-white);
  font-family: "Inter", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--off-white); }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; background: var(--off-white); color: var(--charcoal); }
body:has(dialog[open]) { overflow: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a, button { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 200; left: 1rem; top: 1rem; padding: 0.8rem 1rem; transform: translateY(-180%); background: var(--charcoal); color: var(--off-white); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.section-shell { width: var(--page); margin-inline: auto; }

.site-header { position: sticky; z-index: 40; top: 0; width: 100%; min-height: 90px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: rgba(250, 247, 244, 0.97); }
.brand { min-height: 48px; display: inline-flex; align-items: center; }
.brand img { width: clamp(160px, 13vw, 222px); height: auto; }
.site-navigation { display: flex; align-items: center; gap: clamp(1.15rem, 2.1vw, 2.5rem); font-size: 0.88rem; }
.site-navigation a { position: relative; min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; }
.site-navigation a::after, .text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; transform: scaleX(0); transform-origin: right; background: currentColor; transition: transform 180ms ease; }
.site-navigation a:hover::after, .site-navigation a:focus-visible::after, .text-link:hover::after, .text-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-aiman { min-height: 46px; border: 1px solid var(--charcoal); padding: 0 1rem; background: transparent; cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.nav-aiman:hover, .nav-aiman:focus-visible { background: var(--charcoal); color: var(--off-white); }
.menu-toggle { display: none; }

.hero { position: relative; min-height: min(850px, calc(100svh - 90px)); display: grid; align-items: center; overflow: clip; border-bottom: 1px solid var(--line); background: var(--off-white); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { position: relative; z-index: 2; width: min(760px, 58vw); margin-left: var(--gutter); padding: 4rem 0 7.5rem; }
.eyebrow, .section-kicker { margin: 0; font-size: 0.68rem; line-height: 1.4; letter-spacing: 0.22em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 0.8rem; margin-bottom: clamp(2rem, 4vh, 3.5rem); }
.eyebrow span { width: 8px; height: 8px; flex: 0 0 8px; background: var(--red); }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { font-family: "Inter Display", Arial, sans-serif; font-weight: 900; }
h1 { margin: 0; font-size: clamp(4rem, 7.1vw, 7.8rem); line-height: 0.9; letter-spacing: -0.05em; }
h1 span, h1 strong { display: block; }
h1 strong { margin-top: 0.24em; color: var(--red); }
.hero-support { max-width: 35rem; margin: clamp(2rem, 4.3vh, 3.8rem) 0 0; font-size: clamp(1.08rem, 1.45vw, 1.42rem); line-height: 1.45; }
.hero-actions, .aiman-actions, .contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2rem; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; border: 1px solid transparent; padding: 0.2rem 1.35rem; background: transparent; font-size: 0.9rem; text-decoration: none; cursor: pointer; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.button-primary { border-color: var(--red); background: var(--red); color: var(--off-white); }
.button-primary:hover, .button-primary:focus-visible { border-color: var(--charcoal); background: var(--charcoal); }
.button-quiet { border-color: var(--charcoal); background: var(--off-white); }
.button-quiet:hover, .button-quiet:focus-visible, .button-charcoal { background: var(--charcoal); color: var(--off-white); }
.button-charcoal:hover, .button-charcoal:focus-visible { border-color: var(--red); background: var(--red); }
.button-light { background: var(--off-white); color: var(--charcoal); }
.button-light:hover, .button-light:focus-visible { background: var(--red); color: var(--off-white); }
.button-outline-light { border-color: rgba(250, 247, 244, 0.72); color: var(--off-white); }
.button-outline-light:hover, .button-outline-light:focus-visible { background: var(--off-white); color: var(--charcoal); }
.hero-caption { position: absolute; z-index: 2; left: var(--gutter); bottom: 2.1rem; margin: 0; font-size: 0.66rem; letter-spacing: 0.2em; }
.hero-caption b { padding: 0 0.5rem; color: var(--red); }

.client-rail { width: var(--page); margin-inline: auto; overflow: hidden; padding: 5rem 0 4.25rem; border-bottom: 1px solid var(--line); }
.client-marquee {
  --logo-gap: clamp(2.5rem, 5vw, 5.5rem);
  position: relative;
  margin-top: 2.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--charcoal) 7%, var(--charcoal) 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--charcoal) 7%, var(--charcoal) 93%, transparent);
}
.client-track { width: max-content; display: flex; animation: client-marquee 34s linear infinite; will-change: transform; }
.client-logo-set { display: flex; align-items: center; gap: var(--logo-gap); padding-inline-end: var(--logo-gap); }
.client-logo { width: clamp(150px, 15vw, 215px); height: 92px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.client-logo--square { width: clamp(104px, 10vw, 138px); }
.client-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 58px; object-fit: contain; filter: grayscale(1) contrast(1.04); opacity: 0.72; mix-blend-mode: multiply; transition: opacity 180ms ease; }
.client-logo--square img { max-height: 68px; }
.client-marquee:hover .client-track { animation-play-state: paused; }
.client-marquee:hover .client-logo img { opacity: 0.9; }
.client-rail > p { margin: 1.6rem 0 0; color: var(--muted); font-size: 0.76rem; }

@keyframes client-marquee {
  to { transform: translateX(-50%); }
}

.capabilities, .insights { padding-block: clamp(7rem, 12vw, 12rem); }
.section-heading { display: grid; grid-template-columns: 0.72fr 1.7fr 0.9fr; gap: 2rem; align-items: start; }
.section-heading h2, .work h2, .approach h2, .aiman-section h2, .company h2, .contact h2, .subpage-hero h1, .article-hero h1 { margin: 0; font-size: clamp(2.8rem, 5.2vw, 5.8rem); line-height: 0.92; letter-spacing: -0.057em; }
.section-heading > p:last-child { max-width: 28rem; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.capability-list { margin-top: clamp(5rem, 8vw, 8rem); border-top: 1px solid var(--charcoal); }
.capability-row { min-height: 190px; display: grid; grid-template-columns: 0.55fr 1.2fr 1.1fr; gap: 2rem; align-items: center; border-bottom: 1px solid var(--line); }
.capability-row > span { align-self: start; margin-top: 2.15rem; color: var(--red); font-size: 0.72rem; letter-spacing: 0.16em; }
.capability-row h3 { margin: 0; font-size: clamp(1.9rem, 3vw, 3.35rem); line-height: 1; letter-spacing: -0.04em; }
.capability-row p { max-width: 34rem; margin: 0; color: var(--muted); line-height: 1.65; }

.approach { padding-block: clamp(7rem, 10vw, 10rem); background: var(--charcoal); color: var(--off-white); }
.section-kicker-light { color: rgba(250, 247, 244, 0.82); }
.approach-intro { display: grid; grid-template-columns: 0.72fr 1.7fr 0.9fr; gap: 2rem; }
.approach-intro > p:last-child { max-width: 29rem; margin: 0; color: rgba(250, 247, 244, 0.68); line-height: 1.65; }
.approach-steps { margin-top: clamp(5rem, 8vw, 8rem); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 1px solid var(--line-light); }
.approach-steps li { min-height: 310px; padding: 2rem 2.4rem 1rem 0; border-right: 1px solid var(--line-light); }
.approach-steps li + li { padding-left: 2.4rem; }
.approach-steps li:last-child { border-right: 0; }
.approach-steps span { color: var(--off-white); font-size: 0.72rem; letter-spacing: 0.16em; }
.approach-steps h3 { margin: 5.5rem 0 1.2rem; font-size: clamp(1.65rem, 2.4vw, 2.7rem); letter-spacing: -0.04em; }
.approach-steps p { max-width: 27rem; margin: 0; color: rgba(250, 247, 244, 0.67); line-height: 1.65; }

.work { padding-block: clamp(6rem, 8vw, 8rem); display: grid; grid-template-columns: 1.25fr 0.95fr; gap: clamp(3rem, 7vw, 8rem); align-items: end; }
.work .section-kicker { margin-bottom: 3rem; }
.work-statement p { margin: 0 0 2.2rem; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.work-names { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 2rem; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.work-names li { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 0.78rem; }
.text-link { position: relative; display: inline-flex; gap: 0.7rem; align-items: center; min-height: 44px; text-decoration: none; }

.aiman-section { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); background: var(--charcoal); color: var(--off-white); }
.aiman-visual { min-height: 680px; display: grid; place-items: center; overflow: hidden; background: var(--off-white); perspective: 1000px; }
.aiman-avatar { --aiman-look-x: 0px; --aiman-look-y: 0px; --aiman-rotate-x: 0deg; --aiman-rotate-y: 0deg; position: relative; isolation: isolate; transform-style: preserve-3d; }
.aiman-avatar-large { width: min(92%, 720px); aspect-ratio: 1; }
.aiman-avatar-stage { position: relative; z-index: 2; display: block; transform: translate3d(var(--aiman-look-x), var(--aiman-look-y), 0) rotateX(var(--aiman-rotate-x)) rotateY(var(--aiman-rotate-y)); transform-style: preserve-3d; transition: transform 90ms linear; }
.aiman-avatar-stage img { width: 100%; height: 100%; display: block; object-fit: cover; animation: aiman-idle-float 4s ease-in-out infinite; }
.aiman-avatar-glint { position: absolute; z-index: 3; left: 51%; top: 39%; width: 22%; height: 18%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(250, 247, 244, 0.2), transparent 66%); mix-blend-mode: screen; pointer-events: none; transform: translate3d(var(--aiman-look-x), var(--aiman-look-y), 1px); }
.aiman-avatar-shadow { position: absolute; z-index: 1; left: 24%; right: 24%; bottom: 7%; height: 7%; border-radius: 50%; background: rgba(46, 46, 46, 0.17); filter: blur(15px); transform: translateX(var(--aiman-look-x)); }
@keyframes aiman-idle-float { 0%, 100% { transform: translateY(-0.5%); } 50% { transform: translateY(0.5%); } }
.aiman-copy { max-width: 700px; align-self: center; padding: clamp(4rem, 8vw, 9rem); }
.aiman-copy .section-kicker { margin-bottom: 3rem; }
.aiman-copy > p:not(.section-kicker) { max-width: 35rem; margin: 2.4rem 0 0; color: rgba(250, 247, 244, 0.72); font-size: 1.1rem; line-height: 1.65; }
.aiman-copy small { display: block; max-width: 36rem; margin-top: 2rem; color: rgba(250, 247, 244, 0.78); font-size: 0.8rem; line-height: 1.55; }

.insights .section-heading { grid-template-columns: 0.72fr 1.7fr; }
.article-list { margin-top: clamp(5rem, 8vw, 8rem); border-top: 1px solid var(--charcoal); }
.article-row { position: relative; min-height: 230px; display: grid; grid-template-columns: 0.7fr 1.8fr 80px; gap: 2rem; align-items: center; border-bottom: 1px solid var(--line); }
.article-row > p { display: grid; gap: 0.45rem; margin: 0; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.article-row h2, .article-row h3 { max-width: 850px; margin: 0; font-size: clamp(1.8rem, 3vw, 3.4rem); line-height: 1.04; letter-spacing: -0.045em; }
.article-row h2 a, .article-row h3 a, .article-arrow { text-decoration: none; }
.article-arrow { width: 54px; height: 54px; display: grid; place-items: center; justify-self: end; border: 1px solid var(--charcoal); border-radius: 50%; font-size: 1.4rem; transition: background 160ms ease, color 160ms ease; }
.article-row:hover .article-arrow, .article-arrow:focus-visible { background: var(--red); border-color: var(--red); color: var(--off-white); }
.article-row--with-image { grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr) 80px; padding-block: 2rem; }
.article-thumb { display: block; overflow: hidden; background: var(--white); }
.article-thumb img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 320ms ease; }
.article-row--with-image:hover .article-thumb img { transform: scale(1.018); }
.article-row-copy { align-self: center; }
.article-row-copy > p:first-child { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin: 0 0 1.25rem; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.article-row--with-image h2 { font-size: clamp(1.8rem, 2.8vw, 3.1rem); }
.article-summary { max-width: 42rem; margin: 1rem 0 0; color: var(--muted); line-height: 1.6; }
.insights-all { margin-top: 2.5rem; }

.company { min-height: 780px; display: flex; align-items: center; background: linear-gradient(110deg, rgba(46, 46, 46, 0.98) 0%, rgba(46, 46, 46, 0.9) 58%, rgba(46, 46, 46, 0.74) 100%), url("/assets/MAJLS_hero_campaign_v1.webp") center / cover; color: var(--off-white); }
.company-copy { display: grid; grid-template-columns: 0.72fr 1.7fr 0.9fr; gap: 2rem; align-items: start; }
.company-copy > p:last-child { margin: 0; color: rgba(250, 247, 244, 0.72); line-height: 1.7; }
.contact { padding-block: clamp(7rem, 11vw, 11rem); }
.contact h2 { max-width: 1050px; margin-top: 3rem; }
.contact > p:not(.section-kicker) { max-width: 38rem; margin: 2.2rem 0 0; color: var(--muted); font-size: 1.15rem; line-height: 1.65; }

.site-footer { padding-block: 4rem 2rem; display: grid; grid-template-columns: 1.2fr 1fr 0.7fr; gap: 2rem; border-top: 1px solid var(--line); font-size: 0.8rem; }
.footer-brand img { width: 170px; height: auto; }
.site-footer > p { margin: 0; color: var(--muted); line-height: 1.7; }
.site-footer nav { display: grid; justify-items: start; gap: 0.7rem; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.site-footer .copyright { grid-column: 1 / -1; margin-top: 3rem; }

.aiman-float { position: fixed; z-index: 60; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto 112px; gap: 0.45rem; align-items: center; border: 0; padding: 0; background: transparent; color: var(--charcoal); cursor: pointer; filter: drop-shadow(0 18px 18px rgba(46, 46, 46, 0.18)); transition: transform 180ms ease, opacity 180ms ease; }
.aiman-float:hover, .aiman-float:focus-visible { transform: translateY(-5px); }
.aiman-float:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
.aiman-float-prompt { position: relative; min-width: 104px; border: 1px solid var(--charcoal); border-top: 4px solid var(--red); padding: 0.72rem 0.85rem 0.68rem; background: var(--off-white); font-family: "Inter Display", Arial, sans-serif; font-size: 0.82rem; font-weight: 900; letter-spacing: -0.02em; text-align: left; box-shadow: 0 12px 32px rgba(46, 46, 46, 0.13); }
.aiman-float-prompt::after { content: ""; position: absolute; top: 50%; right: -9px; width: 15px; height: 15px; border-top: 1px solid var(--charcoal); border-right: 1px solid var(--charcoal); background: var(--off-white); transform: translateY(-50%) rotate(45deg); }
.aiman-float-avatar { --aiman-look-x: 0px; --aiman-look-y: 0px; --aiman-rotate-x: 0deg; --aiman-rotate-y: 0deg; position: relative; z-index: 2; width: 112px; height: 112px; display: block; perspective: 500px; }
.aiman-float-avatar .aiman-avatar-stage, .aiman-float-avatar .aiman-avatar-stage img { width: 100%; height: 100%; }
.aiman-float-avatar .aiman-avatar-stage img { object-fit: contain; filter: drop-shadow(0 12px 8px rgba(46, 46, 46, 0.2)); }
body:has(.aiman-dialog[open]) .aiman-float { opacity: 0; pointer-events: none; transform: translateY(12px); }

.aiman-dialog { width: min(650px, calc(100vw - 2rem)); height: min(790px, calc(100svh - 2rem)); max-height: calc(100svh - 2rem); margin: auto 1rem 1rem auto; overflow: hidden; border: 0; padding: 0; background: var(--off-white); color: var(--charcoal); box-shadow: 0 34px 100px rgba(46, 46, 46, 0.32); }
.aiman-dialog::before { content: ""; position: absolute; z-index: 4; inset: 0 auto 0 0; width: 8px; background: var(--red); pointer-events: none; }
.aiman-dialog[open] { display: flex; flex-direction: column; }
.aiman-dialog::backdrop { background: rgba(46, 46, 46, 0.56); backdrop-filter: blur(4px); }
.aiman-dialog-head { position: relative; z-index: 2; min-height: 126px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.5rem 0.9rem 2rem; background: var(--charcoal); color: var(--off-white); }
.aiman-dialog-identity { min-width: 0; display: flex; align-items: center; gap: 1rem; }
.aiman-dialog-avatar { --aiman-look-x: 0px; --aiman-look-y: 0px; --aiman-rotate-x: 0deg; --aiman-rotate-y: 0deg; width: 104px; height: 104px; flex: 0 0 104px; display: block; perspective: 300px; }
.aiman-dialog-avatar .aiman-avatar-stage, .aiman-dialog-avatar img { width: 100%; height: 100%; }
.aiman-dialog-avatar img { object-fit: contain; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.28)); }
.aiman-dialog-head p { display: grid; gap: 0.25rem; margin: 0; }
.aiman-dialog-head p span { color: rgba(250, 247, 244, 0.68); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.aiman-dialog-head strong { font-family: "Inter Display", Arial, sans-serif; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 0.9; letter-spacing: -0.055em; }
.dialog-close { min-width: 72px; min-height: 48px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.55rem; border: 0; padding: 0; background: transparent; color: var(--off-white); cursor: pointer; }
.dialog-close span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.dialog-close b { font-family: Arial, sans-serif; font-size: 2rem; font-weight: 400; line-height: 1; }
.dialog-close:focus-visible { outline: 2px solid var(--off-white); outline-offset: 4px; }
.aiman-dialog-intro { flex: 0 0 auto; display: grid; grid-template-columns: 0.65fr 1.35fr; align-items: end; gap: 1rem; border-bottom: 1px solid var(--charcoal); padding: 1.35rem 2rem 1.5rem; background: var(--off-white); }
.aiman-dialog-intro span { color: var(--red-dark); font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; }
.aiman-dialog-intro p { margin: 0; font-family: "Inter Display", Arial, sans-serif; font-size: clamp(1.75rem, 4vw, 2.55rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.05em; }
.aiman-chat-log { min-height: 160px; flex: 1 1 auto; display: flex; flex-direction: column; gap: 1.1rem; overflow-y: auto; padding: 1.5rem 2rem; background: var(--off-white); scroll-behavior: smooth; }
.chat-message { max-width: 88%; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message p { margin: 0; }
.chat-message-label { display: block; margin-bottom: 0.48rem; color: var(--red-dark); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; }
.chat-message-assistant { align-self: flex-start; border-top: 1px solid var(--charcoal); padding: 0.75rem 0 0; background: transparent; font-size: 1.02rem; }
.chat-message-user { align-self: flex-end; border-left: 5px solid var(--red); padding: 0.9rem 1rem; background: var(--charcoal); color: var(--off-white); }
.chat-message-user .chat-message-label { color: rgba(250, 247, 244, 0.62); }
.aiman-chat-status { min-height: 1.75rem; flex: 0 0 auto; margin: 0; padding: 0.28rem 2rem; color: var(--red-dark); font-size: 0.72rem; }
.aiman-request { flex: 0 0 auto; border-top: 1px solid var(--charcoal); padding: 1.05rem 2rem 1.15rem; background: var(--white); }
.aiman-request label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.aiman-request label span { font-family: "Inter Display", Arial, sans-serif; font-size: 0.9rem; font-weight: 900; }
.aiman-request label small { color: var(--muted); font-size: 0.68rem; }
.aiman-request-shell { display: grid; grid-template-columns: 1fr 118px; border: 1px solid var(--charcoal); background: var(--off-white); }
.aiman-request textarea { min-width: 0; max-height: 120px; resize: none; border: 0; padding: 0.95rem 1rem; background: transparent; color: var(--charcoal); outline: 0; }
.aiman-request textarea:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }
.aiman-request textarea::placeholder { color: #776f6b; }
.aiman-request button { min-width: 118px; display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; border: 0; padding: 0.8rem 1rem; background: var(--red); color: var(--off-white); cursor: pointer; }
.aiman-request button b { font-size: 1.3rem; font-weight: 400; }
.aiman-request button:disabled { cursor: wait; opacity: 0.58; }
.aiman-request > p { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.66rem; line-height: 1.45; }
.aiman-request > p a { color: inherit; }

.reveal { opacity: 1; transform: none; }

.subpage-header { position: relative; }
.subpage-main { min-height: 70vh; }
.subpage-hero, .article-hero { width: var(--page); margin-inline: auto; padding: clamp(6rem, 10vw, 10rem) 0 clamp(4rem, 7vw, 7rem); border-bottom: 1px solid var(--line); }
.subpage-hero .section-kicker, .article-hero .section-kicker { margin-bottom: 2.5rem; }
.subpage-hero h1, .article-hero h1 { max-width: 1050px; }
.subpage-hero > p:last-child, .article-hero > p:last-child { max-width: 42rem; margin: 2.5rem 0 0; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.insights-index { padding-block: 1rem clamp(7rem, 10vw, 10rem); }
.article-lead-image { width: var(--page); margin: clamp(3rem, 6vw, 6rem) auto 0; }
.article-lead-image picture, .article-lead-image img { display: block; width: 100%; }
.article-lead-image img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article-lead-image figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.article-page { width: min(820px, calc(100vw - 2 * clamp(1.25rem, 4vw, 4.75rem))); margin-inline: auto; padding-block: clamp(4rem, 7vw, 7rem) clamp(7rem, 10vw, 10rem); }
.article-page .article-intro { color: var(--charcoal); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.65; }
.article-tool { margin: 2.5rem 0; border-top: 3px solid var(--red); border-bottom: 1px solid var(--line); padding: 1.5rem; background: var(--white); }
.article-tool h3 { margin: 0 0 1rem; font-size: 1.35rem; letter-spacing: -0.025em; }
.article-tool ul, .article-tool ol { margin: 0; }
.article-tool li + li { margin-top: 0.35rem; }
.article-page h2 { margin: 3.5rem 0 1rem; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.1; letter-spacing: -0.04em; }
.article-page h3 { margin: 2.4rem 0 0.8rem; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.025em; }
.article-page sup a { display: inline-block; margin-inline-start: 0.15rem; color: var(--red-dark); font-size: 0.72rem; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.article-sources { margin-top: 4rem; border-top: 1px solid var(--charcoal); padding-top: 1.5rem; }
.article-sources h2 { margin: 0 0 1rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.article-sources li { font-size: 0.9rem; line-height: 1.6; }
.article-sources a { overflow-wrap: anywhere; }
.article-page p, .article-page li { color: #4e4a47; font-size: 1.08rem; line-height: 1.85; }
.article-page ul, .article-page ol { padding-left: 1.4rem; }
.article-meta { display: flex; gap: 1rem; margin-top: 2rem; color: var(--muted); font-size: 0.78rem; }
.privacy-copy { width: min(860px, calc(100vw - 2 * clamp(1.25rem, 4vw, 4.75rem))); margin-inline: auto; padding-block: clamp(4rem, 7vw, 7rem) clamp(7rem, 10vw, 10rem); }
.privacy-copy h2 { margin: 3rem 0 1rem; font-size: 1.7rem; }
.privacy-copy p, .privacy-copy li { color: #4e4a47; line-height: 1.75; }

.consent-banner { position: fixed; z-index: 100; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); width: min(920px, calc(100vw - 2rem)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; transform: translateX(-50%); border: 1px solid var(--charcoal); padding: 1.35rem; background: var(--off-white); box-shadow: 0 24px 70px rgba(46, 46, 46, 0.24); }
.consent-banner strong { font-family: "Inter Display", Arial, sans-serif; }
.consent-banner p { max-width: 42rem; margin: 0.45rem 0; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.consent-banner a { font-size: 0.76rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.consent-actions .button { min-height: 48px; white-space: nowrap; }
.consent-manage { position: fixed; z-index: 58; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); min-height: 44px; border: 1px solid var(--charcoal); padding: 0.25rem 0.8rem; background: var(--off-white); color: var(--charcoal); font-size: 0.72rem; cursor: pointer; }
.consent-dialog { width: min(620px, calc(100vw - 2rem)); max-height: calc(100svh - 2rem); margin: auto; border: 0; padding: 0; background: var(--off-white); color: var(--charcoal); box-shadow: 0 28px 80px rgba(46, 46, 46, 0.28); }
.consent-dialog::backdrop { background: rgba(46, 46, 46, 0.52); }
.consent-dialog-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 1.2rem 1.5rem; }
.consent-dialog-head h2 { margin: 0.4rem 0 0; font-size: 1.8rem; }
.consent-dialog-body { padding: 1.5rem; }
.consent-dialog-body > p { color: var(--muted); line-height: 1.65; }
.consent-dialog-body .consent-actions { margin-top: 1.5rem; }

@media (max-width: 1100px) {
  .site-navigation { gap: 1rem; font-size: 0.8rem; }
  .section-heading, .approach-intro, .company-copy { grid-template-columns: 0.55fr 1.45fr; }
  .section-heading > p:last-child, .approach-intro > p:last-child, .company-copy > p:last-child { grid-column: 2; }
  .approach-steps { grid-template-columns: repeat(2, 1fr); }
  .approach-steps li:nth-child(2) { border-right: 0; }
}

@media (min-width: 901px) and (max-height: 720px) {
  .hero { min-height: calc(100svh - 90px); }
  .hero-copy { padding-block: 2rem 3rem; }
  .eyebrow { margin-bottom: 1.25rem; }
  h1 { font-size: clamp(3.6rem, 6vw, 5.4rem); }
  .hero-support { margin-top: 1.35rem; font-size: 1rem; }
  .hero-actions { margin-top: 1rem; }
  .hero-actions .button { min-height: 48px; }
  .hero-caption { bottom: 1rem; }
}

@media (max-width: 900px) {
  .site-header { min-height: 78px; }
  .menu-toggle { position: relative; z-index: 50; width: 50px; height: 50px; display: block; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-toggle i { position: absolute; left: 13px; top: 24px; width: 24px; height: 1px; display: block; background: var(--charcoal); transition: transform 180ms ease; }
  .menu-toggle i:first-of-type { transform: translateY(-4px); }
  .menu-toggle i:last-of-type { transform: translateY(4px); }
  .site-header[data-menu-open="true"] .menu-toggle i:first-of-type { transform: rotate(45deg); }
  .site-header[data-menu-open="true"] .menu-toggle i:last-of-type { transform: rotate(-45deg); }
  .site-navigation { position: fixed; z-index: 35; top: 78px; bottom: 0; left: 0; right: 0; align-content: start; display: grid; gap: 0; overflow-y: auto; padding: 1rem var(--gutter) max(2rem, env(safe-area-inset-bottom)); background: var(--off-white); border-bottom: 1px solid var(--line); }
  .site-navigation a { min-height: 56px; justify-content: flex-start; border: 0; border-bottom: 1px solid var(--line); padding: 0; background: transparent; color: var(--charcoal); }
  .hero { min-height: 900px; align-items: start; }
  .hero-copy { width: min(90%, 720px); padding-top: 5rem; }
  .hero-media img { object-position: 66% center; }
  .section-heading, .approach-intro, .company-copy { grid-template-columns: 1fr; }
  .section-heading > p:last-child, .approach-intro > p:last-child, .company-copy > p:last-child { grid-column: auto; }
  .capability-row { grid-template-columns: 0.25fr 1fr; padding-block: 2rem; }
  .capability-row > span { margin-top: 0.4rem; }
  .capability-row p { grid-column: 2; }
  .approach-steps { grid-template-columns: 1fr; }
  .approach-steps li, .approach-steps li + li { min-height: auto; padding: 2rem 0 3rem; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .approach-steps h3 { margin-top: 3rem; }
  .work, .aiman-section { grid-template-columns: 1fr; }
  .aiman-visual { min-height: 520px; }
  .aiman-copy { max-width: none; padding: var(--gutter); padding-block: 5rem; }
  .article-row { grid-template-columns: 0.6fr 1.4fr 60px; }
  .article-row--with-image { grid-template-columns: minmax(200px, 0.65fr) minmax(0, 1.35fr) 60px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 1.25rem; --page: calc(100vw - 2.5rem); }
  .brand img { width: 150px; }
  .hero { min-height: 920px; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--off-white) 0%, rgba(250, 247, 244, 0.94) 42%, transparent 64%); }
  .hero-copy { z-index: 3; width: var(--page); margin-inline: auto; padding-top: 3.7rem; }
  .hero-media { top: 40%; }
  .hero-media img { object-position: center; }
  h1 { font-size: clamp(3.65rem, 17vw, 5.4rem); }
  .hero-support { max-width: 21rem; font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-caption { z-index: 3; width: auto; left: var(--gutter); right: var(--gutter); padding: 0.5rem 0.65rem; background: rgba(250, 247, 244, 0.9); font-size: 0.6rem; line-height: 1.7; }
  .client-rail { padding-block: 4rem; }
  .client-marquee { --logo-gap: 2.35rem; margin-top: 2rem; }
  .client-logo { width: 150px; height: 78px; }
  .client-logo--square { width: 94px; }
  .client-logo img { max-height: 50px; }
  .client-logo--square img { max-height: 58px; }
  .section-heading h2, .work h2, .approach h2, .aiman-section h2, .company h2, .contact h2, .subpage-hero h1, .article-hero h1 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .section-heading, .approach-intro, .company-copy { gap: 2.4rem; }
  .capability-row { grid-template-columns: 1fr; gap: 1rem; }
  .capability-row p { grid-column: auto; }
  .capability-row h3 { font-size: 2rem; }
  .work { gap: 3.5rem; }
  .aiman-visual { min-height: 390px; }
  .aiman-copy { padding-block: 4.5rem; }
  .aiman-actions, .contact-actions { align-items: stretch; flex-direction: column; }
  .aiman-actions .button, .contact-actions .button { width: 100%; }
  .article-row { min-height: 250px; grid-template-columns: 1fr 50px; gap: 1rem; padding-block: 1.5rem; }
  .article-row > p { grid-column: 1 / -1; }
  .article-row h3 { font-size: 1.8rem; }
  .article-row--with-image { grid-template-columns: minmax(0, 1fr) 50px; padding-block: 1.5rem 2rem; }
  .article-row--with-image .article-thumb { grid-column: 1 / -1; }
  .article-row--with-image .article-row-copy { grid-column: 1; }
  .article-row--with-image .article-arrow { grid-column: 2; grid-row: 2; align-self: end; }
  .company { min-height: 680px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer .copyright { grid-column: auto; }
  .aiman-float { right: max(0.75rem, env(safe-area-inset-right)); bottom: max(0.75rem, env(safe-area-inset-bottom)); grid-template-columns: auto 84px; gap: 0.2rem; }
  .aiman-float-avatar { width: 84px; height: 84px; }
  .aiman-float-prompt { min-width: 88px; padding: 0.58rem 0.7rem 0.55rem; font-size: 0.72rem; }
  .aiman-dialog { inset: auto 0 0; width: 100vw; height: min(760px, 100svh); max-width: none; max-height: 100svh; margin: auto 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .aiman-dialog::before { width: 6px; }
  .aiman-dialog-head { min-height: 108px; padding: 0.65rem 1rem 0.65rem 1.35rem; }
  .aiman-dialog-avatar { width: 82px; height: 82px; flex-basis: 82px; }
  .aiman-dialog-head p span { font-size: 0.58rem; }
  .aiman-dialog-head strong { font-size: 2.35rem; }
  .dialog-close { min-width: 48px; }
  .dialog-close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .aiman-dialog-intro { grid-template-columns: 1fr; gap: 0.45rem; padding: 1rem 1.35rem 1.1rem; }
  .aiman-dialog-intro p { font-size: 1.9rem; }
  .aiman-chat-log { min-height: 0; padding: 1rem; }
  .aiman-chat-status { padding-inline: 1rem; }
  .aiman-request { padding: 0.85rem 1rem 1rem 1.35rem; }
  .aiman-request label { align-items: flex-start; flex-direction: column; gap: 0.15rem; }
  .aiman-request-shell { grid-template-columns: 1fr 78px; }
  .aiman-request button { min-width: 78px; min-height: 54px; justify-content: center; }
  .aiman-request button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .consent-banner { bottom: 0; width: 100vw; grid-template-columns: 1fr; gap: 1rem; border-width: 1px 0 0; padding: 1rem 1.25rem max(1rem, env(safe-area-inset-bottom)); }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-actions .button { width: 100%; padding-inline: 0.7rem; }
  .consent-manage { left: max(0.75rem, env(safe-area-inset-left)); bottom: max(0.75rem, env(safe-area-inset-bottom)); }
  .consent-dialog { width: calc(100vw - 1.5rem); max-height: calc(100svh - 1.5rem); }
}

@media (max-width: 720px) {
  .article-lead-image img { aspect-ratio: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  [data-aiman-avatar] .aiman-avatar-stage { transform: none !important; transition: none !important; }
  [data-aiman-avatar] .aiman-avatar-stage img { animation: none !important; }
  .article-thumb img, .article-row--with-image:hover .article-thumb img { transform: none !important; transition: none !important; }
  .aiman-avatar-glint { display: none; }
  .client-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .client-track { animation: none; will-change: auto; }
  .client-logo-set[aria-hidden="true"] { display: none; }
}
