/* =========================================================
   Pedra — architecture & interiors (concept site by Arkevo)
   ========================================================= */
:root {
  --ink: #0E0D0C;
  --ink-2: #171614;
  --bone: #EFEBE4;
  --bone-2: #E5DFD5;
  --stone: #9C958A;
  --stone-2: #6B655C;
  --line: rgba(239, 235, 228, .16);
  --line-ink: rgba(14, 13, 12, .14);
  --glow: #D9A066;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: 'Inter Tight', system-ui, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--glow); color: var(--ink); }
:focus-visible { outline: 1px solid var(--glow); outline-offset: 4px; }

.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; text-transform: none; }
.label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.wrap { padding: 0 var(--pad); max-width: 1680px; margin: 0 auto; }
.light { background: var(--bone); color: var(--ink); }
.light .label { color: var(--stone-2); }

/* ---------- logo: PEDRA and ARCHITECTURE share one width (SVG textLength) ---------- */
.brand { display: block; width: 124px; color: var(--bone); }
.brand svg { width: 100%; height: auto; overflow: visible; }
.brand .b1 { font: 500 25px 'Inter Tight', sans-serif; fill: currentColor; }
.brand .b2 { font: 500 9px 'Inter Tight', sans-serif; fill: currentColor; opacity: .72; }
.brand .rule { stroke: currentColor; stroke-width: .6; opacity: .35; }

/* ---------- header ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 40; transition: background-color 400ms var(--ease); }
.hd::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(180deg, rgba(10, 9, 8, .55), rgba(10, 9, 8, 0)); pointer-events: none; transition: opacity 400ms; }
.hd.is-solid { background: rgba(14, 13, 12, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hd.is-solid::before { opacity: 0; }
.hd__in { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 88px; padding: 0 var(--pad); }
.hd nav { display: flex; gap: 34px; font-size: 13.5px; }
.hd nav a { opacity: .78; transition: opacity 200ms; }
.hd nav a:hover, .hd nav a[aria-current] { opacity: 1; }
.hd__r { display: flex; justify-content: flex-end; align-items: center; gap: 22px; font-size: 13px; }
.hd__r .loc { color: rgba(239, 235, 228, .72); }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(239, 235, 228, .38); background: rgba(14, 13, 12, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; transition: background-color 250ms, color 250ms; }
.pill:hover { background: var(--bone); color: var(--ink); }
.pill svg { transition: transform 300ms var(--ease); }
.pill:hover svg { transform: translateX(3px); }

/* ---------- hero: slideshow of the three projects ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.slides { position: absolute; inset: 0; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1600ms var(--ease), transform 9000ms linear; }
.slides img.is-on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 9, 8, .74) 0%, rgba(10, 9, 8, .3) 48%, rgba(10, 9, 8, 0) 72%), linear-gradient(0deg, rgba(10, 9, 8, .62) 0%, rgba(10, 9, 8, 0) 36%); }
.hero__in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--pad) 0; }
.hero h1 { margin: 26px 0 0; font-size: clamp(56px, 9.4vw, 168px); font-weight: 400; line-height: .9; letter-spacing: -.055em; text-transform: uppercase; max-width: 9.5em; }
.hero h1 .serif { text-transform: none; letter-spacing: -.03em; color: var(--bone-2); }
.hero__foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; padding: 0 var(--pad) 40px; }
.hero__foot p { margin: 0; max-width: 360px; font-size: 15px; color: rgba(239, 235, 228, .84); }
.dots { display: flex; gap: 8px; }
.dots button { width: 42px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.dots button::before { content: ""; height: 1px; background: rgba(239, 235, 228, .35); transition: background-color 300ms; }
.dots button[aria-pressed="true"]::before { background: var(--bone); }
.feature { justify-self: end; width: 310px; padding: 18px 20px; border-radius: 14px; background: rgba(18, 17, 15, .55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(239, 235, 228, .14); transition: background-color 300ms; }
.feature:hover { background: rgba(18, 17, 15, .74); }
.feature__top { display: flex; justify-content: space-between; }
.feature h3 { margin: 10px 0 2px; font-size: 21px; font-weight: 400; letter-spacing: -.02em; }
.feature p { margin: 0; font-size: 13px; color: var(--stone); }
.feature__go { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }

.in { opacity: 0; transform: translateY(18px); transition: opacity 1100ms var(--ease), transform 1100ms var(--ease); }
.is-ready .in { opacity: 1; transform: none; }
.is-ready .in.d1 { transition-delay: 150ms; } .is-ready .in.d2 { transition-delay: 320ms; } .is-ready .in.d3 { transition-delay: 520ms; }

/* ---------- sections ---------- */
.sec { padding: clamp(96px, 12vw, 180px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 88px); }
.h2 { margin: 18px 0 0; font-size: clamp(40px, 5.6vw, 92px); font-weight: 400; line-height: .95; letter-spacing: -.045em; }
.lede { max-width: 440px; margin: 0; font-size: 16.5px; color: var(--stone); }
.light .lede { color: var(--stone-2); }

