@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;
  --on-accent: #111111;
  --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: #b35210;
  --on-accent: #ffffff;
  --photo: #0b0a09;
  --rule: #121212;
  --field: #ffffff;
  --invert: #121212;
  --invert-ink: #f3f3f1;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  touch-action: manipulation;
  overflow-x: clip;
}

#top,
#letter,
#menu,
#work,
#ask {
  scroll-margin-top: 5.5rem;
}

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;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 30;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip:focus,
.skip:focus-visible {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  white-space: nowrap;
}

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

nav a,
.theme-toggle,
.inquire,
.cta,
.ask-form button,
.site-footer a {
  min-height: 44px;
  min-width: 44px;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem max(3vw, env(safe-area-inset-right)) 1.1rem
    max(3vw, env(safe-area-inset-left));
  color: #fff;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0.28) 70%,
    transparent
  );
}

.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;
  margin-left: auto;
  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: var(--on-accent);
  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: var(--on-accent);
}

.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%;
  min-height: 44px;
}

.ask-form textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.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: var(--on-accent);
  padding: 0.85rem 1rem 0.7rem;
  cursor: pointer;
  width: max-content;
}

.ask-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ask-form .ask-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.ask-consent input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
}

.ask-form .ask-legal {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--muted);
}

.ask-legal a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.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 max(5vw, env(safe-area-inset-right))
    max(1.4rem, env(safe-area-inset-bottom)) max(5vw, env(safe-area-inset-left));
  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-footer a {
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal {
  padding: 12vh 4vw 8vh;
  max-width: 46rem;
}

.legal h1 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.88;
  text-transform: uppercase;
}

.legal .meta {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 2rem;
}

.legal h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  text-transform: uppercase;
  line-height: 0.95;
}

.legal p,
.legal li {
  font-size: 20px;
  line-height: 1.45;
  color: var(--muted);
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal ul {
  padding-left: 1.2rem;
}

.matrix caption {
  text-align: left;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 0.8rem;
}

.ask-status[role="status"] {
  min-height: 1.4em;
}

.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) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    padding: 0.7rem max(5vw, env(safe-area-inset-right)) 0.55rem
      max(5vw, env(safe-area-inset-left));
  }

  .mark {
    grid-column: 1;
    grid-row: 1;
  }

  .theme-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.1rem 0.95rem;
    max-width: 100%;
  }

  nav a,
  .theme-toggle {
    font-size: 0.98rem;
  }

  .hero-copy {
    padding: 6.4rem 5vw 4.5vh;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 18%,
      rgba(0, 0, 0, 0.82) 100%
    );
  }

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

  .lede {
    font-size: 20px;
    margin: 1.1rem 0 1.4rem;
  }

  .letter {
    padding: 5vh 5vw;
  }

  .salute {
    margin-bottom: 2.2rem;
    font-size: clamp(32px, 9vw, 44px);
  }

  .letter h2,
  .menu-head h2,
  .work h2,
  .close h2 {
    font-size: clamp(40px, 11vw, 64px);
  }

  .punch {
    font-size: clamp(40px, 12vw, 64px) !important;
    margin: 1.8rem 0 2rem !important;
  }

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

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

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.12) 42%,
      rgba(0, 0, 0, 0.2) 100%
    );
  }

  .letter-aside img {
    height: 14rem;
    object-position: 50% 40%;
  }

  .aside-punch {
    font-size: clamp(22px, 7vw, 32px);
  }

  .menu {
    padding: 1rem 5vw 3.5rem;
  }

  .menu-head p,
  .close p,
  .work p,
  .offer-copy {
    font-size: 20px;
  }

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

  .offer-list h3 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .inquire {
    justify-self: stretch;
    margin-top: 0.35rem;
  }

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

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

  .work-copy {
    padding: 4.5rem 5vw 3rem;
  }

  .work img {
    min-height: 0;
    height: 14rem;
    object-position: 50% 38%;
  }

  .close {
    padding: 3.5rem 5vw 4rem;
  }

  .legal {
    padding: 2.2rem 5vw 4rem;
  }

  .legal h1 {
    font-size: clamp(40px, 12vw, 64px);
  }

  .tech-hero {
    padding: 2.2rem 5vw 2rem;
  }

  .tech-hero h1 {
    font-size: clamp(48px, 14vw, 80px);
  }

  .tech-hero .lede,
  .tech-body p,
  .tech-body td,
  .tech-body th {
    font-size: 20px;
  }

  .tech-body {
    padding: 0 5vw 4rem;
  }

  .tech-body h2 {
    font-size: clamp(36px, 10vw, 56px);
    margin: 2.4rem 0 0.9rem;
  }

  .matrix {
    min-width: 36rem;
  }

  .matrix thead th {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .cta,
  .inquire,
  .ask-form button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 820px) and (max-height: 720px) {
  .hero h1 {
    font-size: clamp(48px, 16vw, 80px);
  }

  .lede {
    font-size: 18px;
    margin: 0.8rem 0 1rem;
  }

  .hero-copy {
    padding: 5.6rem 5vw 3.2vh;
  }
}

@media (max-width: 820px) and (max-height: 480px) {
  .hero,
  .hero-copy {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 5.2rem;
    padding-bottom: 1.4rem;
  }
}

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

  .hero-copy {
    animation: none;
  }
}
