/* Tokens lifted from the Haestus design system (haestus-community/libs/ui) + haestus.dev */
:root {
  --bg: #000;
  --bg-raised: oklch(0.15 0.012 262);
  --border: rgb(255 255 255 / 0.1);
  --border-strong: rgb(255 255 255 / 0.2);
  --fg: #fff;
  --fg-70: rgb(255 255 255 / 0.7);
  --fg-60: rgb(255 255 255 / 0.6);
  --fg-40: rgb(255 255 255 / 0.52);
  --zinc-500: #8e8e98;
  --zinc-800: #27272a;
  --accent: oklch(0.7729 0.1535 163.22);
  --gradient-signature: linear-gradient(120deg, oklch(0.7148 0.1257 215.22) 0%, oklch(0.6559 0.2118 354.31) 50%, oklch(0.6056 0.2189 292.72) 100%);
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 1.5rem;
}
@media (min-width: 640px) { :root { --gutter: 2rem; } }
@media (min-width: 1024px) { :root { --gutter: 4rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 80rem; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-40);
}
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--fg-60); }

/* Nav */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgb(0 0 0 / 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(63 63 70 / 0.8);
  box-shadow: 0 1px 0 0 rgb(255 255 255 / 0.04), 0 8px 32px -8px rgb(0 0 0 / 0.8);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.logo img { height: 20px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: none; gap: 2rem; font-size: 0.875rem; }
.nav-links a { color: var(--fg-60); transition: color .3s; }
.nav-links a:hover { color: var(--fg); }
@media (min-width: 768px) { .nav-links { display: flex; } .logo img { height: 22px; } }

.btn {
  position: relative; display: inline-flex; align-items: center;
  height: 2.5rem; padding: 0 2.75rem 0 1rem;
  border-radius: 6px; font-size: 0.875rem; font-weight: 500;
  background: #fff; color: #000; overflow: hidden; white-space: nowrap;
}
.btn .label { transition: opacity .5s; }
.btn .knob {
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 2rem;
  display: grid; place-items: center; border-radius: 3px;
  background: rgb(0 0 0 / 0.1); transition: width .5s var(--ease);
}
.btn:hover .label { opacity: 0; }
.btn:hover .knob { width: calc(100% - 8px); }
.btn svg { width: 16px; height: 16px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem; height: 2.5rem; padding: 0 1rem;
  border: 1px solid var(--border-strong); border-radius: 6px; font-size: .875rem;
  color: var(--fg-70); transition: color .3s, border-color .3s;
}
.btn-ghost:hover { color: #fff; border-color: rgb(255 255 255 / .4); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 8rem 0 3rem; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.05); animation: drift 30s ease-in-out infinite alternate; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / .55), rgb(0 0 0 / .2) 40%, #000 100%);
}
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-inner { display: grid; gap: 2rem; max-width: 56rem; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: 1.05; font-weight: 300;
  letter-spacing: -0.025em; text-wrap: balance;
}
.hero h1 .serif { font-size: 1.08em; }
.hero p.lede { font-size: 1.125rem; color: var(--fg-60); max-width: 40rem; }
@media (min-width: 640px) { .hero p.lede { font-size: 1.25rem; } }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.hero-meta .k { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; color: var(--fg-40); }
.hero-meta .v { font-size: .875rem; margin-top: .25rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.pill { padding: .125rem .625rem; font-size: .75rem; border: 1px solid var(--border-strong); color: var(--fg-70); border-radius: 999px; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Sections */
section.block { padding: 5rem 0; }
@media (min-width: 640px) { section.block { padding: 8rem 0; } }
.section-head { display: grid; gap: 1.5rem; margin-bottom: 4rem; }
.section-head h2 { font-size: clamp(1.875rem, 4.5vw, 3rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.section-head p { font-size: 1.125rem; color: var(--fg-60); max-width: 42rem; }

/* Team */
.team { display: grid; gap: 1px; background: var(--zinc-800); border: 1px solid var(--zinc-800); border-radius: 14px; overflow: hidden; }
@media (min-width: 768px) { .team { grid-template-columns: 1fr 1fr; } }
.person { background: #000; padding: 2rem; display: grid; gap: 1.5rem; align-content: start; transition: background .3s; }
@media (min-width: 640px) { .person { padding: 2.5rem; } }
.person:hover { background: #09090b; }
.avatar {
  width: 7rem; height: 7rem; border-radius: 999px; position: relative; padding: 3px;
  background: var(--gradient-signature);
}
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; border: 3px solid #000; }
.person .site {
  display: inline-flex; align-items: center; gap: .5rem; justify-self: start;
  font-family: var(--font-mono); font-size: .8125rem; color: var(--fg-70);
  border-bottom: 1px solid var(--border-strong); padding-bottom: .2rem; transition: color .3s, border-color .3s;
}
.person .site:hover { color: #fff; border-color: #fff; }
.person h3 { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.02em; }
.person .role { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; color: var(--fg-40); text-transform: uppercase; margin-top: .35rem; }
.person p { color: var(--fg-60); }
.person .tags { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Place */
.place { display: grid; gap: 3rem; }
@media (min-width: 900px) { .place { grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: center; } }
.place h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.025em; }
.place p { color: var(--fg-70); font-size: 1.0625rem; max-width: 34rem; margin-top: 1.5rem; }
.place .coords { margin-top: 2.5rem; }
.gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: .75rem; }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--zinc-800); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main { aspect-ratio: 4 / 5; }
.gallery .side { display: grid; gap: .75rem; grid-template-rows: 1fr auto; }
.gallery .side figure { min-height: 0; }
.gallery figcaption {
  position: absolute; left: .75rem; bottom: .75rem; padding: .25rem .6rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgb(0 0 0 / .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--fg-70);
}
.kiln-card { border: 1px solid var(--zinc-800); border-radius: 14px; padding: 1.25rem; display: grid; gap: .35rem; align-content: end; }
.kiln-card .k { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; color: var(--fg-40); text-transform: uppercase; }
.kiln-card a { font-size: .9375rem; }
.kiln-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.coords { display: grid; gap: 1rem; font-family: var(--font-mono); font-size: .8125rem; }
.coords div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.coords span:first-child { color: var(--fg-40); letter-spacing: .1em; }

/* Work */
.work { border-top: 1px solid var(--zinc-800); }
.work-row {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: .25rem 1.25rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--zinc-800);
  transition: background .2s;
}
@media (min-width: 768px) {
  .work-row { grid-template-columns: 4rem 1fr 1.6fr 15rem; align-items: baseline; gap: 2rem; padding: 2rem 1.5rem; }
  .work { margin: 0 -1.5rem; }
  .work-row:hover { background: rgb(24 24 27 / .5); }
}
.work-row .n { font-family: var(--font-mono); font-size: .75rem; color: var(--zinc-500); letter-spacing: .1em; }
.work-row h3 { font-size: 1.25rem; font-weight: 500; }
.work-row p { color: var(--zinc-500); grid-column: 2; }
.work-row .link { grid-column: 2; font-family: var(--font-mono); font-size: .8125rem; color: var(--fg-60); margin-top: .5rem; }
.work-row .link:hover { color: #fff; }
@media (min-width: 768px) {
  .work-row p { grid-column: auto; }
  .work-row .link { grid-column: auto; margin: 0; text-align: right; }
}
.work-foot { margin-top: 2rem; color: var(--fg-40); font-size: .875rem; }

/* CTA */
.cta { text-align: center; display: grid; justify-items: center; gap: 1.75rem; }
.cta h2 { font-size: clamp(2rem, 5.5vw, 3.75rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.025em; max-width: 48rem; text-wrap: balance; }

footer { border-top: 1px solid var(--zinc-800); padding: 3rem 0; font-size: .875rem; color: var(--fg-40); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
footer a:hover { color: #fff; }
footer .links { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* FAQ page */
.page-head { padding: 10rem 0 4rem; }
.page-head h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.025em; margin-top: 1.5rem; text-wrap: balance; }
.page-head p { font-size: 1.125rem; color: var(--fg-60); max-width: 42rem; margin-top: 1.5rem; }
.faq-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.faq-toc a { padding: .35rem .85rem; font-size: .8125rem; border: 1px solid var(--border-strong); color: var(--fg-70); border-radius: 999px; transition: color .3s, border-color .3s; }
.faq-toc a:hover { color: #fff; border-color: rgb(255 255 255 / .45); }
.faq-group { display: grid; gap: 2rem; padding: 4rem 0; border-top: 1px solid var(--zinc-800); scroll-margin-top: 6rem; }
@media (min-width: 900px) { .faq-group { grid-template-columns: 18rem 1fr; gap: 4rem; } }
.faq-group > h2 { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.015em; }
.faq-group > h2 .eyebrow { display: block; margin-bottom: .75rem; }
.faq-list { display: grid; }
.qa { padding: 1.75rem 0; border-bottom: 1px solid var(--zinc-800); scroll-margin-top: 6rem; }
.qa:first-child { padding-top: 0; }
.qa h3 { font-size: 1.1875rem; font-weight: 500; line-height: 1.35; }
.qa h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--fg-40); }
.qa p, .qa li { color: var(--fg-60); max-width: 44rem; }
.qa p { margin-top: .75rem; }
.qa ul { margin: .75rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.qa strong { color: var(--fg); font-weight: 500; }
.qa a.inline { color: var(--fg); border-bottom: 1px solid var(--border-strong); }
.qa a.inline:hover { border-color: #fff; }
.updated { font-family: var(--font-mono); font-size: .75rem; color: var(--fg-40); letter-spacing: .08em; margin-top: 2rem; }
.qa:last-child { border-bottom: 0; padding-bottom: 0; }
.page-head p.eyebrow { font-size: .8125rem; color: var(--fg-40); margin: 0; }
.page-head p.eyebrow a:hover { color: #fff; }
