/* ================= Arsetco site ================= */

/* ---- shared ---- */
section { position: relative; }
h2, h3 { font-family: var(--font-head); font-weight: 300; margin: 0; letter-spacing: -.01em; }
.section-head { padding: 0 var(--gutter); max-width: 1500px; margin: 0 auto 4rem; }
.section-head .mono { color: var(--muted); margin: 0 0 1.2rem; display: flex; align-items: center; gap: .8rem; }
.section-head .mono::before, .rep__sticky > .mono::before, .interiors__head > .mono::before, .reno__intro > .mono::before, .start__copy > .mono::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
}
.section-head h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.04; max-width: 16ch; }

.chip { position: absolute; left: 1rem; top: 1rem; padding: .45rem .75rem; border-radius: 10px; background: rgba(14, 13, 12, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--light); margin: 0; }
.chip--y { background: var(--accent); color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5); animation: pulse 3.2s ease-out infinite; animation-delay: -1s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); } }

.glass {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15);
  box-shadow: 0 24px 70px rgba(40, 34, 20, .10), 0 1px 0 rgba(255, 255, 255, .9) inset; border-radius: 22px;
}
.glass::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, .5), transparent 40%, rgba(var(--accent-rgb), .06)); }
.glass > * { position: relative; z-index: 2; }

/* entrances */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- nav ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--gutter); transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
  /* over the dark hero film: light text */
  --text: #f2efe9; --text-2: rgba(242, 239, 233, .8); color: var(--text);
}
/* over the white page: light bar, dark text */
.nav.solid { --text: #171614; --text-2: #4a4640; background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); padding-block: .75rem; }
.nav__brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.nav__brand svg { width: 30px; height: 30px; }
.nav__brand span { font: 300 .95rem/1 var(--font-head); letter-spacing: .45em; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { text-decoration: none; font-size: .88rem; color: var(--text-2); position: relative; padding: .3rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { min-height: 40px; padding: 0 1.2rem; font-size: .82rem; }

/* ---- impact ---- */
.impact { background: var(--bg); }
.impact__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); max-width: 1500px; margin: 0 auto; }
.impact__label { color: var(--muted); margin: 0 0 2rem; }
.impact__text { font: 300 clamp(2rem, 4.6vw, 4.4rem)/1.12 var(--font-head); margin: 0; max-width: 22ch; letter-spacing: -.01em; }
.impact__text .word { display: inline-block; opacity: .12; will-change: opacity, transform; }
.impact__text .word.hl { color: var(--text); background: linear-gradient(transparent 62%, rgba(var(--accent-rgb), .75) 62%, rgba(var(--accent-rgb), .75) 92%, transparent 92%); }

/* ---- studios ---- */
.studios { display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; }
.studio { padding: clamp(3rem, 8vw, 7rem) var(--gutter); display: flex; flex-direction: column; justify-content: flex-end; color: var(--ink); position: relative; overflow: hidden; }
/* white panel so the Arsetti mark (white square, black stair) reads as drawn; hairlines frame it on the white page */
.studio--arsetti { background: #ffffff; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio--arsetco { background: var(--accent); }
.studio__mark { width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); margin-bottom: auto; }
.studio .mono { margin: 3rem 0 1rem; opacity: .7; }
.studio h2 { font-size: clamp(3.4rem, 8vw, 7.5rem); line-height: .9; font-weight: 300; letter-spacing: .04em; }
.studio__lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 30rem; margin: 1.6rem 0 2rem; line-height: 1.5; }
.studio ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(14, 13, 12, .25); max-width: 30rem; }
.studio li { padding: .8rem 0; border-bottom: 1px solid rgba(14, 13, 12, .25); font-size: .95rem; display: flex; justify-content: space-between; }
.studio li::after { content: "→"; opacity: .45; }

