:root {
  --ink: #1d2758;
  --ink-2: #3a4475;
  --teal: #0e4b48;
  --teal-2: #0a3a38;
  --gold: #cfa94e;
  --gold-2: #e6cb84;
  --cream: #fbf3e3;

  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;

  /* Sky and land colours. sky.js moves these through the sunrise as you scroll. */
  --s0: #0d1332; --s1: #1f2654; --s2: #47406b; --s3: #8a5a6e;
  --l1: #2b2f58; --l2: #202650; --l3: #161b40; --l4: #0e1230;
  --l1b: #2b2f58; --l2b: #202650; --l3b: #161b40; --l4b: #0e1230;
  --cloud: #3a3466;
  --stars: 1;
  --glow: .25;
  --sun-size: clamp(38px, 4.6vw, 64px);
}

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

html { background: #0d1332; }
body {
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
svg { display: block; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(1160px, 100% - 112px); } }

/* The scene: sky, sun and mountains stay put while the page scrolls over them */

.sky, .glow, .sun, .land { position: fixed; pointer-events: none; }

.sky {
  inset: 0;
  height: 100lvh;
  z-index: 0;
  background: linear-gradient(180deg, var(--s0) 0%, var(--s1) 42%, var(--s2) 66%, var(--s3) 84%);
}
.stars {
  position: absolute;
  inset: 0 0 30% 0;
  width: 100%;
  height: 70%;
  opacity: var(--stars);
}
.stars circle { fill: #fff8e8; }
.stars .tw { animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .25; } }

.cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--cloud), transparent);
  opacity: .4;
}
.c1 { left: -4%; top: 17%; width: 62vw; height: 2.6vh; }
.c2 { right: -10%; top: 30%; width: 66vw; height: 3.4vh; }
.c3 { left: 22%; top: 46%; width: 44vw; height: 1.8vh; }

.glow {
  z-index: 1;
  left: 72%;
  top: 0;
  width: 150vmax;
  height: 150vmax;
  margin: -75vmax 0 0 -75vmax;
  background: radial-gradient(circle,
    rgba(255, 238, 196, .95) 0,
    rgba(252, 208, 140, .6) 8%,
    rgba(246, 184, 120, .22) 22%,
    rgba(246, 184, 120, 0) 44%);
  opacity: var(--glow);
  will-change: transform, opacity;
}
.sun {
  z-index: 2;
  left: 72%;
  top: 0;
  width: var(--sun-size);
  height: var(--sun-size);
  margin: calc(var(--sun-size) / -2) 0 0 calc(var(--sun-size) / -2);
  border-radius: 50%;
  background: #fffcf1;
  box-shadow: 0 0 30px 8px rgba(255, 240, 200, .75), 0 0 90px 30px rgba(255, 214, 150, .35);
  will-change: transform;
}

.land {
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(150px, 32vh, 340px);
}
.ridge {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--m) center bottom / 100% 100% no-repeat;
  mask: var(--m) center bottom / 100% 100% no-repeat;
}
.r1 { --m: url(land/r1.svg); background: linear-gradient(var(--l1), var(--l1b)); }
.r2 { --m: url(land/r2.svg); background: linear-gradient(var(--l2), var(--l2b)); }
.r3 { --m: url(land/r3.svg); background: linear-gradient(var(--l3), var(--l3b)); }
.r4 { --m: url(land/r4.svg); background: linear-gradient(var(--l4), var(--l4b)); }

/* Navigation */

.nav {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 56px);
  padding-bottom: 34px;
  color: var(--cream);
  background: linear-gradient(var(--s0) 45%, transparent);
  transition: color .6s, transform .4s ease;
}
html.day .nav { color: var(--ink); }
html.at-ground .nav { color: var(--cream); background: linear-gradient(var(--teal) 45%, transparent); }
html.nav-away .nav { transform: translateY(-110%); }
.logo {
  font-family: var(--script);
  font-size: 36px;
  line-height: 1.2;
  text-decoration: none;
}
.nav-cta {
  padding: 8px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .05em;
  text-decoration: none;
  transition: background-color .2s;
}
.nav-cta:hover { background: rgba(255, 255, 255, .14); }

/* Content */

.page { position: relative; z-index: 4; }
.on-dark { color: var(--cream); }
.on-light { color: var(--ink); }

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px 0 30vh;
}
.hero h1 {
  font-weight: 300;
  font-size: clamp(58px, 9.4vw, 138px);
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 9ch;
}
.hero-sub {
  margin-top: 30px;
  max-width: 30ch;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.4;
  color: rgba(251, 243, 227, .86);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 40px;
  padding: 14px 30px 14px 22px;
  border: 1.5px solid var(--gold-2);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .05em;
  text-decoration: none;
  transition: background-color .2s;
}
.cta:hover { background: rgba(230, 203, 132, .16); }
.cta svg { width: 19px; height: 19px; fill: currentColor; }

