@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --folio-paper: #f2f1eb;
  --folio-paper-bright: #fbfaf5;
  --folio-ink: #101311;
  --folio-graphite: #0a0f0d;
  --folio-blue: #1f57d6;
  --folio-blue-soft: #e8efff;
  --folio-muted: #676d68;
  --folio-line: rgba(16, 19, 17, .16);
  --folio-line-dark: rgba(248, 248, 242, .17);
  --page-accent: #1f57d6;
  --page-accent-deep: #153a91;
  --folio-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --folio-mono: "IBM Plex Mono", Consolas, monospace;
  --folio-gutter: clamp(22px, 7.5vw, 116px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.editorial-child {
  margin: 0 !important;
  color: var(--folio-ink) !important;
  background: var(--folio-paper) !important;
  font-family: var(--folio-display) !important;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.editorial-child a { color: inherit; text-decoration: none; }
body.editorial-child img { max-width: 100%; }
body.editorial-child ::selection { color: #fff; background: var(--page-accent); }
body.editorial-child .cur,
body.editorial-child .cur-r { display: none !important; }

body.editorial-child[data-lang="tr"] [data-lang-copy="en"],
body.editorial-child[data-lang="en"] [data-lang-copy="tr"],
html.lang-tr body.editorial-child .en,
html.lang-en body.editorial-child .tr { display: none !important; }

.portfolio-shell-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 0 var(--folio-gutter);
  color: var(--folio-ink);
  background: rgba(242, 241, 235, .95);
  border-bottom: 1px solid var(--folio-line);
  backdrop-filter: blur(14px);
}

.portfolio-shell-brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.portfolio-shell-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.portfolio-shell-context span,
.portfolio-shell-nav a,
.portfolio-shell-language,
.portfolio-page-marker,
.portfolio-proof-note small {
  font-family: var(--folio-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.portfolio-shell-context span { color: var(--page-accent); }
.portfolio-shell-context strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-shell-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.portfolio-shell-nav a { position: relative; white-space: nowrap; }
.portfolio-shell-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--page-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.portfolio-shell-nav a:hover::after,
.portfolio-shell-nav a:focus-visible::after { transform: scaleX(1); }

.portfolio-shell-language {
  width: 42px;
  height: 34px;
  padding: 0;
  color: var(--page-accent);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--folio-line);
  cursor: pointer;
}

.portfolio-page-marker {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--folio-gutter);
  color: var(--folio-muted);
  background: var(--folio-paper-bright);
  border-bottom: 1px solid var(--folio-line);
}
.portfolio-page-marker b { color: var(--page-accent); font-weight: 600; }

body.editorial-child :focus-visible { outline: 3px solid var(--page-accent); outline-offset: 4px; }

/* Existing navigation is replaced by the portfolio shell. */
body.editorial-child > .nav,
body.editorial-child > .product-header { display: none !important; }

/* Product-studio pages */
body.editorial-product {
  --mint: var(--page-accent);
  --mint-deep: var(--page-accent-deep);
  --paper: var(--folio-paper);
  --paper-deep: #e4e3dc;
  --bone: var(--folio-paper-bright);
  --ink: var(--folio-ink);
  --ink-soft: var(--folio-graphite);
  --muted: var(--folio-muted);
  --display: var(--folio-display);
  --body: var(--folio-display);
  --mono: var(--folio-mono);
  --pad: var(--folio-gutter);
}

body.editorial-product .product-hero {
  min-height: calc(100svh - 112px) !important;
  grid-template-columns: minmax(500px, .9fr) minmax(620px, 1.1fr) !important;
  background: var(--folio-paper) !important;
  border-bottom: 1px solid var(--folio-line);
}

body.editorial-product .product-hero-copy {
  min-width: 0;
  padding: clamp(70px, 8vw, 122px) var(--folio-gutter) 70px !important;
  color: var(--folio-ink) !important;
  background: var(--folio-paper) !important;
  border-right: 1px solid var(--folio-line);
}

body.editorial-product .product-hero-copy::after { display: none !important; }

body.editorial-product .product-kicker,
body.editorial-product .section-kicker {
  color: var(--page-accent) !important;
  font-family: var(--folio-mono) !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: .13em !important;
}

body.editorial-product .product-hero h1 {
  max-width: 760px;
  margin: 26px 0 0 !important;
  color: var(--folio-ink) !important;
  font-family: var(--folio-display) !important;
  font-size: clamp(58px, 6vw, 94px) !important;
  font-weight: 700 !important;
  letter-spacing: -.07em !important;
  line-height: .92 !important;
}

body.editorial-product .product-hero h1 em {
  color: var(--page-accent) !important;
  font-style: normal !important;
}

body.editorial-product .product-summary {
  max-width: 630px !important;
  margin: 34px 0 0 !important;
  color: var(--folio-muted) !important;
  font-size: clamp(16px, 1.35vw, 20px) !important;
  line-height: 1.65 !important;
}

body.editorial-product .product-actions { margin-top: 34px !important; }
body.editorial-product .primary-action,
body.editorial-product .text-action {
  border-radius: 0 !important;
  font-family: var(--folio-mono) !important;
}
body.editorial-product .primary-action {
  color: var(--folio-graphite) !important;
  background: var(--page-accent) !important;
  border-color: var(--page-accent) !important;
  box-shadow: none !important;
}
body.editorial-product .primary-action:hover { transform: translateY(-2px); }
body.editorial-product .text-action { color: var(--folio-ink) !important; }

body.editorial-product .product-meta {
  margin-top: auto !important;
  padding-top: 36px !important;
  border-top: 1px solid var(--folio-line) !important;
}
body.editorial-product .product-meta dt,
body.editorial-product .product-meta dd { color: var(--folio-ink) !important; }

body.editorial-product .product-instrument {
  min-width: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 88px clamp(28px, 6vw, 88px) 64px !important;
  color: var(--folio-paper-bright) !important;
  background: var(--folio-graphite) !important;
}

body.editorial-product .instrument {
  width: min(100%, 760px) !important;
  margin: 0 auto !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28) !important;
}

body.editorial-product .seam-mark { display: none !important; }

body.editorial-product .metric-rail {
  min-height: 102px !important;
  padding: 0 var(--folio-gutter) !important;
  color: var(--folio-ink) !important;
  background: var(--folio-paper-bright) !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--folio-line) !important;
}
body.editorial-product .metric-rail > div { border-color: var(--folio-line) !important; }
body.editorial-product .metric-rail dt { color: var(--folio-muted) !important; }
body.editorial-product .metric-rail dd { color: var(--folio-ink) !important; }

