/* Artesanos microsite. Design base: sales brochure (Nov 2026) and its BrandBook.
   Cream paper #F2E7D5 and olive paper #4A5218 from the brochure pages, Pacífico #1D2D47 ink,
   Naranja #C56238 for large titles only (3.3:1 on cream), #9C4A24 for small orange text (5.0:1).
   Unbounded for titles, Jost for text, as in the brochure. */

:root {
  --paper: #f2e7d5;
  --paper-2: #e6d9bf;
  --olive: #4a5218;
  --olive-2: #3c4313;
  --ink: #1d2d47;
  --ink-2: #665d51;      /* warm gray, 5.3:1 on cream */
  --rule: rgba(29, 45, 71, .18);
  --orange: #c56238;     /* display sizes only */
  --orange-ink: #9c4a24; /* small text */
  --sand: #d5c7a4;       /* secondary text on olive, 5.0:1 */
  --sea: #8cbdb8;
  --suuel: #4e5341;
  --suuel-2: #5a604b;
  --text: 'Jost', system-ui, sans-serif;
  --display: 'Unbounded', system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper) url('/img/brand/paper.jpg') center top / 1400px auto repeat;
  color: var(--ink);
  font: 400 17px/1.65 var(--text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.display {
  font-family: var(--display); font-weight: 300; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(34px, 5.6vw, 76px); margin: 0; color: var(--orange);
}
.kicker { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-ink); margin: 0 0 18px; }
.fine { font-size: 13px; line-height: 1.6; color: var(--ink-2); }

/* brand marks drawn from the brochure vectors, colored by currentColor */
.mark { display: block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.wordmark { --m: url('/img/brand/wordmark.svg'); aspect-ratio: 347 / 50; }
.by-suuel { --m: url('/img/brand/by-suuel.svg'); aspect-ratio: 75 / 12; }
.icon-mark { --m: url('/img/brand/icon.svg'); aspect-ratio: 73 / 82; }

/* presale line and starting price: type only, no box */
.offer { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; }
.presale { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--olive); }
.presale::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 10px; vertical-align: 1px; }
.presale.on-dark { color: var(--paper); margin-bottom: 22px; }
.from { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.01em; color: var(--ink); }