.maybe { padding: 6vh 0 34vh; }
.maybe-lead {
  margin-bottom: 40px;
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--gold-2);
}
.maybe-list li {
  max-width: 24ch;
  font-weight: 300;
  font-size: clamp(29px, 3.4vw, 46px);
  line-height: 1.16;
}
.maybe-list li + li { margin-top: .9em; }
@media (min-width: 900px) {
  .maybe-list li:nth-child(2) { margin-left: 6%; }
  .maybe-list li:nth-child(3) { margin-left: 12%; }
  .maybe-list li:nth-child(4) { margin-left: 18%; }
  .maybe-list li:nth-child(5) { margin-left: 24%; }
  .maybe-list li:nth-child(6) { margin-left: 30%; }
}
@media (max-width: 899px) {
  .maybe-list li { font-size: clamp(25px, 6.6vw, 34px); }
  .maybe-list li:nth-child(2) { margin-left: 5vw; }
  .maybe-list li:nth-child(3) { margin-left: 10vw; }
  .maybe-list li:nth-child(4) { margin-left: 15vw; }
  .maybe-list li:nth-child(5) { margin-left: 20vw; }
  html.js .maybe-list .reveal:not(.in) { transform: translateX(-32px); }
}

.dawn {
  min-height: 100svh;
  display: grid;
  place-content: center;
  padding: 0 16px 26vh;
  text-align: center;
  color: #fffaf0;
  text-shadow: 0 2px 28px rgba(40, 32, 80, .32);
}
.dawn-mark {
  font-family: var(--script);
  font-size: clamp(76px, 14vw, 204px);
  line-height: 1.1;
  padding: 0 .2em;
}
.dawn-kicker {
  margin-top: .3em;
  padding-left: .42em;
  font-family: var(--sans);
  font-size: clamp(13px, 1.5vw, 19px);
  letter-spacing: .42em;
  text-transform: uppercase;
}

.work { padding: 14vh 0 26vh; }
.work h2, .meet h2 {
  margin-bottom: clamp(40px, 6vw, 72px);
  font-size: clamp(40px, 4.8vw, 62px);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
}
.work-list svg {
  width: 64px;
  height: 40px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.work-list h3 {
  margin: 20px 0 8px;
  font-weight: 500;
  font-size: clamp(27px, 2.6vw, 32px);
  line-height: 1.15;
}
.work-list p {
  max-width: 24ch;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-2);
}

.meet { padding: 4vh 0 26vh; }
.meet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 96px);
}
.meet-grid li {
  padding: 24px 0 30px;
  border-top: 1px solid rgba(29, 39, 88, .28);
}
.meet-grid h3 {
  font-weight: 500;
  font-size: clamp(26px, 2.5vw, 31px);
  line-height: 1.15;
}
.meet-grid p {
  margin-top: 6px;
  max-width: 30ch;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-2);
}
.meet-note {
  margin-top: 28px;
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 27px);
}

.me { padding: 4vh 0 48vh; }
.me-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}
.me-photo {
  display: block;
  width: 100%;
  max-width: 470px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(255, 248, 232, .5),
    0 0 0 9px rgba(207, 169, 78, .55),
    0 0 90px 10px rgba(255, 222, 160, .55);
}
.me h2 {
  margin-bottom: 28px;
  font-weight: 300;
  font-size: clamp(52px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: -.015em;
}
.me-text p {
  max-width: 34ch;
  font-size: clamp(21px, 1.9vw, 24px);
  line-height: 1.5;
}
.me-text p + p { margin-top: 1em; }

/* Contact */

.ground {
  position: relative;
  z-index: 5;
  background: var(--teal);
  color: var(--cream);
  text-align: center;
}
.ground-wave {
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  width: 100%;
  height: clamp(44px, 6vw, 90px);
}
.wave-fill { fill: var(--teal); }
.wave-line { fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ground-inner { padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
.ground h2 {
  font-weight: 300;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: #fffaf0;
}
.ground-inner > p {
  margin: 16px auto 0;
  max-width: 34ch;
  font-size: clamp(20px, 1.9vw, 23px);
  color: rgba(251, 243, 227, .85);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 12px 32px 12px 22px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: clamp(23px, 2.4vw, 30px);
  letter-spacing: .04em;
  text-decoration: none;
  color: #fff;
  transition: background-color .2s;
}
.pill:hover { background: rgba(207, 169, 78, .16); }
.pill svg { width: 1.05em; height: 1.05em; fill: currentColor; }
.fineprint {
  padding: 20px 16px 24px;
  border-top: 1px solid rgba(207, 169, 78, .22);
  background: var(--teal-2);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .05em;
  color: rgba(246, 239, 224, .6);
}

/* Gentle fade-in as things come into view */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }
.maybe-list li:nth-child(2), .work-list li:nth-child(2), .meet-grid li:nth-child(2) { transition-delay: .12s; }
.maybe-list li:nth-child(3), .work-list li:nth-child(3), .meet-grid li:nth-child(3) { transition-delay: .24s; }
.maybe-list li:nth-child(4), .meet-grid li:nth-child(4) { transition-delay: .36s; }
.maybe-list li:nth-child(5) { transition-delay: .48s; }
.maybe-list li:nth-child(6) { transition-delay: .6s; }
.hero-sub.reveal { transition-delay: .15s; }
.hero .cta.reveal { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { transform: none; transition: opacity .4s ease; transition-delay: 0s; }
  .stars .tw { animation: none; }
}

/* Smaller screens */

@media (max-width: 860px) {
  .work-list { grid-template-columns: 1fr; gap: 40px; }
  .meet-grid { grid-template-columns: 1fr; }
  .me-inner { grid-template-columns: 1fr; }
  .me-photo { max-width: 320px; margin-left: 10px; }
}
@media (max-width: 600px) {
  :root { --sun-size: 40px; }
  .sun, .glow { left: 74%; }
  .logo { font-size: 30px; }
  .nav-cta { padding: 7px 16px; font-size: 13px; }
  .hero { padding-bottom: 28vh; }
  .work-list p, .meet-grid p { font-size: 19px; }
}
