/* ==========================================================
   Garona Studio — web
   Dirección: revista de arquitectura. Fotografía a sangre,
   serif editorial a gran escala, etiquetas espaciadas en Jost
   (la misma familia geométrica del logotipo).
   ========================================================== */

:root {
  --paper: #F4EFE2;
  --paper-2: #EAE3D2;
  --sand: #CEC7B1;
  --ink: #141414;
  --ink-2: #1E1C1A;
  --brown: #6E4F3B;
  --brown-2: #8A6A52;
  --olive: #5C5840;
  --olive-2: #7E795C;
  --muted: #625C4A;
  --on-dark-muted: #CFC6B2;
  --line: rgba(20, 20, 20, 0.16);
  --line-light: rgba(244, 239, 226, 0.22);

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(20px, 3.6vw, 56px);
  --max: 1520px;
  --hdr: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
em { font-style: italic; }
strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--brown-2); outline-offset: 4px; }
::selection { background: var(--brown); color: var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 200; background: var(--paper); color: var(--ink); padding: 12px 18px; }
.skip:focus { top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */

.kicker {
  font-size: 11px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase;
}
.meta { font-size: 12px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 200; letter-spacing: -0.02em; line-height: 1.02; }
.serif em { font-weight: 300; }
.h-xl { font-size: clamp(48px, 8.4vw, 148px); }
.h-lg { font-size: clamp(40px, 6vw, 96px); }
.h-md { font-size: clamp(32px, 3.8vw, 58px); line-height: 1.08; }
.statement { font-family: var(--serif); font-weight: 200; font-size: clamp(28px, 3.3vw, 50px); line-height: 1.18; letter-spacing: -0.012em; text-wrap: pretty; }
.statement em { color: var(--brown); font-weight: 300; }
.body { font-size: 17px; line-height: 1.75; text-wrap: pretty; }

/* ---------- Botones y enlaces ---------- */

.btn {
  --bg: var(--paper); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px;
  padding: 0 30px; border: 1px solid transparent; background: var(--bg); color: var(--fg); cursor: pointer;
  font: 400 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--dark { --bg: var(--ink); --fg: var(--paper); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn .arr { transition: transform 260ms var(--ease-out); }

.link {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font: 400 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + 12px) / 0 1px no-repeat;
  transition: background-size 380ms var(--ease-out);
}
.link .arr { transition: transform 260ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { --bg: var(--brown); --fg: var(--paper); }
  .btn--dark:hover { --bg: var(--brown); }
  .btn--ghost:hover { --bg: var(--paper); --fg: var(--ink); border-color: var(--paper); }
  .btn:hover .arr, .link:hover .arr { transform: translateX(5px); }
  .link:hover { background-size: 100% 1px; }
}

/* ---------- Cabecera ---------- */

.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hdr);
  color: var(--paper);
  transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, transform 400ms var(--ease-out);
}
.hdr .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr .logo { position: relative; display: block; width: 150px; }
.hdr .logo img { width: 100%; transition: opacity 300ms ease; }
.hdr .logo .logo-dark { position: absolute; inset: 0; opacity: 0; }
.hdr.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr.is-solid .logo-light { opacity: 0; }
.hdr.is-solid .logo-dark { opacity: 1; }
.hdr.is-hidden { transform: translateY(-100%); }
/* Páginas sin foto a sangre arriba */
.hdr--solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr--solid .logo-light { opacity: 0; }
.hdr--solid .logo-dark { opacity: 1; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a { font: 400 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; padding: 14px 0; position: relative; }
.nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 320ms var(--ease-out);
}
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-cta { border: 1px solid currentColor; padding: 13px 20px; transition: background-color 220ms ease, color 220ms ease; }
@media (hover: hover) and (pointer: fine) {
  .nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
  .nav .nav-cta:hover { background: var(--paper); color: var(--ink); }
  .hdr.is-solid .nav .nav-cta:hover, .hdr--solid .nav .nav-cta:hover { background: var(--ink); color: var(--paper); }
}

