:root {
  --radius: 1rem;
  --background: oklch(0.953 0.012 70);
  --foreground: oklch(0.2 0.01 60);
  --card: oklch(0.985 0.008 80);
  --secondary: oklch(0.92 0.015 70);
  --muted-foreground: oklch(0.48 0.015 60);
  --accent: oklch(0.8 0.1 45);
  --accent-deep: oklch(0.64 0.14 40);
  --border: oklch(0.87 0.015 70);
  --ink: oklch(0.22 0.012 60);
  --ink-foreground: oklch(0.95 0.012 70);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --page: 80rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-md {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: 2.5rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--ink-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.btn:hover {
  gap: 0.75rem;
}

.btn-light {
  background: var(--background);
  color: var(--foreground);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink-foreground);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--ink) 70%, transparent),
    color-mix(in srgb, var(--ink) 35%, transparent),
    transparent
  );
}

.hero-inner {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 2rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: color-mix(in srgb, var(--ink-foreground) 85%, transparent);
  font-size: 0.875rem;
}

.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero-copy {
  max-width: 42rem;
  padding-block: 4rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.95;
}

.hero-lede {
  max-width: 24rem;
  margin: 1.5rem 0 0;
  color: color-mix(in srgb, var(--ink-foreground) 85%, transparent);
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.hero-copy .btn {
  margin-top: 2rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.pills-label {
  margin-right: 0.5rem;
  color: color-mix(in srgb, var(--ink-foreground) 70%, transparent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--ink-foreground) 20%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink-foreground) 10%, transparent);
  padding: 0.5rem 1rem;
  backdrop-filter: blur(8px);
}

.pains {
  position: relative;
  height: 340vh;
  background: linear-gradient(
    to bottom right,
    var(--ink) 0%,
    var(--ink) 50%,
    color-mix(in srgb, var(--accent) 60%, transparent) 100%
  );
  color: var(--ink-foreground);
}

.pains-sticky {
  position: sticky;
  top: 0;
  display: flex;
  height: 100svh;
  align-items: center;
  overflow: hidden;
}

.pains-grid {
  display: grid;
  width: 100%;
  align-items: center;
  gap: 2.5rem;
}

.pains h2,
.services h2,
.about h2,
.cases h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.25;
}

.pains-intro {
  max-width: 28rem;
  margin: 1.25rem 0 0;
  color: color-mix(in srgb, var(--ink-foreground) 75%, transparent);
}

.pain-nav {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.pain-nav button {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  color: color-mix(in srgb, var(--ink-foreground) 50%, transparent);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: left;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.pain-nav button:hover {
  color: color-mix(in srgb, var(--ink-foreground) 80%, transparent);
}

.pain-nav button.is-active {
  background: color-mix(in srgb, var(--ink-foreground) 15%, transparent);
  color: var(--ink-foreground);
}

.pain-card {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--ink-foreground) 10%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--ink-foreground) 5%, transparent);
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.pain-panel {
  display: none;
  min-height: 100%;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.pain-panel.is-active {
  display: flex;
}

.pain-icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
}

.pain-copy h4 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
}

.pain-copy p {
  margin: 1rem 0 0;
  color: color-mix(in srgb, var(--ink-foreground) 75%, transparent);
}

.pain-panel.is-active .pain-icon {
  animation: pain-icon-in 0.5s ease;
}

.pain-panel.is-active .pain-copy {
  animation: pain-copy-in 0.5s ease;
}

@keyframes pain-icon-in {
  from {
    opacity: 0;
    transform: scale(0.75);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pain-copy-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.quote-band {
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}

.quote-band .wrap {
  padding-block: 4rem;
}

.quote-icon {
  color: color-mix(in srgb, var(--foreground) 40%, transparent);
}

.quote-band blockquote {
  margin: 1.5rem 0 0;
}

.quote-band blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.875rem;
  line-height: 1.25;
}

.quote-band blockquote p + p {
  margin-top: 1.25rem;
}

.quote-band strong {
  font-weight: 700;
}

.quote-by {
  margin-top: 2rem;
  font-size: 0.875rem;
}

.quote-by p {
  margin: 0;
}

.quote-by p:first-child {
  font-weight: 600;
}

.quote-by p:last-child {
  color: color-mix(in srgb, var(--foreground) 65%, transparent);
}

.quote-band-second {
  margin-bottom: 6rem;
}

.quote-band-second blockquote p {
  font-size: 1.5rem;
  line-height: 1.375;
}

.services {
  padding-block: 6rem;
}

.services h2 {
  max-width: 42rem;
}

.accent-deep {
  color: var(--accent-deep);
}

.services-lede {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  color: var(--muted-foreground);
}

.services-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3rem;
  border-radius: 1.75rem;
  background: var(--secondary);
  padding: 0.75rem;
}

