@font-face {
  font-family: "Barlow Condensed";
  src: url("./fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("./fonts/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Literata";
  src: url("./fonts/Literata-opsz-wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Literata";
  src: url("./fonts/Literata-Italic-opsz-wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root,
html[data-theme="dark"] {
  --ink: #efe8dc;
  --paper: #131210;
  --muted: #c6bbaa;
  --accent: #e08a3c;
  --photo: #0b0a09;
  --rule: #efe8dc;
  --field: #1c1a17;
  --invert: #efe8dc;
  --invert-ink: #131210;
  --display: "Barlow Condensed", Helvetica, Arial, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

html[data-theme="light"] {
  --ink: #121212;
  --paper: #f3f3f1;
  --muted: #333333;
  --accent: #c45c12;
  --photo: #0b0a09;
  --rule: #121212;
  --field: #ffffff;
  --invert: #121212;
  --invert-ink: #f3f3f1;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.4;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 12, "wght" 400;
  text-rendering: geometricPrecision;
}

html[data-theme="dark"] body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-theme="light"] body {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

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

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 3vw;
  color: #fff;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.mark-icon {
  width: clamp(40px, 4.2vw, 56px);
  height: clamp(40px, 4.2vw, 56px);
  flex-shrink: 0;
  overflow: visible;
}

.mark-agent {
  fill: var(--accent);
}

.mark-word {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  line-height: 0.86;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
}

nav a {
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

nav a:hover,
.theme-toggle:hover {
  color: var(--accent);
}

.theme-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: var(--photo);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 50%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 48%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  width: 100%;
  padding: 5rem 3vw 5vh;
  animation: rise 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(88px, 18vw, 240px);
  line-height: 0.78;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: none;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lede {
  margin: 1.6rem 0 1.8rem;
  max-width: 44rem;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
}

.cta {
  display: inline-block;
  width: max-content;
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 0.85rem 1.2rem 0.7rem;
}

.cta:hover {
  background: #fff;
  color: #111;
}

.letter {
  background: var(--paper);
  color: var(--ink);
  padding: 8vh 3vw;
}

.letter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(22rem, 0.75fr);
  gap: 4vw;
  max-width: none;
  margin: 0;
  align-items: start;
}

.letter-aside {
  position: sticky;
  top: 1.5rem;
}

.letter-aside figure {
  margin: 0 0 1.4rem;
  overflow: hidden;
}

.letter-aside img {
  width: 100%;
  height: min(58vh, 36rem);
  object-fit: cover;
  margin-bottom: 1rem;
}

.aside-punch {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #f3ece3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-theme="light"] .aside-punch {
  color: var(--ink);
}

.salute {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  margin: 0 0 3.5rem;
  width: 100%;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.salute span {
  display: block;
  max-width: none;
}

html[data-theme="light"] .salute {
  color: var(--ink);
}

.letter-body p:not(.punch),
.letter-body li {
  font-size: 28px;
  line-height: 1.38;
  color: var(--muted);
}

.letter-body p:not(.punch) {
  margin: 0 0 1.15rem;
}

.letter h2 {
  margin: 3rem 0 1.1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 110px);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

.punch {
  color: #fff !important;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 7.5vw, 128px) !important;
  line-height: 0.8 !important;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 2.4rem 0 2.6rem !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-theme="light"] .punch {
  color: var(--ink) !important;
}

.fascinations {
  margin: 0 0 1.6rem;
  padding: 0 0 0 1.15rem;
}

.fascinations li {
  margin: 0 0 0.75rem;
}

.menu {
  background: var(--paper);
  padding: 2rem 3vw 6rem;
}

.menu-head {
  max-width: none;
  margin: 0 0 2rem;
}

.menu-head h2,
.work h2,
.close h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

.menu-head p,
.close p,
.work p {
  margin: 0 0 1rem;
  font-size: 26px;
  line-height: 1.35;
  color: var(--muted);
}

.offer-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: none;
  border-top: 4px solid var(--ink);
}

.offer-list li {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr auto;
  gap: 1.2rem 2.2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 4px solid var(--ink);
}

.offer-list h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.86;
  text-transform: uppercase;
}

.price {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--accent);
}

.offer-copy {
  margin: 0;
  font-size: 26px;
  line-height: 1.32;
  color: var(--muted);
}

.inquire {
  align-self: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 0.8rem 0.4rem;
  white-space: nowrap;
}

.inquire:hover {
  background: var(--accent);
  color: #fff;
}

.work {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--paper);
  color: var(--ink);
}

.work-copy {
  padding: 8vh 3vw 8vh 3vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-copy h2 {
  color: var(--ink);
}

.work p {
  color: var(--muted);
  max-width: none;
  font-size: 28px;
  line-height: 1.35;
  opacity: 1;
}

.work figure {
  margin: 0;
  overflow: hidden;
}

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 28rem;
}

.close {
  padding: clamp(4rem, 10vh, 6.5rem) 4vw;
  background: var(--paper);
}

.ask-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
  gap: 4vw;
  max-width: none;
  margin: 0;
  align-items: start;
}

