:root {
  --paper: #ffffff;
  --ink: #252c35;
  --grey: #68717e;
  --muted: #737c88;
  --line: #e0e5eb;
  --accent: #2865c4;
  --accent-dark: #1e4e95;
  --accent-soft: #edf3fc;
  --focus: #2865c4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 88px;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

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

svg {
  width: 100%;
  height: auto;
}

.shell {
  width: min(1184px, calc(100% - 96px));
  margin-inline: auto;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 15px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  transform: translateY(-200%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: 8px;
  color: var(--accent);
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -0.35px;
}

.brand-name {
  display: inline-block;
  color: #505761;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.9px;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-x {
  color: inherit;
}

.brand-descriptor {
  margin-top: 3px;
  color: var(--grey);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1.65px;
  text-transform: uppercase;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav-link,
.footer-contact,
.contact-link {
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-link {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(62, 48, 42, 0.04);
  color: #454e5b;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.nav-link:hover {
  border-color: #aebed4;
  box-shadow: 0 3px 8px rgba(62, 48, 42, 0.07);
  color: var(--accent-dark);
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(400px, 52svh, 500px);
  overflow: hidden;
  background: #ffffff;
}

.hero-image {
  position: absolute;
  top: 0;
  right: max(0px, calc((100vw - 1440px) / 2));
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 90%, transparent);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .98) 18%, rgba(255, 255, 255, .62) 36%, transparent 57%),
    linear-gradient(0deg, #fff 0%, transparent 17%),
    linear-gradient(180deg, rgba(255, 255, 255, .72), transparent 14%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1184px, calc(100% - 96px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: 45%;
  max-width: 480px;
  padding-bottom: 24px;
}

h1 {
  color: #434c59;
  font-size: clamp(44px, 3.75vw, 54px);
  font-weight: 400;
  letter-spacing: -1.8px;
  line-height: 1.12;
}

.products-section {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  padding: 32px 0 48px;
}

.products-copy {
  width: 100%;
  max-width: 480px;
}

.products-label {
  margin: 0 0 14px;
  color: #77726e;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.25px;
  line-height: 1.4;
  text-transform: uppercase;
}

.business-list {
  border-top: 1px solid var(--line);
}

.business-list li {
  border-bottom: 1px solid var(--line);
}

.business-link {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(132px, 0.85fr) 1fr;
  align-items: center;
  gap: 20px;
  padding: 12px 2px;
}

.business-name {
  color: #44413f;
  font-size: 16px;
}

.business-type {
  color: var(--muted);
  font-size: 13px;
}

.business-link:hover .business-name {
  color: var(--accent-dark);
}

.contact-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 12px 22px;
  border: 1px solid #245bb0;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 9px rgba(40, 101, 196, 0.14);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.contact-link:hover {
  background: var(--accent-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 5px 12px rgba(40, 101, 196, 0.17);
  transform: translateY(-1px);
}

.contact-link:active {
  transform: translateY(0);
}

.artwork {
  width: min(100%, 360px);
  justify-self: end;
}

.artwork img {
  width: 100%;
  height: auto;
}

.site-footer {
  margin-top: auto;
  color: #88837f;
  font-size: 12px;
}

.site-footer .shell {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.footer-contact {
  padding: 6px 0;
  color: #716d69;
  font-size: 12px;
}

.footer-contact:hover {
  color: var(--accent-dark);
}

.contact-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 38px 40px 36px;
  overflow-y: auto;
  border: 1px solid rgba(205, 196, 190, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 70px rgba(54, 43, 38, 0.17), 0 4px 16px rgba(54, 43, 38, 0.06);
  color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(105%);
  backdrop-filter: blur(14px) saturate(105%);
}

.contact-dialog::backdrop {
  background: rgba(47, 42, 39, 0.32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid #ddd6d1;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(62, 48, 42, 0.05);
  color: #625c58;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.dialog-close:hover {
  border-color: rgba(40, 101, 196, 0.4);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.dialog-kicker {
  display: block;
  padding-right: 36px;
  color: var(--accent-dark);
  font-size: 11px;
  letter-spacing: 1.35px;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact-dialog h2 {
  margin-top: 11px;
  padding-right: 24px;
  color: #45413e;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.55px;
  line-height: 1.25;
}

.contact-dialog > p {
  max-width: 440px;
  margin-top: 12px;
  color: var(--grey);
  font-size: 14px;
  line-height: 1.6;
}

.contact-form {
  margin-top: 27px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #454e5b;
  font-size: 12px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d5cec9;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 2px rgba(70, 55, 48, 0.025);
  color: var(--ink);
  font-size: 14px;
  outline-offset: 2px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input,
.field select {
  height: 44px;
  padding: 10px 12px;
}

.field select {
  padding-right: 38px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23776f6a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}

.field textarea {
  min-height: 108px;
  padding: 11px 12px;
  line-height: 1.5;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #bfb4ad;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(40, 101, 196, 0.11);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  border-color: #e5e0dc;
  background-color: #f5f3f1;
  color: #85807b;
  cursor: not-allowed;
  opacity: 0.72;
}

.honeypot {
  display: none !important;
}

.form-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}

.send-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid #245bb0;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 3px 9px rgba(40, 101, 196, 0.14);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.send-button:hover:not(:disabled) {
  background: var(--accent-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 5px 12px rgba(40, 101, 196, 0.17);
}

.send-button:disabled {
  border-color: #96afd5;
  background: #96afd5;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.form-status {
  flex: 1;
  color: var(--grey);
  font-size: 12px;
  line-height: 1.45;
}

.form-status[data-kind="success"] {
  color: #426b50;
}

.form-status[data-kind="error"] {
  color: #a3483d;
}

@media (max-width: 1000px) {
  .products-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }

  .business-link {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-block: 16px;
  }
}

@media (max-width: 900px) {
  .hero {
    height: 560px;
  }

  .hero-inner {
    align-items: flex-start;
    padding-top: 48px;
  }

  .hero-copy {
    width: 100%;
    max-width: 460px;
    padding: 0;
  }

  h1 {
    font-size: 48px;
  }

  .hero-image {
    top: auto;
    right: 0;
    bottom: 0;
    width: auto;
    height: 360px;
    object-position: right bottom;
  }

  .hero::after {
    background:
      linear-gradient(180deg, #fff 0%, #fff 23%, transparent 54%),
      linear-gradient(0deg, #fff 0%, transparent 20%),
      linear-gradient(90deg, rgba(255, 255, 255, .7), transparent 45%);
  }
}

@media (max-width: 700px) {
  .shell,
  .hero-inner {
    width: calc(100% - 48px);
  }

  .products-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 40px 0 42px;
  }

  .products-copy {
    max-width: none;
  }

  .business-link {
    grid-template-columns: minmax(120px, 1fr) minmax(0, 1fr);
    gap: 20px;
  }

  .artwork {
    width: min(100%, 400px);
    justify-self: center;
  }

  .hero-image {
    right: -8%;
    width: auto;
    height: 340px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 72px;
    gap: 12px;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-descriptor {
    font-size: 9px;
    letter-spacing: 1.35px;
  }

  .nav-link {
    padding-inline: 14px;
    font-size: 13px;
  }

  .hero {
    height: 540px;
  }

  .hero-inner {
    padding-top: 42px;
  }

  .hero-image {
    right: -8%;
    width: 132%;
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 5%);
    mask-image: linear-gradient(180deg, transparent, #000 5%);
  }

  .hero::after {
    background:
      linear-gradient(180deg, #fff 0%, #fff 32%, transparent 61%),
      linear-gradient(0deg, #fff 0%, transparent 17%);
  }

  h1 {
    font-size: 42px;
    letter-spacing: -1.4px;
  }

  .contact-link {
    margin-top: 24px;
  }

  .business-link {
    min-height: 74px;
    gap: 12px;
  }

  .business-type {
    font-size: 12px;
  }

  .contact-dialog {
    padding: 32px 22px 25px;
    border-radius: 14px;
  }

  .dialog-close {
    top: 13px;
    right: 13px;
    width: 40px;
    height: 40px;
  }

  .contact-dialog h2 {
    font-size: 25px;
  }

  .contact-form {
    margin-top: 23px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .form-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .send-button,
  .form-status {
    width: 100%;
  }

  .site-footer .shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 17px 0 19px;
  }
}

@media (max-width: 350px) {
  .shell,
  .hero-inner {
    width: calc(100% - 36px);
  }

  h1 {
    font-size: 36px;
  }

  .hero {
    height: 500px;
  }

  .hero-image {
    height: auto;
    width: 140%;
  }

  .brand-name {
    font-size: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
