@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/oswald-latin-var.woff2") format("woff2-variations"),
       url("/fonts/oswald-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/roboto-latin-var.woff2") format("woff2-variations"),
       url("/fonts/roboto-latin-var.woff2") format("woff2");
}

:root {
  --bg: #fafafa;
  --ink: #26282c;
  --muted: #5b5d63;
  --accent: #14b8a6;
  --accent-strong: #0f766e;
  --accent-ink: #ffffff;
  --radius: 16px;
  --container-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 115%;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

/* Header */

.site-header {
  border-bottom: 4px solid var(--accent);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  height: 28px;
  width: auto;
}

.logo span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header nav {
  display: flex;
  gap: 28px;
}

.site-header nav a {
  text-decoration: none;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.site-header nav a[aria-current="page"] {
  background: var(--accent-strong);
}

.site-header nav a:hover {
  background: var(--accent-strong);
}

/* Hero */

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/images/hero-bg.jpg");
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), image-set(url("/images/hero-bg.webp") type("image/webp"), url("/images/hero-bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.photo-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/images/hero-bg.jpg");
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), image-set(url("/images/hero-bg.webp") type("image/webp"), url("/images/hero-bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.photo-bg .hero {
  background-image: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  gap: 48px;
  padding: 96px 24px 48px;
}

.hero-compact .hero-grid {
  padding: 56px 24px 32px;
}

.hero-media-top {
  grid-column: 2;
  grid-row: 1;
}

.hero-media-bottom {
  grid-column: 1;
  grid-row: 2;
}

.hero-media {
  min-height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-single {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 700;
  max-width: 21ch;
  color: var(--accent);
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  padding: 32px;
}

.hero .lede {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 2em;
  max-width: 42ch;
}

.hero-features {
  grid-column: 2;
  grid-row: 2;
  list-style: none;
  margin: 0;
  padding: 32px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-features li {
  position: relative;
  padding-left: 24px;
  color: #ffffff;
}

.hero-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-features li strong {
  font-weight: 700;
}

.hero-cta {
  text-align: center;
  padding: 0 24px 96px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Portfolio */

.portfolio {
  padding: 40px 24px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: 28px;
}

.portfolio-card {
  position: relative;
  top: 0;
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 28px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: top 0.3s ease-out, box-shadow 0.3s ease-out;
}

.portfolio-card:hover {
  top: -6px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.portfolio-icon {
  display: block;
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.portfolio-card h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: #101113;
}

.portfolio-desc {
  color: #2e2f33;
  font-weight: 600;
  margin: 0;
}

.portfolio-cta {
  text-align: center;
  padding: 40px 24px 56px;
}

.portfolio-cta h2 {
  color: #ffffff;
}

.portfolio-cta .lede-light {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin: 0 0 2em;
}

/* Footer */

.site-footer {
  border-top: 4px solid var(--accent);
  padding: 32px 0;
  background: rgba(160, 161, 162, 0.5);
}

.site-footer p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0 0 8px;
  font-size: 0.85rem;
}

.footer-links a,
.footer-links button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

/* Cookie consent banner */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--ink);
  color: #ffffff;
  border-top: 4px solid var(--accent);
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 70ch;
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.btn-outline:hover {
  opacity: 0.8;
}

/* Policy content */

.policy-content {
  padding: 48px 24px 96px;
  max-width: 72ch;
  margin: 0 auto;
}

.policy-content h2 {
  color: var(--accent-strong);
  margin-top: 1.5em;
}

.policy-content p,
.policy-content li {
  color: var(--ink);
}

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9rem;
}

.policy-content th,
.policy-content td {
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 8px 12px;
  text-align: left;
}

.policy-content th {
  background: rgba(20, 184, 166, 0.1);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn {
    transition: none;
  }
  .portfolio-card {
    transition: none;
  }
}

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

  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 24px 24px;
    background: var(--bg);
    border-bottom: 4px solid var(--accent);
  }

  .nav-toggle[aria-expanded="true"] ~ nav {
    display: flex;
  }

  .site-header nav a {
    text-align: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 56px 24px 32px;
  }

  .hero-copy,
  .hero-media-top,
  .hero-media-bottom,
  .hero-features {
    grid-column: auto;
    grid-row: auto;
  }

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

