:root {
  --ink: #122026;
  --muted: #4a5c64;
  --paper: #eef3f1;
  --paper-deep: #d9e4df;
  --teal: #1aa39a;
  --teal-deep: #0e6f6a;
  --gold: #e2b14a;
  --hero-ink: #f4f7f6;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-deep);
}

a:hover {
  color: var(--teal);
}

/* —— Hero: one composition —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: clip;
  color: var(--hero-ink);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: -2;
  transform: scale(1.04);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(8 14 16 / 0.35) 0%, rgb(8 14 16 / 0.55) 42%, rgb(8 14 16 / 0.88) 100%),
    radial-gradient(90% 70% at 15% 80%, rgb(26 163 154 / 0.28), transparent 55%),
    radial-gradient(80% 60% at 90% 70%, rgb(226 177 74 / 0.22), transparent 50%);
}

.hero-inner {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto 12vh;
  padding-top: 18vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 4.2vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.brand-mark {
  width: clamp(3.5rem, 9vw, 5.5rem);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgb(0 0 0 / 0.35));
}

.brand-name {
  text-wrap: balance;
}

.headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 14ch;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgb(244 247 246 / 0.88);
  font-weight: 400;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gold);
  color: #1a1508;
}

.btn-primary:hover {
  background: #f0c86a;
  color: #1a1508;
}

.btn-ghost {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.35);
  color: var(--hero-ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.16);
  color: #fff;
}

/* —— About: one job —— */
.about {
  width: min(38rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 6rem) 0;
}

.about h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.about p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-foot {
  border-top: 1px solid rgb(18 32 38 / 0.1);
  background: linear-gradient(180deg, var(--paper), var(--paper-deep));
  padding: 2rem 1.25rem 2.75rem;
  text-align: center;
}

.site-foot p {
  margin: 0.25rem 0;
}

.site-foot .portal {
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

.site-foot .portal a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-foot .portal a:hover {
  color: var(--teal-deep);
}

.site-foot .fine {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— Motion (opt-in) —— */
@media (prefers-reduced-motion: no-preference) {
  .hero-media {
    animation: hero-drift 22s ease-in-out alternate infinite;
  }

  .brand,
  .headline,
  .lede,
  .cta {
    animation: rise-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .headline { animation-delay: 120ms; }
  .lede { animation-delay: 220ms; }
  .cta { animation-delay: 320ms; }

  .about {
    animation: about-in linear both;
    animation-timeline: view();
    animation-range: entry 8% cover 32%;
  }

  .btn:active {
    transform: translateY(1px);
  }
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(0, -1.5%, 0); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate3d(0, 1.1rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes about-in {
  from {
    opacity: 0.35;
    transform: translate3d(0, 1.25rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 560px) {
  .hero-inner {
    margin-bottom: 8vh;
  }

  .cta {
    width: 100%;
  }

  .btn {
    flex: 1 1 100%;
  }
}
