/* ============================================================
   Estúdio Leme — arquitetura · interiores
   Manual de marca: Karla, azul predominante, blocos de cor e ilustrações.
   ============================================================ */
:root {
  --indigo: #2a2a62;
  --mist: #d1dfdf;
  --wine: #4f1a10;
  --green: #435722;
  --paper: #fbf3e0;
  --paper-soft: #fff8e8;
  --ink: #252543;
  --muted: #6e685f;
  --line: rgba(41, 42, 98, 0.18);
  --white: #fffaf0;
  --shadow: 0 24px 70px rgba(41, 42, 98, 0.14);

  --sans: "Karla", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1220px;
  --nav-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: clip;
  background:
    linear-gradient(90deg, rgba(41, 42, 98, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(41, 42, 98, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 58px 58px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  content: "";
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  color: var(--wine);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 500;
  line-height: .98;
  letter-spacing: 0;
}

p {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--indigo);
  border-radius: 2px;
  padding: 13px 24px;
  background: var(--indigo);
  color: var(--white);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1;
  transition: transform .24s var(--ease), background .24s var(--ease), box-shadow .24s var(--ease);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--wine);
  box-shadow: 0 12px 28px rgba(41, 42, 98, .18);
}

.btn:focus-visible,
.text-link:focus-visible,
.nav__links a:focus-visible {
  outline: 3px solid rgba(103, 31, 20, .22);
  outline-offset: 4px;
}

.btn--small {
  min-height: 40px;
  padding: 11px 17px;
  font-size: .86rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--indigo);
  font-weight: 700;
}

.text-link::after {
  width: 42px;
  height: 1px;
  margin-left: 12px;
  background: currentColor;
  content: "";
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--nav-h);
  border-bottom: 1px solid rgba(41, 42, 98, .12);
  background: rgba(251, 246, 235, .86);
  backdrop-filter: blur(18px) saturate(1.15);
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: var(--nav-h);
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 2px;
  box-shadow: none;
}

.brand span {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--indigo);
  font-size: .9rem;
  font-weight: 700;
}

.nav__links a:hover {
  color: var(--wine);
}

.nav .btn {
  justify-self: end;
}

.nav__menu {
  position: relative;
  display: none;
  justify-self: end;
}

.nav__menu summary {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(41, 42, 98, .18);
  border-radius: 2px;
  background: rgba(255, 253, 248, .72);
  cursor: pointer;
  list-style: none;
}

.nav__menu summary::-webkit-details-marker {
  display: none;
}

.nav__menu summary span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--indigo);
  grid-area: 1 / 1;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav__menu summary span:first-child {
  transform: translateY(-6px);
}

.nav__menu summary span:last-child {
  transform: translateY(6px);
}

.nav__menu[open] summary span:first-child {
  transform: rotate(45deg);
}

.nav__menu[open] summary span:nth-child(2) {
  opacity: 0;
}

.nav__menu[open] summary span:last-child {
  transform: rotate(-45deg);
}

.nav__menu nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: min(78vw, 260px);
  overflow: hidden;
  border: 1px solid rgba(41, 42, 98, .16);
  border-radius: 2px;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 24px 60px rgba(41, 42, 98, .16);
}

.nav__menu nav a {
  padding: 15px 18px;
  color: var(--indigo);
  font-size: .98rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(41, 42, 98, .1);
}

.nav__menu nav a:last-child {
  border-bottom: 0;
  background: var(--indigo);
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--nav-h));
  overflow: hidden;
  background: var(--indigo);
}

.hero__media {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-rows: minmax(0, .9fr) minmax(0, 1.02fr) minmax(0, .9fr);
  gap: clamp(12px, 1.4vw, 20px);
  height: auto;
  padding: clamp(12px, 1.4vw, 20px);
  overflow: hidden;
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(251, 243, 224, .18), rgba(205, 223, 223, .04)),
    var(--indigo);
  box-shadow: var(--shadow);
}

.hero__media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 24, 68, .9) 0%, rgba(23, 24, 68, .72) 42%, rgba(23, 24, 68, .2) 82%),
    linear-gradient(180deg, rgba(23, 24, 68, .18) 0%, rgba(23, 24, 68, .18) 34%, rgba(23, 24, 68, .76) 100%);
  content: "";
  pointer-events: none;
  z-index: 1;
}

.hero__panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
  border: 1px solid rgba(251, 243, 224, .18);
  border-radius: 2px;
  background: var(--indigo);
}

