/* Homepage composition, built on the shared tokens and shell in theme.css. */
.theme-home { background: #080a10; }
.theme-home main { width: 100%; max-width: none; }
.theme-home section { position: relative; scroll-margin-top: 1rem; }
.theme-home .piece { position: relative; overflow: hidden; padding: var(--site-section-space) var(--site-gutter); border-bottom: 1px solid var(--line-strong); }
.theme-home .piece h2, .theme-home .piece h3, .theme-home .piece p { margin: 0; }
.theme-home .piece h2 { font: 800 clamp(2rem,6.2vw,6.7rem)/.94 var(--body); letter-spacing: -.065em; }
.theme-home .piece h2 em { font-style: normal; color: var(--violet); }
.theme-home .piece p { color: var(--text-soft); line-height: 1.7; }
.theme-home .piece p.kicker { color: var(--amber); }
.theme-home a { color: inherit; text-decoration: none; }
.theme-home .quiet-hero {
  padding-top: 40px; padding-bottom: 26px;
  background: radial-gradient(ellipse at 85% 28%,rgba(167,139,250,.09),transparent 38%), radial-gradient(ellipse at 8% 85%,rgba(20,184,166,.055),transparent 35%), linear-gradient(90deg,rgba(167,139,250,.035) 1px,transparent 1px), #080a10;
  background-size: auto, auto, 8% 100%, auto;
}
.intro-layout { display: grid; grid-template-columns: 1.4fr .42fr; gap: 8%; align-items: end; margin: 45px 0 60px; }
.intro-main h1 { font: 800 clamp(3.6rem,6vw,6.2rem)/.95 var(--body); letter-spacing: -.07em; margin: 28px 0; }
.intro-main h1 em { display: inline-block; color: #e0d7fa; font-style: normal; letter-spacing: .035em; filter: url(#clean-text-outline); }
.intro-main h1 > span { color: var(--amber); }
.intro-description { max-width: 44ch; font-size: clamp(1rem,1.35vw,1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 25px; align-items: center; margin-top: 35px; }
.hero-actions a, .writing-intro > a, .read-note { color: var(--teal) !important; font: 700 .62rem var(--mono); letter-spacing: .08em; }
.hero-actions a { padding-bottom: 10px; border-bottom: 1px solid rgba(71,240,210,.65); }
.hero-actions a span { margin-left: 8px; }
.intro-system { width: min(100%, 280px); margin: 0; justify-self: end; }
.intro-system svg { display: block; width: 100%; height: auto; overflow: visible; }
.intro-system figcaption { display: flex; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-strong); color: var(--muted); font: .52rem var(--mono); letter-spacing: .08em; }
.intro-system figcaption span:nth-child(2) { color: var(--amber); }
.server-light { animation: server-light 3s ease-in-out infinite; }
.server-light-2 { animation-delay: -1s; }
.server-light-3 { animation-delay: -2s; }
.server-signal { animation: server-signal 3.5s linear infinite; }
@keyframes server-light { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes server-signal { to { stroke-dashoffset: -70; } }
@media (prefers-reduced-motion: reduce) { .server-light, .server-signal { animation: none; } }
.principle-pair article > span { color: var(--amber); font: .58rem var(--mono); letter-spacing: .08em; }
.hero-d-end { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line-strong); color: var(--muted); font: .55rem var(--mono); }
.theme-home .quiet-expertise { background: linear-gradient(90deg,rgba(167,139,250,.035) 1px,transparent 1px), radial-gradient(ellipse at 12% 75%,rgba(71,240,210,.06),transparent 38%), #0b0d15; background-size: 8% 100%, auto, auto; }
.expertise-header { display: grid; grid-template-columns: 1fr .55fr; gap: 8%; align-items: end; padding-bottom: 38px; border-bottom: 1px solid var(--line-strong); }
.theme-home .expertise-header h2 span { color: var(--violet); }
.theme-home .expertise-header h2 { margin-top: 25px; font-size: clamp(3rem,5vw,5rem); }
.expertise-header p { max-width: 45ch; font-size: .95rem; }
.expertise-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-top: 35px; }
.expertise-list article { padding: 8px 30px 8px 0; }
.expertise-list article + article { padding-left: 30px; border-left: 1px solid var(--line-strong); }
.expertise-list span { color: var(--amber); font: .58rem var(--mono); letter-spacing: .06em; }
.theme-home .expertise-list h3 { margin: 22px 0 12px; font: 700 clamp(1.3rem,1.8vw,1.8rem)/1.1 var(--body); letter-spacing: -.04em; }
.expertise-list p { max-width: 40ch; font-size: .9rem; }
.interactive-terminal-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9%; align-items: center; padding: var(--site-section-space) var(--site-gutter); border-bottom: 1px solid var(--line-strong); background: radial-gradient(ellipse at 75% 40%,rgba(167,139,250,.09),transparent 42%), linear-gradient(90deg,rgba(167,139,250,.035) 1px,transparent 1px), #0a0d15; background-size: auto, 8% 100%, auto; }
.terminal-intro h2 { margin: 25px 0 20px; font: 800 clamp(2.5rem,4vw,4rem)/.97 var(--body); letter-spacing: -.065em; }
.terminal-intro h2 span { color: var(--teal); }
.terminal-intro p { max-width: 36ch; color: var(--text-soft); line-height: 1.7; }
.terminal-intro code { color: var(--teal); font-family: var(--mono); }
.theme-home .interactive-terminal-section .terminal { margin: 0; border-color: rgba(167,139,250,.22); border-radius: 0; background: #080b11; }
.theme-home .quiet-principles { display: grid; grid-template-columns: .55fr 1.45fr; gap: 8%; padding-top: 45px; padding-bottom: 45px; background: #10101a; }
.principles-intro > p { max-width: 32ch; margin-top: 18px !important; font-size: .92rem; }
.principle-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 30px; }
.principle-pair article { padding-left: 25px; border-left: 1px solid var(--line-strong); }
.theme-home .principle-pair h2 { margin: 15px 0; font: 700 clamp(1.2rem,1.8vw,1.8rem)/1.15 var(--body); letter-spacing: -.04em; }
.principle-pair article p { max-width: 38ch; font-size: .87rem; }
.theme-home .interface-writing { display: grid; grid-template-columns: .65fr 1.35fr; gap: 7%; align-items: stretch; background: radial-gradient(ellipse at 85% 35%,rgba(167,139,250,.06),transparent 42%), #0b0e16; }
.theme-home .writing-intro { margin-top: 0; }
.theme-home .writing-intro h2 { color: var(--text); margin: 25px 0; font-size: clamp(2.7rem,4vw,4rem); }
.writing-intro > p { max-width: 30ch; margin-bottom: 26px !important; }
.writing-rss { display: block; margin-top: 20px; color: var(--muted) !important; }
.writing-feed { min-width: 0; }
.writing-feature { display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; padding: 38px; border: 1px solid rgba(167,139,250,.18); background: radial-gradient(ellipse at 90% 0,rgba(167,139,250,.16),transparent 50%), linear-gradient(140deg,#151322,#0b0e17); }
.writing-feature-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font: .58rem var(--mono); letter-spacing: .08em; }
.writing-file { color: var(--amber); font: .57rem var(--mono); letter-spacing: .08em; }
.theme-home .writing-feature h3 { text-wrap: balance; max-width: 18ch; margin: 18px 0; font: 800 clamp(2.2rem,3.6vw,3.7rem)/1.02 var(--body); letter-spacing: -.055em; }
.writing-feature h3 span { color: var(--amber); }
.writing-feature p { max-width: 50ch; margin-bottom: 22px !important; font-size: .9rem; }
.writing-more { margin-top: 20px; border-top: 1px solid var(--line-strong); }
.writing-more a { display: grid; grid-template-columns: 115px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.writing-more small { color: var(--muted); font: .56rem var(--mono); }
.writing-more strong { font: 700 1rem var(--body); }
.writing-more span { color: var(--teal); }
.theme-home .quiet-github { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12%; align-items: center; padding-top: 40px; padding-bottom: 55px; background: #0b0e16; }
.theme-home .github-compact-intro h2 { margin: 18px 0; font: 800 clamp(2.7rem,4.2vw,4.2rem)/.94 var(--body); letter-spacing: -.065em; }
.github-compact-intro h2 span { color: var(--amber); }
.github-compact-intro p { max-width: 37ch; font-size: .9rem; }
.github-compact-data { border-top: 1px solid var(--line-strong); }
.github-stat { display: flex; align-items: center; gap: 30px; padding: 25px 0; }
.github-stat-number { flex-shrink: 0; width: calc(var(--count-digits, 3) * 1ch); text-align: right; white-space: nowrap; color: var(--text); font: 400 clamp(3rem,5vw,5rem)/1 'Audiowide', var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.github-stat strong { display: block; font: 700 1rem/1.2 var(--body); }
.github-stat p { margin-top: 10px !important; color: var(--muted) !important; font-size: .8rem; }
.github-profile-link { display: flex; justify-content: space-between; gap: 15px; padding-top: 20px; border-top: 1px solid var(--line-strong); color: var(--teal) !important; font: .6rem var(--mono); }
.github-profile-link span { font-size: 1.1rem; }
.theme-home .power-section { padding-top: 65px; padding-bottom: 65px; background: radial-gradient(ellipse at 82% 50%,rgba(71,240,210,.09),transparent 35%), radial-gradient(ellipse at 20% 15%,rgba(255,189,89,.055),transparent 38%), linear-gradient(90deg,rgba(71,240,210,.035) 1px,transparent 1px), #0b1014; background-size: auto, auto, 8% 100%, auto; }
.power-top { display: flex; justify-content: space-between; gap: 20px; }
.power-top > span:last-child { color: var(--muted); font: .56rem var(--mono); }
.power-layout { display: grid; grid-template-columns: 1fr .7fr; gap: 12%; align-items: end; margin-top: 40px; }
.theme-home .power-statement h2 { margin: 0 0 30px; font-size: clamp(2.7rem,4.2vw,4.2rem); }
.theme-home .power-statement h2 span { color: var(--teal); }
.power-statement > p { max-width: 53ch; font-size: 1rem; }
.power-detail { padding: 26px 28px; border: 1px solid rgba(71,240,210,.2); background: linear-gradient(140deg,rgba(71,240,210,.07),rgba(8,11,17,.6)); }
.power-detail-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font: .58rem var(--mono); letter-spacing: .08em; }
.power-detail-meta span:last-child { color: var(--amber); }
.theme-home .power-detail h3 { margin: 30px 0 12px; font: 700 clamp(1.4rem,2vw,2rem)/1.1 var(--body); letter-spacing: -.05em; }
.power-detail h3 span { color: var(--teal); }
.power-detail p { max-width: 38ch; font-size: .88rem; }
.theme-home .contact-d { padding-top: 65px; padding-bottom: 75px; background: radial-gradient(ellipse at 82% 70%,rgba(167,139,250,.12),transparent 40%), linear-gradient(90deg,rgba(167,139,250,.045) 1px,transparent 1px), #080a10; background-size: auto, 8% 100%, auto; }
.theme-home .piece .contact-context { color: var(--amber); font: 700 .65rem var(--mono); letter-spacing: .13em; }
.contact-d-output { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr); column-gap: 8%; margin-top: 40px; }
.contact-d-output small { color: var(--amber); font: .6rem var(--mono); }
.theme-home .contact-d h2 { margin: 30px 0; font-size: clamp(3rem,5vw,5rem); }
.theme-home .contact-d h2 em { display: inline-block; color: #e0d7fa; font-style: normal; letter-spacing: .035em; filter: url(#clean-text-outline); }
.contact-d h2 span { color: var(--amber); }
.contact-d-output > p { max-width: 52ch; }
.contact-d-output > div { grid-column: 2; grid-row: 1 / 3; align-self: end; justify-self: end; width: 100%; }
.contact-d-output a { color: var(--teal); font: .6rem var(--mono); }
@media (max-width: 900px) {
  .intro-layout { grid-template-columns: 1fr; gap: 30px; }
  .intro-system { width: min(62%, 230px); justify-self: start; }
  .expertise-list { grid-template-columns: 1fr; }
  .expertise-list article, .expertise-list article + article { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line-strong); }
  .theme-home .expertise-list h3 { margin: 12px 0 8px; }
  .theme-home .quiet-principles, .theme-home .quiet-github { grid-template-columns: 1fr; gap: 30px; }
  .power-layout { grid-template-columns: 1fr 1fr; gap: 7%; }
}
@media (max-width: 700px) {
  .theme-home .piece { padding: 50px 22px; }
  .theme-home .quiet-hero { padding-top: 30px; padding-bottom: 25px; }
  .intro-layout { margin: 30px 0 35px; }
  .intro-main h1 { font-size: clamp(2.75rem,9vw,4rem); }
  .hero-actions { gap: 20px; margin-top: 25px; }
  .expertise-header, .theme-home .interface-writing { grid-template-columns: 1fr; gap: 28px; }
  .theme-home .expertise-header h2, .theme-home .writing-intro h2 { font-size: clamp(2.6rem,9vw,4rem); }
  .interactive-terminal-section { grid-template-columns: 1fr; gap: 30px; padding: 50px 22px; }
  .terminal-intro h2 { font-size: clamp(2.4rem,8vw,3.8rem); }
  .theme-home .quiet-principles { padding: 40px 22px; }
  .principle-pair { grid-template-columns: 1fr; gap: 25px; }
  .principle-pair article { padding-left: 18px; }
  .writing-feature { min-height: 300px; padding: 24px; }
  .theme-home .writing-feature h3 { text-wrap: balance; font-size: clamp(2rem,7vw,3rem); }
  .writing-more a { grid-template-columns: 1fr auto; gap: 8px; }
  .writing-more small { grid-column: 1/-1; }
  .theme-home .quiet-github { padding: 35px 22px 45px; }
  .github-stat-number { font-size: 3.5rem; }
  .theme-home .power-section { padding: 50px 22px; }
  .power-top > span:last-child { display: none; }
  .power-layout { grid-template-columns: 1fr; gap: 40px; }
  .theme-home .power-statement h2 { font-size: clamp(2.7rem,9vw,4.2rem); }
  .power-detail { padding: 24px; }
  .theme-home .contact-d { padding: 55px 22px 65px; }
  .theme-home .contact-d h2 { font-size: clamp(2.8rem,9vw,4.5rem); }
}

/* One reading size for the introductory copy in each homepage section. */
.theme-home :is(.intro-description, .expertise-header p, .terminal-intro p, .principles-intro > p, .writing-intro > p, .github-compact-intro p, .power-statement > p, .contact-d-output > p) {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

@media (prefers-reduced-motion: no-preference) {
  .theme-home .section-awaiting { opacity: 0; transform: translateY(12px); transition: opacity 800ms ease-out, transform 800ms ease-out; }
  .theme-home .section-awaiting.section-entered { opacity: 1; transform: none; }
}

.contact-d-output .article-linkedin { width: min(100%, 360px); }
.contact-d-output .article-linkedin-text small { color: var(--muted); }
@media (max-width: 700px) { .contact-d-output { grid-template-columns: 1fr; } .contact-d-output > div { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 36px; } }
