/* L.A Arquitectos e Ingenieros — styles (dark editorial design)
   Palette: near-black backgrounds, grey body text, white headings, warm tan accent. */
:root {
  --bg: #141414;
  --bg-2: #0f0f0f;
  --bg-3: #1c1c1c;
  --text: #b9b9b9;
  --white: #ffffff;
  --muted: #727272;
  --line: rgba(255, 255, 255, .12);
  --accent: #d6ad86;
  --accent-dark: #c39670;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--white); font-weight: 800; line-height: 1.05; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #111; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Type helpers ---------- */
.eyebrow { display: block; font: 600 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.display { font-size: clamp(40px, 6.4vw, 92px); font-weight: 800; letter-spacing: -.045em; text-transform: uppercase; line-height: .95; }
.title { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.lede { font-size: clamp(16px, 1.4vw, 18px); max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border: 1px solid transparent;
  font: 600 13px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--accent { background: var(--accent); color: #141414; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--line { border-color: var(--line); color: var(--white); }
.btn--line:hover { border-color: var(--white); }
.more {
  display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--white); font-weight: 500;
}
.more__arrow { position: relative; width: 64px; height: 36px; }
.more__arrow::before { content: ""; position: absolute; left: 0; top: 0; width: 36px; height: 36px; border: 1px solid currentColor; border-radius: 50%; transition: transform .3s; }
.more__arrow::after { content: ""; position: absolute; left: 17px; right: 0; top: 50%; height: 1px; background: currentColor; }
.more:hover .more__arrow::before { transform: translateX(10px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
  transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgba(20, 20, 20, .96); border-color: var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { width: 44px; height: 44px; }
.brand__name { font: 800 17px/1 var(--font); letter-spacing: -.01em; text-transform: uppercase; }
.brand__name small { display: block; margin-top: 5px; font: 500 10px/1 var(--font); letter-spacing: .32em; color: var(--text); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font: 500 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--white); }
.nav a:hover { color: var(--accent); }
.nav .nav__lang { padding-left: 28px; border-left: 1px solid var(--line); }
.menu-btn {
  display: none; width: 46px; height: 46px; border: 0; background: var(--accent); cursor: pointer; position: relative;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 13px; height: 2px; background: #141414; transition: transform .3s, opacity .3s;
}
.menu-btn::before { top: 15px; width: 20px; }
.menu-btn span { top: 22px; width: 14px; }
.menu-btn::after { top: 29px; width: 20px; }
.menu-open .menu-btn::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span { opacity: 0; }
.menu-open .menu-btn::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .header { background: var(--bg); }
  .nav a { display: block; width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav .nav__lang { padding-left: 0; border-left: 0; border-bottom: 0; color: var(--accent); }
}

/* ---------- Hero slider ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1000px; background: var(--bg); overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0; padding: calc(var(--header) + 8px) var(--gutter) 64px;
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__inner { position: relative; height: 100%; max-width: 1600px; margin: 0 auto; }
.hero__img {
  position: absolute; inset: 0 clamp(0px, 13vw, 220px) 0 0; overflow: hidden; background: var(--bg-3);
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.hero__slide.is-active .hero__img img { transform: scale(1); }
.hero__word {
  position: absolute; right: clamp(0px, 2vw, 40px); top: 50%;
  font: 900 clamp(64px, min(11vw, 18vh), 168px)/.8 var(--font); letter-spacing: -.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .92); white-space: nowrap; pointer-events: none;
  transform: translate(32%, -50%) rotate(-90deg); transform-origin: center;
  mix-blend-mode: difference;
}
.hero__card {
  position: absolute; right: clamp(0px, 13vw, 220px); bottom: 6%; width: min(400px, 88%);
  background: rgba(20, 20, 20, .9); padding: 34px 36px 30px; backdrop-filter: blur(6px);
}
.hero__card h1, .hero__card h2 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; letter-spacing: -.01em; line-height: 1.35; margin-bottom: 26px; }
.hero__dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--white); background: transparent; cursor: pointer; }
.hero__dots button[aria-current="true"] { background: var(--white); }
@media (max-width: 760px) {
  .hero { max-height: none; }
  .hero__img { inset: 0 0 34% 0; }
  .hero__word { font-size: clamp(56px, 18vw, 96px); right: auto; left: 8px; top: 8%; transform: none; }
  .hero__card { left: 0; right: 0; bottom: 0; width: auto; padding: 26px 22px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--dark { background: var(--bg-2); }
.section--alt { background: var(--bg-3); }
.head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 70px); }
@media (min-width: 900px) {
  .head--split { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 48px; }
  .head--split .lede { margin: 0; justify-self: end; }
  .head--split .display { font-size: clamp(40px, 4.6vw, 68px); }
}
@media (max-width: 600px) { .display { font-size: 8.4vw; } }

.vlabel {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 800 clamp(26px, 2.6vw, 38px)/1 var(--font); letter-spacing: -.02em; text-transform: uppercase; color: var(--white); white-space: nowrap;
}
.vlabel span { color: var(--accent); }

/* ---------- 01 About + pillars accordion ---------- */
.about { display: grid; gap: 40px; }
@media (min-width: 1100px) { .about { grid-template-columns: auto minmax(280px, 360px) 1fr; gap: 48px; align-items: stretch; } }
.about__label { display: none; }
@media (min-width: 1100px) { .about__label { display: block; } }
.about__text h2 { font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -.03em; margin-bottom: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.stats strong { display: block; font: 800 clamp(30px, 3vw, 42px)/1 var(--font); color: var(--white); letter-spacing: -.04em; }
.stats span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.pillars { display: flex; gap: 12px; min-height: 620px; }
.pillar {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer; background: var(--bg-3);
  transition: flex-grow .7s cubic-bezier(.2, .7, .2, 1);
}
.pillar.is-open { flex-grow: 4.2; cursor: default; }
.pillar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.8); transition: filter .6s; }
.pillar.is-open > img { filter: none; }
.pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 30%, rgba(10,10,10,.92) 100%); pointer-events: none; }
.pillar__tab {
  position: absolute; top: 18px; right: 14px; z-index: 2; border: 0; padding: 14px 8px; cursor: pointer;
  background: rgba(20, 20, 20, .85); color: var(--white); writing-mode: vertical-rl;
  font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
}
.pillar.is-open .pillar__tab { background: var(--accent); color: #141414; }
.pillar__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px 34px 30px;
  opacity: 0; transform: translateY(16px); transition: opacity .4s .25s, transform .4s .25s; pointer-events: none;
}
.pillar.is-open .pillar__body { opacity: 1; transform: none; pointer-events: auto; }
.pillar__num { font: 900 64px/1 var(--font); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); letter-spacing: -.04em; }
.pillar__body h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.03em; margin: 8px 0 12px; }
.pillar__body > p { color: #d6d6d6; font-size: 15px; max-width: 46ch; }
.pillar__list li { position: relative; padding: 8px 0 8px 22px; font-size: 14px; color: var(--white); border-top: 1px solid var(--line); }
.pillar__list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 1px; background: var(--accent); }
@media (max-width: 900px) {
  .pillars { flex-direction: column; min-height: 0; }
  .pillar { flex: none; height: 92px; transition: height .6s cubic-bezier(.2, .7, .2, 1); }
  .pillar.is-open { height: 560px; }
  .pillar__tab { writing-mode: horizontal-tb; top: 14px; left: 14px; right: auto; padding: 10px 12px; }
  .pillar__body { padding: 24px 20px; }
}

