:root {
  --cream: #faf6ef;
  --panel: #efe8d9;
  --ink: #2a2420;
  --ink-soft: #5c5347;
  --gold: #a8804f;
  --gold-soft: #c6a374;
  --teal: #375e56;
  --hairline: #dcd0b8;
  --white: #ffffff;
  --max: 1180px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.serif {
  font-family: Fraunces, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero {
  position: relative;
  padding: 56px 0 80px;
  background:
    radial-gradient(circle at 85% 8%, rgba(168, 128, 79, 0.1), transparent 45%),
    radial-gradient(circle at 8% 92%, rgba(55, 94, 86, 0.08), transparent 40%),
    var(--cream);
  border-bottom: 1px solid var(--hairline);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px;
  gap: 16px;
  flex-wrap: wrap;
}

.mark {
  font-family: Fraunces, serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mark .dot,
.hero-nav .dot {
  color: var(--gold);
}

.hero-nav {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-nav a:hover {
  color: var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.06;
  margin: 18px 0 22px;
}

.hero h1 .amp {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.hero p.tagline,
.hero .tagline {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 36px;
}

.stat-row {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.stat-row .stat {
  border-left: 1px solid var(--hairline);
  padding-left: 16px;
}

.stat-row .stat b {
  display: block;
  font-family: Fraunces, serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
}

.stat-row .stat span {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.duo-photo {
  position: relative;
  height: 380px;
}

.duo-photo .circle {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--cream);
  box-shadow: 0 18px 40px rgba(42, 36, 32, 0.16);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}

.duo-photo .circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo-photo .circle .initials {
  font-family: Fraunces, serif;
  font-size: 48px;
  color: var(--gold);
}

.duo-photo .c1 {
  top: 10px;
  left: 60px;
  z-index: 2;
}

.duo-photo .c2 {
  top: 110px;
  left: 230px;
  z-index: 1;
}

.duo-photo .ring {
  position: absolute;
  top: 60px;
  left: 110px;
  width: 370px;
  height: 250px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  opacity: 0.5;
}

.venn-label {
  position: absolute;
  bottom: 10px;
  left: 80px;
  font-family: Fraunces, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--teal);
  background: var(--cream);
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
}

.mission {
  padding: 56px 0;
  background: var(--panel);
  border-bottom: 1px solid var(--hairline);
}

.mission p,
.mission .rich {
  font-family: Fraunces, serif;
  font-size: clamp(19px, 2.3vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  color: var(--ink);
}

.mission p i,
.mission .rich i,
.mission .rich em {
  color: var(--gold);
  font-style: italic;
}

.rich p { margin: 0 0 0.7em; }
.rich p:last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin: 0.4em 0 0.7em 1.2em; }
.rich a { color: var(--gold); }

.traj {
  padding: 88px 0;
  border-bottom: 1px solid var(--hairline);
}

.traj-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.traj-head h2 {
  font-size: 32px;
}

.traj-head p,
.traj-head .rich {
  color: var(--ink-soft);
  max-width: 380px;
  font-size: 14px;
}

.traj-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.traj-col h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: Inter, sans-serif;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.tline-scroll {
  max-height: 28.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-soft) transparent;
}

.prof-card .tline-scroll {
  max-height: 36rem;
  margin-bottom: 22px;
}

.prof-card .titem::before {
  background: var(--cream);
}

.tline-scroll::-webkit-scrollbar {
  width: 8px;
}

.tline-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.tline-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-soft);
  border-radius: 8px;
}

.tline {
  position: relative;
  padding-left: 26px;
  padding-right: 8px;
  min-height: 100%;
}

.tline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--hairline);
}

.titem {
  position: relative;
  padding-bottom: 28px;
}

.titem:last-child {
  padding-bottom: 0;
}

.titem::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--gold);
}

.titem b {
  display: block;
  font-family: Fraunces, serif;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 3px;
}

.titem .yr {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--teal);
  font-weight: 600;
}

.titem p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.titem-detail {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.profiles {
  padding: 88px 0;
  background: var(--panel);
  border-bottom: 1px solid var(--hairline);
}

.profiles h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 8px;
}

.profiles > .wrap > p,
.profiles > .wrap > #perfis-lead {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 56px;
}

.prof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
}

.prof-card {
  padding: 44px 40px;
  position: relative;
}

.prof-card + .prof-card {
  border-left: 1px solid var(--hairline);
}