.hero__panel--one {
  width: min(68%, 960px);
  justify-self: start;
  transform: translateX(clamp(-6px, -.4vw, -2px));
}

.hero__panel--two {
  width: min(80%, 1100px);
  justify-self: center;
  transform: translateX(clamp(-5px, -.35vw, -2px));
}

.hero__panel--three {
  width: min(86%, 1160px);
  justify-self: center;
  transform: translateX(clamp(2px, .35vw, 6px));
}

.hero__panel::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 42, 98, .02), rgba(42, 42, 98, .14)),
    linear-gradient(90deg, rgba(79, 26, 16, .08), transparent 42%);
  content: "";
}

.hero__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroZoom 16s var(--ease) forwards;
}

.hero__panel--one img {
  object-position: 50% 52%;
}

.hero__panel--two img {
  object-position: 50% 48%;
  animation-delay: .16s;
}

.hero__panel--three img {
  object-position: 50% 42%;
  animation-delay: .32s;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__content {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: clamp(118px, 17svh, 180px) 0 clamp(46px, 5vw, 68px);
  color: var(--white);
}

.hero__content .eyebrow {
  color: var(--paper);
  text-shadow: 0 8px 20px rgba(23, 24, 68, .6);
}

.hero h1 {
  max-width: 13.8ch;
  margin-top: 16px;
  color: var(--white);
  font-size: clamp(2.75rem, 5.9vw, 5.45rem);
  font-weight: 600;
  text-shadow: 0 16px 46px rgba(23, 24, 68, .65);
}

.hero__leme {
  display: inline-block;
  width: auto;
  height: .9em;
  vertical-align: -.02em;
  opacity: .98;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 2px 0 rgba(23, 24, 68, .82))
    drop-shadow(0 18px 42px rgba(23, 24, 68, .72));
}

.hero p {
  max-width: 38rem;
  margin-top: 22px;
  color: rgba(255, 253, 248, .86);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  text-shadow: 0 10px 30px rgba(23, 24, 68, .6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 32px;
}

.hero__actions .btn {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--indigo);
}

.hero__actions .btn:hover {
  background: var(--white);
}

.hero__actions .text-link {
  color: var(--white);
}

.hero__creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 30px;
  list-style: none;
}

.hero__creds a {
  display: block;
  padding: 7px 16px;
  border: 1px solid rgba(255, 253, 248, .42);
  border-radius: 2px;
  color: var(--paper);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-shadow: 0 6px 18px rgba(23, 24, 68, .55);
  backdrop-filter: blur(2px);
  transition: border-color .24s var(--ease), background .24s var(--ease), color .24s var(--ease), transform .24s var(--ease);
}

.hero__creds a:hover,
.hero__creds a:focus-visible {
  border-color: var(--paper);
  background: rgba(255, 253, 248, .16);
  color: var(--white);
  transform: translateY(-1px);
}

