/* Cre8mania blog: colours, type and components follow the main site (V2) portfolio and project pages. */
:root {
  --blog-navy: #000014;
  --blog-navy-2: #0a0f2c;
  --blog-cyan: #00cbed;
  --blog-cyan-dark: #00cbed;
  /* Colours read from the main site's portfolio and project pages */
  --blog-paper: #000014;        /* page background */
  --blog-ink: #ffffff;          /* headings, titles */
  --blog-soft: #c6e8f0;         /* body copy, captions */
  --blog-muted: #c6e8f0;
  --blog-label: #65bdd2;        /* small labels */
  --blog-line: #23434f;         /* dividers */
  --blog-placeholder: #061c2e;  /* image placeholder */
  /* Main-site display face and responsive type scale; Arial remains body copy. */
  --blog-display: "Clash Display", Arial, Helvetica, sans-serif;
  --blog-body: Arial, Helvetica, sans-serif;
  --blog-clash: "Clash Display", Arial, Helvetica, sans-serif;
  --blog-type-page: clamp(32px, 9.3vw, 44px);
  --blog-type-section: clamp(30px, 3vw, 42px);
  --blog-type-card: 26px;
  --blog-radius: 0;
  --blog-wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.blog { margin: 0; background: var(--blog-paper); color: var(--blog-ink); font: 400 17px/1.75 var(--blog-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: #00cbed; text-underline-offset: 5px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--blog-cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--blog-display); font-weight: 500; text-wrap: balance; }
/* Page titles: portfolio "Work" heading */
h1 { font-size: var(--blog-type-page); line-height: .98; letter-spacing: -.035em; margin: .2em 0 .35em; }
/* Section headings: project page story headings */
h2 { font-size: var(--blog-type-section); line-height: 1.1; letter-spacing: -.025em; margin: 1.8em 0 .5em; }
h3 { font-size: clamp(22px, 1.65vw, 28px); line-height: 1.14; letter-spacing: -.025em; margin: 1.5em 0 .4em; }
h4 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; margin: 1.4em 0 .3em; }

.blog-wrap { width: min(100% - 2rem, var(--blog-wrap)); margin-inline: auto; }
.blog-wrap-wide { width: min(100% - 2rem, 1200px); margin-inline: auto; }
.blog-wrap-narrow { width: min(100% - 2rem, 720px); margin-inline: auto; }
.blog-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.blog-skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--blog-cyan); color: var(--blog-navy); padding: 0.6rem 1rem; z-index: 10; }
.blog-skip:focus { top: 1rem; }

/* ============ Site chrome: mirrors the main site (V2) ============
   Navy #000014, cyan #00cbed / #00d2ff, muted #65bdd2, soft text #c6e8f0, Arial body, Clash Display display. */
