@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/fonts/JetBrainsMono-Medium.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/fonts/JetBrainsMono-Bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/fonts/JetBrainsMono-ExtraBold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 800;
}

:root {
  --ink: #1b1b1b;
  --muted: #959595;
  --paper: #ffffff;
  --soft: #f1f1f1;
  --panel: #d9d9d9;
  --accent: #ff6200;
  --font: "JetBrains Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  text-transform: uppercase;
}

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

button,
input {
  font: inherit;
}

.section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  height: calc(100vw * 931 / 1920);
  min-height: 620px;
  background: var(--paper);
}

.hero-nav,
.hero-title,
.hero-dialog,
.hero-tag,
.about-title,
.about-copy,
.services-title,
.services-table,
.case-copy,
.office-title,
.office-lead,
.office-form,
.footer-logo,
.footer-copy,
.footer-social,
.footer-nav {
  position: absolute;
  z-index: 2;
}

.nav {
  display: grid;
  width: fit-content;
  font-size: 1.5625vw;
  line-height: 1.3;
}

.nav a,
.footer-social a,
.footer-logo {
  width: fit-content;
  transition: color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.footer-social a:hover,
.footer-social a:focus-visible,
.footer-logo:hover,
.footer-logo:focus-visible {
  color: var(--accent);
}

.hero-nav {
  top: 8.27%;
  left: 25%;
}

.hero-title {
  top: 8.27%;
  right: 8.33%;
  width: 49.9%;
  margin: 0;
  text-align: right;
  font-size: 2.8125vw;
  font-weight: 500;
  line-height: 1.153;
  letter-spacing: 0;
}

.hero-dialog {
  top: 40.17%;
  left: 50.26%;
  width: 29.27%;
  margin: 0;
  font-size: 1.5625vw;
  font-weight: 500;
  line-height: 1.3;
}

.hero-dialog span {
  display: block;
}

.hero-tag {
  top: 89.9%;
  right: 8.33%;
  width: 27.03%;
  margin: 0;
  color: var(--accent);
  text-align: right;
  font-size: 1.5625vw;
  font-weight: 500;
  line-height: 1.3;
}

.about {
  height: calc(100vw * 1289 / 1920);
  background: var(--soft);
}

.section-title {
  margin: 0;
  font-size: 1.5625vw;
  font-weight: 500;
  line-height: 1.3;
}

.about-title {
  top: 5.97%;
  left: 8.33%;
}

.about-copy {
  top: 6.55%;
  left: 50.26%;
  width: 41.2%;
  font-size: 1.5625vw;
  line-height: 1.3;
}

.about-copy p {
  margin: 0 0 2.08vw;
}

.services-title {
  top: 51.82%;
  left: 8.33%;
}

.services-table {
  top: 63.61%;
  left: 8.39%;
  width: 82.99%;
  border-collapse: collapse;
  font-size: 1.5625vw;
  line-height: 1.3;
}

.services-table tr {
  height: calc(100vw * 98 / 1920);
  border-top: 1px solid var(--ink);
}

.services-table tr:last-child {
  border-bottom: 1px solid var(--ink);
}

.services-table th,
.services-table td {
  padding: 0;
  font-weight: 400;
  vertical-align: middle;
  white-space: nowrap;
}

.services-table th {
  width: 20.2%;
  text-align: left;
}

.services-table td:nth-child(2) {
  width: 30.3%;
}

.projects {
  background: var(--paper);
}

.case {
  height: calc(100vw * 837 / 1920);
  background: var(--paper);
}

.case:nth-child(2),
.case:nth-child(4) {
  height: calc(100vw * 836 / 1920);
}

.case-media {
  position: absolute;
  top: 0;
  z-index: 1;
  width: 50%;
  height: 100%;
  background: var(--panel);
}

.case-media-left .case-media {
  left: 0;
}

.case-media-right .case-media {
  right: 0;
}

.case-media-left .case-copy {
  left: 54.9%;
}

.case-media-right .case-copy {
  left: 8.33%;
}

.case-copy {
  top: 10.27%;
  width: 42%;
  height: 80%;
}

.case-client,
.case-price,
.case-time {
  color: var(--muted);
}

.case-copy p,
.case-copy h2 {
  margin: 0;
  font-size: 1.5625vw;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
}

.case-copy h2 {
  position: absolute;
  top: 11.2%;
  left: 0;
  width: 100%;
}

.case-price,
.case-time {
  position: absolute;
  bottom: 0;
}

.case-price {
  left: 0;
}

.case-time {
  right: 24px;
}

.office {
  display: grid;
  grid-template-columns: 50.26% 1fr;
  height: auto;
  min-height: calc(100vw * 927 / 1920);
  padding: calc(100vw * 77 / 1920) 8.33% calc(100vw * 80 / 1920);
  background: var(--soft);
}

.office-title {
  position: static;
  grid-column: 1;
}

.office-lead {
  position: static;
  grid-column: 2;
  width: auto;
  margin: 0;
  font-size: 1.5625vw;
  font-weight: 500;
  line-height: 1.3;
}

.office-form {
  --office-action-gap: calc(100vw * 78 / 1920);
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 44% 1fr;
  gap: var(--office-action-gap) 6.28%;
  width: 100%;
  margin-top: calc(100vw * 116 / 1920);
}

.office-form fieldset {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  gap: calc(100vw * 24 / 1920);
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.office-form label {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 26px;
  align-items: center;
  min-height: 38px;
  cursor: pointer;
  font-size: 1.5625vw;
  line-height: 1.3;
}

.office-form input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.office-form label span {
  width: 36px;
  height: 36px;
  border: 1.5px solid #000000;
}

.office-form input:checked + span {
  background: #000000;
  box-shadow: inset 0 0 0 5px var(--soft);
}

.office-form input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.office-form button {
  position: static;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: end;
  width: 100%;
  min-height: calc(100vw * 72 / 1920);
  height: auto;
  padding: 12px 20px;
  border: 1.5px solid #000000;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 1.5625vw;
  line-height: 1.3;
}

.office-form button:hover,
.office-form button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

#calc-result {
  position: static;
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  width: 100%;
  margin: calc(18px - var(--office-action-gap)) 0 0;
  color: var(--accent);
  font-size: 1.25vw;
  line-height: 1.3;
  text-align: center;
}

.footer {
  height: calc(100vw * 960 / 1920);
  min-height: 610px;
  background: var(--paper);
}

.footer-logo {
  top: 16.67%;
  left: 8.33%;
  display: block;
  width: calc(100vw * 332 / 1920);
  line-height: 0;
}

.footer-logo-image {
  display: block;
  width: 100%;
  height: auto;
}

.footer-copy {
  top: 40.2%;
  left: 25.16%;
  width: 41.9%;
  margin: 0;
  font-size: 1.5625vw;
  line-height: 1.3;
}

.footer-social {
  top: 59.27%;
  left: 67.19%;
  display: grid;
  font-size: 1.5625vw;
  line-height: 1.3;
}

.footer-nav {
  top: 76.67%;
  left: 8.33%;
}

@media (max-width: 980px) {
  :root {
    --mobile-gutter: clamp(24px, 5.2vw, 48px);
    --mobile-body: clamp(15px, 2.05vw, 18px);
    --mobile-title: clamp(32px, 5.6vw, 52px);
    --mobile-section-gap: clamp(72px, 10vw, 112px);
  }

  .hero,
  .about,
  .case,
  .case:nth-child(2),
  .case:nth-child(4),
  .office,
  .footer {
    height: auto;
    min-height: 0;
  }

  .hero {
    height: clamp(760px, 96vw, 900px);
    min-height: 760px;
    isolation: isolate;
  }

  .hero .section-art {
    display: none;
  }

  .hero::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vw * 372 / 2030);
    background-image: url("./assets/header-word.svg");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    filter: invert(1);
    mix-blend-mode: difference;
    pointer-events: none;
  }

  .hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    bottom: 0;
    width: clamp(260px, 34vw, 360px);
    background-image: url("./assets/header-portrait.svg");
    background-repeat: no-repeat;
    background-size: clamp(900px, 118vw, 1160px) auto;
    background-position: clamp(-70px, -7vw, -42px) bottom;
    pointer-events: none;
  }

  .nav,
  .hero-dialog,
  .hero-tag,
  .section-title,
  .about-copy,
  .services-table,
  .case-copy p,
  .case-copy h2,
  .office-lead,
  .office-form label,
  .office-form button,
  .footer-copy,
  .footer-social {
    font-size: var(--mobile-body);
    line-height: 1.28;
  }

  .nav a,
  .footer-social a {
    display: flex;
    align-items: center;
    min-height: 28px;
  }

  .hero-nav {
    top: clamp(24px, 4.2vw, 42px);
    left: var(--mobile-gutter);
    grid-template-columns: max-content;
    column-gap: 0;
    row-gap: 0;
  }

  .hero-title {
    top: clamp(178px, 22vw, 220px);
    right: var(--mobile-gutter);
    left: auto;
    width: min(620px, calc(100% - var(--mobile-gutter) * 2));
    text-align: right;
    font-size: var(--mobile-title);
    line-height: 1.08;
  }

  .hero-dialog {
    top: clamp(330px, 44vw, 430px);
    left: clamp(68px, 12vw, 118px);
    width: min(420px, calc(100% - clamp(68px, 12vw, 118px) - var(--mobile-gutter)));
  }

  .hero-tag {
    right: var(--mobile-gutter);
    bottom: clamp(46px, 7vw, 72px);
    top: auto;
    width: min(440px, calc(100% - var(--mobile-gutter) * 2));
    text-align: right;
  }

  .about {
    display: grid;
    grid-template-columns: minmax(110px, 22%) 1fr;
    column-gap: var(--mobile-gutter);
    padding: var(--mobile-section-gap) var(--mobile-gutter);
    background: var(--soft);
  }

  .about-title,
  .about-copy,
  .services-title,
  .services-table,
  .case-copy,
  .office-title,
  .office-lead,
  .office-form,
  .footer-logo,
  .footer-copy,
  .footer-social,
  .footer-nav {
    position: static;
  }

  .about-copy {
    width: auto;
    max-width: 680px;
  }

  .about-copy p {
    margin: 0 0 clamp(28px, 4vw, 40px);
  }

  .about-copy p:last-child {
    margin-bottom: 0;
  }

  .about-copy br,
  .office-lead br,
  .footer-copy br,
  .case-copy br {
    display: none;
  }

  .services-title {
    grid-column: 1;
    margin-top: clamp(88px, 13vw, 132px);
  }

  .services-table {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: clamp(56px, 8vw, 84px);
    border-collapse: collapse;
    table-layout: fixed;
  }

  .services-table tbody {
    display: table-row-group;
  }

  .services-table tr {
    display: grid;
    grid-template-columns: minmax(82px, 18%) minmax(190px, 31%) 1fr;
    align-items: center;
    min-height: clamp(76px, 10vw, 98px);
    height: auto;
  }

  .services-table th,
  .services-table td {
    display: block;
    width: auto !important;
    padding: 16px 0;
    white-space: normal;
  }

  .services-table th {
    align-self: start;
    padding-top: 20px;
  }

  .case {
    display: grid;
    grid-template-columns: 50.26% 1fr;
    min-height: clamp(430px, 55vw, 560px);
  }

  .case-media {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    height: 100%;
    min-height: inherit;
  }

  .case-copy {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    min-height: inherit;
    padding: clamp(46px, 6vw, 72px) var(--mobile-gutter);
  }

  .case-media-left .case-media {
    grid-column: 1;
  }

  .case-media-left .case-copy {
    grid-column: 2;
    left: auto;
  }

  .case-media-right .case-media {
    grid-column: 2;
  }

  .case-media-right .case-copy {
    grid-column: 1;
    grid-row: 1;
    left: auto;
  }

  .case-copy h2,
  .case-price,
  .case-time {
    position: static;
  }

  .case-copy h2 {
    margin-top: clamp(54px, 7vw, 74px);
  }

  .case-price,
  .case-time {
    position: absolute;
    bottom: clamp(46px, 6vw, 72px);
    width: calc((100% - var(--mobile-gutter) * 2) / 2);
    white-space: nowrap;
  }

  .case-price {
    left: var(--mobile-gutter);
  }

  .case-time {
    right: var(--mobile-gutter);
    text-align: right;
  }

  .office {
    display: grid;
    grid-template-columns: minmax(150px, 32%) 1fr;
    column-gap: var(--mobile-gutter);
    padding: var(--mobile-section-gap) var(--mobile-gutter) calc(var(--mobile-section-gap) * 1.15);
  }

  .office-lead {
    width: auto;
    max-width: 640px;
  }

  .office-form {
    --office-action-gap: clamp(54px, 8vw, 78px);
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 44% 1fr;
    row-gap: var(--office-action-gap);
    column-gap: 6.28%;
    width: auto;
    margin-top: clamp(72px, 10vw, 108px);
  }

  .office-form fieldset {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    gap: 22px;
  }

  .office-form label {
    grid-template-columns: 36px 1fr;
    gap: 22px;
    min-height: 44px;
  }

  .office-form label span {
    width: 36px;
    height: 36px;
  }

  .office-form button,
  #calc-result {
    position: static;
    grid-column: 2;
    justify-self: end;
    width: 100%;
    margin-left: 0;
  }

  .office-form button {
    display: block;
    grid-row: 2;
    min-height: 64px;
    height: auto;
    margin-top: 0;
    padding: 18px 20px;
  }

  #calc-result {
    grid-row: 3;
    margin-top: calc(18px - var(--office-action-gap));
    font-size: clamp(13px, 1.7vw, 16px);
  }

  .footer {
    min-height: clamp(610px, 78vw, 760px);
    padding: 0;
  }

  .footer .section-art {
    left: auto;
    right: clamp(-210px, 0vw, 0px);
    top: 0;
    bottom: auto;
    width: auto;
    height: 100%;
    object-fit: contain;
  }

  .footer-logo {
    position: absolute;
    top: clamp(82px, 12vw, 126px);
    left: var(--mobile-gutter);
    width: clamp(168px, 24vw, 236px);
  }

  .footer-copy {
    position: absolute;
    top: clamp(190px, 26vw, 248px);
    left: clamp(160px, 20vw, 218px);
    width: min(430px, 42vw);
    margin: 0;
  }

  .footer-social {
    position: absolute;
    top: clamp(46px, 6vw, 119px);
    right: calc(100% - clamp(210px, 63vw, 512px));
    left: auto;
    width: fit-content;
    margin: 0;
    transform: translateX(100%);
  }

  .footer-nav {
    position: absolute;
    left: var(--mobile-gutter);
    bottom: clamp(74px, 11vw, 112px);
    margin: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --mobile-gutter: clamp(20px, 6.15vw, 28px);
    --mobile-body: clamp(14px, 4.05vw, 17px);
    --mobile-title: clamp(30px, 8.8vw, 42px);
    --mobile-section-gap: clamp(76px, 18vw, 104px);
  }

  .hero {
    height: clamp(720px, 188vw, 820px);
    min-height: 720px;
  }

  .hero .section-art {
    display: none;
  }

  .hero::after {
    top: 0;
    bottom: 0;
    width: clamp(240px, 64vw, 300px);
    background-size: clamp(900px, 232vw, 990px) auto;
    background-position: clamp(-42px, -5vw, -18px) bottom;
  }

  .hero-nav {
    top: 22px;
    grid-template-columns: max-content;
    column-gap: 0;
  }

  .hero-title {
    top: clamp(184px, 44vw, 220px);
    width: calc(100% - var(--mobile-gutter) * 2);
    line-height: 1.1;
  }

  .hero-dialog {
    top: clamp(324px, 84vw, 370px);
    left: clamp(86px, 26vw, 102px);
    width: min(340px, calc(100% - clamp(86px, 26vw, 102px) - var(--mobile-gutter)));
    font-size: clamp(12px, 3.55vw, 15px);
  }

  .hero-tag {
    bottom: clamp(26px, 6vw, 50px);
    width: min(330px, calc(100% - var(--mobile-gutter) * 2));
    font-size: clamp(13px, 3.75vw, 16px);
  }

  .about {
    display: block;
  }

  .about-copy {
    margin-top: 58px;
  }

  .services-title {
    margin-top: 94px;
  }

  .services-table {
    margin-top: 62px;
  }

  .services-table,
  .services-table tbody,
  .services-table tr,
  .services-table th,
  .services-table td {
    display: block;
  }

  .services-table tr {
    display: grid;
    grid-template-columns: 64px 1fr;
    row-gap: 5px;
    min-height: 128px;
    align-content: start;
    padding: 20px 0 22px;
  }

  .services-table th {
    grid-row: 1 / 3;
    padding: 0;
  }

  .services-table td {
    padding: 0;
  }

  .services-table td:nth-child(2) {
    font-weight: 500;
  }

  .case {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .case-media,
  .case-copy {
    min-height: 0;
  }

  .case-media {
    height: auto;
    aspect-ratio: 1 / 0.72;
    min-height: clamp(246px, 64vw, 340px);
  }

  .case-copy {
    min-height: clamp(390px, 104vw, 510px);
    padding: 46px var(--mobile-gutter) 72px;
  }

  .case-media-left .case-media,
  .case-media-left .case-copy,
  .case-media-right .case-media,
  .case-media-right .case-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .case-copy h2 {
    margin-top: 66px;
  }

  .case-price,
  .case-time {
    bottom: 48px;
  }

  .case-price {
    left: var(--mobile-gutter);
  }

  .case-time {
    right: var(--mobile-gutter);
  }

  .office {
    display: block;
  }

  .office-lead {
    margin-top: 52px;
  }

  .office-form {
    --office-action-gap: 0px;
    display: block;
    margin-top: 72px;
  }

  .office-form fieldset {
    width: 100%;
    gap: 18px;
  }

  .office-form label {
    grid-template-columns: 38px 1fr;
    gap: 18px;
    min-height: 48px;
  }

  .office-form label span {
    width: 38px;
    height: 38px;
  }

  .office-form button,
  #calc-result {
    width: 100%;
    margin-left: 0;
  }

  .office-form button {
    min-height: 66px;
    margin-top: 66px;
  }

  #calc-result {
    margin-top: 18px;
  }

  .footer {
    display: flex;
    flex-direction: column;
    min-height: 690px;
    padding: 82px var(--mobile-gutter) 24px;
  }

  .footer .section-art {
    right: clamp(-76px, -12vw, -42px);
    bottom: -48px;
  }

  .footer-logo {
    position: static;
    order: 1;
    width: clamp(150px, 40vw, 190px);
  }

  .footer-copy,
  .footer-social,
  .footer-nav {
    position: static;
  }

  .footer-copy {
    order: 3;
    width: 100%;
    margin-top: 56px;
    color: #ffffff;
    mix-blend-mode: difference;
  }

  .footer-social {
    order: 2;
    margin-top: 134px;
    transform: none;
  }

  .footer-nav {
    order: 4;
    margin-top: 72px;
  }
}

@media (max-width: 390px) {
  :root {
    --mobile-gutter: 20px;
    --mobile-body: 14px;
    --mobile-title: 29px;
  }

  .hero {
    height: 710px;
    min-height: 710px;
  }

  .hero .section-art {
    display: none;
  }

  .hero::after {
    top: 0;
    bottom: 0;
    width: 260px;
    background-size: 920px auto;
    background-position: -18px bottom;
  }

  .hero-tag {
    font-size: 13px;
  }

  .services-table tr {
    grid-template-columns: 54px 1fr;
  }

  .case-copy {
    min-height: 392px;
  }

  .office-form label {
    grid-template-columns: 34px 1fr;
    gap: 14px;
  }

  .office-form label span {
    width: 34px;
    height: 34px;
  }
}
