:root {
  --hero-green: #849974;
  --midnight-blue: #193446;
  --line: #babcc2;
  --surface: #ffffff;
  --focus: #2f4a33;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--midnight-blue);
  font-family: "Instrument Sans", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  background: #f6f7f5;
}

a {
  color: var(--hero-green);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--midnight-blue);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-160%);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: #ffffff;
  color: var(--focus);
  border: 1px solid var(--line);
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus-visible {
  transform: translateY(0.8rem);
}

.page-shell {
  width: min(1740px, 92%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5.5%;
}

.profile-column {
  flex: none;
  width: 35%;
  height: 95vh;
  position: sticky;
  top: 0;
}

.profile-card {
  position: relative;
  width: 100%;
  height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.main-profile-wrapper {
  z-index: 1;
  width: 70%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  position: absolute;
  right: 0;
  bottom: 31%;
}

.main-profile-wrapper picture {
  display: block;
}

.profile-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}

.main-title-wrapper {
  position: relative;
  padding-left: 80px;
  max-width: 540px;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--hero-green);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.profile-title-wrap {
  position: relative;
}

.profile-title-wrap::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: 0;
  width: 12px;
  height: 150px;
  background: var(--hero-green);
}

.profile-title-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 12px;
  background: var(--hero-green);
}

.profile-name {
  margin: 0 0 -14px;
  font-family: Archivo, sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--midnight-blue);
}

.content-column {
  flex: 1;
  max-width: 940px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.home-page {
  scroll-snap-type: y mandatory;
}

.home-page .content-column {
  gap: 0;
}

.home-page .content-column > section {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.intro-block {
  min-height: 95vh;
  display: flex;
  align-items: flex-end;
}

.home-page .intro-block {
  min-height: 100vh;
  justify-content: flex-end;
  padding-bottom: 2rem;
}

.intro-block p {
  margin: 0;
  color: var(--midnight-blue);
  font-size: clamp(1.7rem, 2.2vw, 2rem);
  line-height: 1.25;
}

.intro-block strong {
  color: var(--midnight-blue);
  font-weight: 700;
}

.content-section {
  margin-top: 120px;
  scroll-margin-top: 1.2rem;
}

.home-page .content-section {
  margin-top: 0;
  padding: 3.25rem 0 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-section h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 16px 0 20px 16px;
  color: var(--hero-green);
  font-family: Archivo, sans-serif;
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.content-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 4px;
  background: var(--hero-green);
}

.content-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--hero-green);
}

.content-section p {
  margin: 0;
  font-size: clamp(1.15rem, 1.65vw, 1.35rem);
  line-height: 1.55;
  color: var(--midnight-blue);
}

.content-section p + p {
  margin-top: 1rem;
}

.accordion-list {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-item {
  border-top: 1px solid var(--line);
}

.detail-item:first-child {
  border-top: 0;
}

.detail-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: Archivo, sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--midnight-blue);
}

.detail-item summary::-webkit-details-marker {
  display: none;
}

.detail-chevron {
  font-size: 0.88rem;
  color: var(--hero-green);
  transition: transform 180ms ease;
}

.detail-item[open] .detail-chevron {
  transform: rotate(180deg);
}

.detail-item p {
  margin: 0;
  padding: 0 0 1rem;
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.6;
  color: var(--midnight-blue);
}

.role-card-grid,
.home-project-grid {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.role-card,
.home-project-card {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  text-decoration: none;
  color: var(--midnight-blue);
  background: none;
  transition: color 140ms ease;
}

.role-card h3,
.home-project-card h3 {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 500;
  color: var(--midnight-blue);
}

.role-card p,
.home-project-card p {
  margin-top: 0.55rem;
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.55;
}

.role-card-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hero-green);
}

.role-card:hover,
.home-project-card:hover {
  color: var(--hero-green);
}

.projects-link-row {
  margin-top: 1rem;
}

.projects-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--hero-green);
  padding: 0;
  font-weight: 600;
  border: 0;
  min-height: auto;
}

.projects-link:hover {
  color: var(--midnight-blue);
}

.contact-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.8rem;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--hero-green);
  border: 0;
  background: none;
  min-height: 0;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 140ms ease;
}

.contact-link .arrow {
  color: inherit;
  font-size: 0.95rem;
}

.contact-link:hover {
  color: var(--midnight-blue);
}

#book-title a,
#spotify a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

body.role-page {
  background: #fdfdfc;
}

.role-shell {
  width: min(1100px, calc(100% - 2.6rem));
  margin: 1.5rem auto 3rem;
}

