/* Brevard Creek Labs — public site.
 *
 * The feeling to hold: quiet, open, unhurried. Almost everything here is space
 * and type. Colour does very little work on purpose, motion happens once and
 * slowly, and there is never more than one thing asking for attention.
 */

@font-face {
  font-family: 'Space Grotesk BCL';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/space-grotesk.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter BCL';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono BCL';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(/fonts/jetbrains-mono.woff2) format('woff2');
}

:root {
  --ink: #04060a;          /* the existing theme colour, kept */
  --dusk: #070d10;         /* where the page settles at the bottom */
  --raised: #080e11;
  --bone: #e7ece9;         /* a shade off white, warmer than a screen white */
  --muted: #8d9c98;
  --water: #6fb3ab;
  --stone: #1d2826;
  --mark: #5ef0ff;         /* kept from the apps, and only for the wordmark */

  --display: 'Space Grotesk BCL', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter BCL', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono BCL', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: clamp(22px, 6vw, 92px);
  --measure: 54ch;
  --rule: 1px solid var(--stone);
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--bone);
  font-family: var(--sans);
  font-size: clamp(16px, 0.5vw + 15px, 17.5px);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* One atmospheric wash from top to bottom — the light going out of a sky,
     not a decorative blob. It is the only gradient on the site. */
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 42%, var(--dusk) 100%) fixed;
  min-height: 100svh;
}

/* ---------- rhythm ---------- */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.3em; color: var(--muted); }
.prose p.lead { color: var(--bone); font-size: 1.12em; }
.prose ul { margin: 0 0 1.3em; padding-left: 1.15em; color: var(--muted); }
.prose li { margin-bottom: 0.55em; }
.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.2vw + 1rem, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 3em 0 0.8em;
}
.prose h3 {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 500;
  margin: 2.2em 0 0.4em;
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a, .card a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--stone);
  transition: text-decoration-color .18s ease;
}
.prose a:hover, .card a:hover { text-decoration-color: var(--water); }
.prose a, .card p, .card address { overflow-wrap: anywhere; }

/* present for a screen reader and a crawler, absent for the eye */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- focus ---------- */
a { color: inherit; }
:focus-visible { outline: 2px solid var(--water); outline-offset: 4px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute;
  left: -9999px;
  padding: 12px 18px;
  background: var(--raised);
  border: var(--rule);
  z-index: 50;
}
.skip:focus { left: var(--gutter); top: 12px; }

/* ---------- header ---------- */
.site-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 0 0;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--bone); flex: none; }
.brand img { width: 24px; height: 24px; display: block; border-radius: 7px; }
.brand .name {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand .dot { color: var(--mark); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); font-size: 14.5px; }
.site-nav a { color: var(--muted); text-decoration: none; transition: color .18s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--bone); }
.site-nav .signin {
  color: var(--bone);
  border: var(--rule);
  border-radius: 999px;
  padding: 8px 18px;
  transition: border-color .18s ease, background .18s ease;
}
.site-nav .signin:hover { border-color: var(--muted); background: rgba(231, 236, 233, 0.04); }

@media (max-width: 560px) {
  .site-head { flex-wrap: wrap; gap: 14px 18px; padding-top: 22px; }
  .brand .name { font-size: 12px; letter-spacing: 0.12em; }
  .brand img { width: 21px; height: 21px; }
  .site-nav { gap: 15px; font-size: 14px; }
  .site-nav .signin { padding: 7px 14px; }
}
@media (max-width: 380px) {
  .site-nav { width: 100%; margin-left: 0; justify-content: space-between; }
}