/* ---- services ---- */
.services { padding: clamp(7rem, 14vw, 12rem) 0 clamp(5rem, 10vw, 8rem); }
.services__list { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1500px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 2.4rem 2.2rem 2.6rem 0; border-right: 1px solid var(--line); position: relative; }
.service + .service { padding-left: 2.2rem; }
.service:last-child { border-right: 0; }
.service__no { color: var(--accent-ink); }
.service h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin: 3.2rem 0 .5rem; }
.service__who { color: var(--muted); margin: 0 0 1.2rem; }
.service p:last-child { color: var(--text-2); margin: 0; max-width: 28rem; }
.service::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--accent); transition: width .9s var(--ease); }
.service + .service::before { left: 0; }
.service:hover::before { width: 100%; }

/* ---- client representative ---- */
.rep { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; padding: clamp(5rem, 10vw, 8rem) var(--gutter); max-width: 1500px; margin: 0 auto; }
.rep__sticky { position: sticky; top: 18vh; }
.rep__sticky > .mono { color: var(--muted); display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem; }
.rep__sticky h2 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); line-height: 1.05; margin-bottom: 1.4rem; }
.rep__sticky p:not(.mono) { color: var(--text-2); max-width: 28rem; }
.rep__meter { margin-top: 2.5rem; height: 2px; width: min(280px, 60%); background: var(--line); position: relative; overflow: hidden; }
.rep__meter i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.rep__steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 2.4rem 0 2.4rem 4.5rem; border-top: 1px solid var(--line); position: relative; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step > .mono { position: absolute; left: 0; top: 2.75rem; color: var(--accent-ink); }
.step h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: .6rem; }
.step p { margin: 0; color: var(--text-2); max-width: 34rem; }

/* ---- villas ---- */
.villas { padding: clamp(6rem, 12vw, 10rem) 0; }

.villas__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.5rem; padding: 0 var(--gutter); max-width: 1500px; margin: 0 auto; }
.vcard__img { overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 10; }
.vcard--wide .vcard__img { aspect-ratio: 16 / 8.6; }
.vcard img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.vcard:hover img { transform: scale(1); }
.vcard:not(.vcard--wide) { margin-top: 8rem; }
.vcard__meta { padding: 1.4rem 0 0; }
.vcard__meta .mono:first-child { color: var(--muted); margin: 0 0 .6rem; }
.vcard__meta h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-bottom: .8rem; }
.vcard__meta .status { margin: 0; }

