:root {
  --ink: #111111;
  --ink-soft: #282828;
  --paper: #eee9df;
  --paper-bright: #f7f3ea;
  --wine: #991f22;
  --wine-dark: #661417;
  --muted: #746f68;
  --line: rgba(17, 17, 17, 0.22);
  --serif: "Baskerville", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, Montserrat, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(rgba(10, 10, 10, 0.77), rgba(10, 10, 10, 0.91)),
    url("assets/tapiz-damasco.webp") center / 560px auto repeat,
    var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  width: min(1380px, calc(100% - 48px));
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.76);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
}

.mini-brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.project-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c33135;
  box-shadow: 0 0 0 5px rgba(195, 49, 53, 0.13);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  width: min(1220px, calc(100% - 32px));
  margin: 38px auto;
}

.hero__panel {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1040px;
  padding: clamp(38px, 7vw, 82px) clamp(24px, 7vw, 88px);
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(rgba(246, 242, 233, 0.91), rgba(237, 231, 218, 0.94)),
    url("assets/tapiz-textura.webp") center / cover no-repeat;
  border: 1px solid rgba(255,255,255,.34);
  outline: 1px solid rgba(0,0,0,.55);
  outline-offset: -10px;
  box-shadow: 0 32px 90px rgba(0,0,0,.48);
}

.hero__panel::before,
.hero__panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 230px;
  aspect-ratio: 1;
  opacity: 0.1;
  background: url("assets/tapiz-damasco.webp") center / 520px auto;
  border-radius: 50%;
  filter: contrast(1.5);
}

.hero__panel::before {
  top: -95px;
  left: -80px;
}

.hero__panel::after {
  right: -90px;
  bottom: -100px;
  transform: rotate(180deg);
}

.hero__logo {
  display: block;
  width: min(790px, 100%);
  height: auto;
  margin: 0 auto 24px;
}

.phase-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 30px;
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-size: clamp(0.62rem, 1.6vw, 0.75rem);
  font-weight: 700;
}

.phase-label i {
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero__lead {
  max-width: 720px;
  margin: 28px auto 0;
  color: #44403b;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.8;
}

.construction-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  max-width: 650px;
  margin: 34px auto 0;
  padding: 18px 22px;
  text-align: left;
  background: rgba(255,255,255,.48);
  border: 1px solid var(--line);
}

.construction-note__number {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 2.7rem;
  line-height: 1;
}

.construction-note strong {
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
}

.construction-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.process {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 32px;
  color: #514c46;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.67rem;
}

.process span:not(:last-child)::after {
  content: "·";
  margin-left: 24px;
  color: var(--wine);
}

.ornament {
  width: 110px;
  height: 1px;
  margin-inline: auto;
  background: var(--wine);
}

.ornament::after {
  content: "◆";
  display: block;
  width: 24px;
  margin: -8px auto 0;
  color: var(--wine);
  background: #eee9df;
  font-size: 0.62rem;
}

.ornament--top {
  margin-bottom: 30px;
}

.ornament--bottom {
  margin-top: 34px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px 30px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.site-footer p {
  margin: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.78); }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1380px);
  }

  .site-header {
    padding-block: 16px;
  }

  .project-status span:last-child {
    display: none;
  }

  .hero {
    width: min(100% - 18px, 1220px);
    margin-block: 18px;
  }

  .hero__panel {
    outline-offset: -6px;
  }

  .phase-label {
    gap: 8px;
  }

  .phase-label i {
    width: 20px;
  }

  .construction-note {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .construction-note__number {
    font-size: 2rem;
  }

  .process {
    display: grid;
    grid-template-columns: repeat(2, auto);
  }

  .process span::after {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
