:root {
  --bg: #0c0b0a;
  --panel: #141210;
  --panel-soft: rgba(20, 18, 16, 0.86);
  --text: #f2ece2;
  --muted: #d3c7b5;
  --gold: #c9a84c;
  --line: rgba(201, 168, 76, 0.28);
  --line-strong: rgba(201, 168, 76, 0.5);
  --green: #84c9a0;
  --radius: 16px;
  --section-space: 54px;
  --box-top: rgba(20, 18, 16, 0.82);
  --box-bottom: rgba(12, 11, 10, 0.92);
  --box-bg: linear-gradient(180deg, var(--box-top), var(--box-bottom));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(1200px 800px at 80% -10%, rgba(201, 168, 76, 0.08), transparent 45%), var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.62;
}

.shell {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 11, 10, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-weight: 500;
}

.brand-title {
  margin: 2px 0 0;
  font-size: 1.2rem;
  font-family: "Cinzel", serif;
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a {
  color: #ddd0bc;
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 10px;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.site-nav a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(201, 168, 76, 0.12);
}

.landing-hero-v2 {
  position: relative;
  padding: 90px 0 52px;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.landing-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(201, 168, 76, 0.08), transparent 22%),
    radial-gradient(circle at 50% 0%, rgba(201, 168, 76, 0.03), transparent 42%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.98) 0%, rgba(9, 8, 7, 0.95) 100%);
  pointer-events: none;
}

.hero-author::after {
  content: "";
  position: absolute;
  right: max(24px, calc((100vw - min(1120px, calc(100% - 48px))) / 2));
  top: 50%;
  width: min(42vw, 560px);
  height: min(74vh, 760px);
  transform: translateY(-50%);
  background:
    linear-gradient(to left, rgba(10, 9, 8, 0.04), rgba(10, 9, 8, 0.52) 58%, rgba(10, 9, 8, 0.84)),
    url("./author-portrait.jpg") center / cover no-repeat;
  opacity: 0.54;
  filter: grayscale(1) contrast(1.03) brightness(0.98);
  pointer-events: none;
  border-radius: 36px;
  -webkit-mask-image: radial-gradient(116% 104% at 56% 50%, #000 58%, rgba(0, 0, 0, 0.46) 80%, transparent 100%);
  mask-image: radial-gradient(116% 104% at 56% 50%, #000 58%, rgba(0, 0, 0, 0.46) 80%, transparent 100%);
}

.hero-v2-shell {
  position: relative;
  z-index: 1;
  display: block;
}

.hero-v2-copy {
  max-width: 700px;
}

.hero-v2-title {
  margin: 8px 0 14px;
  font-family: "Cinzel", serif;
  font-size: clamp(52px, 7.5vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 600;
  text-wrap: balance;
}

.hero-v2-lead {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-v2-actions {
  margin-top: 22px;
}

.section {
  padding: var(--section-space) 0 0;
}

.section h3 {
  margin: 8px 0 18px;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

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

.start-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--box-bg);
  padding: 20px 18px 18px;
}

.start-card h3 {
  margin: 8px 0;
  font-size: 1.2rem;
}

.start-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.text-link {
  color: var(--gold);
  text-decoration: none;
  font-family: "Cinzel", serif;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  text-transform: uppercase;
}

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

.bio-panel,
.bridge-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--box-bg);
}

.challenge-cta {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--box-bg);
}

.challenge-cta p {
  margin: 0 0 14px;
  color: var(--muted);
}

.bio-copy {
  column-count: 2;
  column-gap: 30px;
}

.bio-copy p {
  margin: 0 0 14px;
  break-inside: avoid;
}

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

.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--box-bg);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px;
}

.work-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.work-cover-logo {
  background: #070707;
  padding: 18px;
  object-fit: contain;
}

.work-body h4 {
  margin: 2px 0 8px;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.work-body p {
  margin: 0 0 12px;
  color: var(--muted);
}

.hero-actions,
.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

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

.btn-primary {
  background: rgba(132, 201, 160, 0.24);
  color: #f0fff7;
  border-color: rgba(132, 201, 160, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  background: rgba(201, 168, 76, 0.22);
  color: var(--text);
  border-color: rgba(201, 168, 76, 0.52);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  background: rgba(201, 168, 76, 0.3);
}

.ecosystem-bridge p {
  color: var(--muted);
  margin: 0 0 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0 28px;
  color: #a99d8b;
  font-size: 0.95rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 980px) {
  .start-grid {
    grid-template-columns: 1fr;
  }

  .bio-copy {
    column-count: 1;
  }

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

}

@media (max-width: 640px) {
  .shell {
    width: min(1120px, calc(100% - 28px));
  }

  .site-header {
    position: static;
    backdrop-filter: none;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand .eyebrow {
    display: none;
  }

  .brand-title {
    font-size: 1rem;
    margin: 0;
  }

  .site-nav {
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .site-nav a {
    white-space: nowrap;
    border: 1px solid var(--line);
    background: rgba(20, 18, 16, 0.85);
    padding: 7px 9px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    line-height: 1;
  }

  .work-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .work-cover {
    max-width: 180px;
  }

  .landing-hero-v2 {
    padding: 62px 0 30px;
  }

  .hero-author::after {
    width: min(70vw, 320px);
    right: 50%;
    top: 30%;
    height: min(50vh, 320px);
    transform: translate(50%, -50%);
    opacity: 0.18;
    border-radius: 24px;
  }

  .hero-v2-title {
    font-size: clamp(48px, 14vw, 84px);
  }

  .hero-v2-lead {
    font-size: 22px;
    max-width: none;
  }

  .hero-actions .btn,
  .work-actions .btn,
  .start-card .btn {
    width: 100%;
  }

  .section {
    padding: 34px 0 0;
  }

  .bio-panel,
  .bridge-panel,
  .challenge-cta {
    padding: 20px;
  }
}

@media (max-width: 430px) {
  .shell {
    width: calc(100% - 20px);
  }

  .header-inner {
    gap: 8px;
    padding: 8px 0;
  }

  .site-nav {
    gap: 6px;
  }

  .site-nav a {
    font-size: 0.64rem;
    padding: 7px 9px;
  }

  .landing-hero-v2 {
    padding: 48px 0 20px;
  }

  .hero-v2-title {
    font-size: clamp(42px, 15vw, 68px);
  }

  .hero-v2-lead {
    font-size: 18px;
    line-height: 1.36;
  }

  .hero-author::after {
    width: min(78vw, 270px);
    height: min(40vh, 250px);
    opacity: 0.14;
  }

  .section h3 {
    font-size: 1.2rem;
    margin: 6px 0 12px;
    line-height: 1.25;
  }

  .start-card,
  .work-card {
    padding: 16px;
  }

  .btn {
    min-height: 40px;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    padding: 0 12px;
  }

  .section {
    padding: 28px 0 0;
  }

  .bio-panel,
  .bridge-panel,
  .challenge-cta {
    padding: 16px;
  }
}
