:root {
  color-scheme: dark;
  --ink: #070707;
  --ink-soft: #121313;
  --paper: #f6f1e8;
  --muted: #a9ada5;
  --line: rgba(246, 241, 232, 0.16);
  --line-strong: rgba(246, 241, 232, 0.28);
  --teal: #79d7c5;
  --brass: #d8b469;
  --signal: #ff5c42;
  --white: #ffffff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.84), rgba(7, 7, 7, 1) 720px),
    var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::selection {
  color: var(--ink);
  background: var(--teal);
}

a {
  color: inherit;
  text-decoration: none;
}

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

#audio-thread {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.27;
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: none;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: min(100% - 40px, 1280px);
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(246, 241, 232, 0.14);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.64);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.site-header.is-visible,
.site-header:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.brand,
.nav-links,
.site-footer,
.hero-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(216, 180, 105, 0.58);
  border-radius: 50%;
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 800;
}

.nav-links {
  gap: 22px;
  justify-content: center;
  color: rgba(246, 241, 232, 0.72);
  font-size: 0.82rem;
  font-weight: 650;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.profile-link:hover {
  color: var(--white);
}

.nav-action {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid rgba(246, 241, 232, 0.16);
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.08);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 750;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.nav-action:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 215, 197, 0.5);
  background: rgba(121, 215, 197, 0.1);
}

.hero {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.62fr);
  align-items: end;
  gap: clamp(30px, 6vw, 82px);
  min-height: 92svh;
  overflow: visible;
  padding: 104px max(24px, calc((100vw - var(--max)) / 2)) 0;
  isolation: isolate;
}

.tech-sketch {
  fill: none;
  stroke: rgba(121, 215, 197, 0.52);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  pointer-events: none;
}

.tech-sketch rect,
.tech-sketch circle {
  vector-effect: non-scaling-stroke;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.94), rgba(7, 7, 7, 0.66) 48%, rgba(7, 7, 7, 0.72)),
    linear-gradient(0deg, rgba(7, 7, 7, 1), rgba(7, 7, 7, 0) 44%);
}

.hero-content {
  position: relative;
  z-index: 6;
  width: min(720px, 100%);
  padding-bottom: clamp(68px, 10vh, 112px);
}

.hero-portrait {
  position: relative;
  z-index: 7;
  align-self: center;
  justify-self: end;
  width: min(430px, 100%);
  margin: 0 0 clamp(24px, 7vh, 78px);
  overflow: visible;
}

.hero-portrait::after {
  display: none;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  max-height: min(76svh, 760px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.48));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, 0.75) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, 0.75) 88%, transparent 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  color: var(--paper);
  font-family:
    Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(4.6rem, 13vw, 11.8rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(246, 241, 232, 0.82);
  font-size: clamp(1.22rem, 2.4vw, 1.84rem);
  line-height: 1.32;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button-primary {
  border: 1px solid rgba(246, 241, 232, 0.08);
  background: var(--paper);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--white);
}

.button-secondary {
  border: 1px solid rgba(246, 241, 232, 0.22);
  background: rgba(246, 241, 232, 0.06);
  color: var(--paper);
}

.button-secondary:hover {
  border-color: rgba(121, 215, 197, 0.55);
  background: rgba(121, 215, 197, 0.1);
}

.hero-footer {
  position: relative;
  z-index: 6;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: rgba(246, 241, 232, 0.68);
  font-size: 0.88rem;
}

.section {
  position: relative;
  scroll-margin-top: 104px;
  padding: clamp(72px, 10vw, 126px) max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid rgba(246, 241, 232, 0.1);
}

