/* ==========================================================================
   Omer Frank | personal portfolio
   Editorial, restrained, two-theme design system.
   Accent: single confident blue. Ground: warm paper / warm near-black.
   ========================================================================== */

/* Fonts (Fraunces + Inter) load from a <link> in every page head, not an @import. */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-raised: #eef2fc;
  --bg-inverse: #16140f;
  --ink: #17150f;
  --ink-soft: #5d584c;
  --ink-faint: #736c5d;
  --border: rgba(23, 21, 15, 0.12);
  --border-soft: rgba(23, 21, 15, 0.07);
  --accent: #2853e3;
  --accent-ink: #faf8f3;
  --accent-soft: rgba(40, 83, 227, 0.12);
  --shadow: 0 1px 2px rgba(23, 21, 15, 0.04);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --container: 1180px;
  --prose: 660px;
  --case-col: 760px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #100e0a;
  --bg-raised: #1a170f;
  --bg-inverse: #faf8f3;
  --ink: #f4efe4;
  --ink-soft: #b3ab98;
  --ink-faint: #8a8270;
  --border: rgba(244, 239, 228, 0.13);
  --border-soft: rgba(244, 239, 228, 0.07);
  --accent: #ff7a3d;
  --accent-ink: #100e0a;
  --accent-soft: rgba(255, 122, 61, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #100e0a;
    --bg-raised: #1a170f;
    --bg-inverse: #faf8f3;
    --ink: #f4efe4;
    --ink-soft: #b3ab98;
    --ink-faint: #8a8270;
    --border: rgba(244, 239, 228, 0.13);
    --border-soft: rgba(244, 239, 228, 0.07);
    --accent: #6690ff;
    --accent-ink: #100e0a;
    --accent-soft: rgba(102, 144, 255, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
}
.prose { max-width: var(--prose); }
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 72px 0; }
@media (max-width: 780px) {
  .section-pad { padding: 76px 0; }
  .section-pad-sm { padding: 52px 0; }
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.display-1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.display-3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.body-text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.body-text + .body-text { margin-top: 22px; }
.meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.accent-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
mark.hl {
  background: none;
  color: var(--ink);
  font-weight: 500;
  box-shadow: inset 0 -0.42em 0 var(--accent-soft);
  padding: 0 1px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-faint); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
.nav-menu-btn { display: none; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-menu-btn {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
  }
}
.mobile-nav {
  display: none;
  max-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
  transition: max-height 0.3s var(--ease);
}
.mobile-nav.is-open { max-height: 240px; }
@media (max-width: 720px) { .mobile-nav { display: block; } }
.mobile-nav-inner { display: flex; flex-direction: column; padding: 8px 32px 24px; gap: 4px; }
.mobile-nav-inner a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav-inner a:last-child { border-bottom: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
:root[data-theme='dark'] .btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-faint); transform: translateY(-1px); }
.btn svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 108px;
  overflow: hidden;
}
@media (max-width: 780px) {
  .hero { padding: 96px 0 64px; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 320px; margin: 0 auto; order: -1; }
}
.hero-content { position: relative; z-index: 1; }
.hero-title { margin-top: 22px; }
.hero-tagline {
  margin-top: 26px;
  max-width: 620px;
}
.hero-links {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-photo {
  position: relative;
  aspect-ratio: 900 / 1260;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px -24px rgba(23, 21, 15, 0.28);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.03);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.hero-photo:hover img { transform: scale(1.035); filter: grayscale(0) contrast(1.03); }
:root[data-theme='dark'] .hero-photo {
  border-color: var(--border);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
:root[data-theme='dark'] .hero-photo img { filter: grayscale(0.2) contrast(1.05) brightness(0.92); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-group > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
}
@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}
.about-sticky { position: sticky; top: 100px; align-self: start; }
@media (max-width: 780px) { .about-sticky { position: static; } }

/* ---------- Cluster / Work ---------- */
.cluster { margin-top: 96px; }
.cluster:first-child { margin-top: 56px; }
.cluster-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.cluster-title { margin-top: 10px; }
.cluster-note { max-width: 320px; text-align: right; }
@media (max-width: 620px) { .cluster-note { text-align: left; } }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s var(--ease);
}
.work-card:hover { background: var(--bg-raised); }
.work-card-visual {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.work-card-visual svg, .work-card-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transform-origin: 50% 0; transition: transform 0.8s var(--ease); }
/* Hover: slow zoom, a soft dim, and a "View case study" tag that slides in. The tag and dim are decorative
   (the visual is aria-hidden; the link text below carries the meaning). Hover rules only on devices that
   can hover, so phones never get a stuck state after a tap. Keyboard focus gets the same effect. */
