:root {
  color-scheme: light;
  --ink: #101413;
  --ink-soft: #1c2624;
  --muted: #64706d;
  --paper: #f6f2ea;
  --panel: #ffffff;
  --line: #d8d1c3;
  --teal: #0f766e;
  --teal-dark: #0a4d48;
  --clay: #a44724;
  --amber: #d39d35;
  --blue: #355c7d;
  --shadow: 0 22px 70px rgba(16, 20, 19, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.1), transparent 38%),
    linear-gradient(135deg, #f8f4ec 0%, #f4efe6 42%, #edf5f3 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(16, 20, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 19, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(18px, 4vw, 58px);
  background: rgba(246, 242, 234, 0.86);
  border-bottom: 1px solid rgba(216, 209, 195, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), var(--teal-dark));
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 28px rgba(16, 20, 19, 0.16);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: #4f5a57;
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-links a,
.site-footer a,
.work-card a,
.profile-links a {
  transition: color 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover,
.work-card a:hover,
.profile-links a:hover {
  color: var(--teal-dark);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  min-height: calc(100vh - 73px);
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.72fr);
  gap: clamp(34px, 7vw, 98px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 4vw, 44px) 46px;
}

.hero-copy h1,
.section-heading h2,
.contact-section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero-copy h1 {
  max-width: 900px;
  font-size: 6.35rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro {
  max-width: 760px;
  margin: 24px 0 0;
  color: #3c4542;
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 20, 19, 0.2);
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: #fff;
  box-shadow: 0 14px 30px rgba(10, 77, 72, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.62);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 820px;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero-metrics div {
  min-height: 112px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-metrics strong,
.hero-metrics span,
.client-strip strong,
.client-strip span {
  display: block;
}

.hero-metrics strong {
  font-size: 1rem;
}

.hero-metrics span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-panel {
  align-self: stretch;
  display: flex;
  min-height: 590px;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(16, 20, 19, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.14), rgba(255, 255, 255, 0.84)),
    var(--panel);
  box-shadow: var(--shadow);
}

.portrait-wrap {
  display: grid;
  min-height: 330px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 20, 19, 0.08), rgba(15, 118, 110, 0.12)),
    #f5f1e8;
}

.profile-panel img {
  width: min(82%, 320px);
  aspect-ratio: 1;
  border: 10px solid #fff;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(16, 20, 19, 0.16);
}

.profile-copy h2,
.profile-copy p,
.profile-kicker {
  margin: 0;
}

.profile-kicker {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-copy h2 {
  margin-top: 8px;
  font-size: 2.2rem;
  line-height: 1.05;
}

.profile-copy p {
  margin-top: 12px;
  color: var(--muted);
}

.profile-links {
  display: flex;
  gap: 10px;
}

.profile-links a {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  text-align: center;
}

.client-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ink);
  color: #fff;
}

.client-strip div {
  min-height: 176px;
  padding: clamp(24px, 4vw, 40px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.client-strip span {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 950;
}

.client-strip strong {
  margin-top: 16px;
  font-size: 1.22rem;
}

.client-strip p {
  max-width: 360px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.section,
.contact-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 122px) clamp(18px, 4vw, 44px);
}

.section-heading {
  max-width: 810px;
}

.section-heading h2,
.contact-section h2 {
  font-size: 4rem;
}

.section-heading p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.work-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(216, 209, 195, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 42px rgba(16, 20, 19, 0.06);
}

.featured-card {
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.88)),
    #fff;
}

.work-card h3,
.service-grid h3,
.process-list h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.16;
}

.work-card p,
.service-grid p,
.process-list p,
.contact-section p,
.contact-note span {
  color: var(--muted);
}

.work-type {
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.work-card a {
  margin-top: auto;
  color: var(--teal);
  font-weight: 950;
}

.services-section {
  border-top: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.service-grid div {
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #e9f3f1;
  color: var(--teal-dark);
  font-weight: 950;
}

.process-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.process-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.process-list span {
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 950;
}

.process-list p {
  margin: 8px 0 0;
}

.stack-section {
  border-top: 1px solid var(--line);
}

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

.stack-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  padding: 10px 15px;
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: clamp(32px, 8vw, 96px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-copy p {
  font-size: 1.05rem;
}

.contact-note {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding: 18px;
  border-left: 4px solid var(--teal);
  background: rgba(255, 255, 255, 0.62);
}

.contact-note strong {
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfc8bb;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  text-transform: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 118, 110, 0.18);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 58px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
  font-weight: 900;
}

@media (max-width: 1080px) {
  .work-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .process-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .profile-panel {
    min-height: auto;
  }

  .client-strip {
    grid-template-columns: 1fr;
  }

  .client-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-copy h1 {
    font-size: 4.2rem;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 3.05rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-copy h1 {
    font-size: 2.78rem;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 2.35rem;
  }

  .hero-metrics,
  .work-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    min-height: 260px;
  }
}