.hero__brandtop {
  position: absolute;
  top: clamp(96px, 13svh, 150px);
  right: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__brandtop .wrap {
  display: flex;
  justify-content: flex-end;
}

.hero__brandtop img {
  width: clamp(160px, 19vw, 264px);
  opacity: .9;
  filter: drop-shadow(0 12px 32px rgba(42, 42, 98, .55));
}

.hero__sidebrand {
  position: absolute;
  top: 50%;
  left: clamp(24px, 3vw, 42px);
  z-index: 2;
  color: rgba(255, 253, 248, .54);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  text-shadow: 0 8px 20px rgba(23, 24, 68, .6);
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.hero__mark {
  position: absolute;
  right: clamp(24px, 5vw, 78px);
  bottom: clamp(30px, 7vw, 92px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: clamp(106px, 13vw, 164px);
}

.hero__mark img {
  width: 100%;
  opacity: .9;
  mix-blend-mode: normal;
  transform: rotate(-7deg);
}

.hero__coords {
  color: rgba(255, 253, 248, .72);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  white-space: nowrap;
  text-shadow: 0 6px 18px rgba(23, 24, 68, .6);
}

@media (prefers-reduced-motion: reduce) {
  .hero__mark img,
  .hero__panel img { animation: none; }
}

section {
  position: relative;
  padding: clamp(76px, 10vw, 132px) 0;
}

.intro {
  background: var(--paper);
}

.intro::after {
  position: absolute;
  right: -8vw;
  bottom: -16vw;
  width: min(56vw, 620px);
  aspect-ratio: 1;
  background: url("/photos/brand/topografia-indigo.png") center / contain no-repeat;
  content: "";
  opacity: .08;
}

.intro__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.intro h2,
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(2.35rem, 5vw, 4.55rem);
  color: var(--indigo);
}

.intro__copy {
  display: grid;
  gap: 18px;
  max-width: 680px;
  padding-top: 8px;
}

.intro__copy p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.about {
  overflow: hidden;
  min-height: min(92svh, 920px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(42, 42, 98, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(42, 42, 98, .05) 1px, transparent 1px),
    var(--mist);
  background-size: 58px 58px;
}

.about::before {
  position: absolute;
  top: clamp(34px, 7vw, 92px);
  right: clamp(20px, 6vw, 82px);
  width: clamp(112px, 15vw, 190px);
  aspect-ratio: 1;
  background: url("/photos/brand/slogan-star.svg") center / contain no-repeat;
  content: "";
  opacity: .22;
  transform: rotate(8deg);
}

.about__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: stretch;
}

.about .section-head {
  grid-column: 1 / span 4;
  display: flex;
  min-height: clamp(420px, 62vw, 650px);
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 46px) 0;
}

.about__name {
  max-width: 6.8ch;
  color: var(--indigo);
  font-size: clamp(3.8rem, 9vw, 8.9rem);
  font-weight: 500;
  line-height: .86;
  overflow-wrap: break-word;
}

.about__name span {
  display: block;
}

.about__copy {
  grid-column: 5 / -1;
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(0, .9fr);
  gap: 0;
  align-items: stretch;
  min-height: clamp(420px, 62vw, 650px);
  border: 1px solid rgba(41, 42, 98, .16);
  background: rgba(255, 248, 232, .42);
}

.about__text p {
  color: rgba(37, 37, 67, .78);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.72;
}

.about__portrait {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--indigo);
}

.about__portrait::after {
  position: absolute;
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(16px, 2vw, 24px);
  width: clamp(74px, 9vw, 106px);
  aspect-ratio: 1;
  background: url("/photos/brand/slogan-star.svg") center / contain no-repeat;
  content: "";
  opacity: .9;
  transform: rotate(-8deg);
}

.about__portrait img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.about__text {
  display: flex;
  align-items: center;
  padding: clamp(28px, 4.4vw, 58px);
}

.about--page {
  min-height: calc(100svh - var(--nav-h));
  padding-top: clamp(88px, 11vw, 148px);
}

.about--page .about__name {
  max-width: none;
  font-size: clamp(4.25rem, 6.2vw, 7rem);
  line-height: .92;
  overflow-wrap: normal;
  word-break: normal;
}

.about--page .section-head {
  grid-column: 1 / span 2;
  justify-content: flex-start;
}

.about--page .about__copy {
  grid-column: 3 / -1;
}

.about--page .about__copy,
.about--page .section-head {
  min-height: clamp(480px, 58vw, 720px);
}

.project-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  background: var(--indigo);
}

.strip-card {
  position: relative;
  min-height: 35vw;
  max-height: 520px;
  overflow: hidden;
}

.strip-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(23, 24, 68, .75));
  content: "";
}

.strip-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .8s var(--ease);
}

.strip-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.06);
}

.strip-card span {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  z-index: 1;
  color: var(--white);
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2.3rem);
  line-height: 1;
}

.services {
  overflow: hidden;
  background: var(--indigo);
  color: var(--white);
}

.services::before {
  position: absolute;
  inset: 0;
  background: url("/photos/brand/topografia-azul.png") 106% 116% / min(72vw, 820px) no-repeat;
  content: "";
  opacity: .18;
}

.services__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(42px, 6vw, 78px);
  align-items: start;
}

.services .eyebrow {
  color: var(--mist);
}

.services h2 {
  color: var(--white);
}

.services .services__title {
  max-width: min(100%, 16ch);
  font-size: clamp(1.56rem, 3.15vw, 3rem);
  line-height: 1.04;
}

.services .services__title span {
  display: block;
}

.service-list {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(251, 243, 224, .34);
  background: rgba(251, 243, 224, .34);
}

.service {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px 24px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--indigo);
}