body.editorial-product .method-section,
body.editorial-product .live-lab,
body.editorial-product .evidence-section,
body.editorial-product .product-closing {
  padding: clamp(92px, 10vw, 160px) var(--folio-gutter) !important;
}

body.editorial-product .method-section {
  color: var(--folio-ink) !important;
  background: var(--folio-blue-soft) !important;
}
body.editorial-product .section-heading { gap: clamp(42px, 8vw, 140px) !important; }
body.editorial-product .section-heading h2,
body.editorial-product .lab-copy h2,
body.editorial-product .evidence-copy h2,
body.editorial-product .product-closing h2 {
  font-family: var(--folio-display) !important;
  font-size: clamp(44px, 5.2vw, 78px) !important;
  font-weight: 600 !important;
  letter-spacing: -.065em !important;
  line-height: .98 !important;
}
body.editorial-product .section-heading > p,
body.editorial-product .lab-copy > p,
body.editorial-product .evidence-copy > p { font-size: 16px !important; line-height: 1.7 !important; }

body.editorial-product .method-list { border-color: var(--folio-line) !important; }
body.editorial-product .method-list article {
  color: var(--folio-ink) !important;
  background: transparent !important;
  border-color: var(--folio-line) !important;
  transition: padding .25s ease, background .25s ease;
}
body.editorial-product .method-list article:hover {
  padding-left: 18px !important;
  background: rgba(255, 255, 255, .44) !important;
}
body.editorial-product .method-list article > span { color: var(--page-accent) !important; }

body.editorial-product .live-lab {
  color: var(--folio-paper-bright) !important;
  background: var(--folio-graphite) !important;
}
body.editorial-product .live-lab .section-kicker { color: var(--page-accent) !important; }
body.editorial-product .lab-copy > p { color: rgba(248, 248, 242, .68) !important; }
body.editorial-product .lab-panel { border-color: var(--folio-line-dark) !important; }

