/* ==========================================================================
   DIWAN CONSULTING · Home page sections (loaded with diwan-shell.css)
   Palette: #01af95 green · #145db1 blue · #022355 navy · black · white
   Headlines: Source Serif 4 (Cambria fallback) · UI and body: Inter (Calibri fallback)
   ========================================================================== */

:root {
  --green: #01af95;
  --blue: #145db1;
  --navy: #022355;
  --ink: #010a1c;
  --black: #000;
  --white: #fff;

  --text: #0b1220;
  --muted: #545f6f;
  --line: #d9dde3;
  --line-soft: #eceef1;
  --bg-soft: #f3f5f8;

  --serif: var(--dv-serif, "Source Serif 4", Cambria, Georgia, serif);
  --sans: var(--dv-sans, "Inter", Calibri, Arial, sans-serif);

  /* Signature gradients */
  --grad-hero:
    radial-gradient(120% 90% at 0% 100%, rgba(1, 175, 149, .42) 0%, rgba(20, 93, 177, .34) 26%, rgba(2, 35, 85, .55) 50%, rgba(1, 10, 28, 0) 78%),
    linear-gradient(180deg, #010814 0%, #01102a 100%);
  --grad-deep:
    radial-gradient(130% 120% at 0% 0%, #0e8c86 0%, #145db1 20%, #0b3a78 36%, #022355 52%, #010d22 72%, #000 100%);
  --grad-band: linear-gradient(100deg, #022355 0%, #0a3a80 55%, #145db1 100%);
  --grad-logo: linear-gradient(135deg, #01af95 0%, #145db1 100%);

  --max: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(.25, .7, .25, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--dv-header-h, 72px) + 12px); }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--navy); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; }
.icon { width: 16px; height: 16px; flex-shrink: 0; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* ---------- Type ---------- */
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.label { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--blue); margin-bottom: 14px; }
.t-xl { font-family: var(--serif); font-size: clamp(32px, 4vw, 56px); line-height: 1.1; letter-spacing: -0.01em; }
.t-lg { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.16; }
.t-md { font-family: var(--serif); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.25; }
.t-sm { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.t-display-sans { font-family: var(--sans); font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1.08; letter-spacing: -0.02em; }
.desc { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Dark surfaces (shared) */
.on-dark { color: var(--white); }
.on-dark .eyebrow, .on-dark .label { color: rgba(255, 255, 255, .85); }
.on-dark .desc { color: rgba(255, 255, 255, .76); }
.on-dark .t-xl, .on-dark .t-lg, .on-dark .t-md, .on-dark .t-sm { color: var(--white); }

/* Underline on hover */
.u-hover { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); }
a:hover .u-hover, .card:hover .u-hover { background-size: 100% 1px; }

/* Text link */
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--blue); }
.more .icon { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.more:hover .icon, a:hover .more .icon { transform: translateX(4px); }
.on-dark .more { color: var(--white); }

/* ---------- Buttons ----------
   Default: #145db1.
   Hover on light backgrounds: #022355. Hover on coloured/dark backgrounds: white. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; font-size: 15px; font-weight: 600; border: 1px solid var(--blue); border-radius: 0; background: var(--blue); color: var(--white); white-space: nowrap; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.btn .icon { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.on-dark .btn:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.on-dark .btn--outline { color: var(--white); border-color: rgba(255, 255, 255, .8); }
.on-dark .btn--outline:hover { background: var(--white); color: var(--navy); }

/* ==========================================================================
   HERO MOSAIC
   ========================================================================== */
.hero { background: var(--grad-hero); color: var(--white); padding: clamp(48px, 5vw, 64px) 0 clamp(56px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr 1.52fr; grid-template-areas: "intro intro main" "c1 c2 main"; column-gap: 16px; align-items: stretch; }
.hero__intro { grid-area: intro; padding: 4px 32px 56px 0; }
.hero__side { display: contents; }
.hero__c1 { grid-area: c1; display: grid; gap: 16px; }
.hero__c1 { align-content: start; }
.hero__c2 { grid-area: c2; display: flex; flex-direction: column; gap: 16px; margin-top: 56px; }
.hero__main { grid-area: main; display: flex; flex-direction: column; gap: 16px; }

.hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 4.3vw, 64px); line-height: 1.02; letter-spacing: -0.015em; margin-bottom: 30px; }
.hero__title span { display: block; }
.hero__title span + span { padding-left: 1.4em; }
.hero__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hero__sub { max-width: 560px; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .9); margin: 0; }
.hero__cta { display: inline-flex; align-items: center; gap: 16px; flex-shrink: 0; font-weight: 600; font-size: 15px; }
.hero__cta-circle { width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: inline-flex; align-items: center; justify-content: center; transition: background .3s, color .3s; }
.hero__cta-circle .icon { width: 28px; height: 28px; }
.hero__cta:hover .hero__cta-circle { background: var(--white); color: var(--navy); }

