/* =========================================================
   ARTIMO · the selection (a private three-project site), v2 lean
   Builds on site.css and detail.css from the ARTIMO prototype.
   House rules: no lines, no eyebrows, no full stop on headings.
   ========================================================= */

/* the client's name, while it is still a placeholder */
.ph { display: inline-block; padding: 0 .38em; border-radius: 6px; background: rgba(19, 27, 23, .08); color: var(--ink-2); }
.hero .ph, .on-dark .ph { background: rgba(255, 255, 255, .16); color: inherit; }

:root { --hdr-w: 1060px; }
.hdr__nav { gap: 26px; }

/* headings never leave one word alone on a line */
.t-display, .t-h2, .hcard__title, .dtitle__name, .pcard__name, .note__hello, .ft__cta h2 { text-wrap: balance; }

/* ---------- overview: the note ---------- */
.note { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 110px); align-items: start; padding-block: clamp(88px, 10vw, 150px) clamp(56px, 6vw, 96px); }
.note__hello { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.note__text p { font-size: clamp(18px, 1.4vw, 20.5px); line-height: 1.62; letter-spacing: -.013em; color: var(--ink-2); max-width: 36em; }
.note__text p + p { margin-top: 1.05em; }
.note__text p:first-child { color: var(--ink); }
.note__text .advisor__sign { margin-top: 30px; }

/* ---------- overview: the three projects ---------- */
.homes { padding-bottom: clamp(24px, 3vw, 48px); }
.homes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 18px); }
.hcard { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); overflow: hidden; isolation: isolate; transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out); }
.hcard:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -48px rgba(0, 20, 14, .45); }
.hcard__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bone-2); }
.hcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.hcard:hover .hcard__media img { transform: scale(1.045); }
.hcard__media .tag { position: absolute; left: 14px; top: 14px; z-index: 1; }
.hcard__body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2vw, 28px); }
.hcard__title { font-size: clamp(24px, 2vw, 30px); line-height: 1.1; letter-spacing: -.028em; font-weight: 400; }
.hcard__loc { margin-top: 8px; font-size: 14.5px; color: var(--ink-3); }
.hcard__why { margin-top: 16px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.hcard__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: auto; padding-top: 26px; }
.hcard__price span { display: block; font-size: 13px; color: var(--ink-3); }
.hcard__price strong { display: block; margin-top: 2px; font-weight: 400; font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hcard .icon-btn { flex: none; }
.hcard:hover .icon-btn { background: var(--green); color: var(--on-dark); }
.hcard__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* ---------- project pages: title ---------- */
.dtitle { align-items: end; }
.dtitle__right { padding-top: 0; }
.dtitle__right .dtitle__price { margin-top: 0; }
.dtitle__right .dtitle__ctas { margin-top: 20px; }
.dtitle .tag { background: var(--bone-2); backdrop-filter: none; -webkit-backdrop-filter: none; margin-top: 18px; }

/* ---------- project pages: why I chose it + key facts ---------- */
.chose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.chose__why h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.chose__why p { margin-top: 20px; font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.62; letter-spacing: -.012em; color: var(--ink-2); max-width: 34em; }
.chose__why .advisor__sign { margin-top: 28px; }

.rows { display: grid; gap: 2px; background: #FFFFFF; border-radius: var(--r); padding: 10px; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 13px 14px; border-radius: var(--r-sm); font-size: 15.5px; }
.rows li:nth-child(odd) { background: rgba(19, 27, 23, .035); }
.rows li span:first-child { color: var(--ink-3); flex: 1 1 auto; min-width: 0; }
.rows li span:last-child { text-align: right; flex: 0 0 auto; max-width: 64%; font-variant-numeric: tabular-nums; }

/* ---------- project pages: the homes ---------- */
.utable td:nth-child(6) { font-size: 16px; white-space: nowrap; }
.units__note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.planfig { margin-top: 12px; }
.planfig button { position: relative; display: grid; place-items: center; width: 100%; border-radius: var(--r); background: #FBFAF6; overflow: hidden; cursor: zoom-in; padding: clamp(14px, 2vw, 28px); }
.planfig img { width: auto; max-width: 100%; max-height: 640px; object-fit: contain; border-radius: var(--r-sm); }
.planfig .dgal__exp { opacity: 1; transform: none; }
.planfig figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }

.pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcard { position: relative; display: flex; flex-direction: column; background: #FFFFFF; border-radius: var(--r); padding: 10px; min-width: 0; }
.pcard__plan { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: var(--r-md); background: #FBFAF6; overflow: hidden; cursor: zoom-in; }
.pcard__plan img { width: 88%; height: 88%; object-fit: contain; transition: opacity .35s var(--ease); }
.pcard__plan .dgal__exp { opacity: 1; transform: none; }
.pcard__tabs { position: absolute; left: 22px; top: 22px; z-index: 1; display: flex; gap: 4px; padding: 4px; border-radius: var(--r-sm); background: rgba(241, 238, 232, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pcard__tabs button { height: 34px; padding: 0 12px; border-radius: 4px; font-size: 13.5px; color: var(--ink-2); transition: background-color .3s var(--ease), color .3s var(--ease); }
.pcard__tabs button[aria-pressed="true"] { background: var(--green); color: var(--on-dark); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: clamp(18px, 2vw, 28px) clamp(12px, 1.6vw, 22px) clamp(12px, 1.4vw, 18px); }
.pcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.pcard__name { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.08; letter-spacing: -.03em; font-weight: 400; }
.pcard__where { margin-top: 8px; font-size: 15px; color: var(--ink-2); max-width: 34ch; }
.pcard__price { text-align: right; flex: none; }
.pcard__price strong { display: block; font-weight: 400; font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -.024em; font-variant-numeric: tabular-nums; }
.pcard .rows { margin-top: 20px; padding: 0; }
.pcard__cta { margin-top: auto; padding-top: 20px; }
.pcard__cta .btn { width: 100%; }

.home1 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.home1 .planfig { margin-top: 0; }
.home1__side { display: flex; flex-direction: column; gap: 16px; }
.home1__side .btn { width: 100%; }

/* ---------- payment ---------- */
.dplan__steps { margin-top: 0; }
.pay__note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.pay__open { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-md); background: var(--paper); }
.pay__open p { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }

/* ---------- gallery hero: readable on bright skies ---------- */
.dhero__all { color: #fff; background: rgba(0, 20, 14, .34); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dhero__all:hover { background: rgba(0, 20, 14, .5); }
.dhero__count { text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }

/* ---------- footer ---------- */
.ft__cols--sel { grid-template-columns: 1fr; justify-items: end; }
.ft__cols--sel .ft__col { min-width: 260px; }
.ft__bottom { gap: 8px 28px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .hdr__cta { display: none; }
  .hdr__nav { gap: 22px; font-size: 14px; }
  .homes__grid { gap: 10px; }
  .hcard__body { padding: 20px; }
}

@media (max-width: 960px) {
  .note { grid-template-columns: 1fr; gap: 22px; }
  .homes__grid { grid-template-columns: 1fr; gap: 12px; }
  .hcard { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .hcard__media { aspect-ratio: auto; min-height: 100%; }
  .dtitle { align-items: start; }
  .chose { grid-template-columns: 1fr; gap: 32px; }
  .pcards { grid-template-columns: 1fr; }
  .home1 { grid-template-columns: 1fr; }
  .ft__cols--sel { justify-items: start; }
}

@media (max-width: 760px) {
  /* ready-now homes: compact cards */
  .utable--ready tbody tr { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "res res pr" "bd bu bu" "in te te"; }
  .utable--ready td:nth-child(1) { grid-area: res; }
  .utable--ready td:nth-child(2) { grid-area: bd; }
  .utable--ready td:nth-child(3) { grid-area: bu; }
  .utable--ready td:nth-child(4) { grid-area: in; }
  .utable--ready td:nth-child(5) { grid-area: te; }
  .utable--ready td:nth-child(6) { grid-area: pr; align-items: flex-end; font-size: 19px; letter-spacing: -.02em; }
  .utable--ready td:nth-child(6)::before { display: none; }
}

@media (max-width: 640px) {
  .note { padding-block: 80px 48px; }
  .note__text p { font-size: 17.5px; }
  .hcard { display: flex; }
  .hcard__media { aspect-ratio: 4 / 3; min-height: 0; }
  .rows li { padding: 12px 12px; font-size: 15px; }
  .pcard__top { flex-direction: column; gap: 10px; }
  .pcard__price { text-align: left; }
  .pcard__tabs button { height: 36px; }
  .pay__open { grid-template-columns: 1fr; }
  .ft__cols--sel .ft__col { min-width: 0; }
  body[data-fc] main { padding-bottom: 84px; }
}

@media (hover: none) {
  .hcard:hover { transform: none; box-shadow: none; }
  .hcard:active .hcard__media img { transform: scale(1.025); }
}

/* a clear request line under a plan */
.plans-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 12px; padding: clamp(20px, 2.2vw, 28px); border-radius: var(--r-md); background: var(--paper); }
.plans-ask p { font-size: 16.5px; line-height: 1.55; color: var(--ink); max-width: 60ch; }
@media (max-width: 640px) { .plans-ask { grid-template-columns: 1fr; } .plans-ask .btn { width: 100%; } }
