:root {
  --ink: #102b2a;
  --ink-soft: #46605e;
  --green: #123b3a;
  --green-light: #dce9e4;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --gold: #e4ad45;
  --gold-light: #f7e5b9;
  --line: rgba(16, 43, 42, 0.14);
  --shadow: 0 22px 60px rgba(16, 43, 42, 0.1);
  --radius: 1.25rem;
  --container: 72rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 0.5rem;
  transform: translateY(-160%);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(16, 43, 42, 0.06);
}

.header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 2.1rem;
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
}

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

.site-nav > a:not(.button) {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav > a:not(.button):hover {
  color: var(--green);
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--paper);
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 0.65rem;
  box-shadow: 0 8px 20px rgba(18, 59, 58, 0.16);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  background: #0b2e2d;
  box-shadow: 0 10px 25px rgba(18, 59, 58, 0.23);
  transform: translateY(-1px);
}

.button-small {
  min-height: 2.6rem;
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8.5rem) 0 clamp(4.5rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 90% 15%, rgba(228, 173, 69, 0.18) 0, transparent 22rem),
    linear-gradient(145deg, var(--paper), var(--cream));
}

.hero::after {
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -15rem;
  bottom: -18rem;
  border: 1px solid rgba(18, 59, 58, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(18, 59, 58, 0.025), 0 0 0 10rem rgba(18, 59, 58, 0.018);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(19rem, 0.7fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: #876010;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 5.7rem);
  font-weight: 780;
  text-wrap: balance;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.1rem, 4.5vw, 3.7rem);
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.hero-lead {
  max-width: 43rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2.3rem;
}

.text-link {
  color: var(--green);
  font-weight: 720;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
}

.hero-card {
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.3rem);
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(18, 59, 58, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card::before {
  position: absolute;
  width: 4.5rem;
  height: 0.35rem;
  top: 0;
  left: 2rem;
  background: var(--gold);
  border-radius: 0 0 0.4rem 0.4rem;
  content: "";
}

.hero-card > p {
  margin: 1.4rem 0 1.5rem;
  color: var(--ink-soft);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 750;
}

.status span {
  width: 0.62rem;
  height: 0.62rem;
  background: #37a875;
  border: 2px solid #c6ead8;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(55, 168, 117, 0.13);
}

.check-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
  font-size: 0.94rem;
  font-weight: 620;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: #8a651c;
  content: "✓";
  font-weight: 900;
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: #fff;
}

.trust-items {
  display: flex;
  min-height: 5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1rem;
}

.trust-items span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.section-heading {
  max-width: 47rem;
  margin-bottom: 3.2rem;
}

.section-heading > p:last-child,
.split-heading > p,
.about-copy > p,
.contact-copy > p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  padding: clamp(1.6rem, 4vw, 2.35rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
  border-color: rgba(18, 59, 58, 0.28);
  box-shadow: 0 16px 40px rgba(16, 43, 42, 0.08);
  transform: translateY(-3px);
}

.service-number {
  display: block;
  margin-bottom: 1.4rem;
  color: #9a6a10;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.service-card > p {
  color: var(--ink-soft);
}

.service-card ul {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem 0 0;
  margin: 1.3rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  list-style-position: inside;
}

.service-card li::marker {
  color: var(--gold);
}

.work-section {
  background: var(--cream);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.work-card {
  display: flex;
  min-height: 26rem;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 43, 42, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.work-card:hover {
  border-color: rgba(18, 59, 58, 0.28);
  box-shadow: 0 18px 40px rgba(16, 43, 42, 0.09);
  transform: translateY(-3px);
}

.work-card-featured {
  background: var(--green-light);
}

.work-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  color: #876010;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.work-meta span:last-child {
  flex: 0 0 auto;
  color: var(--ink-soft);
}

.work-card h3 {
  font-size: 1.55rem;
}

.work-card > p {
  margin-top: 0;
  color: var(--ink-soft);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 1rem 0 2rem;
  list-style: none;
}

.work-tags li {
  padding: 0.3rem 0.58rem;
  color: var(--green);
  background: rgba(18, 59, 58, 0.08);
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 720;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: auto;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28rem;
}

.work-note {
  max-width: 55rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.product-development {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  margin-top: 1.25rem;
  padding: clamp(1.8rem, 5vw, 3.5rem);
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 100% 0, rgba(228, 173, 69, 0.2), transparent 18rem),
    var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-development h3,
.product-development h4 {
  color: #fff;
}

.product-development h3 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.product-development .eyebrow {
  color: #f0c86f;
}

.product-intro > p:not(.eyebrow) {
  margin-bottom: 2rem;
}

.product-development .work-link {
  color: #fff;
}

.product-examples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.product-example {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.9rem;
}

.product-example h4 {
  margin: 1.1rem 0 0.8rem;
  font-size: 1.2rem;
  line-height: 1.15;
}

.product-example p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.product-status {
  display: inline-flex;
  padding: 0.3rem 0.55rem;
  color: var(--ink);
  background: var(--gold);
  border-radius: 2rem;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.product-status-progress {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.section-tinted {
  color: #eaf2ef;
  background: var(--green);
}

.section-tinted h2,
.section-tinted h3 {
  color: #fff;
}

.section-tinted .eyebrow {
  color: #f0c86f;
}

.split-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.split-heading h2 {
  max-width: 14ch;
  margin-bottom: 0;
}

.split-heading > p {
  margin: 0;
  color: rgba(234, 242, 239, 0.72);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.process-grid article {
  padding: 2rem 2rem 0 0;
}

.process-grid article + article {
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.17);
}

.process-grid span {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  margin-bottom: 2rem;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 850;
}

.process-grid p {
  margin-bottom: 0;
  color: rgba(234, 242, 239, 0.7);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.portrait-wrap {
  position: relative;
  max-width: 30rem;
}

.portrait-wrap::before {
  position: absolute;
  inset: -1rem 1.5rem 1rem -1rem;
  z-index: -1;
  background: var(--gold-light);
  border-radius: var(--radius);
  content: "";
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portrait-note {
  position: absolute;
  right: -1rem;
  bottom: 1.5rem;
  min-width: 12rem;
  padding: 0.85rem 1rem;
  color: #fff;
  background: var(--green);
  border-radius: 0.65rem;
  box-shadow: 0 12px 30px rgba(16, 43, 42, 0.2);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.35;
}

.portrait-note span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
}

.about-lead {
  color: var(--ink) !important;
  font-size: clamp(1.15rem, 2vw, 1.35rem) !important;
  font-weight: 650;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}

.skills span {
  padding: 0.42rem 0.72rem;
  color: var(--green);
  background: var(--green-light);
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 720;
}

.contact-section {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 8vw, 7rem);
}

.contact-copy h2 {
  max-width: 10ch;
}

.contact-email {
  margin-top: 2.3rem;
}

.contact-email span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
}

.contact-email a {
  color: var(--green);
  font-weight: 750;
  text-underline-offset: 0.25rem;
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 720;
}

.contact-form label span {
  color: var(--ink-soft);
  font-weight: 450;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(16, 43, 42, 0.24);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 59, 58, 0.12);
}

.form-note,
.form-status {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.form-status:not(:empty) {
  color: var(--green);
  font-weight: 650;
}

.site-footer {
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.62);
  background: #0a2726;
  font-size: 0.84rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.brand-footer {
  color: #fff;
}

.brand-footer .brand-mark {
  width: 1.7rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  text-underline-offset: 0.25rem;
}

.legal-page {
  min-height: calc(100vh - 5rem);
  background: var(--cream);
}

.legal-content {
  max-width: 48rem;
}

.legal-content h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.legal-content h2 {
  margin-top: 2.5rem;
  font-size: 1.55rem;
}

.legal-content p {
  color: var(--ink-soft);
}

.legal-note {
  margin-top: 3rem;
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-of-type(2) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-of-type(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-of-type(4) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 25px rgba(16, 43, 42, 0.08);
  }

  .site-nav.is-open {
    display: grid;
    gap: 0.5rem;
  }

  .site-nav > a:not(.button) {
    padding: 0.65rem 0.4rem;
  }

  .hero-grid,
  .split-heading,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-development {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 34rem;
  }

  .split-heading {
    align-items: start;
    gap: 1rem;
  }

  .portrait-wrap {
    width: min(90%, 28rem);
    margin-inline: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

@media (max-width: 600px) {
  .header-inner {
    min-height: 4.5rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-items {
    justify-content: flex-start;
  }

  .work-card {
    min-height: 0;
  }

  .product-examples {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .work-grid,
  .process-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .process-grid article,
  .process-grid article + article {
    padding: 2rem 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  }

  .process-grid article:last-child {
    border-bottom: 0;
  }

  .process-grid span {
    margin-bottom: 1rem;
  }

  .portrait-note {
    right: -0.5rem;
    bottom: 1rem;
  }
}

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