/* Tiles */
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: #0a1c38; color: var(--white); isolation: isolate; }
.tile__img { position: absolute; inset: 0; z-index: -2; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(1, 10, 28, .92) 0%, rgba(1, 10, 28, .45) 40%, rgba(1, 10, 28, 0) 70%); }
.tile__body { padding: 24px; }
.tile__kicker { display: block; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; color: rgba(255, 255, 255, .92); margin-bottom: 8px; }
.tile__title { font-family: var(--sans); font-weight: 700; font-size: 21px; line-height: 1.38; }
.tile__title .chev { display: inline-block; width: 12px; height: 12px; margin-left: 6px; vertical-align: 1px; transition: transform .3s var(--ease); }
.tile:hover .chev { transform: translateX(4px); }
.tile--tall { aspect-ratio: 400 / 505; }
.tile--short { aspect-ratio: 400 / 340; }
.tile--mid { aspect-ratio: 400 / 393; }
.tile--book { flex: 1; min-height: 460px; background: linear-gradient(160deg, #1a3f66 0%, #0c2547 60%, #071a36 100%); }

.tile--big { flex: 1; min-height: 480px; justify-content: space-between; }
.tile--big::after { background: linear-gradient(180deg, rgba(1, 10, 28, .78) 0%, rgba(1, 10, 28, .2) 42%, rgba(1, 10, 28, .1) 60%, rgba(1, 10, 28, .75) 100%); }
.tile--big .tile__body { padding: 32px; }
.tile--big .tile__title { font-weight: 300; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.22; letter-spacing: -0.01em; }
.tile__btn { margin: 0 32px 32px; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 24px; background: var(--white); color: var(--navy); font-size: 16px; font-weight: 500; transition: background .25s, color .25s; }
.tile__btn .icon { width: 18px; height: 18px; }
.tile--big:hover .tile__btn { background: var(--blue); color: var(--white); }

/* CSS book mock-up for SCALE Canvas */
.book { position: absolute; left: 50%; top: 12%; width: 46%; aspect-ratio: 3 / 4.3; transform: translateX(-50%) perspective(900px) rotateY(-14deg); z-index: -1; box-shadow: 24px 30px 50px rgba(0, 0, 0, .55); background: linear-gradient(160deg, #022355 0%, #01112b 100%); border-left: 6px solid #01112b; display: flex; flex-direction: column; justify-content: space-between; padding: 9% 9% 10%; transition: transform .8s var(--ease); }
.tile--book:hover .book { transform: translateX(-50%) perspective(900px) rotateY(-6deg); }
.book::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%); clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%); opacity: .95; }
.book__top { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.book__title { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.1vw, 30px); line-height: .95; color: var(--white); }
.book__title small { display: block; font-family: var(--sans); font-weight: 400; font-size: .42em; letter-spacing: .1em; margin-top: 8px; color: rgba(255, 255, 255, .8); }
.book__letters { position: relative; z-index: 1; display: flex; gap: 4px; }
.book__letters span { width: 18%; aspect-ratio: 1; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; color: var(--white); border: 1px solid rgba(255, 255, 255, .55); }

/* Hero subscribe box */
.hero-sub { background: rgba(12, 37, 71, .92); padding: 40px clamp(24px, 4vw, 64px) 44px; text-align: center; }
.hero-sub p.hero-sub__title { font-size: 21px; line-height: 1.38; color: var(--white); max-width: 460px; margin: 0 auto 22px; }
.inline-form { display: flex; max-width: 472px; margin: 0 auto; }
.inline-form input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; background: var(--white); color: var(--text); font-size: 15.5px; outline: none; }
.inline-form input[type="email"]::placeholder { color: #6d7787; }
.inline-form button { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: var(--white); transition: background .25s, color .25s; }
.inline-form button:hover { background: var(--white); color: var(--navy); }
.inline-form button .icon { width: 20px; height: 20px; }
.form-note { font-size: 12.5px; color: rgba(255, 255, 255, .7); margin-top: 14px; }
.form-note a { text-decoration: underline; }
.form-msg { font-size: 14px; margin-top: 10px; min-height: 1.4em; color: #ffd6d6; }

/* ==========================================================================
   FEATURED NEWSLETTER
   ========================================================================== */
.fn__bar { background: var(--ink); color: var(--white); text-align: center; padding: 20px 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fn { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.fn__img { position: absolute; inset: 0 0 0 auto; width: 62%; }
.fn__img img { width: 100%; height: 100%; object-fit: cover; }
.fn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, #000 34%, rgba(0, 0, 0, .65) 50%, rgba(0, 0, 0, 0) 75%); pointer-events: none; }
.fn__body { position: relative; z-index: 1; padding: clamp(64px, 7vw, 96px) 0 clamp(56px, 6vw, 80px); max-width: 600px; }
.fn__body .t-display-sans { margin-bottom: 24px; }
.fn__body .t-display-sans .chev { display: inline-block; width: .42em; height: .42em; margin-left: .12em; vertical-align: .1em; }
.fn__body p { font-size: 17px; color: rgba(255, 255, 255, .9); margin-bottom: 28px; max-width: 520px; }
.fn-form { display: flex; gap: 10px; max-width: 560px; }
.fn-form input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; background: var(--white); color: var(--text); font-size: 15.5px; outline: none; }
.fn__line { height: 6px; background: var(--grad-band); }

/* ==========================================================================
   ABOUT BAND (gradient, card + image)
   ========================================================================== */
.about { background: var(--grad-band); color: var(--white); padding: clamp(64px, 7vw, 96px) 0; }
.about__top { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; margin-bottom: 32px; }
.about__top .t-display-sans { margin-bottom: 20px; }
.about__top p { font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, .92); max-width: 860px; }
.about__social { display: flex; gap: 14px; margin-bottom: 40px; }
.about__social a { width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; transition: background .25s, color .25s; }
.about__social a:hover { background: var(--green); color: var(--white); }
.about__social .icon { width: 15px; height: 15px; }
.about__media { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); color: var(--text); }
.about__card { padding: clamp(28px, 3vw, 40px); }
.about__card .eyebrow { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 14px; }
.about__card h3 { font-family: var(--sans); font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.22; color: var(--black); margin-bottom: 20px; }
.about__card h3 .chev { display: inline-block; width: 18px; height: 18px; margin-left: 6px; color: var(--blue); vertical-align: -1px; }
.about__card p { font-size: 17px; line-height: 1.75; color: #1f2633; }
.about__card .btn { margin-top: 12px; }
.about__img { position: relative; min-height: 420px; }
.about__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 32px; }
.about__stat { border-top: 4px solid var(--white); padding-top: 22px; font-size: 15px; font-weight: 500; }
.about__stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; margin-bottom: 6px; }
.about__stat:first-child { border-top-color: var(--green); }