.role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.role-home-link {
  font-family: Archivo, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--midnight-blue);
  text-decoration: none;
}

.role-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.role-nav a {
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--midnight-blue);
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 140ms ease, color 140ms ease;
}

.role-nav a:hover,
.role-nav a[aria-current="page"] {
  border-color: var(--hero-green);
  color: var(--hero-green);
}

.role-main {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.role-hero {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(1rem, 2.2vw, 1.6rem);
}

.role-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f6e5f;
  font-weight: 700;
}

.role-hero h1 {
  margin: 0.3rem 0 0;
  font-family: Archivo, sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
  font-weight: 500;
  color: var(--midnight-blue);
}

.role-hero p {
  margin: 0.95rem 0 0;
  font-size: 1.06rem;
  color: var(--midnight-blue);
  max-width: 64ch;
}

.role-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.role-action {
  min-height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  text-decoration: none;
  padding: 0 0.9rem;
  color: var(--midnight-blue);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 140ms ease, color 140ms ease;
}

.role-action:hover {
  border-color: var(--hero-green);
  color: var(--hero-green);
}

.role-section {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(1rem, 2.2vw, 1.6rem);
}

.role-section h2 {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  color: var(--hero-green);
  font-weight: 500;
}

.role-section p {
  margin: 0.75rem 0 0;
  color: var(--midnight-blue);
}

.role-list {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--midnight-blue);
}

.role-list li + li {
  margin-top: 0.45rem;
}

.project-grid-subpage {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.project-card-subpage {
  border: 1px solid var(--line);
  background: #fefefe;
  padding: 0.95rem;
}

.project-card-subpage h3 {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
}

.project-card-subpage p {
  margin: 0.55rem 0 0;
  font-size: 0.94rem;
}

@media screen and (max-width: 991px) {
  .page-shell {
    display: block;
    width: min(1740px, 92%);
    padding-top: 128px;
  }

  .profile-column {
    width: 100%;
    height: auto;
    position: static;
  }

  .profile-card {
    width: 100%;
    height: auto;
    position: static;
    display: block;
  }

  .main-profile-wrapper {
    z-index: 0;
    width: 70%;
    max-width: none;
    margin-left: 10%;
    position: relative;
    right: auto;
    bottom: auto;
  }

  .main-title-wrapper {
    padding-left: 80px;
    margin-top: 2rem;
  }

  .profile-title-wrap::before {
    height: 100%;
  }

  .profile-name {
    margin-bottom: 0;
    font-size: 64px;
  }

  .content-column {
    max-width: none;
  }

  .home-page {
    scroll-snap-type: none;
  }

  .home-page .content-column > section {
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .home-page .intro-block {
    padding-bottom: 0;
  }

  .home-page .content-section {
    padding: 0;
    display: block;
  }

  .intro-block {
    min-height: auto;
    margin-top: 2rem;
  }

  .intro-block p {
    font-size: 28px;
  }

  .content-section {
    margin-top: 96px;
  }

  .content-section p {
    font-size: 1.2rem;
  }

  .detail-item summary {
    font-size: 1.25rem;
  }

  .role-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .role-shell {
    width: calc(100% - 2rem);
  }

  .project-grid-subpage {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  .page-shell {
    width: 95%;
    padding-top: 96px;
  }

  .main-profile-wrapper {
    width: 100%;
    margin-left: 0;
  }

  .main-title-wrapper {
    padding-left: 64px;
  }

  .profile-title-wrap::before {
    left: -64px;
    width: 8px;
    height: 100%;
  }

  .profile-title-wrap::after {
    height: 8px;
  }

  .profile-name {
    font-size: 48px;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .intro-block p {
    font-size: 22px;
  }

  .content-section {
    margin-top: 72px;
  }

  .content-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1.2rem;
  }

  .content-section p {
    font-size: 1.08rem;
  }

  .detail-item summary {
    font-size: 1.13rem;
  }

  .detail-item p {
    font-size: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 479px) {
  .page-shell {
    width: calc(100% - 1rem);
    padding-top: 64px;
  }

  .main-title-wrapper {
    padding-left: 56px;
  }

  .profile-title-wrap::before {
    left: -56px;
  }

  .profile-name {
    font-size: 44px;
  }

  .intro-block p {
    font-size: 22px;
  }

  .content-section h2 {
    font-size: 1.95rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .role-nav {
    width: 100%;
  }

  .role-nav a {
    flex: 1 1 auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
