:root {
  --ink: #121820;
  --ink-soft: #44505e;
  --muted: #6e7a88;
  --paper: #e8eef2;
  --line: rgba(18, 24, 32, 0.1);
  --signal: #c45c26;
  --steel: #2f6f8f;
  --glow-a: rgba(196, 92, 38, 0.22);
  --glow-b: rgba(47, 111, 143, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 56rem;
  --pad: clamp(1rem, 3.5vw, 1.5rem);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.55;
  background: var(--paper);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal);
}

/* --- Atmosphere --- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(110% 70% at 50% -8%, #f5f8fa 0%, transparent 55%),
    linear-gradient(165deg, #edf3f7 0%, #dce6ee 50%, #d0dde6 100%);
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(196, 92, 38, 0.06) 40%,
    transparent 68%
  );
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 65% 50% at 50% 28%,
    #000 15%,
    transparent 72%
  );
  transform: perspective(600px) rotateX(58deg) scale(1.3);
  transform-origin: center 18%;
  animation: grid-drift 28s linear infinite;
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
}

.atmosphere__glow--a {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  top: 10%;
  left: 6%;
  background: var(--glow-a);
  animation: glow-a 14s var(--ease) infinite alternate;
}

.atmosphere__glow--b {
  width: min(38vw, 320px);
  height: min(38vw, 320px);
  top: 16%;
  right: 6%;
  background: var(--glow-b);
  animation: glow-b 18s var(--ease) infinite alternate;
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 56px, 56px 0;
  }
}

@keyframes glow-a {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  to {
    transform: translate(5%, 8%) scale(1.08);
    opacity: 1;
  }
}

@keyframes glow-b {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.65;
  }
  to {
    transform: translate(-6%, 5%) scale(1.06);
    opacity: 0.95;
  }
}

/* --- Header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  backdrop-filter: blur(10px);
  background: rgba(232, 238, 242, 0.72);
}

.mark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

/* --- Hero --- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vh, 3rem) var(--pad) clamp(2.5rem, 7vh, 4rem);
  min-height: calc(100svh - 3.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(9.5rem, 0.7fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
}

.hero__copy {
  min-width: 0;
}

.hero__place {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.8s var(--ease) 0.08s forwards;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.85s var(--ease) 0.16s forwards;
}

.hero__headline {
  margin: 0.85rem 0 0;
  max-width: 28ch;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.85s var(--ease) 0.28s forwards;
}

.hero__support {
  margin: 0.7rem 0 0;
  max-width: 38ch;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.85s var(--ease) 0.38s forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.85s var(--ease) 0.48s forwards;
}

.hero__portrait {
  margin: 0;
  justify-self: end;
  width: min(100%, 15.5rem);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: rise-scale 0.95s var(--ease) 0.3s forwards;
}

.hero__portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(18, 24, 32, 0.08);
  box-shadow: 0 18px 40px rgba(18, 24, 32, 0.12);
  background: #f3f1ec;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-scale {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff7f1;
}

.btn--primary:hover {
  background: #a84a1c;
  border-color: #a84a1c;
  color: #fff7f1;
}

/* --- Sections --- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.25rem, 6vh, 3.5rem) var(--pad);
  border-top: 1px solid var(--line);
}

.section__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.section__title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section__body {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.section__body--muted {
  color: var(--muted);
}

.section--path {
  padding-bottom: clamp(2.75rem, 8vh, 4.5rem);
}

.timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 36rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline__when {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 0.12rem;
}

.timeline__what {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.45;
}

/* --- Footer --- */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad) 2.25rem;
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid var(--line);
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-footer__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer__links {
  margin: 0.55rem 0 0;
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.site-footer__links a {
  text-decoration: none;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile --- */

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.25rem;
    gap: 1.35rem;
    justify-items: start;
  }

  .hero__portrait {
    order: -1;
    justify-self: start;
    width: min(42vw, 8.75rem);
  }

  .hero__brand {
    font-size: clamp(1.7rem, 7.5vw, 2.15rem);
  }

  .hero__headline {
    max-width: none;
  }

  .hero__support {
    max-width: none;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .atmosphere__grid {
    opacity: 0.18;
  }
}

@media (max-width: 400px) {
  .nav {
    gap: 0.7rem;
  }

  .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .atmosphere__grid,
  .atmosphere__glow--a,
  .atmosphere__glow--b,
  .hero__place,
  .hero__brand,
  .hero__headline,
  .hero__support,
  .hero__cta,
  .hero__portrait {
    animation: none !important;
  }

  .hero__place,
  .hero__brand,
  .hero__headline,
  .hero__support,
  .hero__cta,
  .hero__portrait,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