/* ---------- Services carousel ---------- */
.svc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.arrows { display: flex; gap: 8px; }
.arrows button {
  width: 48px; height: 48px; border: 1px solid var(--line); background: transparent; color: var(--white); cursor: pointer; font-size: 18px;
}
.arrows button:hover { background: var(--white); color: #141414; }
.svc-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 820px); gap: clamp(16px, 2.5vw, 36px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 0 calc((100vw - min(78vw, 820px)) / 2);
}
.svc-track::-webkit-scrollbar { display: none; }
.svc { scroll-snap-align: center; margin: 0; }
.svc__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); transition: filter .5s, transform .8s; }
.svc:hover .svc__img img { filter: none; transform: scale(1.03); }
.svc h3 {
  margin: -0.62em 0 0; position: relative; text-align: center;
  font: 800 clamp(34px, 5.6vw, 76px)/1 var(--font); letter-spacing: -.05em; text-transform: uppercase;
}
.svc p { max-width: 50ch; margin: 18px auto 0; text-align: center; font-size: 15px; }

/* ---------- Projects ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 34px; margin: 0 auto 50px; padding-bottom: 14px; border-bottom: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs button {
  border: 0; background: none; padding: 6px 0; cursor: pointer; color: var(--white);
  font: 600 13px/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
}
.tabs button[aria-pressed="true"] { color: var(--accent); }
.projects { display: grid; gap: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 60px); }
@media (min-width: 760px) {
  .projects { grid-template-columns: 1fr 1fr; }
  .projects:not(.is-filtered) .project:nth-child(even) { margin-top: 110px; }
}
.project { margin: 0; }
.project__btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.project__frame { position: relative; display: block; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--bg-3); }
.project__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.project__btn:hover img, .project__btn:focus-visible img { transform: scale(1.05); }
.project__tag {
  position: absolute; left: 0; top: 24px; background: var(--accent); color: #141414;
  font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; padding: 9px 14px;
}
.project figcaption { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 20px; }
.project h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; }
.project__place { font-size: 14px; margin: 6px 0 0; }
.project__facts { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; margin: 0; }

/* ---------- Films ---------- */
.films { display: grid; gap: 20px; }
@media (min-width: 900px) { .films { grid-template-columns: 1.5fr 1fr; } }
.film { margin: 0; }
.film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #222; }
.films__stack { display: grid; gap: 20px; align-content: start; }
.film figcaption { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding-top: 12px; }