/* ---- interiors: horizontal track ---- */
.interiors { background: var(--surface-2); }
.interiors__pin { height: 100vh; display: flex; align-items: center; gap: 4rem; overflow: hidden; padding-left: var(--gutter); }
.interiors__head { flex: 0 0 min(400px, 32vw); }
.interiors__head > .mono { color: var(--muted); display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem; }
.interiors__head h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.06; margin-bottom: 1.2rem; }
.interiors__head p:not(.mono) { color: var(--text-2); }
.interiors__viewport { flex: 1; min-width: 0; overflow: hidden; align-self: stretch; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3rem); mask-image: linear-gradient(90deg, transparent 0, #000 3rem); }
.interiors__track { display: flex; gap: 1.5rem; padding: 0 var(--gutter) 0 3rem; will-change: transform; }
.icard { flex: 0 0 auto; width: min(58vw, 820px); margin: 0; }
.icard img { width: 100%; aspect-ratio: 16 / 10.4; object-fit: cover; border-radius: 6px; }
.icard figcaption { display: flex; gap: 1rem; align-items: baseline; padding-top: 1rem; font: 300 1.3rem/1.2 var(--font-head); }
.icard figcaption .mono { color: var(--accent-ink); }

/* ---- renovation: one card at a time ---- */
.reno__pin { height: 100vh; display: grid; grid-template-columns: 4fr 8fr; align-items: center; gap: 3rem; padding: 0 var(--gutter); max-width: 1500px; margin: 0 auto; }
.reno__intro > .mono { color: var(--muted); display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem; }
.reno__intro h2 { font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1.05; margin-bottom: 1.2rem; }
.reno__intro p:not(.mono) { color: var(--text-2); max-width: 26rem; }
.reno__count { margin-top: 2.5rem; color: var(--muted); }
.reno__count span { color: var(--accent-ink); font-size: 1.1rem; }
.reno__stack { position: relative; height: min(68vh, 620px); }
.reno .rcard { position: absolute; inset: 0; display: grid; grid-template-columns: 1.25fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; will-change: transform, opacity; }
.rcard__img { overflow: hidden; }
.rcard__img img { width: 100%; height: 100%; object-fit: cover; }
.rcard__body { padding: clamp(1.6rem, 3vw, 2.8rem); display: flex; flex-direction: column; justify-content: flex-end; }
.rcard__body .mono { color: var(--muted); margin: 0 0 1rem; }
.rcard__body h3 { font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1.1; margin-bottom: 1rem; }
.rcard__body p:last-child { color: var(--text-2); margin: 0; }

/* ---- owners ---- */
.owners { padding: clamp(8rem, 14vw, 12rem) 0; overflow: hidden; }
.owners__bg { position: absolute; inset: 0; background: url("../media/poster.jpg") center / cover no-repeat; opacity: .55; }
.owners__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(255, 255, 255, .45) 35%, rgba(255, 255, 255, .45) 65%, var(--bg) 100%); }
.owners .section-head, .owners__grid { position: relative; }
.owners .section-head h2 { text-shadow: 0 1px 30px rgba(255, 255, 255, .9); }
.owners__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 0 var(--gutter); max-width: 1500px; margin: 0 auto; }
.ocard { padding: 2.2rem; min-height: 320px; display: flex; flex-direction: column; }
.ocard .mono { color: var(--accent-ink); margin: 0 0 auto; }
.ocard h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); margin: 3rem 0 .9rem; }
.ocard p:last-child { margin: 0; color: var(--text-2); }
.ocard:nth-child(2) { transform: translateY(3rem); }
.ocard.reveal:nth-child(2):not(.in) { transform: translateY(calc(3rem + 34px)); }

/* ---- awards ---- */
.awards { padding: clamp(5rem, 10vw, 8rem) var(--gutter); max-width: 1500px; margin: 0 auto; }
.awards__title { font: 500 clamp(2.4rem, 5vw, 4.6rem)/1 var(--font-head); letter-spacing: -.01em; margin: 0 0 2.5rem; color: var(--text); }
.award__name { font-weight: 500 !important; }
.awards__list { list-style: none; margin: 0; padding: 0; }
.award { display: grid; grid-template-columns: 8rem 1fr auto; gap: 2rem; align-items: baseline; padding: 2rem 0; border-top: 1px solid var(--line); }
.award:last-child { border-bottom: 1px solid var(--line); }
.award__year { font: 300 1.2rem/1 var(--font-mono); color: var(--accent-ink); }
.award__name { font: 300 clamp(1.5rem, 3.2vw, 2.8rem)/1.1 var(--font-head); }
.award__proj { color: var(--muted); text-align: right; }

/* ---- start / form ---- */
.start { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); padding: clamp(6rem, 12vw, 10rem) var(--gutter); max-width: 1500px; margin: 0 auto; align-items: start; }
.start__copy > .mono { color: var(--muted); display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem; }
.start__copy h2 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.04; margin-bottom: 1.4rem; }
.start__copy > p:not(.mono) { color: var(--text-2); max-width: 28rem; }
.start__facts { list-style: none; padding: 0; margin: 2.5rem 0; border-top: 1px solid var(--line); }
.start__facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.start__facts .mono { color: var(--muted); }
.start__facts a { text-decoration: none; border-bottom: 1px solid rgba(var(--accent-rgb), .5); }
.start__facts a:hover { color: var(--accent-ink); }

