/* Final Form links page. Monochrome, from the Final Form design system tokens.
   Fonts: Barlow Condensed (display) and Montserrat (body), the same pairing OmniCoach uses.
   Both are SIL Open Font License, free for web use (licence text in fonts/).
   IndustryInc is not used here because it isn't licensed for the web. */

@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --black: #000; --white: #fff;
  --grey-950: #0f0f0f; --grey-900: #1a1a1a; --grey-800: #2d2d2d; --grey-700: #404040;
  --grey-500: #6b6b6b; --grey-400: #888; --grey-300: #b3b3b3; --grey-200: #d9d9d9;
  --font-display: "Barlow Condensed", "Arial Narrow", -apple-system, sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
/* Fixed width: no sideways sliding or rubber-banding on phones. Pinch-zoom still works. */
html, body { overflow-x: hidden; overscroll-behavior: none; }
body { touch-action: pan-y pinch-zoom; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Background layers. Without WebGL, a soft static glow stands in for the moving lines. */
body.no-webgl #bg { display: none; }
body.no-webgl { background: radial-gradient(ellipse at 50% 120%, var(--grey-900) 0%, var(--black) 60%) fixed; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
/* A soft dark pool behind the content so text always reads over the lines */
.wrap::before {
  content: ""; position: absolute; inset: -40px 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 38%, rgba(0,0,0,.7) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,0) 75%);
  pointer-events: none;
}

/* Layout */
.wrap {
  position: relative; z-index: 2;
  max-width: 440px; margin: 0 auto;
  padding: calc(56px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom));
  min-height: 100svh;
  display: flex; flex-direction: column;
}

.me { text-align: center; }
.avatar {
  width: 128px; height: 128px; margin: 0 auto 22px;
  border-radius: 50%; overflow: hidden;
  border: 1px solid var(--grey-500);
  box-shadow: 0 0 0 5px var(--black), 0 0 0 6px var(--grey-800), 0 0 40px rgba(255,255,255,.08);
  background: var(--grey-950);
  display: grid; place-items: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar img.avatar-placeholder { width: 56%; height: auto; object-fit: contain; }

h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 40px; line-height: 1; letter-spacing: .02em; text-transform: uppercase;
  margin: 0;
}
.role {
  margin: 8px 0 0; font-size: 12px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--grey-300);
}
.bio { margin: 20px 0 0; font-size: 15px; color: var(--grey-200); text-wrap: balance; }

/* Links */
.links { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
/* Until the guide is live, the enquiry button (the one thing that works) goes first */
.lead[data-live="false"] { order: 2; }

.card {
  border: 1px solid var(--grey-700);
  background: rgba(15,15,15,.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 20px;
}
.eyebrow {
  margin: 0 0 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--grey-400);
}
.lead-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 26px; line-height: 1.05; letter-spacing: .02em; margin: 0;
}
.lead-blurb { margin: 8px 0 16px; font-size: 14px; color: var(--grey-300); }

.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-solid { background: var(--white); color: var(--black); border: 1px solid var(--white); }
.btn-solid:hover { background: var(--grey-200); border-color: var(--grey-200); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--grey-400); min-height: 48px; }
.btn-outline:hover { border-color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .foot-link:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.lead[data-live="false"] .btn { display: none; }
.lead[data-live="false"] .lead-blurb { margin-bottom: 0; }
.lead[data-live="false"] { border-style: dashed; }

/* Footer */
.foot { margin-top: auto; padding-top: 56px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.foot-logo { height: 30px; width: auto; opacity: .9; }
.foot-link { font-size: 13px; color: var(--grey-400); text-decoration: none; letter-spacing: .04em; }
.foot-link:hover { color: var(--white); }

/* Content eases in once, top to bottom */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.me, .links > *, .foot { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
#enquire { animation-delay: .12s; }
.lead { animation-delay: .2s; }
.foot { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .me, .links > *, .foot { animation: none; }
}

/* ?bare in the URL hides the content, to look at the background on its own */
body.bare .wrap { visibility: hidden; }
