@font-face {
  font-family: Manrope;
  src: url('/assets/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --paper: #f5f2eb;
  --ink: #17272a;
  --muted: #52605f;
  --line: #cbd0c8;
  --accent: #dd7651;
  --light: #f8f5ee;
  --wrap: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, sans-serif; -webkit-font-smoothing: antialiased; }
body, button, input, textarea, select { font-size: 16px; }
button, input, textarea, select { font-family: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: #132d2f; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.wrap { width: min(calc(100% - 80px), var(--wrap)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { font-size: .94rem; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { color: var(--accent); font-size: 1.25em; }
.site-header nav { display: flex; gap: clamp(18px, 3vw, 48px); }
.site-header nav a { font-size: .8rem; font-weight: 700; letter-spacing: .01em; padding: 12px 0; border-bottom: 1px solid transparent; transition: border-color .25s ease, color .25s ease; }
.site-header nav a:hover { color: #b85637; border-color: currentColor; }

.hero { min-height: min(760px, calc(100svh - 78px)); display: flex; align-items: center; overflow: hidden; }
.hero-inner { padding-block: clamp(52px, 7vw, 116px) 48px; }
.hero-topline { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); text-transform: uppercase; font-size: .68rem; font-weight: 800; letter-spacing: .19em; }
.hero h1 { margin: clamp(30px, 5.4vw, 78px) 0 clamp(44px, 5.4vw, 74px); font-size: clamp(3.3rem, 8.3vw, 6rem); font-weight: 700; line-height: 1.04; letter-spacing: -.04em; animation: hero-appear .85s cubic-bezier(.16,1,.3,1) both; }
.hero-period { color: var(--accent); }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-bottom p { max-width: 690px; margin: 0; font-size: clamp(1.18rem, 2.1vw, 1.75rem); line-height: 1.45; letter-spacing: -.035em; font-weight: 500; }
.text-link { flex: none; border-bottom: 1px solid var(--ink); padding-bottom: 9px; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.text-link span, .project-link span, .social-links span, .work-arrow { display: inline-block; transition: transform .25s ease; }
.text-link:hover span, .project-link:hover span, .social-links a:hover span, .work-row:hover .work-arrow { transform: translate(3px, -3px); }

.projects { scroll-margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 35px; padding-block: 76px 38px; }
.section-head h2 { margin: 0; font-size: clamp(1.55rem, 2.5vw, 2.3rem); letter-spacing: -.05em; line-height: 1.15; }
.section-head p { margin: 0; max-width: 330px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.feature { overflow: hidden; }
.feature + .feature { border-top: 1px solid rgba(23, 39, 42, .14); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(320px, .68fr); align-items: center; min-height: 590px; gap: clamp(36px, 6.6vw, 100px); padding-block: clamp(48px, 7vw, 105px); }
.feature-grid-reverse { grid-template-columns: minmax(320px, .68fr) minmax(0, 1.32fr); }
.feature-grid-reverse .feature-image { grid-column: 2; grid-row: 1; }
.feature-grid-reverse .feature-copy { grid-column: 1; grid-row: 1; }
.feature-image { overflow: hidden; position: relative; }
.feature-image-ai > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.feature-ai:hover .feature-image-ai > img { transform: scale(1.025); }
.feature-image-ai { aspect-ratio: 1.45; background: #251b1e; }
.feature-image-online { aspect-ratio: 1.45; display: grid; place-items: center; padding: clamp(24px, 4vw, 64px); }
.feature-image-online::before { content: ''; position: absolute; inset: -16px; background: url('/assets/itineraria-online-map.webp') center / cover no-repeat; filter: blur(7px) saturate(.72); }
.feature-image-online::after { content: ''; position: absolute; inset: 0; background: rgba(8, 16, 22, .54); }
.feature-image-online > img { position: relative; z-index: 1; width: 100%; height: auto; object-fit: contain; }
.feature-copy h3 { margin: 0 0 24px; font-size: clamp(2.45rem, 4.6vw, 4.7rem); line-height: 1.03; letter-spacing: -.04em; font-weight: 700; }
.feature-copy p { margin: 0 0 40px; max-width: 420px; font-size: clamp(.98rem, 1.24vw, 1.14rem); line-height: 1.75; }
.project-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 214px; border-bottom: 1px solid currentColor; padding-bottom: 12px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.feature-ai { background: #251b1e; color: var(--light); }
.feature-online { background: #e7e6df; }
.feature-holo { background: #e4d9cb; }
.feature-image-holo { height: 450px; display: grid; grid-template-rows: 30% 70%; background: linear-gradient(#000 0 30%, #bfc6bd 30% 100%); }
.holo-logo { grid-row: 1; align-self: center; justify-self: center; width: min(52%, 215px); height: auto; max-height: 90%; object-fit: contain; }
.holo-screens { grid-row: 2; min-height: 0; display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2.4vw, 32px); padding-inline: 7%; overflow: hidden; }
.game-shot { width: min(40%, 175px); height: auto; max-height: 100%; object-fit: contain; object-position: bottom; box-shadow: 12px 22px 45px rgba(15, 30, 27, .22); }

.ai-work { background: #dce4de; }
.ai-work-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: end; gap: clamp(42px, 8vw, 125px); padding-block: clamp(75px, 9vw, 130px); }
.ai-work-label { display: block; margin-bottom: 26px; text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; font-weight: 800; }
.ai-work h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 5.2rem); letter-spacing: -.05em; line-height: 1.08; }
.ai-work h2 span { color: #b75839; }
.ai-work p { margin: 0 0 5px; max-width: 640px; font-size: clamp(1.05rem, 1.45vw, 1.35rem); line-height: 1.65; }

.other-work { padding-block: 34px 120px; }
.section-head-small { padding-block: 66px 44px; }
.work-list { border-top: 1px solid var(--ink); }
.work-row { display: grid; grid-template-columns: minmax(210px, .9fr) minmax(250px, 1.4fr) 20px; gap: 32px; align-items: center; min-height: 108px; border-bottom: 1px solid var(--line); transition: color .25s ease; }
.work-row:hover { color: #b85637; }
.work-name { font-size: clamp(1.18rem, 2vw, 1.8rem); font-weight: 700; letter-spacing: -.05em; }
.work-description { color: var(--muted); font-size: .88rem; }
.work-arrow { font-size: 1.2rem; }

.about { border-top: 1px solid var(--ink); padding-block: 120px 150px; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 9vw, 160px); align-items: end; scroll-margin-top: 30px; }
.about h2 { margin: 0; font-size: clamp(2.9rem, 5.7vw, 5.6rem); line-height: 1.08; letter-spacing: -.04em; }
.about h2 em { color: #b75839; font-style: normal; }
.about p { margin: 0 0 7px; max-width: 440px; font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.75; }

.contact { background: var(--ink); color: var(--light); scroll-margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(65px, 9vw, 140px); padding-block: clamp(84px, 9vw, 150px); }
.contact-intro h2 { margin: 0 0 22px; font-size: clamp(3.1rem, 6vw, 5.7rem); letter-spacing: -.04em; line-height: 1.04; }
.contact-intro h2 span { color: var(--accent); }
.contact-intro p { margin: 0; max-width: 375px; font-size: 1.15rem; line-height: 1.6; }
.social-links { display: flex; flex-direction: column; gap: 5px; margin-top: 92px; max-width: 250px; }
.social-links a { display: flex; justify-content: space-between; padding-block: 15px; border-bottom: 1px solid rgba(255,255,255,.27); font-size: .85rem; font-weight: 700; }
.contact-form-wrap { padding-top: 7px; }
.form-status { margin: 0 0 28px; padding: 16px 18px; border: 1px solid currentColor; font-size: .9rem; line-height: 1.5; }
.form-status-success { color: #b8e6b6; }
.form-status-error { color: #ffb7a5; }
.form-row { margin-bottom: 26px; }
.form-row label { display: block; margin-bottom: 10px; font-size: .79rem; font-weight: 700; }
.form-row label span { color: var(--accent); }
.form-row input, .form-row textarea, .form-row select { display: block; width: 100%; min-height: 51px; padding: 13px 14px; border: 1px solid #a9b5af; border-radius: 0; background: transparent; color: var(--light); outline: none; transition: border-color .2s ease, background .2s ease; }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row select { appearance: none; padding-right: 35px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 7 6 6 6-6' fill='none' stroke='%23f8f5ee' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 17px; }
.form-row select option { color: var(--ink); background: var(--light); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--accent); background: rgba(255,255,255,.045); }
.submit-button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; margin-top: 34px; border: 0; background: var(--accent); color: #17272a; font-weight: 800; text-align: left; transition: background .2s ease, transform .2s ease; }
.submit-button:hover { background: #ef8b68; transform: translateY(-2px); }
.submit-button:active { transform: translateY(0); }
.privacy-note { margin-top: 25px; color: #c5d0c8; font-size: .73rem; line-height: 1.6; }
.privacy-note summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.privacy-note p { max-width: 60ch; margin: 12px 0 0; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { background: #102124; color: #c5d0c8; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; padding-block: 25px; font-size: .72rem; }
.site-footer a { text-decoration: underline; text-underline-offset: 4px; }
.will-reveal { opacity: .01; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.will-reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes hero-appear { from { opacity: .2; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1000px) {
  .feature-grid, .feature-grid-reverse { grid-template-columns: 1fr 1fr; gap: 38px; min-height: auto; }
  .feature-copy h3 { font-size: clamp(2.5rem, 5vw, 4rem); }
  .feature-image-holo { height: 400px; }
  .about { gap: 50px; }
}

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 40px), var(--wrap)); }
  .header-inner { min-height: 68px; }
  .brand { font-size: .84rem; }
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: .7rem; }
  .hero { min-height: calc(100svh - 68px); align-items: stretch; }
  .hero-inner { display: flex; flex-direction: column; justify-content: space-between; padding-block: 50px 45px; }
  .hero-topline { font-size: .6rem; padding-bottom: 19px; }
  .hero h1 { margin-block: 48px; font-size: clamp(3.2rem, 10.2vw, 5.7rem); letter-spacing: -.04em; }
  .hero-bottom { display: block; padding-top: 22px; }
  .hero-bottom p { font-size: clamp(1.07rem, 3.8vw, 1.55rem); }
  .text-link { display: inline-block; margin-top: 36px; }
  .section-head { display: block; padding-block: 64px 27px; }
  .section-head p { margin-top: 12px; }
  .feature-grid, .feature-grid-reverse { display: flex; flex-direction: column; align-items: stretch; gap: 36px; padding-block: 38px 62px; }
  .feature-image { order: 0; }
  .feature-copy { order: 1; }
  .feature-image-ai, .feature-image-online { aspect-ratio: 1.55; }
  .feature-copy h3 { margin-bottom: 16px; }
  .feature-copy p { margin-bottom: 27px; }
  .feature-image-holo { height: 370px; }
  .ai-work-grid { display: block; padding-block: 78px 85px; }
  .ai-work h2 { font-size: clamp(2.75rem, 9vw, 4.5rem); }
  .ai-work p { margin-top: 33px; }
  .other-work { padding-block: 10px 88px; }
  .section-head-small { padding-block: 55px 34px; }
  .work-row { grid-template-columns: 1fr 20px; gap: 8px 20px; padding-block: 23px; min-height: auto; }
  .work-name { grid-column: 1; }
  .work-description { grid-column: 1; grid-row: 2; line-height: 1.5; }
  .work-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .about { display: block; padding-block: 88px 105px; }
  .about p { margin-top: 34px; }
  .contact-grid { display: block; padding-block: 82px 95px; }
  .contact-intro h2 { font-size: clamp(3.6rem, 12vw, 5rem); }
  .social-links { margin-top: 35px; max-width: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .social-links a { gap: 8px; padding-block: 8px; }
  .contact-form-wrap { margin-top: 55px; }
}

@media (max-width: 430px) {
  .wrap { width: min(calc(100% - 34px), var(--wrap)); }
  .header-inner { gap: 10px; }
  .brand { font-size: .78rem; }
  .site-header nav { gap: 10px; }
  .site-header nav a { font-size: .66rem; }
  .hero-topline { letter-spacing: .1em; }
  .hero h1 { font-size: clamp(2.9rem, 10.3vw, 4rem); }
  .feature-image-holo { height: 335px; grid-template-rows: 34% 66%; background: linear-gradient(#000 0 34%, #bfc6bd 34% 100%); }
  .feature-copy h3 { font-size: 2.85rem; }
  .site-footer .wrap { flex-direction: column; gap: 9px; }
}

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