:root {
  --ink: #1e1e1e;
  --aubergine: #3f244a;
  --plum: #6b3f7a;
  --purple: #9a63b5;
  --lavender: #d7c3e3;
  --paper: #f7f2f8;
  --white: #ffffff;
  --line: #dacfe0;
  --blue: #466ffd;
  --yellow: #fdcc0f;
  --red: #b73932;
  --green: #8fc261;
  --radius: 28px;
  --shadow: 0 20px 55px rgba(63, 36, 74, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; background: var(--ink); color: white; padding: .8rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.site-header {
  min-height: 92px;
  max-width: 1240px;
  margin: auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 720; letter-spacing: -.02em; }
.monogram { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: Georgia, serif; font-size: 21px; letter-spacing: -.16em; padding-right: .12em; }
nav { display: flex; gap: 28px; font-size: .94rem; font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover { color: var(--plum); }

main { overflow: hidden; }
.hero {
  max-width: 1240px;
  min-height: 650px;
  margin: auto;
  padding: 68px 32px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(330px, .73fr);
  align-items: center;
  gap: 72px;
}
.eyebrow { margin: 0 0 14px; color: var(--plum); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.045em; line-height: 1.03; }
h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(3.15rem, 5.2vw, 5rem); font-weight: 720; }
h2 { margin-bottom: 20px; font-size: clamp(2.2rem, 4.5vw, 4.2rem); }
h3 { margin-bottom: 18px; font-size: clamp(2rem, 3.3vw, 3.25rem); }
.lead { max-width: 680px; margin: 0 0 34px; color: #514756; font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 13px 22px; text-decoration: none; font-weight: 750; }
.primary { background: var(--plum); color: white; }
.primary:hover { background: var(--aubergine); }
.text-button { border: 1px solid var(--line); background: rgba(255,255,255,.68); }
.portrait-wrap { position: relative; }
.portrait-wrap::before { content: ""; position: absolute; inset: -28px 26px 54px -28px; border: 1px solid var(--lavender); border-radius: 48% 52% 44% 56%; transform: rotate(-5deg); }
.portrait-frame { position: relative; aspect-ratio: 1 / 1.13; overflow: hidden; border-radius: 46% 46% 28px 28px; background: var(--white); box-shadow: var(--shadow); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.portrait-note { position: relative; width: max-content; max-width: 90%; margin: -22px 0 0 auto; padding: 12px 18px; background: var(--aubergine); color: white; border-radius: 999px; font-weight: 700; }

.section { max-width: 1240px; margin: auto; padding: 100px 32px; }
.section-heading { max-width: 820px; margin-bottom: 48px; }
.project-card { position: relative; min-height: 340px; padding: 42px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.project-card + .project-card { margin-top: 24px; }
.project-card p { max-width: 680px; font-size: 1.07rem; }
.status { width: max-content; margin: 0 0 28px; padding: 7px 11px; border-radius: 999px; font-size: .72rem !important; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.active { background: #e8edff; color: #294ac4; }
.developing { background: rgba(255,255,255,.16); color: white; }
.myopo-card { background: white; border: 1px solid #dbe2fb; }
.project-content { position: relative; z-index: 1; }
.myopo-logo { width: min(520px, 100%); margin-bottom: 24px; }
.myopo-button { margin-top: 12px; background: var(--blue); color: white; }
.consulting-card { background: var(--aubergine); color: white; }
.consulting-card > div { position: relative; z-index: 1; max-width: 760px; }
.large-mark { position: absolute; right: 34px; bottom: -70px; color: rgba(255,255,255,.08); font-family: Georgia, serif; font-size: 15rem; line-height: 1; letter-spacing: -.14em; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.about-copy { border-left: 1px solid var(--lavender); padding-left: 46px; color: #514756; font-size: 1.08rem; }
.about-copy p:first-child { margin-top: 0; }
.contact { max-width: 1176px; margin: 30px auto 90px; padding: 54px 58px; background: var(--plum); color: white; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.contact h2 { margin-bottom: 10px; font-size: clamp(2.2rem, 4vw, 4rem); }
.contact p { margin-bottom: 0; }
.light { color: var(--lavender); }
.light-button { flex: 0 0 auto; background: white; color: var(--aubergine); }

footer { max-width: 1240px; margin: auto; padding: 28px 32px 42px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: #635769; font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }

.legal-header { max-width: 940px; margin: auto; padding: 24px 28px; }
.legal-main { max-width: 940px; min-height: 65vh; margin: 30px auto 70px; padding: 48px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-main h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.legal-main h2 { margin-top: 38px; font-size: 1.55rem; letter-spacing: -.02em; }
.legal-main li + li { margin-top: 8px; }
.notice { padding: 18px 20px; background: var(--paper); border-left: 4px solid var(--plum); }
.back { font-weight: 750; text-decoration: none; }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; padding: 16px 20px; }
  nav { gap: 14px; font-size: .84rem; }
  nav a:nth-child(2) { display: none; }
  .hero { min-height: auto; padding: 38px 20px 52px; grid-template-columns: 1fr; gap: 34px; }
  h1 { font-size: clamp(2.55rem, 10vw, 3.65rem); }
  .portrait-wrap { max-width: 470px; }
  .section { padding: 58px 20px; }
  .section-heading { margin-bottom: 32px; }
  .project-card { padding: 28px; }
  .project-card + .project-card { margin-top: 18px; }
  .about { grid-template-columns: 1fr; gap: 18px; }
  .about-copy { padding-left: 24px; }
  .contact { margin: 8px 20px 46px; padding: 34px 28px; align-items: flex-start; flex-direction: column; }
  footer { margin: 0 20px; padding-inline: 0; flex-direction: column; }
  .legal-main { margin: 10px 14px 50px; padding: 28px 22px; }
}

@media (max-width: 520px) {
  .wordmark > span:last-child { display: none; }
  nav { gap: 12px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .project-card { min-height: 0; }
}

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