:root {
  --ink: #13201e;
  --muted: #5d6b68;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --soft: #e9efec;
  --line: #ccd7d2;
  --deep: #0a2f2b;
  --deep-2: #12483f;
  --accent: #d7653b;
  --accent-soft: #f4dfd5;
  --gold: #c5a75a;
  --max: 1200px;
  --narrow: 800px;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(10, 47, 43, .10);
  --step--1: clamp(.82rem, .79rem + .13vw, .9rem);
  --step-0: clamp(1rem, .95rem + .22vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.08rem + .53vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.26rem + 1.05vw, 2.1rem);
  --step-3: clamp(2rem, 1.54rem + 2vw, 3rem);
  --step-4: clamp(2.8rem, 2rem + 3.5vw, 4.9rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: var(--step-0); line-height: 1.65; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--deep); }

.shell { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.narrow { max-width: var(--narrow); }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: 1rem; transform: translateY(-160%); padding: .75rem 1rem; background: var(--surface); color: var(--deep); border: 2px solid var(--deep); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 20; top: 0; background: rgba(247,245,239,.94); border-bottom: 1px solid rgba(19,32,30,.12); backdrop-filter: blur(12px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--deep); }
.brand:hover { color: var(--deep); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--deep); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .98rem; line-height: 1.15; letter-spacing: -.01em; }
.brand small { margin-top: .2rem; color: var(--muted); font-size: .72rem; letter-spacing: .035em; }
.desktop-nav { display: flex; align-items: center; gap: .12rem; }
.desktop-nav a, .mobile-nav nav a { padding: .48rem .63rem; border-radius: 999px; text-decoration: none; font-size: .83rem; font-weight: 680; color: #33423f; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { background: var(--soft); color: var(--deep); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 9px; font-size: .85rem; font-weight: 800; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; right: 0; top: calc(100% + .7rem); width: min(78vw, 300px); padding: .65rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.mobile-nav nav a { display: block; }
.mobile-nav nav a[aria-current="page"] { background: var(--soft); }
.theme-toggle { min-height: 38px; padding: .45rem .7rem; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 0; cursor: pointer; font-size: .75rem; font-weight: 800; }
.theme-toggle:hover { color: var(--deep); background: var(--mint); border-color: var(--mint); }
.mobile-nav .theme-toggle { width: 100%; margin-top: .45rem; color: var(--ink); border-color: var(--line); }

.lang-switch { display: inline-flex; align-items: center; gap: .3rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; font-weight: 700; }
.lang-switch a { text-decoration: none; padding: .2rem .45rem; border-radius: 4px; color: var(--muted); transition: color .15s, background .15s; }
.lang-switch a:hover { color: var(--deep); background: var(--soft); }
.lang-switch a.is-active, .lang-switch a[aria-current="page"] { color: var(--deep); background: var(--soft); font-weight: 900; }
.lang-switch .lang-sep { color: var(--line); font-weight: 400; }
.mobile-nav .lang-switch { display: flex; justify-content: center; padding: .5rem 0; margin-top: .3rem; border-top: 1px solid var(--line); }
.desktop-lang { margin-left: .5rem; margin-right: .5rem; }

.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem); background: var(--deep); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, black, transparent 80%); }
.hero::after { content: ""; position: absolute; right: -7vw; bottom: -18vw; width: 42vw; height: 42vw; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 6vw rgba(255,255,255,.025), 0 0 0 12vw rgba(255,255,255,.018); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.hero h1 { max-width: 850px; margin: .5rem 0 1.5rem; color: #fff; font-size: var(--step-4); line-height: .99; letter-spacing: -.052em; }
.hero .lead { max-width: 720px; color: #d7e5e1; }
.kicker, .eyebrow, .panel-label { margin: 0 0 .55rem; color: var(--accent); font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero .kicker { color: #e4b18e; }
.lead { font-size: var(--step-1); line-height: 1.5; color: #40514d; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-size: .9rem; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.button:hover { transform: translateY(-2px); color: inherit; }
.button.primary { color: white; background: var(--accent); box-shadow: 0 8px 25px rgba(215,101,59,.22); }
.button.primary:hover { background: #c95631; color: white; }
.button.secondary { color: var(--deep); background: transparent; border-color: var(--deep); }
.hero .button.secondary { color: white; border-color: rgba(255,255,255,.55); }
.hero .button.secondary:hover { background: rgba(255,255,255,.08); }
.button.light { color: var(--deep); background: #fff; }
.microcopy { max-width: 680px; margin-top: 1.4rem; color: #abc2bc; font-size: var(--step--1); }
.hero-panel { padding: 1.3rem; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.07); backdrop-filter: blur(6px); }
.hero-panel .panel-label { color: #e4b18e; }
.hero-panel ol { padding: 0; margin: 0; list-style: none; }
.hero-panel li { display: grid; grid-template-columns: 35px 1fr; gap: 0 .8rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.13); }
.hero-panel li:first-child { border-top: 0; }
.hero-panel li > span { grid-row: 1 / 3; color: #8fafaa; font-size: .76rem; }
.hero-panel strong, .hero-panel small { display: block; }
.hero-panel strong { font-size: 1rem; }
.hero-panel small { color: #b7cac6; font-size: .82rem; }

.proof-strip { padding: 1.25rem 0; border-bottom: 1px solid var(--line); background: #f0eee7; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid div { padding: .55rem 1.4rem; border-left: 1px solid var(--line); }
.proof-grid div:first-child { padding-left: 0; border-left: 0; }
.proof-grid strong, .proof-grid span { display: block; }
.proof-grid strong { color: var(--deep); font-size: .9rem; }
.proof-grid span { color: var(--muted); font-size: .78rem; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-soft { background: var(--soft); }
.section-contrast { color: #edf5f2; background: var(--deep); }
.section-contrast h2, .section-contrast h3 { color: white; }
.section-contrast .kicker { color: #e4b18e; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
h1, h2, h3 { color: var(--deep); line-height: 1.14; letter-spacing: -.026em; }
h2 { margin: 0 0 1rem; font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; }
.text-link { display: inline-block; font-size: .9rem; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.muted { color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.case-card { position: relative; min-height: 335px; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(10,47,43,.04); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.case-card:hover { transform: translateY(-4px); border-color: #a9beb6; box-shadow: var(--shadow); }
.case-card h3 { max-width: 520px; margin: .8rem 0 .85rem; font-size: var(--step-2); }
.case-card h3 a { text-decoration: none; }
.case-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.case-card p { color: var(--muted); }
.case-card .text-link, .case-card .tag-list { position: relative; z-index: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.status { display: inline-flex; gap: .35rem; align-items: center; padding: .28rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 850; line-height: 1.3; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status.verified { color: #185642; background: #dfeee8; }
.status.verified::before { background: #238460; }
.status.review { color: #704f10; background: #f4ebca; }
.status.review::before { background: #a6771d; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1.25rem 0 1.45rem; list-style: none; }
.tag-list li { padding: .3rem .52rem; border: 1px solid #d3ddd9; border-radius: 6px; background: #f7f9f8; color: #49605a; font-size: .72rem; }
.tag-list.large li { font-size: .82rem; }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.principles { display: grid; gap: 1rem; }
.principles article { display: grid; grid-template-columns: 45px 1fr; column-gap: 1rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.principles article:first-child { border-top: 0; padding-top: 0; }
.principles span { grid-row: 1 / 3; color: #83aaa2; font-size: .75rem; }
.principles h3 { margin: 0 0 .3rem; }
.principles p { color: #b9cbc7; }
.publication-feature { align-items: center; }
.data-mark { padding: clamp(2rem, 6vw, 4rem); border-radius: var(--radius); background: var(--soft); }
.data-mark span, .data-mark small { display: block; }
.data-mark span { color: var(--deep); font-size: var(--step-3); font-weight: 900; letter-spacing: -.04em; }
.data-mark small { color: var(--muted); }
.data-mark i { display: block; height: 1px; margin: 1.5rem 0; background: var(--line); }
.cta { padding: clamp(4rem, 8vw, 7rem) 0; color: white; background: var(--accent); }
.cta h2 { color: white; }
.cta .kicker { color: #ffe4d6; }
.cta-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }

.page-head, .case-hero, .article-hero { padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); background: #f0eee7; }
.page-head h1, .case-hero h1, .article-hero h1 { margin: .3rem 0 1.2rem; font-size: var(--step-4); }
.page-head .lead, .case-hero .lead, .article-hero .lead { max-width: 760px; }
.case-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); }
.case-meta dt { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.case-meta dd { margin: .2rem 0 0; font-weight: 700; }
.filter-note, .editorial-note { margin-bottom: 2rem; padding: 1.1rem 1.25rem; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.filter-note p, .editorial-note p { margin: .25rem 0 0; }
.editorial-note { margin-top: 3rem; }

.profile-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(290px,.65fr); gap: clamp(3rem,7vw,7rem); align-items: start; }
.prose { max-width: 76ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.7rem; font-size: var(--step-2); }
.prose h3 { margin-top: 2rem; }
.prose li { margin-bottom: .45rem; }
.prose blockquote { margin: 2rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--accent); color: var(--muted); background: var(--accent-soft); }
.prose code { padding: .15rem .35rem; border-radius: 4px; background: var(--soft); font-size: .9em; }
.timeline { margin-top: 1.8rem; }
.timeline article { position: relative; padding: 0 0 2rem 2rem; border-left: 1px solid var(--line); }
.timeline article::before { content: ""; position: absolute; left: -6px; top: .35rem; width: 11px; height: 11px; border: 2px solid var(--paper); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline time { color: var(--accent); font-size: .74rem; font-weight: 850; letter-spacing: .08em; }
.timeline h3 { margin: .25rem 0 .35rem; }
.timeline p { color: var(--muted); }
.profile-aside { position: sticky; top: 110px; display: grid; gap: 1rem; }
.identity-card, .aside-note, .course-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.monogram { display: grid; width: 90px; height: 90px; place-items: center; margin-bottom: 1.5rem; border-radius: 50%; color: white; background: var(--deep); font-size: 1.35rem; font-weight: 900; letter-spacing: .08em; }
.identity-card h2, .aside-note h2, .course-card h2 { font-size: var(--step-1); }
.identity-card ul { padding: 0; list-style: none; }
.identity-card li { padding: .8rem 0; border-top: 1px solid var(--line); }
.identity-card strong, .identity-card span { display: block; }
.identity-card strong { font-size: .88rem; }
.identity-card span { color: var(--muted); font-size: .78rem; }
.aside-note { color: #dfeae7; background: var(--deep); border-color: var(--deep); }
.aside-note h2 { color: white; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2.5rem,6vw,6rem); align-items: start; padding-top: clamp(3rem,6vw,5rem); padding-bottom: clamp(3rem,6vw,5rem); }
.article-body { font-size: 1.06rem; }
.article-body h2 { padding-top: .7rem; }
.evidence-box { position: sticky; top: 110px; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.evidence-box h2 { font-size: var(--step-1); }
.evidence-box ul { padding-left: 1.1rem; }
.evidence-box p { color: var(--muted); font-size: .78rem; }
.next-nav { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 4rem; border-top: 1px solid var(--line); }
.next-nav a { font-weight: 800; text-decoration: none; }

.publication-list { display: grid; gap: 0; }
.publication-item { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; padding: 2rem 0; border-top: 1px solid var(--line); }
.publication-item:first-child { border-top: 0; padding-top: 0; }
.publication-item h2 { margin: .35rem 0 .7rem; font-size: var(--step-2); }
.publication-item h2 a { text-decoration: none; }
.note-list { display: grid; gap: 1.2rem; }
.note-card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.note-card h2 { font-size: var(--step-2); }
.note-card h2 a { text-decoration: none; }
.article-hero .tag-list { margin-top: 1.5rem; }

.course-card { border-top: 6px solid var(--accent); box-shadow: var(--shadow); }
.feature-case { max-width: 760px; }
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.service-grid article { min-height: 260px; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.service-grid article > span { color: var(--accent); font-size: .75rem; font-weight: 900; }
.service-grid h2 { margin-top: 2.5rem; font-size: var(--step-1); }
.service-grid p { color: var(--muted); }
.engagement { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 4rem; padding: clamp(2rem,5vw,4rem); border-radius: var(--radius); color: #dce9e5; background: var(--deep); }
.engagement h2 { color: white; }
.engagement ol { padding: 0; margin: 0; list-style: none; }
.engagement li { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.17); }
.engagement li:first-child { border-top: 0; }
.engagement strong, .engagement span { display: block; }
.engagement strong { color: white; }
.engagement span { color: #afc3be; font-size: .88rem; }

.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; }
.contact-card, .contact-policy { padding: clamp(1.5rem,4vw,2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-card h2 { font-size: var(--step-2); }
.contact-policy { grid-column: 1 / -1; color: #dae8e4; background: var(--deep); border-color: var(--deep); }
.contact-policy h2 { color: white; }
.contact-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: clamp(2rem,6vw,6rem); align-items: start; }
.contact-layout > div > h2 { max-width: 18ch; }
.contact-form { display: grid; gap: 1.25rem; margin-top: 2rem; padding: clamp(1.4rem,4vw,2.4rem); color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.form-status { margin: 0; padding: .9rem 1rem; color: var(--ink); border-left: 4px solid var(--mint); background: var(--accent-soft); }
.form-status strong { display: block; margin-bottom: .15rem; }
.contact-form.is-disabled input:disabled, .contact-form.is-disabled select:disabled, .contact-form.is-disabled textarea:disabled { cursor: not-allowed; opacity: .62; }
.contact-form .button:disabled { cursor: not-allowed; opacity: .62; transform: none; box-shadow: none; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.contact-form label > span, .contact-form legend { display: block; margin-bottom: .4rem; color: var(--ink); font-size: .82rem; font-weight: 800; }
.contact-form label small { color: var(--muted); font-weight: 500; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: .75rem .8rem; color: var(--ink); border: 1px solid #9caaa7; border-radius: 0; background: var(--paper); }
.contact-form textarea { min-height: 165px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); outline-color: var(--mint); }
.contact-form fieldset { margin: 0; padding: 1rem; border: 1px solid var(--line); }
.check-options { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; }
.check-options label, .consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .86rem; }
.check-options input, .consent input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: .2rem; accent-color: var(--blue); }
.form-actions { display: flex; gap: 1rem; align-items: center; }
.form-actions p { max-width: 44ch; margin: 0; color: var(--muted); font-size: .75rem; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-aside { display: grid; border-top: 1px solid var(--line); }
.contact-aside > div { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.contact-aside h2 { font-size: var(--step-1); }
.contact-aside p, .contact-aside li { color: var(--muted); font-size: .88rem; }
.contact-aside ul { padding-left: 1.1rem; }
.contact-aside .response-note { padding: 1.5rem; color: #e5eef9; background: var(--blue-dark); border-bottom: 0; }
.contact-aside .response-note h2 { color: #fff; }
.contact-aside .response-note li { color: #c7d5e8; }

.newsletter-hero { padding: clamp(4.5rem,9vw,8rem) 0; color: #fff; background: var(--blue-dark); border-bottom: 1px solid #315c92; }
.newsletter-hero-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: clamp(3rem,8vw,8rem); align-items: center; }
.newsletter-hero h1 { margin: .5rem 0 1.5rem; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(4rem,10vw,8.8rem); font-weight: 500; line-height: .78; letter-spacing: -.065em; }
.newsletter-hero .lead { max-width: 700px; color: #dce8f7; }
.newsletter-hero .button.secondary { color: #fff; border-color: #8ca9ce; }
.newsletter-hero aside { padding: 1.5rem 0; border-top: 1px solid #5ec9a3; border-bottom: 1px solid #5ec9a3; }
.newsletter-hero aside .panel-label { color: var(--mint); }
.newsletter-hero ol { margin: 0; padding: 0; list-style: none; }
.newsletter-hero li { display: grid; grid-template-columns: 36px 1fr; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.newsletter-hero li:first-child { border-top: 0; }
.newsletter-hero li > span { grid-row: 1 / 3; color: var(--mint); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; }
.newsletter-hero li strong, .newsletter-hero li small { display: block; }
.newsletter-hero li small { color: #b9cbe2; }
.newsletter-intro h2 { max-width: 15ch; }
.edition-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--blue); border-bottom: 1px solid var(--blue); }
.edition-card { position: relative; min-height: 390px; padding: clamp(1.5rem,4vw,3rem); border-left: 1px solid var(--blue); }
.edition-card:first-child { border-left: 0; }
.edition-card.featured { background: var(--surface); }
.edition-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--blue); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; text-transform: uppercase; }
.edition-status { margin: 2.4rem 0 .7rem; color: #277f61; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.edition-card h3 { max-width: 18ch; margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem,3vw,3.3rem); font-weight: 500; line-height: .98; }
.edition-card h3 a { text-decoration: none; }
.edition-card > p:not(.edition-status) { max-width: 55ch; color: var(--muted); }
.interest-grid { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: clamp(2rem,7vw,7rem); align-items: start; }
.interest-grid > div:first-child { position: sticky; top: 110px; }
.edition-byline { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.5rem; color: #c3d4e8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; text-transform: uppercase; }
.newsletter-body { padding-top: clamp(3rem,6vw,5rem); padding-bottom: clamp(3rem,6vw,5rem); }
.newsletter-body table { width: 100%; margin: 2rem 0; border-collapse: collapse; font-size: .9rem; }
.newsletter-body th, .newsletter-body td { padding: .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.newsletter-body th { color: var(--deep); background: var(--soft); }
.confirmation { min-height: 68vh; display: grid; align-items: center; padding: clamp(5rem,10vw,9rem) 0; }
.confirmation h1 { max-width: 12ch; margin: .4rem 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: var(--step-4); }
.not-found { min-height: 68vh; display: grid; align-items: center; padding: 5rem 0; }
.not-found h1 { font-size: var(--step-4); }

.site-footer { padding: 3rem 0; color: #b9cbc7; background: #071f1d; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.site-footer strong { color: white; }
.site-footer p { margin: .35rem 0; font-size: .82rem; }
.site-footer nav { display: flex; flex-direction: column; align-items: start; gap: .35rem; }
.site-footer a { color: #d4e1de; font-size: .82rem; text-decoration: none; }
.footer-meta { text-align: right; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .desktop-theme { display: none; }
  .mobile-nav { display: block; }
  .hero-grid, .split, .profile-grid, .article-grid, .cta-inner, .engagement { grid-template-columns: 1fr; }
  .hero-panel { max-width: 650px; }
  .profile-aside, .evidence-box { position: static; }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-layout, .newsletter-hero-grid, .interest-grid { grid-template-columns: 1fr; }
  .interest-grid > div:first-child { position: static; }
  .proof-grid { grid-template-columns: repeat(2,1fr); gap: .7rem 0; }
  .proof-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* Modo oscuro: predeterminado, azul profundo y menor luminancia */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #dfe8f4;
  --muted: #a5b5c9;
  --paper: #07101f;
  --surface: #0c1b31;
  --soft: #10233e;
  --line: #294361;
  --accent: #5b94d6;
  --accent-soft: #112c4e;
  --mint: #6fc6a8;
  --blue: #0b2f67;
  --blue-bright: #134b83;
  --blue-dark: #050c18;
}

html[data-theme="dark"] body { color: var(--ink); background: var(--paper); }
html[data-theme="dark"] .site-header { background: #081b36; border-bottom-color: #28476e; }
html[data-theme="dark"] .home-blue,
html[data-theme="dark"] .portfolio-home { background: var(--blue); }
html[data-theme="dark"] .evidence-home { background: #092858; }
html[data-theme="dark"] .portfolio-feature > div { background: #123f77; }
html[data-theme="dark"] .metric-grid div { background: var(--blue-bright); }
html[data-theme="dark"] .hero-statement h1,
html[data-theme="dark"] .blue-title h2,
html[data-theme="dark"] .portfolio-feature h3,
html[data-theme="dark"] .portfolio-compact h3,
html[data-theme="dark"] .publication-blue h3 { color: #edf3fa; }
html[data-theme="dark"] .hero-statement .lead,
html[data-theme="dark"] .portfolio-feature p,
html[data-theme="dark"] .portfolio-compact p { color: #c7d4e4; }
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 { color: #edf3fa; }
html[data-theme="dark"] .section-soft,
html[data-theme="dark"] .proof-strip,
html[data-theme="dark"] .page-head,
html[data-theme="dark"] .case-hero,
html[data-theme="dark"] .article-hero { background: #0d203a; }
html[data-theme="dark"] .case-card,
html[data-theme="dark"] .identity-card,
html[data-theme="dark"] .course-card,
html[data-theme="dark"] .note-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .contact-policy,
html[data-theme="dark"] .evidence-box,
html[data-theme="dark"] .service-grid article { color: var(--ink); background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .case-card p,
html[data-theme="dark"] .service-grid p,
html[data-theme="dark"] .timeline p,
html[data-theme="dark"] .muted { color: var(--muted); }
html[data-theme="dark"] .tag-list li { color: #bdcbe0; background: #10233e; border-color: #355174; }
html[data-theme="dark"] .data-mark { background: var(--soft); }
html[data-theme="dark"] .data-mark span { color: #edf3fa; }
html[data-theme="dark"] .button.secondary { color: #dce7f5; border-color: #7d96b7; }
html[data-theme="dark"] .filter-note,
html[data-theme="dark"] .editorial-note { color: var(--ink); background: var(--accent-soft); }
html[data-theme="dark"] .mobile-nav nav { color: var(--ink); background: var(--surface); }
html[data-theme="dark"] .mobile-nav nav a { color: var(--ink); }
html[data-theme="dark"] .mobile-nav .theme-toggle { color: var(--ink); }
html[data-theme="dark"] .contact-form label > span,
html[data-theme="dark"] .contact-form legend { color: var(--ink); }
html[data-theme="dark"] .contact-form label small,
html[data-theme="dark"] .contact-form .form-actions p { color: var(--muted); }
html[data-theme="dark"] .site-footer { background: var(--blue-dark); }

html[data-theme="light"] { color-scheme: light; }

@media (max-width: 650px) {
  .form-grid, .edition-grid { grid-template-columns: 1fr; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .edition-card { min-height: auto; border-left: 0; border-top: 1px solid var(--blue); }
  .edition-card:first-child { border-top: 0; }
  .newsletter-hero h1 { font-size: clamp(3.8rem,19vw,6rem); }
  .newsletter-body table { display: block; overflow-x: auto; }
  .shell { width: min(calc(100% - 1.4rem), var(--max)); }
  .header-inner { min-height: 68px; }
  .brand small { display: none; }
  .hero { padding-top: 4rem; }
  .hero h1 { letter-spacing: -.045em; }
  .card-grid, .service-grid, .contact-grid, .proof-grid, .footer-grid { grid-template-columns: 1fr; }
  .proof-grid div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .proof-grid div:first-child { border-top: 0; }
  .section-title { align-items: start; flex-direction: column; }
  .case-card { min-height: auto; }
  .case-meta { grid-template-columns: 1fr; }
  .publication-item { grid-template-columns: 1fr; gap: .5rem; }
  .contact-policy { grid-column: auto; }
  .next-nav { flex-direction: column; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  .status::before { border: 1px solid currentColor; }
  .button { border: 2px solid currentColor; }
}

/* Dirección seleccionada en Stitch: azul institucional protagonista */
:root {
  --ink: #061426;
  --muted: #526782;
  --paper: #f3f7ff;
  --surface: #ffffff;
  --soft: #e7efff;
  --line: #b8cae8;
  --deep: #061426;
  --deep-2: #0a2860;
  --accent: #0b4aa2;
  --accent-soft: #dbe8ff;
  --mint: #65c9a5;
  --blue: #0b4aa2;
  --blue-bright: #1768bd;
  --blue-dark: #061426;
  --radius: 0;
  --shadow: none;
}

body { background: var(--paper); }
.site-header { color: #fff; background: var(--blue); border-bottom-color: rgba(255,255,255,.24); backdrop-filter: none; }
.header-inner { min-height: 70px; }
.brand, .brand:hover { color: #fff; }
.brand strong { font-size: .9rem; letter-spacing: -.02em; }
.brand small { color: rgba(255,255,255,.72); font-size: .65rem; }
.desktop-nav a { color: rgba(255,255,255,.78); border-radius: 0; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: #fff; background: transparent; box-shadow: inset 0 -2px 0 var(--mint); }
.mobile-nav summary { color: #fff; border-color: rgba(255,255,255,.48); border-radius: 0; }
.mobile-nav nav { color: var(--deep); border-radius: 0; }

.home-blue { min-height: 760px; display: grid; align-items: center; padding: clamp(5rem,10vw,9rem) 0; background: var(--blue); }
.home-blue::before, .home-blue::after { display: none; }
.hero-statement { width: min(calc(100% - 2.5rem), 1180px); }
.hero-statement .kicker { color: var(--mint); }
.hero-statement h1 { max-width: 980px; margin: 1.1rem 0 2rem; color: #f1f5fb; font-size: clamp(4rem,8.5vw,8.8rem); line-height: .82; letter-spacing: -.075em; }
.hero-statement .lead { max-width: 690px; color: #dbe5f2; font-size: clamp(1rem,1.6vw,1.35rem); }
.hero-statement .actions { margin-top: 2.5rem; }
.home-blue .button.primary { color: var(--deep); background: var(--mint); box-shadow: none; }
.home-blue .button.primary:hover { color: var(--deep); background: #82d5b7; }
.home-blue .button.secondary { color: #fff; border-color: rgba(255,255,255,.7); }

.portfolio-home, .evidence-home { color: #fff; background: var(--blue); border-top: 1px solid rgba(255,255,255,.28); }
.portfolio-home { padding: clamp(4rem,8vw,7rem) 0; }
.blue-title { align-items: start; margin-bottom: clamp(2rem,5vw,4rem); }
.blue-title .kicker { color: var(--mint); }
.blue-title h2 { margin: 0; color: #fff; font-size: clamp(3.3rem,7vw,7rem); line-height: .88; letter-spacing: -.065em; }
.blue-title .text-link { color: #fff; border-bottom: 1px solid rgba(255,255,255,.52); }

.portfolio-feature { display: grid; grid-template-columns: minmax(280px,.9fr) minmax(0,1.1fr); min-height: 500px; border: 1px solid rgba(255,255,255,.45); }
.portfolio-feature img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; }
.portfolio-feature > div { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem,5vw,5rem); background: #1558ad; }
.portfolio-feature h3, .portfolio-compact h3, .publication-blue h3 { margin: .8rem 0 1rem; color: #fff; font-size: clamp(2rem,4vw,4.2rem); line-height: .95; letter-spacing: -.05em; }
.portfolio-feature h3 a, .portfolio-compact h3 a { text-decoration: none; }
.portfolio-feature p, .portfolio-compact p { color: rgba(255,255,255,.84); }
.portfolio-feature .tag-list li { color: #fff; background: transparent; border-color: rgba(255,255,255,.36); }
.portfolio-index { color: var(--mint) !important; font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.portfolio-feature .text-link, .portfolio-compact .text-link { color: #fff; margin-top: 1rem; }

.portfolio-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-inline: 1px solid rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.45); }
.portfolio-compact { min-height: 390px; padding: clamp(2rem,4vw,4rem); border-right: 1px solid rgba(255,255,255,.45); }
.portfolio-compact:last-child { border-right: 0; }
.portfolio-compact h3 { font-size: clamp(1.8rem,3.2vw,3.2rem); }

.evidence-home { padding: clamp(4rem,8vw,7rem) 0; background: #0a4291; }
.evidence-stack { width: min(68%, 820px); margin-left: auto; }
.metric-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 0 0 1px; background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.35); }
.metric-grid div { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.3rem,3vw,2.4rem); background: var(--blue-bright); }
.metric-grid strong { color: #fff; font-size: clamp(2.2rem,4vw,4.8rem); line-height: .9; letter-spacing: -.06em; }
.metric-grid span { max-width: 15ch; color: rgba(255,255,255,.82); font-size: .78rem; }
.publication-blue { padding: clamp(2rem,5vw,4.5rem); color: #fff; background: var(--blue-dark); }
.publication-blue .kicker { color: var(--mint); }
.publication-blue h3 { max-width: 880px; font-size: clamp(2rem,4vw,4.6rem); }
.publication-blue p { max-width: 760px; color: #c7d6ee; }
.publication-blue .button.secondary { color: #fff; border-color: #fff; }

.home-closing { padding: 1.4rem 0; color: #fff; background: var(--blue); border-top: 1px solid rgba(255,255,255,.3); }
.home-closing .shell { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.home-closing p { margin: 0; color: rgba(255,255,255,.72); font-size: .76rem; }
.home-closing a { color: var(--mint); font-weight: 800; text-decoration: none; }

.site-footer { color: #aebed5; background: var(--blue-dark); }
.site-footer a { color: #fff; }
.page-head, .case-hero, .article-hero { color: #fff; background: var(--blue); border-bottom-color: rgba(255,255,255,.3); }
.page-head h1, .case-hero h1, .article-hero h1 { color: #fff; }
.page-head .lead, .case-hero .lead, .article-hero .lead { color: #e7efff; }
.page-head .kicker, .case-hero .kicker, .article-hero .kicker { color: var(--mint); }
.cta { background: var(--blue); }
.button.primary { background: var(--blue); }
.button.primary:hover { background: #083f8d; }
.status.verified { color: #0b5338; background: #d8f8e9; }

@media (max-width: 980px) {
  .home-blue { min-height: 680px; }
  .portfolio-feature { grid-template-columns: 1fr; }
  .portfolio-feature img { max-height: 420px; min-height: 0; aspect-ratio: 16/9; }
  .evidence-stack { width: 100%; }
}

@media (max-width: 650px) {
  .home-blue { min-height: calc(100svh - 68px); }
  .hero-statement h1 { font-size: clamp(3.2rem,17vw,5.5rem); line-height: .84; }
  .portfolio-pair, .metric-grid { grid-template-columns: 1fr; }
  .portfolio-compact { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.45); }
  .portfolio-compact:last-child { border-bottom: 0; }
  .metric-grid div { min-height: 150px; }
  .home-closing .shell { align-items: flex-start; flex-direction: column; gap: .65rem; }
}

/* Reaplica los tokens oscuros después de la dirección visual seleccionada. */
html[data-theme="dark"] {
  --ink: #dfe8f4;
  --muted: #a5b5c9;
  --paper: #07101f;
  --surface: #0c1b31;
  --soft: #10233e;
  --line: #294361;
  --accent: #5b94d6;
  --accent-soft: #112c4e;
  --mint: #6fc6a8;
  --blue: #0b2f67;
  --blue-bright: #134b83;
  --blue-dark: #050c18;
}

/* Modo alto contraste accesible (WCAG AAA) */
html[data-theme="contrast"] {
  --ink: #ffffff;
  --muted: #e2e8f0;
  --paper: #000000;
  --surface: #0a0a0a;
  --soft: #18181b;
  --line: #ffffff;
  --accent: #facc15;
  --accent-soft: #27272a;
  --mint: #38bdf8;
  --blue: #000000;
  --blue-bright: #18181b;
  --blue-dark: #000000;
}
html[data-theme="contrast"] a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
html[data-theme="contrast"] :focus-visible {
  outline: 4px solid #facc15;
  outline-offset: 4px;
}
html[data-theme="contrast"] .button.primary {
  background: #facc15;
  color: #000000;
  font-weight: 900;
  border: 2px solid #ffffff;
}
html[data-theme="contrast"] .button.secondary {
  background: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
}
