/* ==========================================================
   IBEROCUN — Inmuebles que funcionan, sin hacer ruido.
   Concepto: editorial arquitectónico. El techo (chevron) del logotipo
   se convierte en máscara de imagen, motivo gráfico y transición.
   ========================================================== */

:root {
  --navy: #13283a;
  --navy-deep: #0b1925;
  --cream: #f5f0e6;
  --sand: #e7dec9;
  --brass: #b98f4e;
  --text: #13283a;
  --muted: #5b6872;
  --line: rgba(19, 40, 58, .18);
  --line-light: rgba(245, 240, 230, .28);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: clamp(3rem, 6vw, 6rem);
  --space-xl: clamp(6rem, 13vw, 12rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brass); color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: .75rem 1rem; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-xl); position: relative; }
.section--navy { background: var(--navy); color: var(--cream); }

/* ---------- Tipografía ---------- */
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.eyebrow--light { color: var(--cream); opacity: .9; }

.statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 22ch;
}
.statement--sm { font-size: clamp(1.8rem, 3.4vw, 3.2rem); max-width: 26ch; }
.statement--light { color: var(--cream); }
.statement em, .hero__title em { font-style: italic; font-weight: 300; color: var(--brass); }

.lead { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.55; }

/* Etiqueta de sección numerada (línea + número) */
.sec-label { display: flex; align-items: center; gap: 1rem; margin-bottom: var(--space-md); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; }
.sec-label::before { content: ""; width: 56px; height: 1px; background: var(--brass); order: 2; }
.sec-label span { order: 1; color: var(--brass); font-weight: 600; }
.sec-label b { order: 3; font-weight: 500; }
.sec-label--light { color: var(--cream); }

/* Enlaces y botones */
.link { position: relative; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding-block: .25rem; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.link--light { color: var(--cream); display: table; margin-top: 1.25rem; }

.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.35rem; border: 1px solid currentColor; border-radius: 99px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease-out); }
.pill::before { content: ""; position: absolute; inset: 0; background: var(--cream); transform: translateY(101%); transition: transform .55s var(--ease-out); z-index: -1; }
.pill:hover { color: var(--navy); }
.pill:hover::before { transform: translateY(0); }
.pill span { display: inline-block; transition: transform .5s var(--ease-out); }
.pill:hover span { transform: translateX(4px); }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--navy); display: grid; place-content: center; justify-items: center; gap: 1.5rem; transition: clip-path 1.1s var(--ease) .15s; clip-path: inset(0 0 0 0); }
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__logo { width: 96px; filter: brightness(0) invert(1); animation: pulse 1.6s ease-in-out infinite; }
.loader__bar { width: 120px; height: 1px; background: rgba(245, 240, 230, .25); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--brass); transform-origin: left; animation: load 1.2s var(--ease) forwards; }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--gutter); color: var(--navy); transition: background .5s var(--ease-out), color .5s, transform .6s var(--ease-out), height .5s var(--ease-out); }
.header.is-light { color: var(--cream); }
.header.is-solid { background: rgba(245, 240, 230, .94); backdrop-filter: blur(8px); --header-h: 72px; height: 72px; box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__nav { display: flex; gap: 2.25rem; align-items: center; }
.header__nav--right { justify-content: flex-end; }
.header__logo { display: block; }
.header__logo img { height: calc(var(--header-h) - 18px); width: auto; transition: filter .5s, height .5s var(--ease-out); }
.header.is-light .header__logo img { filter: brightness(0) invert(1); }
.header.is-solid.is-light { color: var(--navy); }
.header.is-solid.is-light .header__logo img { filter: none; }
.header.is-solid .pill::before { background: var(--navy); }
.header.is-solid .pill:hover { color: var(--cream); }

.burger { display: none; width: 44px; height: 44px; position: relative; justify-self: end; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; background: var(--navy); color: var(--cream); display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: var(--header-h) var(--gutter) 3rem; clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); visibility: hidden; }
.menu.is-open { clip-path: inset(0); visibility: visible; }
.menu a { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.8rem, 12vw, 5rem); line-height: 1.15; display: flex; align-items: baseline; gap: 1rem; }
.menu a small { font-family: var(--font-body); font-size: .75rem; letter-spacing: .2em; color: var(--brass); }
.menu p { margin-top: 2rem; font-size: .9rem; opacity: .65; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; color: var(--cream); overflow: hidden; background: var(--navy-deep); }
.hero__slides, .slide { position: absolute; inset: 0; }
.slide { margin: 0; clip-path: inset(100% 0 0 0); z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.slide.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.slide.is-entering { z-index: 3; animation: wipe 1.5s var(--ease) forwards; }
.slide.is-entering img { animation: unzoom 1.9s var(--ease-out) forwards; }
.slide.is-active:not(.is-entering) img { animation: kenburns 9s linear forwards; }
@keyframes wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes unzoom { from { transform: scale(1.3); } to { transform: scale(1.08); } }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(180deg, rgba(11, 25, 37, .55) 0%, rgba(11, 25, 37, .05) 35%, rgba(11, 25, 37, .15) 60%, rgba(11, 25, 37, .75) 100%); }

