:root {
  --ink: #17211f;
  --muted: #596863;
  --soft: #f5f7f2;
  --panel: #ffffff;
  --line: #d9e0d8;
  --accent: #0e6f68;
  --accent-dark: #084d49;
  --gold: #b9852f;
  --rose: #d56f55;
  --sky: #d8eef2;
  --shadow: 0 24px 70px rgba(35, 48, 43, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
  background: rgba(245, 247, 242, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav,
.hero-actions,
.signal-list,
.profile-links,
.footer div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.site-header nav {
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-header a:hover {
  color: var(--accent);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 104px) 0;
}

.hero {
  display: grid;
  min-height: calc(100vh - 74px);
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  padding-top: clamp(38px, 7vw, 84px);
}

.eyebrow,
.kicker,
.work-item span,
.card-index {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(1.55rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.18;
}

.lede,
.intro p,
.contact-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.25rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 28px;
}

.button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:hover {
  background: var(--accent-dark);
}

.secondary {
  border-color: var(--line);
  background: #fff;
}

.secondary:hover {
  border-color: var(--accent);
}

.signal-list {
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.signal-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.profile-panel {
  display: grid;
  gap: 22px;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #eef7f5);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-panel img {
  width: min(260px, 82vw);
  height: auto;
  aspect-ratio: 1;
  border: 8px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(23, 33, 31, 0.16);
}

.profile-name {
  margin-bottom: 4px;
  font-size: 1.35rem;
  font-weight: 850;
}

.profile-role {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.profile-links a {
  border-bottom: 2px solid rgba(14, 111, 104, 0.24);
  color: var(--accent-dark);
  font-weight: 800;
}

.intro {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro h2 {
  max-width: 1000px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.service-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article,
.work-item {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(35, 48, 43, 0.06);
}

.service-grid article:nth-child(2) {
  background: #edf7f8;
}

.service-grid article:nth-child(3) {
  background: #fff8eb;
}

.service-grid article:nth-child(4) {
  background: #f8eeee;
}

.service-grid p,
.work-item p,
.legal p,
.process li {
  color: var(--muted);
}

.card-index {
  display: block;
  color: var(--gold);
}

.process {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

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

.process li {
  border-left: 4px solid var(--accent);
  padding: 2px 0 2px 18px;
}

.work-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.work-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
}

.work-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.work-item.featured {
  background: var(--ink);
  color: #fff;
}

.work-item.featured p,
.work-item.featured span {
  color: rgba(255, 255, 255, 0.75);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.privacy-note {
  border-left: 4px solid var(--rose);
  padding-left: 16px;
  font-size: 0.98rem !important;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(18px, 4vw, 28px);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
  padding: 13px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(14, 111, 104, 0.16);
}

.full {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.form-status[data-tone="success"] {
  color: var(--accent-dark);
}

.form-status[data-tone="error"] {
  color: #a13b2c;
}

.legal {
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
}

.legal h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.legal p {
  max-width: 880px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px) 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.footer div {
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--accent-dark);
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

body:has(.cookie-banner:not([hidden])) {
  padding-bottom: 116px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-banner a {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 960px) {
  .hero,
  .process,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

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

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

  .section {
    width: min(100% - 28px, 1160px);
  }

  .service-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-grid article,
  .work-item {
    min-height: auto;
  }

  .footer,
  .cookie-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  body:has(.cookie-banner:not([hidden])) {
    padding-bottom: 178px;
  }
}
