:root {
  --bg: #141414;
  --bar: #1e1e1e;
  --ink: #ededed;
  --muted: #8a8a8a;
  --accent: #ff5a1f;
  --accent-hover: #ff6a33;
  --accent-press: #f04e12;
  --paper: #ededeb;
  --ink-dark: #141414;
  --line: rgb(20 20 20 / 0.15);
  --line-dark: rgb(237 237 237 / 0.16);
  --sans: "Inter Tight", "Inter", sans-serif;
  --body: "Inter", "Inter Tight", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --mark: "Lato", "Inter Tight", sans-serif;
  --pad: clamp(1rem, 3vw, 2.25rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: var(--accent);
  color: var(--ink-dark);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.band-light :focus-visible {
  outline-color: var(--ink-dark);
}

.btn:focus-visible,
.skip-link:focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.65rem 0.9rem;
  background: var(--accent);
  color: var(--ink-dark);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

main:focus {
  outline: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1240px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  padding: 1.15rem 0;
  background: transparent;
  transition: background-color 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--bar);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav:not(:has(.site-nav)) {
  display: flex;
  justify-content: space-between;
}

.wordmark {
  justify-self: start;
  color: #fff;
  font-family: var(--mark);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.45rem;
}

.site-nav a {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: #fff;
}

.nav-cta,
.lang {
  justify-self: end;
}

.lang {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.lang a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.lang a:hover,
.lang a[aria-current="page"] {
  color: #fff;
}

.pair {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.05rem;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--ink-dark);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--ink-dark);
}

.btn:active {
  background: var(--accent-press);
}

.btn-plus {
  width: 2.75rem;
  padding: 0;
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0;
}

.text-link {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.text-link:hover {
  color: #fff;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 820px;
  padding-top: 6.75rem;
  background: var(--bg);
  color: var(--ink);
}

.hero-layout {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.4rem;
  padding-bottom: 1.65rem;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 7.5em;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(2.8rem, 6vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.35rem;
  margin-top: 1.45rem;
}

.ascii-slot {
  position: absolute;
  right: 0;
  bottom: 4.1rem;
  width: min(44%, 560px);
  height: 520px;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.ascii {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  line-height: 8px;
  letter-spacing: 0;
  white-space: pre;
  font-variant-ligatures: none;
  user-select: none;
}

.sectors {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sectors span {
  font-size: 1rem;
  line-height: 1;
}

.band {
  padding: 6.25rem 0;
}

.band-light {
  background: var(--paper);
  color: var(--ink-dark);
}

.band-dark {
  background: var(--bg);
  color: var(--ink);
}

.band h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.band-light h2 {
  color: var(--ink-dark);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 1.5rem 2.5rem;
  align-items: end;
  margin-bottom: 2.25rem;
}

.section-head p,
.note {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
}

.band-light .note,
.band-light .prose p {
  color: var(--ink-dark);
}

.sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.sheet li {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 100%;
  padding: 1.7rem 1.6rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.idx,
.work-idx,
.sector,
.tags {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.idx {
  color: var(--accent);
  font-size: 0.8rem;
  line-height: 1;
}

.sheet h3,
.work-item h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.sheet h3 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.sheet p,
.work-text,
.prose p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

.sheet .example {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.sheet .example .sector {
  margin: 0;
  color: #555;
}

.sheet .example p:last-child {
  font-size: 0.95rem;
}

.sheet .tags {
  margin-top: 0;
  padding-top: 0.2rem;
  color: #3a3a3a;
  font-size: 0.75rem;
  line-height: 1.45;
}

.work-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-item {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: 0.4rem 1.5rem;
  align-items: start;
  margin-inline: -1rem;
  padding: 2.15rem 1rem;
  border-top: 1px solid var(--line-dark);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.work-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.work-idx {
  color: var(--accent);
  font-size: clamp(2.15rem, 3.6vw, 3.35rem);
  letter-spacing: -0.04em;
  line-height: 0.85;
}

.sector {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.work-item h3 {
  margin: 0.4rem 0 0.7rem;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.8vw, 2.55rem);
}

.work-text {
  max-width: 42rem;
  color: var(--ink);
}

.work-item .tags {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.work-item:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.work-item:hover .work-idx,
.work-item:hover .sector,
.work-item:hover h3,
.work-item:hover .work-text,
.work-item:hover .tags {
  color: var(--ink-dark);
}

.prose {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.prose p {
  max-width: 40rem;
}

.band h2.contact-label {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.contact .mega-mail {
  margin-top: 1.15rem;
}

.mega-mail {
  display: inline-block;
  max-width: 100%;
  margin: 1.5rem 0 1.35rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-decoration: none;
}

.mega-mail:hover {
  color: var(--accent);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer {
  padding: 4.25rem 0 5.75rem;
  border-top: 1px solid var(--line-dark);
  background: var(--bg);
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  gap: 2.5rem 3rem;
}

.footer-brand .wordmark {
  display: inline-block;
  margin-bottom: 0.9rem;
}

.footer-brand p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.footer-brand a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.legal h2 {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.legal dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.45rem 1.35rem;
  margin: 0;
}

.legal dt,
.legal dd {
  margin: 0;
}

.legal dt {
  color: var(--muted);
}

.legal dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.copyright {
  margin: 2.75rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.copyright a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.doc {
  max-width: 44rem;
  padding-block: 8rem 4.5rem;
}

.doc h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.doc h2 {
  margin: 2.4rem 0 0;
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.doc p,
.doc ul {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.doc ul {
  padding-left: 1.2rem;
}

.doc a {
  color: var(--accent);
}

.doc .updated {
  margin-top: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.doc .lang-switch {
  display: flex;
  gap: 1rem;
  margin-top: 1.35rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc .lang-switch a {
  color: var(--ink);
}

.doc hr {
  margin-block: 4rem;
  border: 0;
  border-top: 1px solid var(--line-dark);
}

#services,
#work,
#about,
#contact,
#top {
  scroll-margin-top: 5.5rem;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "mark cta"
      "links links";
    row-gap: 0.85rem;
  }

  .wordmark {
    grid-area: mark;
  }

  .nav-cta,
  .lang {
    grid-area: cta;
  }

  .site-nav {
    grid-area: links;
    justify-content: flex-start;
    gap: 1.1rem;
  }

  .ascii-slot {
    width: min(42%, 480px);
    height: 440px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 0;
    padding-top: 7.6rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-layout {
    display: flex;
  }

  .ascii-slot {
    position: relative;
    right: auto;
    bottom: auto;
    order: 3;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    margin: 0.25rem 0;
  }

  .sectors {
    order: 4;
  }

  .ascii {
    font-size: 7px;
    line-height: 7px;
  }

  .btn {
    height: 2.5rem;
    padding: 0 0.7rem;
    font-size: 0.68rem;
  }

  .btn-plus {
    width: 2.5rem;
    font-size: 1.3rem;
  }

  .section-head,
  .footer-grid,
  .sheet,
  .work-item {
    grid-template-columns: 1fr;
  }

  .work-item {
    gap: 0.35rem;
  }

  .work-idx {
    line-height: 1;
  }

  .band {
    padding: 4.25rem 0;
  }

  .legal dl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .legal dt:not(:first-of-type) {
    margin-top: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-header,
  .work-item {
    transition: none;
  }
}