.hero__content { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--header-h) var(--gutter) 8rem; pointer-events: none; }
.hero__content .eyebrow { margin-bottom: 1.75rem; }
.hero__title { font-family: var(--font-display); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(2.7rem, 8.4vw, 8.5rem); line-height: .98; letter-spacing: -.025em; text-shadow: 0 2px 40px rgba(0, 0, 0, .25); }
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease-out); }
.is-ready .line > span { transform: none; }
.is-ready .line:nth-child(2) > span { transition-delay: .12s; } .is-ready .line:nth-child(3) > span { transition-delay: .24s; }
.hero__content [data-in] { opacity: 0; transform: translateY(14px); transition: opacity 1.2s .1s, transform 1.2s .1s var(--ease-out); }
.is-ready .hero__content [data-in] { opacity: .9; transform: none; }

.hero__ui { position: absolute; z-index: 6; inset: auto var(--gutter) 2.25rem var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 2rem; }
.hero__label { display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-bottom: .4rem; font-weight: 600; }
.hero__caption p { max-width: 30ch; font-size: 1rem; line-height: 1.45; }
.hero__caption { transition: opacity .5s; } .hero__caption.is-swap { opacity: 0; }
.hero__controls { display: flex; align-items: center; gap: 1.25rem; }
.arrow { width: 52px; height: 52px; border: 1px solid var(--line-light); border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease-out); }
.arrow:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); transform: scale(1.06); }
.hero__count { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-size: 1.1rem; min-width: 96px; justify-content: center; }
.hero__count b { font-weight: 400; } .hero__count i { width: 28px; height: 1px; background: var(--cream); opacity: .5; } .hero__count span { opacity: .6; }
.hero__scroll { justify-self: end; display: flex; align-items: center; gap: .9rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 56px; background: rgba(245, 240, 230, .35); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--cream); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__progress { position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(245, 240, 230, .15); }
.hero__progress i { display: block; height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0); }

/* ---------- Nosotros ---------- */
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--space-md); row-gap: var(--space-lg); align-items: start; }
.about__grid .sec-label { grid-column: 1 / -1; margin-bottom: 0; }
.about__text { grid-column: 1 / span 6; display: grid; gap: 1.5rem; align-content: start; }
.about__text .statement { margin-bottom: 1rem; max-width: 18ch; }
.about__text p:not(.lead) { color: var(--muted); max-width: 52ch; }
.about__visual { grid-column: 8 / -1; grid-row: 2; position: relative; min-height: 640px; }

/* Máscara "techo": el chevron del logotipo */
.roof { overflow: hidden; clip-path: polygon(50% 0, 100% 26%, 100% 100%, 0 100%, 0 26%); background: var(--sand); }
.roof img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.roof--a { position: absolute; top: 0; right: 0; width: 72%; aspect-ratio: 3 / 4; }
.roof--b { position: absolute; bottom: -4rem; left: 0; width: 52%; aspect-ratio: 1 / 1.15; border: 0; }
.about__tag { position: absolute; right: 0; bottom: -3.5rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.mvf { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--space-lg); margin-top: calc(var(--space-xl) + 2rem); }
.mvf__item { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.mvf__item h3 small { display: block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 1.25rem; }
.mvf__item p { color: var(--muted); max-width: 48ch; }
.mvf__item--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-lg); }
.mvf__item--wide h3 { grid-column: 1 / -1; }
.quote { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.2; color: var(--navy) !important; max-width: 24ch !important; }

