:root {
  color-scheme: dark;
  --ink: #f7efe4;
  --muted: #b6a99d;
  --paper: #11100f;
  --paper-deep: #1d1a17;
  --panel: rgba(255, 249, 238, 0.075);
  --panel-strong: rgba(255, 249, 238, 0.12);
  --line: rgba(255, 246, 232, 0.14);
  --clay: #e08464;
  --moss: #9eb38f;
  --blue: #82abc5;
  --gold: #e0b85f;
  --white: #fffaf1;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(224, 184, 95, 0.16), transparent 26rem),
    radial-gradient(circle at 86% 8%, rgba(130, 171, 197, 0.13), transparent 28rem),
    radial-gradient(circle at 76% 72%, rgba(224, 132, 100, 0.1), transparent 32rem),
    linear-gradient(90deg, rgba(255, 246, 232, 0.035) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(180deg, #151311, #0f0e0d 58%, #17130f);
  color: var(--ink);
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 246, 232, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 246, 232, 0.02) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 74%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  background: var(--white);
  color: #17130f;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(17, 16, 15, 0.78);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 250, 241, 0.11);
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

main {
  overflow: hidden;
}

.section-grid,
.page-hero,
.projects-preview,
.project-collection,
.services-section,
.consulting-perspective,
.experience-band,
.about-layout,
.contact-hero {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero,
.consulting-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: 64px 0 72px;
}

.consulting-hero {
  grid-template-columns: minmax(0, 880px);
  align-content: center;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 0.98;
  font-weight: 650;
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 1.4rem;
  font-size: clamp(3.05rem, 7.2vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.hero-text,
.page-hero p,
.contact-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.9vw, 1.3rem);
}

.button-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--white);
  color: #151311;
  border-color: var(--white);
}

.button-secondary {
  background: rgba(255, 250, 241, 0.08);
  color: var(--ink);
}

.button:hover,
.project-action:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.07);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-atelier {
  position: relative;
  min-height: 590px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 20%, rgba(224, 132, 100, 0.18), transparent 22rem),
    radial-gradient(circle at 78% 72%, rgba(130, 171, 197, 0.16), transparent 20rem),
    linear-gradient(90deg, rgba(255, 246, 232, 0.05) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(180deg, rgba(255, 250, 241, 0.09), rgba(255, 250, 241, 0.035));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-atelier::before {
  content: "";
  position: absolute;
  inset: auto -12% -18% 18%;
  height: 58%;
  background:
    radial-gradient(circle at 34% 40%, rgba(224, 132, 100, 0.24), transparent 28%),
    radial-gradient(circle at 78% 32%, rgba(158, 179, 143, 0.22), transparent 30%),
    radial-gradient(circle at 58% 78%, rgba(130, 171, 197, 0.2), transparent 33%);
  filter: blur(18px);
  transform: rotate(-8deg);
}

.hero-atelier::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 83px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  filter: blur(18px);
}

.atelier-shelf {
  position: absolute;
  left: 9%;
  right: 9%;
  height: 1px;
  background: rgba(255, 246, 232, 0.14);
}

.shelf-top {
  top: 17%;
}

.shelf-bottom {
  bottom: 19%;
}

.phone-stack,
.book-stack,
.consulting-card {
  position: absolute;
  z-index: 3;
}

.phone-stack {
  left: 11%;
  top: 14%;
  width: 280px;
  height: 390px;
}

.phone-frame {
  position: absolute;
  width: 178px;
  height: 338px;
  padding: 13px 10px;
  border: 1px solid rgba(255, 246, 232, 0.18);
  border-radius: 27px;
  background: #1f1a18;
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.36);
}

.phone-main {
  left: 76px;
  top: 10px;
  transform: rotate(5deg);
}

.phone-back {
  left: 0;
  top: 66px;
  transform: rotate(-9deg);
  opacity: 0.94;
}

