:root {
  --paper: #f5f7f2;
  --ink: #18221b;
  --muted: #707b72;
  --line: #e1e7dd;
  --green: #b9e982;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

html { scroll-padding-top: 92px; }
body { background: radial-gradient(ellipse at 80% 0, #e9f0e4 0, transparent 34rem), var(--paper); }
::selection { background: #d7edc2; color: var(--ink); }
:focus-visible { outline: 3px solid #7ea85f; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.topline { height: 3px; }
.site-header { height: 78px; padding-inline: max(44px, calc((100vw - 1200px) / 2)); border-bottom-color: #dfe6dcaa; box-shadow: 0 8px 30px #17201908; }
.wordmark { font-size: 21px; letter-spacing: -1.3px; }
.main-nav { gap: clamp(20px, 3vw, 38px); font-size: 12px; }
.main-nav > a:not(.nav-contact) { position: relative; padding-block: 8px; }
.main-nav > a:not(.nav-contact)::after { position: absolute; right: 0; bottom: 1px; left: 0; height: 1px; background: #729b50; content: ''; transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease); }
.main-nav > a:not(.nav-contact):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-contact { padding: 11px 17px; border-color: #d5dfd1; background: #ffffff80; transition: background .2s, border-color .2s, transform .2s; }
.nav-contact:hover { transform: translateY(-1px); border-color: #a8c294; background: #fff; }

.hero { min-height: 625px; padding-top: 45px; padding-bottom: 82px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker { letter-spacing: 1.8px; }
.hero h1 { margin-block: 23px 17px; font-size: clamp(52px, 6.3vw, 79px); letter-spacing: -5px; line-height: 1.03; }
.hero h1 em, .page-hero h1 em { color: #6f984e; }
.hero-lead { max-width: 445px; font-size: 15px; line-height: 1.85; }
.hero-actions { gap: 22px; }
.button { min-height: 48px; padding: 13px 19px; border-radius: 999px; box-shadow: 0 6px 18px #17201912; }
.button-dark { background: #1c2a20; }
.button-dark:hover { background: #314a35; box-shadow: 0 9px 24px #17201924; }
.text-link { display: inline-flex; align-items: center; min-height: 42px; }
.swarm-trigger { border-radius: 999px; padding: 8px 12px; background: transparent; }
.hero-art { isolation: isolate; }
.art-chip { padding: 10px 14px; border: 1px solid #e7ece4; border-radius: 999px; box-shadow: 0 12px 30px #17201912; }
.hero-scroll { font-size: 8px; }

.intro-band { background: #edf1e9; border-color: #e4e9e1; }
.intro-inner { min-height: 205px; grid-template-columns: 145px 1fr 48px; gap: 30px; }
.intro-inner p { letter-spacing: -1px; }
.round-link { width: 46px; height: 46px; background: #ffffff80; }
.section { padding-top: 92px; padding-bottom: 96px; }
.section-head { margin-bottom: 32px; }
.section-head h2, .cta-section h2 { letter-spacing: -2.3px; }
.post-grid, .project-grid { gap: 24px; }
.post-card, .project-card { min-width: 0; }
.post-image, .project-cover { height: 240px; border-radius: 17px; background: #e8ede5; }
.project-cover { height: 255px; }
.post-image img, .project-cover img { transition: transform .75s var(--ease), filter .6s; }
.image-arrow { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 5px 18px #17201914; }
.post-meta { margin-top: 16px; font-size: 9px; }
.post-card h3, .project-caption h3 { font-size: 18px; line-height: 1.45; }
.post-card > p, .project-caption p { font-size: 12px; }
.work-section { background: #edf1e9; }
.project-caption { padding-inline: 3px; }
.project-year { flex: none; }
.cta-section { min-height: 325px; margin-top: 66px; margin-bottom: 82px; padding: 58px 62px; border-radius: 24px; background: linear-gradient(115deg, #17231b 0%, #1c2c21 62%, #213829 100%); box-shadow: 0 24px 70px #1720191c; }
.cta-section h2 { max-width: 570px; font-size: clamp(34px, 4vw, 46px); }
.cta-section .button-light { box-shadow: 0 8px 22px #b7ee7133; }
.cta-orb { opacity: .75; }

.site-footer { padding-top: 38px; padding-bottom: 24px; background: #edf1e9; }
.footer-top { padding-bottom: 24px; }
.footer-top p { font-size: 12px; }
.footer-bottom { font-size: 10px; }
.back-top { width: 42px; height: 42px; background: #ffffff75; }

.page-hero { padding-top: 84px; padding-bottom: 45px; }
.page-hero h1 { margin-block: 18px; font-size: clamp(48px, 6vw, 74px); letter-spacing: -4px; }
.page-hero > p { max-width: 570px; line-height: 1.8; }
.search-form { border-color: #cbd5c8; }
.search-form input { min-height: 46px; }
.blog-layout { gap: 34px; }
.category-list a { border-radius: 10px; }
.category-list a.active { background: #e7eee2; }
.post-card { padding-bottom: 8px; }
.blog-cards .post-image { height: 225px; }
.pagination a { border-radius: 10px; }
.article { padding-top: 52px; }
.article h1 { letter-spacing: -3.7px; }
.article-cover { border-radius: 20px; }
.article-content { font-size: 16px; }
.portfolio-card .project-cover { height: 315px; }
.about-stamp { box-shadow: inset 0 0 0 1px #d9e4d2, 0 20px 48px #26331f0b; }
.contact-layout { gap: 72px; }
.contact-form { padding: 28px; border: 1px solid #e3e9e0; border-radius: 20px; background: #ffffffb8; box-shadow: 0 16px 44px #1720190c; }
.contact-form input, .contact-form textarea { min-height: 48px; border-radius: 10px; background: #fff; }
.contact-form textarea { min-height: 140px; }
.contact-form .button { margin-top: 8px; }
.auth-card { border: 1px solid #e7ece4; border-radius: 22px; }

.market-home { border-radius: 24px; box-shadow: 0 22px 65px #17201914; }
.market-home-panel { border-radius: 17px; }
.home-rate-card { border-radius: 12px; }
.refresh-button, .market-open-link { border-radius: 999px; }

@media (max-width: 900px) {
  .site-header { padding-inline: 28px; }
  .hero { min-height: 570px; }
  .hero h1 { font-size: clamp(51px, 6.6vw, 65px); letter-spacing: -4px; }
  .about-body, .contact-layout { gap: 42px; }
  .cta-section { margin-inline: auto; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 76px; }
  .wrap { width: calc(100% - 36px); }
  .site-header { height: 68px; padding-inline: 18px; }
  .wordmark { font-size: 19px; }
  .menu-toggle { width: 44px; height: 44px; justify-content: center; align-items: center; border-radius: 50%; }
  .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: #e9efe5; }
  .main-nav { top: 68px; padding-inline: 18px; background: #f7f8f4f5; box-shadow: 0 18px 30px #17201912; }
  .main-nav.open { max-height: 360px; padding-block: 10px 18px; }
  .main-nav a { min-height: 45px; display: flex; align-items: center; }
  .nav-contact { margin-top: 5px; padding: 11px 4px !important; }
  .hero { width: calc(100% - 40px); min-height: auto; padding-top: 42px; padding-bottom: 66px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.35px; }
  .hero h1 { margin-block: 21px 15px; font-size: clamp(45px, 12vw, 62px); letter-spacing: -3.4px; line-height: 1.04; }
  .hero-lead { max-width: 440px; font-size: 14px; line-height: 1.75; }
  .hero-actions { gap: 8px 14px; margin-top: 22px; }
  .hero-actions .button { width: 100%; justify-content: space-between; padding-inline: 18px; }
  .hero-actions > .text-link { min-height: 42px; }
  .swarm-trigger { font-size: 10px; }
  .hero-art { height: 300px; margin-top: 3px; margin-bottom: -7px; overflow: clip; transform: none; }
  .orbit-one { width: min(300px, 86vw); }
  .orbit-two { width: min(244px, 70vw); }
  .orbit-three { width: min(174px, 50vw); }
  .orbit-signal { width: min(300px, 86vw); height: min(300px, 86vw); margin: max(-150px, -43vw) 0 0 max(-150px, -43vw); }
  .signal-two { width: min(244px, 70vw); height: min(244px, 70vw); margin: max(-122px, -35vw) 0 0 max(-122px, -35vw); }
  .art-chip { padding: 8px 11px; font-size: 9px; }
  .chip-one { top: 35px; left: 3px; }
  .chip-two { top: 125px; right: 0; }
  .chip-three { bottom: 30px; left: 6px; }
  .art-star { right: 20px; bottom: 25px; }
  .hero-scroll { bottom: 12px; font-size: 7px; }
  .intro-inner { padding-block: 30px; grid-template-columns: 1fr 42px; gap: 12px; }
  .intro-inner p { font-size: clamp(19px, 5.4vw, 23px); line-height: 1.5; }
  .section { padding-block: 60px; }
  .section-head { align-items: flex-start; gap: 12px; }
  .section-head h2 { font-size: clamp(27px, 7vw, 33px); letter-spacing: -1.5px; }
  .section-head > .text-link { align-self: flex-end; font-size: 9px; }
  .post-grid, .project-grid { gap: 27px; }
  .post-image, .blog-cards .post-image { height: clamp(190px, 62vw, 250px); border-radius: 15px; }
  .project-cover, .portfolio-card .project-cover { height: clamp(210px, 68vw, 270px); border-radius: 15px; }
  .post-meta { gap: 10px; font-size: 8px; }
  .post-card h3, .project-caption h3 { font-size: 17px; }
  .cta-section { width: calc(100% - 36px); min-height: 300px; margin-top: 22px; margin-bottom: 52px; padding: 38px 23px; border-radius: 20px; }
  .cta-section h2 { max-width: 245px; font-size: 31px; letter-spacing: -1.7px; }
  .cta-section p { max-width: 260px; font-size: 12px; line-height: 1.7; }
  .cta-orb { right: -170px; top: 80px; width: 280px; }
  .site-footer { padding: 28px 18px 20px; }
  .footer-top { align-items: center; }
  .footer-top p { font-size: 11px; line-height: 1.6; }
  .footer-bottom { font-size: 9px; }
  .page-hero { padding-top: 58px; }
  .page-hero h1 { font-size: clamp(41px, 11vw, 58px); letter-spacing: -3px; }
  .blog-layout { padding-top: 6px; }
  .category-list { margin-inline: -18px; padding-inline: 18px; scrollbar-width: thin; }
  .category-list a { min-height: 38px; align-items: center; border-radius: 999px; }
  .blog-cards { gap: 28px; }
  .article { padding-top: 30px; padding-bottom: 65px; }
  .article-header .post-meta { flex-wrap: wrap; row-gap: 6px; }
  .article h1 { font-size: clamp(35px, 9.5vw, 50px); letter-spacing: -2.7px; }
  .article-cover { margin-bottom: 25px; border-radius: 14px; }
  .article-content { font-size: 15px; line-height: 1.85; }
  .tag-row, .tech-list { justify-content: flex-start; }
  .contact-form { padding: 20px 16px; border-radius: 16px; }
  .market-home { border-radius: 20px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 43px; letter-spacing: -3px; }
  .hero-actions { gap: 5px 10px; }
  .hero-actions > .text-link { font-size: 10px; }
  .swarm-trigger { padding-inline: 8px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head > .text-link { align-self: flex-start; }
  .footer-top { flex-wrap: wrap; }
  .footer-top p { order: 3; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art, .art-chip, .orbit-signal, .about-stamp:after, .stamp-ring { animation: none !important; }
}

/* Editorial, full-screen homepage inspired by the reference layout. */
.home-page { background: var(--paper); }
.home-page .topline { background: #070909; }
.home-page .site-header { position: absolute; z-index: 40; top: 3px; right: 0; left: 0; height: 82px; padding-inline: clamp(22px, 5vw, 78px); color: #f3f4ef; border: 0; background: linear-gradient(180deg, #070909e8, #07090900); box-shadow: none; backdrop-filter: none; }
.home-page .wordmark { color: #f1f3ee; }
.home-page .wordmark span { color: #b9e982; }
.header-meta { display: flex; flex-direction: column; gap: 3px; margin-left: auto; margin-right: clamp(28px, 5vw, 76px); color: #a8aea8; font-size: 8px; line-height: 1.35; letter-spacing: 1px; }
.header-meta span:last-child { color: #68716b; }
.home-page .main-nav { gap: clamp(17px, 2.6vw, 36px); color: #e5e8e2; font-size: 11px; }
.home-page .main-nav > a:not(.nav-contact)::after { background: #b9e982; }
.home-page .nav-contact { padding: 9px 14px; color: #f0f2ed; border-color: #ffffff42; background: #ffffff09; }
.home-page .nav-contact:hover { color: #111913; border-color: #b9e982; background: #b9e982; }
.home-page .menu-toggle i { background: #f2f5ef; }
.home-page .home-hero { position: relative; isolation: isolate; display: block; width: 100%; max-width: none; height: max(700px, 100svh); min-height: 700px; margin: 0; padding: 0; overflow: hidden; color: #f3f4ef; background: #070909; }
.home-hero::before { position: absolute; z-index: 0; inset: 0; content: ''; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, #15231f66 0, transparent 45%), linear-gradient(180deg, #080a0a00 40%, #080a0a9c 100%); }
.intro-particles { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.home-hero-meta { position: absolute; z-index: 2; top: clamp(106px, 14vh, 150px); right: clamp(22px, 6.5vw, 96px); left: clamp(22px, 6.5vw, 96px); display: flex; justify-content: space-between; gap: 18px; color: #747d77; font-size: 8px; letter-spacing: 1.6px; }
.home-hero-meta span:first-child { display: flex; align-items: center; gap: 9px; color: #abb3ac; }
.home-hero-meta i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #b9e982; box-shadow: 0 0 11px #b9e982; }
.home-hero-copy { position: absolute; z-index: 2; top: 54%; left: clamp(22px, 6.5vw, 96px); width: min(390px, 34vw); transform: translateY(-15%); }
.home-hero-copy .eyebrow { color: #b2bbb3; font-size: 8px; letter-spacing: 1.45px; }
.home-hero-copy .live-dot { background: #b9e982; box-shadow: 0 0 0 4px #b9e98220; }
.home-hero-copy .hero-lead { max-width: 390px; margin: 15px 0 0; color: #c3c9c2; font-size: clamp(13px, 1.2vw, 16px); line-height: 1.75; }
.home-hero-explore { position: absolute; z-index: 3; top: 57%; right: clamp(22px, 6.5vw, 96px); display: inline-flex; min-height: 45px; align-items: center; gap: 22px; padding: 0 8px 0 17px; color: #eff1ec; border: 1px solid #ffffff55; border-radius: 999px; background: #ffffff08; font-size: 11px; font-weight: 600; transition: border-color .2s, background .2s, transform .2s; }
.home-hero-explore span { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #ffffff4d; border-radius: 50%; font-size: 15px; }
.home-hero-explore:hover { transform: translateY(-2px); border-color: #b9e982; background: #b9e98218; }
.home-page .home-hero-title { position: absolute; z-index: 1; right: 0; bottom: 10%; left: 0; width: 100%; margin: 0; padding-inline: 3vw; color: #f2f3ee; text-align: center; white-space: nowrap; font: italic 400 clamp(74px, 13.4vw, 198px)/.78 Georgia, 'Times New Roman', serif; letter-spacing: -.075em; }
.home-page .home-hero-title em { color: #dce7d3; font-weight: 400; letter-spacing: inherit; }
.home-hero-scroll { position: absolute; z-index: 2; bottom: 25px; left: clamp(22px, 6.5vw, 96px); display: flex; align-items: center; gap: 10px; color: #747d77; font-size: 7px; font-weight: 700; letter-spacing: 1.5px; }
.home-hero-scroll span { width: 27px; height: 1px; background: #778078; }

@media (max-width: 980px) {
  .header-meta { display: none; }
}

@media (max-width: 760px) {
  .home-page .site-header { height: 70px; padding-inline: 20px; }
  .header-meta { display: none; }
  .home-page .main-nav { top: 70px; color: #e5e8e2; background: #101412f5; box-shadow: 0 18px 30px #0005; }
  .home-page .main-nav.open { padding-block: 10px 18px; border-bottom: 1px solid #ffffff20; }
  .home-page .main-nav a { color: #e5e8e2; border-color: transparent; }
  .home-page .main-nav .nav-contact { color: #b9e982; }
  .home-page .home-hero { height: max(720px, 100svh); min-height: 720px; }
  .home-hero-meta { top: 105px; right: 20px; left: 20px; flex-direction: column; gap: 8px; font-size: 7px; }
  .home-hero-copy { top: 38%; right: 24px; left: 24px; width: auto; transform: none; }
  .home-hero-copy .hero-lead { max-width: 360px; font-size: 14px; }
  .home-hero-explore { top: auto; right: 24px; bottom: 29%; min-height: 43px; }
  .home-page .home-hero-title { bottom: 13%; display: flex; flex-direction: column; gap: 3px; padding-inline: 10px; white-space: normal; font-size: clamp(58px, 16vw, 105px); line-height: .76; letter-spacing: -.08em; }
  .home-page .home-hero-title span, .home-page .home-hero-title em { display: block; }
  .home-hero-scroll { bottom: 25px; left: 24px; font-size: 6px; }
}

@media (max-width: 380px) {
  .home-page .site-header { padding-inline: 15px; }
  .home-hero-meta { right: 16px; left: 16px; }
  .home-hero-copy { right: 18px; left: 18px; }
  .home-hero-explore { right: 18px; bottom: 27%; }
  .home-page .home-hero-title { bottom: 13%; font-size: clamp(54px, 15.8vw, 70px); }
  .home-hero-scroll { left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-explore { transition: none; }
}

/* One shared visual language across the homepage and interior pages. */
.public-site {
  --brand-lime: #b7ee71;
  --brand-forest: #17231b;
  --brand-moss: #6f984e;
  background: radial-gradient(ellipse at 88% 5%, #e8efdf 0, transparent 38rem), var(--paper);
}
.public-site .topline { background: linear-gradient(90deg, #b7ee71, #94d765, #d7f2b6); }
.public-site .main-nav a:hover,
.public-site .text-link:hover { color: var(--brand-moss); }
.public-site .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 34px;
  margin-bottom: 18px;
  padding: clamp(44px, 6vw, 76px) clamp(24px, 5.8vw, 72px) 48px;
  border: 1px solid #e4eadf;
  border-radius: 22px;
  background: linear-gradient(125deg, #f1f5ec 0%, #edf2e8 58%, #e7eee0 100%);
  box-shadow: 0 18px 48px #17201908;
}
.public-site .page-hero::after {
  position: absolute;
  z-index: -1;
  top: -150px;
  right: -95px;
  width: 390px;
  height: 390px;
  border: 1px solid #7f9e6520;
  border-radius: 50%;
  box-shadow: 0 0 0 35px #7f9e6508, 0 0 0 76px #7f9e6505;
  content: '';
  pointer-events: none;
}
.public-site .page-hero > * { position: relative; z-index: 1; }
.public-site .page-hero h1 { max-width: 820px; }
.public-site .page-hero .button-dark { background: var(--brand-forest); }
.public-site .page-hero .search-form { border-color: #cbd8c3; background: #ffffffb8; }
.public-site .article-header { padding: 27px clamp(18px, 4vw, 46px); border: 1px solid #e5ebe1; border-radius: 20px; background: linear-gradient(135deg, #f0f4eb, #f8f9f6); }
.public-site .article-header h1 { text-wrap: balance; }
.public-site .article-content { color: #3e4940; }
.public-site .contact-form,
.public-site .post-card,
.public-site .portfolio-card { transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.public-site .contact-form:hover,
.public-site .post-card:hover,
.public-site .portfolio-card:hover { border-color: #d5e0ce; box-shadow: 0 16px 42px #1720190d; }
.public-site .site-footer { border-top: 1px solid #e2e8de; }

/* Swarm rebuild controls and outlines use the same forest and lime palette. */
.swarm-console {
  right: 18px;
  bottom: 18px;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #ffffff20;
  border-radius: 999px;
  background: #101713f2;
  box-shadow: 0 14px 40px #0003;
}
.swarm-console-state strong { color: #f0f4ed; }
.swarm-console-state small { color: #aeb8ae; }
.swarm-live-dot { background: var(--brand-lime); box-shadow: 0 0 12px #b7ee71; }
.swarm-console button { border-radius: 999px; }
.swarm-console .swarm-console-rebuild { border-color: var(--brand-lime); background: var(--brand-lime); color: #142017; }
.swarm-console .swarm-console-rebuild:hover { background: #d0f3a2; color: #142017; }
.swarm-console-skip { background: #ffffff0c !important; }
.swarm-agent span { border-radius: 999px; }
body.swarm-playing [data-swarm-block][data-swarm-state="mark"]:after,
body.swarm-playing [data-swarm-block][data-swarm-state="rough"]:after { outline-color: #b7ee71; background: #b7ee7108; color: #557c36; }
body.swarm-playing [data-swarm-block][data-swarm-state="rough"]:after { outline-color: #93c85f; background: #93c85f0c; }
body.swarm-playing [data-swarm-block][data-swarm-state="rough"]:before {
  background: linear-gradient(#dfe8d8 0 0) 0 0/48% 8px no-repeat, linear-gradient(#e7ece3 0 0) 0 25%/87% 6px no-repeat, linear-gradient(#e7ece3 0 0) 0 46%/73% 6px no-repeat, linear-gradient(#e7ece3 0 0) 0 67%/81% 6px no-repeat, linear-gradient(#e7ece3 0 0) 0 88%/54% 6px no-repeat;
}
body.swarm-playing [data-swarm-block][data-swarm-state="done"]:after { box-shadow: inset 0 0 0 2px #b7ee71, 0 0 24px #b7ee7180; }
@keyframes swarm-flash { to { opacity: 0; box-shadow: inset 0 0 0 0 #b7ee71, 0 0 0 #b7ee7100; } }

@media (max-width: 680px) {
  .public-site .page-hero { margin-top: 20px; padding: 42px 22px 30px; border-radius: 18px; }
  .public-site .page-hero::after { top: -180px; right: -190px; }
  .public-site .article-header { padding: 22px 17px; border-radius: 16px; }
  .swarm-console { right: 10px; bottom: 10px; gap: 5px; padding: 7px; }
  .swarm-console-state { gap: 6px; padding-inline: 3px; }
  .swarm-console-state small { max-width: 138px; font-size: 7px; }
  .swarm-console button { padding: 7px; font-size: 7px; }
}

/* Centered dotted name with room for the supporting copy around it. */
.home-page .home-hero-title {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  display: block;
  width: 100%;
  padding-inline: 12px;
  color: transparent;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: clamp(68px, 13.7vw, 164px);
  line-height: 1;
  letter-spacing: -.075em;
  pointer-events: none;
}
.home-page .home-hero-title em,
.home-page .home-hero-title span { color: transparent; }
.home-hero-copy { top: auto; bottom: 9%; width: min(370px, 31vw); transform: none; }
.home-hero-explore { top: auto; right: clamp(22px, 6.5vw, 96px); bottom: 10%; }
@media (max-width: 760px) {
  .home-page .home-hero-title {
    top: 50%;
    bottom: auto;
    left: 50%;
    display: block;
    width: 100%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-size: clamp(40px, 12.3vw, 59px);
    line-height: 1;
  }
  .home-page .home-hero-title span,
  .home-page .home-hero-title em { display: inline; }
  .home-hero-copy { top: 25%; right: 24px; bottom: auto; left: 24px; width: auto; }
  .home-hero-copy .hero-lead { max-width: 340px; font-size: 13px; }
  .home-hero-explore { top: auto; right: 24px; bottom: 15%; }
}
@media (max-width: 380px) {
  .home-page .home-hero-title { font-size: clamp(37px, 11.9vw, 45px); }
  .home-hero-copy { top: 25%; right: 18px; left: 18px; }
  .home-hero-explore { right: 18px; bottom: 15%; }
}

/* Keep the mobile landing canvas viewport-wide even inside a constrained wrapper. */
@media (max-width: 760px) {
  html, body.home-page { width: 100%; min-width: 0; overflow-x: clip; }
  .home-page #main-content { width: 100%; min-width: 0; }
  .home-page .home-hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
  }
  .home-page .main-nav { width: 100vw; max-width: 100vw; }
  .music-volume-control .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}

/* Swarm Rebuild: crosshair frames, alignment guides, text reveal and final flock. */
.swarm-console { display: grid; grid-template-columns: auto minmax(58px, 100px) auto auto; align-items: center; }
.swarm-console[hidden] { display: none; }
.swarm-console-state strong { display: flex; align-items: center; gap: 6px; }
.swarm-console-state strong i { padding: 2px 4px; border: 1px solid #b7ee7145; border-radius: 4px; color: #b7ee71; font-size: 7px; font-style: normal; }
.swarm-progress { width: 72px; height: 3px; overflow: hidden; border-radius: 99px; background: #ffffff20; }
.swarm-progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: #b7ee71; transform: scaleX(0); transform-origin: left; transition: transform .24s ease; }
.swarm-cursor-layer { z-index: 151; }
.swarm-agent { gap: 4px; filter: drop-shadow(0 2px 4px #0008); }
.swarm-agent svg { width: 20px; height: 20px; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--agent-color) 50%, transparent)); }
.swarm-agent span { padding: 3px 6px; border: 1px solid color-mix(in srgb, var(--agent-color) 45%, transparent); background: #101713ee; color: var(--agent-color); font-size: 7px; letter-spacing: .45px; }
.swarm-agent span b { margin-left: 4px; color: #e9eee7; font-size: 6px; font-weight: 600; }
body.swarm-playing [data-swarm-block][data-swarm-state="mark"]:after,
body.swarm-playing [data-swarm-block][data-swarm-state="rough"]:after { content: attr(data-swarm-tool) ' · ' attr(data-swarm-agent) ' · ' attr(data-swarm-size); border-radius: 2px; outline-color: #b7ee71; background: #b7ee7108; color: #557c36; animation: swarm-frame-in .36s ease-out both; }
body.swarm-playing [data-swarm-block][data-swarm-state="rough"]:after { outline-color: #93c85f; background: #93c85f0c; }
body.swarm-playing [data-swarm-block][data-swarm-state="rough"]:before { background: repeating-linear-gradient(90deg, #c6dfac 0 1px, transparent 1px 24px) 0 0 / 100% 1px no-repeat, repeating-linear-gradient(0deg, #c6dfac 0 1px, transparent 1px 24px) 0 0 / 1px 100% no-repeat, linear-gradient(#dfe8d8 0 0) 8% 18%/48% 8px no-repeat, linear-gradient(#e7ece3 0 0) 8% 43%/82% 6px no-repeat, linear-gradient(#e7ece3 0 0) 8% 62%/67% 6px no-repeat, linear-gradient(#e7ece3 0 0) 8% 81%/76% 6px no-repeat; }
body.swarm-playing [data-swarm-block][data-swarm-state="type"] > * { opacity: 1 !important; animation: swarm-type-in .48s cubic-bezier(.2,.75,.25,1) both; animation-delay: calc(var(--swarm-order, 0) * 55ms); }
body.swarm-playing [data-swarm-block][data-swarm-state="type"]:before { content: ''; position: absolute; z-index: 9; top: 45%; left: 8%; width: 2px; height: 1.2em; background: #b7ee71; box-shadow: 0 0 12px #b7ee71; pointer-events: none; animation: swarm-caret .75s steps(2, start) infinite; }
body.swarm-playing [data-swarm-block][data-swarm-state="done"]:after { box-shadow: inset 0 0 0 2px #b7ee71, 0 0 24px #b7ee7180; }
body.swarm-playing [data-swarm-piece] { position: relative; transition: outline-color .18s ease, box-shadow .18s ease, filter .18s ease; }
body.swarm-playing [data-swarm-piece]:not([data-swarm-piece-state="done"]) { opacity: 0 !important; visibility: hidden; pointer-events: none; }
body.swarm-playing [data-swarm-piece-state="mark"] { outline: 1px dashed #8ebf5d; outline-offset: 3px; filter: drop-shadow(0 0 5px #b7ee7166); }
body.swarm-playing [data-swarm-piece-state="rough"] { outline: 1px solid #b7ee71; outline-offset: 3px; box-shadow: 0 0 0 5px #b7ee711c; }
body.swarm-playing [data-swarm-piece-state="done"] { visibility: visible; animation: swarm-piece-land .3s ease-out both; }
@keyframes swarm-frame-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes swarm-type-in { from { opacity: 0 !important; filter: blur(4px); clip-path: inset(0 100% 0 0); transform: translateY(3px); } to { opacity: 1 !important; filter: blur(0); clip-path: inset(0 0 0 0); transform: translateY(0); } }
@keyframes swarm-caret { 50% { opacity: 0; } }
@keyframes swarm-piece-land { 0% { filter: brightness(1.28); } 100% { filter: brightness(1); } }
@media (max-width: 760px) {
  .swarm-console { grid-template-columns: auto minmax(30px, 64px) auto auto; right: 8px; bottom: 9px; gap: 4px; padding: 6px; }
  .swarm-console-state { gap: 5px; }
  .swarm-console-state small { max-width: 105px; font-size: 6px; }
  .swarm-progress { width: 38px; }
  .swarm-console button { padding: 6px 7px; font-size: 6px; }
  .swarm-agent span { padding: 2px 4px; font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  body.swarm-playing [data-swarm-block][data-swarm-state="type"] > * { animation: none; }
  body.swarm-playing [data-swarm-block][data-swarm-state="type"]:before { animation: none; }
  .swarm-progress span { transition: none; }
}

/* Give the TradingView chart enough room to show the full toolbar and plot. */
.market-chart { height: 500px; min-height: 500px; }
.market-chart { position: relative; }
.stock-chart-status { min-height: 100%; display: grid; place-content: center; gap: 12px; color: #778278; font: 12px var(--sans); text-align: center; }
.stock-chart-retry { justify-self: center; border: 1px solid #cbd4c7; background: #f7f8f5; padding: 8px 12px; color: #304130; cursor: pointer; font: 600 11px var(--sans); }
.market-chart .tradingview-widget-container__widget,
.market-chart iframe { height: 100% !important; min-height: 480px; }
@media (max-width: 760px) {
  .market-chart { height: 430px; min-height: 430px; }
  .market-chart .tradingview-widget-container__widget,
  .market-chart iframe { min-height: 410px; }
}

/* Social profile cards, adapted to the portfolio's paper and olive palette. */
.social-profile-section { padding-top: clamp(76px, 10vw, 132px); padding-bottom: clamp(76px, 10vw, 132px); }
.social-network-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: 1100px; }
.social-network-card { --card-rotate-x: 0deg; --card-rotate-y: 0deg; position: relative; isolation: isolate; overflow: hidden; padding: 28px; color: #f4f6ef; background: radial-gradient(ellipse at 10% 5%, rgba(185,233,130,.14), transparent 48%), linear-gradient(145deg, #20291f, #101612 72%); border: 1px solid rgba(255,255,255,.13); border-radius: 23px; box-shadow: 0 26px 65px -35px rgba(27,43,29,.6), inset 0 1px 0 rgba(255,255,255,.1); transform: rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y)); transform-style: preserve-3d; transition: transform .18s ease-out, box-shadow .3s ease; }
.instagram-card-glare { position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--glare-x,50%) var(--glare-y,50%), rgba(225,241,206,.2), transparent 57%); transition: opacity .25s ease; }
.social-network-card.is-tilting { box-shadow: 0 34px 75px -34px rgba(27,43,29,.72), inset 0 1px 0 rgba(255,255,255,.14); }
.social-network-card.is-tilting .instagram-card-glare { opacity: 1; }
.instagram-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 21px; transform: translateZ(24px); }
.instagram-avatar { position: relative; width: 76px; height: 76px; padding: 3px; border-radius: 50%; background: linear-gradient(145deg, #d9e9c9, #88a874 58%, #3f5a3e); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.instagram-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% 40%; border: 2px solid #18211b; border-radius: 50%; }
.instagram-avatar .github-profile-logo { display: block; width: 37px; height: 37px; margin: 17px auto 0; color: #f4f6ef; }
.instagram-brand { display: grid; width: 39px; height: 39px; place-items: center; color: #d9e8c9; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.instagram-brand svg { width: 19px; height: 19px; }
.instagram-card-identity { transform: translateZ(17px); }
.instagram-card-identity h3 { margin: 0; color: #f6f6f0; font: 600 21px/1.2 var(--display); letter-spacing: -.5px; }
.instagram-card-identity>p { margin: 5px 0 0; color: rgba(244,246,239,.52); font-size: 11px; }
.instagram-follow-link { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; color: #1d281d; background: linear-gradient(110deg, #c9e9a6, #a9d77d 55%, #c5e99e); border-radius: 11px; box-shadow: 0 9px 23px rgba(147,190,103,.17); font-size: 11px; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; transform: translateZ(26px); }
.instagram-follow-link:hover { box-shadow: 0 12px 28px rgba(147,190,103,.3); transform: translateZ(31px) translateY(-1px); }
.instagram-follow-link svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .social-network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .social-profile-section { padding-top: 64px; padding-bottom: 68px; } .social-network-grid { grid-template-columns: 1fr; width: min(100%, 390px); margin-inline: auto; gap: 14px; } .social-network-card { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { .social-network-card, .instagram-follow-link, .instagram-card-glare { transition: none; } }

/* Slim background-music control; audio is supplied as a local licensed file. */
.music-dock { position: fixed; z-index: 70; left: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); min-height: 52px; padding: 7px 10px; border: 1px solid #ffffff24; border-radius: 15px; background: #101713f2; color: #f1f5ef; box-shadow: 0 12px 40px #0004; backdrop-filter: blur(14px); }
.music-dock-top { display: flex; align-items: center; gap: 9px; min-height: 36px; }
.music-track-meta { display: flex; flex: 1 1 86px; min-width: 64px; flex-direction: column; line-height: 1.25; }
.music-track-meta strong { font: 700 11px var(--display); }
.music-track-meta span { max-width: 155px; overflow: hidden; color: #9ba79b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.music-equalizer { display: flex; height: 22px; align-items: center; gap: 2px; color: #b7ee71; }
.music-equalizer i { display: block; width: 2px; height: 4px; border-radius: 3px; background: currentColor; transform-origin: center; }
.music-dock.is-playing .music-equalizer i { animation: music-eq .65s ease-in-out infinite alternate; }
.music-dock.is-playing .music-equalizer i:nth-child(3n) { animation-duration: .48s; }
.music-dock.is-playing .music-equalizer i:nth-child(3n + 1) { animation-duration: .8s; }
.music-dock button { flex: none; min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid #ffffff24; border-radius: 999px; background: #1b261f; color: #eaf3e5; font-size: 10px; font-weight: 700; cursor: pointer; }
.music-dock button:hover:not(:disabled) { border-color: #b7ee71; color: #b7ee71; }
.music-dock.needs-user-action [data-music-toggle] { border-color: #b7ee71; background: #b7ee71; color: #172019; }
.music-dock button:disabled { opacity: .55; cursor: default; }
.music-volume-control { display: flex; flex: none; align-items: center; gap: 5px; }
.music-volume-control input[type="range"] { width: 76px; height: 22px; margin: 0; accent-color: #b7ee71; cursor: pointer; }
.music-volume-control input[type="range"]:focus-visible { outline: 2px solid #b7ee71; outline-offset: 3px; border-radius: 6px; }
.music-volume-control input[type="range"]:disabled { opacity: .5; cursor: default; }
.music-volume-control output { width: 28px; color: #c3cfbd; font: 700 8px var(--sans); text-align: right; }
.music-dock-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes music-eq { from { height: 4px; } to { height: 20px; } }
@media (max-width: 760px) { .music-dock { left: 9px; bottom: 9px; width: min(340px, calc(100vw - 18px)); padding-inline: 8px; } .music-dock-top { gap: 6px; } .music-volume-control input[type="range"] { width: 66px; } }
@media (prefers-reduced-motion: reduce) { .music-dock.is-playing .music-equalizer i { animation: none; height: 8px; } }

/* Compact, thumb-friendly controls with space for mobile safe areas. */
.swarm-console { grid-template-columns: minmax(0,1fr) 54px 30px 26px; width: min(350px,calc(100vw - 24px)); gap: 6px; padding: 6px 8px; }
.swarm-console-state { min-width: 0; gap: 7px; }
.swarm-console-state > div { min-width: 0; }
.swarm-console-state strong { white-space: nowrap; }
.swarm-console-state small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swarm-console.is-complete { grid-template-columns: minmax(0,1fr) 54px 30px; }
.swarm-console button { display: grid; width: 28px; min-width: 28px; height: 28px; place-items: center; padding: 0; font-size: 13px; line-height: 1; }
.swarm-console button[hidden] { display: none !important; }
.swarm-console-skip { width: 24px !important; min-width: 24px !important; height: 24px !important; }
@media (max-width: 680px) {
  .swarm-console { right: 10px; bottom: calc(9px + env(safe-area-inset-bottom)); width: min(350px,calc(100vw - 20px)); grid-template-columns: minmax(0,1fr) 42px 30px 26px; gap: 5px; padding: 5px 7px; }
  .swarm-console.is-complete { grid-template-columns: minmax(0,1fr) 42px 30px; }
  .swarm-console-state { gap: 6px; padding-inline: 2px; }
  .swarm-console-state strong { gap: 5px; font-size: 7px; }
  .swarm-console-state small { max-width: 100%; font-size: 7px; }
  .swarm-console-state strong i { padding: 1px 4px; font-size: 7px; }
  .swarm-progress { width: auto; }
  .swarm-console button { width: 28px; min-width: 28px; height: 28px; font-size: 13px; }
  .swarm-console-skip { width: 24px !important; min-width: 24px !important; height: 24px !important; }
  .swarm-agent span { display: none; }
  .music-dock { left: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); width: min(340px,calc(100vw - 20px)); padding-inline: 8px; }
  .music-volume-control { gap: 3px; }
  .music-volume-control input[type="range"] { width: 62px; }
  .music-volume-control output { width: 25px; font-size: 7px; }
}
@media (max-width: 360px) {
  .swarm-console { right: 8px; width: calc(100vw - 16px); grid-template-columns: minmax(0,1fr) 34px 28px 24px; gap: 4px; }
  .swarm-console.is-complete { grid-template-columns: minmax(0,1fr) 34px 28px; }
  .music-equalizer { gap: 1px; }
  .music-equalizer i { width: 1px; }
  .music-volume-control input[type="range"] { width: 54px; }
}

@media (max-width: 680px) {
  .public-site .menu-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
}
