:root {
  --bg: #F5F2ED;
  --ink: #0B0B0A;
  --text: #2B2A27;
  --mute: #DEDBD4;
  --mute-2: #A9A59D;
  --tile: #EAE6DF;
  --pad: clamp(16px, 4.2vw, 108px);
  --mark: clamp(20px, 2vw, 52px);
  --small: clamp(11px, .68vw, 17px);
  --body: clamp(14px, .95vw, 22px);
  --nav: clamp(11px, .84vw, 21px);
  --list: clamp(26px, 4.2vw, 114px);
  --numw: clamp(26px, 2.6vw, 68px);
  --gap: clamp(6px, .9vw, 22px);
  --cg: clamp(5px, .7vw, 18px);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --disp: "Unbounded", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --stroke: 1px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 1px dashed var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--bg); }

#app { min-height: 100vh; opacity: 0; transition: opacity .35s ease; }
#app.ready { opacity: 1; }

/* ---------- header ---------- */
.hd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "mark lang" "mark links";
  column-gap: 32px;
  padding: clamp(22px, 2.6vw, 66px) var(--pad) 0;
}
.mark {
  grid-area: mark;
  font-family: var(--disp);
  font-weight: 800;
  font-size: var(--mark);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  max-width: min(100%, 22em);
}
.mark .mk { display: block; font: inherit; }
.mute { color: var(--mute); }
.mark .mk-3 {
  font-size: .72em;
  line-height: 1.1;
  margin-top: .3em;
}
.lang, .links a {
  font-family: var(--disp);
  font-weight: 400;
  font-size: var(--nav);
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.lang { grid-area: lang; justify-self: end; font-size: calc(var(--nav) * .86); padding: .2em 0; }
.links { grid-area: links; align-self: end; display: flex; gap: clamp(18px, 3.4vw, 90px); padding-bottom: .1em; }
.links a[aria-current] { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }

/* ---------- intro / text pages ---------- */
.intro { padding: clamp(56px, 7vw, 180px) var(--pad) 0; }
.intro .txt { max-width: 57%; }
.txt p + p { margin-top: 1em; }
.txt a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--ink); }
.page-big .txt { font-size: calc(var(--body) * 1.25); line-height: 1.6; max-width: 62%; }

/* ---------- list of muestras ---------- */
.list { list-style: none; padding: clamp(90px, 15vw, 380px) var(--pad) 0; }
.list.tight { padding-top: clamp(56px, 7vw, 180px); }
.row-btn {
  display: grid;
  grid-template-columns: var(--numw) minmax(0, 1fr);
  align-items: start;
  width: 100%;
  color: var(--ink);
  padding: 0;
}
.num {
  font-family: var(--disp);
  font-size: var(--small);
  line-height: 1;
  padding-top: calc(var(--list) * .17);
  font-variant-numeric: tabular-nums;
}
.ttl {
  font-family: var(--disp);
  font-weight: 300;
  font-size: var(--list);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-transform: uppercase;
  transition: color .18s ease;
  overflow-wrap: anywhere;
}
.draft {
  display: inline-block;
  vertical-align: top;
  font-size: var(--small);
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--bg);
  background: var(--ink);
  -webkit-text-stroke: 0;
  padding: .3em .55em .25em;
  border-radius: 99px;
  margin: .6em 0 0 .4em;
  line-height: 1;
}
.row-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2, .7, .2, 1); }
.row.open .row-panel { grid-template-rows: 1fr; }
.row-inner { min-height: 0; overflow: hidden; padding-left: var(--numw); }
.row-box { padding: clamp(14px, 1.5vw, 36px) 0 clamp(30px, 3.4vw, 84px); max-width: 57%; }
.row-meta {
  display: flex; flex-wrap: wrap; gap: .4em 2.2em;
  margin-top: 1.4em;
  font-family: var(--disp);
  font-size: var(--small);
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}
.row-meta a { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; text-decoration-color: var(--ink); }
.empty { padding: clamp(56px, 7vw, 180px) var(--pad) 0; font-family: var(--disp); text-transform: uppercase; font-size: var(--nav); color: var(--mute-2); }

/* ---------- muestra page ---------- */
.ms {
  display: grid;
  grid-template-columns: 25% minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 56px);
  padding: clamp(56px, 7vw, 180px) var(--pad) 0;
  align-items: start;
}
.ms-side { align-self: stretch; }
.ms-desc { position: sticky; top: clamp(20px, 2.4vw, 60px); max-width: 26em; }
.ms-body { display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 84px); min-width: 0; }
.gal { display: flex; gap: var(--gap); align-items: flex-start; }
.gal-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.gal figure { margin: 0; }
.gal img, .gal video { width: 100%; background: var(--tile); }
figcaption {
  font-family: var(--disp);
  font-size: var(--small);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: .02em;
  color: var(--ink);
  margin-top: .9em;
  line-height: 1.4;
}
.tb { max-width: 40em; }
.tb p + p { margin-top: 1em; }
.vid { position: relative; aspect-ratio: 16 / 9; background: var(--tile); }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vfile { width: 100%; background: var(--tile); }