/* studio */
.intro { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 6vw, 120px); align-items: end; }
.statement { margin: 18px 0 0; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.12; letter-spacing: -.035em; font-weight: 400; }
.statement .serif { color: var(--stone-2); }
.intro figure { margin: 0; }
.intro figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro figcaption { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line-ink); }
.facts div { padding: 26px 24px 0 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line-ink); }
.facts strong { display: block; font-size: clamp(44px, 5vw, 76px); font-weight: 300; letter-spacing: -.05em; line-height: 1; }
.facts span { display: block; margin-top: 10px; font-size: 14px; color: var(--stone-2); }

/* projects: one large row each */
.prow { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(24px, 4vw, 64px); align-items: end; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.prow:nth-child(even) { grid-template-columns: 4fr 8fr; }
.prow:nth-child(even) .prow__img { order: 2; }
.prow__img { position: relative; overflow: hidden; background: var(--ink-2); }
.prow__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transform: scale(1.03); transition: transform 1400ms var(--ease); }
.prow:hover .prow__img img { transform: scale(1); }
.prow__n { font-size: 13px; letter-spacing: .14em; color: var(--stone); }
.prow h3 { margin: 14px 0 0; font-size: clamp(36px, 4vw, 64px); font-weight: 400; line-height: .95; letter-spacing: -.045em; }
.prow p { margin: 16px 0 0; max-width: 360px; color: var(--stone); }
.prow dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 26px 0 0; font-size: 14px; }
.prow dt { color: var(--stone); }
.prow dd { margin: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7FB685; }
.status--site::before { background: var(--glow); }
.go { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 14px; transition: border-color 250ms, gap 300ms var(--ease); }
.prow:hover .go { border-color: var(--bone); gap: 14px; }

/* services */
.svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-ink); }
.svc div { padding: 30px 28px 0 0; }
.svc div + div { padding-left: 28px; border-left: 1px solid var(--line-ink); }
.svc h3 { margin: 18px 0 12px; font-size: clamp(22px, 1.8vw, 28px); font-weight: 400; letter-spacing: -.025em; }
.svc ul { margin: 0; padding: 0; list-style: none; color: var(--stone-2); font-size: 15px; display: grid; gap: 6px; }

/* process */
.process { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 140px); align-items: start; }
.process figure { position: sticky; top: 110px; margin: 0; overflow: hidden; }
.process video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.process figcaption { margin-top: 12px; }
.phases { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; counter-reset: p; }
.phases li { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.phases li:last-child { border-bottom: 1px solid var(--line); }
.phases li::before { counter-increment: p; content: "0" counter(p); font-size: 13px; letter-spacing: .14em; color: var(--stone); padding-top: 7px; }
.phases h3 { margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 400; letter-spacing: -.03em; }
.phases p { margin: 8px 0 0; max-width: 470px; color: var(--stone); font-size: 15px; }
.phases .dur { padding-top: 8px; white-space: nowrap; }

/* video band */
.band { position: relative; height: 86svh; min-height: 540px; overflow: hidden; display: grid; place-items: center; text-align: center; }
.band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(10, 9, 8, .48); }
.band blockquote { position: relative; z-index: 2; margin: 0; padding: 0 var(--pad); font-size: clamp(38px, 5.6vw, 96px); line-height: .98; letter-spacing: -.045em; font-weight: 400; }
.band cite { display: block; margin-top: 28px; font-style: normal; }

