:root {
  --ink: #0b0d0e;
  --panel: #111516;
  --paper: #d9dbd7;
  --muted: #9da5a1;
  --line: rgba(217, 219, 215, 0.2);
  --accent: #e56e58;
  --max: 1320px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: "Arial Narrow", "Helvetica Neue", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.grain { position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); }
.site-header { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: flex-end; align-items: center; padding: 24px clamp(20px, 5vw, 76px); color: #fff; }
.header-link, .text-link { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.header-link { text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 16px rgba(0,0,0,.4); }
.header-link span, .text-link span { color: var(--accent); }
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-image-wrap { position: absolute; inset: 0; overflow: hidden; background: #151918; }
.hero-image { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover; object-position: center; filter: saturate(.82) contrast(1.05); transform: scale(1.02); animation: room-drift 24s var(--ease-in-out) infinite alternate; will-change: transform; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,8,8,.78), rgba(6,8,8,.18) 65%, rgba(6,8,8,.18)), linear-gradient(0deg, rgba(6,8,8,.66), transparent 42%), linear-gradient(180deg, rgba(6,8,8,.62), transparent 16%); }
.hero-content { position: relative; z-index: 1; width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 0 0 clamp(72px, 11vh, 136px); }
.brand-intro { position: relative; width: min(276px, 62vw); margin-bottom: 34px; animation: marca-entra 1100ms var(--ease-out) both; }
.brand-intro img { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 46px rgba(0,0,0,.62)); animation: marca-respira 8s var(--ease-in-out) 1.2s infinite alternate; }
/* El barrido de luz se recorta con la propia silueta del logo: la luz solo cruza el oro y el
   marmol, nunca el rectangulo de la imagen. */
.brand-intro .brillo { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: url(logo-marmol-lifestyle.webp); mask-image: url(logo-marmol-lifestyle.webp);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(104deg, transparent 41%, rgba(255,255,255,.72) 50%, transparent 59%);
  background-size: 300% 100%; background-repeat: no-repeat;
  animation: brillo-metal 9s var(--ease-in-out) 1.6s infinite; }
