:root {
  --bg: #08080a;
  --ink: #f4f1ea;
  --muted: #a9a49b;
  --line: rgba(244, 241, 234, 0.14);
  --accent: #e4cf9b;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* Stage */
.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Cinematic backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0a0c;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.03);
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.backdrop-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 8%, #000 26%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 8%, #000 26%);
  transform-origin: 70% 30%;
  animation: kenburns 32s ease-in-out infinite alternate;
  will-change: transform;
}

.tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #2a1a0d 0%, #8a6a3c 42%, #e4cf9b 78%, #b8925a 100%);
  mix-blend-mode: color;
  opacity: 0.42;
}

.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 8, 1) 0%, rgba(6, 6, 8, 0.99) 18%, rgba(6, 6, 8, 0.9) 34%, rgba(6, 6, 8, 0.6) 54%, rgba(6, 6, 8, 0.2) 76%, rgba(6, 6, 8, 0.05) 90%, rgba(6, 6, 8, 0.3) 100%),
    linear-gradient(0deg, rgba(6, 6, 8, 0.9) 0%, rgba(6, 6, 8, 0.25) 22%, transparent 42%),
    linear-gradient(180deg, rgba(6, 6, 8, 0.65) 0%, transparent 18%);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 75% at 58% 38%, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

.sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(112deg, transparent 34%, rgba(255, 242, 214, 0.09) 48%, rgba(255, 242, 214, 0.03) 54%, transparent 66%);
  background-size: 220% 100%;
  animation: sheen 11s ease-in-out infinite;
  mix-blend-mode: soft-light;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Layout */
.top, .hero, .foot {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0 0;
  animation: fade 1.2s 0.1s ease both;
}

.mark {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.6);
}

.mark span { color: var(--accent); }




/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vh, 96px) 0 clamp(40px, 6vh, 72px);
}

.copy {
  max-width: 660px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 3vh, 32px);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  animation: rise 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow-rule {
  width: 34px;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  animation: grow 1.1s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.8rem, 9vw, 8.2rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin-bottom: clamp(24px, 4vh, 38px);
}

h1 .line {
  display: block;
  animation: rise 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 .line:nth-child(1) { animation-delay: 0.3s; }
h1 .line:nth-child(2) { animation-delay: 0.42s; }

h1 em {
  font-style: italic;
  color: var(--accent);
  padding-right: 0.06em;
}

.lead {
  max-width: 34ch;
  margin-bottom: 16px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.7;
  color: #cfcac1;
  animation: rise 0.9s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mail {
  position: relative;
  display: block;
  width: fit-content;
  margin-bottom: clamp(30px, 5vh, 44px);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.7vw, 2.05rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
  word-break: break-word;
  animation: rise 0.9s 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mail::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(228, 207, 155, 0.12));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.mail:hover { color: var(--accent); }
.mail:hover::after { transform: scaleX(1); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border: 1px solid rgba(228, 207, 155, 0.45);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  animation: rise 0.9s 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.cta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.cta:hover svg { transform: translate(2px, -2px); }


/* Footer */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fade 1.2s 0.9s ease both;
}

.foot a { transition: color 0.25s ease; }
.foot a:hover { color: var(--accent); }

/* Motion */
@keyframes kenburns {
  0% { transform: scale(1) translate3d(3%, 0, 0); }
  100% { transform: scale(1.05) translate3d(1%, -1.5%, 0); }
}

@keyframes sheen {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}


/* Responsive */
@media (max-width: 900px) {
  .backdrop-img {
    object-position: 58% 22%;
    width: 100%;
    animation: none;
    transform: scale(1.05);
  }

  .scrim {
    background:
      linear-gradient(180deg, rgba(6, 6, 8, 0.55) 0%, rgba(6, 6, 8, 0.15) 26%, rgba(6, 6, 8, 0.55) 56%, rgba(6, 6, 8, 0.96) 88%),
      linear-gradient(0deg, rgba(6, 6, 8, 0.95) 0%, transparent 40%);
  }

  .hero {
    justify-content: flex-end;
    padding-top: 40vh;
  }

  .copy { max-width: none; }

}

@media (max-width: 560px) {
  .top, .hero, .foot { width: calc(100% - 40px); }

  .top { padding-top: 26px; }


  h1 { font-size: clamp(3.2rem, 17vw, 4.6rem); }

  .lead { font-size: 0.98rem; }

  .mail { font-size: 1.22rem; }

  .cta { padding: 14px 22px; }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .backdrop-img { animation: none; transform: scale(1) translate3d(3%, 0, 0); }
  .sheen { display: none; }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .backdrop-img { width: 100%; transform: scale(1.05); }
}