/* contact */
.contact { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 7vw, 140px); }
.contact h2 { margin: 18px 0 0; font-size: clamp(48px, 7vw, 124px); font-weight: 400; line-height: .92; letter-spacing: -.055em; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; font-size: 15px; }
.contact__info b { display: block; margin-bottom: 6px; font-weight: 400; }
.form { display: grid; gap: 26px; align-content: start; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld input, .fld select, .fld textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--bone); font: inherit; font-size: 17px; outline: none; transition: border-color 250ms; }
.fld select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.fld select option { color: var(--ink); }
.fld textarea { resize: vertical; min-height: 96px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--glow); }
.fld input::placeholder, .fld textarea::placeholder { color: #5E5951; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.btn { justify-self: start; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--bone); color: var(--ink); font-size: 14px; cursor: pointer; transition: background-color 250ms; }
.btn:hover { background: var(--glow); }
.ok { margin: 0; color: var(--glow); }

/* footer */
.ft { padding: clamp(64px, 8vw, 110px) var(--pad) 32px; border-top: 1px solid var(--line); }
.ft .brand { width: min(100%, 980px); margin: 0 auto; color: rgba(239, 235, 228, .14); }
.ft .brand .b2 { opacity: 1; }
.ft__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--stone); }
.ft__row nav { display: flex; gap: 22px; flex-wrap: wrap; }
.ft__row a:hover { color: var(--bone); }
.concept { color: var(--glow); }

.rv { opacity: 0; transform: translateY(36px); transition: opacity 1200ms var(--ease), transform 1200ms var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- project page ---------- */
.p-hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.p-hero img { width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 9, 8, .8) 0%, rgba(10, 9, 8, 0) 55%); }
.p-hero__in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 var(--pad) 48px; display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.p-hero h1 { margin: 14px 0 0; font-size: clamp(60px, 10vw, 184px); font-weight: 400; line-height: .86; letter-spacing: -.06em; }
.p-hero__in > p { max-width: 380px; margin: 0; color: rgba(239, 235, 228, .86); }
.sheet { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line-ink); }
.sheet div { padding: 22px 18px 0 0; }
.sheet div + div { padding-left: 18px; border-left: 1px solid var(--line-ink); }
.sheet b { display: block; margin-top: 8px; font-weight: 400; font-size: 16.5px; }
.story { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 7vw, 140px); margin-top: clamp(64px, 8vw, 120px); }
.story div p { margin: 0 0 22px; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.6; color: #3E3A35; }
.story div p:first-child { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.25; letter-spacing: -.025em; color: var(--ink); }
.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.gal figure { margin: 0; overflow: hidden; }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal .wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.gal .l { grid-column: 1 / span 7; aspect-ratio: 7 / 5; }
.gal .r { grid-column: 8 / span 5; aspect-ratio: 5 / 6; align-self: end; }
.gal .l2 { grid-column: 1 / span 5; aspect-ratio: 5 / 6; }
.gal .r2 { grid-column: 6 / span 7; aspect-ratio: 7 / 5; align-self: end; }
.note { margin-top: 18px; }
.next { display: block; position: relative; height: 70svh; min-height: 460px; overflow: hidden; }
.next img { width: 100%; height: 100%; object-fit: cover; transition: transform 1600ms var(--ease); }
.next:hover img { transform: scale(1.04); }
.next::after { content: ""; position: absolute; inset: 0; background: rgba(10, 9, 8, .5); }
.next__in { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; }
.next__in h2 { margin: 14px 0 0; font-size: clamp(48px, 8vw, 140px); font-weight: 400; letter-spacing: -.055em; line-height: .9; }

/* long-screenshot mode (?capture) */
.capture .hero, .capture .p-hero { height: 880px; min-height: 0; }
.capture .band { height: 680px; min-height: 0; }
.capture .next { height: 540px; min-height: 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hd nav, .hd__r .loc { display: none; }
  .hd__in { grid-template-columns: 1fr auto; }
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .capture .hero { height: auto; min-height: 780px; }
  .hero__in { flex: 1; justify-content: flex-end; padding-bottom: 28px; }
  .hero__foot { position: relative; grid-template-columns: 1fr; padding-bottom: 28px; }
  .dots { order: 3; }
  .feature { justify-self: start; width: 100%; max-width: 420px; }
  .intro, .process, .contact, .story { grid-template-columns: 1fr; }
  .process figure { position: relative; top: 0; }
  .prow, .prow:nth-child(even) { grid-template-columns: 1fr; }
  .prow:nth-child(even) .prow__img { order: 0; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .sheet { grid-template-columns: 1fr 1fr 1fr; }
  .sheet div:nth-child(n) { padding-left: 0; border-left: 0; padding-bottom: 16px; }
  .gal figure:nth-child(n) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .svc, .facts { grid-template-columns: 1fr; }
  .svc div + div, .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-ink); margin-top: 22px; }
  .phases li { grid-template-columns: 44px 1fr; }
  .phases .dur { grid-column: 2; padding-top: 0; }
  .sheet { grid-template-columns: 1fr 1fr; }
  .two, .contact__info { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .rv, .in { opacity: 1; transform: none; }
}