.service span {
  color: var(--mist);
  font-family: var(--sans);
  font-size: 1.45rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.service h3 {
  color: var(--white);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

.service p {
  grid-column: 2;
  color: rgba(255, 253, 248, .72);
}

/* "Sem perder o fio" — linha que atravessa o fundo (rota / contorno topográfico da marca) */
.process-line {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  fill: none;
  pointer-events: none;
  transform: none;
  transition: opacity 1.4s var(--ease);
}

.process-line.in {
  opacity: 1;
}

.process-line path {
  stroke: var(--mist);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  transition: stroke-dashoffset 2.8s var(--ease);
}

.process-line__main {
  opacity: .26;
}

.process-line__ghost {
  opacity: .12;
  transition-delay: .25s;
}

.process-line.in path {
  stroke-dashoffset: 0;
}

.process-line__node {
  fill: var(--mist);
  stroke: none;
  opacity: 0;
  transition: opacity .6s var(--ease) 2.2s;
}

.process-line.in .process-line__node {
  opacity: .5;
}

@media (prefers-reduced-motion: reduce) {
  .process-line path { transition: none; stroke-dashoffset: 0; }
  .process-line__node { transition: none; }
}

.projects {
  background: var(--paper-soft);
}

.section-head {
  max-width: 760px;
}

.section-head--wide {
  max-width: 760px;
  margin-bottom: clamp(36px, 6vw, 70px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  grid-column: span 4;
  display: grid;
  min-height: 462px;
  overflow: hidden;
  border: 1px solid rgba(41, 42, 98, .12);
  border-radius: 2px;
  background: var(--white);
  box-shadow: none;
  color: inherit;
}

.project-card--large {
  grid-column: span 6;
}

.project-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .8s var(--ease);
}

.project-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.04);
}

.project-card div {
  align-self: end;
  padding: 26px;
}

.project-card span {
  color: var(--wine);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-top: 8px;
  color: var(--indigo);
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 600;
}

.project-card p {
  margin-top: 12px;
  color: var(--muted);
}

.project-card:hover {
  text-decoration: none;
}

.project-card--quiet {
  min-height: 462px;
  border-color: rgba(41, 42, 98, .18);
  background:
    url("/photos/brand/slogan-star.svg") calc(100% - 24px) 24px / 104px auto no-repeat,
    linear-gradient(rgba(251, 243, 224, .9), rgba(251, 243, 224, .9)),
    url("/photos/brand/topografia-indigo.png") center / 75% no-repeat;
}

.project-card--quiet div {
  align-self: center;
}

.brand-note {
  padding: clamp(60px, 8vw, 96px) 0;
  background: var(--mist);
}

.brand-note__inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.brand-note img {
  width: 100%;
}

.brand-note p {
  color: var(--indigo);
  font-size: clamp(1.8rem, 3.7vw, 3.15rem);
  line-height: 1.08;
}

.cta {
  overflow: hidden;
  background: var(--mist);
  color: var(--indigo);
  text-align: center;
}

.cta::before {
  position: absolute;
  inset: 0;
  background:
    url("/photos/brand/topografia-indigo.png") 108% 115% / min(60vw, 680px) no-repeat;
  content: "";
  opacity: .18;
}

.cta .wrap {
  position: relative;
  z-index: 1;
}

.cta .eyebrow {
  color: var(--wine);
}

