:root {
  --bg: #FFFFFF;
  --text: #111111;
  --muted: #555555;
  --border: #E5E5E5;
  --accent: #0F766E;
  --accent-dark: #0B5A54;
  --error: #B42318;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 16px;
  --section-gap: 64px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --section-gap: 96px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-thickness: 2px;
}

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

.container {
  width: 100%;
  max-width: calc(720px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--bg);
  padding: 8px 12px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.header-link {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
}

.header-link:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--section-gap);
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}

/* Sections */

.hero {
  padding-top: 72px;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 120px;
  }
}

.hero h1 {
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 32px;
}

.meta-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}

.section {
  margin-top: var(--section-gap);
  padding-top: var(--section-gap);
  border-top: 1px solid var(--border);
}

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 24px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 15px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 16px 24px;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--accent-dark);
  color: #FFFFFF;
}

.arrow-link {
  font-weight: 500;
}

/* Services */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services li + li {
  margin-top: 28px;
}

.services h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.services p {
  color: var(--muted);
  margin: 0;
}

/* Case study */

.case-title {
  font-size: 24px;
  margin-bottom: 24px;
}

.shots {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}

.shot {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FAFAFA;
}

.shot-desktop {
  flex: 1 1 0;
  min-width: 0;
}

.shot-mobile {
  flex: 0 0 24%;
  min-width: 0;
}

.result {
  font-weight: 500;
}

/* Contact */

.contact-heading {
  font-size: clamp(26px, 5vw, 32px);
  margin-bottom: 32px;
}

.contact-form {
  margin-bottom: 28px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #C9C9C9;
  border-radius: 6px;
  padding: 12px 14px;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555555' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--error);
}

.field-error,
.form-error {
  color: var(--error);
  font-size: 14px;
  margin: 6px 0 0;
}

.form-error {
  margin: 0 0 20px;
}

/* Honeypot, kept off-screen rather than display:none so naive bots still fill it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Thanks page */

.thanks {
  min-height: 40vh;
}

.thanks h1 {
  margin-bottom: 32px;
}