/* card on white inside a dark band */
.about__card .btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.about__card h3 a:hover { color: var(--blue); }

/* ==========================================================================
   CLIENT VOICES + THEY TRUST US (white)
   ========================================================================== */
.sec { padding: clamp(56px, 6.5vw, 96px) 0; }
.sec--soft { background: var(--bg-soft); }
.sec--tight-top { padding-top: clamp(40px, 4vw, 56px); }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.sec__head .t-xl, .sec__head .t-lg { color: var(--navy); max-width: 880px; }
.on-dark .sec__head .t-xl { color: var(--white); }

.twoup { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; }
.module { border-top: 4px solid var(--navy); padding-top: 28px; min-width: 0; }
.module--green { border-top-color: var(--green); }
.module .t-md { color: var(--navy); margin-bottom: 18px; }
.quote { display: none; }
.quote.is-active { display: block; animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.quote blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(21px, 1.9vw, 27px); line-height: 1.4; color: var(--navy); }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.quote__name { font-weight: 700; font-size: 15px; }
.quote__role { font-size: 14px; color: var(--muted); }
.quote-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.quote-ctrl button { width: 40px; height: 40px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--navy); }
.quote-ctrl button:hover { border-color: var(--navy); }
.quote-ctrl .icon { width: 14px; height: 14px; }
.quote-dots { display: flex; gap: 8px; margin-left: 10px; }
.quote-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .25s; }
.quote-dots span.is-on { background: var(--navy); }