.phone-speaker {
  width: 44px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.25);
}

.app-screen {
  height: calc(100% - 15px);
  padding: 1rem 0.88rem;
  border-radius: 19px;
  color: var(--white);
}

.screen-prayer {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 253, 248, 0.28), transparent 34%),
    linear-gradient(160deg, #385f79, #5f7659 62%, #bb5c43);
}

.screen-play {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 253, 248, 0.28), transparent 28%),
    linear-gradient(160deg, #bb5c43, #c59b4f 58%, #385f79);
}

.screen-kicker {
  display: block;
  margin-bottom: 2.1rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-screen strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.02;
}

.screen-line,
.screen-button {
  display: block;
  height: 7px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.44);
}

.screen-line {
  width: 62%;
}

.screen-line.wide {
  width: 86%;
  margin-top: 2rem;
}

.screen-button {
  width: 54px;
  height: 28px;
  margin-top: 1.6rem;
  background: rgba(255, 253, 248, 0.78);
}

.avatar-row {
  display: flex;
  gap: 0.38rem;
  margin-top: 2rem;
}

.avatar-row i {
  width: 31px;
  height: 31px;
  border: 2px solid rgba(255, 253, 248, 0.62);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.22);
}

.book-stack {
  right: 9%;
  top: 17%;
  width: 210px;
  height: 278px;
}

.book-cover {
  position: absolute;
  border: 1px solid rgba(255, 246, 232, 0.16);
  border-radius: 6px;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.28);
}

.book-primary {
  inset: 8px 20px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.05rem;
  background:
    linear-gradient(90deg, rgba(33, 27, 24, 0.08) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(160deg, #f7efe4, #cdbba5);
  color: #1b1714;
  transform: rotate(-6deg);
}

.book-primary span,
.book-secondary span,
.consulting-card span {
  color: var(--clay);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-primary strong {
  max-width: 115px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.book-secondary {
  left: 38px;
  right: 0;
  top: 32px;
  bottom: 32px;
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
  background:
    linear-gradient(180deg, rgba(56, 95, 121, 0.2), transparent 42%),
    #5f7659;
  transform: rotate(8deg);
  z-index: -1;
}

.book-secondary span {
  color: rgba(255, 253, 248, 0.82);
}

.consulting-card {
  right: 9%;
  bottom: 18%;
  width: 250px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.1);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.consulting-card strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.02;
}

.audit-bars {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.audit-bars i {
  height: 8px;
  border-radius: 999px;
  background: rgba(158, 179, 143, 0.32);
}

.audit-bars i:nth-child(1) {
  width: 94%;
}

.audit-bars i:nth-child(2) {
  width: 72%;
  background: rgba(224, 132, 100, 0.32);
}

.audit-bars i:nth-child(3) {
  width: 82%;
  background: rgba(130, 171, 197, 0.32);
}

.project-category {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.projects-preview,
.project-collection,
.services-section,
.consulting-perspective,
.experience-band,
.about-layout,
.contact-hero {
  padding: 48px 0 88px;
}

.project-grid,
.service-grid {
  display: grid;
  gap: 1rem;
}

.project-card,
.consulting-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.095), rgba(255, 250, 241, 0.045)),
    linear-gradient(90deg, rgba(255, 246, 232, 0.035) 1px, transparent 1px) 0 0 / 28px 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.project-index {
  color: var(--moss);
  font-weight: 900;
}

.project-card p,
.project-row p,
.about-copy p,
.consulting-note p {
  color: var(--muted);
}

.text-link,
.project-action {
  display: inline-flex;
  width: fit-content;
  color: var(--ink);
  font-weight: 900;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.muted-action,
.disabled-button {
  color: var(--muted);
  text-decoration: none;
}

.disabled-button {
  border-color: var(--line);
  background: rgba(255, 250, 241, 0.06);
}

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

.project-card {
  position: relative;
  min-height: 300px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--clay);
}

.project-card:nth-child(2)::before,
.project-card:nth-child(5)::before {
  background: var(--moss);
}

.project-card:nth-child(3)::before,
.project-card:nth-child(6)::before {
  background: var(--blue);
}

.project-card:nth-child(2n) {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.12), rgba(255, 250, 241, 0.05)),
    linear-gradient(90deg, rgba(255, 246, 232, 0.035) 1px, transparent 1px) 0 0 / 28px 28px;
}

.project-card:nth-child(3n) {
  border-color: rgba(158, 179, 143, 0.28);
}

.page-hero {
  min-height: 56svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 78px 0 60px;
}

.project-collection {
  display: grid;
  gap: 1px;
  padding-top: 0;
}

.project-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: clamp(1.3rem, 3vw, 2.2rem) 0;
  border-top: 1px solid var(--line);
}

