.home {
  --muted: #c9b8ad;
  background: var(--wine-deep);
}

html { scroll-behavior: smooth; scroll-padding-top: 116px; }
.home .wrap { max-width: 1200px; padding-inline: 40px; }
.home ::selection { background: var(--cream); color: var(--wine); }
.home :focus-visible { outline: 2px solid var(--rose); outline-offset: 6px; }
.home .skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  padding: 12px 20px;
  background: var(--cream);
  color: var(--wine);
  transform: translateY(-160%);
  z-index: 20;
}
.home .skip-link:focus { transform: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(24, 10, 15, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-row { min-height: 128px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; white-space: nowrap; }
.brand img { width: 92px; height: 92px; border-radius: 6px; }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.top-nav a { font-size: 13px; text-decoration: none; color: var(--muted); transition: color 180ms ease, border-color 180ms ease; }
.top-nav a:hover { color: var(--cream); }
.top-nav .nav-cta { padding: 11px 20px; border: 1px solid var(--line); color: var(--cream); }
.top-nav .nav-cta:hover { border-color: var(--cream); }
.eyebrow { margin: 0; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0.18em; line-height: 1.6; text-transform: uppercase; }
.hero { padding: 100px 0 0; position: relative; overflow: hidden; }
.hero h1 {
  font-size: clamp(46px, 7.6vw, 100px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 32px 0 42px;
}
.home em { font-weight: inherit; color: #dec2b6; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero-bottom p { max-width: 430px; margin: 0; font-size: 15px; line-height: 1.9; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; width: fit-content; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 13px; line-height: 1.6; transition: border-color 180ms ease; }
.text-link:hover { border-color: var(--cream); }
.text-link span, .contact-link span { display: inline-block; transition: transform 200ms ease; }
.text-link:hover span, .contact-link:hover span { transform: translate(2px, -2px); }
.hero-index { margin-top: 76px; padding: 18px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }
.work-section { padding: 112px 0; position: relative; overflow: hidden; }
.section-heading { margin-bottom: 52px; }
.section-heading h2, .contact-section h2 { font-size: clamp(34px, 4.5vw, 56px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.2; margin: 16px 0 0; }
.project { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 88px); }
.project + .project { margin-top: 96px; }
.project-art { min-height: 440px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); overflow: hidden; }
.hommie-art { background: radial-gradient(ellipse at 30% 50%, #503044 0%, #2f1821 65%); }
.art-top, .art-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 10px; color: var(--cream-soft); }
.status { border: 1px solid currentColor; border-radius: 20px; padding: 6px 10px; font-size: 9px; white-space: nowrap; }
.hommie-icon { margin: 40px 0 24px; width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 12px 40px #180a0f33; }
.art-title { font-family: var(--font-serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 42px; }
.art-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.project-copy h3 { font-size: clamp(34px, 4vw, 48px); font-weight: 500; letter-spacing: -0.03em; margin: 16px 0 24px; }
.project-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.9; color: var(--muted); margin: 0 0 18px; max-width: 380px; }
.project-copy .text-link { margin-top: 12px; }
.download-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.download-links a { color: var(--muted); font-size: 12px; text-underline-offset: 5px; }
.download-links a:hover { color: var(--cream); }
.days-art { background: radial-gradient(ellipse at 70% 45%, #35301f 0%, #1f1c14 65%); position: relative; overflow: hidden; }
.journal-preview { padding: 48px 0; position: relative; z-index: 1; }
.journal-label { display: block; font-size: 10px; letter-spacing: 0.04em; color: var(--cream-soft); }
.journal-preview p { font-family: var(--font-serif); font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.025em; line-height: 1.4; margin: 24px 0; }
.journal-line { display: block; height: 1px; background: var(--line); width: 100%; margin-bottom: 20px; position: relative; z-index: 1; }
.founder-section { border-top: 1px solid var(--line); padding: 100px 0; background: var(--wine); position: relative; overflow: hidden; }
.founder-layout { display: grid; grid-template-columns: 176px minmax(0, 560px); gap: 48px; align-items: start; }
.founder-photo { width: 176px; height: 208px; object-fit: cover; object-position: 42% center; border-radius: 2px; }
.founder-copy h3 { margin: 0 0 10px; font-size: 28px; font-weight: 500; }
.founder-copy p { margin: 0 0 18px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.founder-copy .founder-role { font-size: 11px; letter-spacing: 0.03em; margin-bottom: 26px; }
.founder-links { display: flex; flex-wrap: wrap; gap: 28px; }
.contact-section { padding: 100px 0; }
.contact-layout { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.contact-section p:not(.eyebrow) { font-size: 14px; line-height: 1.9; color: var(--muted); margin: 24px 0 0; }
.contact-link { display: inline-flex; align-items: center; gap: 48px; padding: 20px 0; border-bottom: 1px solid var(--cream); font-size: 15px; text-decoration: none; white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--cream); }

/* Projects page: Apps / Web categories */
.category-section { padding: 96px 0; position: relative; overflow: hidden; }
.category-section + .category-section { border-top: 1px solid var(--line); }
.web-list { border-top: 1px solid var(--line); position: relative; z-index: 1; }
.web-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.web-row h3 { font-size: 21px; font-weight: 500; margin: 0; }
.web-row p { margin: 6px 0 0; font-size: 13px; color: var(--muted); max-width: 32rem; }
.web-row .text-link { margin: 0; flex-shrink: 0; }

/* Decorative botanical outlines, filling blank space. Purely ornamental. */
.bg-decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-color: var(--cream);
  opacity: 0.1;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.bg-decor.rose-tint { background-color: var(--rose); opacity: 0.12; }
[data-reveal], .hero > .wrap, .section-heading, .founder-layout, .contact-layout, .journal-preview, .project-copy, .web-list {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .bg-decor.sway { animation: sway 9s ease-in-out infinite alternate; transform-origin: 50% 85%; }
  .bg-decor.drift { animation: drift 12s ease-in-out infinite alternate; }
}
@keyframes sway {
  from { transform: rotate(-3deg); }
  to { transform: rotate(3deg); }
}
@keyframes drift {
  from { transform: translate(0, 0) rotate(-2deg); }
  to { transform: translate(-10px, 8px) rotate(2deg); }
}

/* Elements stay visible until the observer is ready, including without JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  [data-reveal].reveal-ready.is-visible { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .header-row { gap: 16px; }
  .top-nav { gap: 12px; }
  .brand img { width: 72px; height: 72px; }
  .project { gap: 32px; grid-template-columns: 1fr 1fr; }
  .project-art { padding: 20px; }
  .art-top { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 130px; }
  .home .wrap { padding-inline: 24px; }
  .header-row { padding-block: 14px; min-height: 100px; gap: 14px; align-items: center; }
  .brand img { width: 56px; height: 56px; }
  .top-nav { display: grid; grid-template-columns: repeat(2, max-content); justify-items: end; gap: 12px 16px; }
  .top-nav a { font-size: 11px; }
  .top-nav .nav-cta { padding: 8px 10px; }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: clamp(42px, 9.5vw, 60px); margin-block: 28px 32px; }
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: 24px; }
  .hero-bottom p { font-size: 14px; }
  .hero-index { margin-top: 48px; font-size: 8px; }
  .work-section, .founder-section, .contact-section { padding-block: 64px; }
  .section-heading { margin-bottom: 32px; }
  .project { grid-template-columns: 1fr; gap: 28px; }
  .project + .project { margin-top: 64px; }
  .project-art { min-height: 380px; padding: 24px; }
  .art-title { font-size: 34px; }
  .project-copy h3 { margin-top: 12px; margin-bottom: 18px; }
  .project-copy > p:not(.eyebrow) { max-width: none; }
  .founder-layout { grid-template-columns: 1fr; gap: 28px; }
  .founder-photo { width: 128px; height: 152px; }
  .contact-layout { align-items: flex-start; flex-direction: column; gap: 20px; }
  .contact-link { gap: 56px; }
  .category-section { padding: 56px 0; }
  .web-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home *, .home *::before, .home *::after { transition: none; }
}
