/* Juancar Cloudflare Pages — dirección visual: industrial editorial, amarillo de señalización, negro carbón y tipografía monoespaciada. */
:root {
  --ink: #111111;
  --charcoal: #171717;
  --panel: #202020;
  --panel-soft: #292929;
  --paper: #f0eee8;
  --paper-muted: #d9d7d0;
  --yellow: #ffeb3b;
  --yellow-hot: #fff200;
  --yellow-deep: #d8c800;
  --line-dark: rgba(255,255,255,.18);
  --line-light: rgba(17,17,17,.22);
  --copy-soft: rgba(255,255,255,.68);
  --copy-muted: rgba(255,255,255,.48);
  --ease: cubic-bezier(.23,1,.32,1);
  --max: 1240px;
  --space: clamp(5.5rem, 10vw, 10rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: 'DM Mono', monospace; font-size: 15px; line-height: 1.65; overflow-x: hidden; }
body, button, input, textarea { -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { border: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .75rem 1rem; color: var(--ink); background: var(--yellow); transition: top .2s var(--ease); }
.skip-link:focus { top: 1rem; }
.container { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }
.section-dark { color: var(--paper); background: var(--ink); }
.section-light { color: var(--ink); background: var(--paper); }
.section-yellow { color: var(--ink); background: var(--yellow); }

.topline { position: relative; z-index: 20; border-bottom: 1px solid var(--line-dark); color: var(--copy-muted); background: #0c0c0c; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.topline__inner { width: min(var(--max), calc(100% - 3rem)); min-height: 2.25rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topline a { color: var(--yellow); transition: color .2s ease; }
.topline a:hover { color: #fff; }
.status-dot { width: .45rem; height: .45rem; display: inline-block; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 .25rem rgba(255,235,59,.12); }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line-dark); background: rgba(17,17,17,.9); backdrop-filter: blur(16px); }
.header-inner { min-height: 5.8rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; }
.brand-mark { width: 2.65rem; height: 2.65rem; display: grid; place-items: center; color: var(--ink); background: var(--yellow); font-family: 'Space Mono', monospace; font-weight: 700; font-size: 1.3rem; line-height: 1; }
.brand-copy { display: grid; gap: .05rem; line-height: 1.15; }
.brand-copy strong { font-family: 'Space Mono', monospace; font-size: .9rem; letter-spacing: .03em; }
.brand-copy small { color: var(--copy-muted); font-size: .52rem; letter-spacing: .12em; }
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.8vw, 3rem); color: var(--copy-soft); font-size: .72rem; letter-spacing: .06em; }
.site-nav a { position: relative; padding: .45rem 0; transition: color .2s ease; }
.site-nav a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--yellow); transition: right .25s var(--ease); }
.site-nav a:hover { color: var(--yellow); }
.site-nav a:hover::after { right: 0; }
.nav-cta { padding: .8rem 1rem !important; color: var(--ink); background: var(--yellow); }
.nav-cta:hover { color: var(--ink) !important; background: #fff; }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; color: var(--yellow); background: transparent; cursor: pointer; }
.menu-toggle span { width: 1.35rem; height: 1px; display: block; margin: .3rem auto; background: currentColor; transition: transform .2s var(--ease), opacity .2s ease; }

.hero { position: relative; min-height: min(860px, calc(100vh - 8rem)); overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #111 0%, rgba(17,17,17,.9) 35%, rgba(17,17,17,.3) 67%, rgba(17,17,17,.65) 100%), url('assets/generated/hero-section.png') center/cover no-repeat; opacity: .88; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .17; pointer-events: none; background-image: linear-gradient(rgba(255,235,59,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,235,59,.08) 1px, transparent 1px); background-size: 5rem 5rem; mask-image: linear-gradient(90deg, #000, transparent 72%); }
.hero__texture { position: absolute; width: 38vw; height: 38vw; top: 9rem; right: -15vw; border: 1px solid rgba(255,235,59,.4); transform: rotate(45deg); opacity: .55; }
.hero__grid { min-height: min(860px, calc(100vh - 8rem)); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); padding-top: 3rem; padding-bottom: 3rem; }
.hero__copy { position: relative; z-index: 2; max-width: 41rem; }
.eyebrow { margin: 0 0 1.35rem; color: var(--yellow); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { display: inline-block; margin-right: .9rem; color: var(--copy-muted); }
.eyebrow--dark { color: #595700; }
.eyebrow--dark span { color: rgba(17,17,17,.55); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Space Mono', monospace; font-weight: 700; letter-spacing: -.075em; line-height: .98; }
h1 { max-width: 780px; margin-bottom: 2rem; font-size: clamp(3.8rem, 8.5vw, 8.4rem); }
h1 em, h2 em { color: var(--yellow); font-style: normal; }
.hero__lead { max-width: 34rem; margin-bottom: 2.6rem; color: var(--copy-soft); font-size: .92rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { min-height: 3.25rem; display: inline-flex; align-items: center; justify-content: center; gap: 1.1rem; padding: .8rem 1.25rem; border: 1px solid transparent; font-size: .75rem; letter-spacing: .04em; cursor: pointer; transition: transform .2s var(--ease), color .2s ease, background .2s ease, border-color .2s ease; }
.button:active { transform: scale(.97); }
.button--primary { color: var(--ink); background: var(--yellow); }
.button--primary:hover { background: #fff; }
.button--ghost { border-color: rgba(255,235,59,.65); color: var(--yellow); background: transparent; }
.button--ghost:hover { color: var(--ink); background: var(--yellow); }
.button--wide { width: 100%; margin-top: .8rem; }
.hero__meta { display: flex; gap: clamp(1.2rem, 4vw, 3.8rem); margin-top: 4rem; padding-top: 1.3rem; border-top: 1px solid var(--line-dark); }
.hero__meta div { display: grid; gap: .15rem; }
.hero__meta strong { color: var(--yellow); font-family: 'Space Mono', monospace; font-size: 1.9rem; letter-spacing: -.08em; line-height: 1; }
.hero__meta strong span { font-size: .85em; }
.hero__meta small { color: var(--copy-muted); font-size: .62rem; letter-spacing: .02em; }
.hero__visual { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.hero-image-frame { position: relative; width: 100%; max-width: 36rem; margin-left: auto; padding: .65rem; border: 1px solid rgba(255,235,59,.5); background: rgba(0,0,0,.2); transform: rotate(2.3deg); }
.hero-image-frame::before { content: ''; position: absolute; z-index: -1; inset: 1rem -1rem -1rem 1rem; border: 1px solid rgba(255,255,255,.2); }
.hero-image-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.4) contrast(1.12) brightness(.72); }
.image-stamp { position: absolute; right: -1.5rem; bottom: 1.8rem; display: grid; gap: .2rem; padding: .7rem .8rem; color: var(--ink); background: var(--yellow); font-family: 'Space Mono', monospace; font-weight: 700; transform: rotate(-2.3deg); }
.image-stamp span { font-size: .8rem; letter-spacing: .08em; }
.image-stamp small { font-family: 'DM Mono', monospace; font-size: .55rem; font-weight: 400; }
.hero-note { display: flex; align-items: center; gap: .8rem; margin: 2rem 0 0 auto; color: var(--copy-muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; }
.hero-note .line { width: 3rem; height: 1px; background: var(--yellow); }
.hero__scroll { position: absolute; bottom: 1.5rem; left: 50%; display: flex; align-items: center; gap: .75rem; color: var(--copy-muted); font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; transform: translateX(-50%); }
.hero__scroll span { width: 2.3rem; height: 1px; background: var(--yellow); }

.services { position: relative; overflow: hidden; padding: var(--space) 0; }
.services__wash { position: absolute; inset: 0; opacity: .11; background: linear-gradient(90deg, var(--paper), rgba(240,238,232,.84)), url('assets/generated/services-background.png') center/cover; mix-blend-mode: multiply; pointer-events: none; }
.services > * { position: relative; }
.section-heading { margin-bottom: 4rem; }
.section-heading--split { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 4rem; }
h2 { margin-bottom: 0; font-size: clamp(3rem, 6vw, 6rem); }
h2 span { color: var(--yellow-deep); }
.section-intro { max-width: 24rem; margin: 0 0 .4rem auto; color: rgba(17,17,17,.62); font-size: .86rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.service-card { position: relative; min-height: 20rem; padding: 2.1rem 1.8rem 1.6rem; overflow: hidden; background: rgba(240,238,232,.88); transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease); }
.service-card:hover { z-index: 1; color: var(--paper); background: var(--ink); transform: translateY(-.35rem); }
.service-card::after { content: ''; position: absolute; right: -3rem; bottom: -5rem; width: 11rem; height: 11rem; border: 1px solid rgba(17,17,17,.15); border-radius: 50%; transition: border-color .25s ease, transform .35s var(--ease); }
.service-card:hover::after { border-color: rgba(255,235,59,.38); transform: scale(1.35); }
.service-index { position: absolute; top: 1.4rem; right: 1.6rem; color: rgba(17,17,17,.35); font-size: .68rem; }
.service-card:hover .service-index { color: rgba(255,235,59,.75); }
.service-icon { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; margin-bottom: 4rem; border: 1px solid rgba(17,17,17,.32); color: var(--ink); font-family: 'Space Mono', monospace; font-size: 1.1rem; }
.service-card:hover .service-icon { border-color: var(--yellow); color: var(--yellow); }
.service-card h3 { max-width: 12rem; margin-bottom: .7rem; font-size: 1.05rem; letter-spacing: -.05em; }
.service-card p { max-width: 17rem; margin-bottom: 1.5rem; color: rgba(17,17,17,.58); font-size: .74rem; }
.service-card:hover p { color: var(--copy-soft); }
.service-card a { position: absolute; bottom: 1.5rem; color: var(--ink); font-size: .68rem; }
.service-card:hover a { color: var(--yellow); }
.service-card a span { display: inline-block; margin-left: .45rem; transition: transform .2s var(--ease); }
.service-card a:hover span { transform: translateX(.3rem); }
.service-card--accent { color: var(--ink); background: var(--yellow); }
.service-card--accent:hover { color: var(--ink); background: #fff; }
.service-card--accent .service-index { color: rgba(17,17,17,.5); }
.service-card--accent p { color: rgba(17,17,17,.68); }
.service-card--accent a { color: var(--ink); }

.projects { position: relative; padding: var(--space) 0 6rem; overflow: hidden; }
.projects::before { content: 'JUANCAR'; position: absolute; top: 7rem; right: -5rem; color: rgba(255,255,255,.025); font-family: 'Space Mono', monospace; font-size: clamp(5rem, 18vw, 15rem); font-weight: 700; letter-spacing: -.1em; transform: rotate(90deg); pointer-events: none; }
.section-heading--projects { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 4rem; }
.section-heading--projects .section-intro { color: var(--copy-muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.5rem; }
.filter-button { padding: .65rem .85rem; border: 1px solid var(--line-dark); color: var(--copy-muted); background: transparent; font-size: .68rem; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.filter-button:hover, .filter-button.is-active { border-color: var(--yellow); color: var(--ink); background: var(--yellow); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 8rem; gap: .7rem; }
.gallery-card { position: relative; grid-column: span 4; grid-row: span 3; overflow: hidden; background: var(--panel); animation: gallery-in .45s var(--ease) both; }
.gallery-card:nth-child(2n) { grid-row: span 4; }
.gallery-card:nth-child(5n) { grid-column: span 6; grid-row: span 4; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease), filter .4s ease; filter: grayscale(.22) contrast(1.06); }
.gallery-card:hover img { transform: scale(1.06); filter: grayscale(0) contrast(1.1); }
.gallery-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(0,0,0,.8)); pointer-events: none; }
.gallery-card__info { position: absolute; z-index: 1; right: 1rem; bottom: .85rem; left: 1rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; color: #fff; }
.gallery-card__info strong { display: block; font-family: 'Space Mono', monospace; font-size: .8rem; line-height: 1.2; }
.gallery-card__info small { color: var(--yellow); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.gallery-card__arrow { color: var(--yellow); font-size: 1.3rem; }
.gallery-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; color: var(--copy-muted); font-size: .68rem; }
.gallery-footer p { display: flex; align-items: center; gap: .7rem; margin: 0; }
.yellow-rule { width: 2rem; height: 1px; display: inline-block; background: var(--yellow); }
.text-link { color: var(--yellow); }
.text-link span { display: inline-block; margin-left: .4rem; transition: transform .2s var(--ease); }
.text-link:hover span { transform: translateX(.3rem); }
@keyframes gallery-in { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: translateY(0); } }

.manifesto { padding: 7rem 0; overflow: hidden; }
.manifesto__grid { display: grid; grid-template-columns: .55fr 1.15fr .9fr; align-items: center; gap: clamp(2rem, 5vw, 6rem); }
.manifesto__number { color: rgba(17,17,17,.12); font-family: 'Space Mono', monospace; font-size: clamp(8rem, 20vw, 18rem); font-weight: 700; letter-spacing: -.2em; line-height: .7; }
.manifesto__number span { color: rgba(17,17,17,.45); font-size: .35em; }
.manifesto__copy h2 { margin-bottom: 2rem; }
.manifesto__copy p:not(.eyebrow) { max-width: 32rem; color: rgba(17,17,17,.68); font-size: .92rem; }
.manifesto__signature { display: flex; align-items: center; gap: .7rem; margin-top: 2.2rem; color: rgba(17,17,17,.58); font-size: .63rem; }
.signature-line { width: 3rem; height: 1px; background: var(--ink); }
.manifesto__image { position: relative; padding: .55rem; border: 1px solid rgba(17,17,17,.35); transform: rotate(-3deg); }
.manifesto__image::after { content: ''; position: absolute; inset: .8rem -.8rem -.8rem .8rem; z-index: -1; border: 1px solid rgba(17,17,17,.32); }
.manifesto__image img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; filter: saturate(.75) contrast(1.08); }

.contact { position: relative; padding: var(--space) 0; overflow: hidden; }
.contact__wash { position: absolute; inset: 0; opacity: .18; background: linear-gradient(90deg, var(--paper) 0%, rgba(240,238,232,.86) 48%, rgba(240,238,232,.65)), url('assets/generated/contact-section.png') center/cover; mix-blend-mode: multiply; pointer-events: none; }
.contact > * { position: relative; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(3rem, 9vw, 9rem); }
.contact__copy h2 { margin-bottom: 1.7rem; }
.contact__copy > p:not(.eyebrow) { max-width: 26rem; color: rgba(17,17,17,.62); font-size: .87rem; }
.contact-details { display: grid; gap: 1.3rem; margin-top: 3rem; }
.contact-details a, .contact-details div { display: grid; gap: .1rem; }
.detail-label { color: rgba(17,17,17,.48); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-details strong { font-family: 'Space Mono', monospace; font-size: 1rem; }
.contact-details a strong { transition: color .2s ease; }
.contact-details a:hover strong { color: #817900; }
.contact-form { padding: clamp(1.4rem, 3vw, 2.5rem); border: 1px solid rgba(17,17,17,.35); background: rgba(255,255,255,.18); }
.form-topline { display: flex; justify-content: space-between; padding-bottom: 1rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line-light); color: rgba(17,17,17,.55); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-form label { display: block; margin: 1.2rem 0 .45rem; color: rgba(17,17,17,.66); font-size: .66rem; }
.contact-form label span { color: #a29400; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(17,17,17,.32); border-radius: 0; outline: 0; padding: .7rem 0; color: var(--ink); background: transparent; font-size: .82rem; resize: vertical; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(17,17,17,.42); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); box-shadow: 0 2px 0 var(--yellow); }
.contact-form .button { margin-top: 1.7rem; }
.form-status { min-height: 1.3rem; margin: .9rem 0 0; color: #655d00; font-size: .68rem; }
.form-legal { margin: 1.2rem 0 0; color: rgba(17,17,17,.47); font-size: .58rem; line-height: 1.5; }

.site-footer { border-top: 1px solid var(--line-dark); padding: 3rem 0 1.2rem; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 2rem; padding-bottom: 4rem; }
.brand--footer { align-self: start; }
.footer-tagline { margin: 0; color: var(--copy-muted); font-family: 'Space Mono', monospace; font-size: 1.1rem; line-height: 1.35; letter-spacing: -.05em; }
.footer-tagline span { color: var(--yellow); }
.footer-contact { display: grid; justify-items: end; gap: .35rem; font-size: .7rem; }
.footer-contact span { color: var(--copy-muted); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-contact a { color: var(--yellow); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); color: var(--copy-muted); font-size: .6rem; }
.footer-bottom a { color: var(--yellow); }

.reveal { opacity: 0; transform: translateY(1rem); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal--delay { transition-delay: .16s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .header-inner, .topline__inner { width: min(var(--max), calc(100% - 2rem)); }
  .container { width: min(var(--max), calc(100% - 2rem)); }
  .site-nav { gap: 1.25rem; }
  .hero__grid { grid-template-columns: 1fr; min-height: auto; padding-top: 6rem; padding-bottom: 6rem; }
  .hero__visual { position: absolute; z-index: -1; inset: 5rem 0 3rem 38%; opacity: .55; }
  .hero__visual .hero-image-frame { max-width: 32rem; }
  .hero__copy { max-width: 45rem; }
  .section-heading--split, .section-heading--projects { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-intro { margin-left: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .manifesto__grid { grid-template-columns: .35fr 1fr; }
  .manifesto__image { grid-column: 2; max-width: 19rem; }
  .contact__grid { gap: 3rem; }
}

@media (max-width: 650px) {
  body { font-size: 14px; }
  .topline__inner { min-height: 2rem; font-size: .57rem; }
  .topline__inner > span { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-inner { min-height: 4.7rem; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 0; top: 4.7rem; z-index: -1; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 2rem 1.5rem; border-top: 1px solid var(--line-dark); background: rgba(17,17,17,.98); opacity: 0; pointer-events: none; transform: translateY(-.7rem); transition: opacity .25s ease, transform .25s var(--ease); }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line-dark); font-size: .85rem; }
  .nav-cta { margin-top: 1rem; padding: 1rem !important; text-align: center; }
  .menu-toggle.is-open span:first-child { transform: translateY(.4rem) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:last-child { transform: translateY(-.4rem) rotate(-45deg); }
  h1 { font-size: clamp(3.3rem, 16vw, 5.7rem); }
  h2 { font-size: clamp(2.6rem, 13vw, 4.3rem); }
  .hero { min-height: auto; }
  .hero__grid { padding-top: 4.5rem; padding-bottom: 5rem; }
  .hero__visual { inset: 7rem 0 3rem 25%; opacity: .3; }
  .hero__lead { font-size: .78rem; }
  .hero__actions .button { flex: 1 0 100%; }
  .hero__meta { gap: .9rem; margin-top: 3rem; }
  .hero__meta strong { font-size: 1.45rem; }
  .hero__meta small { font-size: .52rem; }
  .hero__scroll { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 17rem; }
  .service-icon { margin-bottom: 3rem; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .4rem; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-button { flex: 0 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 10rem; gap: .5rem; }
  .gallery-card, .gallery-card:nth-child(2n), .gallery-card:nth-child(5n) { grid-column: span 1; grid-row: span 2; }
  .gallery-card:nth-child(3n) { grid-row: span 3; }
  .gallery-card__info { right: .6rem; bottom: .6rem; left: .6rem; }
  .gallery-card__info strong { font-size: .65rem; }
  .gallery-footer { align-items: start; flex-direction: column; }
  .manifesto { padding: 5rem 0; }
  .manifesto__grid { grid-template-columns: 1fr; gap: 2rem; }
  .manifesto__number { position: absolute; right: -.5rem; margin-top: -3rem; font-size: 9rem; }
  .manifesto__copy { position: relative; z-index: 1; }
  .manifesto__image { grid-column: auto; max-width: 80%; margin: 0 0 0 auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.2rem; }
  .footer-main { grid-template-columns: 1fr; gap: 2.2rem; padding-bottom: 3rem; }
  .footer-contact { justify-items: start; }
  .footer-bottom { align-items: start; flex-direction: column; gap: .55rem; }
}

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