:root {
  --bg: #f4ede2;
  --bg-strong: #efe3d5;
  --surface: rgba(255, 250, 244, 0.72);
  --surface-strong: #fff8ee;
  --ink: #17120c;
  --muted: #5d554a;
  --soft: rgba(93, 85, 74, 0.72);
  --line: rgba(28, 19, 12, 0.12);
  --accent: #d95f33;
  --accent-deep: #a63e19;
  --accent-teal: #0f7f73;
  --shadow: 0 24px 72px rgba(46, 28, 11, 0.12);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --font-sans: "Avenir Next", "PingFang SC", "Source Han Sans SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Songti SC", "Noto Serif SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(217, 95, 51, 0.18), transparent 30%),
    radial-gradient(circle at 85% 16%, rgba(15, 127, 115, 0.16), transparent 24%),
    linear-gradient(180deg, #f8f2ea 0%, #f2eadf 42%, #f6efe6 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.55;
}

body::before {
  top: 78px;
  right: -84px;
  width: 260px;
  height: 260px;
  background: rgba(217, 95, 51, 0.12);
}

body::after {
  left: -96px;
  bottom: 10%;
  width: 300px;
  height: 300px;
  background: rgba(15, 127, 115, 0.12);
}

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

button {
  font: inherit;
}

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

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 112px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(16px);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 18, 12, 0.16), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 16px 34px rgba(166, 62, 25, 0.18));
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  font-size: 1.04rem;
  letter-spacing: 0.04em;
}

.brand-copy small,
.eyebrow,
.section-kicker,
.panel-intro small,
.project-meta small,
.intro-card small,
.framework-card small {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding: 4px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.hero {
  padding-top: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-copy h1,
.section-heading h2,
.project-body h3 {
  margin: 0;
  font-family: var(--font-serif);
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 0.96;
}

.hero-lead,
.intro-card p,
.framework-card p,
.project-body p,
.panel-grid p,
.footer-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-lead span {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff5eb;
  box-shadow: 0 18px 40px rgba(166, 62, 25, 0.18);
}

.button-secondary {
  border-color: rgba(23, 18, 12, 0.14);
  background: rgba(255, 255, 255, 0.48);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 18, 12, 0.1);
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
}

.hero-panel,
.intro-card,
.framework-card,
.project-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(23, 18, 12, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 248, 238, 0.9), rgba(244, 237, 226, 0.74)),
    var(--surface);
  animation: gentle-float 6s ease-in-out infinite;
}

.panel-intro {
  display: grid;
  gap: 8px;
}

.panel-intro strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.panel-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.panel-grid article {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 18, 12, 0.08);
  background: rgba(255, 255, 255, 0.54);
}

.panel-grid strong,
.intro-card strong,
.framework-card h3 {
  display: block;
  margin-top: 10px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.section-heading {
  max-width: 820px;
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.06;
}

.intro-grid,
.framework-grid {
  display: grid;
  gap: 18px;
}

.intro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.framework-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intro-card,
.framework-card {
  padding: 26px;
}

.feature-card,
.framework-card-strong {
  background:
    linear-gradient(135deg, rgba(217, 95, 51, 0.12), rgba(15, 127, 115, 0.08)),
    var(--surface-strong);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(15, 127, 115, 0.12), rgba(255, 248, 238, 0.88)),
    var(--surface);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 127, 115, 0.18);
  box-shadow: 0 28px 82px rgba(46, 28, 11, 0.16);
}

.project-meta {
  display: grid;
  gap: 10px;
}

.project-meta span,
.project-link {
  color: var(--accent-teal);
}

.project-body {
  display: grid;
  gap: 14px;
}

.project-body h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(15, 127, 115, 0.12);
  white-space: nowrap;
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--soft);
}

.footer-copy {
  display: grid;
  gap: 6px;
}

.footer-record {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.reveal {
  opacity: 1;
  transform: none;
}

.delay-1 {
  animation-delay: 0ms;
}

.delay-2 {
  animation-delay: 0ms;
}

.delay-3 {
  animation-delay: 0ms;
}

@keyframes gentle-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1080px) {
  .hero,
  .intro-grid,
  .framework-grid,
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .section,
  .site-header,
  .site-footer {
    width: min(100% - 32px, 100%);
  }

  .site-header {
    padding-top: 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 249, 239, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 52px;
    gap: 30px;
  }

  .hero-copy {
    gap: 20px;
  }

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

@media (max-width: 540px) {
  body::before {
    right: -120px;
    width: 220px;
    height: 220px;
  }

  body::after {
    left: -126px;
    width: 240px;
    height: 240px;
  }

  .section {
    padding-bottom: 84px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.25rem, 13vw, 3.6rem);
  }

  .section-heading h2,
  .project-body h3 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .hero-tags {
    gap: 10px;
  }

  .hero-tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel,
  .intro-card,
  .framework-card,
  .project-card {
    padding: 20px;
  }
}
