:root {
  --page-bg: #f5f1ea;
  --page-glow: rgba(213, 229, 219, 0.65);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-muted: #f0ebe2;
  --text-main: #17302a;
  --text-soft: #5e736c;
  --line: rgba(23, 48, 42, 0.12);
  --accent: #1f6a5a;
  --accent-soft: rgba(31, 106, 90, 0.12);
  --shadow-soft: 0 18px 40px rgba(23, 48, 42, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --hero-top-height: 360px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, var(--page-glow), transparent 28rem),
    linear-gradient(180deg, #fbf9f5 0%, var(--page-bg) 100%);
  color: var(--text-main);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.container {
  width: min(1120px, calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
  background: rgba(251, 249, 245, 0.78);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 249, 245, 0.94);
  border-color: var(--line);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

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

.site-nav__link {
  color: var(--text-soft);
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav__link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.72);
}

.site-nav__link--button {
  color: var(--surface-strong);
  background: var(--text-main);
}

.site-nav__link--button:hover {
  color: var(--surface-strong);
  background: var(--accent);
  transform: translateY(-1px);
}

.hero-section {
  padding: 3.25rem 0 2.25rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.contact-card,
.product-card,
.pillar-card,
.role-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  display: grid;
  gap: 1rem;
  height: 100%;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-radius: var(--radius-xl);
}

.hero-copy__top {
  display: grid;
  grid-template-columns: 104px minmax(0, 1.35fr);
  gap: 1rem;
  align-items: start;
}

.contact-card,
.contact-list {
  display: grid;
  gap: 1rem;
}

.hero-copy__photo {
  justify-self: start;
  width: 104px;
}

.hero-copy__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(23, 48, 42, 0.08);
}

.section-kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title,
.section-title,
.experience-group__title {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.04em;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.2rem, 1.9vw, 1.9rem);
  line-height: 1.02;
}

.hero-lead {
  max-width: 100%;
  margin: 0;
  font-size: 1rem;
  color: var(--text-main);
}

.hero-text {
  max-width: 100%;
  margin: 0;
  color: var(--text-soft);
}

.hero-sidebar {
  display: flex;
  height: 100%;
}

.contact-card {
  height: 100%;
  width: 100%;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
}

.contact-card__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
  color: var(--text-soft);
}

.contact-list__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
}

.contact-list a:hover {
  color: var(--accent);
}

.pillar-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pillar-card {
  padding: 1.4rem 1.35rem;
  border-radius: var(--radius-lg);
}

.pillar-card__period,
.experience-group__period,
.role-card__meta {
  margin: 0;
  color: var(--text-soft);
}

.pillar-card__period,
.experience-group__period {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pillar-card__title {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.pillar-card__text {
  margin: 0;
  color: var(--text-soft);
}

.experience-section {
  padding: 1rem 0 4rem;
}

.products-section {
  padding: 3rem 0 4rem;
}

.products-header {
  max-width: 52rem;
  margin-bottom: 1.75rem;
}

.products-intro {
  margin: 1rem 0 0;
  color: var(--text-soft);
}

.product-list {
  display: grid;
  gap: 1rem;
}

.product-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
}

.product-card__aside {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.product-card__icon {
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(23, 48, 42, 0.08);
  background: var(--surface-strong);
}

.product-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body,
.product-card__header {
  display: grid;
  gap: 0.45rem;
}

.product-card__title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.product-card__description {
  margin: 0.15rem 0 0;
  color: var(--text-soft);
}

.product-card__meta,
.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.product-card__meta--aside {
  flex-direction: column;
  align-items: stretch;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.product-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 1.65rem;
  border-radius: 999px;
  background: var(--text-main);
  color: var(--surface-strong);
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.product-link-button:hover {
  background: var(--accent);
  color: var(--surface-strong);
  transform: translateY(-1px);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.experience-group + .experience-group {
  margin-top: 2.4rem;
}

.experience-group__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.experience-group__title {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.role-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.role-card__head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.role-card__logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0.7rem;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid rgba(23, 48, 42, 0.08);
}

.role-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.role-card__logo--icon img {
  width: 76%;
  height: 76%;
}

.role-card__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
}

.role-card__company {
  margin: 0.2rem 0;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.role-card__meta {
  font-size: 0.92rem;
}

.role-card__list {
  margin: 1.2rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
}

.role-card__list li + li {
  margin-top: 0.7rem;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer__inner {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.site-footer__copy {
  margin: 0;
  color: var(--text-soft);
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--text-main);
  font-size: 1.1rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.site-footer__link:hover {
  transform: translateY(-1px);
  background: var(--accent);
  color: var(--surface-strong);
}

@media (max-width: 991px) {
  .hero-panel,
  .pillar-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .experience-group__header,
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.85rem 0;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav__link {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero-section {
    padding-top: 2rem;
  }

  .hero-copy__top {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .hero-copy__photo {
    justify-self: start;
    width: 92px;
  }

  .hero-copy,
  .contact-card,
  .product-card,
  .pillar-card,
  .role-card {
    padding: 1.25rem;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card__aside {
    justify-items: start;
  }

  .product-card__meta--aside {
    flex-direction: row;
  }

  .product-card__icon {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }

  .role-card__head {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .role-card__logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
}
