@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Raleway";
  src: url("assets/raleway-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  --ink: #11110f;
  --ink-soft: #26251f;
  --paper: #f1eee6;
  --paper-deep: #e4dfd3;
  --white: #fffdf8;
  --gold: #d8b64c;
  --line: rgba(17, 17, 15, .18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --pad: clamp(1.25rem, 5vw, 6rem);
  --max: 90rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; transform: translateY(-180%); padding: .8rem 1rem; background: var(--white); color: var(--ink); font-weight: 700; }
.skip-link:focus { transform: none; }

.site-header { position: fixed; top: 0; left: 0; z-index: 50; isolation: isolate; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1.25rem var(--pad); color: var(--white); transition: background .25s ease, padding .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.site-header::before { display: none; }
.brand-wave { position: absolute; top: 0; left: 0; z-index: -1; width: 100vw; height: 8.2rem; fill: var(--ink); filter: drop-shadow(12px 12px 18px rgba(17,17,15,.1)); transition: opacity .2s ease, transform .3s ease; }
.site-header.scrolled { padding-top: .75rem; padding-bottom: .75rem; background: rgba(17, 17, 15, .94); border-color: rgba(255,255,255,.12); backdrop-filter: blur(14px); }
.site-header.scrolled .brand-wave { opacity: 0; transform: translateY(-1rem); }
.site-header.frame-start:not(.scrolled) { color: var(--white); }
.site-header.frame-start:not(.scrolled) .nav-cta { border-color: rgba(255,255,255,.55); }
.brand { position: relative; display: grid; padding: .55rem .7rem .65rem; margin-top: -1.25rem; background: transparent; text-decoration: none; line-height: 1; transition: margin .25s ease, padding .25s ease; }
.brand-logo { position: relative; z-index: 1; display: block; width: auto; height: 38px; object-fit: contain; }
.site-header.scrolled .brand { margin-top: -.75rem; padding-top: .75rem; padding-bottom: .5rem; }
.brand-name { font-size: 1.1rem; font-weight: 300; letter-spacing: .08em; }
.brand-name span { font-weight: 800; }
.brand-subtitle { margin-top: .32rem; font-size: .52rem; letter-spacing: .48em; }
.main-nav { position: absolute; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: center; height: 3.7rem; gap: clamp(1rem, 2.4vw, 2.4rem); pointer-events: none; font-size: .78rem; letter-spacing: .04em; }
.main-nav a { pointer-events: auto; text-decoration: none; }
.main-nav > a:not(.nav-cta) { position: relative; left: clamp(4rem, 7vw, 7rem); padding: .8rem 0; }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: .45rem; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.main-nav > a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { position: absolute; right: var(--pad); padding: .7rem 1.1rem; border: 1px solid rgba(255,255,255,.55); transition: background .2s ease, color .2s ease; }
.nav-cta:hover { background: var(--white); color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0 10px; border: 0; background: transparent; color: inherit; }
.menu-toggle span { display: block; width: 100%; height: 1px; margin: 7px 0; background: currentColor; transition: transform .2s ease; }
.menu-backdrop { display: none; }

.scroll-story { position: relative; height: 1000svh; background: #ecebe7; }
.frame-stage { position: sticky; top: 0; width: 100%; height: 100svh; overflow: hidden; }
.frame-canvas, .frame-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame-canvas { display: block; }
.frame-opening-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; will-change: opacity; }
.frame-fallback { object-fit: cover; }
.frame-wash { position: absolute; inset: 0; z-index: 1; background: linear-gradient(25deg, rgba(247,244,237,.98) 0%, rgba(247,244,237,.85) 22%, rgba(247,244,237,.35) 48%, rgba(247,244,237,0) 72%); opacity: 1; transition: opacity .08s linear; }
.frame-final-image { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); will-change: opacity, transform; }
.frame-final-shade { position: absolute; inset: 0; z-index: 3; background: linear-gradient(90deg, rgba(11,10,8,.12), rgba(11,10,8,.08) 45%, rgba(11,10,8,.78)); opacity: 0; will-change: opacity; }
.hero-content { position: relative; z-index: 2; max-width: 47rem; padding: clamp(8rem, 17vh, 12rem) var(--pad) clamp(4.5rem, 10vh, 7rem); }
.frame-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; max-width: 47rem; color: var(--ink); will-change: opacity, transform; }
.frame-copy-start { opacity: 1; max-width: 58rem; justify-content: center; padding-top: 6rem; padding-bottom: 6rem; text-align: left; }
.frame-copy-end { position: absolute; right: var(--pad); bottom: clamp(4rem, 10vh, 7rem); z-index: 4; max-width: 34rem; text-align: right; opacity: 0; transform: translateY(24px); will-change: opacity, transform; }
.frame-end-title { margin: 0; color: var(--white); font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.8rem); line-height: .98; letter-spacing: -.045em; }
.frame-end-title em { color: var(--gold); font-weight: 400; }
.frame-progress { position: absolute; right: var(--pad); top: 50%; z-index: 5; display: grid; grid-template-columns: auto auto; gap: .3rem .45rem; align-items: end; color: rgba(17,17,15,.6); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; transform: translateY(-50%); }
.frame-progress > span:first-child { grid-column: 1 / -1; writing-mode: vertical-rl; justify-self: end; margin-bottom: .7rem; }
.frame-progress-track { grid-column: 1 / -1; width: 1px; height: 7rem; justify-self: end; background: rgba(17,17,15,.2); transform: rotate(180deg); }
.frame-progress-track i { display: block; width: 100%; height: 0; background: var(--ink); }
.frame-progress strong { color: var(--ink); font-size: .72rem; }
.scroll-story.showing-final .frame-progress { color: rgba(255,255,255,.68); }
.scroll-story.showing-final .frame-progress strong { color: var(--white); }
.scroll-story.showing-final .frame-progress-track { background: rgba(255,255,255,.3); }
.scroll-story.showing-final .frame-progress-track i { background: var(--white); }
.frame-loading { position: absolute; left: 50%; bottom: 1.5rem; z-index: 4; padding: .5rem .8rem; background: rgba(255,255,255,.82); color: var(--ink); font-size: .68rem; letter-spacing: .08em; transform: translateX(-50%); transition: opacity .25s ease; }
.frame-loading.loaded { opacity: 0; pointer-events: none; }
.eyebrow { margin: 0 0 1.25rem; color: var(--gold); font-size: .67rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.dark { color: #756116; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
h1 { max-width: 46rem; margin-bottom: 0; font-family: "Raleway", Arial, sans-serif; font-size: clamp(2.4rem, 6.5vw, 6.5rem); font-weight: 300; font-style: normal; line-height: .94; letter-spacing: -.055em; }
h1::after { content: ""; display: block; width: .95em; height: 3px; margin-top: .38em; background: #c59432; }
.hero-title-main, .hero-title-accent { display: block; transition: color .8s ease, background-position 1.2s ease; }
.hero-title-main { color: #11110f; }
.hero-title-accent { margin-top: .06em; color: #bd8d30; }
.hero-title-sob { display: block; font-size: .6em; line-height: .9; letter-spacing: -.045em; }
.hero-title-medida { display: block; font-size: 1.3em; line-height: .88; letter-spacing: -.055em; }
@media (hover: hover) and (pointer: fine) {
  h1:hover .hero-title-main { color: #51432d; }
  h1:hover .hero-title-accent { color: #a97b26; }
}
h1:active .hero-title-main { color: #51432d; }
h1:active .hero-title-accent { color: #a97b26; }
h1 em, h2 em { color: var(--gold); font-weight: 400; }
.hero-copy { max-width: 35rem; margin-bottom: 2.2rem; color: rgba(17,17,15,.72); font-size: clamp(1rem, 1.4vw, 1.25rem); }
.hero-actions { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 52px; padding: .9rem 1.3rem; border: 1px solid transparent; text-decoration: none; white-space: nowrap; font-size: .78rem; font-weight: 700; letter-spacing: .04em; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.button-primary { background: var(--gold); color: #16140c; }
.button-primary:hover { background: #efd36d; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #37352d; }
.text-link { display: inline-flex; align-items: center; gap: .65rem; padding: .8rem 0; color: inherit; text-underline-offset: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .05em; }

.section-pad { padding-left: var(--pad); padding-right: var(--pad); }
.section-number { color: rgba(17,17,15,.35); font-family: var(--serif); font-style: italic; }
.section-number.light { color: rgba(255,255,255,.35); }
.intro { display: grid; grid-template-columns: .35fr 2fr 1fr; gap: 3rem; align-items: end; max-width: var(--max); margin: auto; padding-top: clamp(6rem, 11vw, 11rem); padding-bottom: clamp(6rem, 11vw, 11rem); }
.intro h2, .section-head h2, .process h2, .cta h2 { margin-bottom: 0; font-size: clamp(2.8rem, 5vw, 5.7rem); }
.intro-copy { max-width: 26rem; margin-bottom: .4rem; color: #5b584f; }

.projects { background: #dcd6ca; padding-top: clamp(4rem, 7vw, 7rem); padding-bottom: 2.5rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 4rem; max-width: var(--max); margin: 0 auto 3rem; }
.section-head h2 { max-width: 46rem; }
.section-head > p { max-width: 22rem; margin: 0; color: #5b584f; }
.project-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 3px; }
.project-card { position: relative; min-height: 38rem; overflow: hidden; background: #222; color: var(--white); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.project-card:hover img { transform: scale(1.035); }
.project-overlay { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 8rem 1.6rem 1.6rem; background: linear-gradient(transparent, rgba(12,11,9,.84)); }
.project-overlay span { color: var(--gold); font-size: .68rem; }
.project-overlay h3 { margin: .4rem 0 .25rem; font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2.3rem); font-weight: 400; }
.project-overlay p { margin: 0; color: rgba(255,255,255,.7); font-size: .78rem; }
.project-overlay .round-arrow { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: var(--white); font-size: 1rem; }
.prototype-note { max-width: var(--max); margin: 1.5rem auto 0; color: #676257; font-size: .7rem; }

.benefits { display: grid; grid-template-columns: .3fr 1fr 1.35fr; gap: 3rem; max-width: 100%; padding-top: clamp(6rem, 10vw, 10rem); padding-bottom: clamp(6rem, 10vw, 10rem); background: var(--ink); color: var(--white); }
.benefits h2 { max-width: 34rem; font-size: clamp(3rem, 5vw, 5.5rem); }
.benefit { display: grid; grid-template-columns: 3rem 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid rgba(255,255,255,.2); }
.benefit:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.benefit > span { color: var(--gold); font-family: var(--serif); font-style: italic; }
.benefit h3 { margin-bottom: .55rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.benefit p { max-width: 31rem; margin-bottom: 0; color: rgba(255,255,255,.6); font-size: .86rem; }

.process { max-width: var(--max); margin: auto; padding-top: clamp(6rem, 10vw, 10rem); padding-bottom: clamp(6rem, 10vw, 10rem); }
.process-intro { display: flex; align-items: end; justify-content: space-between; margin-bottom: 5rem; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { min-height: 18rem; padding: 1.5rem 1.5rem 1.5rem 0; border-right: 1px solid var(--line); }
.process-list li + li { padding-left: 1.5rem; }
.process-list li:last-child { border-right: 0; }
.process-list span { display: inline-block; margin-bottom: 4rem; color: #776215; font-family: var(--serif); font-style: italic; }
.process-list h3 { margin-bottom: .7rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.process-list p { color: #5b584f; font-size: .82rem; }

.feature { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 46rem; background: var(--ink); color: var(--white); }
.feature-image-wrap { min-height: 34rem; overflow: hidden; }
.feature-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 7rem); }
.feature-index { margin-bottom: 2.2rem; color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.feature-copy h2 { margin-bottom: 1.8rem; font-size: clamp(2.6rem, 4.3vw, 5rem); }
.feature-copy > p { max-width: 31rem; color: rgba(255,255,255,.66); }
.light-link { margin-top: 1.2rem; color: var(--white); }

.cta { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; min-height: 46rem; padding-top: clamp(6rem, 10vw, 10rem); padding-bottom: clamp(6rem, 10vw, 10rem); text-align: center; }
.cta-mark { position: absolute; top: 50%; left: 50%; z-index: 0; transform: translate(-50%,-51%); color: rgba(17,17,15,.035); font-family: var(--serif); font-size: min(38rem, 75vw); line-height: 1; }
.cta > *:not(.cta-mark) { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 1.6rem; }
.cta > p:not(.eyebrow) { max-width: 32rem; color: #5b584f; }
.cta .button { margin-top: 1.7rem; }

.site-footer { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; align-items: start; padding: 4rem var(--pad) 2rem; background: #0b0b0a; color: var(--white); }
.footer-brand { display: grid; justify-self: start; }
.footer-logo { height: 48px; }
.footer-contact p { margin-bottom: .5rem; color: rgba(255,255,255,.45); font-size: .72rem; }
.footer-contact a { font-family: var(--serif); font-size: 1.3rem; text-decoration: none; }
.site-footer nav { display: flex; flex-direction: column; gap: .7rem; }
.site-footer nav a { min-height: 44px; text-decoration: none; font-size: .78rem; }
.copyright { grid-column: 1 / -1; margin: 3rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.36); font-size: .68rem; }
.whatsapp-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #237b4b; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s ease, background .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px); background: #1b643d; }
.whatsapp-float svg { width: 28px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .menu-toggle { position: absolute; top: 0; right: var(--pad); z-index: 3; display: block; height: 3.7rem; }
  .main-nav { position: fixed; inset: 0 0 0 auto; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: min(86vw, 24rem); height: 100dvh; padding: clamp(2rem, 8vw, 4rem); background: var(--ink); box-shadow: -24px 0 70px rgba(0,0,0,.32); visibility: hidden; opacity: 0; transform: translateX(100%); transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s; }
  .main-nav.open { visibility: visible; opacity: 1; transform: translateX(0); }
  .site-header.frame-start:not(.scrolled) .main-nav { color: var(--white); }
  .main-nav a { font-family: var(--serif); font-size: clamp(1.8rem, 7vw, 3rem); }
  .main-nav > a:not(.nav-cta) { left: 0; }
  .main-nav .nav-cta { position: static; margin-top: 1.5rem; font-family: var(--sans); font-size: .78rem; }
  .menu-backdrop { position: fixed; inset: 0; z-index: 1; display: block; border: 0; background: rgba(0,0,0,.55); visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s; }
  .menu-open .menu-backdrop { visibility: visible; opacity: 1; }
  .menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .intro { grid-template-columns: 3rem 1fr; }
  .intro-copy { grid-column: 2; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-wide { grid-column: 1 / -1; }
  .project-card { min-height: 34rem; }
  .benefits { grid-template-columns: 3rem 1fr; }
  .benefit-list { grid-column: 2; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-list li:nth-child(2) { border-right: 0; }
  .process-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature { grid-template-columns: 1fr; }
  .feature-image-wrap { height: 65vw; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(2.2rem, 12.4vw, 4.9rem); }
  .brand-wave { width: 100vw; height: 6.8rem; }
  .scroll-story { height: 800svh; }
  .frame-wash { background: linear-gradient(0deg, rgba(244,241,233,.98) 0%, rgba(244,241,233,.78) 44%, rgba(244,241,233,0) 78%); }
  .frame-copy { justify-content: flex-end; padding-bottom: 4.6rem; }
  .frame-copy-start { justify-content: center; padding-top: 6rem; padding-bottom: 6rem; }
  .frame-copy-end { right: var(--pad); bottom: 5.5rem; left: var(--pad); text-align: left; }
  .frame-final-shade { background: linear-gradient(0deg, rgba(11,10,8,.86), rgba(11,10,8,.1) 72%); }
  .frame-progress { display: none; }
  .hero-content { padding-right: var(--pad); }
  .eyebrow { max-width: 19rem; line-height: 1.65; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: .5rem; }
  .button { width: 100%; }
  .text-link { justify-content: center; }
  .intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro-copy { grid-column: auto; }
  .section-head { display: block; }
  .section-head > p { margin-top: 1.5rem; }
  .project-grid { grid-template-columns: 1fr; gap: 2px; }
  .project-wide { grid-column: auto; }
  .project-card { min-height: 31rem; }
  .benefits { grid-template-columns: 1fr; }
  .benefit-list { grid-column: auto; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li + li { min-height: auto; padding: 1.5rem 0; border-right: 0; border-top: 1px solid var(--line); }
  .process-list span { margin-bottom: 2rem; }
  .feature-image-wrap { height: 90vw; }
  .feature-copy { padding: 3.5rem var(--pad); }
  .site-footer { grid-template-columns: 1fr; }
  .copyright { grid-column: 1; }
}

@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; }
  .scroll-story { height: 100svh; }
  .frame-copy-end, .frame-progress { display: none; }
}
