:root {
  --ink: #11121c;
  --ink-soft: #5c5d66;
  --blue: #1c3afc; /* the deep end of the logo ribbon */
  --gutter: clamp(1.25rem, 5vw, 2rem);
  --column: min(100% - 2 * var(--gutter), 72rem);
}

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

body {
  background: #fff;
  color: var(--ink);
  font-family: "Host Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }

/* Background: the ASCII canvas seen through a faintly frosted pane.
   life.js moves --mx/--my so the frost clears around the cursor. */
#life {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: 100lvh;
  z-index: -2;
  opacity: 0;
}

#life.ready { opacity: 1; }

#glass {
  --mx: -999px;
  --my: -999px;
  position: fixed;
  inset: 0 0 auto;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(.8px);
  backdrop-filter: blur(.8px);
  background: rgb(255 255 255 / .12);
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), transparent 50px, #000 260px);
  mask-image: radial-gradient(circle at var(--mx) var(--my), transparent 50px, #000 260px);
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px 20px;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -20px;
  z-index: -1;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgb(255 255 255 / .72);
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.brand img { width: 34px; height: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  transition: background-color .15s;
}

.button:hover { background: var(--ink); }

/* Home */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 64px 20px 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: .2em;
  font-size: clamp(4.25rem, 15.5vw, 14rem);
  font-weight: 500;
  line-height: .8;
  letter-spacing: -.05em;
}

.wordmark img { width: .88em; height: .88em; flex: none; }

.tagline {
  margin-top: clamp(1.25rem, 2.4vw, 2.25rem);
  font-size: clamp(1rem, 1.6vw, 1.375rem);
  letter-spacing: -.02em;
  color: var(--ink-soft);
  text-align: center;
}

.statement {
  width: var(--column);
  margin-inline: auto;
  padding-block: clamp(5rem, 12vw, 10rem);
  text-align: center;
}

.statement h2 {
  font-size: clamp(1.75rem, 3.7vw, 3.25rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.nowrap { white-space: nowrap; }

.andrew {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(100% - 2 * var(--gutter), 90rem);
  margin-inline: auto;
}

.andrew img { width: 100%; height: auto; border-radius: 6px; }

.andrew p {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.035em;
}

@media (max-width: 760px) {
  .andrew { grid-template-columns: 1fr; }
  .andrew img { max-width: 28rem; margin-inline: auto; }
}

.andrew + .contact { margin-block: clamp(4rem, 8vw, 7rem); }

/* Work with me: its own page, repeated below the bio on the home page */
.contact-page {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: 96px;
}

/* A white card: 90% white with the blurred background showing through, plus a soft
   highlight from the top left that gives it a little gloss. */
.contact {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  width: var(--column);
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
  overflow: hidden;
  border: 1px solid rgb(17 18 28 / .07);
  border-radius: clamp(20px, 3vw, 32px);
  background: rgb(246 247 251 / .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgb(17 18 28 / .04),
    0 28px 60px -32px rgb(17 18 28 / .28);
  text-align: center;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(130% 110% at 22% -12%, #fff 38%, rgb(255 255 255 / 0) 78%);
}

.blurb {
  font-size: clamp(1.625rem, 3.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.contact ul {
  display: grid;
  justify-content: center;
  gap: clamp(.875rem, 2vw, 1.5rem);
  padding: 0;
  list-style: none;
  text-align: left;
}

.contact li a {
  display: flex;
  align-items: center;
  gap: clamp(.875rem, 2.4vw, 1.75rem);
  width: fit-content;
  font-size: clamp(1.1875rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  transition: color .15s;
}

.contact li img {
  width: clamp(3rem, 5.4vw, 4.5rem);
  height: clamp(3rem, 5.4vw, 4.5rem);
  flex: none;
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}

.contact li a:hover { color: var(--blue); }
.contact li a:hover img { transform: translateY(-4px) rotate(-5deg) scale(1.06); }

.button.book {
  min-height: 56px;
  padding: 0 22px;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  letter-spacing: -.02em;
}

.wave {
  position: relative;
  height: 46svh;
  min-height: 300px;
  overflow: hidden;
}

.wave canvas { display: block; width: 100%; height: 100%; }

/* Keeps the ASCII out of the solid part of the wave; the wavy top stays open. */
.wave div { position: absolute; inset: 40% 0 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
