:root {
  --bg: #f3f0ea;
  --ink: #1a1a1a;
  --muted: #5d5d5d;
  --accent: #c9793c;
  --accent-dark: #8a4d24;
  --panel: #ffffff;
  --panel-border: #e1dbd2;
  --shadow: 0 18px 60px rgba(20, 17, 12, 0.12);
  --hero-bg: #fff7ec;
  --noise-opacity: 0.04;
}

html[data-theme="dark"] {
  --bg: #0f1110;
  --ink: #f4efe6;
  --muted: #c1b8ad;
  --accent: #e5a46a;
  --accent-dark: #f1c59a;
  --panel: #171a18;
  --panel-border: #2b2f2c;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --hero-bg: #161410;
  --noise-opacity: 0.12;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #f7efe0 0%, #efe7dc 35%, #e7dfd4 100%);
  letter-spacing: 0.01em;
}

html[data-theme="dark"] body {
  background: radial-gradient(circle at top left, #1a1a16 0%, #121312 45%, #0b0c0b 100%);
}

img {
  max-width: 100%;
  display: block;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
  opacity: var(--noise-opacity);
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 6vw 16px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--ink);
  color: #f7f2ea;
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-size: 20px;
  letter-spacing: 0.08em;
}

html[data-theme="dark"] .brand-mark {
  background: #f4efe6;
  color: #171514;
}

.brand-text .name {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 20px;
}

.brand-text .role {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mode-toggle {
  border: 1px solid var(--panel-border);
  background: var(--hero-bg);
  color: var(--ink);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  justify-content: center;
}

.mode-toggle__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent) 0 35%, transparent 35% 100%);
  border: 1px solid var(--panel-border);
  box-shadow: inset 0 0 0 2px var(--panel);
}

html[data-theme="dark"] .mode-toggle__icon {
  background: radial-gradient(circle at 30% 35%, #f4efe6 0 35%, transparent 36%),
    radial-gradient(circle at 70% 65%, #f4efe6 0 24%, transparent 25%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  padding: 40px 6vw 72px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  background: var(--hero-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--ink);
  color: #f7f2ea;
  border-color: var(--ink);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 18px 20px;
}

.meta-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 6px;
}

.meta-value {
  font-weight: 600;
}

.hero-media {
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--panel-border);
  padding: 16px;
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .hero-media {
  background: var(--panel);
}

.hero-media img {
  border-radius: 22px;
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.media-caption {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 20px 6vw 80px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.panel h2,
.section-title h2,
.cta h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(26px, 3vw, 36px);
  margin-top: 0;
}

.panel p {
  color: var(--muted);
  line-height: 1.6;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list li {
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  background: var(--hero-bg);
}

.skills-grid {
  display: grid;
  gap: 18px;
}

.skills-grid span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
}

.skills-grid p {
  margin: 6px 0 0;
}

.timeline {
  padding: 20px 6vw 90px;
}

.section-title {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-title p {
  color: var(--muted);
  margin-top: 8px;
}

.timeline-list {
  display: grid;
  gap: 22px;
}

.timeline-item {
  background: var(--panel);
  border-radius: 22px;
  border: 1px solid var(--panel-border);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.timeline-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 0;
}

.timeline-item p {
  color: var(--muted);
  line-height: 1.6;
}

.clients {
  padding: 20px 6vw 80px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.client-card {
  background: var(--hero-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.testimonials {
  padding: 20px 6vw 90px;
}

.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 420px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.testimonial-track::-webkit-scrollbar {
  height: 8px;
}

.testimonial-track::-webkit-scrollbar-thumb {
  background: var(--panel-border);
  border-radius: 999px;
}

.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 480px;
  overflow: hidden;
}

.testimonial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.testimonial-footer {
  border-top: 1px solid var(--panel-border);
  background: var(--hero-bg);
  margin: 0 -22px -22px;
  padding: 12px 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.testimonial-name {
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-company {
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta {
  padding: 20px 6vw 100px;
}

.cta-card {
  background: var(--ink);
  color: #f7f2ea;
  padding: 42px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .cta-card {
  background: #f4efe6;
  color: #171514;
}

html[data-theme="dark"] .cta-card p {
  color: #3a352e;
}

html[data-theme="dark"] .cta .btn {
  border-color: #3a352e;
  color: #171514;
}

html[data-theme="dark"] .cta .btn.primary {
  background: #171514;
  color: #f4efe6;
  border-color: #171514;
}

html[data-theme="dark"] .btn.primary {
  background: #f4efe6;
  color: #171514;
  border-color: #f4efe6;
}

.cta-card p {
  color: #d6cfc6;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.cta .btn {
  background: transparent;
  border-color: #d6cfc6;
  color: #f7f2ea;
}

.cta .btn.primary {
  background: #f7f2ea;
  color: var(--ink);
  border-color: #f7f2ea;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 30px 6vw 40px;
  border-top: 1px solid #d7cfbf;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.8s ease forwards;
}

[data-reveal]:nth-of-type(1) { animation-delay: 0.1s; }
[data-reveal]:nth-of-type(2) { animation-delay: 0.2s; }
[data-reveal]:nth-of-type(3) { animation-delay: 0.3s; }
[data-reveal]:nth-of-type(4) { animation-delay: 0.4s; }

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

@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    height: auto;
  }

  .cta-card {
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

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