:root {
  --ink: #14221f;
  --muted: #4a5c57;
  --paper: #eef4f1;
  --paper-deep: #d7e6df;
  --teal: #0b3d3a;
  --teal-bright: #147a6f;
  --mist: #f7fbf9;
  --line: color-mix(in srgb, var(--teal) 16%, transparent);
  --max: 72rem;
  --brand: "Bricolage Grotesque", "Avenir Next Condensed", "Segoe UI", sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem) / 1.65 var(--body);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(20, 122, 111, 0.18), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(11, 61, 58, 0.1), transparent 50%),
    linear-gradient(165deg, var(--mist) 0%, var(--paper) 45%, var(--paper-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-bright);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

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

a:focus-visible,
.action:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.55rem 0.85rem;
  background: var(--teal);
  color: var(--mist);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

/* —— Hero: one composition —— */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 100vh;
  min-height: 100dvh;
  align-items: stretch;
  overflow: clip;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem) clamp(1.4rem, 5vw, 4.5rem);
  max-width: 40rem;
}

.brand {
  margin: 0 0 1.15rem;
  font-family: var(--brand);
  font-size: clamp(2.6rem, 1.6rem + 3.8vw, 4.35rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--teal);
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.headline {
  margin: 0;
  font-family: var(--brand);
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.05rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 18ch;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.lede {
  margin: 1.25rem 0 0;
  color: var(--muted);
  max-width: 34ch;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.34s forwards;
}

.lede a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--teal-bright) 45%, transparent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 2rem 0 0;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.46s forwards;
}

.action {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 28%, transparent);
  background: color-mix(in srgb, var(--mist) 70%, transparent);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.action:hover {
  background: color-mix(in srgb, var(--paper-deep) 80%, white);
  border-color: var(--teal-bright);
  color: var(--teal);
}

.action--primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--mist);
}

.action--primary:hover {
  background: var(--teal-bright);
  border-color: var(--teal-bright);
  color: var(--mist);
}

.hero__visual {
  position: relative;
  min-height: 42vh;
  background: var(--teal);
  opacity: 0;
  animation: fade-in 1.1s ease 0.15s forwards;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--paper) 0%, transparent 18%),
    linear-gradient(180deg, transparent 70%, color-mix(in srgb, var(--teal) 35%, transparent) 100%);
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.04);
  animation: settle 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

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

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes settle {
  to { transform: scale(1); }
}

/* —— Sections —— */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.4rem, 5vw, 4.5rem) 2rem;
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.section h2 {
  margin: 0 0 1.1rem;
  font-family: var(--brand);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--teal);
}

.about p,
.project {
  margin: 0;
  max-width: 62ch;
  color: var(--ink);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem 1.5rem;
  align-items: baseline;
}

.when {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.what strong {
  font-weight: 600;
}

.focus-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  max-width: 44ch;
}

.focus-list li {
  position: relative;
  padding-left: 1.15rem;
}

.focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--teal-bright);
}

.project .meta {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.project a {
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--teal-bright) 40%, transparent);
}

.connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  margin: 0;
}

.connect-links a {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--teal-bright) 35%, transparent);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem clamp(1.4rem, 5vw, 4.5rem) 2.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal-bright);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__visual {
    order: -1;
    min-height: min(58vw, 22rem);
    max-height: 26rem;
  }

  .hero__visual::after {
    background:
      linear-gradient(180deg, transparent 55%, var(--paper) 100%);
  }

  .hero__copy {
    max-width: none;
    padding-top: 1.75rem;
    padding-bottom: 3rem;
  }

  .brand {
    font-size: clamp(2.35rem, 8vw, 3.2rem);
  }

  .headline {
    max-width: none;
  }

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

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

  .brand,
  .headline,
  .lede,
  .actions,
  .hero__visual,
  .hero__image,
  .section {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
