@font-face {
  font-family: "Libre Caslon Condensed";
  src: url("/fonts/LibreCaslonCondensed-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libre Caslon Condensed Variable";
  src: url("/fonts/LibreCaslonCondensed[wght].woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Backgrounds */
  --bg-main: #f7f4e6;
  --bg-soft: #e3dfcf;

  /* Text */
  --ink: #3e4034;
  --ink-soft: #7a8c72;

  /* Hero */
  --hero-ivory: #faf5e9;
  --hero-warm: #ede5d5;
  --hero-shadow: rgba(10, 8, 7, 0.4);

  /* Base */
  --color-white: #fffdf6;
  --color-black: #0c0b09;

  /* Accent — gold (champagne) */
  --gold: oklch(76% 0.09 82);
  --gold-deep: oklch(66% 0.10 80);

  /* Accent — blush (magnolia petal) */
  --blush: #f2c6d2;
  --blush-deep: #d4849e;

  /* Tone — camel (trench coat) */
  --camel: #c4936a;

  /* Tone — sage (bokeh foliage) */
  --sage: #7a8c72;

  /* Photo focal point — adjust per breakpoint to reframe the image */
  --photo-x: 50%;
  --photo-y: 24%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--blush) 30%, transparent), transparent 42%),
    radial-gradient(ellipse at bottom left, color-mix(in srgb, var(--sage) 14%, transparent), transparent 50%),
    linear-gradient(180deg, #fbf8ee 0%, var(--bg-main) 50%, #ede8d6 100%);
  color: var(--ink);
  font-family: "Georgia", "Times New Roman", serif;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

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

.loading-curtain {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  z-index: 10;
  pointer-events: none;
}

body.is-ready .loading-curtain {
  animation: curtain-lift 0.95s cubic-bezier(0.76, 0, 0.24, 1) 0.2s forwards;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 100vh;
  padding: clamp(2rem, 4vw, 4rem) clamp(2rem, 6vw, 8rem);
  background: var(--bg-main);
  overflow: hidden;
}

.hero__backdrop,
.hero__grain {
  position: absolute;
  inset: 0;
}

.hero__backdrop {
  background:
    linear-gradient(180deg, rgba(24, 17, 13, 0.02) 0%, rgba(24, 17, 13, 0.08) 45%, rgba(10, 8, 7, 0.45) 100%),
    linear-gradient(135deg, oklch(82% 0.07 10 / 0.12) 0%, transparent 40%),
    url("./images/proposal1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center, center center, var(--photo-x) var(--photo-y);
}

.hero__grain {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 14px 14px;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  padding-bottom: clamp(1.5rem, 5vw, 4rem);
  text-align: right;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  margin-bottom: 1.35rem;
}

.hero__eyebrow,
.hero__date {
  margin: 0;
  font-family: "Libre Caslon Condensed", serif;
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 245, 233, 0.92);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.18);
}

.hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0 0.22em;
  margin: 0;
  color: var(--hero-ivory);
  line-height: 0.9;
  text-shadow: 0 10px 36px var(--hero-shadow);
}

.hero__name,
.hero__ampersand {
  display: inline-block;
  font-family: "Libre Caslon Condensed Variable", "Libre Caslon Condensed", serif;
  font-size: clamp(5.6rem, 15vw, 13.5rem);
  font-weight: 400;
  letter-spacing: 0em;
  opacity: 0;
  transform: translateY(48px) scale(0.985);
  filter: blur(6px);
  transition: color 160ms cubic-bezier(0.25, 1, 0.5, 1), transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
}

.hero__ampersand {
  font-family: "Libre Caslon Condensed", serif;
}

body.is-ready .hero__name,
body.is-ready .hero__ampersand {
  animation: title-rise 0.95s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

.hero__title:hover .hero__name,
.hero__title:hover .hero__ampersand {
  color: var(--hero-warm);
  transform: translateY(-1px);
}

.reveal-text {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
}

body.is-ready .reveal-text {
  animation: fade-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-ready .reveal-text--delayed {
  animation-delay: 1.55s;
}

.footer-note {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 4rem);
  text-align: center;
  border-top: 1px solid rgba(62, 64, 52, 0.12);
}

.footer-note p {
  margin: 0;
  font-family: "Libre Caslon Condensed", serif;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.footer-note a {
  color: var(--blush-deep);
  text-underline-offset: 0.2em;
  overflow-wrap: break-word;
}

@keyframes curtain-lift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-100%);
  }
}

@keyframes title-rise {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.985);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}


@media (max-width: 1100px) {
  .hero {
    padding-top: 4rem;
    padding-bottom: 6rem;
  }

  .hero__backdrop {
    --photo-x: 20%;
    --photo-y: 22%;
  }

  .hero__title {
    gap: 0 0.16em;
  }
}

/* Short landscape screens — Nest Hub (1024×600), landscape phones */
@media (max-height: 800px) and (orientation: landscape) {
  .hero {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .hero__content {
    padding-bottom: 1rem;
  }

  .hero__name,
  .hero__ampersand {
    font-size: clamp(3rem, 12vh, 6rem);
  }

  .hero__eyebrow,
  .hero__date {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .hero__meta {
    margin-bottom: 0.5rem;
  }

  .footer-note {
    padding: 0.75rem clamp(1.5rem, 4vw, 4rem);
  }

  .footer-note p {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }
  .hero__backdrop {
    --photo-x: 30%;
    --photo-y: 45%;
  }
}

/* Very short landscape — landscape phones (914×412, iPhone landscape, etc.) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .hero__content {
    padding-bottom: 0.5rem;
  }

  .hero__name,
  .hero__ampersand {
    font-size: clamp(2.75rem, 13vh, 5rem);
  }

  .hero__eyebrow,
  .hero__date {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .hero__meta {
    margin-bottom: 1.5vh;
    gap: clamp(0.5rem, 2vw, 2rem);
  }

  .hero__title {
    line-height: 0.92;
    gap: 0 0.14em;
  }

  .footer-note {
    padding: 0.4rem clamp(1rem, 3vw, 3rem);
  }

  .footer-note p {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
  }

  .hero__backdrop {
    --photo-x: 40%;
    --photo-y: 60%;
  }
}

@media (max-width: 820px) {
  .hero__content {
    text-align: center;
  }

  .hero__title {
    justify-content: center;
  }

  .hero__name--first {
    flex-basis: 100%;
    text-align: center;
  }

  /* iPad — adjust --photo-x / --photo-y to reframe the photo */
  .hero__backdrop {
    --photo-x: 10%;
    --photo-y: 20%;
  }

  .hero__meta {
    justify-content: center;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .hero__eyebrow,
  .hero__date {
    font-size: 0.78rem;
  }

  .hero__content {
    padding-bottom: 3rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.5rem;
  }

  /* iPhone — adjust --photo-x / --photo-y to reframe the photo */
  .hero__backdrop {
    --photo-x: 25%;
    --photo-y: 10%;
  }

  .hero__eyebrow,
  .hero__date {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .hero__title {
    line-height: 0.96;
  }

  .hero__name,
  .hero__ampersand {
    font-size: clamp(5rem, 25vw, 9rem);
  }

  .hero__title {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-ready .loading-curtain {
    animation: none;
    transform: translateY(-100%);
  }

  body.is-ready .hero__name,
  body.is-ready .hero__ampersand {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  body.is-ready .reveal-text {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}
