:root {
  --ink: #f3f0e9;
  --muted: rgba(243, 240, 233, 0.68);
  --line: rgba(243, 240, 233, 0.25);
  --copper: #d7a27f;
  --night: #06111d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }

.welcome-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}

.background {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/aconcagua-hero.webp");
  background-position: 58% center;
  background-size: cover;
  transform: scale(1.015);
  animation: settle 2.2s cubic-bezier(.2,.75,.25,1) both;
}

.welcome-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 10, 19, .96) 0%, rgba(4, 14, 25, .82) 31%, rgba(5, 15, 26, .3) 66%, rgba(4, 11, 20, .22) 100%),
    linear-gradient(0deg, rgba(2, 8, 15, .72) 0%, transparent 38%, rgba(4, 10, 18, .1) 80%);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.page-frame {
  width: min(100% - 80px, 1480px);
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; }
.site-header { min-height: 118px; border-bottom: 1px solid var(--line); animation: reveal .8s .15s ease both; }

.wordmark {
  display: block;
  text-decoration: none;
}

.wordmark img { display: block; width: 285px; max-width: 100%; height: auto; }
.header-note, .site-footer { color: var(--muted); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }

.hero { display: flex; align-items: center; padding: 70px 0 58px; }
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 27px;
  color: var(--copper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .27em;
  text-transform: uppercase;
  animation: reveal .85s .35s ease both;
}
.eyebrow span { margin: 0 .7em; opacity: .65; }

h1 {
  margin: 0;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 5.1vw, 88px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
  text-wrap: balance;
  animation: reveal .95s .46s ease both;
}

h1 em { position: relative; display: inline; color: #d9b39b; font-weight: 400; }
h1 em::after {
  content: "";
  position: absolute;
  inset: -10% -4%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.58) 48%, transparent 66%);
  transform: translateX(-130%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: shimmer 6.8s 2.2s ease-in-out infinite;
}

.summary {
  max-width: 660px;
  margin: 30px 0 0;
  color: rgba(243, 240, 233, .76);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.68;
  animation: reveal .9s .6s ease both;
}
.summary strong { color: rgba(255, 255, 255, .96); font-weight: 650; }

.services { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; animation: reveal .9s .72s ease both; }
.services span {
  padding: 8px 11px;
  border: 1px solid rgba(243,240,233,.18);
  color: rgba(243,240,233,.72);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.contact-link {
  width: fit-content;
  margin-top: 36px;
  display: grid;
  grid-template-columns: auto auto 28px;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  animation: reveal .9s .84s ease both;
}
.contact-link span { color: var(--muted); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.contact-link strong { font-size: 14px; font-weight: 500; letter-spacing: .03em; }
.contact-link svg { width: 25px; fill: none; stroke: var(--copper); stroke-width: 1.4; transition: transform .25s ease; }
.contact-link:hover svg, .contact-link:focus-visible svg { transform: translateX(5px); }
.contact-link:focus-visible { outline: 1px solid var(--copper); outline-offset: 10px; }

.site-footer { min-height: 76px; border-top: 1px solid var(--line); animation: reveal .8s 1s ease both; }

@keyframes reveal { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes settle { from { opacity: .4; transform: scale(1.06); } to { opacity: 1; transform: scale(1.015); } }
@keyframes shimmer {
  0%, 72% { transform: translateX(-130%); opacity: 0; }
  77% { opacity: .75; }
  88% { transform: translateX(130%); opacity: 0; }
  100% { transform: translateX(130%); opacity: 0; }
}

@media (max-width: 760px) {
  .page-frame { width: min(100% - 40px, 1480px); }
  .site-header { min-height: 94px; }
  .wordmark img { width: min(100%, 255px); }
  .header-note { display: none; }
  .background { background-position: 66% center; }
  .welcome-shell::before { background: linear-gradient(90deg, rgba(2,10,19,.93), rgba(4,14,25,.55)), linear-gradient(0deg, rgba(2,8,15,.8), transparent 52%); }
  .hero { align-items: flex-end; padding: 54px 0 44px; }
  h1 { font-size: clamp(43px, 12vw, 62px); line-height: .98; }
  .summary { margin-top: 24px; font-size: 14px; line-height: 1.62; }
  .services { margin-top: 23px; }
  .contact-link { grid-template-columns: 1fr 26px; gap: 6px 12px; margin-top: 29px; }
  .contact-link span { grid-column: 1; }
  .contact-link strong { grid-column: 1; font-size: 13px; overflow-wrap: anywhere; }
  .contact-link svg { grid-column: 2; grid-row: 1 / 3; }
  .site-footer { min-height: 82px; align-items: center; justify-content: flex-start; line-height: 1.7; letter-spacing: .16em; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .site-header { min-height: 86px; }
  .hero { padding: 34px 0 30px; }
  h1 { font-size: clamp(48px, 4.6vw, 72px); }
  .summary { margin-top: 22px; line-height: 1.5; }
  .services { margin-top: 20px; }
  .contact-link { margin-top: 25px; }
  .site-footer { min-height: 60px; }
}

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