.kicker, .section-label { margin: 0; color: var(--accent); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(3.8rem, 10vw, 9.5rem); line-height: .83; letter-spacing: -.075em; font-weight: 700; }
h1 em, h2 em { color: var(--accent); font-style: normal; }
.hero-intro { max-width: 330px; margin-bottom: 30px; color: rgba(255,255,255,.78); font-size: 1rem; line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-width: 195px; padding: 14px 16px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: background .25s ease, color .25s ease, transform .25s ease; }
.button:hover { transform: translateY(-3px); }
.button-light { background: #fff; color: var(--ink); }
.button-accent { background: var(--accent); color: #1b0d0a; }
.button-outline { background: transparent; color: var(--paper); border: 1px solid var(--line); }
.button-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero-index { position: absolute; right: clamp(20px, 5vw, 76px); bottom: 46px; z-index: 1; font-size: 2.1rem; letter-spacing: -.06em; }
.hero-index span { color: rgba(255,255,255,.44); font-size: .8rem; letter-spacing: .08em; }
.section-pad { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding-top: clamp(90px, 13vw, 190px); padding-bottom: clamp(90px, 13vw, 190px); }
.manifesto { border-bottom: 1px solid var(--line); }
.manifesto-grid, .materials-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 8vw; margin-top: 46px; }
h2 { margin-bottom: 0; font-size: clamp(2.8rem, 6.2vw, 7.3rem); line-height: .88; letter-spacing: -.07em; font-weight: 700; }
.manifesto-copy { max-width: 380px; padding-top: 9px; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.manifesto-copy p + p { margin-top: 22px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 100px; }
.principles article { padding-top: 14px; border-top: 1px solid var(--line); }
.principles span { color: var(--accent); font-size: .7rem; letter-spacing: .1em; }
.principles h3 { margin: 32px 0 12px; font-size: 1.4rem; letter-spacing: -.04em; }
.principles p { max-width: 220px; margin: 0; color: var(--muted); line-height: 1.5; }
.tour { overflow: hidden; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 50px; }
.section-heading h2 { max-width: 650px; margin-top: 38px; }
.image-sequence { display: grid; grid-template-columns: repeat(12, 1fr); gap: 26px 14px; align-items: start; }
.sequence-item { grid-column: span 4; margin: 0; opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.sequence-item.is-visible { opacity: 1; transform: translateY(0); }
.sequence-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.88); transition: filter .4s ease, transform .4s ease; }
.sequence-item:hover img { filter: saturate(1); transform: scale(.985); }
.sequence-wide { grid-column: span 8; }
.sequence-wide img { aspect-ratio: 16 / 10; }
.sequence-tall { margin-top: 120px; }
.sequence-tall img { aspect-ratio: 3 / 5; }
figcaption { display: flex; gap: 16px; padding-top: 13px; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
figcaption span { color: var(--accent); }
.materials { background: var(--paper); color: var(--ink); width: 100%; max-width: none; padding-left: max(20px, calc((100% - var(--max)) / 2)); padding-right: max(20px, calc((100% - var(--max)) / 2)); }
.materials .section-label { color: #a33f2e; }
.material-list { border-top: 1px solid rgba(11,13,14,.28); }
.material-list div { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(11,13,14,.18); font-size: .83rem; }
.material-list span { color: #565c59; }
.material-list strong { font-weight: 500; text-align: right; }
.closing { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.closing h2 { margin: 34px 0 40px; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.dossier-qr { display: flex; align-items: center; gap: 18px; margin-top: 56px; }
.dossier-qr img { width: 76px; height: 76px; padding: 8px; background: #fff; flex: none; }
.dossier-qr span { color: var(--muted); font-size: .68rem; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
@keyframes marca-entra { from { opacity: 0; transform: translateY(20px) scale(.955); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes marca-respira { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes brillo-metal { 0% { background-position: 100% 0; opacity: 0; } 3% { opacity: 1; } 13% { opacity: 1; } 16% { background-position: 0 0; opacity: 0; } 100% { background-position: 0 0; opacity: 0; } }
@keyframes room-drift { from { transform: scale(1.02) translate3d(-.25%, -.15%, 0); } to { transform: scale(1.08) translate3d(.35%, .2%, 0); } }

@media (max-width: 720px) {
  .site-header { padding: 18px 20px; }
  .brand-intro { width: min(232px, 58vw); }
  .header-link { font-size: .6rem; }
  .hero-content { padding-bottom: 90px; }
  h1 { font-size: clamp(3.8rem, 18vw, 7rem); }
  .hero-index { right: 20px; bottom: 28px; font-size: 1.5rem; }
  .manifesto-grid, .materials-grid { grid-template-columns: 1fr; gap: 36px; }
  .principles { grid-template-columns: 1fr; gap: 30px; margin-top: 62px; }
  .principles h3 { margin-top: 15px; }
  .section-heading { display: block; }
  .section-heading h2 { margin: 32px 0; }
  .image-sequence { display: flex; overflow-x: auto; gap: 16px; margin-right: -20px; padding-right: 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .image-sequence::-webkit-scrollbar { display: none; }
  .sequence-item, .sequence-wide, .sequence-tall { flex: 0 0 82vw; margin-top: 0; scroll-snap-align: start; }
  .sequence-item img, .sequence-wide img, .sequence-tall img { aspect-ratio: 4 / 5; }
  .materials-grid h2 { font-size: clamp(3rem, 15vw, 5rem); }
  .material-list div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .material-list strong { text-align: left; }
  .closing-actions { flex-direction: column; align-items: stretch; }
  .closing-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image { animation: none; transform: none; }
  .brand-intro .brillo { display: none; }
  .brand-intro img { transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