/* ---------- Remodeling ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 44px; }
.chips li { border: 1px solid var(--line); padding: 9px 16px; font-size: 13px; letter-spacing: .04em; color: var(--white); }
.ba-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba { margin: 0; }
.ba__compare { --pos: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); user-select: none; }
.ba__compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--white); transform: translateX(-1px); pointer-events: none; }
.ba__handle::after {
  content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #141414;
  display: grid; place-items: center; font: 700 18px/1 var(--font);
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__range:focus-visible + .ba__handle::after { outline: 2px solid var(--white); outline-offset: 2px; }
.ba__label { position: absolute; bottom: 14px; padding: 7px 11px; font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; background: rgba(15,15,15,.82); color: var(--white); pointer-events: none; }
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; }
.ba figcaption { padding-top: 18px; }
.ba h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
.ba p { font-size: 15px; margin: 8px 0 0; }
.tiles { display: grid; gap: 22px; margin-top: 48px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { margin: 0; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-3); filter: grayscale(.3); }
.tile figcaption { color: var(--white); font-weight: 600; padding-top: 12px; }
.tile figcaption span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

/* ---------- Process ---------- */
.process { display: grid; gap: 40px; }
@media (min-width: 960px) { .process { grid-template-columns: 300px 1fr; gap: 60px; align-items: center; } }
.steps-nav { display: grid; gap: 6px; }
.steps-nav button {
  display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 10px 0; border: 0; background: none; cursor: pointer; text-align: left;
  border-bottom: 1px solid var(--line);
}
.steps-nav b { font: 900 clamp(44px, 5vw, 68px)/1 var(--font); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); transition: color .3s, -webkit-text-stroke-color .3s; }
.steps-nav span { font: 600 13px/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.steps-nav button[aria-selected="true"] b { color: var(--white); -webkit-text-stroke-color: var(--white); }
.steps-nav button[aria-selected="true"] span { color: var(--accent); }
.step-view { position: relative; min-height: 520px; }
.step-panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.step-panel.is-active { position: relative; opacity: 1; visibility: visible; }
.step-panel img { width: 100%; height: 520px; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.step-panel__card {
  position: absolute; left: clamp(0px, 3vw, 40px); top: 40px; width: min(380px, 86%);
  background: var(--bg); padding: 32px 32px 28px;
}
.step-panel__card h3 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 12px; }
.step-panel__card p { margin: 0; font-size: 15px; }
@media (max-width: 959px) {
  .steps-nav { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .steps-nav button { flex-direction: column; gap: 6px; border-bottom: 2px solid var(--line); }
  .steps-nav button[aria-selected="true"] { border-color: var(--accent); }
  .steps-nav span { font-size: 10px; }
  .step-view { min-height: 0; }
  .step-panel img { height: 300px; }
  .step-panel__card { position: relative; left: 0; top: 0; width: auto; margin-top: -40px; margin-left: 16px; margin-right: 16px; }
}

/* ---------- Coverage band ---------- */
.coverage { display: grid; gap: 30px; }
@media (min-width: 960px) { .coverage { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 60px; } }
.provinces { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.provinces li { flex: 1 1 33%; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); font: 700 clamp(18px, 1.8vw, 24px)/1.2 var(--font); color: var(--white); letter-spacing: -.02em; }
.provinces li.is-home { color: var(--accent); }
.provinces li small { display: block; margin-top: 4px; font: 500 11px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }

/* ---------- Contact + footer ---------- */
.statement { font: 800 clamp(30px, 4.6vw, 64px)/1.08 var(--font); letter-spacing: -.045em; color: var(--muted); max-width: 22ch; }
.statement b { color: var(--white); font-weight: 800; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.contact__promise { margin: 22px 0 0; font-size: 15px; }
.contact { padding-bottom: clamp(50px, 6vw, 80px); }
.site-footer { background: var(--bg-2); padding-bottom: 50px; }
.footer-grid { display: grid; gap: 48px; padding-top: 44px; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.1fr auto 1.2fr auto 1fr auto; align-items: end; gap: 34px; } }
.footer-logo { width: 130px; height: auto; margin-bottom: 22px; }
.footer-copy { font-size: 13px; }
.footer-copy p { margin: 0 0 6px; }
.footer-copy a { color: var(--white); }
.footer-grid .vlabel { font-size: 26px; }
@media (max-width: 959px) { .footer-grid .vlabel { writing-mode: horizontal-tb; transform: none; font-size: 22px; margin-bottom: -30px; } }
.info { margin: 0; font-size: 14px; }
.info dt { font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.info > dt:first-child { margin-top: 0; }
.info dd { margin: 5px 0 0; color: var(--white); }
.info a { text-decoration: none; }
.info a:hover { color: var(--accent); }
.social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.social a { font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--white); text-decoration: none; }
.social a:hover { color: var(--accent); }
.links li { margin-bottom: 8px; }
.links a { color: var(--white); text-decoration: none; font-size: 14px; }
.links a:hover { color: var(--accent); }
.to-top { writing-mode: vertical-rl; font: 600 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.to-top::after { content: ""; width: 1px; height: 60px; background: var(--accent); }
@media (max-width: 959px) { .to-top { writing-mode: horizontal-tb; } .to-top::after { width: 40px; height: 1px; } }

/* Illustrative-media note (remove once the studio's own photos are in) */
.media-note {
  display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%;
  margin: 0 auto 30px; padding: 9px 16px; border: 1px solid rgba(214, 173, 134, .4);
  font-size: 13px; color: var(--text);
}
.media-note::before { content: "i"; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: 700 11px/1 Georgia, serif; font-style: italic; }
.media-note--left { margin-left: 0; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(10,10,10,.97); color: var(--white); }
.lightbox::backdrop { background: rgba(10,10,10,.97); }
.lightbox__inner { position: relative; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 64px 16px 24px; }
.lightbox img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
.lightbox__cap { text-align: center; padding-top: 14px; font-size: 14px; color: var(--text); margin: 0; }
.lightbox__cap strong { display: block; font: 800 24px/1.2 var(--font); letter-spacing: -.02em; color: var(--white); }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; width: 48px; height: 48px; border: 1px solid var(--line); background: rgba(20,20,20,.8); color: var(--white); cursor: pointer; font-size: 24px; line-height: 1; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* 404 */
.page { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 40px var(--gutter); gap: 10px; }
.page h1 { font-size: clamp(36px, 6vw, 72px); letter-spacing: -.04em; text-transform: uppercase; }
.page .btn { margin: 8px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide, .hero__img img, .pillar, .step-panel { transition: none !important; }
  .hero__img img { transform: none; }
}