.form { padding: clamp(1.6rem, 3vw, 2.6rem); display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form label > span, .form legend { display: block; font: 400 .7rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.form input:not([type=radio]), .form select, .form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  font: 400 1rem/1.4 var(--font); padding: .85rem 1rem; transition: border-color .3s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; }
.form__choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.form__choice legend { width: 100%; }
.form__choice label { cursor: pointer; }
.form__choice input { position: absolute; opacity: 0; pointer-events: none; }
.form__choice label span { display: inline-block; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; transition: all .3s var(--ease); }
.form__choice input:checked + span { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.form__choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__send { justify-self: start; margin-top: .4rem; }
.form__note { margin: 0; color: var(--muted); font-size: .82rem; }
.form__error { margin: 0; color: #b3261e; font-size: .9rem; }
.form__done { position: absolute !important; inset: 0; z-index: 5 !important; background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 4vw, 3rem); }
.form__done[hidden] { display: none; }
.form__done svg { width: 56px; height: 56px; margin-bottom: 1.6rem; }
.form__done h3 { font-size: 2rem; margin-bottom: .8rem; }
.form__done p { color: var(--text-2); max-width: 26rem; }
.form__done a { color: var(--accent-ink); }

/* ---- footer ---- */
.footer { position: relative; margin-top: 12vh; padding: 10vh var(--gutter) 3rem; background: var(--bg); border-top: 1px solid var(--line); }
.footer__marks { display: flex; flex-wrap: wrap; gap: 3rem 5rem; }
.footer__marks div { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
.footer__marks svg { width: 54px; height: 54px; grid-row: span 2; }
.footer__marks span { font: 300 1.2rem/1 var(--font-head); letter-spacing: .45em; }
.footer__marks small { color: var(--muted); }
.footer__slogan { font: 300 clamp(3rem, 11vw, 10rem)/.95 var(--font-head); margin: 8vh 0 6vh; letter-spacing: -.02em; color: var(--text); font-weight: 500; }
.footer__base { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; font-size: .88rem; color: var(--muted); padding-top: 2rem; border-top: 1px solid var(--line); }
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--accent-ink); }

/* ---- hidden tabs pause the living details ---- */
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* ================= tablet ================= */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .services__list { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 2.2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service h3 { margin-top: 1.4rem; }
  .rep { grid-template-columns: 1fr; gap: 2rem; }
  .rep__sticky { position: static; }
  .reno__pin { grid-template-columns: 1fr; height: auto; min-height: 100vh; padding-block: 6rem; }
  .owners__grid { grid-template-columns: 1fr; }
  .ocard:nth-child(2), .ocard.reveal:nth-child(2):not(.in) { transform: none; }
  .ocard { min-height: 0; }
  .start { grid-template-columns: 1fr; }
}

/* ================= phones / static hero (must match STATIC_HERO in JS) ================= */
@media (max-width: 768px), (hover: none), (prefers-reduced-motion: reduce) {
  .studios { grid-template-columns: 1fr; }
  .studio { min-height: 80vh; }
  .villas__grid { grid-template-columns: 1fr; }
  .vcard:not(.vcard--wide) { margin-top: 0; }
  .interiors__pin { height: auto; flex-direction: column; align-items: stretch; padding: 6rem var(--gutter); gap: 2.5rem; overflow: visible; }
  .interiors__head { flex: none; }
  .interiors__viewport { display: block; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .interiors__track { flex-direction: column; padding: 0; width: 100%; }
  .icard { width: 100%; }
  .reno__pin { height: auto; }
  .reno__stack { height: auto; display: grid; gap: 1.5rem; }
  .reno .rcard { position: relative; inset: auto; grid-template-columns: 1fr; }
  .rcard__img { aspect-ratio: 4 / 3; }
  .reno__count { display: none; }
  .award { grid-template-columns: 1fr; gap: .6rem; }
  .award__proj { text-align: left; }
  .form__row { grid-template-columns: 1fr; }
  .impact__text .word { opacity: 1 !important; filter: none !important; transform: none !important; }
}
@media (max-width: 768px) {
  .nav__cta { display: none; }
  .nav__brand span { letter-spacing: .3em; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