body.editorial-product .evidence-section {
  color: var(--folio-ink) !important;
  background: var(--folio-paper) !important;
}
body.editorial-product .proof-sheet {
  color: var(--folio-ink) !important;
  background: var(--folio-paper-bright) !important;
  border-radius: 0 !important;
  box-shadow: 0 24px 60px rgba(18, 19, 16, .12) !important;
}

body.editorial-product .product-closing {
  color: #fff !important;
  background: var(--page-accent-deep) !important;
}
body.editorial-product .product-closing h2 em { color: var(--page-accent) !important; }
body.editorial-product .product-footer {
  min-height: 92px !important;
  padding: 0 var(--folio-gutter) !important;
  color: rgba(255, 255, 255, .72) !important;
  background: var(--folio-graphite) !important;
  border-color: var(--folio-line-dark) !important;
}

/* Case studies and the standalone product pages that use the older canvas template. */
body.editorial-case {
  --bg: var(--folio-paper);
  --bg-2: var(--folio-paper-bright);
  --panel: var(--folio-paper-bright);
  --panel-2: #e9e8e1;
  --line: var(--folio-line);
  --line-2: rgba(16, 19, 17, .25);
  --text: var(--folio-ink);
  --head: var(--folio-ink);
  --muted: var(--folio-muted);
  --dim: #858a85;
  --cyan: var(--page-accent);
  --indigo: var(--page-accent);
  --proof: var(--page-accent);
  --mono: var(--folio-mono);
  --sans: var(--folio-display);
  --disp: var(--folio-display);
}

body.editorial-case .wrap { max-width: 1280px !important; padding-right: var(--folio-gutter) !important; padding-left: var(--folio-gutter) !important; }

body.editorial-case .hero.wrap {
  width: 100%;
  max-width: none !important;
  min-height: calc(100svh - 112px) !important;
  display: grid !important;
  grid-template-columns: minmax(470px, .9fr) minmax(560px, 1.1fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  color: var(--folio-ink) !important;
  background: var(--folio-paper) !important;
  border-bottom: 1px solid var(--folio-line);
  overflow: hidden;
}

body.editorial-case .hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(76px, 8vw, 126px) var(--folio-gutter) 72px !important;
  background: var(--folio-paper) !important;
  border-right: 1px solid var(--folio-line);
}

body.editorial-case .eyebrow {
  color: var(--page-accent) !important;
  font-family: var(--folio-mono) !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: .14em !important;
}
body.editorial-case .eyebrow::before { display: none !important; }