.av500-copy p {
  color: rgba(246, 241, 232, 0.68);
  font-size: 1.05rem;
  line-height: 1.62;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.section-heading.compact {
  align-items: start;
}

h2 {
  margin-bottom: 0;
  color: var(--paper);
  font-family:
    Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(2.2rem, 5.8vw, 5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

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

.work-item {
  position: relative;
  z-index: 4;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(246, 241, 232, 0.045), rgba(246, 241, 232, 0.015)),
    rgba(255, 255, 255, 0.01);
}

.work-item img {
  position: relative;
  z-index: 3;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid rgba(246, 241, 232, 0.12);
}

.work-item .item-number,
.work-item h3,
.work-item p {
  position: relative;
  z-index: 2;
}

.item-number {
  display: inline-block;
  margin: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 30px) 22px;
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 900;
}

h3 {
  margin: 0 clamp(22px, 3vw, 30px) 16px;
  color: var(--paper);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 760;
  line-height: 1.08;
}

.work-item p,
.approach-row p,
.contact-intro p,
.form-note {
  color: rgba(246, 241, 232, 0.68);
  line-height: 1.62;
}

.work-item p {
  margin: 0 clamp(22px, 3vw, 30px) clamp(24px, 3vw, 34px);
}

.work-note {
  position: relative;
  z-index: 4;
  max-width: 980px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  color: rgba(246, 241, 232, 0.52);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.45;
}

.approach-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 7vw, 96px);
  background:
    linear-gradient(180deg, rgba(121, 215, 197, 0.05), rgba(255, 92, 66, 0.04)),
    var(--ink-soft);
}

.approach-copy {
  position: sticky;
  top: 112px;
  align-self: start;
}

.approach-list {
  border-top: 1px solid var(--line-strong);
}

.approach-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.approach-row span {
  color: var(--paper);
  font-weight: 850;
}

.approach-row p {
  margin-bottom: 0;
}

.media-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.88fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  background:
    linear-gradient(180deg, rgba(121, 215, 197, 0.055), rgba(216, 180, 105, 0.04)),
    #090909;
}

.media-copy {
  max-width: 620px;
}

.media-copy h2 {
  margin-bottom: 24px;
}

.media-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(246, 241, 232, 0.68);
  font-size: 1.05rem;
  line-height: 1.62;
}

.media-card {
  position: relative;
  z-index: 4;
  display: grid;
  align-content: space-between;
  min-height: 310px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(246, 241, 232, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(246, 241, 232, 0.1), rgba(246, 241, 232, 0.02)),
    rgba(7, 7, 7, 0.72);
  box-shadow: var(--shadow);
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.media-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(121, 215, 197, 0.16), transparent 34%),
    linear-gradient(0deg, rgba(216, 180, 105, 0.14), transparent 42%);
  content: "";
  opacity: 0.68;
  pointer-events: none;
}

.media-card:hover {
  border-color: rgba(121, 215, 197, 0.46);
  transform: translateY(-2px);
}

.media-card span,
.media-card p,
.media-card strong {
  position: relative;
  z-index: 2;
}

