/* ARCHIVO MARÉ — shared styles. Palette "Caliza". One typeface: Archivo. */

:root {
  --paper:   #F2F1EC;   /* cool off-white background */
  --surface: #E9E8E1;   /* slightly deeper surface */
  --ink:     #14140F;   /* near-black text */
  --muted:   #76756E;   /* secondary text */
  --faint:   #9C9B93;   /* tertiary / hints */
  --line:    rgba(20, 20, 15, 0.13);
  --line-2:  rgba(20, 20, 15, 0.28);
  --accent:  #3A5566;   /* steel blue, used sparingly */
  --accent-deep: #283C49;
  --measure: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 2.5rem; }

/* ---------- Type system ---------- */
/* Big display titles: one heavy word + one light word, same family, no italics. */
.display {
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-weight: 900;
}
.display .thin { font-weight: 300; }
.display .accent { color: var(--accent); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { font-size: 1.25rem; line-height: 1.55; font-weight: 400; }
.muted { color: var(--muted); }

/* ---------- Header / nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--measure); margin: 0 auto;
  padding: 1.15rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { font-weight: 900; letter-spacing: -0.02em; font-size: 1.02rem; text-transform: uppercase; }
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--muted); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.current { color: var(--ink); }

.lang { display: flex; gap: 0.55rem; align-items: center; }
.lang button {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); padding: 0.2rem 0.1rem; transition: color 0.2s;
}
.lang button:hover { color: var(--muted); }
.lang button.on { color: var(--ink); }
.lang .sep { color: var(--line-2); font-size: 0.7rem; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 0.3rem; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.25s; }

.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 2.5rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer a {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.15; color: var(--ink);
}
.drawer a .thin { font-weight: 300; }
.drawer .close { position: absolute; top: 1.6rem; right: 2rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: none; border: none; cursor: pointer; }
.drawer .drawer-lang { position: absolute; bottom: 2.4rem; left: 2.5rem; }

/* ---------- Generic sections ---------- */
section { padding: 7rem 0; }
.section-head { margin-bottom: 3.5rem; }
.section-head .eyebrow { display: block; margin-bottom: 1.4rem; }
.section-head h2.display { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Hero (home) ---------- */
.hero { padding: 6.5rem 0 4.5rem; }
.hero h1.display { font-size: clamp(3.2rem, 12vw, 9.5rem); }
.hero .sub { margin-top: 1.8rem; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero .sub .eyebrow { display: block; }
.hero-figure { margin-top: 3.5rem; }
.hero-figure .frame { aspect-ratio: 16/8; overflow: hidden; background: var(--surface); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .cap {
  margin-top: 0.9rem; display: flex; justify-content: space-between;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Intro statement ---------- */
.statement { padding: 6rem 0; }
.statement p {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.25; font-weight: 400; letter-spacing: -0.015em;
  max-width: 16em;
}
.statement p .accent { color: var(--accent); }

/* ---------- Project index list (home + obra) ---------- */
.proj-list { border-top: 1px solid var(--line); }
.proj-row {
  display: grid; grid-template-columns: 3rem 1.6fr 1fr 1fr 2.5rem;
  gap: 2rem; align-items: baseline;
  padding: 2.1rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s ease, color 0.3s ease;
}
.proj-row:hover { padding-left: 0.8rem; }
.proj-row .n { font-size: 0.76rem; font-weight: 600; color: var(--faint); letter-spacing: 0.06em; }
.proj-row .name {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.025em; line-height: 1;
}
.proj-row .name .thin { font-weight: 300; text-transform: none; }
.proj-row .meta { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.proj-row .arrow { justify-self: end; color: var(--faint); transition: color 0.3s, transform 0.3s; }
.proj-row:hover .arrow { color: var(--accent); transform: translate(3px, 3px); }

/* ---------- Project detail blocks (obra) — side by side, one screen each ---------- */
.proj { min-height: 100vh; display: flex; align-items: center; padding: 5rem 0; border-bottom: 1px solid var(--line); }
.proj:last-child { border-bottom: 0; }
.proj-inner { width: 100%; display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 4.5rem; align-items: center; }
/* alternate the image side for an editorial spread rhythm */
.proj:nth-of-type(even) .proj-figure { order: 2; }
.proj-figure { aspect-ratio: 3/2; max-height: 80vh; overflow: hidden; background: var(--surface); }
.proj-figure.tall { aspect-ratio: 4/5; }
.proj-figure img { width: 100%; height: 100%; object-fit: cover; }
.proj-body .eyebrow { display: block; margin-bottom: 1.1rem; }
.proj-body h3 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; margin-bottom: 1.6rem; }
.proj-body h3 .thin { font-weight: 300; text-transform: none; }
.proj-body p { color: var(--ink); max-width: 34em; margin-bottom: 2.4rem; }
.specs { display: grid; gap: 0; max-width: 30rem; }
.specs .row { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.specs .row .k { color: var(--faint); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
.specs .row .v { font-weight: 500; }

/* ---------- Studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
.studio-portrait { aspect-ratio: 4/5; overflow: hidden; background: var(--surface); }
.studio-portrait img { width: 100%; height: 100%; object-fit: cover; }
.studio-text p { margin-bottom: 1.4rem; max-width: 38em; }
.studio-meta { display: flex; gap: 3rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.studio-meta .block .eyebrow { display: block; margin-bottom: 0.5rem; }
.studio-meta .block .v { font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.stats .num { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.stats .label { display: block; margin-top: 0.6rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Materia ---------- */
.materia-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.materia-figure { aspect-ratio: 16/12; overflow: hidden; background: var(--surface); }
.materia-figure img { width: 100%; height: 100%; object-fit: cover; }
.materia-list { display: flex; flex-direction: column; }
.materia-item { display: flex; justify-content: space-between; align-items: baseline; padding: 1.25rem 0 1.25rem 2rem; border-bottom: 1px solid var(--line); }
.materia-item:last-child { border-bottom: 0; }
.materia-item .name { font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.95rem; }
.materia-item .num { font-size: 0.74rem; font-weight: 600; color: var(--faint); letter-spacing: 0.08em; }

/* ---------- Contact ---------- */
.contact-mega { font-size: clamp(2.8rem, 9vw, 7rem); margin-bottom: 4rem; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.contact-col h4 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.contact-col a, .contact-col p { display: block; margin-bottom: 0.4rem; font-size: 0.98rem; transition: color 0.2s; }
.contact-col a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Page intro band ---------- */
.page-intro { padding: 8rem 0 4rem; }
.page-intro h1.display { font-size: clamp(3rem, 10vw, 7.5rem); }
.page-intro .lead { margin-top: 2rem; max-width: 30em; color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap, .nav-inner { padding-left: 1.4rem; padding-right: 1.4rem; }
  .nav-links { display: none; }
  .nav .lang { display: none; }
  .burger { display: block; }
  section { padding: 4.5rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-figure .frame { aspect-ratio: 4/3; }
  .statement p { font-size: 1.7rem; }
  .proj-row { grid-template-columns: 2.2rem 1fr 1.8rem; gap: 1rem; }
  .proj-row .meta { display: none; }
  .proj { min-height: 0; display: block; padding: 3.5rem 0; }
  .proj-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .proj:nth-of-type(even) .proj-figure { order: 0; }
  .proj-figure, .proj-figure.tall { max-height: none; }
  .proj-body p { margin-bottom: 1.8rem; }
  .studio-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats { gap: 1.2rem; }
  .materia-grid { grid-template-columns: 1fr; }
  .materia-figure { border-bottom: 1px solid var(--line); }
  .materia-item { padding-left: 0; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
}

/* ---------- Helpers ---------- */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.head-row h2.display { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3.5rem; align-items: start; }
.linkline { color: var(--accent); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; display: inline-block; }
.linkline:hover { color: var(--accent-deep); }
.cta { padding: 6.5rem 0; }
.cta h2.display { font-size: clamp(2.4rem, 7vw, 5rem); margin-bottom: 1.6rem; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 1.4rem; } }
