:root {
  --teal:        #16a8a4;
  --teal-bright: #37d4ce;
  --teal-deep:   #0b6e6b;

  --bg:    #fafaf9;
  --ink:   #0f1514;
  --muted: #5b6b69;
  --line:  rgba(15, 21, 20, 0.09);

  --serif: ui-serif, "New York", "Iowan Old Style", Palatino, Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --mono:  ui-monospace, "SF Mono", Menlo, "Roboto Mono", monospace;

  --edge: clamp(1.25rem, 4vw, 2.75rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--edge);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding-left: 0.06em;
}

.contact {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact:hover { color: var(--teal-deep); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem var(--edge) 3rem;
}

.glow {
  position: absolute;
  top: 38%;
  left: 50%;
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(22, 168, 164, 0.20), rgba(22, 168, 164, 0) 62%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.hero > *:not(.glow) { position: relative; z-index: 1; }

.mark { display: block; }
.mark--hero {
  width: clamp(76px, 12vw, 104px);
  height: auto;
  margin-bottom: 2.4rem;
  animation: float 7s ease-in-out infinite;
}
.mark--sm { width: 26px; height: 26px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 1.5rem;
}

.headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 6.2vw, 4.3rem);
  line-height: 1.07;
  letter-spacing: -0.021em;
  max-width: 18ch;
  margin-bottom: 1.7rem;
  text-wrap: balance;
}

.mission {
  max-width: 40rem;
  font-size: clamp(1.02rem, 1.9vw, 1.28rem);
  line-height: 1.62;
  color: var(--muted);
  text-wrap: balance;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.pillars i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.8;
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: var(--edge);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer__mail {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__mail:hover { color: var(--teal-deep); }

/* subtle paper grain / vignette */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(120% 90% at 50% 0%, transparent 60%, rgba(0, 0, 0, 0.025));
}

/* ---------- entrance ---------- */
.eyebrow, .headline, .mission, .pillars, .mark--hero {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.mark--hero { animation: rise 0.9s cubic-bezier(0.2,0.7,0.2,1) forwards, float 7s ease-in-out 1s infinite; }
.eyebrow  { animation-delay: 0.10s; }
.headline { animation-delay: 0.20s; }
.mission  { animation-delay: 0.34s; }
.pillars  { animation-delay: 0.48s; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 168, 164, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(22, 168, 164, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 168, 164, 0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .eyebrow, .headline, .mission, .pillars, .mark--hero { opacity: 1; transform: none; }
}
