:root {
  --bg: #f4f2ed;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --ink: #171717;
  --muted: #6b6b6b;
  --line: rgba(23, 23, 23, 0.08);
  --line-strong: rgba(23, 23, 23, 0.12);
  --accent: #111111;
  --accent-dark: #000000;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f7f4 0%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
  background: linear-gradient(180deg, rgba(248, 247, 244, 0.94), rgba(248, 247, 244, 0.7), transparent);
  transition:
    padding 220ms ease,
    background 220ms ease;
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition:
    padding 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    backdrop-filter 220ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition:
    width 220ms ease,
    height 220ms ease,
    transform 220ms ease;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text strong {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  transition: font-size 220ms ease;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.75rem;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    font-size 220ms ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition:
    color 180ms ease,
    font-size 220ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.nav-cta {
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: #111111;
  color: #ffffff !important;
  transition:
    padding 220ms ease,
    background 180ms ease;
}

body.has-scrolled .site-header {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  background: linear-gradient(180deg, rgba(248, 247, 244, 0.98), rgba(248, 247, 244, 0.82), transparent);
}

body.has-scrolled .nav-shell {
  padding: 0.72rem 0.9rem;
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

body.has-scrolled .brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  transform: scale(0.96);
}

body.has-scrolled .brand-text strong {
  font-size: 0.88rem;
}

body.has-scrolled .brand-text small {
  font-size: 0.7rem;
  opacity: 0.75;
  transform: translateY(-1px);
}

body.has-scrolled .site-nav a {
  font-size: 0.89rem;
}

body.has-scrolled .nav-cta {
  padding: 0.66rem 0.92rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.2rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 0.3rem 0;
  border-radius: 999px;
  background: #111111;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: 5rem 0;
}

section[id] {
  scroll-margin-top: 6.5rem;
}

.section-label {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}

.hero-copy {
  max-width: 860px;
}

.hero h1,
.section-head h2,
.profile-main h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-lead,
.section-head p,
.content-card p,
.profile-main p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-lead {
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.button,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.contact-link:hover {
  transform: translateY(-1px);
}

.button-primary,
.contact-link {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.12);
}

.button-primary:hover,
.contact-link:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.hero-notes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2.35rem;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.2rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-notes span::before {
  content: "";
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.25);
}

.section-soft {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.section-head h2,
.profile-main h2,
.contact-panel h2 {
  font-size: clamp(2.3rem, 5.7vw, 4.1rem);
}

.section-head h2,
.profile-main h2 {
  max-width: 12ch;
}

.section-head p {
  max-width: 40rem;
  margin: 1rem 0 0;
  font-size: 1.02rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.content-card,
.aside-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.content-card {
  padding: 1.1rem 0 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.content-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.18rem;
  line-height: 1.15;
}

.content-card p {
  margin: 0;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.82fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.profile-main {
  max-width: 44rem;
}

.profile-main h2 {
  margin-bottom: 0.2rem;
}

.profile-main p {
  max-width: 40rem;
  margin: 0.95rem 0 0;
  font-size: 1rem;
}

.profile-main h2 + p {
  max-width: 38rem;
  margin-top: 1rem;
  color: #4f4f4f;
  font-size: 1.06rem;
}

.profile-aside {
  align-self: start;
}

.aside-card {
  position: sticky;
  top: 6.8rem;
  max-width: 24rem;
  padding: 1.55rem;
  margin-top: 0.25rem;
  justify-self: end;
  box-shadow: none;
}

.aside-label {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.aside-list li {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-wrap: balance;
}

.aside-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.1rem 0 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  text-align: center;
  box-shadow: none;
}

.contact-panel p {
  max-width: 540px;
  margin: 1rem auto 0;
}

.contact-link {
  margin-top: 1.8rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 960px) {
  .card-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4.25rem 0;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .hero-copy,
  .section-head,
  .profile-main {
    max-width: none;
  }

  .section-head h2,
  .profile-main h2 {
    max-width: 11.5ch;
  }

  .aside-card {
    position: static;
    max-width: none;
    margin-top: 0;
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 5.8rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-header {
    padding-top: 0.7rem;
    padding-bottom: 0.55rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-shell {
    position: relative;
    border-radius: 1.5rem;
    padding: 0.8rem 0.9rem;
  }

  .hero {
    padding-top: 4.4rem;
    padding-bottom: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.2rem);
    line-height: 0.98;
  }

  .hero-lead {
    max-width: 32rem;
    margin-top: 1.1rem;
    font-size: 1rem;
    line-height: 1.68;
  }

  .hero-notes {
    display: grid;
    gap: 0.7rem;
    justify-items: start;
    width: 100%;
    max-width: 30rem;
    margin-top: 1.8rem;
  }

  .hero-notes span {
    font-size: 0.9rem;
  }

  .section-head {
    margin-bottom: 1.6rem;
  }

  .section-head h2,
  .profile-main h2,
  .contact-panel h2 {
    font-size: clamp(2rem, 9vw, 3.2rem);
    line-height: 1.02;
  }

  .section-head h2,
  .profile-main h2 {
    max-width: 11ch;
  }

  .section-head p,
  .profile-main p,
  .contact-panel p {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .card-grid {
    gap: 1.25rem;
  }

  .content-card {
    padding-top: 0.95rem;
  }

  .content-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.55rem;
  }

  .profile-layout {
    gap: 1.8rem;
  }

  .profile-main h2 {
    margin-bottom: 0.1rem;
  }

  .profile-main h2 + p {
    margin-top: 0.85rem;
    font-size: 1rem;
  }

  .aside-card {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .aside-list {
    gap: 0.7rem;
  }

  .aside-list li {
    padding-bottom: 0.7rem;
    font-size: 0.95rem;
  }

  .contact-panel {
    padding-top: 1.8rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 5.2rem;
  }

  .site-header,
  .section,
  .site-footer {
    width: min(calc(100% - 1.1rem), var(--max-width));
  }

  .nav-shell {
    padding: 0.72rem 0.8rem;
  }

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 2.55rem;
    height: 2.55rem;
  }

  .brand-text strong {
    font-size: 0.86rem;
  }

  .site-nav {
    border-radius: 1.1rem;
    padding: 0.55rem;
  }

  .site-nav a {
    padding: 0.82rem 0.9rem;
    font-size: 0.95rem;
  }

  .button,
  .contact-link {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 1.7rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 14vw, 3.25rem);
  }

  .hero-lead {
    font-size: 0.96rem;
  }

  .hero-notes {
    gap: 0.55rem;
  }

  .hero-notes span {
    font-size: 0.88rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-label {
    margin-bottom: 0.8rem;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
  }

  .section-head h2,
  .profile-main h2,
  .contact-panel h2 {
    font-size: clamp(1.8rem, 10vw, 2.75rem);
  }

  .section-head p,
  .profile-main p,
  .content-card p,
  .contact-panel p {
    font-size: 0.95rem;
  }

  .section-head h2,
  .profile-main h2 {
    max-width: 100%;
  }

  .profile-main p {
    margin-top: 0.85rem;
  }

  .aside-card {
    padding: 1.1rem 1rem;
    border-radius: 18px;
  }

  .aside-label {
    margin-bottom: 0.85rem;
    font-size: 0.74rem;
  }

  .aside-list li {
    font-size: 0.92rem;
  }

  .contact-panel {
    padding: 1.4rem 0 0;
  }

  .contact-link {
    margin-top: 1.35rem;
    min-height: 3.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