/* Logo marquee */
.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin: 6px 0 24px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.marquee + .marquee { border-top: 0; margin-top: -24px; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 38s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { width: 190px; height: 104px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 18px 22px; border-right: 1px solid var(--line-soft); }
.marquee__track img { max-height: 42px; max-width: 140px; width: auto; filter: grayscale(1); opacity: .7; transition: .3s; }
.marquee__track li:hover img { filter: none; opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   HOW WE HELP (deep gradient)
   ========================================================================== */
.help { background: var(--grad-deep); }
.help .label { color: rgba(255, 255, 255, .9); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { display: flex; flex-direction: column; }
.card__img { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 20px; background: #0a1c38; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card .t-md { color: var(--navy); margin-bottom: 10px; }
.card .desc { margin-bottom: 16px; }
.card .more { margin-top: auto; }
.on-dark .card .t-md { color: var(--white); }
.on-dark .card__img { background: rgba(255, 255, 255, .06); }

.index { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.index h3 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.index ul { columns: 2; column-gap: 32px; }
.index a { display: flex; align-items: center; justify-content: space-between; gap: 12px; break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; color: var(--navy); }
.index a .icon { width: 13px; height: 13px; color: var(--blue); opacity: 0; transform: translateX(-4px); transition: .25s var(--ease); }
.index a:hover { color: var(--blue); }
.index a:hover .icon { opacity: 1; transform: none; }
.on-dark .index { border-top-color: rgba(255, 255, 255, .2); }
.on-dark .index h3 { color: rgba(255, 255, 255, .7); }
.on-dark .index a { color: var(--white); border-bottom-color: rgba(255, 255, 255, .14); }
.on-dark .index a .icon { color: var(--green); }
.on-dark .index a:hover { color: var(--green); }

/* ==========================================================================
   DATED INSIGHT (white)
   ========================================================================== */
.dated { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.dated__date { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.dated .t-xl { color: var(--navy); margin-bottom: 18px; }
.dated .desc { font-size: 17px; margin-bottom: 22px; max-width: 520px; }
.dated__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.dated__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.dated:hover .dated__img img { transform: scale(1.03); }
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.teaser { display: block; border-top: 1px solid var(--line); padding-top: 20px; }
.teaser .eyebrow { margin-bottom: 8px; }
.teaser .t-sm { color: var(--navy); margin-bottom: 8px; }
.teaser time { font-size: 13.5px; color: var(--muted); }

/* ==========================================================================
   CAREERS (full width, deep gradient)
   ========================================================================== */
.careers { background: var(--grad-deep); }
.careers__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.careers .t-xl { margin-bottom: 18px; }
.careers p.careers__text { font-size: 18px; color: rgba(255, 255, 255, .86); max-width: 480px; margin-bottom: 30px; }
.careers__img { aspect-ratio: 16 / 11; overflow: hidden; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.careers__img img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   LOCATIONS + CONTACT STRIP
   ========================================================================== */
.offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.office { border-top: 1px solid var(--line); padding-top: 20px; }
.office h3 { font-family: var(--serif); font-size: 26px; color: var(--navy); margin-bottom: 4px; }
.office__tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); min-height: 18px; margin-bottom: 12px; }
.office address { font-style: normal; color: var(--muted); font-size: 15px; line-height: 1.6; }
.contact-strip { border-top: 1px solid var(--line); padding: clamp(44px, 5vw, 64px) 0; }
.contact-strip__grid { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.contact-strip .t-lg { color: var(--navy); }
.contact-strip__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* MODAL */
#diwanThanksModal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
#diwanThanksModal.is-open { display: flex; }
#diwanThanksModal .diwan-modal__overlay { position: absolute; inset: 0; background: rgba(1, 10, 28, .7); }
#diwanThanksModal .diwan-modal__box { position: relative; width: 100%; max-width: 500px; background: var(--white); padding: 44px 40px 40px; border-top: 4px solid var(--green); }
#diwanThanksModal h2 { font-family: var(--serif); font-size: 30px; color: var(--navy); margin-bottom: 12px; }
#diwanThanksModal p { color: var(--muted); }
#diwanThanksModal .diwan-modal__close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; font-size: 26px; color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .mega__feature { display: none; }
}

/* Tablet: two-column mosaic like the reference mobile layout */
@media (max-width: 1099px) {
  .hero__grid { grid-template-columns: 1.5fr 1fr; grid-template-areas: "intro intro" "main side"; }
  .hero__intro { padding-right: 0; padding-bottom: 40px; }
  .hero__side { display: grid; gap: 16px; grid-area: side; }
  .hero__c1, .hero__c2 { grid-area: auto; margin-top: 0; }
  .tile--big { min-height: 620px; flex: none; }
  .tile--book { flex: none; aspect-ratio: 400 / 445; min-height: 0; }
}

@media (max-width: 1023px) {
  .hdr__logo img { height: 34px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 18px; }
  .mega .wrap { padding: 0; }
  .mega__head { display: none; }
  .mega__links a { padding: 10px 0 10px 12px; font-size: 16px; color: var(--muted); }
  .drawer-extra .btn { width: 100%; }
  .drawer-langs a[aria-current="true"] { font-weight: 700; color: var(--blue); }

  .about__top { grid-template-columns: 1fr; gap: 0; }
  .about__top .btn { justify-self: start; margin-top: 24px; }
  .about__media { grid-template-columns: 1fr; }
  .about__img { min-height: 300px; order: -1; }
  .about__stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .twoup, .dated, .careers__grid { grid-template-columns: 1fr; gap: 40px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 .card:last-child { grid-column: span 2; }
  .teasers { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .teaser { padding: 18px 0; }
  .index { grid-template-columns: 1fr; gap: 32px; }
  .offices { grid-template-columns: 1fr 1fr; }
  .sec__head { flex-direction: column; align-items: flex-start; }
  .fn__img { width: 100%; opacity: .55; }
  .fn::after { background: linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .6) 100%); }
}

/* Phone */
@media (max-width: 699px) {
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "main" "side"; }
  .hero__title { font-size: 36px; }
  .hero__title span + span { padding-left: .6em; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero__cta-circle { width: 60px; height: 60px; }
  .tile--big { min-height: 520px; }
  .tile--big .tile__body { padding: 24px; }
  .tile__btn { margin: 0 24px 24px; }
  .hero__side { grid-template-columns: 1fr 1fr; }
  .hero__c1, .hero__c2 { display: contents; }
  .tile--tall, .tile--short, .tile--mid { aspect-ratio: 3 / 4; }
  .tile--book { grid-column: span 2; aspect-ratio: 4 / 3; min-height: 0; }
  .book { width: 26%; top: 7%; }
  .tile__body { padding: 16px; }
  .tile__kicker { font-size: 12px; }
  .tile__title { font-size: 16px; }
  .book__letters span { font-size: 8px; }
  .hero-sub { padding: 32px 20px; }
  .hero-sub p.hero-sub__title { font-size: 18px; }
  .fn-form { flex-direction: column; }
  .fn-form input[type="email"] { flex: none; width: 100%; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .grid3 .card:last-child { grid-column: auto; }
  .index ul { columns: 1; }
  .offices { grid-template-columns: 1fr; gap: 24px; }
  .office__tag:empty { display: none; }
  .marquee__track li { width: 150px; height: 88px; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .cookie__actions .btn { flex: 1; }
}

[dir="rtl"] .more .icon, [dir="rtl"] .index a .icon, [dir="rtl"] .hero__cta .icon, [dir="rtl"] .chev { transform: scaleX(-1); }
[dir="rtl"] .hero__title span + span { padding-left: 0; padding-right: 1.6em; }

/* RTL and Arabic adjustments */
[dir="rtl"] .hero__title span + span { padding-left: 0; padding-right: 1.4em; }
[dir="rtl"] .tile::after { background: linear-gradient(0deg, rgba(1, 10, 28, .92) 0%, rgba(1, 10, 28, .45) 40%, rgba(1, 10, 28, 0) 70%); }
[dir="rtl"] .fn__img { inset: 0 auto 0 0; }
[dir="rtl"] .fn::after { background: linear-gradient(270deg, #000 0%, #000 34%, rgba(0, 0, 0, .65) 50%, rgba(0, 0, 0, 0) 75%); }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="rtl"] .book { transform: translateX(50%) perspective(900px) rotateY(14deg); left: auto; right: 50%; }
[dir="rtl"] .tile--book:hover .book { transform: translateX(50%) perspective(900px) rotateY(6deg); }
[dir="rtl"] .tile__kicker, [dir="rtl"] .eyebrow, [dir="rtl"] .fn__bar { letter-spacing: 0; }
html[lang="ar"] .hero__title, html[lang="ar"] .t-display-sans { line-height: 1.3; }
html[lang="ar"] .t-display-sans { font-weight: 400; }
html[lang="ar"] .tile__kicker { text-transform: none; }
/* Buttons on dark home sections also turn white on hover */
.hero .btn:hover, .fn .btn:hover { background: #fff; border-color: #fff; color: var(--navy); }
.dv-ftr .dv-btn:hover, .on-dark .dv-btn:hover { background: #fff; border-color: #fff; color: var(--navy); }
/* Blue buttons keep white text */
a.btn:not(.btn--outline), a.btn:not(.btn--outline):visited, button.btn:not(.btn--outline) { color: #fff; }
/* Book tile: real book visual */
.tile--book .tile__img--book img { object-fit: cover; object-position: center top; }
.tile--book:hover .tile__img--book img { transform: scale(1.03); }
/* Line above "They trust us" */
.module--green { border-top-color: #145db1 !important; }