.work-card-visual::before, .work-card-visual::after { position: absolute; pointer-events: none; }
.work-card-visual::after {
  content: "";
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0);
  transition: background-color 0.6s var(--ease);
}
.work-card-visual::before {
  content: "View case study \2197";
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.work-card:focus-visible .work-card-visual img { transform: scale(1.08); }
.work-card:focus-visible .work-card-visual::after { background-color: rgba(0, 0, 0, 0.14); }
.work-card:focus-visible .work-card-visual::before { opacity: 1; transform: none; }
@media (hover: hover) {
  .work-card:hover .work-card-visual img { transform: scale(1.08); }
  .work-card:hover .work-card-visual::after { background-color: rgba(0, 0, 0, 0.14); }
  .work-card:hover .work-card-visual::before { opacity: 1; transform: none; }
}
/* Reduce-motion visitors keep a gentle version: a small, short zoom and a fade, no slide. */
@media (prefers-reduced-motion: reduce) {
  .work-card-visual img { transition-duration: 0.4s !important; }
  .work-card-visual::after { transition-duration: 0.4s !important; }
  .work-card-visual::before { transform: none; transition-duration: 0.3s !important; }
  .work-card:focus-visible .work-card-visual img { transform: scale(1.03); }
  .work-card:hover .work-card-visual img { transform: scale(1.03); }
}
.work-card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.work-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.work-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.work-card-teaser {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}
.work-card-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.work-card-link svg { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.work-card:hover .work-card-link svg { transform: translate(3px, -3px); }

/* ---------- Case study page ---------- */
.case-hero { padding: 80px 0 0; }
@media (max-width: 780px) { .case-hero { padding: 56px 0 0; } }
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.case-back svg { width: 13px; height: 13px; }
.case-back, .case-badge { vertical-align: middle; margin-bottom: 22px; }
.case-back { margin-right: 16px; }
.case-back:hover { color: var(--ink); }
.case-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.case-title { margin-bottom: 24px; }
.case-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--ink-faint);
  padding-bottom: 56px;
}
.case-meta-row span b { color: var(--ink-soft); font-weight: 500; }