.ask-form {
  display: grid;
  gap: 0.9rem;
}

.ask-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.ask-form input,
.ask-form select,
.ask-form textarea {
  font: 1.15rem/1.4 var(--serif);
  padding: 0.7rem 0.75rem;
  border: 3px solid var(--ink);
  background: var(--field);
  color: var(--ink);
  width: 100%;
}

.ask-form button {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1rem 0.7rem;
  cursor: pointer;
  width: max-content;
}

.ask-form button:hover {
  background: var(--ink);
  color: var(--paper);
}

.ask-status {
  margin: 0;
  font-size: 1.15rem;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.site-footer {
  padding: 1.4rem 6vw;
  border-top: 3px solid var(--ink);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.site-footer p {
  margin: 0.1rem 0;
}

.site-header-solid {
  position: sticky;
  top: 0;
  mix-blend-mode: normal;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  z-index: 6;
}

.tech-hero {
  padding: 14vh 3vw 5vh;
}

.tech-hero .brand {
  font-size: 1.05rem;
}

.tech-hero h1 {
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.78;
  text-transform: uppercase;
  max-width: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tech-hero .lede {
  max-width: 46rem;
  font-size: 28px;
  color: var(--muted);
}

.tech-body {
  padding: 2vh 3vw 8vh;
  max-width: none;
}

.tech-body h2 {
  margin: 3.6rem 0 1.1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 110px);
  line-height: 0.84;
  text-transform: uppercase;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-theme="light"] .tech-body h2 {
  color: var(--ink);
}

.tech-body p,
.tech-body td,
.tech-body th {
  font-size: 28px;
  line-height: 1.35;
  color: var(--muted);
  max-width: 48rem;
}

.tech-body p {
  margin: 0 0 1.1rem;
}

.tech-body code,
.tech-body pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.tech-body pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border: 3px solid var(--ink);
  background: var(--field);
  color: var(--ink);
  margin: 0 0 1.4rem;
}

.matrix-wrap {
  overflow-x: auto;
  margin: 0 0 2rem;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 48rem;
}

.matrix th,
.matrix td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 0.9rem 0.85rem 0;
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
}

.matrix thead th {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 28px;
}

.matrix tbody th {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 22px;
  width: 12rem;
}

@keyframes rise {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 820px) {
  .hero h1 {
    font-size: clamp(64px, 20vw, 120px);
    max-width: none;
  }

  .lede {
    font-size: 22px;
  }

  .letter-body p:not(.punch),
  .letter-body li {
    font-size: 22px;
  }

  .hero-image {
    object-position: 90% 40%;
  }

  .offer-list li {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .inquire {
    justify-self: start;
    margin-top: 0.5rem;
  }

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

  .letter-aside {
    position: static;
  }
}

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

  .hero-copy {
    animation: none;
  }
}