/* ---------- the hero ---------- */
.hero {
  padding: clamp(96px, 21vh, 240px) 0 clamp(52px, 9vh, 96px);
  position: relative;
  z-index: 1;
}
.statement {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.024em;
  margin: 0;
  max-width: 13ch;
}
.statement .soft { color: var(--muted); }
.hero .sub {
  margin: clamp(26px, 3.6vh, 40px) 0 0;
  max-width: 46ch;
  font-size: clamp(1.04rem, 0.5vw + 0.95rem, 1.22rem);
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(34px, 4.4vh, 50px); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: var(--rule);
  color: var(--bone);
  text-decoration: none;
  font-size: 15px;
  transition: border-color .18s ease, background .18s ease;
}
.btn:hover { border-color: var(--muted); background: rgba(231, 236, 233, 0.045); }
.btn.primary { border-color: rgba(231, 236, 233, 0.4); }
.btn.primary:hover { border-color: var(--bone); background: rgba(231, 236, 233, 0.07); }
.btn .arrow { color: var(--muted); transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- the horizon ----------
   The one drawn thing on the site: two hairlines, one behind the other, the
   far one fainter. It is where the page opens out, and the only place any
   boldness is spent. */
.horizon {
  position: relative;
  z-index: 0;
  width: 100%;
  height: clamp(110px, 20vh, 220px);
  margin-top: clamp(18px, 4vh, 48px);
  overflow: hidden;
}
.horizon svg { width: 100%; height: 100%; display: block; }
.horizon path { fill: none; stroke: var(--water); stroke-width: 1; vector-effect: non-scaling-stroke; }
.horizon .far { opacity: 0.22; }
.horizon .near { opacity: 0.48; }

@media (prefers-reduced-motion: no-preference) {
  .horizon path {
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    animation: draw 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .horizon .far { animation-delay: .55s; animation-duration: 3.6s; }
  .horizon .near { animation-delay: .25s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  .rise { opacity: 0; transform: translateY(12px); animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  .rise-1 { animation-delay: .08s; }
  .rise-2 { animation-delay: .26s; }
  .rise-3 { animation-delay: .44s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- the artwork ----------
   Drawn, not photographed. Full-bleed so the page opens onto something rather
   than sitting inside a box, and masked at the top edge so it emerges out of
   the page colour instead of starting with a seam. */
.scene {
  position: relative;
  margin: clamp(6px, 2vh, 26px) 0 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.scene img {
  width: 100%;
  height: clamp(260px, 46vh, 520px);
  object-fit: cover;
  object-position: 50% 62%;
  display: block;
  /* the sky at the top of the artwork is the page colour, so a soft mask makes
     the join invisible rather than a hard horizontal line */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 86%, transparent 100%);
}
.scene.short img { height: clamp(180px, 30vh, 340px); }

@media (prefers-reduced-motion: no-preference) {
  .scene img { animation: settle 1.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes settle {
    from { opacity: 0; transform: scale(1.045); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- the quiet middle ---------- */
.belief { padding: clamp(70px, 13vh, 150px) 0; position: relative; z-index: 1; }
.belief p {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  line-height: 1.42;
  letter-spacing: -0.012em;
  color: var(--bone);
  max-width: 25ch;
  margin: 0 0 0.7em;
}
.belief p.after {
  color: var(--muted);
  max-width: 44ch;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0;
  margin-top: 1.9em;
}

.closing {
  position: relative;
  isolation: isolate;
  border-top: var(--rule);
  padding: clamp(76px, 14vh, 160px) 0 clamp(70px, 12vh, 140px);
  overflow: hidden;
}
/* a contour map, faint enough to be texture rather than a picture */
.closing .texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.30;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 50%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 80% at 70% 50%, #000 20%, transparent 78%);
}
.closing .statement { max-width: 16ch; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(74px, 13vh, 140px) 0 clamp(26px, 4vh, 44px); }
.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0;
  max-width: 18ch;
}
.page-head .kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--water);
  margin: 0 0 18px;
}
.page-body { padding-bottom: clamp(80px, 13vh, 150px); }
.updated { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.todo {
  display: block;
  margin: 1.4em 0;
  padding: 15px 17px;
  border: 1px dashed rgba(111, 179, 171, 0.45);
  border-radius: 8px;
  background: rgba(111, 179, 171, 0.04);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--bone);
}

/* ---------- contact ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card { border: var(--rule); border-radius: 12px; padding: 24px; background: var(--raised); }
.card h2 { font-family: var(--display); font-size: 1rem; font-weight: 500; margin: 0 0 8px; }
.card p, .card address { margin: 0; color: var(--muted); font-style: normal; }

/* ---------- footer ---------- */
.site-foot {
  border-top: var(--rule);
  padding: clamp(44px, 7vh, 68px) 0 clamp(38px, 6vh, 56px);
  font-size: 14.5px;
  color: var(--muted);
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 26px 48px; align-items: flex-start; }
.foot-grid nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-foot a { color: var(--muted); text-decoration: none; transition: color .18s ease; }
.site-foot a:hover { color: var(--bone); }
.foot-meta { margin-left: auto; text-align: right; }
.foot-meta address { font-style: normal; }
.foot-legal {
  margin-top: 34px;
  padding-top: 22px;
  border-top: var(--rule);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
}
@media (max-width: 620px) { .foot-meta { margin-left: 0; text-align: left; } }

/* ---------- sign-in ---------- */
.login-shell { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.login-main { display: grid; place-items: center; padding: 48px 0 70px; }
.login-card {
  width: min(400px, 100%);
  border: var(--rule);
  border-radius: 14px;
  background: var(--raised);
  padding: clamp(28px, 4vw, 38px);
}
.login-card h1 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: -0.018em; margin: 0 0 8px; }
.login-card .hint { margin: 0 0 26px; color: var(--muted); font-size: 14.5px; }
.field { margin-bottom: 17px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 13px;
  border-radius: 9px;
  border: var(--rule);
  background: var(--ink);
  color: var(--bone);
  font: inherit;
  font-size: 16px;
}
.field input:focus-visible { border-color: var(--water); outline-offset: 1px; }
#submitBtn {
  width: 100%;
  margin-top: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(231, 236, 233, 0.4);
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
#submitBtn:hover:not(:disabled) { border-color: var(--bone); background: rgba(231, 236, 233, 0.07); }
#submitBtn:disabled { opacity: 0.55; cursor: progress; }
.msg { margin-top: 15px; font-size: 14px; color: #f0a6c4; display: none; }
.msg.show { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .shake { animation: shake .32s ease; }
  @keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
}
.login-back { margin-top: 22px; text-align: center; font-size: 14px; }
.login-back a { color: var(--muted); text-decoration: none; }
.login-back a:hover { color: var(--bone); }


/* ---------- contact form ---------- */
.contact-form { max-width: 620px; margin-top: 8px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form .field { margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-form label .opt { text-transform: none; letter-spacing: 0; opacity: .7; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: var(--rule);
  background: var(--raised);
  color: var(--bone);
  font: inherit;
  font-size: 16px;
  transition: border-color .18s ease, background .18s ease;
}
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.65; }
.contact-form input:hover, .contact-form textarea:hover { border-color: #273533; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  border-color: var(--water);
  background: #0a1215;
  outline-offset: 1px;
}
/* the honeypot: present in the DOM, unreachable for a person */
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#cf-send {
  margin-top: 4px;
  padding: 13px 34px;
  border-radius: 999px;
  border: 1px solid rgba(231, 236, 233, 0.4);
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
#cf-send:hover:not(:disabled) { border-color: var(--bone); background: rgba(231, 236, 233, 0.07); }
#cf-send:disabled { opacity: .55; cursor: progress; }
.cf-msg { margin: 16px 0 0; font-size: 14.5px; display: none; }
.cf-msg.show { display: block; }
.cf-msg.ok { color: var(--water); }
.cf-msg.bad { color: #f0a6c4; }