.case-visual {
  width: 100%;
  aspect-ratio: 21 / 10;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
@media (max-width: 780px) { .case-visual { aspect-ratio: 4 / 5; } }
.case-visual svg, .case-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Full, uncropped screens: hero + story (2026-10-18, Omer: show every screen of the project) */
.case-visual--full { aspect-ratio: auto; background: none; border-top: 0; padding: clamp(24px, 4vw, 56px) 32px; display: flex; justify-content: center; }
@media (max-width: 640px) { .case-visual--full { padding-left: 22px; padding-right: 22px; } }
.case-visual--full .shot-btn { display: block; width: 100%; max-width: var(--case-col); }
.case-visual--full img { display: block; width: 100%; height: auto; border-radius: 10px; }
/* One column for the whole project page: title, hero, text, screens (2026-10-21, Omer: about 760px) */
.case-hero .wrap, .case-body-wrap .wrap, .case-story .wrap { max-width: calc(var(--case-col) + 64px); }
.case-body-wrap .prose { max-width: none; }
.shot-btn { display: block; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; max-width: 100%; font: inherit; color: inherit; }
.shot-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px; }
.case-story { padding: 24px 0 40px; }
.story-eyebrow { margin-bottom: 36px; }
.story-list { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.story-shot { margin: 0; max-width: 100%; }
.story-shot .shot-btn { width: 100%; }
.story-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-raised); }
@media (max-width: 780px) { .story-list { gap: 36px; } }
.zoom-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(12, 10, 6, 0.94); display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 56px 16px 32px; cursor: zoom-out; }
.zoom-overlay img { display: block; max-width: min(100%, 2200px); height: auto; border-radius: 8px; }
.zoom-close { position: fixed; top: 14px; right: 14px; font: inherit; font-size: 14px; font-weight: 600; color: #17150f; background: #faf8f3; border: 0; border-radius: 99px; padding: 8px 16px; cursor: pointer; }

.case-body-wrap { padding: 88px 0 40px; }
@media (max-width: 780px) { .case-body-wrap { padding: 56px 0 8px; } }

.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 56px 0 100px;
  border-top: 1px solid var(--border-soft);
  margin-top: 64px;
}
@media (max-width: 620px) { .case-nav { flex-direction: column; gap: 28px; } }
.case-nav-link { max-width: 320px; }
.case-nav-link.next { text-align: right; margin-left: auto; }
@media (max-width: 620px) { .case-nav-link.next { text-align: left; margin-left: 0; } }
.case-nav-dir {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.case-nav-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}
.case-nav-link:hover .case-nav-title { color: var(--accent); }

/* ---------- Testimonials ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
@media (max-width: 980px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-card {
  background: var(--bg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s var(--ease);
}
.quote-card:hover { background: var(--bg-raised); }
.quote-mark {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.quote-text {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  flex: 1;
}
.quote-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.quote-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.quote-role {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 3px;
  line-height: 1.5;
}
.quote-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}
.footer-cta-title { max-width: 520px; }
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal { font-size: 13px; color: var(--ink-faint); }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { font-size: 13px; color: var(--ink-faint); }
.footer-nav a:hover { color: var(--ink-soft); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Visible quotable text (phase C, 2026-10-23) ---------- */
/* None of these blocks use .reveal: the text must be readable without JavaScript. Soft ink only, never the faint ink. */

/* About: facts folded into the left column (A3) */
.a3g { grid-template-columns: 320px 1fr; }
.a3g .about-left { position: static; } /* the column is taller than a laptop screen, so it scrolls with the page */
.fx-aside { margin-top: 34px; }
.fx-list { margin-top: 12px; }
.fx-list li {
  padding: 13px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.fx-list li:first-child { color: var(--ink); font-weight: 500; }
.fx-list li:last-child { font-size: 14px; }
@media (max-width: 920px) {
  .a3g { grid-template-columns: 1fr; gap: 28px; }
  .a3g .about-left { display: contents; }
  .a3g .prose { order: 1; }
  .a3g .fx-aside { order: 2; margin-top: 6px; }
}

/* FAQ accordion (B2): native details, first one open */
.faq { padding-top: 24px; }
.acc { margin-top: 48px; max-width: 760px; }
.acc details { border-top: 1px solid var(--border); }
.acc details:last-child { border-bottom: 1px solid var(--border); }
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  min-height: 56px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: '';
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--ink-soft);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}
.acc details[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}
.acc summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.acc .ans { padding: 0 44px 28px 0; }
.acc .ans p { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); max-width: 62ch; overflow-wrap: anywhere; }
.acc .ans a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
@media (max-width: 640px) {
  .acc summary { font-size: 19px; }
  .acc .ans { padding-right: 0; }
}

/* Case page sentence under the title (C1) */
.cs-lede { max-width: 640px; margin: -4px 0 28px; }

/* Testimonials as figure / blockquote / figcaption (D1): same look as before */
.quote-card { margin: 0; }
.quote-body { margin: 0; flex: 1; display: flex; }
.quote-body .quote-text { flex: 1; }