.blog-header, .blog-footer, .blog-menu { font-family: Arial, Helvetica, sans-serif; }
.blog svg { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

/* Header: cyan logo mask left, round menu button right, on navy */
.blog-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; padding: 0 5.56vw; background: #000014; color: #fff; }
.blog-brand { display: inline-flex; align-items: center; min-height: 48px; width: 190px; }
.blog-brand-mark { display: block; width: 100%; aspect-ratio: 705 / 209; background: #00cbed; -webkit-mask: url("brand/logo-mask.webp") center / contain no-repeat; mask: url("brand/logo-mask.webp") center / contain no-repeat; }
.blog-brand:hover { opacity: .75; }
.blog-static-nav { display: flex; gap: 0 28px; flex-wrap: wrap; }
.blog-static-nav a { color: #c6e8f0; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; letter-spacing: .025em; text-transform: uppercase; border-bottom: 1px solid transparent; }
.blog-static-nav a:hover, .blog-static-nav a[aria-current="page"] { color: #00d2ff; border-color: #00d2ff; }
.blog-js .blog-static-nav { display: none; }
.blog-menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; padding: 10px; color: #00cbed; background: #000014b3; border: 1px solid #00cbed40; border-radius: 50%; cursor: pointer; }
.blog-menu-toggle svg, .blog-menu-close svg { width: 24px; height: 24px; stroke-width: 1.5; }
.blog-menu-toggle:hover { color: #fff; }
.blog-menu-toggle:active, .blog-menu-close:active { opacity: .6; }

/* Menu = the main site's cyan circular "portal" (V2 Menu3): one physical radius keeps it circular
   at every aspect ratio. The opening/closing animation lives in blog.js. */
.blog-menu {
  --menu-radius: 66.3vw; --menu-center-y: var(--menu-radius); --menu-nav-y: calc(var(--menu-radius) * 1.08);
  --menu-row: calc(var(--menu-radius) * .2235); --menu-close-y: calc(var(--menu-radius) * .286);
  --menu-portal: circle(var(--menu-radius) at 100% var(--menu-center-y));
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: #00d2ff; color: #002447; overflow: hidden; clip-path: var(--menu-portal);
}
.blog-menu::backdrop { background: transparent; }
.blog-menu-heading { display: contents; }
.blog-menu-close {
  position: absolute; top: max(var(--menu-close-y), calc(env(safe-area-inset-top) + clamp(32px, calc(3.335vw + 8px), 44px)));
  right: max(11.6vw, calc(env(safe-area-inset-right) + 22px)); transform: translate(50%, -50%);
  width: clamp(44px, 6.67vw, 72px); height: clamp(44px, 6.67vw, 72px); display: grid; place-items: center;
  padding: 0; border: 0; background: transparent; color: #002447; cursor: pointer;
}
.blog-menu-close svg { width: clamp(28px, 6.67vw, 72px); height: clamp(28px, 6.67vw, 72px); stroke-width: 2.4; stroke-linecap: butt; }
.blog-menu nav {
  position: absolute; top: var(--menu-nav-y); right: max(8vw, calc(env(safe-area-inset-right) + 16px)); transform: translateY(-50%);
  width: max-content; max-width: 80%; display: grid; grid-auto-rows: minmax(44px, var(--menu-row)); gap: 0;
}
.blog-menu nav a {
  height: 100%; display: flex; align-items: center; justify-content: flex-end; justify-self: end; width: max-content; max-width: 100%; overflow: clip;
  color: #002447; text-decoration: none; font: 700 clamp(22px, min(5.556vw, 6.25svh), 80px)/1.05 Arial, Helvetica, sans-serif;
  letter-spacing: .03em; text-transform: uppercase; text-align: right;
}
.blog-menu-link-text { display: block; }
.blog-menu nav a:hover, .blog-menu nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.blog-menu :focus-visible { outline: 2px solid #002447; outline-offset: 4px; }
.blog-menu[data-input="pointer"] .blog-menu-close:focus { outline: none; }
@media (min-width: 760px) {
  .blog-menu { --menu-radius: min(66.3vw, max(60svh, 320px)); --menu-center-y: 50svh; --menu-nav-y: 50svh; --menu-row: 8.3333svh; --menu-close-y: calc(50svh - var(--menu-radius) * .714); }
  .blog-menu nav a { font-size: clamp(22px, min(3.5vw, 5svh), 60px); }
}

/* Footer: big invitation, topics, offices, socials, bottom bar */
.blog-footer { margin-top: 6rem; padding: clamp(80px, 12svh, 140px) 7vw max(32px, env(safe-area-inset-bottom)); background: #000014; color: #fff; }
.blog-footer a { color: inherit; text-decoration: none; }
.blog-invitation h2 { margin: 0 0 clamp(56px, 8vw, 96px); font: 500 clamp(58px, 7vw, 96px)/1.04 var(--blog-display); letter-spacing: -.03em; }
.blog-invitation a { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.blog-invitation-arrow { width: clamp(80px, 12vw, 160px); aspect-ratio: 1; flex-shrink: 0; border: 1px solid #00d2ff; border-radius: 50%; display: grid; place-items: center; color: #00d2ff; transition: background .3s, color .3s; }
.blog-invitation-arrow svg { width: 46%; transform: rotate(-35deg); transition: transform .55s cubic-bezier(.23, 1, .32, 1); }
.blog-invitation a:hover .blog-invitation-arrow { background: #00d2ff; color: #000014; }
.blog-invitation a:hover svg { transform: rotate(0); }
.blog-footer-topics { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-bottom: 56px; }
.blog-footer-topics a { min-height: 44px; display: inline-flex; align-items: center; color: #c6e8f0; font-size: 12px; letter-spacing: .025em; text-transform: uppercase; border-bottom: 1px solid transparent; }
.blog-footer-topics a:hover { color: #00d2ff; border-color: #00d2ff; }
.blog-footer-offices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 64px; }
.blog-footer-offices address { font-style: normal; min-width: 0; }
.blog-footer-offices h3 { margin: 0 0 16px; font: 500 16px/1.5 var(--blog-clash); letter-spacing: normal; }
.blog-footer-offices h3 span { display: block; color: #65bdd2; font-size: 15px; }
.blog-footer-offices a { display: flex; width: fit-content; max-width: 100%; min-height: 44px; align-items: center; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.blog-footer-offices a:hover { color: #00d2ff; text-decoration: underline; }
.blog-footer-socials { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 32px; padding-bottom: 40px; }
.blog-footer-socials a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #c6e8f0; font-size: 13px; }
.blog-footer-socials svg { width: 20px; height: 20px; stroke-width: 1.5; }
.blog-footer-socials a:hover { color: #00d2ff; }
.blog-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; border-top: 1px solid #65bdd24d; color: #65bdd2; }
.blog-footer-bottom small { font-size: 12px; line-height: 1.6; }
.blog-footer-bottom a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 13px; white-space: nowrap; }
.blog-footer-bottom svg { width: 20px; height: 20px; transform: rotate(-90deg); }

/* Buttons: text + cyan underline + round arrow badge (main site's contact button) */
.blog-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; padding: 0 0 10px; border-bottom: 1px solid #00cbed; color: #fff; font: 500 22px/1.2 var(--blog-display); letter-spacing: -.01em; text-decoration: none; }
.blog-button-arrow { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border: 1px solid #00cbed55; border-radius: 50%; color: #00cbed; transition: background .2s ease, color .2s ease; }
.blog-button-arrow svg { width: 24px; height: 24px; transform: rotate(-35deg); transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
.blog-button:hover { color: #fff; }
.blog-button:hover .blog-button-arrow { background: #00cbed; color: #000014; }
.blog-button:hover svg { transform: rotate(0); }
/* Text links with an arrow (main site's "View all projects" / "Back" links) */
.blog-link-arrow { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #002447; font-size: 12px; letter-spacing: .025em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid #002447; }
.blog-link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.blog-link-arrow:hover svg { transform: translateX(5px); }

/* ===== Listing pages: the main site's portfolio page ===== */
.blog-hero { padding: clamp(72px, 10svh, 120px) 0 0; }
.blog-eyebrow { margin: 0; color: var(--blog-label); font-size: 11px; line-height: 1.3; letter-spacing: .025em; text-transform: uppercase; }
.blog-lede { margin: 24px 0 0; max-width: 60ch; color: var(--blog-soft); font-size: 17px; line-height: 1.6; }
/* Topic filters = portfolio filters */
.blog-topics { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 56px 0 0; }
.blog-topics a { min-height: 44px; display: inline-flex; align-items: center; padding: 14px 0 10px; color: var(--blog-soft); font-size: 12px; line-height: 1.3; letter-spacing: .025em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
.blog-topics a[aria-current="page"] { color: #00d2ff; border-color: #00d2ff; }
.blog-topics a:not([aria-current="page"]):hover { color: #fff; border-color: #00cbed; }
.blog-count { margin: 32px 0 0; color: #91c8d8; font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
/* Grid + cards = portfolio grid + project cards (no box: image, then caption) */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 3vw, 56px); row-gap: clamp(96px, 8vw, 144px); align-items: start; margin-top: 64px; }
.blog-card { min-width: 0; }
.blog-card-link { display: block; color: #fff; text-decoration: none; outline-offset: 10px; }
.blog-card-media { position: relative; overflow: hidden; aspect-ratio: 1.6; background: var(--blog-placeholder); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.23, 1, .32, 1); }
.blog-card-open { position: absolute; inset-inline-end: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; background: #00cbed; color: #002447; display: grid; place-items: center; opacity: 0; transform: translateY(8px); transition: transform .2s cubic-bezier(.23, 1, .32, 1), opacity .2s ease; }
.blog-card-open svg { width: 24px; height: 24px; transform: rotate(-35deg); }
.blog-card-body { padding-top: 28px; }
.blog-card-body .blog-eyebrow { margin-bottom: 14px; }
.blog-card-title { margin: 0; font-size: var(--blog-type-card); line-height: 1.14; letter-spacing: -.025em; }
.blog-card-excerpt { margin: 12px 0 0; max-width: 40ch; color: var(--blog-soft); font-size: 14px; line-height: 1.4; }
.blog-card .blog-meta { margin: 12px 0 0; }
.blog-card-more, .blog-link-arrow { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 20px; color: #00cbed; font-size: 11px; line-height: 1.3; letter-spacing: .025em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid #00cbed70; }
.blog-card-more svg, .blog-link-arrow svg { width: 18px; height: 18px; transform: rotate(-35deg); transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
.blog-link-arrow:hover { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .blog-card-link:hover .blog-card-media img { transform: none; }
  .blog-card-link:hover .blog-card-open { opacity: 1; transform: none; }
  .blog-card-link:hover .blog-card-more svg, .blog-link-arrow:hover svg { transform: rotate(-35deg) translateX(4px); }
}
.blog-card-link:focus-visible .blog-card-open { opacity: 1; transform: none; }
.blog-meta { color: #91c8d8; font-size: 12px; line-height: 1.6; }
.blog-meta a { color: inherit; }
.blog-pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 96px 0 0; padding-top: 32px; border-top: 1px solid var(--blog-line); color: #91c8d8; font-size: 12px; letter-spacing: .025em; text-transform: uppercase; }
.blog-pagination a { min-height: 44px; display: inline-flex; align-items: center; color: #00cbed; text-decoration: none; border-bottom: 1px solid #00cbed70; }
.blog-pagination a:hover { color: #fff; }
.blog-empty { margin: 56px 0; color: var(--blog-soft); font-size: 15px; }
.blog-breadcrumbs { color: #91c8d8; font-size: 11px; letter-spacing: .025em; text-transform: uppercase; }
.blog-breadcrumbs a { color: #00cbed; text-decoration: none; border-bottom: 1px solid #00cbed70; }
.blog-breadcrumbs a:hover { color: #fff; }

/* ===== Article: the main site's project (case study) page ===== */
.blog-article-header { padding: clamp(72px, 10svh, 120px) 0 0; max-width: 1000px; }
.blog-article-header h1 { margin: 24px 0 0; font-size: clamp(42px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.03em; max-width: 24ch; }
.blog-article-header .blog-meta { margin: 28px 0 44px; color: #c6e8f0; font-size: 13px; }
.blog-article-hero { width: fit-content; max-inline-size: min(calc(100% - 2rem), 1200px); margin: 0 auto 2.5rem; background: var(--blog-placeholder); }
.blog-article-hero img { display: block; width: auto; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
figcaption { margin-top: .6rem; color: #91c8d8; font-size: 13px; line-height: 1.5; }
.blog-prose { color: var(--blog-soft); font-size: 15px; line-height: 1.75; }
.blog-prose h2, .blog-prose h3, .blog-prose h4, .blog-prose strong { color: #fff; }
.blog-prose p, .blog-prose li { max-width: 68ch; }
.blog-prose a { color: #00cbed; text-decoration: underline; text-underline-offset: 5px; }
.blog-prose a:hover { color: #fff; }
.blog-rich table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 15px; }
.blog-rich th, .blog-rich td { border-bottom: 1px solid var(--blog-line); padding: .7rem .5rem; text-align: start; }
.blog-rich th { color: #65bdd2; font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .025em; }
.blog-rich blockquote, .blog-quote blockquote { margin: 2rem 0; padding-inline-start: 1.25rem; border-inline-start: 1px solid #00cbed; color: #fff; font-size: 22px; line-height: 1.4; letter-spacing: -.01em; }
.blog-quote figcaption { color: #65bdd2; }
.blog-figure, .blog-gallery, .blog-video { margin: 2.5rem 0; }
.blog-figure img { background: var(--blog-placeholder); }
.blog-figure-wide { margin-inline: calc(50% - min(50vw, 600px) + 1rem); }
.blog-gallery-grid { display: grid; gap: clamp(16px, 2vw, 32px); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.blog-gallery-grid img { aspect-ratio: 1.6; object-fit: cover; width: 100%; background: var(--blog-placeholder); }
/* Video = project page film player: dark screen, round cyan-outlined play button */
.blog-video-button { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; aspect-ratio: 16 / 9; background: #000014; overflow: hidden; }
.blog-video-button img { width: 100%; height: 100%; object-fit: cover; }
.blog-video-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; border: 1px solid #00cbed; background: #000014b3; color: #00cbed; display: grid; place-items: center; font-size: 26px; transition: background .2s ease, color .2s ease; }
.blog-video-button:hover .blog-video-play { background: #00cbed; color: #000014; }
.blog-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.blog-video figcaption a { color: #00cbed; }
.blog-faq details { border-top: 1px solid var(--blog-line); padding: .9rem 0; }
.blog-faq details:last-child { border-bottom: 1px solid var(--blog-line); }
.blog-faq summary { min-height: 44px; display: flex; align-items: center; color: #fff; font-weight: 400; font-size: 19px; letter-spacing: -.01em; cursor: pointer; }
.blog-faq details p { margin: .4rem 0 .6rem; }
/* In-article call to action: open section between rules (no box), like the main site's invitation blocks */
.blog-cta { max-width: 720px; margin: 4rem auto; padding: 40px 0; border-top: 1px solid var(--blog-line); border-bottom: 1px solid var(--blog-line); color: #fff; }
.blog-cta p { color: var(--blog-soft); }
.blog-cta-title { margin: 0 0 .5rem; color: #fff; font: 500 var(--blog-type-section)/1.1 var(--blog-display); letter-spacing: -.025em; }
.blog-related-work, .blog-related { margin-top: clamp(88px, 10vw, 160px); }
.blog-related-work h2, .blog-related h2 { margin: 0; }
.blog-related-work .blog-grid, .blog-related .blog-grid { margin-top: 48px; }
/* Related work = portfolio card */
.blog-work-card { display: block; min-width: 0; color: #fff; text-decoration: none; }
.blog-work-card img { width: 100%; aspect-ratio: 1.6; object-fit: cover; background: var(--blog-placeholder); }
.blog-work-title { display: block; padding-top: 24px; font: 500 var(--blog-type-card)/1.14 var(--blog-display); letter-spacing: -.025em; }
.blog-work-summary { display: block; margin-top: 12px; color: var(--blog-soft); font-size: 14px; line-height: 1.4; }
/* Author = project page facts block */
.blog-author { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--blog-line); color: var(--blog-soft); }
.blog-author-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.blog-author-name { margin: 0; color: #fff; font: 500 22px/1.2 var(--blog-display); letter-spacing: -.01em; }
.blog-author-role { margin: .25rem 0 .6rem; color: #65bdd2; font-size: 12px; letter-spacing: .025em; text-transform: uppercase; }
.blog-author a { color: #00cbed; }
.blog-preview-banner { margin: 0; padding: .6rem 1rem; background: #ffd34d; color: #000; text-align: center; font-weight: 700; }
.blog-gone { padding: 5rem 0; }
.blog-gone p { color: var(--blog-soft); }

@media (max-width: 1023px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 96px; column-gap: 5vw; }
}

@media (max-width: 900px) {
  .blog-footer-offices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
}

@media (max-width: 767px) {
  .blog-grid { grid-template-columns: 1fr; gap: 80px; margin-top: 36px; }
  .blog-card-open { display: none; }
  .blog-card-more { margin-top: 18px; }
}

@media (max-width: 759px) {
  h1 { font-size: var(--blog-type-page); }
  .blog-article-header h1 { font-size: clamp(28px, 8.4vw, 36px); max-width: 20ch; }
  .blog-card-title { font-size: 26px; }
  .blog-topics { gap: 8px 20px; margin-top: 28px; }
  .blog-topics a { font-size: 11px; padding: 12px 0 10px; }
  .blog-header { min-height: 72px; padding: 0 24px; }
  .blog-brand { width: 120px; }
  .blog-static-nav { gap: 0 16px; }
  .blog-footer { padding: 80px 24px 32px; }
  .blog-invitation h2 { font-size: clamp(46px, 12vw, 66px); }
  .blog-invitation-arrow { width: 74px; }
  .blog-footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .blog-author { flex-direction: column; }
  .blog-cta { padding: 1.5rem; }
}

@media (max-width: 420px) {
  .blog-footer-offices { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Share buttons (D7): quiet outline pills, same line and cyan as the rest of the page. */
.blog-share { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--blog-line); }
.blog-share-heading { margin: 0 0 16px; color: var(--blog-label); font: 400 14px/1.3 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.blog-share-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.blog-share-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--blog-line); border-radius: 999px; background: none; color: var(--blog-soft); font: 400 15px/1 Arial, sans-serif; text-decoration: none; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.blog-share-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.blog-share-link:hover { border-color: var(--blog-cyan); color: #fff; }
.blog-share-link[hidden] { display: none; }
.blog-share-list li:has(> [hidden]) { display: none; }

/* ============ Right-to-left (Arabic, D6) ============
   Layout uses logical properties (inline-start/end), so it mirrors by itself. These rules cover the rest. */
/* Arrows point the reading direction. `scale` is applied after each arrow's own rotate, so it mirrors the result. */
[dir="rtl"] .blog-icon-arrow { scale: -1 1; }
/* Letter spacing breaks the joins between Arabic letters; uppercase does not apply. */
[dir="rtl"] * { letter-spacing: 0 !important; text-transform: none !important; }
[dir="rtl"] body { line-height: 1.75; }

/* Language switch (shown only when more than one language is on). */
.blog-language a { color: var(--blog-soft); font: 400 15px/1 Arial, sans-serif; text-decoration: none; padding: 12px 8px; }
.blog-language a:hover { color: #fff; }

/* Current project typography (project.css), including its compact desktop hero. */
@media (min-width: 1024px) {
  .blog-article-header h1 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; max-width: none; }
  .blog-prose { font-size: 16px; line-height: 1.75; }
}
@media (max-width: 767px) {
  .blog-article-header h1 { font-size: clamp(28px, 8.4vw, 36px); max-width: 20ch; }
  .blog-article-header .blog-lede { font-size: 15px; line-height: 1.75; }
  .blog-prose { font-size: 14px; line-height: 1.75; }
  .blog-prose h2, .blog-related h2, .blog-related-work h2 { font-size: 30px; }
}

@media (min-width: 768px) {
  :root {
    --blog-type-page: clamp(40px, 4.2vw, 60px);
    --blog-type-card: clamp(22px, 1.65vw, 28px);
  }
}
.blog-article-header .blog-lede { line-height: 1.75; }
.blog-article-header h1, .blog-hero h1, .blog-prose h2,
.blog-card-title, .blog-work-title, .blog-cta-title { word-spacing: .04em; }