/* ---------- profile page ---------- */
.pf {
  display: grid;
  grid-template-columns: clamp(110px, 14vw, 340px) minmax(0, 46%);
  gap: clamp(16px, 2.2vw, 56px);
  padding: clamp(56px, 7vw, 180px) var(--pad) 0;
  align-items: start;
}
.pf.noimg { grid-template-columns: minmax(0, 57%); }
.pf-img img { width: 100%; background: var(--tile); }
.pf-contact {
  list-style: none;
  margin-top: 1.6em;
  font-family: var(--disp);
  font-size: var(--small);
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.9;
}
.pf-contact a { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; text-decoration-color: var(--ink); }

/* ---------- sections ---------- */
.sec { padding: clamp(96px, 11vw, 280px) var(--pad) 0; }
.sec-h {
  font-family: var(--disp);
  font-weight: 800;
  font-size: calc(var(--mark) * .82);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: clamp(16px, 1.7vw, 42px);
}
.sec-h span { display: block; }
.pills { display: flex; flex-wrap: wrap; gap: clamp(5px, .42vw, 12px); }
.pill {
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(11px, .9vw, 23px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: .52em .9em .46em;
}
.pill[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* ---------- chaos ---------- */
.chaos-grid { display: flex; gap: var(--cg); align-items: flex-start; }
.chaos-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--cg); }
.chaos-col a { display: block; background: var(--tile); overflow: hidden; }
.chaos-col img, .chaos-col video { width: 100%; object-fit: cover; transition: opacity .4s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.chaos-col a:hover img, .chaos-col a:hover video { transform: scale(1.04); }
.chaos-end { height: 1px; }

/* ---------- forms ---------- */
.form { display: grid; gap: clamp(22px, 2.2vw, 48px); max-width: 640px; }
.field label, .ft-h {
  display: block;
  font-family: var(--disp);
  font-size: var(--small);
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: .02em;
}
.field input, .field textarea, .sub-form input {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font: inherit;
  color: var(--ink);
  padding: .55em 0 .6em;
  outline: 0;
}
.field textarea { resize: vertical; min-height: 9em; line-height: 1.6; }
.field input::placeholder, .sub-form input::placeholder { color: var(--mute-2); }
.btn-u {
  font-family: var(--disp);
  font-size: var(--small);
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: .3em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ink);
  justify-self: start;
  padding: .2em 0;
}
.btn-u[disabled] { opacity: .4; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-family: var(--disp); font-size: var(--small); text-transform: uppercase; color: var(--ink); min-height: 1.4em; }
.page-form { padding: clamp(56px, 7vw, 180px) var(--pad) 0; display: grid; grid-template-columns: minmax(0, 57%); gap: clamp(28px, 3vw, 64px); }

/* ---------- footer ---------- */
.ft { padding-top: clamp(110px, 12vw, 300px); overflow: hidden; }
.ft-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 0 var(--pad);
  font-family: var(--disp);
  font-size: var(--small);
  color: var(--ink);
  line-height: 1.8;
}
.ft-grid ul { list-style: none; text-transform: uppercase; }
.ft-grid ul a { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; text-decoration-color: var(--ink); }
.ft-txt { font-family: var(--sans); margin-top: .9em; max-width: 22em; line-height: 1.6; color: var(--text); }
.sub-form { display: grid; gap: .9em; align-content: start; }
.sub-form input { font-family: var(--disp); font-size: var(--small); padding-top: 0; }
.marquee {
  margin-top: clamp(64px, 6vw, 160px);
  font-family: var(--disp);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 86px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: clamp(8px, .8vw, 20px);
}
.mq-track { display: inline-flex; animation: mq 46s linear infinite; will-change: transform; }
.mq-track span { padding-right: 2.4em; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- hover: outline everywhere ----------
   Drawn with text-shadow around the glyph (not -webkit-text-stroke),
   so the overlapping contours inside Unbounded's letters stay hidden. */
.mark a.mk:hover, .lang:hover, .links a:hover, .row-meta a:hover, .pill:not([aria-current]):hover,
.ft-grid ul a:hover, .btn-u:not([disabled]):hover, .pf-contact a:hover, .txt a:hover,
.row-btn:hover .ttl, .row.open .ttl {
  --o: var(--stroke);
  --d: calc(var(--o) * .7);
  color: var(--bg);
  text-shadow:
    var(--o) 0 0 var(--ink), calc(var(--o) * -1) 0 0 var(--ink),
    0 var(--o) 0 var(--ink), 0 calc(var(--o) * -1) 0 var(--ink),
    var(--d) var(--d) 0 var(--ink), calc(var(--d) * -1) var(--d) 0 var(--ink),
    var(--d) calc(var(--d) * -1) 0 var(--ink), calc(var(--d) * -1) calc(var(--d) * -1) 0 var(--ink);
}
.row-btn:hover .ttl, .row.open .ttl { --o: max(1px, .012em); }
.mark a.mk:hover { --o: max(1px, .03em); }
.draft { text-shadow: none; }

/* ---------- misc ---------- */
.loading { padding: clamp(56px, 7vw, 180px) var(--pad); font-family: var(--disp); font-size: var(--small); text-transform: uppercase; color: var(--mute-2); }

@media (max-width: 760px) {
  .hd { grid-template-areas: "mark lang" "links links"; row-gap: 22px; }
  .links { justify-content: space-between; width: 100%; }
  .intro .txt, .row-box, .page-big .txt { max-width: 100%; }
  .ms { grid-template-columns: 1fr; }
  .ms-desc { position: static; }
  .pf { grid-template-columns: 34% minmax(0, 1fr); }
  .pf.noimg, .page-form { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
  .row-panel, #app, .chaos-col img, .chaos-col video { transition: none; }
}