.prof-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.prof-top img,
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-soft);
  flex: none;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  font-family: Fraunces, serif;
  color: var(--gold);
  font-size: 20px;
}

.prof-top h3 {
  font-size: 21px;
}

.prof-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.prof-socials .social {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  color: var(--teal);
}

.prof-socials .social span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.prof-socials .social:hover {
  background: var(--panel);
  border-color: var(--gold-soft);
  color: var(--gold);
}

.prof-role {
  display: block;
  font-size: 12.5px;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-top: 8px;
}

.prof-card p.bio,
.prof-card .bio {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.comp-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 12px;
}

.prof-card .muted {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.comp-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  list-style: none;
  margin-bottom: 22px;
}

.comp-list li {
  font-size: 13px;
  color: var(--ink);
  position: relative;
  padding-left: 14px;
}

.comp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  background: var(--white);
  font-size: 12px;
  color: var(--teal);
  border-radius: 20px;
}

.social svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.social:hover {
  border-color: var(--gold-soft);
  color: var(--gold);
}

.mini-timeline {
  list-style: none;
}

.mini-timeline li {
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
}

.mini-timeline time {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--teal);
  font-weight: 600;
}

.mini-timeline strong {
  display: block;
  font-family: Fraunces, serif;
  font-weight: 500;
}

.mini-timeline span {
  color: var(--ink-soft);
}

.projects {
  padding: 88px 0;
}

.projects h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.projects > .wrap > p.lead,
.projects > .wrap > .lead {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 28px;
  max-width: 520px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter {
  appearance: none;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 14px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 20px;
}

.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.proj-card {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 28px 24px;
  background: var(--white);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(42, 36, 32, 0.09);
  border-color: var(--gold-soft);
}

.proj-card.is-hidden {
  display: none;
}

.proj-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(55, 94, 86, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-weight: 600;
}

.proj-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.proj-card p,
.proj-card .rich {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.proj-card .proj-stack {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #9a9084;
  margin: -6px 0 16px;
  line-height: 1.5;
}

.proj-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}

.proj-owner .badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-family: Inter, sans-serif;
}

.proj-owner .badge.teal {
  background: var(--teal);
}

.proj-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.proj-links:empty { display: none; }

.proj-links .social {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  color: var(--teal);
  background: var(--white);
}

.proj-links .social span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.proj-links .social:hover {
  background: var(--panel);
  border-color: var(--gold-soft);
  color: var(--gold);
}

.stack {
  padding: 64px 0;
  background: var(--ink);
  color: var(--cream);
}

.stack h2 {
  color: var(--cream);
  font-size: 26px;
  text-align: center;
  margin-bottom: 40px;
}

.stack-row {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stack-item {
  padding: 14px 26px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #d9d2c5;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stack-item:last-child {
  border-right: none;
}

.stack-item b {
  color: var(--gold-soft);
  font-weight: 600;
}

.cta {
  padding: 100px 0;
  text-align: center;
  background: var(--panel);
  border-bottom: 1px solid var(--hairline);
}

.cta .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.cta h2,
.cta .cta-title {
  font-family: Fraunces, serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  max-width: 720px;
  margin: 0 auto 20px;
}

.cta p,
.cta #cta-lead {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 34px;
  font-size: 15px;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 30px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn.primary {
  background: var(--ink);
  color: var(--cream);
}

.btn.primary:hover {
  background: var(--gold);
}

.btn.outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn.outline:hover {
  background: var(--ink);
  color: var(--cream);
}

footer {
  padding: 56px 0 40px;
  background: var(--cream);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.foot-grid h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.foot-grid p,
.foot-grid a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.foot-grid a:hover {
  color: var(--gold);
}

.foot-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .wrap {
    padding: 0 24px;
  }

  .hero-grid,
  .traj-cols,
  .prof-grid,
  .proj-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .duo-photo {
    height: 300px;
    margin-top: 20px;
  }

  .duo-photo .c1 {
    left: 20px;
    width: 200px;
    height: 200px;
  }

  .duo-photo .c2 {
    left: 140px;
    width: 200px;
    height: 200px;
  }

  .duo-photo .ring {
    left: 40px;
    width: 280px;
    height: 200px;
  }

  .prof-card + .prof-card {
    border-left: none;
    border-top: 1px solid var(--hairline);
  }

  .stack-item {
    border-right: none;
    padding: 8px 18px;
  }

  .comp-list {
    grid-template-columns: 1fr;
  }
}