/* header */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 72px;
  display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter);
  color: var(--paper); transition: background .35s, color .35s, box-shadow .35s, opacity .8s;
}
.bar-logo { display: block; width: 168px; }
.bar-nav { display: flex; gap: 28px; margin-left: auto; }
.bar-nav a { text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.bar-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.lang { display: flex; gap: 2px; }
.lang button { background: none; border: 0; padding: 6px 6px; font-size: 13px; font-weight: 500; letter-spacing: .12em; cursor: pointer; opacity: .75; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.bar.solid { background: rgba(242, 231, 213, .96); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.bar.solid .bar-logo { color: var(--orange); }

/* hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--olive); }
.hero picture { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,24,10,.42) 0, rgba(28,24,10,0) 22%, rgba(28,24,10,0) 50%, rgba(28,24,10,.62) 100%); }
.hero-copy { position: absolute; left: var(--gutter); bottom: clamp(56px, 10vh, 110px); }
/* the colour logo rests on a soft pacific shadow in its corner, so the orange reads over the warm render */
.hero-corner { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(29, 45, 71, .86) 0, rgba(29, 45, 71, .62) 32%, rgba(29, 45, 71, 0) 62%),
  linear-gradient(0deg, rgba(29, 45, 71, .55) 0, rgba(29, 45, 71, 0) 45%); }
.hero-logo { width: clamp(280px, 30vw, 460px); height: auto; transform-origin: 50% 50%; will-change: transform; }
/* opening: pacific veil + large colour logo; app.js animates both to rest */
.hero-veil { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }
.intro .hero-veil { opacity: 1; }
.intro .hero-logo { opacity: 0; }
.intro .bar, .intro .hero-cue { opacity: 0; }
.hero-cue { transition: opacity .8s ease; }
.hero-cue { position: absolute; right: var(--gutter); bottom: clamp(56px, 10vh, 110px); color: var(--paper); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.hero-cue::after { content: ''; display: block; width: 1px; height: 48px; background: currentColor; margin: 12px auto 0; animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* welcome */
.welcome { position: relative; padding-top: clamp(150px, 16vw, 230px); padding-bottom: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.welcome .display { max-width: 9ch; }
.emblem { position: absolute; right: var(--gutter); top: clamp(48px, 5vw, 72px); width: clamp(56px, 6vw, 84px); color: var(--orange); }
.welcome-body p { margin: 0 0 1.2em; max-width: 54ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 36px 0 0; }
.facts div { border-top: 1px solid var(--ink); padding-top: 12px; }
.facts dt { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 6px 0 0; font-family: var(--display); font-weight: 300; font-size: 21px; line-height: 1.25; }

/* gallery, on the brochure's olive paper */
.gallery { padding: clamp(56px, 7vw, 96px) 0 clamp(80px, 10vw, 140px); background: var(--olive) url('/img/brand/paper-olive.jpg') center / 1400px auto; color: var(--paper); }
.gallery .display { color: var(--paper); }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.gallery-ctl { display: flex; align-items: center; gap: 12px; }
.gallery-count { font-size: 14px; letter-spacing: .1em; margin-right: 12px; }
.gallery-count b { font-weight: 400; }
.arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: none; cursor: pointer; font-size: 18px; line-height: 1; transition: background .2s, color .2s, border-color .2s; }
.arrow:hover { background: var(--paper); border-color: var(--paper); color: var(--olive); }
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
.track::-webkit-scrollbar { display: none; }
.slide { flex: none; width: min(78vw, 1040px); scroll-snap-align: start; margin: 0; }
.slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--olive-2); }
.slide figcaption { margin-top: 12px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.gallery .fine { color: var(--sand); margin-top: 28px; }

/* residences */
.residences { padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 140px); }
.res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.res-head .display { max-width: 14ch; }
.res-lead { max-width: 32ch; margin: 0; color: var(--ink-2); }
.res-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.plates { position: sticky; top: 96px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--ink); margin-bottom: 24px; }
.tabs button { background: none; border: 0; padding: 10px 0 12px; cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.plate { position: relative; margin: 0; container-type: inline-size; }
.plate img { width: 100%; height: auto; }
.pin {
  position: absolute; transform: translate(-50%, -50%);
  width: max(24px, 4cqw); height: max(24px, 4cqw); border-radius: 50%;
  border: 0; padding: 0; background: var(--ink); color: #fff; cursor: pointer;
  font: 500 clamp(9px, 1.5cqw, 13px)/1 var(--text); letter-spacing: 0;
  transition: background .2s, transform .2s, box-shadow .3s;
}
.pin:hover, .pin:focus-visible, .pin.hot { background: var(--orange-ink); transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 0 6px rgba(197, 98, 56, .25); outline: none; }
.plate-legend { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--ink-2); }
.plate-legend li { display: flex; align-items: center; gap: 8px; }
.plate-legend b { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 500; display: grid; place-items: center; }
.units { width: 100%; border-collapse: collapse; font-size: 15px; }
.units th { font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); text-align: left; padding: 0 0 10px; border-bottom: 1px solid var(--ink); }
.units td { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.units .num { text-align: right; padding-left: 12px; }
.units tr.lv td { padding: 28px 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); border-bottom: 1px solid var(--ink); cursor: default; }
.units tbody tr:first-child.lv td { padding-top: 16px; }
.units tbody tr[data-code] { cursor: pointer; transition: color .15s; }
.units tbody tr[data-code]:hover, .units tbody tr.hot { color: var(--orange-ink); }
.units td:first-child { width: 3.4em; font-weight: 500; }
.units button { all: unset; cursor: pointer; }
.units button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.res-list .fine { margin-top: 22px; }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.split-img { position: relative; overflow: hidden; min-height: 50vh; }
.split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-copy { padding: clamp(56px, 8vw, 120px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.split-copy .display { font-size: clamp(32px, 4.4vw, 60px); margin-bottom: 36px; max-width: 13ch; }
.split.flip .split-img { order: 2; }
.roof { background: var(--paper-2); }
.lines { list-style: none; margin: 0; padding: 0; max-width: 46ch; }
.lines li { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.lines li:first-child { border-top: 1px solid var(--rule); }

/* location, olive like the brochure page */
.location { background: var(--olive) url('/img/brand/paper-olive.jpg') center / 1400px auto; color: var(--paper); padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 120px); }
.location .display { color: #e08a63; }  /* lighter naranja on olive, 3.9:1 at display size */
.loc-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px 64px; }
.loc-body p { margin: 0 0 1.2em; max-width: 60ch; }
.loc-map { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 64px); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.map { margin: 0; }
.map img { width: 100%; height: auto; }
.places { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.places li { counter-increment: p; display: grid; grid-template-columns: 24px 1fr; column-gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(242, 231, 213, .22); }
.places li::before { content: counter(p); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 12px; font-weight: 500; display: grid; place-items: center; margin-top: 2px; }
.places small { display: block; color: var(--sand); font-size: 14px; }

/* break before the developer section: full bleed, no copy, a change of subject */
.break { position: relative; height: 100svh; min-height: 480px; max-height: 1100px; overflow: hidden; background: var(--olive-2); }
.break img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }

/* about Suuel: its own green, real photography */
.about { --rule: rgba(78, 83, 65, .24); background: var(--paper-2); color: var(--suuel); padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 140px); }
.about .kicker, .about .display { color: var(--suuel); }
.about-head { margin-bottom: 48px; }
.about-logo { width: clamp(220px, 30vw, 400px); height: auto; margin: 8px 0 clamp(44px, 5vw, 64px); }
.about-head .display { max-width: 16ch; font-size: clamp(32px, 4.2vw, 56px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px clamp(40px, 6vw, 88px); align-items: start; }
.about-body p { margin: 0 0 1.2em; max-width: 52ch; }
.portfolio { width: 100%; border-collapse: collapse; font-size: 15px; }
.portfolio caption { text-align: left; }
.portfolio thead th { font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--suuel-2); text-align: left; padding: 0 0 10px; border-bottom: 1px solid var(--suuel); }
.portfolio td, .portfolio tbody th { padding: 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; font-weight: 400; }
.portfolio tbody th small, .portfolio td small { display: block; font-size: 13px; color: var(--suuel-2); }
.portfolio .num { text-align: right; padding-right: 28px; white-space: nowrap; }
.portfolio .live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: 1px; }
.portfolio tr.here th, .portfolio tr.here td { border-bottom-color: var(--suuel); font-weight: 500; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(56px, 7vw, 96px); }
.about-photos figure { margin: 0; }
.about-photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.about-photos figcaption { margin-top: 12px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--suuel-2); }

