:root {
  --noche: #10202E;
  --arena: #F4EEE4;
  --luz: #E9A23B;
  --mar: #2F6F73;
  --muted: #6B6258;
  --paper: #FBF8F2;
  --line: #E4DACB;
  --soft: #D9D2C6;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, sans-serif;
  --max: 1360px;
  --gutter: clamp(20px, 5vw, 72px);
  --space: clamp(96px, 12vw, 176px);
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--arena);
  color: var(--noche);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--mar); }
a:hover { color: var(--noche); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.accent { font-style: italic; color: var(--luz); }
.eyebrow {
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 4.8vw, 4.5rem); line-height: 1.02; letter-spacing: -0.01em;
}
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 980px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--luz); color: var(--noche); padding: 10px 16px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  border-radius: 999px; text-align: center; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--luz); color: var(--noche); }
.btn-amber:hover { background: #F0B455; color: var(--noche); }
.btn-ghost { border: 1px solid #5B6B78; color: var(--arena); font-weight: 600; }
.btn-ghost:hover { border-color: var(--arena); color: var(--arena); }

/* Hero: fills the first screen */
.hero {
  background: var(--noche); color: var(--arena); position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
}
.hero-beam { position: absolute; right: 0; top: 12%; width: 64%; height: 76%; pointer-events: none; }
.topbar {
  padding-top: 32px; display: flex; gap: 16px;
  justify-content: space-between; align-items: center; position: relative; width: 100%;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--arena); }
.logo:hover { color: var(--arena); }
.logo span { font-family: var(--serif); font-size: 36px; line-height: 1; }
.nav { display: flex; gap: 36px; align-items: center; font-size: 15px; }
.nav a { color: var(--arena); text-decoration: none; }
.nav a:hover { color: var(--luz); }
.nav .lang { font-weight: 700; letter-spacing: 0.06em; }
.nav .btn { color: var(--noche); padding: 13px 22px; }
.nav .btn:hover { color: var(--noche); }
.nav .short { display: none; }

.hero-body {
  flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding-top: clamp(64px, 9vh, 120px); padding-bottom: clamp(80px, 12vh, 160px); position: relative;
}
.hero .eyebrow { color: var(--luz); }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.1rem, 7.6vw, 7.5rem); line-height: 0.95; letter-spacing: -0.015em; max-width: 14ch;
}
.hero .lede { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.65; max-width: 620px; color: var(--soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-ctas .btn { padding: 18px 30px; font-size: 16px; }

/* Shift + stats */
.shift { padding-top: var(--space); padding-bottom: calc(var(--space) * 0.45); display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.shift-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.shift-head p { font-size: 18px; line-height: 1.7; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.card-paper { background: var(--paper); border: 1px solid var(--line); }
.stat-num { font-family: var(--serif); font-size: clamp(64px, 7vw, 104px); line-height: 0.95; color: var(--mar); }
.stat-text { font-size: 17px; line-height: 1.55; margin-top: 6px; }
.stat-src { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 10px; }

/* Services */
.services { padding-top: var(--space); padding-bottom: var(--space); display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.services-grid { grid-template-columns: repeat(4, 1fr); }
.service { gap: 16px; min-height: 380px; }
.service .num { font-size: 13px; font-weight: 700; color: var(--mar); letter-spacing: 0.1em; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 2.8vw, 42px); line-height: 1.02; margin-top: auto; }
.service p { font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.service-dark { background: var(--noche); color: var(--arena); }
.service-dark .num { color: var(--luz); }
.service-dark p { color: var(--soft); }
.service-amber { background: var(--luz); color: var(--noche); }
.service-amber .num, .service-amber p { color: var(--noche); }

/* Work: case studies */
.work { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-inner { padding-top: var(--space); padding-bottom: var(--space); display: flex; flex-direction: column; gap: clamp(64px, 8vw, 120px); }
.cases { display: flex; flex-direction: column; gap: clamp(110px, 13vw, 200px); }
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.case-flip .case-media { order: 2; }

.case-media { position: relative; padding-bottom: 120px; }
.case-photo {
  width: 100%; aspect-ratio: 4 / 5; max-height: 760px; object-fit: cover;
  border-radius: var(--radius); background: #D8CBB6;
}
.case-wide .case-photo { aspect-ratio: 5 / 4; }
.case-phones {
  position: absolute; bottom: 0; right: clamp(-28px, -2vw, 0px);
  display: flex; gap: clamp(10px, 1.2vw, 18px); align-items: flex-end;
}
.case-flip .case-phones { right: auto; left: clamp(-28px, -2vw, 0px); }
.phone { width: clamp(100px, 9vw, 140px); text-align: center; }
.phone:nth-child(2) { transform: translateY(-34px); }
.phone-frame {
  background: var(--noche); border-radius: 26px; padding: 7px;
  box-shadow: 0 30px 60px -24px rgba(16, 32, 46, 0.55);
}
.phone-frame img { width: 100%; aspect-ratio: 780 / 1688; object-fit: cover; border-radius: 20px; }
.phone figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; font-weight: 500; }

.case-copy { display: flex; flex-direction: column; gap: 22px; }
.case-place { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--mar); }
.case-copy h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4.4vw, 4.25rem); line-height: 1; }
.case-kind { font-size: 15px; font-weight: 600; color: var(--noche); margin-top: -8px; }
.case-copy > p.body { font-size: 16.5px; line-height: 1.75; color: var(--muted); max-width: 54ch; }
.case-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.case-facts li {
  font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--arena);
}
.case-quote { border-left: 2px solid var(--luz); padding: 4px 0 4px 26px; margin-top: 10px; }
.case-quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.2vw, 31px); line-height: 1.3; }
.case-quote figcaption { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); margin-top: 14px; font-weight: 600; }
.case-link { font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; }
.case-link span { transition: transform .2s ease; }
.case-link:hover span { transform: translateX(4px); }

