:root {
  --paper: #f7f5ef; --white: #fffefb; --ink: #172c24; --muted: #526057;
  --forest: #173d30; --leaf: #e7eee4; --line: #d6ddd3; --gold: #edcf8c;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font: 16px/1.6 system-ui, sans-serif;
  color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #946415; outline-offset: 4px; }
img { display: block; max-width: 100%; }
p { color: var(--muted); margin: .6rem 0 1rem; }
h1, h2, h3 { margin: 0 0 .65rem; line-height: 1.12; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.05em; }
h2 { font-size: clamp(2.35rem, 5.4vw, 4.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -.025em; }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: min(1300px, calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }
.section { padding-block: clamp(3.4rem, 7vw, 7rem); }
.section header { margin-bottom: 1.9rem; }
.skip { position: absolute; z-index: 4; top: -100px; background: white; padding: .6rem 1rem; }
.skip:focus { top: 0; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar, .footer, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bar { min-height: 5.2rem; }
.brand, .footer-brand { display: flex; align-items: center; gap: .7rem; }
.brand { text-decoration: none; font-weight: 790; letter-spacing: .09em; line-height: 1.05; }
.brand small { display: block; font-size: .75rem; letter-spacing: .23em; color: #765220; margin-top: .3rem; }
.brand-emblem, .login-emblem { object-fit: contain; flex-shrink: 0; }
nav, .footer-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); flex-wrap: wrap; }
nav a, .footer-links a { font-weight: 650; text-decoration: none; }
nav a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: .3em; }
nav a[href$="#contacto"] { border: 1px solid #8ca096; border-radius: 999px; padding: .55rem 1rem; }
.menu-toggle { display: none !important; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.8rem; padding: .68rem 1.2rem; border: 1px solid transparent; border-radius: 999px; background: var(--forest); color: white; font: 700 .94rem/1.3 system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.button:hover { background: #285747; }
.button.outline { background: transparent; color: var(--ink); border-color: #8ca096; }
.button.outline:hover { background: var(--leaf); }
.compact { min-height: 2.45rem; padding: .45rem .8rem; }
.textlink { color: var(--forest); font-weight: 700; text-underline-offset: 4px; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.55rem; }
.hero { border-bottom: 1px solid var(--line); }
.hero-layout { display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.16fr); gap: clamp(1.3rem,4.8vw,5rem); align-items: center; padding-block: clamp(2.1rem,5.1vw,5rem); }
.eyebrow { margin: 0 0 .9rem; color: #5b5034; font-size: .875rem; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3.5rem, 7.4vw, 8rem); line-height: .88; margin: .4rem 0 1.4rem; }
.hero h1 em { display: block; color: #42664e; font-weight: inherit; }
.lead { max-width: 33ch; font-size: clamp(1.08rem,2vw,1.42rem); color: #43594c; }
.hero-photo { margin: 0; position: relative; overflow: hidden; border-radius: 8px 85px 8px 8px; background: var(--leaf); }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.2; object-fit: cover; object-position: 62% center; }
.hero-photo figcaption { position: absolute; left: .8rem; bottom: .8rem; padding: .3rem .62rem; border-radius: 6px; color: white; background: #11291eea; font-size: .81rem; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.1rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card img, .gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.cardbody { padding: 1.3rem; }
.cardbody h3 a { text-decoration: none; }
.cardbody h3 a:hover { text-decoration: underline; }
.card-meta { display: flex; gap: .5rem .65rem; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.status { display: inline-block; border-radius: 999px; background: #ebe7dd; color: #4e432c; padding: .19rem .64rem; font-size: .86rem; font-weight: 720; }
.status.stage, .status.is-live { background: var(--leaf); color: var(--forest); }
.empty, .panel { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 1.4rem; }
.catalog-empty { border-style: dashed; padding: clamp(1.3rem,3vw,2.4rem); }
.empty p { margin-bottom: .55rem; }
.filters { display: flex; align-items: end; gap: 1rem; padding: 1rem 1.2rem; background: var(--leaf); border: 1px solid var(--line); border-radius: 14px; }
.filters label, .panel label { display: grid; gap: .3rem; font-weight: 650; }
.filters label:first-child { flex: 1; }
.filters input, .filters select, .panel input:not([type=checkbox]), .panel textarea, .panel select { width: 100%; min-width: 0; border: 1px solid #8ca096; background: var(--white); color: var(--ink); border-radius: 8px; padding: .65rem; font: inherit; }
.results { margin: .75rem 0; }
.split, .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.3rem,7vw,7rem); align-items: start; }
.dark { background: var(--forest); color: white; }
.dark p { color: #e2ede3; }
.dark .eyebrow { color: var(--gold); }
.funds-layout h2 { max-width: 10ch; }
.steps > div { padding: 1.2rem 0; border-top: 1px solid #6c9080; }
.steps p { margin-bottom: 0; }
.route { border-left: 3px solid #9a7431; padding: .4rem 0 .4rem 1.3rem; }
.route ol { padding-left: 1.25rem; margin-bottom: 0; }
.route li + li { margin-top: .55rem; }
.service-band { background: var(--leaf); }
.services { margin-top: 1.6rem; }
.services > div { border-top: 1px solid #93a398; padding: 1.2rem .4rem .1rem 0; }
.contact-band { background: #f1e6ce; }
.contact-address { display: inline-block; overflow-wrap: anywhere; font-weight: 730; color: var(--forest); }
.contact-topic { display: grid; gap: .25rem; padding: 1.05rem .3rem; border-top: 1px solid #bba985; text-decoration: none; }
.contact-topic strong { font-size: 1.1rem; }
.contact-topic span { color: #554e3d; }
.contact-topic:hover strong { text-decoration: underline; }
.note { font-size: .9rem; }
.footer-shell { background: #11281f; color: #f8f7f2; }
.footer { padding-block: 1.35rem; }
.footer :focus-visible, .dark :focus-visible { outline-color: var(--gold); }
.inner-title { font-size: clamp(2.6rem,6vw,5rem); margin: .8rem 0 1.2rem; }
.project-detail > section { margin-block: 2.25rem; }
.project-detail h2 { font-size: clamp(1.9rem,4vw,3rem); }
.project-summary { font-size: clamp(1.2rem,2.6vw,1.55rem); max-width: 54ch; }
.description { white-space: pre-wrap; max-width: 70ch; overflow-wrap: anywhere; }
.project-progress { background: var(--leaf); border-radius: 14px; padding: 1.4rem; }
.docs { padding-left: 1.25rem; overflow-wrap: anywhere; }
.editorial-gallery a:first-child { grid-column: span 2; }
.editorial-gallery a:only-child { grid-column: 1 / -1; }
.editorial-gallery img { border-radius: 12px; }
.editorial-gallery a:first-child img { aspect-ratio: 16/8; }
.viewer { width: min(95vw,1000px); max-height: 94vh; border: 0; border-radius: 16px; background: #142820; color: white; padding: .9rem; }
.viewer::backdrop { background: #07120de8; }
.viewerbar { display: flex; justify-content: center; align-items: center; gap: .6rem; flex-wrap: wrap; padding-bottom: .7rem; }
.viewer button { background: #e5efdc; color: var(--ink); border: 0; border-radius: 8px; padding: .55rem .75rem; font: inherit; cursor: pointer; }
.viewer img { max-height: 74vh; width: 100%; object-fit: contain; }
.narrow { max-width: 550px; }
.editor-shell { max-width: 870px; }
.login-emblem { margin-bottom: .8rem; }
.panel { display: grid; gap: 1.1rem; }
.panel .button { justify-self: start; }
.panel .check { display: flex; gap: .5rem; align-items: center; }
.panel fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
.editor-group { display: grid; gap: 1rem; padding: 1rem; }
.editor-group legend { padding: 0 .35rem; font-weight: 730; }
.editor-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.publish-bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; padding-top: .6rem; }
.notice, .success { border-radius: 8px; padding: .8rem 1rem; }
.notice { background: #fff0d7; color: #65451b; }
.success { background: var(--leaf); color: var(--forest); }
.project-list { list-style: none; margin-top: 1.5rem; padding: .4rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.project-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; overflow-wrap: anywhere; }
.project-list li + li { border-top: 1px solid var(--line); }
.project-list .empty { border: 0; }
.admin-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.media-list, .upload-preview { display: grid; grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); gap: .8rem; }
.media-list img, .upload-preview img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: .35rem; }
@media (max-width: 850px) {
  .menu-toggle:not([hidden]) { display: inline-flex !important; }
  .bar { flex-wrap: wrap; padding-block: .7rem; }
  nav { width: 100%; gap: .65rem 1.1rem; padding-bottom: .4rem; }
  nav.can-collapse:not(.is-open) { display: none; }
  nav.can-collapse { display: grid; }
  nav a[href$="#contacto"] { border: 0; padding: 0; }
  .hero-layout, .split, .contact-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 1.65rem; }
  .hero-photo img { aspect-ratio: 16/10; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 570px) {
  .hero-photo { border-top-right-radius: 46px; }
  .cards, .editor-grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; }
  .footer, .toolbar, .project-list li { align-items: flex-start; flex-wrap: wrap; }
  .editorial-gallery a:first-child { grid-column: auto; }
}
.carbon-layout { align-items: center; }
.carbon-photo { margin: 0; }
.carbon-photo img { width: 100%; height: auto; border-radius: 9px 58px 9px 9px; }
.carbon-photo figcaption { margin-top: .4rem; color: var(--muted); font-size: .85rem; }
.catalog-intro { max-width: 68ch; white-space: pre-line; overflow-wrap: anywhere; }
.catalog-settings > summary { cursor: pointer; font-weight: 730; }
.catalog-settings form { margin-top: 1rem; display: grid; gap: .8rem; }
.trace-button { background: var(--gold); color: var(--ink); }
.trace-button:hover { background: #f5dfa8; }
.editorial-gallery figure { margin: 0; min-width: 0; }
.editorial-gallery figure:first-child { grid-column: span 2; }
.editorial-gallery figure:only-child { grid-column: 1 / -1; }
.editorial-gallery figure:first-child img { aspect-ratio: 16/8; }
.editorial-gallery figure:not(:first-child) img { aspect-ratio: 16/10; }
.editorial-gallery figcaption, .model-photo figcaption { color: var(--muted); font-size: .875rem; margin-top: .4rem; }
.quote-layout { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: start; }
.quote-layout h2, .trace-project h2 { font-size: clamp(1.8rem,4vw,3rem); }
.scope-list, .specs { display: grid; gap: .8rem; margin: 1rem 0; }
.scope-list > div { border-top: 1px solid var(--line); padding-top: .65rem; }
.scope-list dt, .specs dt { font-weight: 730; }
.scope-list dd, .specs dd { margin: .2rem 0 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.specs { grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr)); }
.specs > div { background: var(--leaf); padding: .6rem .9rem; border-radius: 8px; }
.quote-list { display: grid; gap: 1rem; }
.quote-list .panel h2, .quote-list .panel p { margin: 0; }
.trace-group, .trace-entry { border-top: 1px solid var(--line); padding: .8rem 0; }
.trace-entry .actions { margin-top: .65rem; }
.trace-entry time { color: var(--muted); font-weight: 700; }
.model-photo { margin: 0; }
.model-photo img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 10px 55px 10px 10px; }
.plan-image { max-height: 560px; object-fit: contain; margin-bottom: .65rem; }
.evidence-form { padding: .75rem; border: 1px solid var(--line); border-radius: 9px; }
.evidence-form summary { cursor: pointer; font-weight: 730; }
.evidence-form label { margin-top: .7rem; }
@media (max-width: 850px) { .quote-layout { grid-template-columns: 1fr; } }
@media (max-width: 570px) { .editorial-gallery figure:first-child { grid-column: auto; } }

/* A restrained palette for the landscape, a consistent interface for the work. */
:root {
  --paper: #f5f2ea; --white: #fffdfa; --ink: #202b24; --muted: #526055;
  --forest: #203d30; --leaf: #e6ece2; --line: #d5d9cc; --gold: #ebcc8c;
}
.top .button.top-quote { color: #fff; }
.top nav a[href$="#contacto"] { border: 0; padding: 0; }
.hero { background: #142c22; color: #fffdf5; border-bottom: 0; }
.hero-layout { grid-template-columns: minmax(0, .94fr) minmax(0, 1.2fr); gap: clamp(1.25rem, 4vw, 4rem); }
.hero h1 { font-size: clamp(3.1rem, 6vw, 6.8rem); line-height: .94; }
.hero h1 em { color: var(--gold); }
.hero .eyebrow { color: #efd197; }
.hero .lead { color: #e0e8dc; max-width: 39ch; }
.hero .button:not(.outline) { background: #efd197; color: #162d23; }
.hero .button:not(.outline):hover { background: #ffe2a7; }
.hero .outline { color: #fff; border-color: #a9b8ab; }
.hero .outline:hover { background: #244437; }
.hero :focus-visible { outline-color: #efd197; }
.hero-photo { border-radius: 6px; }
.hero-photo img { aspect-ratio: 1.18; }
.journey { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--line); margin-top: 1.4rem; }
.journey a { display: grid; gap: .2rem; padding: 1rem 1.15rem; text-decoration: none; }
.journey a + a { border-left: 1px solid var(--line); }
.journey strong { font-size: 1.05rem; }
.journey span { font-size: .9rem; color: var(--muted); }
.journey a:hover strong { text-decoration: underline; }
.work-card, .panel, .empty { border-radius: 9px; }
.work-card .cardbody { padding: 1.4rem; }
.work-card h3 { font-size: 1.35rem; }
.work-card .card-meta { border-bottom: 1px solid var(--line); padding-bottom: .55rem; }
.work-card > img { aspect-ratio: 4/3; }
.model-photo img, .carbon-photo img { border-radius: 6px; }
.project-next { background: var(--leaf); border-radius: 9px; padding: clamp(1.25rem,4vw,2.5rem); }
.project-next h2 { max-width: 24ch; }
.quote-page header { max-width: 68ch; }
.quote-page .inner-title { max-width: 15ch; }
.quote-form { border-top: 4px solid #9a7431; }
.quote-form fieldset { margin: 0; }
.quote-progress { color: #65451b; font-weight: 730; margin: 0; }
.quote-guide { background: #e9e7dc; padding: clamp(1.25rem,3vw,2rem); border-radius: 9px; }
.admin-list-title { font-size: clamp(1.7rem,3vw,2.5rem); margin-top: 2.3rem; }
@media (max-width: 850px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 16/10; }
  .top .top-quote { justify-self: start; }
}
@media (max-width: 570px) {
  .journey { grid-template-columns: 1fr; }
  .journey a + a { border-left: 0; border-top: 1px solid var(--line); }
}
.admin-overview { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,185px),1fr)); gap: .8rem; margin-top: 1.35rem; }
.admin-overview > * { display: grid; align-content: start; gap: .2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.admin-overview strong { font: 500 2.3rem/1 var(--serif); }
.admin-overview span { font-weight: 650; }

:root {
  --paper: #f5f7fc; --white: #ffffff; --ink: #111d31; --muted: #465773;
  --forest: #253fde; --leaf: #e9edfb; --line: #d3dced; --gold: #ff7649;
  --serif: system-ui, "Segoe UI", sans-serif;
}
body { background: var(--paper); }
.top { background: #fff; }
.brand small { color: #3f54b1; }
h1,h2 { font-weight: 810; letter-spacing: -.072em; }
h3 { font-weight: 740; }
.eyebrow { color: #344bb4; letter-spacing: .12em; }
.button { border-radius: 6px; background: #263fd7; color: #fff; }
.button:hover { background: #1d2eb6; }
.button.outline { border-color: #9aa9c6; }
.button.outline:hover { background: #e9edfb; }
:focus-visible { outline-color: #4c63f2; }
.hero { background: #e9eff9; color: var(--ink); border-bottom: 1px solid #cedaee; }
.hero-layout { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: center; padding-block: clamp(1.8rem,4vw,4rem); }
.hero h1 { font-size: clamp(2.7rem,5.4vw,6rem); line-height: .97; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: #293fbf; }
.hero .lead { color: var(--muted); }
.hero .eyebrow { color: #344bb4; }
.hero .button:not(.outline) { background: #263fd7; color: white; }
.hero .button:not(.outline):hover { background: #1d2eb6; }
.hero .outline { color: var(--ink); border-color: #9aa9c6; }
.hero .outline:hover { background: #fff; }
.hero :focus-visible { outline-color: #4c63f2; }
.studio { min-width: 0; background: #fcfdff; border: 1px solid #b8c8e3; border-radius: 10px; overflow: hidden; box-shadow: 0 22px 50px #16356918; }
.studio-top { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.studio-top div { display: grid; }
.studio-top div span { color: var(--muted); font-size: .87rem; }
.studio-marker { background: #ffdfd5; color: #702b1e; font-size: .85rem; font-weight: 820; padding: .25rem .55rem; border-radius: 4px; }
.studio-viewport { position: relative; background: radial-gradient(ellipse at 50% 35%,#f9fbff,#dfebfa 90%); }
.studio canvas, .studio-poster { display: block; width: 100%; height: clamp(265px,34vw,505px); }
.studio canvas { cursor: grab; touch-action: pan-y; }
.studio canvas:active { cursor: grabbing; }
.studio canvas:focus-visible { outline-offset: -4px; }
.studio-poster { object-fit: cover; }
.studio-controls { position: absolute; top: .6rem; right: .6rem; display: flex; gap: .25rem; }
.studio button { background: #fff; color: var(--ink); padding: .45rem .55rem; min-height: 2.35rem; border: 1px solid #c3cee3; border-radius: 5px; font: 680 .86rem system-ui; cursor: pointer; }
.studio button:hover { background: #e4ebff; }
.studio-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .28rem; margin: .7rem .7rem .35rem; }
.studio button[aria-pressed="true"] { color: #fff; background: #293fbf; border-color: #293fbf; }
.studio-description { padding: 0 .9rem .7rem; margin: .4rem 0 0; min-height: 3rem; font-size: .87rem; }
.journey { margin-top: 1.55rem; background: white; border: 1px solid var(--line); border-radius: 8px; }
.journey strong { color: #243fbc; }
.dark, .footer-shell { background: #101c33; }
.dark .eyebrow { color: #ff9d7d; }
.dark .steps > div { border-color: #53637f; }
.trace-button { background: #ffb39b; color: #381c19; }
.trace-button:hover { background: #ffd8c9; }
.contact-band { background: #e9edf9; }
.contact-topic { border-color: #abb9da; }
.contact-topic span { color: #465773; }
.quote-guide { background: #e9edf9; }
.quote-form { border-top-color: #344bb4; }
.quote-progress { color: #344bb4; }
.route { border-color: #e3653f; }
@media(max-width: 850px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero h1 { max-width: 15ch; }
  .studio canvas, .studio-poster { height: clamp(255px,55vw,405px); }
}

.featured-works { padding: 1.65rem 0 0; }
.featured-header { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; flex-wrap: wrap; }
.featured-header h2 { font-size: clamp(1.45rem,2.6vw,2.05rem); margin: 0; }
.featured-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.featured-work { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1fr); align-items: center; gap: .6rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; overflow: hidden; }
.featured-work:hover strong { text-decoration: underline; }
.featured-work img { width: 100%; height: 96px; object-fit: cover; }
.featured-work span { padding: .35rem .5rem .35rem 0; line-height: 1.2; }
.featured-work small { display: block; margin-top: .35rem; color: var(--muted); }
.cms-colors,.cms-swatches { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.cms-colors input[type=color] { height: 3rem; cursor: pointer; padding: .35rem; }
.cms-swatches output { padding: .55rem; border: 1px solid var(--line); border-radius: 6px; font-size: .88rem; font-weight: 750; }
@media(max-width: 660px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-work { grid-template-columns: minmax(0,.52fr) minmax(0,1fr); }
}
.featured-works { padding: .95rem 0 1.05rem; background: #fff; border-bottom: 1px solid var(--line); }
.featured-work img { height: 75px; }
@media(max-width: 850px) {
  .menu-toggle { order: 2; }
  .bar nav { order: 3; }
}
@media(max-width: 660px) {
  .featured-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .4rem; }
  .featured-work { grid-template-columns: 1fr; gap: 0; }
  .featured-work img { height: 58px; }
  .featured-work span { padding: .35rem; font-size: .82rem; }
  .featured-work small { display: none; }
}
@media(max-width: 370px) {
  .bar { column-gap: .5rem; }
  .brand { gap: .25rem; }
  .brand-emblem { width: 38px; }
  .menu-toggle.button { padding-inline: .6rem; }
}

.impact-hero { color: #eff3ff; background: radial-gradient(ellipse at 76% 27%,#263c6c,#111b33 62%); }
.impact-hero .eyebrow { color: #b4c6ff; }
.impact-hero h1,.green-hero h1 { font-size: clamp(3rem,8vw,7.3rem); }
.impact-hero .lead { color: #d5e0fa; }
.impact-hero .button.outline { color: white; }
.impact-hero .button.outline:hover { background: #24355a; }
.impact-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: clamp(1.2rem,5vw,5rem); }
.token-board { border: 1px solid #6379a7; border-radius: 12px; background: #14213c; overflow: hidden; box-shadow: 0 18px 50px #0b142f80; }
.token-stage { min-height: clamp(240px,31vw,380px); display: grid; place-items: center; perspective: 825px; cursor: grab; touch-action: pan-y; background-image: radial-gradient(ellipse,#536caa45,transparent 65%),linear-gradient(#7b94c11a 1px,transparent 1px),linear-gradient(90deg,#7b94c11a 1px,transparent 1px); background-size: auto,27px 27px,27px 27px; }
.token-stage:active { cursor: grabbing; }
.token-stage:focus-visible { outline-offset: -3px; outline-color: #aabfff; }
.token-object { position: relative; width: clamp(145px,20vw,230px); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(14deg) rotateY(-24deg); user-select: none; }
.token-face,.token-reverse,.token-edge { position: absolute; inset: 0; border-radius: 50%; }
.token-edge { background: #987039; box-shadow: 0 0 0 2px #bf9251; }
.token-face { transform: translateZ(9px); display: grid; place-items: center; background: radial-gradient(#fbe0a0,#97703b); border: 2px solid #ffde95; backface-visibility: hidden; }
.token-face img { pointer-events: none; width: 96%; height: auto; }
.token-reverse { transform: rotateY(180deg) translateZ(9px); display: grid; place-content: center; text-align: center; gap: .2rem; background: radial-gradient(#ffebac,#c19042); color: #3c260f; border: 4px double #956421; backface-visibility: hidden; }
.token-reverse strong { font-size: clamp(1.25rem,4vw,2.4rem); }
.token-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; padding: .7rem; }
.token-controls button { border: 1px solid #667bb1; border-radius: 6px; background: #1d2c4f; color: #fff; padding: .47rem .65rem; font: 650 .85rem system-ui; cursor: pointer; }
.token-controls button:hover { background: #304470; }
.token-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; border-top: 1px solid #6379a7; }
.token-stats div { padding: .7rem .8rem; }
.token-stats div+div { border-left: 1px solid #6379a7; }
.token-stats dt { color: #c2d1f6; font-size: .83rem; }
.token-stats dd { margin: .15rem 0 0; font-weight: 800; overflow-wrap: anywhere; }
.impact-details h2 { font-size: clamp(1.7rem,3.3vw,3.3rem); }
.impact-details .split + .impact-steps { margin-top: 2.8rem; }
.impact-steps details { border-top: 1px solid var(--line); padding: .75rem 0; }
.impact-steps summary { cursor: pointer; font-weight: 720; }
.contract-address { overflow-wrap: anywhere; }
.impact-link { align-self: center; color: #eff3ff; }
.green-hero,.green-evidence { background: #e5eee7; }
.green-hero .eyebrow { color: #2c6747; }
@media(max-width: 850px) {
  .impact-grid { grid-template-columns: 1fr; }
}
.page-return { padding-block: 1rem; }
.page-return-bottom { padding-bottom: 2rem; }
@media(min-width:851px) { .top nav { gap: clamp(.65rem,1.6vw,1.45rem); } }

.market-head,.market-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.market-head .actions{margin:0}
.market h2,.about-hero h1{font-size:clamp(2.3rem,5vw,5rem)}
.market-terminal{color:#eff4ff;background:#111c32;border:1px solid #3f547d;border-radius:15px;overflow:hidden;box-shadow:0 18px 34px #101a3520}
.market-terminal p,.market-terminal dt{color:#b7c7e3}
.market-terminal h3{margin:0}
.market-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0}
.market-kpis>div{padding:1rem;border:1px solid #32476a;min-width:0}
.market-kpis dd{margin:0;font-weight:790;font-size:clamp(1rem,2.3vw,1.55rem);overflow-wrap:anywhere}
.market-chart,.market-trades{padding:1rem;border-top:1px solid #32476a}
.market-chart canvas{display:block;width:100%;height:clamp(220px,33vw,385px);border-radius:8px;background:#14223c}
.market-filters{display:flex;gap:.35rem}
.market-filters button,.market-trades select{background:#233755;color:#eef4ff;border:1px solid #536f99;border-radius:6px;padding:.42rem .57rem;font:650 .86rem system-ui}
.market-filters button{cursor:pointer}
.market-filters button[aria-pressed=true]{background:#cedeef;color:#14233d;border-color:#cedeef}
.market-status,.market-readout{font-size:.91rem}
.market-readout{min-height:2rem;margin-bottom:0}
.market-scroll{overflow:auto}
.market-scroll table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem;white-space:nowrap}
.market-scroll th,.market-scroll td{padding:.6rem;border-bottom:1px solid #32476a}
.market-scroll th{color:#c5d5ee}
.market-terminal [data-tone=up]{color:#63e6ad}
.market-terminal [data-tone=down]{color:#ff9ba5}
.about-hero{background:#e8edf9}
.presence-list{padding-left:1.25rem}
@media(max-width:650px){.market-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.market-chart,.market-trades{padding:.65rem}}

@media(min-width: 1600px) {
  .wrap { width: min(1480px, calc(100% - 8rem)); }
  .wrap.narrow { max-width: 550px; }
  .wrap.editor-shell { max-width: 870px; }
}
@media (max-width: 1060px) {
  .menu-toggle:not([hidden]) { display: inline-flex !important; }
  .bar { flex-wrap: wrap; }
  .bar nav { order: 3; width: 100%; padding-bottom: .65rem; }
  .bar nav.can-collapse:not(.is-open) { display: none; }
  .bar nav.can-collapse { display: grid; justify-items: start; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 1.5rem); }
  .hero h1,.inner-title,.impact-hero h1,.green-hero h1 { overflow-wrap: anywhere; }
  .studio-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .studio-top { align-items: flex-start; }
  .studio-controls { max-width: calc(100% - 1.2rem); flex-wrap: wrap; }
  .token-stats { grid-template-columns: 1fr; }
  .token-stats div+div { border-left: 0; border-top: 1px solid #6379a7; }
  .cms-colors,.cms-swatches { grid-template-columns: 1fr; }
}

.civil-hero { background: #e8edf9; }
@media (min-width: 851px) { .top nav { gap: clamp(.55rem,1.25vw,1.25rem); } }

.civil-concepts { margin-bottom: 2rem; gap: 1rem; }
.civil-concepts .card img { aspect-ratio: 3 / 2; }

.news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1rem} .news-grid time{display:block;color:var(--muted);margin-bottom:.5rem}
