:root {
  color-scheme: light;
  --ink: #211f1b;
  --muted: #716b62;
  --paper: #f7f2ea;
  --paper-deep: #e7dccf;
  --line: rgba(49, 43, 34, 0.16);
  --white: rgba(255, 255, 255, 0.78);
  --night: #16212a;
  --teal: #1e7d76;
  --rose: #b76478;
  --gold: #b98337;
  --blue: #496b9a;
  --shadow: 0 24px 80px rgba(35, 31, 25, 0.16);
  font-family: ui-serif, "New York", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(247, 242, 234, 0.96), rgba(236, 229, 218, 0.96)),
    var(--paper);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 56px);
  color: rgba(33, 31, 27, 0.86);
  background: rgba(247, 242, 234, 0.82);
  border-bottom: 1px solid rgba(49, 43, 34, 0.08);
  backdrop-filter: blur(18px);
}

.brand-mark,
.nav-links,
.hero-actions,
.work-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 10px;
  min-height: 38px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-star {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--night);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(22, 33, 42, 0.24);
}

.nav-links {
  gap: clamp(12px, 3vw, 28px);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 650;
}

.nav-links a {
  padding: 8px 0;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  padding: 128px clamp(20px, 6vw, 72px) 88px;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 16vh;
  content: "";
  background: linear-gradient(180deg, rgba(247, 242, 234, 0), rgba(247, 242, 234, 0.72));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow,
.work-kicker {
  margin: 0 0 14px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.2;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.8rem, 13vw, 11rem);
  font-weight: 560;
  line-height: 0.88;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 30px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  line-height: 1.78;
  color: #4d463d;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.profile-links {
  display: grid;
  max-width: 560px;
  gap: 10px;
  margin-top: 28px;
}

.profile-row {
  display: grid;
  min-height: 58px;
  grid-template-columns: 74px minmax(92px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(49, 43, 34, 0.12);
  border-radius: 8px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.profile-row span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 760;
}

.profile-row strong {
  font-size: 1rem;
  font-weight: 780;
}

.profile-row small {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.94rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  font-weight: 720;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--night);
  border-color: var(--night);
  box-shadow: 0 16px 38px rgba(22, 33, 42, 0.24);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.56);
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: min(48vw, 640px);
  aspect-ratio: 1;
  justify-self: end;
}

.hero-visual::before {
  position: absolute;
  inset: 18%;
  content: "";
  background:
    linear-gradient(150deg, rgba(30, 125, 118, 0.16), rgba(183, 100, 120, 0.1)),
    rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(49, 43, 34, 0.12);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.orbit-line {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(73, 107, 154, 0.26);
  border-radius: 50%;
  transform: rotate(-22deg) scaleX(1.18);
}

.orbit-line-b {
  inset: 22%;
  border-color: rgba(183, 100, 120, 0.24);
  transform: rotate(31deg) scaleX(1.28);
}

.hero-token {
  position: absolute;
  width: 31%;
  height: 31%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28%;
  box-shadow: 0 26px 70px rgba(31, 29, 24, 0.22);
}

.hero-token-polaris {
  top: 16%;
  right: 18%;
}

.hero-token-mht {
  bottom: 18%;
  left: 17%;
}

.signal {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.signal-a {
  top: 31%;
  left: 24%;
  background: var(--gold);
}

.signal-b {
  right: 25%;
  bottom: 30%;
  background: var(--teal);
}

.works-section {
  padding: 44px clamp(20px, 6vw, 72px) 96px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 540;
  line-height: 1.02;
  letter-spacing: 0;
}

.work-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  display: grid;
  min-height: 360px;
  overflow: hidden;
  grid-template-columns: minmax(168px, 0.42fr) minmax(0, 0.58fr);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.work-card-polaris {
  border-top-color: rgba(73, 107, 154, 0.42);
}

.work-card-mht {
  border-top-color: rgba(183, 100, 120, 0.46);
}

.work-media {
  display: grid;
  min-height: 100%;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(22, 33, 42, 0.08), rgba(255, 255, 255, 0.18)),
    var(--paper-deep);
}

.work-card-mht .work-media {
  background:
    linear-gradient(145deg, rgba(183, 100, 120, 0.12), rgba(255, 255, 255, 0.2)),
    #efe4e5;
}

.work-media img {
  width: min(58%, 180px);
  max-width: 180px;
  border-radius: 24%;
  box-shadow: 0 18px 46px rgba(35, 31, 25, 0.2);
}

.work-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
}

.work-body h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: 0;
}

.work-body p:not(.work-kicker) {
  margin: 22px 0 0;
  font-size: 1.02rem;
  line-height: 1.78;
  color: #5d554a;
}

.work-actions {
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 730;
}

.text-link {
  color: var(--night);
  border-bottom: 1px solid rgba(22, 33, 42, 0.28);
}

.text-link.muted {
  color: var(--muted);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 72px) 34px;
  color: var(--muted);
  border-top: 1px solid rgba(49, 43, 34, 0.1);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    padding: 14px 18px;
  }

  .nav-links {
    gap: 14px;
  }

  .hero {
    min-height: auto;
    padding: 64px 20px 62px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
    width: min(86vw, 440px);
    margin: 0 auto 28px;
    justify-self: center;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 21vw, 7.2rem);
  }

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

@media (max-width: 620px) {
  .brand-mark span:last-child {
    display: none;
  }

  .nav-links {
    font-size: 0.8rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }

  .button {
    width: 100%;
  }

  .work-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .work-media {
    min-height: 220px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-token-polaris {
    animation: drift-a 8s ease-in-out infinite;
  }

  .hero-token-mht {
    animation: drift-b 9s ease-in-out infinite;
  }
}

@keyframes drift-a {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes drift-b {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(12px) rotate(-2deg);
  }
}
