/* Reformas Albero. Built on the tasteskill base (reset, motion helpers). Direction: "The place carries it". */

/* ---------- tokens (dealt palette "Three stones", dealt type "Bodoni Moda / Jost") ---------- */
:root {
  --bg: #eeecea;
  --surface: #e4e1dd;
  --ink: #333231;
  --muted: #6b6763;
  --accent: #5c6b54;
  --accent-ink: #ffffff;
  --field-1: #cdc3b6;
  --field-1-ink: #333231;

  --font-display: "Bodoni Moda", "Didot", Georgia, serif;
  --font-text: "Jost", system-ui, sans-serif;

  --step-small: clamp(13px, 0.8rem + 0.1vw, 14px);
  --step-body: clamp(17px, 16px + 0.2vw, 18px);
  --step-lead: clamp(20px, 18px + 0.4vw, 22px);
  --step-head: clamp(26px, 2.5vw, 36px);
  --step-display: clamp(48px, 8.2vw, 120px);

  --margin: clamp(16px, 2.2vw, 32px);
  --gutter: clamp(16px, 2vw, 28px);
  --section: clamp(120px, 14vw, 200px);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: var(--margin); top: -4rem; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; text-decoration: none; z-index: 10; }
.skip:focus { top: 1rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; hyphens: none; }
p { max-width: 62ch; text-wrap: pretty; }
.small { font-size: var(--step-small); line-height: 1.5; }
.muted { color: var(--muted); }
.head { font-size: var(--step-head); line-height: 1.12; letter-spacing: -0.02em; }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.process { overflow-x: clip; }
a.link, .link { text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.6rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); text-decoration: none; white-space: nowrap; font-size: var(--step-body); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .button:hover { background: #4c5a45; } }
.button.wide { width: 100%; min-height: 3.25rem; }
.field { width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; background: var(--bg); border: 0; border-radius: var(--radius); font-size: 17px; color: var(--ink); }
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.request .field { background: var(--surface); }
.fieldset-label { display: grid; gap: 0.5rem; font-size: var(--step-small); color: var(--ink); }
.sq { width: 48px; height: 48px; background: var(--surface); color: var(--ink); font-size: 20px; line-height: 1; display: inline-grid; place-items: center; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.sq:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .sq:hover { background: var(--field-1); } }
.text-link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .text-link:hover { text-decoration-color: currentColor; } }

/* ---------- header ---------- */
.top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; }
.mark { font-family: var(--font-display); font-size: 22px; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 28px; font-size: var(--step-body); }
.top nav a { text-decoration: none; text-underline-offset: 0.25em; }
.top nav a:hover { text-decoration: underline; text-decoration-thickness: 0.07em; }

/* ---------- hero: sentence with a photo strip ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; }
.hero-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 4vh; }
.hero-title { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.03em; font-weight: 500; }
.hero-title .l1 { display: flex; align-items: center; gap: 0.22em; }
.hero-title .l2 { display: block; }
.strip { flex: 1 1 0; min-width: 0; height: 0.96em; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero .strip { animation: strip-open 1100ms var(--ease-in-out) 300ms both; }
.hero .strip img { animation: strip-settle 1500ms var(--ease-soft) 300ms both; }
@keyframes strip-open { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes strip-settle { from { transform: scale(1.12); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero .strip, .hero .strip img { animation: none; } }
.hero-cta { margin-top: clamp(40px, 8vh, 104px); }
.hero-lead { font-size: var(--step-lead); line-height: 1.45; max-width: 44ch; padding-bottom: 44px; }

/* ---------- intro ---------- */
.statement { grid-column: 1 / span 9; font-size: var(--step-head); line-height: 1.22; letter-spacing: -0.01em; }
.facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 56px; margin-top: clamp(40px, 6vw, 72px); font-size: var(--step-body); }