/* Valores */
.values { margin-top: var(--space-xl); }
.values__list { border-top: 1px solid var(--line); }
.values__list li { display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; gap: 1rem var(--space-md); padding: 1.7rem 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .6s var(--ease-out); cursor: default; }
.values__list li::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--navy); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); z-index: -1; }
.values__list li:hover, .values__list li:focus-visible { padding-inline: 1rem; color: var(--cream); outline-offset: -4px; }
.values__list li:hover::before, .values__list li:focus-visible::before { transform: scaleY(1); }
.values__n { font-size: .78rem; letter-spacing: .2em; color: var(--brass); font-weight: 600; }
.values__list h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.1; }
.values__list p { color: var(--muted); transition: color .5s; max-width: 46ch; }
.values__list li:hover p, .values__list li:focus-visible p { color: rgba(245, 240, 230, .8); }
.values { isolation: isolate; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--navy); color: var(--cream); padding-block: 2.2rem; border-block: 1px solid rgba(245, 240, 230, .1); }
.marquee__track { display: flex; align-items: center; gap: 3rem; width: max-content; animation: slide 38s linear infinite; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1; white-space: nowrap; }
.marquee__track i { width: 0; height: 0; border-inline: .4em solid transparent; border-bottom: .55em solid var(--brass); flex: none; } /* techo */
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Servicios ---------- */
.services .statement { margin-bottom: var(--space-lg); }
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-lg); align-items: start; }
.services__stage { position: sticky; top: calc(var(--header-h) + 2rem); height: calc(100vh - var(--header-h) - 4rem); height: calc(100svh - var(--header-h) - 4rem); min-height: 420px; }
.services__frame { position: relative; height: 100%; clip-path: polygon(50% 0, 100% 12%, 100% 100%, 0 100%, 0 12%); background: var(--navy); }
.services__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .9s var(--ease-out), transform 1.6s var(--ease-out); }
.services__frame img.is-on { opacity: 1; transform: scale(1); }
.services__num { position: absolute; left: 1.75rem; bottom: 1.25rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(4rem, 8vw, 8rem); line-height: 1; color: var(--cream); mix-blend-mode: difference; }

.svc { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-block: 3rem; border-top: 1px solid var(--line); opacity: .35; transition: opacity .6s; }
.svc.is-on { opacity: 1; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__img { display: none; }
.svc__n { font-size: .78rem; letter-spacing: .22em; color: var(--brass); font-weight: 600; margin-bottom: 1.25rem; }
.svc h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 3.2vw, 3.2rem); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 1.25rem; max-width: 16ch; }
.svc p { color: var(--muted); max-width: 44ch; }

/* ---------- Por qué ---------- */
.why__list { margin-top: var(--space-lg); counter-reset: w; }
.why__list li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--space-md); padding: 2.2rem 0; border-top: 1px solid var(--line-light); }
.why__list li:last-child { border-bottom: 1px solid var(--line-light); }
.why__list li:nth-child(even) { padding-left: clamp(0rem, 12vw, 12rem); }
.why__list li > span { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--brass); transition: color .6s; }
.why__list li:hover > span { color: var(--brass); }
.why__list h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.15; margin-bottom: .6rem; max-width: 30ch; }
.why__list p { color: rgba(245, 240, 230, .72); max-width: 52ch; }

/* ---------- Contacto ---------- */
.contact { color: var(--cream); overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: 0; background: var(--navy-deep); }
.contact__bg img { width: 100%; height: 120%; object-fit: cover; opacity: .55; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 25, 37, .92), rgba(11, 25, 37, .55)); }
.contact__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-lg); align-items: end; }
.contact__addr { font-style: normal; margin-top: var(--space-md); line-height: 1.8; opacity: .92; }
.contact__addr small { display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-bottom: .6rem; font-weight: 600; }