/* contact */
.contact { background: var(--olive) url('/img/brand/paper-olive.jpg') center / 1400px auto; color: var(--paper); padding: clamp(80px, 10vw, 140px) 0; }
.contact .display { color: var(--paper); max-width: 16ch; }
.contact-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.contact-links { display: grid; gap: 12px; text-align: right; }
.contact-links a { text-decoration: none; font-size: clamp(16px, 1.6vw, 20px); border-bottom: 1px solid rgba(242, 231, 213, .35); padding-bottom: 6px; }
.contact-links a:hover { border-color: var(--orange); }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.foot .by-suuel { width: 150px; color: var(--orange-ink); }
.foot .fine { margin: 0; max-width: 60ch; }

/* unit dialog: leaves the page visible around it; a tap outside the card closes it (app.js) */
.unit {
  --unit-h: calc(100svh - 120px);
  width: min(1040px, calc(100vw - 120px)); max-height: var(--unit-h); padding: 0; border: 0;
  background: var(--paper) url('/img/brand/paper.jpg') center / 1400px auto; color: var(--ink);
  box-shadow: 0 30px 80px rgba(30, 26, 10, .35);
}
.unit::backdrop { background: rgba(40, 44, 14, .5); }
.unit[open] { animation: rise .35s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.unit-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); max-height: var(--unit-h); }
.unit-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; }
.unit-x:hover { color: var(--orange-ink); }
.unit-plan { padding: 36px; display: flex; align-items: center; justify-content: center; min-height: 0; }
.unit-plan img { max-height: min(600px, calc(var(--unit-h) - 72px)); max-width: 100%; width: auto; object-fit: contain; }
.unit-info { padding: 40px 44px 30px 12px; overflow-y: auto; }
.unit-code { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.02em; color: var(--orange); }
.unit-name { color: var(--ink); display: block; font-size: .5em; letter-spacing: -.005em; margin-top: 8px; }
.unit-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.unit-note:empty { display: none; }
.unit-areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; margin: 22px 0; }
.unit-areas div { border-top: 1px solid var(--ink); padding-top: 10px; }
.unit-areas dt { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.unit-areas dd { margin: 4px 0 0; font-family: var(--display); font-weight: 300; font-size: clamp(17px, 2vw, 22px); white-space: nowrap; }
.unit-rooms { list-style: none; margin: 0 0 22px; padding: 0; columns: 2; column-gap: 24px; font-size: 14px; counter-reset: r; }
.unit-rooms li { counter-increment: r; display: flex; align-items: center; gap: 10px; padding: 3px 0; break-inside: avoid; }
.unit-rooms li::before { content: counter(r); flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; }
.unit-refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.unit-refs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.unit-cta { margin-bottom: 18px; }
.btn { display: inline-block; background: var(--olive); color: var(--paper); text-decoration: none; padding: 15px 26px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; transition: background .2s; }
.btn:hover { background: var(--olive-2); }

/* responsive */
@media (max-width: 980px) {
  .res-grid, .about-grid, .loc-in, .loc-map { grid-template-columns: minmax(0, 1fr); }
  .plates { position: static; min-width: 0; }
  .unit { --unit-h: calc(100svh - 56px); width: min(460px, calc(100vw - 48px)); }
  .unit-in { grid-template-columns: 1fr; overflow-y: auto; }
  .unit-plan { padding: 52px 20px 8px; }
  .unit-plan img { max-height: 42svh; }
  .unit-info { padding: 20px 20px 26px; overflow: visible; }
}
@media (max-width: 980px) and (orientation: portrait) {
  .hero-img { object-position: 50% 40%; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .bar { height: 60px; gap: 16px; }
  .bar-logo { width: 132px; }
  .bar-nav { display: none; }
  .lang { margin-left: auto; }
  .welcome, .about-photos { grid-template-columns: 1fr; }
  .welcome { padding-top: 120px; }
  .portfolio .num { padding-right: 16px; }
  .res-head, .gallery-head { flex-direction: column; align-items: flex-start; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split.flip .split-img { order: 0; }
  .split-img { aspect-ratio: 4 / 3; min-height: 0; }
  .materials .split-img { aspect-ratio: 4 / 5; }
  .break { height: 72svh; min-height: 420px; }
  .slide { width: 86vw; }
  .contact-links { text-align: left; }
  .tabs { gap: 2px 16px; }
  /* the ground floor markers sit 13 pt apart; below 600 px the plate scrolls sideways so the pins never overlap */
  .plate-scroll { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: thin; }
  .plate { min-width: 600px; }
  .hero-cue { display: none; }
  .hero-logo { width: min(66vw, 300px); }
  .hero-corner { background: linear-gradient(0deg, rgba(29, 45, 71, .9) 0, rgba(29, 45, 71, .72) 30%, rgba(29, 45, 71, 0) 58%); }
  .tabs button { font-size: 12px; letter-spacing: .1em; }
}
@media (max-width: 420px) {
  .units .ft { display: none; }
  .facts dd { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