/* ---------- projects ---------- */
.work-head { display: block; }
.obras { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(100px, 18vh, 200px); margin-top: clamp(64px, 10vh, 120px); }
.obra { display: flex; flex-direction: column; gap: 14px; }
.obra img { width: 100%; aspect-ratio: var(--r, 3 / 2); object-fit: cover; }
.obra .meta { font-size: var(--step-small); color: var(--muted); }
.obra .desc { font-size: var(--step-body); }
.o1 { grid-column: 1 / span 6; --r: 3 / 2; }
.o2 { grid-column: 8 / span 5; --r: 4 / 5; }
.o3 { grid-column: 3 / span 7; --r: 16 / 9; }
.o4 { grid-column: 9 / span 4; --r: 9 / 16; }
.o4 img { object-position: 100% 50%; }
.o5 { grid-column: 2 / span 6; --r: 3 / 2; }
.o6 { grid-column: 7 / span 6; --r: 4 / 3; }
.remark { grid-column: 2 / span 4; font-size: var(--step-lead); line-height: 1.4; align-self: center; }
.credit-line { margin-top: clamp(96px, 16vh, 180px); font-size: var(--step-small); color: var(--muted); }

/* ---------- process: weeks in a row ---------- */
.process-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.process-note { margin-top: 20px; font-size: var(--step-lead); max-width: 40ch; line-height: 1.4; }
.rail-controls { display: flex; gap: 10px; }
.bar { height: 6px; background: var(--surface); margin-top: 48px; }
.bar i { display: block; height: 100%; width: 20%; background: var(--ink); transition: width var(--t-ui) linear; }
.rail { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: calc(var(--margin) * 2); scrollbar-width: none; margin-inline: calc(var(--margin) * -1); padding: 56px calc(var(--margin) * 2) 8px; }
.rail::-webkit-scrollbar { display: none; }
.week { flex: 0 0 280px; scroll-snap-align: start; display: flex; flex-direction: column; }
.week h3 { font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.week p { font-size: 16px; margin-top: 10px; }
.week figure { margin-top: 0; }
.week img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.week:nth-child(2) figure { margin-top: 72px; }
.week:nth-child(3) figure { margin-top: 24px; }
.week:nth-child(4) figure { margin-top: 128px; }
.week:nth-child(5) figure { margin-top: 48px; }
.week:nth-child(6) figure { margin-top: 96px; }
.week:nth-child(7) figure { margin-top: 16px; }
.week:nth-child(8) figure { margin-top: 64px; }
.week:nth-child(9) figure { margin-top: 36px; }

/* ---------- pricing with the live estimate ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.calc { grid-column: 1 / span 5; background: var(--surface); color: var(--ink); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.calc .head { margin-bottom: 4px; }
.calc .hint { font-size: var(--step-small); }
.calc-result { margin-top: 12px; }
.res-price { font-family: var(--font-display); font-size: var(--step-head); line-height: 1.15; }
.res-weeks { font-size: var(--step-lead); margin-top: 10px; }
.calc-note { font-size: var(--step-small); }
.menu { grid-column: 7 / span 6; }
.group { font-size: var(--step-lead); margin-top: 48px; }
.group:first-child { margin-top: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 14px; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.desc-soft { font-size: 16px; max-width: 40ch; margin-top: 6px; }
.menu-note { margin-top: 48px; font-size: var(--step-small); color: var(--muted); }

/* ---------- FAQ on a stone field, tall photograph ---------- */
.faq { background: var(--field-1); color: var(--field-1-ink); }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.faq-text { grid-column: 1 / span 6; padding: calc(var(--section) / 2) var(--margin); }
.faq-facts { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; font-size: var(--step-body); }
.faq-list { margin-top: 44px; }
.faq-list details { padding-block: 18px; }
.faq-list details + details { margin-top: 0; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; font-size: var(--step-lead); line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 26px; line-height: 1; transition: transform var(--t-ui) var(--ease-out); flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { font-size: 17px; max-width: 56ch; margin-top: 12px; }
.faq-cta { margin-top: 40px; }
.faq-photo { grid-column: 8 / span 5; position: relative; margin: 0; min-height: 680px; overflow: hidden; }
.faq-photo img { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 80px); object-fit: cover; will-change: transform; }

/* ---------- contact ---------- */
.contact-hero { position: relative; min-height: 100svh; overflow: hidden; }
.contact-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.card { position: absolute; top: 60px; right: 60px; width: min(380px, calc(100% - 120px)); background: var(--bg); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.card h2 { font-size: var(--step-head); font-weight: 400; line-height: 1.15; }
.hours { display: grid; gap: 8px; font-size: var(--step-body); }
.hours div { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.hours dt { color: var(--ink); }
.hours dd { margin: 0; }
.phone-big { font-size: var(--step-lead); font-variant-numeric: tabular-nums; }
.phone-big a { text-decoration: none; }
.card .mail { font-size: var(--step-small); }
.request { padding-block: var(--section) calc(var(--section) / 2); }
.request-form { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 20px; }
.request-form .head { grid-column: 1 / span 5; align-self: start; }
.form-fields { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-fields .wide-field { grid-column: 1 / -1; }
.form-fields textarea.field { min-height: 110px; resize: vertical; }
.form-submit { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.form-submit .small { color: var(--muted); max-width: 52ch; }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); min-height: 100svh; }
.foot-photo { grid-column: 1 / span 6; margin: 0; overflow: hidden; }
.foot-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.foot-right { grid-column: 7 / span 6; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 40px var(--margin) 32px 0; }
.foot-menu { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.foot-menu a { display: inline-block; font-family: var(--font-display); font-size: var(--step-head); font-weight: 500; text-decoration: none; padding: 4px 0; transition: transform var(--t-ui) var(--ease-out), color var(--t-ui) ease; }
.foot-menu a:hover { transform: translateX(12px); }
.foot-contact { display: flex; flex-direction: column; gap: 6px; font-size: var(--step-body); }
.credits { font-size: 16px; line-height: 1.55; color: var(--ink); max-width: 70ch; }
.credits a { text-underline-offset: 0.18em; }
.legal { font-size: var(--step-small); }

/* ---------- phones ---------- */
@media (max-width: 47.99em) {
  .top nav a:not(:nth-child(3)) { display: none; }
  .hero-title { font-size: 11vw; line-height: 1.02; }
  .hero-title .l2 { white-space: nowrap; }
  .hero-title .l1 { flex-wrap: wrap; }
  .strip { flex: 1 1 100%; height: auto; aspect-ratio: 2 / 1; margin-block: 0.12em 0.1em; }
  .hero-cta { margin-top: 32px; }
  .hero-lead { font-size: 17px; }
  .statement { grid-column: 1 / -1; font-size: 24px; }
  .facts { gap: 10px 28px; }
  .o1, .o2, .o3, .o4, .o5, .o6 { grid-column: 1 / -1; }
  .o1 { grid-column: 1 / span 11; }
  .o2 { grid-column: 3 / span 10; }
  .o3 { grid-column: 1 / span 9; }
  .o4 { grid-column: 5 / span 8; margin-top: 0; }
  .o5 { grid-column: 1 / span 10; }
  .o6 { grid-column: 4 / span 9; }
  .remark { grid-column: 1 / -1; }
  .obras { row-gap: 72px; }
  .rail-controls { display: none; }
  .week { flex-basis: 72vw; }
  .week figure { margin-top: 0 !important; }
  .week:nth-child(even) figure { margin-top: 32px !important; }
  .calc, .menu { grid-column: 1 / -1; }
  .menu { margin-top: 56px; }
  .faq-text, .faq-photo { grid-column: 1 / -1; }
  .faq-text { padding-top: 72px; }
  .faq-photo { min-height: 0; aspect-ratio: 4 / 5; margin-top: 56px; }
  .faq-photo img { height: 100%; }
  .card { top: auto; bottom: -80px; right: 16px; left: 16px; width: auto; }
  .contact-hero { min-height: 70svh; overflow: visible; }
  .contact-hero > img { border-bottom: 0; }
  .request-form .head, .form-fields, .form-submit { grid-column: 1 / -1; }
  .request { padding-top: 150px; }
  .form-fields { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .foot-photo, .foot-right { grid-column: 1 / -1; }
  .foot-photo { height: 50svh; min-height: 0; }
  .foot-right { padding: 40px var(--margin); }
  .foot-menu a { font-size: 8vw; }
}

/* ---------- motion helpers from the base (content visible without script) ---------- */
.lines .line { display: block; overflow: hidden; }
.shutter { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: ad-rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal].is-in.stagger-2 { transition-delay: 90ms; }
  .js [data-reveal].is-in.stagger-3 { transition-delay: 180ms; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
  .obra img, .week img, .faq-photo img { transition: transform 1200ms var(--ease-out); }
  @media (hover: hover) and (pointer: fine) { .obra:hover img { transform: scale(1.02); } }
}
@keyframes ad-rise { to { opacity: 1; transform: none; } }
