:root {
  color-scheme: dark;
  --background: #111112;
  --surface: #181819;
  --ink: #f4f0e8;
  --muted: #bcb7af;
  --accent: #dfbf88;
  --accent-light: #efd7ab;
  --line: #35322e;
  --font: "Segoe UI", system-ui, sans-serif;
  --display-font: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 1rem/1.65 var(--font);
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: min(100% - 6rem, 76rem);
  margin-inline: auto;
}

.site-header, .site-footer {
  background: #0e0e0f;
}

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

.header-inner, .footer-inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 2rem;
  aspect-ratio: 1;
  flex: none;
  border: 1px solid #6d5d43;
  border-radius: 0.25rem;
}

.brand-mark::before, .brand-mark::after {
  position: absolute;
  width: 0.66rem;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  content: "";
}

.brand-mark::before {
  top: 0.47rem;
  left: 0.47rem;
}

.brand-mark::after {
  right: 0.47rem;
  bottom: 0.47rem;
}

.site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.site-header nav a, .site-footer a:not(.brand) {
  padding-block: 0.6rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  text-underline-offset: 0.28em;
}

.site-header nav a:hover, .site-footer a:not(.brand):hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3.5rem, 5.4vw, 5.25rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.5rem;
  height: 1px;
  flex: none;
  background: currentColor;
  content: "";
}

.hero h1, h2 {
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero h1 {
  font-size: clamp(2.875rem, 5.3vw, 5.15rem);
  line-height: 1.04;
}

.hero h1 em {
  color: var(--accent);
}

.hero-intro {
  max-width: 32rem;
  margin-top: 1.45rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-radius: 0.25rem;
  background: var(--accent);
  color: #1e1811;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.button:hover {
  background: var(--accent-light);
}

.text-link {
  color: var(--accent);
  text-underline-offset: 0.28em;
}

.text-link:hover {
  color: var(--accent-light);
}

.hero-art {
  overflow: hidden;
  aspect-ratio: 1.08;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--surface);
}

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

.work {
  padding-block: clamp(3.75rem, 6vw, 5.5rem);
  border-block: 1px solid var(--line);
  background: var(--surface);
}

h2 {
  font-size: clamp(2.55rem, 4.1vw, 3.95rem);
  line-height: 1.04;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.8rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.work-card {
  padding: clamp(1.35rem, 3.15vw, 2.5rem);
  background: var(--background);
}

.work-icon {
  position: relative;
  display: grid;
  width: 2.75rem;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 1.3rem;
  border: 1px solid #6d5d43;
  border-radius: 0.25rem;
  color: var(--accent);
}

.work-icon::before, .work-icon::after {
  content: "";
}

.icon-application::before {
  width: 1.15rem;
  height: 0.9rem;
  border: 1px solid currentColor;
  border-radius: 0.125rem;
}

.icon-application::after {
  position: absolute;
  top: calc(50% - 0.2rem);
  width: 1rem;
  border-top: 1px solid currentColor;
}

.icon-security::before {
  position: absolute;
  top: 0.67rem;
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid currentColor;
  border-radius: 0.3rem 0.3rem 0 0;
}

.icon-security::after {
  position: absolute;
  top: 1.15rem;
  width: 1rem;
  height: 0.72rem;
  border: 1px solid currentColor;
  border-radius: 0.125rem;
  background: var(--background);
}

.icon-triage::before {
  width: 1rem;
  height: 0.7rem;
  border-block: 1px solid currentColor;
}

.icon-triage::after {
  position: absolute;
  top: calc(50% - 0.5px);
  width: 1rem;
  border-top: 1px solid currentColor;
}

.icon-qa::before {
  width: 1rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.icon-qa::after {
  position: absolute;
  width: 0.4rem;
  height: 0.23rem;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: translateY(-0.04rem) rotate(-45deg);
}

.work-card h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.026em;
}

.work-card p {
  max-width: 48ch;
  margin-top: 0.65rem;
  color: var(--muted);
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
  padding-block: clamp(4rem, 7vw, 6.25rem);
}

.studio h2 {
  margin-top: 0.9rem;
}

.engagement-steps {
  display: grid;
  gap: 1.35rem;
  max-width: 35rem;
  padding-left: 1.65rem;
  border-left: 1px solid #6d5d43;
}

.engagement-steps h3 {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.engagement-steps p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.contact {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(4rem, 7vw, 6.25rem);
}

.contact-copy h2 {
  max-width: 11ch;
  margin-top: 0.9rem;
}

.contact-copy .text-link {
  display: inline-block;
  margin-top: 1.4rem;
}

.contact-form {
  padding: clamp(0.9rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--background);
}

.contact-form iframe {
  display: block;
  width: 100%;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
}

@media (max-width: 62rem) {
  .shell {
    width: calc(100% - 4rem);
  }
}

@media (max-width: 47rem) {
  .shell {
    width: calc(100% - 2.5rem);
  }

  .header-inner, .footer-inner {
    min-height: 4.25rem;
  }

  .hero, .studio, .contact-inner {
    grid-template-columns: 1fr;
    gap: 1.85rem;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 9.3vw, 4.65rem);
  }

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

  .engagement-steps {
    padding-left: 1rem;
  }
}

@media (max-width: 30rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.2rem 0.6rem;
    padding-block: 0.55rem;
  }

  .site-header nav {
    gap: 0.65rem;
  }
}

@media (max-width: 24rem) {
  .header-inner, .site-header nav {
    gap: 0.5rem;
  }

  .header-inner .brand {
    gap: 0.5rem;
    font-size: 1.125rem;
  }
}

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

  .button {
    transition: none;
  }
}