.menu-btn {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; color: inherit; cursor: pointer;
  font: 400 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
}
.menu-btn .bars { position: relative; width: 22px; height: 8px; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform 260ms var(--ease-out), top 260ms var(--ease-out);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  :root { --hdr: 68px; }
  .hdr .logo { width: 124px; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--hdr) 0 auto; height: calc(100svh - var(--hdr));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--ink); color: var(--paper); padding: 24px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { font-family: var(--serif); font-weight: 200; font-size: 40px; letter-spacing: -0.01em; text-transform: none; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
  .nav a::after { display: none; }
  .nav .nav-cta { margin-top: 32px; border: 1px solid var(--paper); font: 400 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; text-align: center; padding: 20px; }
  .hdr.menu-open { background: var(--ink); color: var(--paper); box-shadow: none; }
  .hdr.menu-open .logo-light { opacity: 1; }
  .hdr.menu-open .logo-dark { opacity: 0; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--paper); background: var(--ink-2); overflow: hidden; isolation: isolate;
}
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0) 22%),
    linear-gradient(0deg, rgba(20,20,20,0.88) 0%, rgba(20,20,20,0.62) 40%, rgba(20,20,20,0.2) 72%),
    linear-gradient(90deg, rgba(20,20,20,0.45) 0%, rgba(20,20,20,0) 65%),
    rgba(20,20,20,0.18);
}
.hero h1, .p-hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
@media (max-aspect-ratio: 1/1) { .hero .hero-img img { object-position: 22% 50%; } }
.hero-inner { padding-bottom: clamp(36px, 5vw, 64px); padding-top: calc(var(--hdr) + 40px); }
.hero .kicker { color: var(--on-dark-muted); }
.hero h1 { margin-top: 24px; font-size: clamp(44px, 7vw, 128px); }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .ln > span { display: block; }
.hero-foot {
  margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
}
.hero-foot .caption { font-size: 13px; color: var(--on-dark-muted); letter-spacing: 0.04em; }
.hero-foot .caption a { border-bottom: 1px solid var(--line-light); padding-bottom: 2px; }

/* ---------- Intro ---------- */

.intro { padding-block: clamp(96px, 12vw, 180px) clamp(80px, 10vw, 150px); }
.intro-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); }
.intro .kicker { grid-column: 1 / span 3; color: var(--muted); padding-top: 0.9em; }
.intro .statement { grid-column: 4 / span 9; }
.intro-facts {
  grid-column: 4 / span 9; margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gutter);
}
.intro-facts div { border-top: 1px solid var(--line); padding-top: 18px; }
.intro-facts dt { font-family: var(--serif); font-weight: 200; font-size: clamp(40px, 4.4vw, 68px); line-height: 1; letter-spacing: -0.02em; }
.intro-facts dd { margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
  .intro .kicker, .intro .statement, .intro-facts { grid-column: 1 / -1; }
  .intro-facts { grid-template-columns: 1fr; }
}

/* ---------- Proyectos ---------- */

.work { padding-bottom: clamp(80px, 10vw, 160px); }
.section-bar {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--ink); padding-bottom: 18px; margin-bottom: clamp(40px, 5vw, 72px);
}
.section-bar h2 { font: 400 12px/1.4 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; }

