:root {
  --bg: #f3eee5;
  --panel: #fbf8f2;
  --panel-soft: #efe7da;
  --text: #1f252b;
  --muted: #5e6772;
  --line: rgba(123, 137, 149, 0.18);
  --accent: #6f8797;
  --accent-soft: #5f7888;
  --max: 1080px;
  --shadow: 0 16px 36px rgba(38, 49, 58, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--text);
  background: var(--bg);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

.bg-layer {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(152, 175, 192, 0.24), transparent 40%),
    radial-gradient(circle at 10% 10%, rgba(211, 194, 171, 0.3), transparent 34%),
    linear-gradient(180deg, #f7f1e8 0%, #f3eee5 45%, #efe7dc 100%);
  z-index: -2;
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
}

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(243, 238, 229, 0.84);
  border-bottom: 1px solid rgba(123, 137, 149, 0.14);
  z-index: 10;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 160ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: #2f3a43;
}

.hero {
  padding: 7rem 0 4.6rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.01em;
}

h1 {
  margin-top: 0.95rem;
  max-width: 16ch;
  font-size: clamp(2rem, 6.4vw, 4rem);
  line-height: 1.07;
}

.hero-copy {
  margin: 1.2rem 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  margin-top: 2.05rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.72rem 1.12rem;
  border-radius: 0.58rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

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

.btn-primary {
  color: #fbf8f2;
  background: linear-gradient(90deg, #5f7888, #7f95a3);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(123, 137, 149, 0.28);
  background: rgba(255, 255, 255, 0.64);
}

.section {
  padding: 2.8rem 0;
}

section[id] {
  scroll-margin-top: 96px;
}

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

.section-lead {
  margin: 0.62rem 0 0;
  max-width: 64ch;
  color: var(--muted);
}

.card-grid,
.examples-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.card,
.examples-grid article {
  padding: 1.08rem 1.08rem 1rem;
  border: 1px solid rgba(123, 137, 149, 0.16);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 248, 242, 0.96));
  box-shadow: var(--shadow);
}

.card h3,
.examples-grid h3 {
  font-size: 1.02rem;
}

.card p,
.examples-grid p {
  margin: 0.58rem 0 0;
  color: var(--muted);
}

.jobs-page {
  padding: 6.4rem 0 1.2rem;
}

.jobs-hero {
  padding: 1.4rem 0 1.2rem;
}

.home-page,
.ai-page {
  padding: 6.4rem 0 1.2rem;
}

.home-hero,
.ai-hero {
  padding: 1.4rem 0 1.8rem;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 360px);
  gap: 1.5rem;
  align-items: center;
}

.home-intro h1 {
  max-width: 15ch;
}

.home-portrait {
  margin: 0;
  border: 1px solid rgba(123, 137, 149, 0.16);
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 248, 242, 0.96));
  box-shadow: 0 22px 48px rgba(38, 49, 58, 0.12);
}

.home-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.home-link-card {
  padding: 1.1rem 1.1rem 1rem;
  border: 1px solid rgba(123, 137, 149, 0.16);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 248, 242, 0.96));
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.home-link-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.home-link-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bio-page {
  padding: 6.4rem 0 1.2rem;
}

.bio-hero {
  padding: 1.4rem 0 1.8rem;
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
}

.bio-portrait {
  margin: 0;
  border: 1px solid rgba(123, 137, 149, 0.16);
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 248, 242, 0.96));
  box-shadow: 0 22px 48px rgba(38, 49, 58, 0.12);
}

.bio-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.bio-intro h1 {
  max-width: 18ch;
}

.bio-copy {
  max-width: 72ch;
}

.bio-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.07rem;
}

.bio-copy p:last-child {
  margin-bottom: 0;
}

.post-page {
  padding: 6.4rem 0 1.2rem;
}

.post-hero {
  padding: 1.4rem 0 1.2rem;
}

.post-service-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.post-service-card {
  padding: 1.08rem 1.08rem 1rem;
  border: 1px solid rgba(123, 137, 149, 0.16);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 248, 242, 0.96));
  box-shadow: var(--shadow);
}

.post-service-card h3 {
  font-size: 1.02rem;
}

.post-wide {
  grid-column: 1 / -1;
}

.post-list {
  margin: 0.72rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.post-list li {
  margin: 0.18rem 0;
}

.post-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.jobs-intro {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.jobs-grid {
  margin-top: 0.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.job-card {
  padding: 1.08rem 1.08rem 1rem;
  border: 1px solid rgba(123, 137, 149, 0.16);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 248, 242, 0.96));
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow);
}

.jobs-grid article {
  padding: 1.08rem 1.08rem 1rem !important;
  border: 1px solid rgba(123, 137, 149, 0.16) !important;
  border-radius: 0.9rem !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 248, 242, 0.96)) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.7rem !important;
  box-shadow: var(--shadow);
}

.job-card h2 {
  font-size: 1.02rem;
}

.jobs-grid article h2 {
  font-size: 1.02rem;
}

.job-meta {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.skills-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.skills-list li {
  margin: 0.16rem 0;
}

.job-card .btn {
  margin-top: auto;
  width: fit-content;
}

.jobs-grid article .btn {
  margin-top: auto;
  width: fit-content;
}

.job-card .btn-secondary,
.jobs-grid article .btn-secondary {
  color: #fbf8f2;
  background: linear-gradient(90deg, #5f7888, #7f95a3);
  border-color: transparent;
}

.job-card .btn-secondary:hover,
.jobs-grid article .btn-secondary:hover,
.job-card .btn-secondary:focus-visible,
.jobs-grid article .btn-secondary:focus-visible {
  border-color: rgba(224, 235, 252, 0.28);
}

.process-list {
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.62rem;
}

.process-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.86rem;
  align-items: center;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(123, 137, 149, 0.16);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 248, 242, 0.96));
  box-shadow: var(--shadow);
}

.process-list span {
  width: 52px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-size: 0.88rem;
  color: var(--accent);
  border-right: 1px solid rgba(123, 137, 149, 0.18);
}

.contact {
  margin-top: 0.6rem;
  border: 1px solid rgba(123, 137, 149, 0.16);
  border-radius: 1rem;
  padding: 1.4rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 248, 242, 0.96));
  box-shadow: var(--shadow);
}

.contact p {
  color: var(--muted);
}

.contact .contact-email {
  color: var(--accent-soft);
  text-decoration: none;
}

.contact .contact-email:visited {
  color: var(--accent-soft);
}

.contact-socials {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-socials a {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid rgba(123, 137, 149, 0.14);
  margin-top: 3.2rem;
  padding: 1.2rem 0 1.8rem;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-wrap p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 650ms cubic-bezier(0.25, 0.8, 0.28, 1) forwards;
}

.reveal-1 {
  animation-delay: 40ms;
}

.reveal-2 {
  animation-delay: 140ms;
}

.reveal-3 {
  animation-delay: 240ms;
}

.reveal-4 {
  animation-delay: 340ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .card-grid,
  .examples-grid,
  .jobs-grid,
  .post-service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-grid,
  .bio-grid {
    grid-template-columns: 1fr;
  }

  .home-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    min-height: 64px;
  }

  .top-nav {
    display: none;
  }

  .hero {
    padding-top: 5.7rem;
  }

  .jobs-page,
  .home-page,
  .bio-page,
  .ai-page,
  .post-page {
    padding-top: 5.2rem;
  }

  .hero-copy {
    font-size: 1.03rem;
  }

  .card-grid,
  .examples-grid,
  .jobs-grid,
  .post-service-grid {
    grid-template-columns: 1fr;
  }

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