.form { display: grid; gap: 1.5rem; }
.field { position: relative; }
.field input, .field textarea { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line-light); color: var(--cream); font: inherit; padding: 1.3rem 0 .6rem; border-radius: 0; resize: none; transition: border-color .4s; }
.field label { position: absolute; left: 0; top: 1.2rem; font-size: 1rem; opacity: .7; pointer-events: none; transition: transform .45s var(--ease-out), opacity .4s, color .4s; transform-origin: left; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-1.15rem) scale(.78); color: var(--brass); opacity: 1; }
.field em { display: none; font-style: normal; font-size: .8rem; color: #f0a38c; margin-top: .3rem; }
.field.is-error em { display: block; } .field.is-error input, .field.is-error textarea { border-color: #f0a38c; }

.btn { justify-self: start; display: inline-flex; align-items: center; gap: 1rem; background: var(--cream); color: var(--navy); padding: 1.1rem 1.8rem; border-radius: 99px; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease-out), transform .3s; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--brass); transform: translateY(101%); transition: transform .55s var(--ease-out); z-index: -1; }
.btn:hover::before { transform: none; } .btn:hover { color: var(--navy-deep); } .btn:active { transform: scale(.97); }
.btn i { font-style: normal; transition: transform .5s var(--ease-out); } .btn:hover i { transform: translateX(6px); }
.btn.is-sent { pointer-events: none; opacity: .5; }
.form__ok { color: var(--brass); font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: var(--cream); padding-top: var(--space-lg); }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-lg); align-items: center; padding-bottom: var(--space-lg); }
.footer__logo { width: clamp(110px, 12vw, 170px); filter: brightness(0) invert(1); }
.footer__claim { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 4vw, 3.8rem); line-height: 1.05; letter-spacing: -.015em; }
.footer__claim em { color: var(--brass); }
.footer__nav { display: grid; gap: .5rem; text-align: right; }
.footer__nav a { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; transition: opacity .3s, color .3s; }
.footer__nav a:hover { opacity: 1; color: var(--brass); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgba(245, 240, 230, .12); font-size: .8rem; opacity: .65; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cursor (solo punteros finos) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; z-index: 250; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 1px solid var(--brass); border-radius: 50%; pointer-events: none; opacity: 0; transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background .3s, opacity .3s; }
  .cursor.is-visible { opacity: 1; }
  .cursor.is-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(185, 143, 78, .18); }
}

/* ---------- Reveals ---------- */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 28ms); }
.is-in .w > span { transform: none; }
.js-off [data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about__text { grid-column: 1 / -1; }
  .about__visual { grid-column: 1 / -1; grid-row: auto; min-height: 560px; margin-bottom: 4rem; }
  .services__grid { grid-template-columns: 1fr; }
  .services__stage { display: none; }
  .svc { min-height: 0; opacity: 1; padding-block: 2.5rem; }
  .svc__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1.5rem; clip-path: polygon(50% 0, 100% 14%, 100% 100%, 0 100%, 0 14%); }
  .svc h3 { max-width: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .values__list li { grid-template-columns: 3.5rem 1fr; } .values__list p { grid-column: 2; }
}
@media (max-width: 820px) {
  :root { --header-h: 72px; }
  .header { grid-template-columns: auto 1fr; }
  .header__nav { display: none; }
  .burger { display: block; }
  .hero__ui { grid-template-columns: 1fr auto; row-gap: 1.25rem; }
  .hero__caption { grid-column: 1 / -1; grid-row: 1; } .hero__caption p { max-width: 36ch; }
  .hero__controls { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .hero__scroll { display: none; }
  .hero__content { padding-bottom: 12rem; }
  .arrow { width: 46px; height: 46px; }
  .mvf { grid-template-columns: 1fr; margin-top: var(--space-xl); } .mvf__item--wide { grid-template-columns: 1fr; }
  .roof--a { width: 80%; } .roof--b { width: 55%; bottom: -3rem; }
  .why__list li { grid-template-columns: 3.2rem 1fr; gap: 1rem; } .why__list li:nth-child(even) { padding-left: 0; }
  .footer__grid { grid-template-columns: 1fr; text-align: left; } .footer__nav { text-align: left; grid-auto-flow: column; justify-content: start; gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
  [data-reveal], .w > span, .line > span { opacity: 1; transform: none; }
}
