:root {
  --bg: #f6f6f4;
  --ink: #111110;
  --gray: #6b6b68;
  --line: #111110;
  --soft: #e3e2de;
  --serif: 'Space Grotesk', sans-serif;
  --body: 'Work Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* --- Opening line animation --- */

.line-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
  animation: draw-line 0.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes draw-line {
  0% { transform: scaleX(0); }
  70% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .line-loader {
    animation: none;
    opacity: 0;
  }
  .hero-inner > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Hero --- */

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 8vh 6vw 4vh;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 900px;
}

.eyebrow {
  font-size: 0.9rem;
  color: var(--gray);
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: rise 0.6s ease-out 0.7s forwards;
}

.name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.2rem, 12vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: rise 0.7s ease-out 0.85s forwards;
}

.tagline {
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--gray);
  max-width: 32ch;
  opacity: 0;
  animation: rise 0.6s ease-out 1.05s forwards;
}

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

/* --- Sections --- */

.section {
  border-bottom: 1px solid var(--soft);
  padding: 6vh 6vw;
}

.section:last-of-type {
  border-bottom: none;
}

.section-inner {
  max-width: 640px;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.body-text {
  color: var(--ink);
  font-size: 1.05rem;
  max-width: 46ch;
}

/* --- Links with underline-draw motif --- */

.link-button {
  position: relative;
  display: inline-block;
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  padding-bottom: 0.4rem;
}

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.link-list a {
  position: relative;
  display: inline-block;
  font-size: 1.15rem;
  padding-bottom: 0.3rem;
}

.link-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--line);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.link-button .link-line {
  transform: scaleX(1);
}

.link-list a:hover .link-line,
.link-button:hover .link-line,
.link-list a:focus-visible .link-line,
.link-button:focus-visible .link-line {
  transform: scaleX(0);
  transform-origin: right;
}

/* --- Footer --- */

.footer {
  padding: 4vh 6vw;
  color: var(--gray);
  font-size: 0.9rem;
}

/* --- Responsive --- */

@media (max-width: 480px) {
  .hero {
    min-height: 60vh;
    padding: 10vh 6vw 4vh;
  }
  .section {
    padding: 5vh 6vw;
  }
}