.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); align-items: stretch; }
.feature + .feature { margin-top: clamp(96px, 12vw, 200px); }
.feature-main { grid-column: 1 / span 8; grid-row: 1; align-self: start; }
.feature-aside { grid-column: 9 / span 4; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.feature-aside .frame { width: 58%; align-self: flex-end; }
.feature--flip .feature-main { grid-column: 5 / span 8; }
.feature--flip .feature-aside { grid-column: 1 / span 4; }
.feature--flip .feature-aside .frame { align-self: flex-start; }

.frame { display: block; position: relative; overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.frame--land { aspect-ratio: 3 / 2; }
.frame--port { aspect-ratio: 2 / 3; }

.feature-info .num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 20px; color: var(--brown); }
.feature-info h3 { margin-top: 10px; }
.feature-info .meta { margin-top: 18px; }
.feature-info p.body { margin-top: 22px; color: #3D382C; max-width: 34ch; }
.feature-info .link { margin-top: 22px; }

@media (hover: hover) and (pointer: fine) {
  a.frame:hover img { transform: scale(1.035); }
}

@media (max-width: 900px) {
  .feature-main, .feature--flip .feature-main { grid-column: 1 / -1; }
  .feature-aside, .feature--flip .feature-aside { grid-column: 1 / -1; grid-row: 2; flex-direction: row; align-items: flex-end; gap: 24px; }
  .feature-aside .frame, .feature--flip .feature-aside .frame { width: 38%; flex-shrink: 0; order: 2; align-self: auto; }
}
@media (max-width: 560px) {
  .feature-aside .frame { display: none; }
}

.in-progress {
  margin-top: clamp(96px, 12vw, 180px); padding-top: 28px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gutter); align-items: center;
}
.in-progress .frame { grid-column: 1 / span 4; aspect-ratio: 4 / 3; }
.in-progress .txt { grid-column: 6 / span 6; }
.in-progress .tag { display: inline-block; padding: 8px 14px; border: 1px solid var(--ink); font: 400 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }
.in-progress h3 { margin-top: 20px; }
.in-progress .meta { margin-top: 14px; }
.in-progress p.body { margin-top: 18px; color: #3D382C; max-width: 46ch; }
@media (max-width: 900px) {
  .in-progress .frame, .in-progress .txt { grid-column: 1 / -1; }
}

/* ---------- Proceso (oscuro) ---------- */

.process { background: var(--ink); color: var(--paper); padding-block: clamp(96px, 11vw, 170px); }
.process .section-bar { border-color: var(--line-light); }
.process .meta { color: var(--on-dark-muted); }
.process-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--gutter); }
.process-head { grid-column: 1 / span 5; }
.process-head .sticky { position: sticky; top: calc(var(--hdr) + 40px); }
.process-head p.body { margin-top: 28px; color: var(--on-dark-muted); max-width: 40ch; }
.steps { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 8px 16px; padding: 34px 0; border-top: 1px solid var(--line-light); }
.steps li:last-child { border-bottom: 1px solid var(--line-light); }
.steps .n { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 22px; color: var(--brown-2); line-height: 1.3; }
.steps h3 { font-family: var(--serif); font-weight: 200; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; }
.steps p { grid-column: 2; color: var(--on-dark-muted); font-size: 16px; line-height: 1.7; }

.before-after { margin-top: clamp(80px, 9vw, 140px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gutter); align-items: end; }
.before-after figure:nth-child(1) { grid-column: 1 / span 4; }
.before-after figure:nth-child(2) { grid-column: 5 / span 5; }
.before-after .ba-text { grid-column: 10 / span 3; align-self: end; }
.before-after figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--on-dark-muted); letter-spacing: 0.04em; }
.before-after figcaption b { font-weight: 400; color: var(--paper); letter-spacing: 0.2em; text-transform: uppercase; font-size: 11px; }
.ba-text .statement { font-size: clamp(24px, 2.2vw, 32px); }
.ba-text .statement em { color: var(--brown-2); }
@media (max-width: 900px) {
  .process-head, .steps { grid-column: 1 / -1; }
  .process-head .sticky { position: static; }
  .before-after figure:nth-child(1) { grid-column: 1 / span 5; }
  .before-after figure:nth-child(2) { grid-column: 6 / span 7; }
  .before-after .ba-text { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .steps li { grid-template-columns: 44px 1fr; }
}

/* ---------- Disciplina ---------- */

.services { padding-block: clamp(96px, 11vw, 170px); }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px var(--gutter); align-items: baseline;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line);
}
.svc .n { grid-column: 1 / span 1; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 20px; color: var(--brown); }
.svc h3 { grid-column: 2 / span 6; font-family: var(--serif); font-weight: 200; font-size: clamp(32px, 4.2vw, 64px); line-height: 1.04; letter-spacing: -0.02em; transition: transform 500ms var(--ease-out), color 300ms ease; }
.svc p { grid-column: 9 / span 4; color: #3D382C; font-size: 16px; line-height: 1.7; }
@media (hover: hover) and (pointer: fine) {
  .svc:hover h3 { transform: translateX(12px); color: var(--brown); }
}
@media (max-width: 900px) {
  .svc .n { grid-column: 1 / -1; }
  .svc h3, .svc p { grid-column: 1 / -1; }
}

/* ---------- Packs ---------- */

.packs { background: var(--paper-2); padding-block: clamp(96px, 11vw, 170px); }
.packs-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gutter); margin-bottom: clamp(48px, 6vw, 88px); }
.packs-intro h2 { grid-column: 1 / span 7; }
.packs-intro p { grid-column: 9 / span 4; align-self: end; color: #3D382C; }
.pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pack {
  --bg: var(--paper); --fg: var(--ink); --soft: var(--muted); --rule: var(--line);
  display: flex; flex-direction: column; background: var(--bg); color: var(--fg);
  padding: clamp(28px, 3vw, 44px); min-height: 100%;
}
.pack--olive { --bg: var(--olive); --fg: var(--paper); --soft: #DCD6C2; --rule: var(--line-light); }
.pack--ink { --bg: var(--ink); --fg: var(--paper); --soft: var(--on-dark-muted); --rule: var(--line-light); }
.pack .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pack .n { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 20px; }
.pack .mode { font: 400 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft); text-align: right; }
.pack h3 { margin-top: clamp(40px, 5vw, 72px); font-family: var(--serif); font-weight: 200; font-size: clamp(34px, 3vw, 46px); line-height: 1.05; letter-spacing: -0.015em; }
.pack .desc { margin-top: 18px; color: var(--soft); font-size: 16px; line-height: 1.7; }
.pack ul { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rule); flex: 1; }
.pack li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; display: flex; gap: 12px; }
.pack li::before { content: '—'; color: var(--soft); }
.pack .extra { margin-top: 18px; font-size: 14px; color: var(--soft); }
.pack .btn { margin-top: 32px; align-self: flex-start; }
.pack .btn { --bg: var(--fg); --fg: var(--bg); }
.pack--olive .btn, .pack--ink .btn { --bg: var(--paper); --fg: var(--ink); }
@media (max-width: 1024px) {
  .pack-grid { grid-template-columns: 1fr; }
  .packs-intro h2, .packs-intro p { grid-column: 1 / -1; }
  .pack h3 { margin-top: 32px; }
}