/* How */
.how { padding-top: var(--space); padding-bottom: var(--space); display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); }
.step { display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--noche); padding-top: 26px; }
.step-num { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--mar); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3vw, 42px); line-height: 1.05; }
.step p { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 40ch; }

/* Contact + footer */
.contact { background: var(--noche); color: var(--arena); position: relative; overflow: hidden; }
.contact-inner {
  padding-top: var(--space); padding-bottom: var(--space); display: flex; flex-wrap: wrap; gap: 48px;
  justify-content: space-between; align-items: flex-end; position: relative;
}
.contact-copy { display: flex; flex-direction: column; gap: 22px; max-width: 780px; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: 0.98; }
.contact-copy p { font-size: 18px; line-height: 1.65; color: var(--soft); max-width: 520px; }
.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.contact-actions .btn { padding: 20px 34px; font-size: 17px; }
.contact-actions .mail { color: var(--arena); text-align: center; font-size: 15px; }
.contact-actions .mail:hover { color: var(--luz); }
.footer { border-top: 1px solid #2A3A48; position: relative; }
.footer-inner {
  padding-top: 30px; padding-bottom: 30px; display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; font-size: 13px; color: #A9A196;
}

:focus-visible { outline: 2px solid var(--luz); outline-offset: 3px; }

/* Gentle reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Laptop */
@media (max-width: 1180px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service { min-height: 320px; }
}

/* Tablet */
@media (max-width: 900px) {
  .nav { gap: 22px; }
  .nav .navlink { display: none; }
  .shift-head { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; gap: 44px; }
  .case-flip .case-media { order: 0; }
  .case-photo, .case-wide .case-photo { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { align-items: flex-start; }
}

/* Phone */
@media (max-width: 600px) {
  .topbar { padding-top: 22px; }
  .logo span { font-size: 30px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .btn { padding: 10px 16px; }
  .nav .long { display: none; }
  .nav .short { display: inline; }
  .hero-beam { width: 100%; top: 26%; height: 52%; }
  .hero-body { gap: 24px; padding-top: 40px; padding-bottom: 64px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .stat-text { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service h3 { margin-top: 8px; }
  .case-media { padding-bottom: 70px; }
  .case-photo, .case-wide .case-photo { aspect-ratio: 4 / 5; }
  .case-phones, .case-flip .case-phones { right: 12px; left: auto; gap: 10px; }
  .phone { width: 27vw; }
  .phone:nth-child(2) { transform: translateY(-22px); }
  .phone figcaption { display: none; }
  .case-quote { padding-left: 20px; }
  .contact-actions { width: 100%; }
  .contact-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .case-link span { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

.section-lede { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 560px; }
.contact-beam { position: absolute; left: 0; top: 0; width: 70%; height: 100%; pointer-events: none; }
