@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3.woff2") format("woff2");
}

:root {
  --bg: #0e1311;
  --bg-2: #141a17;
  --surface: #18201c;
  --text: #e7efe9;
  --muted: #b7c6bc;
  --accent: #7cbb52;
  --line: rgba(214, 230, 214, 0.14);
  --line-strong: rgba(124, 187, 82, 0.5);
  --focus: #d8f5c4;
  --header: rgba(14, 19, 17, 0.92);
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  color-scheme: dark;
}

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

html {
  scroll-padding-top: 5.25rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 42% at 12% -8%, rgba(124, 187, 82, 0.16), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  background: #fff;
  color: #102014;
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: block;
  max-width: min(17.5rem, calc(100% - 3.5rem));
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="true"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
}

.nav-toggle .icon-close {
  display: none;
}

body.nav-open .nav-toggle .icon-open {
  display: none;
}

body.nav-open .nav-toggle .icon-close {
  display: block;
}

.hero {
  padding: 3.25rem 0 4.25rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.45rem, 5.4vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 11em;
}

.lede {
  margin: 0;
  max-width: 40em;
  font-size: 1.075rem;
  line-height: 1.7;
}

.platform {
  background: #eef3ee;
  border-radius: 1.25rem;
  padding: clamp(1.15rem, 3vw, 1.85rem);
}

.platform img {
  display: block;
  width: min(100%, 26rem);
  height: auto;
  margin-inline: auto;
}

.section {
  padding: 4.25rem 0;
}

.section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.6rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.section h2::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.service {
  height: 100%;
  padding: 1.35rem 1.3rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(124, 187, 82, 0.08), transparent 46%),
    var(--surface);
}

.service svg {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
  color: var(--accent);
}

.service h3 {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.band {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.works {
  display: grid;
  gap: 0.9rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
}

.work-card:hover {
  border-color: var(--line-strong);
}

.work-media {
  display: block;
  aspect-ratio: 900 / 580;
  overflow: hidden;
  background: #fff;
}

.work-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
}

.work-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.9rem 1rem 1rem;
}

.work-name {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.work-view {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.more {
  margin: 1.75rem 0 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--muted);
}

.about-copy,
.contact-grid {
  display: grid;
  gap: 1.15rem 2.5rem;
}

.about-copy p,
.contact-grid p,
address {
  margin: 0;
}

address {
  font-style: normal;
}

.contact-lead {
  margin: 0 0 1.75rem;
  max-width: 22em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
}

.contact-grid h3 {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-footer {
  padding: 1.4rem 0 1.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

dialog {
  width: min(48rem, calc(100vw - 1.5rem));
  max-height: min(92dvh, 100%);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: auto;
}

dialog::backdrop {
  background: rgba(6, 8, 7, 0.78);
}

.dialog-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.2rem 1.2rem 1.45rem;
}

.dialog-close {
  display: block;
  margin: 0 0 0.7rem auto;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
}

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

.dialog-card h3 {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dialog-card p {
  margin: 0.95rem 0 0;
}

.dialog-media:empty {
  display: none;
}

.dialog-media .work-media {
  aspect-ratio: auto;
  border-radius: 0.7rem;
  background: #fff;
}

.dialog-media .work-media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
}

@media (min-width: 700px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 640px) {
  .works {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .hero {
    padding: 4.5rem 0 5.25rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }

  .section {
    padding: 6rem 0;
  }

  .about-copy {
    grid-template-columns: 1fr 1fr;
  }

  .about-copy p:last-child {
    grid-column: 1 / -1;
    max-width: 75ch;
  }

  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
    max-width: 46rem;
  }
}

@media (min-width: 980px) {
  .works {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .header-bar {
    flex-wrap: wrap;
    min-height: 4.15rem;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem 1.15rem;
    padding-bottom: 0.85rem;
  }

  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.15rem 1.15rem 0.75rem;
    background: rgba(14, 19, 17, 0.98);
    border-bottom: 1px solid var(--line);
  }

  html.js body.nav-open .nav {
    display: flex;
    background: #0e1311;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  }

  html.js .nav a {
    padding: 0.9rem 0.15rem;
    border-top: 1px solid var(--line);
    box-shadow: none;
  }

  html.js .nav a[aria-current="true"] {
    box-shadow: inset 3px 0 0 var(--accent);
    padding-left: 0.7rem;
  }
}

@media (max-width: 860px) {
  html.js body.nav-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .work-card {
    transition: border-color 160ms ease, transform 160ms ease;
  }

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

  dialog[open] {
    animation: dialog-in 160ms ease;
  }

  dialog[open]::backdrop {
    animation: fade-in 160ms ease;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .nav-toggle,
  .work-view,
  .platform,
  .skip {
    display: none;
  }

  .section,
  .hero {
    padding: 1rem 0;
  }

  a {
    color: #111;
  }
}