.media-card span {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.media-card p {
  max-width: 520px;
  margin: 40px 0 46px;
  color: var(--paper);
  font-family:
    Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  font-weight: 400;
  line-height: 1.02;
}

.media-card strong {
  color: rgba(246, 241, 232, 0.78);
  font-size: 0.95rem;
}

.av500-section {
  background:
    radial-gradient(circle at 75% 22%, rgba(121, 215, 197, 0.1), transparent 34%),
    linear-gradient(180deg, #080808, #10100f);
}

.av500-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0;
}

.av500-copy {
  max-width: 640px;
}

.av500-copy h2 {
  margin-bottom: 24px;
}

.av500-copy p {
  max-width: 600px;
  margin-bottom: 24px;
}

.av500-panel {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  min-height: 340px;
  border: 1px solid rgba(246, 241, 232, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(246, 241, 232, 0.07), rgba(246, 241, 232, 0.02)),
    rgba(7, 7, 7, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.av500-panel img {
  position: relative;
  z-index: 2;
  width: min(76%, 520px);
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 24px 45px rgba(0, 0, 0, 0.35));
}

.clients-section {
  background: #0d0d0c;
}

.client-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(246, 241, 232, 0.055), rgba(246, 241, 232, 0.018)),
    rgba(246, 241, 232, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.client-logo {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  border-right: 1px solid rgba(246, 241, 232, 0.09);
  outline: none;
}

.client-logo:last-child {
  border-right: 0;
}

.client-logo::after {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(100% + 10px);
  max-width: min(280px, 80vw);
  padding: 7px 10px;
  border: 1px solid rgba(246, 241, 232, 0.16);
  border-radius: 6px;
  background: rgba(7, 7, 7, 0.92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  color: var(--paper);
  content: attr(data-name);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  white-space: nowrap;
}

.client-logo:hover::after,
.client-logo:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.client-logo img {
  width: 100%;
  height: 116px;
  min-width: 0;
  padding: 32px 24px;
  object-fit: contain;
  object-position: center;
  opacity: 0.9;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.client-logo:hover img,
.client-logo:focus-visible img {
  opacity: 1;
  transform: translateY(-1px);
}

.client-logo img.logo-tall {
  padding-top: 24px;
  padding-bottom: 24px;
}

.client-logo img.logo-wide {
  padding-right: 18px;
  padding-left: 18px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
  background:
    linear-gradient(180deg, rgba(216, 180, 105, 0.08), rgba(7, 7, 7, 0) 48%),
    #090909;
}

.contact-intro {
  max-width: 560px;
}

.contact-intro h2 {
  margin-bottom: 24px;
}

.contact-intro p {
  max-width: 520px;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.profile-link {
  display: inline-flex;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(121, 215, 197, 0.44);
  color: rgba(246, 241, 232, 0.76);
  font-weight: 820;
  transition: color 180ms ease;
}

.contact-form {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(246, 241, 232, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(246, 241, 232, 0.08), rgba(246, 241, 232, 0.035)),
    rgba(7, 7, 7, 0.82);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

.honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

label span {
  color: rgba(246, 241, 232, 0.7);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.03em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(246, 241, 232, 0.18);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--paper);
  font: inherit;
  font-size: 0.98rem;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 138px;
  padding: 14px;
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brass) 50%),
    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 12px) 20px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(121, 215, 197, 0.7);
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 0 3px rgba(121, 215, 197, 0.12);
}

.submit-button {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-note {
  min-height: 26px;
  margin: 0;
  font-size: 0.9rem;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid rgba(246, 241, 232, 0.1);
  color: rgba(246, 241, 232, 0.56);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .section-heading,
  .approach-section,
  .media-section,
  .av500-card,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .hero-portrait {
    justify-self: start;
    width: min(380px, 100%);
    margin-top: -32px;
  }

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

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

  .client-logo:nth-child(3n) {
    border-right: 0;
  }

  .client-logo:nth-child(n + 4) {
    border-top: 1px solid rgba(246, 241, 232, 0.09);
  }

  .approach-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(100% - 24px, 1280px);
    margin-top: 12px;
    padding: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-action {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
    padding: 94px 20px 28px;
  }

  #audio-thread {
    opacity: 0.18;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 7, 7, 0.96), rgba(7, 7, 7, 0.64)),
      linear-gradient(0deg, rgba(7, 7, 7, 1), rgba(7, 7, 7, 0) 48%);
  }

  .hero-content {
    padding-bottom: 0;
  }

  .hero-portrait {
    width: min(100%, 360px);
    margin: 0 0 32px;
  }

  h1 {
    font-size: clamp(4.1rem, 20vw, 6.2rem);
  }

  .hero-copy {
    font-size: 1.16rem;
  }

  .hero-footer,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .work-grid,
  .client-grid,
  .field-row,
  .av500-card,
  .approach-row {
    grid-template-columns: 1fr;
  }

  .client-logo {
    border-right: 0;
    border-top: 1px solid rgba(246, 241, 232, 0.09);
  }

  .client-logo:first-child {
    border-top: 0;
  }

  .client-logo::after {
    bottom: auto;
    top: 10px;
    transform: translate(-50%, -4px);
  }

  .client-logo:hover::after,
  .client-logo:focus-visible::after {
    transform: translate(-50%, 0);
  }

  .client-logo img {
    height: 104px;
  }

  .work-item {
    min-height: 0;
  }

  .av500-panel {
    min-height: 260px;
  }

  .media-card {
    min-height: 240px;
  }

  .item-number {
    margin-bottom: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
