:root {
  --bg: #f5ecde;
  --paper: rgba(255, 251, 244, 0.84);
  --paper-strong: #fff7eb;
  --ink: #181514;
  --muted: #625950;
  --line: rgba(24, 21, 20, 0.1);
  --brand: #c95031;
  --brand-2: #1f766c;
  --brand-3: #cb9c39;
  --deep: #151c21;
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 24px 90px rgba(63, 40, 14, 0.12);
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(201, 80, 49, 0.16), transparent 24%),
    radial-gradient(circle at 100% 20%, rgba(31, 118, 108, 0.14), transparent 24%),
    linear-gradient(180deg, #fbf7ef 0%, #f2e7d5 55%, #ebdeca 100%);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 30px 30px;
}

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

button {
  border: 0;
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(250, 242, 230, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(31, 25, 17, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-3), var(--brand-2));
  box-shadow: 0 0 0 7px rgba(201, 80, 49, 0.1);
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0.12em;
}

.site-nav {
  display: inline-flex;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  border-color: rgba(24, 21, 20, 0.36);
}

.nav-cta {
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: var(--deep);
  color: #fbf2e5;
  transition: transform 180ms ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
}

.section {
  position: relative;
  padding: 3rem 0 5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  gap: 1rem;
  align-items: stretch;
  padding-top: 4.5rem;
}

.hero-copy,
.hero-panel,
.about-card,
.skill-card,
.proof-card,
.gallery-card,
.work-card,
.contact-card,
.work-filters,
.notes-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.about-card,
.contact-card,
.notes-card,
.work-filters {
  padding: 1.4rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.48rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 21, 20, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.profile-avatar {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(24, 21, 20, 0.12);
}

.profile-name {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.profile-role {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.eyebrow,
.card-kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.hero h1,
.hero-panel h2,
.section-heading h2,
.about-card h3,
.skill-card h3,
.contact-card h2,
.notes-card h2 {
  margin: 0;
  font-family: "Baskerville", "Songti SC", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.5rem);
  line-height: 0.92;
  max-width: none;
  white-space: nowrap;
}

.hero-text,
.hero-panel p,
.section-lead,
.about-card li,
.skill-card p,
.proof-card p,
.work-card p,
.contact-card p,
.notes-card p,
.site-footer span {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}

.hero-tags,
.hero-list,
.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-tags {
  margin-top: 1.35rem;
}

.hero-tags span,
.hero-list span,
.contact-tags span {
  padding: 0.56rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 21, 20, 0.08);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(19, 26, 31, 0.98), rgba(26, 36, 41, 0.98));
}

.hero-panel .eyebrow,
.hero-panel h2,
.hero-panel p,
.hero-panel span {
  color: rgba(249, 241, 231, 0.9);
}

.hero-panel h2 {
  margin-top: 0.45rem;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 0.96;
}

.hero-list {
  margin-top: 1rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.4rem;
}

.section-heading h2,
.notes-card h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.96;
  max-width: 12ch;
}

.section-lead {
  max-width: 36rem;
}

.about-grid,
.skill-grid,
.proof-grid,
.work-grid,
.notes-grid {
  display: grid;
  gap: 1rem;
}

.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.about-card h3 {
  margin-top: 0.6rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 0.98;
}

.about-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.about-card li + li {
  margin-top: 0.5rem;
}

.about-card.strong {
  background:
    radial-gradient(circle at top right, rgba(31, 118, 108, 0.12), transparent 24%),
    var(--paper);
}

.about-card.weak {
  background:
    radial-gradient(circle at top right, rgba(201, 80, 49, 0.12), transparent 24%),
    var(--paper);
}

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

.skill-card {
  padding: 1.2rem;
}

.skill-card h3 {
  font-size: 1.36rem;
  line-height: 1.3;
}

.skill-card p {
  margin-top: 0.8rem;
}

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

.proof-card {
  padding: 1.25rem;
}

.proof-card strong {
  display: block;
  font-family: "Baskerville", "Songti SC", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  color: var(--brand);
}

.proof-card span {
  display: block;
  margin-top: 0.5rem;
  font-weight: 700;
}

.proof-card p {
  margin-top: 0.75rem;
}

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

.gallery-card {
  padding: 1.15rem;
  background:
    radial-gradient(circle at top right, rgba(31, 118, 108, 0.08), transparent 25%),
    var(--paper);
}

.gallery-card span {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  font-weight: 700;
}

.gallery-card h3 {
  margin: 0.75rem 0 0;
  font-size: 1.28rem;
  line-height: 1.3;
}

.gallery-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.76;
}

.gallery-links {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.gallery-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.filter-button {
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(24, 21, 20, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  cursor: pointer;
  transition: all 180ms ease;
}

.filter-button.is-active {
  background: var(--deep);
  color: #fbf3e6;
  border-color: var(--deep);
}

.work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.work-card {
  padding: 1.2rem;
}

.work-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.work-type {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  font-weight: 700;
}

.work-card h3 {
  margin: 0.8rem 0 0;
  font-size: 1.35rem;
  line-height: 1.35;
}

.work-card p {
  margin-top: 0.8rem;
}

.work-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--brand);
  font-weight: 700;
}

.empty-state {
  margin-top: 1rem;
  color: var(--muted);
}

.contact-card {
  background:
    radial-gradient(circle at top right, rgba(203, 156, 57, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 249, 238, 0.95), rgba(249, 241, 227, 0.93));
}

.contact-card h2 {
  margin-top: 0.55rem;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 0.95;
  max-width: 12ch;
}

.contact-card p {
  margin-top: 0.9rem;
  max-width: 40rem;
}

.contact-tags {
  margin-top: 1.2rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2.4rem;
  color: var(--muted);
  font-size: 0.94rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .skill-grid,
  .proof-grid,
  .gallery-grid,
  .work-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
  }

  .hero,
  .section-heading,
  .site-footer,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .section-heading,
  .site-footer,
  .about-grid {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .site-footer {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero h1 {
    white-space: normal;
    line-height: 1.02;
  }

  .section {
    padding: 2.4rem 0 4rem;
  }

  .hero-copy,
  .hero-panel,
  .about-card,
  .skill-card,
  .proof-card,
  .gallery-card,
  .work-card,
  .work-filters,
  .contact-card {
    padding: 1.1rem;
  }
}