body.editorial-case .hero h1 {
  max-width: 760px !important;
  margin: 28px 0 0 !important;
  color: var(--folio-ink) !important;
  font-family: var(--folio-display) !important;
  font-size: clamp(56px, 6vw, 92px) !important;
  font-weight: 700 !important;
  letter-spacing: -.07em !important;
  line-height: .94 !important;
}
body.editorial-case .grad,
body.editorial-case .u {
  color: var(--page-accent) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

body.editorial-case .lead {
  max-width: 650px !important;
  margin-top: 32px !important;
  color: var(--folio-muted) !important;
  font-size: clamp(16px, 1.25vw, 20px) !important;
  line-height: 1.65 !important;
}
body.editorial-case .lead b { color: var(--folio-ink) !important; }

body.editorial-case .cta-row { margin-top: 34px !important; }
body.editorial-case .btn {
  min-height: 54px;
  padding: 0 22px !important;
  border-radius: 0 !important;
  font-family: var(--folio-mono) !important;
  font-size: 10px !important;
  box-shadow: none !important;
}
body.editorial-case .btn-primary {
  color: #fff !important;
  background: var(--page-accent) !important;
  border: 1px solid var(--page-accent) !important;
}
body.editorial-case .btn-ghost {
  color: var(--folio-ink) !important;
  background: transparent !important;
  border: 1px solid var(--folio-line) !important;
}

body.editorial-case .hero-vis {
  position: relative !important;
  min-width: 0;
  min-height: 580px !important;
  color: var(--folio-paper-bright) !important;
  background: var(--folio-graphite) !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
body.editorial-case .hero-vis canvas { opacity: .84 !important; }
body.editorial-case .vis-legend { color: rgba(255,255,255,.64) !important; }

.portfolio-proof-note {
  position: absolute;
  z-index: 5;
  right: clamp(22px, 4vw, 58px);
  bottom: clamp(22px, 4vw, 58px);
  width: min(360px, calc(100% - 44px));
  padding: 24px;
  color: var(--folio-ink);
  background: var(--folio-paper-bright);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.portfolio-proof-note header,
.portfolio-proof-note dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.portfolio-proof-note header { padding-bottom: 17px; border-bottom: 2px solid var(--folio-ink); }
.portfolio-proof-note header b { color: var(--page-accent); font-size: 10px; }
.portfolio-proof-note dl { margin: 12px 0 0; }
.portfolio-proof-note dl > div { padding: 10px 0; border-bottom: 1px solid var(--folio-line); }
.portfolio-proof-note dt { color: var(--folio-muted); font-family: var(--folio-mono); font-size: 8px; letter-spacing: .08em; }
.portfolio-proof-note dd { margin: 0; font-size: 11px; font-weight: 700; text-align: right; }

body.editorial-case .sec {
  padding: clamp(92px, 10vw, 150px) 0 !important;
  color: var(--folio-ink) !important;
  background: var(--folio-paper) !important;
  border-bottom: 1px solid var(--folio-line);
}
body.editorial-case .sec:nth-of-type(even) { background: var(--folio-blue-soft) !important; }
body.editorial-case .sec-num {
  color: var(--page-accent) !important;
  font-family: var(--folio-mono) !important;
  font-size: 9px !important;
  letter-spacing: .13em !important;
}
body.editorial-case .sec-title {
  max-width: 980px;
  color: var(--folio-ink) !important;
  font-family: var(--folio-display) !important;
  font-size: clamp(44px, 5vw, 76px) !important;
  font-weight: 600 !important;
  letter-spacing: -.065em !important;
  line-height: .98 !important;
}
body.editorial-case .sec-lead { max-width: 820px !important; color: var(--folio-muted) !important; font-size: 18px !important; line-height: 1.75 !important; }

body.editorial-case .steps,
body.editorial-case .out {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin-top: 62px !important;
  border-top: 1px solid var(--folio-line);
  border-bottom: 1px solid var(--folio-line);
}
body.editorial-case .step,
body.editorial-case .o {
  min-height: 260px;
  padding: 34px !important;
  color: var(--folio-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid var(--folio-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.editorial-case .step:last-child,
body.editorial-case .o:last-child { border-right: 0 !important; }
body.editorial-case .step .n { color: var(--page-accent) !important; font-family: var(--folio-mono) !important; }
body.editorial-case .step h3,
body.editorial-case .o .big { color: var(--folio-ink) !important; font-family: var(--folio-display) !important; }
body.editorial-case .step p,
body.editorial-case .o p { color: var(--folio-muted) !important; }

body.editorial-case .cta-band {
  margin-top: 72px !important;
  padding: 38px !important;
  color: #fff !important;
  background: var(--folio-graphite) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.editorial-case .cta-band h3 { color: #fff !important; }
body.editorial-case .cta-band p { color: rgba(255,255,255,.65) !important; }

body.editorial-child > footer {
  margin: 0 !important;
  padding: 38px var(--folio-gutter) !important;
  color: rgba(255,255,255,.62) !important;
  background: var(--folio-graphite) !important;
  border-top: 1px solid var(--folio-line-dark) !important;
  font-family: var(--folio-mono) !important;
  font-size: 9px !important;
}
body.editorial-child > footer a { color: var(--page-accent) !important; }

/* Writing */
body.editorial-writing {
  --page-accent: var(--folio-blue);
  --page-accent-deep: #123782;
  --bg: var(--folio-paper);
  --bg-2: var(--folio-paper-bright);
  --panel: var(--folio-paper-bright);
  --panel-2: var(--folio-paper-bright);
  --line: var(--folio-line);
  --line-2: rgba(16,19,17,.24);
  --text: var(--folio-ink);
  --head: var(--folio-ink);
  --muted: var(--folio-muted);
  --dim: #858a85;
  --cyan: var(--folio-blue);
  --indigo: var(--folio-blue);
  --mono: var(--folio-mono);
  --sans: var(--folio-display);
  --disp: var(--folio-display);
}

body.editorial-writing .hd {
  min-height: 540px !important;
  display: flex !important;
  align-items: flex-end !important;
  padding: 100px 0 76px !important;
  color: var(--folio-ink) !important;
  background: var(--folio-blue-soft) !important;
  border-bottom: 1px solid var(--folio-line);
}
body.editorial-writing .hd canvas { opacity: .12 !important; }
body.editorial-writing .hd .wrap { position: relative; z-index: 2; width: 100%; max-width: 1280px !important; padding: 0 var(--folio-gutter) !important; }
body.editorial-writing .eyebrow { color: var(--folio-blue) !important; font-family: var(--folio-mono) !important; font-size: 9px !important; letter-spacing: .14em !important; }
body.editorial-writing .hd h1 {
  max-width: 1000px;
  margin: 28px 0 0 !important;
  color: var(--folio-ink) !important;
  font-family: var(--folio-display) !important;
  font-size: clamp(62px, 7vw, 108px) !important;
  font-weight: 700 !important;
  letter-spacing: -.075em !important;
  line-height: .9 !important;
}
body.editorial-writing .grad { color: var(--folio-blue) !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; }
body.editorial-writing .lead { max-width: 760px !important; color: var(--folio-muted) !important; font-size: 18px !important; line-height: 1.7 !important; }
body.editorial-writing .lead a { color: var(--folio-blue) !important; border-bottom: 1px solid currentColor; }

body.editorial-writing main.wrap { max-width: 1280px !important; padding: 100px var(--folio-gutter) 140px !important; }
body.editorial-writing .arts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 0 !important;
  border-top: 1px solid var(--folio-line);
  border-bottom: 1px solid var(--folio-line);
}
body.editorial-writing .art {
  min-height: 430px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 34px !important;
  color: var(--folio-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid var(--folio-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.editorial-writing .art:last-child { border-right: 0 !important; }
body.editorial-writing .art:hover { color: #fff !important; background: var(--folio-blue) !important; transform: none !important; }
body.editorial-writing .art .k { color: var(--folio-muted) !important; font-family: var(--folio-mono) !important; font-size: 9px !important; }
body.editorial-writing .art:hover .k,
body.editorial-writing .art:hover p { color: rgba(255,255,255,.72) !important; }
body.editorial-writing .art h2 { margin-top: 54px !important; color: inherit !important; font-family: var(--folio-display) !important; font-size: clamp(28px, 2.5vw, 42px) !important; letter-spacing: -.045em !important; line-height: 1.05 !important; }
body.editorial-writing .art p { color: var(--folio-muted) !important; font-size: 15px !important; line-height: 1.7 !important; }
body.editorial-writing .art .go { margin-top: auto !important; color: inherit !important; font-family: var(--folio-mono) !important; font-size: 9px !important; letter-spacing: .08em !important; }
body.editorial-writing .cta-band { margin-top: 72px !important; padding: 40px !important; color: #fff !important; background: var(--folio-graphite) !important; border: 0 !important; border-radius: 0 !important; }
body.editorial-writing .btn-primary { color: #fff !important; background: var(--folio-blue) !important; border-radius: 0 !important; box-shadow: none !important; }

/* Measured motion only: reveal once, preserve existing interactive product labs. */
body.editorial-child .rv,
body.editorial-child .reveal,
body.editorial-child .art,
body.editorial-child .step,
body.editorial-child .o {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
body.editorial-child .rv.in,
body.editorial-child .reveal.is-visible,
body.editorial-child .art.in,
body.editorial-child .step.in,
body.editorial-child .o.in { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .portfolio-shell-header { grid-template-columns: 1fr auto; }
  .portfolio-shell-context { display: none; }
  body.editorial-product .product-hero,
  body.editorial-case .hero.wrap { grid-template-columns: 1fr !important; }
  body.editorial-product .product-hero-copy,
  body.editorial-case .hero-copy { min-height: 650px; border-right: 0; border-bottom: 1px solid var(--folio-line); }
  body.editorial-product .product-instrument,
  body.editorial-case .hero-vis { min-height: 650px !important; }
}

@media (max-width: 760px) {
  :root { --folio-gutter: 18px; }
  .portfolio-shell-header { min-height: 62px; padding: 0 18px; }
  .portfolio-shell-nav a { display: none; }
  .portfolio-shell-brand { font-size: 13px; }
  .portfolio-page-marker { min-height: 34px; padding: 0 18px; font-size: 8px; }
  body.editorial-product .product-hero-copy,
  body.editorial-case .hero-copy { min-height: auto; padding: 72px 18px 54px !important; }
  body.editorial-product .product-hero h1,
  body.editorial-case .hero h1 { font-size: clamp(50px, 15vw, 70px) !important; }
  body.editorial-product .product-instrument,
  body.editorial-case .hero-vis { min-height: 520px !important; padding: 54px 18px !important; }
  body.editorial-product .product-actions,
  body.editorial-case .cta-row { align-items: stretch !important; flex-direction: column !important; }
  body.editorial-product .primary-action,
  body.editorial-product .text-action,
  body.editorial-case .btn { width: 100% !important; justify-content: space-between !important; }
  body.editorial-product .metric-rail { grid-template-columns: 1fr 1fr !important; padding: 18px !important; }
  body.editorial-product .metric-rail > div { min-height: 82px; border-bottom: 1px solid var(--folio-line); }
  body.editorial-product .method-section,
  body.editorial-product .live-lab,
  body.editorial-product .evidence-section,
  body.editorial-product .product-closing,
  body.editorial-case .sec { padding: 84px 18px !important; }
  body.editorial-case .steps,
  body.editorial-case .out,
  body.editorial-writing .arts { grid-template-columns: 1fr !important; }
  body.editorial-case .step,
  body.editorial-case .o,
  body.editorial-writing .art { min-height: 280px !important; border-right: 0 !important; border-bottom: 1px solid var(--folio-line) !important; }
  body.editorial-writing .hd { min-height: 470px !important; padding: 80px 0 54px !important; }
  body.editorial-writing .hd h1 { font-size: clamp(52px, 15vw, 72px) !important; }
  body.editorial-writing main.wrap { padding: 72px 18px 100px !important; }
  .portfolio-proof-note { right: 18px; bottom: 18px; width: calc(100% - 36px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.editorial-child *,
  body.editorial-child *::before,
  body.editorial-child *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body.editorial-child .rv,
  body.editorial-child .reveal,
  body.editorial-child .art,
  body.editorial-child .step,
  body.editorial-child .o { opacity: 1 !important; transform: none !important; }
}

/* EHI maker signature */
.ehi-maker-wrap {
  margin-top: clamp(56px, 8vw, 112px) !important;
  margin-bottom: clamp(38px, 6vw, 78px) !important;
}
.ehi-maker {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  color: #11151c;
  background: #f7f5f0;
  border: 1px solid rgba(13, 17, 23, .16);
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(8, 12, 18, .10);
}
.ehi-maker::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #1557ff;
}
.ehi-maker::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(21, 87, 255, .12);
  transform: rotate(45deg);
  pointer-events: none;
}
.ehi-maker-brand {
  min-width: 0;
  display: contents;
  color: inherit !important;
}
.ehi-maker-markbox {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding: 10px 18px 10px 10px;
  border-right: 1px solid rgba(13, 17, 23, .18);
}
.ehi-maker-mark {
  display: block;
  width: 50px;
  height: 60px;
  object-fit: contain;
}
.ehi-maker-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}
.ehi-maker-kicker,
.ehi-maker-signature {
  font-family: var(--folio-mono, ui-monospace, monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ehi-maker-kicker { color: #1557ff; }
.ehi-maker-copy strong {
  color: #11151c;
  font-family: var(--folio-sans, "Manrope", sans-serif);
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 750;
  letter-spacing: -.035em;
}
.ehi-maker-copy small {
  color: #545b66;
  font-family: var(--folio-sans, "Manrope", sans-serif);
  font-size: 13px;
}
.ehi-maker-signature {
  margin-top: 5px;
  color: #1557ff;
  letter-spacing: .12em;
}
.ehi-maker-cta {
  position: relative;
  z-index: 1;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #11151c !important;
  background: transparent;
  border: 1px solid #1557ff;
  border-radius: 2px;
  font-family: var(--folio-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.ehi-maker-cta:hover {
  color: #fff !important;
  background: #1557ff;
  transform: translateY(-2px);
}
@media (max-width: 720px) {
  .ehi-maker {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 18px;
  }
  .ehi-maker-markbox {
    width: 62px;
    height: 72px;
    padding: 8px 14px 8px 0;
  }
  .ehi-maker-mark { width: 44px; height: 54px; }
  .ehi-maker-copy small { font-size: 12px; }
  .ehi-maker-signature { font-size: 7px; }
  .ehi-maker-cta {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
  }
}
/* EHI identity across project pages */
.portfolio-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.portfolio-shell-brand-mark {
  width: 25px;
  height: 30px;
  object-fit: contain;
}
.portfolio-shell-brand span { white-space: nowrap; }
.portfolio-page-marker {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.portfolio-page-marker-mark {
  width: 14px;
  height: 17px;
  object-fit: contain;
}
.project-dossier .dossier-intro { position: relative; }
.dossier-ehi-watermark {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(54px, 6vw, 88px);
  height: auto;
  opacity: .055;
  pointer-events: none;
}
.portfolio-footer-brand {
  display: block !important;
  width: clamp(170px, 17vw, 230px);
  margin: 0 auto 22px 0;
  color: inherit !important;
}
.portfolio-footer-brand-mark {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
body.editorial-product .product-footer .portfolio-footer-brand {
  flex: 0 0 auto;
  width: clamp(170px, 17vw, 220px);
  margin: 0 auto 0 0;
}
@media (max-width: 720px) {
  .portfolio-shell-brand { gap: 7px; }
  .portfolio-shell-brand-mark { width: 22px; height: 27px; }
  .portfolio-page-marker-mark { width: 12px; height: 15px; }
  .dossier-ehi-watermark { width: 50px; opacity: .045; }
  .portfolio-footer-brand {
    width: min(210px, 72vw);
    margin-bottom: 14px;
  }
}
body.editorial-child .ehi-maker-wrap {
  width: 100% !important;
  max-width: none !important;
  padding-inline: var(--folio-gutter) !important;
}
/* Product ending: full-bleed maker and footer */
body.editorial-product .ehi-maker-wrap {
  margin: 0 !important;
  padding: clamp(54px, 6vw, 86px) var(--folio-gutter) !important;
  background: var(--folio-paper) !important;
}
body.editorial-product .product-footer {
  width: 100% !important;
  max-width: none !important;
  min-height: 96px !important;
  display: flex !important;
  align-items: center !important;
  gap: clamp(18px, 2.5vw, 36px) !important;
  margin: 0 !important;
  padding: 24px var(--folio-gutter) !important;
  color: rgba(255, 255, 255, .68) !important;
  background: var(--folio-graphite) !important;
  border-top: 1px solid var(--folio-line-dark) !important;
}
body.editorial-product .product-footer .portfolio-footer-brand {
  width: clamp(170px, 17vw, 220px) !important;
  margin: 0 auto 0 0 !important;
}
body.editorial-product .product-footer > span:first-of-type { display: none !important; }
body.editorial-product .product-footer nav {
  display: flex !important;
  align-items: center;
  gap: 20px !important;
}
body.editorial-product .product-footer > span:last-of-type {
  margin-left: clamp(10px, 2vw, 28px);
  white-space: nowrap;
}
@media (max-width: 720px) {
  body.editorial-product .ehi-maker-wrap { padding: 46px 18px !important; }
  body.editorial-product .product-footer {
    min-height: 0 !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    padding: 26px 18px 30px !important;
  }
  body.editorial-product .product-footer .portfolio-footer-brand {
    width: min(210px, 72vw) !important;
    margin: 0 0 8px !important;
  }
  body.editorial-product .product-footer nav { gap: 16px !important; }
  body.editorial-product .product-footer > span:last-of-type { margin-left: auto; }
}