.project-row:last-child {
  border-bottom: 1px solid var(--line);
}

.project-row h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
}

.project-row > div:last-child {
  max-width: 760px;
}

.project-row .button {
  margin-top: 1.2rem;
}

.consulting-note {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-left: 6px solid var(--moss);
}

.consulting-perspective {
  padding-top: 0;
}

.consulting-note h2 {
  max-width: 900px;
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.consulting-note p {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

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

.service-pill,
.experience-list span,
.principles span {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.075);
  font-weight: 850;
}

.experience-band {
  margin-bottom: 72px;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 22%, rgba(224, 132, 100, 0.16), transparent 22rem),
    linear-gradient(180deg, rgba(255, 250, 241, 0.1), rgba(255, 250, 241, 0.045));
  color: var(--ink);
  box-shadow: var(--shadow);
}

.experience-band .kicker {
  color: var(--gold);
}

.experience-band h2 {
  max-width: 780px;
}

.experience-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.experience-list span {
  border-color: rgba(255, 246, 232, 0.16);
  background: rgba(255, 250, 241, 0.06);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-copy h2 {
  max-width: 720px;
}

.about-copy p {
  max-width: 760px;
  font-size: 1.12rem;
}

.principles {
  display: grid;
  gap: 0.8rem;
}

.contact-hero {
  min-height: calc(100svh - 168px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-hero h1 {
  max-width: 1050px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

@media (max-width: 860px) {
  .site-header {
    padding: 14px 20px;
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 241, 0.08);
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: fixed;
    inset: 70px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 16, 15, 0.96);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    border-radius: var(--radius);
  }

  .hero,
  .consulting-hero,
  .about-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-atelier {
    min-height: 440px;
  }

  .phone-stack {
    left: 8%;
    top: 15%;
    transform: scale(0.86);
    transform-origin: top left;
  }

  .book-stack {
    right: 7%;
    top: 18%;
    transform: scale(0.84);
    transform-origin: top right;
  }

  .consulting-card {
    right: 8%;
    bottom: 17%;
    width: min(250px, 58%);
  }

  .project-grid,
  .service-grid,
  .experience-list {
    grid-template-columns: 1fr;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .project-row .button {
    width: fit-content;
  }

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

@media (max-width: 520px) {
  .section-grid,
  .page-hero,
  .projects-preview,
  .project-collection,
  .services-section,
  .consulting-perspective,
  .experience-band,
  .about-layout,
  .contact-hero {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .brand span:last-child {
    max-width: 130px;
    line-height: 1.1;
  }

  .button {
    width: 100%;
  }

  .hero-atelier {
    min-height: 380px;
  }

  .phone-stack {
    left: 3%;
    top: 13%;
    transform: scale(0.68);
  }

  .book-stack {
    right: 1%;
    top: 15%;
    transform: scale(0.66);
  }

  .consulting-card {
    left: 8%;
    right: 8%;
    bottom: 18%;
    width: auto;
    padding: 0.85rem;
  }

  .consulting-card strong {
    font-size: 1.25rem;
  }

}