/* ---------- Estudio ---------- */

.studio { padding-block: clamp(96px, 11vw, 170px); }
.studio-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gutter); align-items: start; }
.studio-media { grid-column: 1 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.studio-media .frame:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.studio-media .frame { aspect-ratio: 3 / 4; }
.studio-media figcaption { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.studio-copy { grid-column: 7 / span 6; position: sticky; top: calc(var(--hdr) + 40px); }
.studio-copy .kicker { color: var(--muted); }
.studio-copy h2 { margin-top: 24px; }
.studio-copy p.body { margin-top: 28px; color: #3D382C; }
.studio-copy p.body + p.body { margin-top: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.pills li { padding: 11px 18px; font: 400 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; border: 1px solid var(--ink); }
.pills li:first-child { background: var(--brown); border-color: var(--brown); color: var(--paper); }
.pills li:nth-child(2) { background: var(--olive); border-color: var(--olive); color: var(--paper); }
@media (max-width: 900px) {
  .studio-media, .studio-copy { grid-column: 1 / -1; }
  .studio-copy { position: static; }
}

.quote { padding-block: clamp(80px, 10vw, 150px); border-top: 1px solid var(--line); }
.quote blockquote { text-align: center; }
.quote .serif { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.1; max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.quote .kicker { display: block; text-align: center; margin-bottom: 32px; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { padding-block: clamp(96px, 11vw, 170px); background: var(--paper-2); }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); }
.faq-grid > h2 { grid-column: 1 / span 4; }
.faq-list { grid-column: 6 / span 7; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--serif); font-weight: 300; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex-shrink: 0; position: relative; width: 16px; height: 16px; }
.faq summary .pm::before, .faq summary .pm::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform 280ms var(--ease-out); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq .answer { padding: 0 48px 28px 0; color: #3D382C; font-size: 16px; line-height: 1.75; }
.faq details[open] .answer { animation: faq-in 320ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--brown); }
}
@media (max-width: 900px) {
  .faq-grid > h2, .faq-list { grid-column: 1 / -1; }
}

/* ---------- Contacto ---------- */

.contact { background: var(--brown); color: var(--paper); padding-block: clamp(96px, 11vw, 170px); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px var(--gutter); }
.contact-info { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 28px; }
.contact-info .kicker { color: #E6DCC8; }
.contact-info p.body { color: #EFE6D4; max-width: 40ch; }
.contact-lines { font-style: normal; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.contact-lines a { font-family: var(--serif); font-weight: 200; font-size: clamp(26px, 2.6vw, 38px); width: fit-content; border-bottom: 1px solid rgba(244,239,226,0.35); transition: border-color 220ms ease; }
.contact-lines span { color: #E6DCC8; font-size: 15px; margin-top: 12px; }
@media (hover: hover) and (pointer: fine) {
  .contact-lines a:hover { border-color: var(--paper); }
}

.form { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field .lbl { font: 400 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: #E6DCC8; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(244,239,226,0.4); border-radius: 0; background: transparent; color: var(--paper);
  font: 300 17px/1.5 var(--sans); padding: 10px 0; outline: none; transition: border-color 220ms ease;
}
.field textarea { resize: vertical; min-height: 112px; }
.field select { appearance: none; cursor: pointer; background: linear-gradient(45deg, transparent 50%, var(--paper) 50%) calc(100% - 10px) 55% / 5px 5px no-repeat, linear-gradient(135deg, var(--paper) 50%, transparent 50%) calc(100% - 5px) 55% / 5px 5px no-repeat; }
.field select option { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(244,239,226,0.55); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--paper); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #EFE6D4; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--paper); flex-shrink: 0; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) {
  .contact-info, .form { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
}

/* ---------- Pie ---------- */

.ftr { background: var(--ink); color: var(--paper); padding: clamp(72px, 8vw, 120px) 0 36px; }
.ftr-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gutter); }
.ftr-top .claim { grid-column: 1 / span 6; }
.ftr-top .claim .serif { font-size: clamp(34px, 4vw, 60px); line-height: 1.08; }
.ftr-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--on-dark-muted); }
.ftr-top > :nth-child(2) { grid-column: 8 / span 2; }
.ftr-top > :nth-child(3) { grid-column: 10 / span 3; }
.ftr-col .kicker { color: #8F8878; margin-bottom: 6px; }
.ftr-col a { width: fit-content; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .ftr-col a:hover { color: var(--paper); }
}
.ftr-mark { margin-top: clamp(64px, 8vw, 120px); padding-top: 32px; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ftr-mark img { width: clamp(200px, 26vw, 360px); }
.ftr-mark small { font-size: 13px; color: #8F8878; }
@media (max-width: 900px) {
  .ftr-top .claim { grid-column: 1 / -1; }
  .ftr-top > :nth-child(2) { grid-column: 1 / span 6; }
  .ftr-top > :nth-child(3) { grid-column: 7 / span 6; }
}

/* ==========================================================
   Página de proyecto
   ========================================================== */

.p-hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink-2); color: var(--paper); display: flex; align-items: flex-end; isolation: isolate; }
.p-hero .hero-img { position: absolute; inset: 0; z-index: -2; }
.p-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,20,20,0.5) 0%, rgba(20,20,20,0) 24%), linear-gradient(0deg, rgba(20,20,20,0.85) 0%, rgba(20,20,20,0.4) 35%, rgba(20,20,20,0) 60%), rgba(20,20,20,0.12); }
.p-hero .wrap { padding-bottom: clamp(36px, 5vw, 64px); }
.p-hero .kicker { color: var(--on-dark-muted); }
.p-hero h1 { margin-top: 18px; }
.p-hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.p-hero h1 .ln > span { display: block; }

.p-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px var(--gutter); padding-block: 40px; border-bottom: 1px solid var(--line); }
.p-facts dt { font: 400 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.p-facts dd { margin-top: 10px; font-size: 17px; }
@media (max-width: 900px) { .p-facts { grid-template-columns: 1fr 1fr; } }

.p-story { padding-block: clamp(80px, 10vw, 150px); }
.p-story .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); }
.p-story .kicker { grid-column: 1 / span 3; color: var(--muted); padding-top: 0.8em; }
.p-story .statement { grid-column: 4 / span 9; }
.p-story p.body { grid-column: 7 / span 6; margin-top: 16px; color: #3D382C; }
@media (max-width: 900px) {
  .p-story .kicker, .p-story .statement, .p-story p.body { grid-column: 1 / -1; }
}

.gallery { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 24px); padding-bottom: clamp(80px, 10vw, 150px); }
.g-row { display: grid; gap: clamp(12px, 1.6vw, 24px); }
.g-row--2 { grid-template-columns: 1fr 1fr; }
.g-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.g-row--offset { grid-template-columns: 5fr 7fr; align-items: end; }
.g-item { display: block; position: relative; overflow: hidden; background: var(--sand); cursor: zoom-in; padding: 0; border: 0; width: 100%; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.g-row--1 .g-item { aspect-ratio: 16 / 9; }
.g-row--2 .g-item, .g-row--3 .g-item { aspect-ratio: 2 / 3; }
.g-row--2.land .g-item { aspect-ratio: 3 / 2; }
@media (hover: hover) and (pointer: fine) {
  .g-item:hover img { transform: scale(1.025); }
}
@media (max-width: 700px) {
  .g-row--3 { grid-template-columns: 1fr 1fr; }
  .g-row--3 .g-item:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .g-row--1 .g-item { aspect-ratio: 4 / 3; }
  .g-row--2.land { grid-template-columns: 1fr; }
}

.next { position: relative; display: block; height: 80svh; min-height: 480px; overflow: hidden; color: var(--paper); background: var(--ink-2); isolation: isolate; }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1400ms var(--ease-out); }
.next::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(20,20,20,0.45); transition: background-color 400ms ease; }
.next .wrap { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
.next .kicker { color: var(--on-dark-muted); }
@media (hover: hover) and (pointer: fine) {
  .next:hover img { transform: scale(1.03); }
  .next:hover::before { background: rgba(20,20,20,0.35); }
}

/* ---------- Visor de fotos ---------- */

.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 13, 12, 0.96); color: var(--paper); }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb[open] .lb-img { animation: lb-in 260ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); }
.lb-count { font: 400 12px/1 var(--sans); letter-spacing: 0.22em; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 clamp(8px, 6vw, 96px); min-height: 0; }
.lb-img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }
.lb button { background: none; border: 0; color: inherit; cursor: pointer; min-width: 48px; min-height: 48px; font: 400 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }
.lb-nav { display: flex; justify-content: center; gap: 24px; padding: 12px 0 24px; }
.lb-nav button { font-size: 20px; letter-spacing: 0; border: 1px solid var(--line-light); transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.lb-nav button:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .lb-nav button:hover { background: var(--paper); color: var(--ink); }
}

