/* ==========================================================================
   Foster Tree Consulting — Coming Soon (light, minimal)
   Pure CSS, no frameworks. Fonts are self-hosted (SIL Open Font License).
   ========================================================================== */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f6f4f0;
  --ink: #111111;
  --ink-2: #3f3e3b;   /* body text  ~10:1 on white */
  --ink-3: #6b6a66;   /* muted text ~5.3:1 on white */
  --accent: #8a6a3d;  /* bronze     ~5:1 on white  */
  --accent-soft: #b8996a;
  --line: #e9e6e0;
  --line-strong: #d7d3cb;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 5vw, 72px);
  --max: 1440px;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(184, 153, 106, 0.28); color: var(--ink); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 8px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -64px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Ambient background
   -------------------------------------------------------------------------- */

.bg {
  position: fixed;
  left: 0; top: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 78% 105%, rgba(184, 153, 106, 0.10) 0%, rgba(184, 153, 106, 0) 70%),
    #ffffff;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.aurora--1 {
  width: 60vmax; height: 60vmax;
  left: -22vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(226, 219, 205, 0.55), rgba(226, 219, 205, 0));
  animation: drift-1 30s ease-in-out infinite alternate;
}
.aurora--2 {
  width: 46vmax; height: 46vmax;
  right: -14vmax; top: 6vh;
  background: radial-gradient(closest-side, rgba(184, 153, 106, 0.09), rgba(184, 153, 106, 0));
  animation: drift-2 36s ease-in-out infinite alternate;
}
.aurora--3 {
  width: 56vmax; height: 56vmax;
  left: 22vw; bottom: -38vmax;
  background: radial-gradient(closest-side, rgba(17, 17, 17, 0.035), rgba(17, 17, 17, 0));
  animation: drift-3 42s ease-in-out infinite alternate;
}
@keyframes drift-1 { to { transform: translate3d(12vw, 10vh, 0) scale(1.1); } }
@keyframes drift-2 { to { transform: translate3d(-10vw, 16vh, 0) scale(0.92); } }
@keyframes drift-3 { to { transform: translate3d(-8vw, -6vh, 0) scale(1.06); } }

.bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#tree { transition: transform 1.4s var(--ease); }

.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.7) 34%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 24%);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.site-header,
.hero,
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3.2vh, 40px) var(--pad) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__main {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.005em;
}
.brand__sub {
  margin-top: 6px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.header-link svg { width: 16px; height: 16px; }
.header-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(24px, 4.4vh, 96px) var(--pad) clamp(24px, 4vh, 80px);
}
.hero__inner { max-width: 800px; }

/* Launch announcement ---------------------------------------------------- */

.announce {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink-2);
  font-size: 0.85rem;
  line-height: 1.3;
}
.announce::before {
  --angle: 0deg;
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle),
    rgba(17, 17, 17, 0.12),
    rgba(138, 106, 61, 0.85) 10%,
    rgba(184, 153, 106, 0.4) 22%,
    rgba(17, 17, 17, 0.12) 38%,
    rgba(17, 17, 17, 0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 7s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { --angle: 360deg; } }

.announce__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.announce__dot {
  position: relative;
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.announce__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Headline ------------------------------------------------------------------ */

.headline {
  margin: clamp(18px, 3.4vh, 30px) 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, min(7.6vw, 10vh), 7rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.headline .line {
  display: block;
  overflow: hidden;
  padding: 0 0.14em 0.1em 0;
  margin-bottom: -0.1em;
}
.headline .line > span {
  display: inline-block;
  transform: translate3d(0, 112%, 0);
  animation: rise 1.4s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 1s);
}
@keyframes rise { to { transform: none; } }

.headline em {
  font-style: italic;
  padding-right: 0.06em;
  background: linear-gradient(100deg, #111111 0%, #4d3d26 30%, #8a6a3d 58%, #b8996a 80%, #8a6a3d 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sheen 10s ease-in-out infinite alternate;
}
@keyframes sheen {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.lede {
  max-width: 34em;
  margin: clamp(16px, 3vh, 30px) 0 0;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.2vw, 1.17rem);
  line-height: 1.75;
}

/* Call to action -------------------------------------------------------------- */

.cta { margin-top: clamp(22px, 3.8vh, 40px); }

.cta__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  line-height: 1.2;
  color: var(--ink);
}
.cta__line::before {
  content: "";
  width: 44px; height: 1px;
  flex: none;
  background: linear-gradient(90deg, var(--accent), rgba(138, 106, 61, 0));
}
.cta__line em { font-style: italic; color: var(--accent); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(16px, 2.6vh, 26px);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 0.95rem/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn svg {
  width: 18px; height: 18px;
  flex: none;
  transition: transform 0.35s var(--ease);
}

.btn--primary {
  border: 0;
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 12px 28px -14px rgba(17, 17, 17, 0.55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: #000000;
  box-shadow: 0 18px 36px -14px rgba(17, 17, 17, 0.6);
}
.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-weight: 500;
}
.btn--ghost:hover { border-color: var(--ink); }
.btn__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-3);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.btn__hint svg { width: 14px; height: 14px; }
.btn__hint-default,
.btn__hint-done { display: inline-flex; align-items: center; gap: 6px; }
.btn__hint-done { display: none; color: var(--accent); }
.is-copied .btn__hint-default { display: none; }
.is-copied .btn__hint-done { display: inline-flex; }

/* Pillars ---------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: clamp(24px, 4.4vh, 56px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.pillars li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 20px 0 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.4;
}
.pillars li + li {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.pillars__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
}

/* Footer ---------------------------------------------------------------------- */

.site-footer { padding: 0 var(--pad) clamp(18px, 2.6vh, 32px); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.82rem;
}
.site-footer p { margin: 0; }
.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s;
}
.site-footer a:hover {
  color: var(--ink);
  background-size: 100% 1px;
}

/* --------------------------------------------------------------------------
   Entrance animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  filter: blur(8px);
  animation: fade-up 1.2s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 1s);
}
@keyframes fade-up {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 959px) {
  #tree { opacity: 0.32; }
  .scrim {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.15) 100%);
  }
  .hero { align-items: flex-start; }
}

@media (max-width: 640px) {
  .brand { gap: 11px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__main { font-size: 1.28rem; }
  .brand__sub { font-size: 0.56rem; letter-spacing: 0.34em; }
  .header-link { padding: 9px 14px; }
  .header-link__label { display: none; }
  .hero { padding-top: 44px; }
  .announce {
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 20px;
    font-size: 0.8rem;
  }
  .announce__text { padding: 0 4px 4px 6px; }
  .cta__line::before { display: none; }
  .announce__tag { font-size: 0.62rem; padding: 5px 10px 5px 9px; }
  .headline { margin-top: 26px; }
  .lede { margin-top: 24px; }
  .cta { margin-top: 34px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; padding: 0 20px; }
  .btn--ghost { font-size: 0.9rem; }
  .pillars { grid-template-columns: 1fr; margin-top: 40px; border-top: 0; }
  .pillars li,
  .pillars li + li {
    padding: 14px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .btn__hint-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .aurora { animation: none !important; }
}
