:root {
  --sand: #fcf4ec;
  --sand-deep: #f6e6da;
  --ocean: #1f5f64;
  --ocean-deep: #173a40;
  --coral: #9c4522;
  --ink: #12181a;
  --muted: #4c5659;
  --line: rgba(232, 200, 180, 0.7);
  --card: rgba(255, 255, 255, 0.55);
  --section-gap: 72px;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 14px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ocean);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ocean-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  width: min(960px, calc(100% - 40px));
  margin-inline: auto;
}

.mnav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin: 0;
  padding: 12px 20px;
  background: color-mix(in srgb, var(--sand) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  color: var(--ocean-deep);
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--coral);
}

.primary-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--coral);
}

.sec {
  margin: 0 auto var(--section-gap);
  scroll-margin-top: 4.75rem;
}

.sec h2 {
  font-family: var(--font-heading);
  color: var(--ocean-deep);
  margin: 0 0 22px;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-heading);
  color: var(--ocean-deep);
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Hero */
.hero {
  padding: 56px 0 8px;
  margin-bottom: var(--section-gap);
}

.hero h1 {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  color: var(--ocean-deep);
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  max-width: 14ch;
}

.lede {
  max-width: 34em;
  color: var(--muted);
  margin: 0 0 28px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--ocean);
  color: #fff;
  border: 1px solid var(--ocean);
}

.btn-primary:hover {
  background: var(--ocean-deep);
  border-color: var(--ocean-deep);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--ocean-deep);
  border: 1px solid transparent;
}

.btn-light:hover {
  background: var(--sand);
  color: var(--coral);
}

.btn-text {
  color: var(--ocean);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.btn-text:hover {
  color: var(--coral);
  text-decoration: underline;
}

/* Services cards */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* How we work */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: none;
}

.step {
  border-top: 2px solid var(--ocean);
  padding-top: 16px;
}

.step-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ocean-deep);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Featured work */
.case {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 36px;
}

.case-copy h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin-bottom: 12px;
  line-height: 1.25;
}

.case-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 36em;
}

.case-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ocean);
  text-decoration: none;
  margin-bottom: 14px;
}

.case-link:hover {
  color: var(--coral);
  text-decoration: underline;
}

.case-note {
  margin: 0 !important;
  font-size: 0.8125rem !important;
  color: var(--muted);
  opacity: 0.75;
}

.phone {
  display: flex;
  justify-content: center;
}

.phone-bezel {
  position: relative;
  width: min(100%, 240px);
  background: #1a1f21;
  border-radius: 28px;
  padding: 10px;
  box-shadow:
    0 20px 40px rgba(23, 58, 64, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.08) inset;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 8px;
  background: #0d1112;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #fcf4ec;
}

/* Contact band */
.contact-band {
  background: var(--ocean-deep);
  color: #fff;
  padding: 64px 0;
  margin-top: 24px;
  scroll-margin-top: 4.75rem;
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-band h2 {
  font-family: var(--font-heading);
  color: #fff;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-foot {
  color: var(--muted);
  opacity: 0.8;
  text-align: left;
  padding: 28px 0 48px;
  font-size: 0.75rem;
}

.site-foot p {
  margin: 0;
}

@media (max-width: 799px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .case {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 28px;
  }

  .phone-bezel {
    width: min(100%, 220px);
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 639px) {
  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .primary-nav {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }

  html {
    scroll-padding-top: 1.5rem;
  }

  .sec,
  .contact-band {
    scroll-margin-top: 1.5rem;
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-foot {
    padding-bottom: 28px;
  }
}

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