/* ---------- Gracias ---------- */

.thanks { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--brown); color: var(--paper); padding: calc(var(--hdr) + 40px) var(--gutter) 64px; }
.thanks .inner { max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.thanks p.body { color: #EFE6D4; }

/* ==========================================================
   Movimiento (skills de Emil Kowalski)
   Solo con JS activo (.js en <html>).
   ========================================================== */

/* Titular del hero: cada línea sube dentro de su máscara */
.js .hero h1 .ln > span, .js .p-hero h1 .ln > span { transform: translateY(105%); transition: transform 1100ms var(--ease-out); }
.js .hero h1 .ln:nth-child(2) > span, .js .p-hero h1 .ln:nth-child(2) > span { transition-delay: 90ms; }
.js .hero .kicker, .js .hero-foot, .js .p-hero .kicker { opacity: 0; transition: opacity 900ms var(--ease-out) 350ms; }
.js .hero-img img { transform: scale(1.08); transition: transform 2400ms var(--ease-out); }
.js.is-loaded .hero h1 .ln > span, .js.is-loaded .p-hero h1 .ln > span { transform: none; }
.js.is-loaded .hero .kicker, .js.is-loaded .hero-foot, .js.is-loaded .p-hero .kicker { opacity: 1; }
.js.is-loaded .hero-img img { transform: none; }

/* Texto que aparece al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Fotos que se descubren de abajo arriba */
.js [data-unveil] { clip-path: inset(100% 0 0 0); transition: clip-path 1300ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 100ms); }
.js [data-unveil] img { transform: scale(1.12); transition: transform 1800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 100ms); }
.js [data-unveil].is-in { clip-path: inset(0 0 0 0); }
.js [data-unveil].is-in img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero h1 .ln > span, .js .p-hero h1 .ln > span, .js .hero-img img,
  .js [data-reveal], .js [data-unveil], .js [data-unveil] img { transform: none !important; clip-path: none !important; transition: opacity 400ms ease !important; }
  .js [data-unveil] { opacity: 0; }
  .js [data-unveil].is-in { opacity: 1; }
  .hdr, .nav, .frame img, .g-item img, .next img, .svc h3 { transition-duration: 0ms !important; }
  .lb[open] .lb-img, .faq details[open] .answer { animation: none; }
}