.svc {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.5rem;
  background: var(--card);
  padding: 1.5rem;
  color: var(--foreground);
  text-align: left;
  transition: flex 0.5s ease, background-color 0.5s ease, color 0.5s ease;
}

.svc.is-open {
  background: var(--ink);
  color: var(--ink-foreground);
}

.svc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.svc-kicker-closed {
  color: var(--muted-foreground);
}

.svc-kicker-open,
.svc-dots {
  display: none;
}

.svc.is-open .svc-kicker-closed {
  display: none;
}

.svc.is-open .svc-kicker-open,
.svc.is-open .svc-dots {
  display: inline;
}

.svc-dots {
  color: var(--accent);
  letter-spacing: 0.12em;
}

.svc-body {
  margin-top: 2.5rem;
}

.svc-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.2;
}

.svc-body p {
  max-width: 28rem;
  margin: 0.75rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.svc.is-open .svc-body p {
  color: color-mix(in srgb, var(--ink-foreground) 75%, transparent);
}

.services .btn {
  margin-top: 2.5rem;
}

.callout {
  background: var(--accent);
  color: var(--ink);
  text-align: center;
}

.callout .wrap {
  padding-block: 6rem;
}

.callout h3 {
  max-width: 48rem;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.375;
}

.callout u {
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.about {
  padding-block: 6rem;
}

.about h2 {
  text-align: center;
}

.about-grid {
  display: grid;
  align-items: stretch;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.about-photo {
  position: relative;
  border-radius: 1.75rem;
  background: var(--accent);
  padding: 0.75rem;
}

.linkedin {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ink-foreground);
  text-decoration: none;
}

.linkedin svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.linkedin:hover {
  background: #0a66c2;
}

.about-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  object-fit: cover;
  object-position: top;
}

.about-copy {
  align-self: center;
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  margin-top: 1rem;
}

.cases {
  padding-bottom: 4.5rem;
}

.case-list {
  display: grid;
  margin-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.case {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0.15rem;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}

.case-num {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.case h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
}

.case .icon {
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.case:hover .icon,
.case:focus-visible .icon {
  opacity: 1;
  transform: translateX(3px);
}

.cases .btn {
  margin-top: 2rem;
}

.contact {
  background: var(--ink);
  color: var(--ink-foreground);
  text-align: center;
}

.contact .wrap {
  padding-block: 6rem;
}

.contact p {
  max-width: 28rem;
  margin: 1rem auto 0;
  color: color-mix(in srgb, var(--ink-foreground) 70%, transparent);
}

.contact .btn {
  margin-top: 2rem;
}

.site-footer {
  margin: 0;
  padding: 2rem 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .case-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }
}

@media (min-width: 768px) {
  .hero h1,
  .pains h2,
  .services h2,
  .about h2,
  .cases h2,
  .contact h2 {
    font-size: 3.75rem;
  }

  .hero h1 {
    font-size: 6rem;
  }

  .pains-grid,
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 5fr 7fr;
  }

  .about-photo img {
    aspect-ratio: auto;
  }

  .pain-nav {
    display: flex;
  }

  .services-row {
    flex-direction: row;
    height: 420px;
  }

  .svc {
    flex: 1 1 0;
    min-width: 0;
  }

  .svc.is-open {
    flex: 3 1 0;
  }

  .svc-body {
    display: none;
  }

  .svc.is-open .svc-body {
    display: block;
  }

  .callout h3 {
    font-size: 3rem;
    line-height: 1.375;
  }

  .quote-band blockquote p {
    font-size: 3rem;
  }

  .quote-band-second blockquote p {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pain-panel.is-active .pain-icon,
  .pain-panel.is-active .pain-copy,
  .case .icon,
  .svc,
  .btn {
    animation: none;
    transition: none;
  }
}
