:root {
  --brand: rgb(81, 178, 197);
  --brand-dark: rgb(41, 129, 147);
  --ink: #101414;
  --paper: #f7f7f2;
  --white: #ffffff;
  --muted: #5d6667;
  --line: #151919;
  --border: 3px solid var(--line);
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--brand);
  font-family: var(--body);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.16;
  background-image: linear-gradient(rgba(16, 20, 20, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 20, 0.22) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 24px auto;
}

.content-panel,
.contact-panel {
  border: var(--border);
}

.content-panel {
  overflow: hidden;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.site-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 74px;
  border-bottom: var(--border);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  align-self: stretch;
  min-width: 78px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -0.1em;
}

.brand-name {
  padding: 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  letter-spacing: -0.04em;
}

.header-link {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0 1.5rem;
  border-left: var(--border);
  font-weight: 700;
  text-decoration: none;
}

.header-link span {
  font-size: 1.45rem;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--white);
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 610px;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 7vw, 6.7rem);
  overflow: hidden;
  border-bottom: var(--border);
}

.hero::after {
  position: absolute;
  right: clamp(1.5rem, 7vw, 6rem);
  bottom: -2.2rem;
  z-index: 0;
  color: var(--brand);
  content: "✦";
  font-family: Arial, sans-serif;
  font-size: clamp(10rem, 24vw, 21rem);
  line-height: 0.8;
  transform: rotate(8deg);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-left: 0.7rem;
  padding: 0.25rem 0.55rem;
  color: var(--white);
  background: var(--brand-dark);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--display);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 920px;
  margin-bottom: 2rem;
  font-size: clamp(3.3rem, 8.3vw, 7.75rem);
}

.accent-underline {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.accent-underline::after {
  position: absolute;
  right: -0.03em;
  bottom: 0.04em;
  left: -0.03em;
  z-index: -1;
  height: 0.18em;
  background: var(--brand);
  content: "";
  transform: rotate(-1deg);
}

.hero-copy {
  max-width: 670px;
  margin: 0 0 2.3rem;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.button {
  display: inline-flex;
  gap: 1.4rem;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font: 700 0.86rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}

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

.text-link {
  font-size: 0.83rem;
  text-underline-offset: 0.3em;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.services,
.approach {
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4.5rem);
  border-bottom: var(--border);
}

.section-intro {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.section-number {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 700;
}

.section-intro h2,
.approach h2,
.portfolio-note h2,
.contact-heading h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--border);
}

.service-card {
  min-height: 295px;
  padding: 2rem;
  background: var(--white);
}

.service-card + .service-card {
  border-left: var(--border);
}

.service-card:nth-child(2) {
  background: #dff2f5;
}

.service-icon {
  display: grid;
  width: 51px;
  height: 51px;
  margin-bottom: 3rem;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--brand);
  font-weight: 700;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.45rem;
}

.service-card p {
  margin: 0;
  color: #3c4545;
  font-size: 0.86rem;
}

.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
  background: var(--white);
}

.approach-copy > p:last-child {
  max-width: 580px;
  margin-bottom: 0;
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 2px solid var(--ink);
}

.process-list li > span {
  color: var(--brand-dark);
  font-weight: 700;
}

.process-list strong,
.process-list small {
  display: block;
}

.process-list strong {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.process-list small {
  margin-top: 0.25rem;
  color: var(--muted);
}

.portfolio-note {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  color: var(--white);
  background: var(--ink);
}

.portfolio-symbol {
  color: var(--brand);
  font-size: 7rem;
  line-height: 1;
}

.portfolio-note h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.portfolio-note p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: #c9d0d0;
}

.button-light {
  color: var(--ink);
  background: var(--brand);
  border-color: var(--white);
  box-shadow: 4px 4px 0 var(--white);
  white-space: nowrap;
}

.button-light:hover,
.button-light:focus-visible {
  box-shadow: 1px 1px 0 var(--white);
}

.content-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 5vw, 4.5rem);
  font-size: 0.77rem;
}

.content-footer p {
  margin: 0;
}

.content-footer a {
  font-weight: 700;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(3rem, 8vw, 7rem);
  margin-top: 38px;
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5.5rem) 1.7rem;
  background: var(--brand);
  box-shadow: 8px 8px 0 var(--ink);
}

.contact-heading .section-number {
  margin-bottom: clamp(3rem, 8vw, 7rem);
  background: var(--paper);
}

.contact-heading > p:not(.eyebrow):not(.section-number) {
  max-width: 520px;
  margin-bottom: 2rem;
}

.contact-email {
  display: inline-flex;
  flex-direction: column;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--ink);
  font-size: 0.8rem;
  text-decoration: none;
}

.contact-email strong {
  font-size: 1rem;
}

.contact-form {
  align-self: start;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: var(--border);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-form label > span {
  display: block;
  margin-bottom: 0.4rem;
}

.contact-form small {
  color: var(--muted);
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  font: 0.9rem/1.4 var(--body);
}

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

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.button-dark {
  width: 100%;
  color: var(--white);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--brand-dark);
}

.button-dark:hover,
.button-dark:focus-visible {
  box-shadow: 1px 1px 0 var(--brand-dark);
}

.form-note,
.form-status {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.form-status:not(:empty) {
  padding: 0.7rem;
  border-left: 3px solid var(--brand-dark);
  color: var(--ink);
  background: #dff2f5;
}

.contact-footer {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1.4rem;
  border-top: 2px solid rgba(16, 20, 20, 0.45);
  font-size: 0.75rem;
}

.contact-footer p {
  margin: 0;
}

.contact-footer a {
  font-weight: 700;
}

@media (max-width: 900px) {
  .service-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .service-card + .service-card {
    border-top: var(--border);
    border-left: 0;
  }

  .service-icon {
    margin-bottom: 1.5rem;
  }

  .approach,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .portfolio-note {
    grid-template-columns: 80px 1fr;
  }

  .portfolio-symbol {
    font-size: 5rem;
  }

  .portfolio-note .button {
    grid-column: 2;
    justify-self: start;
  }

  .contact-heading .section-number {
    margin-bottom: 3rem;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .content-panel,
  .contact-panel {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .site-header {
    min-height: 62px;
  }

  .brand-mark {
    min-width: 61px;
    font-size: 1.1rem;
  }

  .brand-name {
    padding: 0 0.8rem;
    font-size: 1rem;
  }

  .header-link {
    gap: 0.5rem;
    padding: 0 0.8rem;
    font-size: 0.73rem;
  }

  .header-link span {
    display: none;
  }

  .hero {
    min-height: 560px;
    padding-top: 4.5rem;
  }

  h1 {
    font-size: clamp(2.8rem, 12.5vw, 4.6rem);
  }

  .hero::after {
    right: 0.5rem;
    bottom: -0.8rem;
    font-size: 11rem;
  }

  .section-intro {
    grid-template-columns: 1fr;
  }

  .section-intro h2,
  .approach h2,
  .contact-heading h2 {
    font-size: 2.5rem;
  }

  .portfolio-note {
    grid-template-columns: 1fr;
  }

  .portfolio-symbol {
    font-size: 4rem;
  }

  .portfolio-note .button {
    grid-column: 1;
  }

  .content-footer,
  .contact-footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-panel {
    margin-top: 26px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