.cta h2 {
  max-width: 15ch;
  margin: 14px auto 0;
  color: var(--indigo);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

.cta p {
  max-width: 46rem;
  margin: 24px auto 34px;
  color: rgba(37, 37, 67, .72);
  font-size: 1.1rem;
}

.cta .btn {
  border-color: var(--indigo);
  background: var(--indigo);
  color: var(--white);
}

.footer {
  padding: 44px 0;
  background: var(--indigo);
  color: rgba(255, 253, 248, .72);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer__brand {
  position: relative;
  display: grid;
  align-items: start;
  gap: 14px;
}

.footer__brand img:not(.footer__wordmark, .footer__star) {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 2px;
  object-fit: contain;
}

.footer__wordmark {
  width: auto;
  height: 56px;
  opacity: .92;
}

.footer__brand .footer__star {
  position: absolute;
  top: -12px;
  right: -92px;
  width: 76px;
  opacity: .88;
  transform: rotate(-8deg);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: .94rem;
  font-weight: 700;
}

.footer__links a:hover {
  color: var(--white);
}

@media (max-width: 980px) {
  .nav__inner {
    grid-template-columns: 1fr;
  }

  .nav__links {
    display: none;
  }

  .brand span {
    display: none;
  }

  .nav .btn {
    display: none;
  }

  .hero__media {
    grid-template-rows: minmax(0, .92fr) minmax(0, 1.08fr) minmax(0, .92fr);
    height: min(74svh, 680px);
  }

  .hero__panel--three {
    display: block;
  }

  .hero__sidebrand {
    display: none;
  }

  .intro__grid,
  .about__grid,
  .services__grid,
  .section-head--wide {
    grid-template-columns: 1fr;
  }

  .about {
    min-height: auto;
  }

  .about .section-head,
  .about__copy {
    grid-column: auto;
    min-height: auto;
  }

  .about .section-head {
    padding: 0;
    gap: 18px;
  }

  .about__name {
    max-width: 9ch;
    font-size: clamp(3.4rem, 12vw, 6.4rem);
  }

  .about__copy {
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1fr);
  }

  .section-head--wide p,
  .section-head--wide .eyebrow,
  .section-head--wide h2 {
    grid-column: auto;
    grid-row: auto;
  }

  .project-card,
  .project-card--large {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(100% - 28px, var(--maxw));
  }

  .nav {
    min-height: 68px;
  }

  .nav__inner {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  .nav__links,
  .nav__inner > .btn {
    display: none;
  }

  .nav__menu {
    display: block;
  }

  .brand__logo {
    width: 46px;
    height: 46px;
  }

  .hero {
    min-height: calc(100svh - 68px);
  }

  .hero__media {
    --hero-strip-shift: clamp(1px, .7vw, 3px);
    inset: 10px;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 8px;
    height: min(70svh, 590px);
    padding: 8px;
    border-radius: 2px;
  }

  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(23, 24, 68, .82), rgba(23, 24, 68, .54) 56%, rgba(23, 24, 68, .18)),
      linear-gradient(180deg, rgba(23, 24, 68, .18), rgba(23, 24, 68, .3) 40%, rgba(23, 24, 68, .84));
  }

  .hero__panel--one,
  .hero__panel--two,
  .hero__panel--three {
    display: block;
  }

  .hero__panel--one {
    width: 56%;
    justify-self: start;
    transform: translateX(calc(var(--hero-strip-shift) * -1));
  }

  .hero__panel--two {
    width: 90%;
    justify-self: center;
    transform: translateX(calc(var(--hero-strip-shift) * -1));
  }

  .hero__panel--three {
    width: 90%;
    justify-self: center;
    transform: translateX(calc(var(--hero-strip-shift) * .5));
  }

  .hero__brandtop {
    top: calc(min(70svh, 590px) * .18);
  }

  .hero__brandtop .wrap {
    justify-content: flex-end;
  }

  .hero__brandtop img {
    width: clamp(148px, 38vw, 176px);
    margin-right: clamp(4px, 3vw, 18px);
  }

  .hero__content {
    padding: 25svh 0 32px;
  }

  .hero h1 {
    max-width: 11.4ch;
    font-size: clamp(2.18rem, 9.8vw, 2.72rem);
  }

  .hero p {
    max-width: 20rem;
    margin-top: 18px;
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .hero__mark {
    display: none;
  }

  .project-strip {
    grid-template-columns: 1fr;
  }

  .strip-card {
    min-height: 72vw;
  }

  .service,
  .project-card {
    border-radius: 2px;
  }

  .service {
    grid-template-columns: 1fr;
  }

  .service p {
    grid-column: auto;
  }

  .process-line {
    display: none;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card--large {
    grid-column: auto;
    min-height: auto;
  }

  .project-card img {
    height: auto;
    aspect-ratio: 4 / 4.6;
  }

  .brand-note__inner {
    grid-template-columns: 1fr;
  }

  .brand-note img {
    width: 170px;
  }

  .footer__inner,
  .footer__links {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Project gallery pages */
.project-page {
  background: var(--paper-soft);
}

.project-hero {
  position: relative;
  display: grid;
  min-height: min(82svh, 820px);
  align-items: end;
  overflow: hidden;
  background: var(--indigo);
}

.project-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(23, 24, 68, .84), rgba(23, 24, 68, .44) 42%, rgba(23, 24, 68, .12)),
    linear-gradient(180deg, rgba(23, 24, 68, .18), rgba(23, 24, 68, .72));
}

.project-hero--brand {
  background:
    url("/photos/brand/slogan-star-light.svg") calc(100% - clamp(28px, 7vw, 96px)) clamp(88px, 12vw, 148px) / clamp(104px, 13vw, 168px) auto no-repeat,
    linear-gradient(135deg, rgba(42, 42, 98, .92), rgba(42, 42, 98, .82)),
    url("/photos/brand/topografia-azul.png") center / min(86vw, 920px) no-repeat,
    var(--indigo);
}

.project-hero--brand::after {
  background:
    linear-gradient(180deg, rgba(23, 24, 68, .08) 0%, rgba(23, 24, 68, .4) 56%, rgba(23, 24, 68, .78) 100%);
}

.project-hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(120px, 18vw, 220px) 0 clamp(58px, 8vw, 96px);
  color: var(--white);
}

.project-hero__content .eyebrow {
  color: var(--paper);
}

.project-hero h1 {
  max-width: 13ch;
  margin-top: 14px;
  color: var(--white);
  font-size: clamp(3.2rem, 8vw, 7.2rem);
}

.project-hero p {
  max-width: 44rem;
  margin-top: 18px;
  color: rgba(255, 253, 248, .84);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.project-back {
  display: flex;
  width: fit-content;
  margin-bottom: 32px;
  color: rgba(255, 253, 248, .8);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.project-back:hover {
  color: var(--white);
}

.project-intro {
  padding: clamp(64px, 8vw, 110px) 0;
}

.project-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 7vw, 92px);
}

.project-intro h2 {
  min-width: 0;
  color: var(--indigo);
  font-size: clamp(2rem, 4vw, 3.8rem);
  overflow-wrap: break-word;
}

.project-intro__copy {
  display: grid;
  gap: 18px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.project-meta span {
  display: block;
  color: var(--wine);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.project-meta b {
  color: var(--indigo);
  font-size: 1.3rem;
  font-weight: 700;
}

.project-gallery {
  padding: 0 0 clamp(74px, 9vw, 130px);
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-shot {
  grid-column: span 6;
  overflow: hidden;
  border-radius: 2px;
  background: var(--indigo);
  box-shadow: 0 22px 58px rgba(41, 42, 98, .11);
}

.project-shot--wide {
  grid-column: span 12;
}

.project-shot--tall {
  grid-column: span 4;
}

.project-shot img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.project-page .project-hero > img,
.project-page .project-shot img,
.pdetail__hero > img {
  cursor: zoom-in;
}

.project-page .project-hero > img:focus-visible,
.project-page .project-shot img:focus-visible,
.pdetail__hero > img:focus-visible {
  outline: 3px solid rgba(251, 243, 224, .86);
  outline-offset: -8px;
}

.project-shot--tall img {
  min-height: 560px;
}

.project-next {
  padding: clamp(58px, 8vw, 96px) 0;
  background: var(--indigo);
  color: var(--white);
}

.project-next__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.project-next .eyebrow {
  color: var(--mist);
}

.project-next h2 {
  margin-top: 10px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.project-next .btn {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--indigo);
  white-space: nowrap;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  height: 100dvh;
  padding: clamp(14px, 3vw, 32px);
  background: #12122b;
  color: var(--white);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease);
}

.photo-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox__top,
.photo-lightbox__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.photo-lightbox__count,
.photo-lightbox__caption {
  color: rgba(255, 250, 240, .78);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.photo-lightbox__caption {
  max-width: min(760px, 74vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-lightbox__stage {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
}

.photo-lightbox__image {
  width: auto;
  height: auto;
  max-width: min(1320px, calc(100vw - 160px));
  max-height: calc(100dvh - 190px);
  border-radius: 2px;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.photo-lightbox__button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, .36);
  border-radius: 999px;
  background: rgba(255, 250, 240, .08);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.photo-lightbox__button:hover,
.photo-lightbox__button:focus-visible {
  border-color: var(--paper);
  background: rgba(255, 250, 240, .18);
  transform: translateY(-1px);
  outline: none;
}

.photo-lightbox__button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.photo-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.photo-lightbox__nav--prev {
  left: 0;
}

.photo-lightbox__nav--next {
  right: 0;
}

body.has-lightbox-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .photo-lightbox {
    gap: 12px;
    padding: 12px;
  }

  .photo-lightbox__image {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 146px);
  }

  .photo-lightbox__button {
    width: 42px;
    height: 42px;
  }

  .photo-lightbox__nav {
    top: auto;
    bottom: 0;
    transform: none;
  }

  .photo-lightbox__caption {
    max-width: calc(100vw - 112px);
  }
}

@media (max-width: 900px) {
  .project-intro__grid {
    grid-template-columns: 1fr;
  }

  .project-next__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-shot,
  .project-shot--wide,
  .project-shot--tall {
    grid-column: span 12;
  }

  .project-shot img,
  .project-shot--tall img {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 720px) {
  .project-hero {
    min-height: 76svh;
  }

  .project-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .project-gallery__grid {
    gap: 12px;
  }

  .project-shot {
    border-radius: 2px;
  }
}

@media (max-width: 560px) {
  :root {
    --nav-h: 64px;
  }

  .wrap {
    width: min(100% - 24px, var(--maxw));
  }

  .nav,
  .nav__inner {
    min-height: 64px;
  }

  .nav__inner {
    justify-items: start;
  }

  .brand span {
    display: none;
  }

  .brand__logo {
    width: 42px;
    height: 42px;
    border-radius: 2px;
  }

  .hero {
    min-height: calc(100svh - 64px);
  }

  .hero__media {
    --hero-strip-shift: clamp(.5px, .55vw, 2px);
    inset: 8px;
    height: min(62svh, 510px);
    border-radius: 2px;
  }

  .hero__brandtop {
    top: calc(min(62svh, 510px) * .2);
  }

  .hero__brandtop img {
    width: clamp(142px, 37vw, 168px);
    margin-right: clamp(2px, 2.2vw, 12px);
  }

  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(23, 24, 68, .84), rgba(23, 24, 68, .56) 56%, rgba(23, 24, 68, .2)),
      linear-gradient(180deg, rgba(23, 24, 68, .2), rgba(23, 24, 68, .34) 40%, rgba(23, 24, 68, .86));
  }

  .hero__media img {
    object-position: 56% center;
  }

  .hero__content {
    padding: 24svh 0 30px;
  }

  .hero h1 {
    max-width: 11.4ch;
    margin-top: 10px;
    font-size: clamp(2.12rem, 9.6vw, 2.68rem);
  }

  .hero p {
    max-width: 19rem;
    margin-top: 16px;
    font-size: .98rem;
    line-height: 1.52;
  }

  .hero__actions {
    width: min(100%, 20rem);
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .intro,
  .about,
  .services,
  .projects,
  .cta {
    padding: 58px 0;
  }

  .intro h2,
  .about h2,
  .section-head h2,
  .cta h2 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  .about--page .about__name {
    font-size: clamp(3.1rem, 15vw, 4.25rem);
  }

  .project-strip {
    gap: 10px;
  }

  .strip-card {
    min-height: 82vw;
    border-radius: 2px;
  }

  .project-grid {
    gap: 14px;
  }

  .project-card {
    border-radius: 2px;
  }

  .project-card div {
    padding: 18px;
  }

  .project-card img {
    aspect-ratio: 4 / 4.35;
  }

  .project-card h3 {
    font-size: 1.62rem;
  }

  .about__copy {
    grid-template-columns: 1fr;
  }

  .about__portrait {
    min-height: 72vw;
  }

  .about__text {
    padding: 24px;
  }

  .project-hero {
    min-height: 70svh;
  }

  .project-hero::after {
    background:
      linear-gradient(180deg, rgba(23, 24, 68, .18) 0%, rgba(23, 24, 68, .36) 36%, rgba(23, 24, 68, .9) 100%),
      linear-gradient(90deg, rgba(23, 24, 68, .64), rgba(23, 24, 68, .14));
  }

  .project-hero img {
    object-position: center;
  }

  .project-hero__content {
    padding: 104px 0 34px;
  }

  .project-back {
    margin-bottom: 22px;
    font-size: .68rem;
  }

  .project-hero h1 {
    max-width: 10ch;
    font-size: clamp(2.55rem, 13vw, 3.55rem);
  }

  .project-hero p {
    max-width: 20rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  .project-intro {
    padding: 54px 0;
  }

  .project-intro h2 {
    font-size: clamp(1.9rem, 9.5vw, 2.65rem);
  }

  .project-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-gallery {
    padding-bottom: 64px;
  }

  .project-gallery__grid {
    gap: 10px;
  }

  .project-shot img,
  .project-shot--tall img {
    aspect-ratio: 4 / 4.7;
  }

  .project-next {
    padding: 48px 0;
  }

  .project-next .btn {
    width: 100%;
  }
}
