:root {
  --ink: #071c3a;
  --blue: #4f6edb;
  --paper: #f6f4ef;
  --page-pad: clamp(12px, 3vmin, 32px);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: var(--page-pad);
  color: var(--ink);
  background: radial-gradient(circle at 48% 35%, #34373a 0, transparent 44%), linear-gradient(145deg, #202326, #101113 68%);
  font-family: Manrope, sans-serif;
}

.scene {
  width: min(940px, calc(100vw - 2 * var(--page-pad)), calc((100dvh - 2 * var(--page-pad)) * 1.78));
  max-height: calc(100dvh - 2 * var(--page-pad));
}

.business-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.78;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 2px;
  color: var(--ink);
  background: var(--paper);
  box-shadow:
    22px 38px 46px #00000080,
    5px 9px 14px #00000066,
    0 64px 96px #0000004f,
    inset 0 0 0 1px #071c3a0a;
  transform: rotate(-1.1deg);
  touch-action: manipulation;
}

.business-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .24;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}

.business-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, #ffffff5c, transparent 42%, #071c3a05);
}

.identity { padding: clamp(44px, 7vw, 86px); }

.wordmark {
  display: flex;
  align-items: baseline;
  margin: 0 0 clamp(22px, 3vw, 36px);
  font-size: clamp(4.2rem, 9.2vw, 8rem);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.095em;
}

.wordmark-p { letter-spacing: -.14em; }

.promise {
  margin: 0;
  font-size: clamp(1.1rem, 2.25vw, 1.92rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.promise strong { color: var(--blue); font-weight: 500; }

.contact {
  position: relative;
  display: grid;
  gap: clamp(17px, 2.1vw, 25px);
  margin-right: clamp(42px, 6vw, 76px);
  padding-left: clamp(38px, 5.6vw, 68px);
}

.contact::before {
  content: "";
  position: absolute;
  top: -8%;
  bottom: -8%;
  left: 0;
  width: 1px;
  background: var(--blue);
}

.contact-row {
  position: relative;
  display: grid;
  grid-template-columns: clamp(34px, 4.2vw, 48px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(13px, 1.8vw, 20px);
}

.contact-row[hidden] { display: none; }

.contact-icon {
  width: clamp(34px, 4.2vw, 48px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.contact-icon svg {
  width: 56%;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-row div { min-width: 0; }

.contact-row small {
  display: block;
  margin-bottom: 3px;
  color: #647188;
  font-size: clamp(.55rem, .78vw, .68rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.phone-heading {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.region-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid #4f6edb66;
  border-radius: 999px;
  background: #fff8;
}

.region-switch[hidden] { display: none; }

.region-switch button {
  min-width: 28px;
  padding: 3px 6px;
  border: 0;
  border-radius: 999px;
  color: #647188;
  background: transparent;
  font: inherit;
  font-size: .58rem;
  letter-spacing: .08em;
  cursor: pointer;
}

.region-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--blue);
}

.contact-row a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(.85rem, 1.62vw, 1.28rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-decoration-color: var(--blue);
  text-underline-offset: 5px;
}

.contact-row a:not([href]) { text-decoration: none; }

.phone-line {
  display: flex;
  align-items: baseline;
  gap: clamp(9px, 1.2vw, 14px);
}

.phone-line #contact-phone { flex: 0 1 auto; }

.phone-line .text-link {
  flex: none;
  color: var(--blue);
  font-size: clamp(.64rem, .95vw, .78rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 650px) {
  :root { --page-pad: clamp(10px, 3vw, 16px); }

  .scene {
    width: min(calc(100vw - 2 * var(--page-pad)), calc((100dvh - 2 * var(--page-pad)) * .625));
  }

  .business-card {
    aspect-ratio: .625;
    grid-template-columns: 1fr;
    align-content: center;
    gap: clamp(24px, 6dvh, 52px);
    transform: none;
  }

  .identity { padding: clamp(30px, 11vw, 50px) clamp(28px, 10vw, 46px) 0; }
  .wordmark {
    margin-bottom: clamp(18px, 5vw, 26px);
    font-size: clamp(3.8rem, 22vw, 6rem);
  }
  .promise { font-size: clamp(1.05rem, 5.2vw, 1.45rem); }

  .contact {
    gap: clamp(16px, 4dvh, 24px);
    margin: 0 clamp(26px, 9vw, 42px) clamp(28px, 8dvh, 50px);
    padding: clamp(22px, 5dvh, 30px) 0 0;
  }

  .contact::before {
    top: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .contact-row { grid-template-columns: clamp(36px, 11vw, 42px) minmax(0, 1fr); }
  .contact-icon { width: clamp(36px, 11vw, 42px); }
  .contact-row a { font-size: clamp(.82rem, 4.2vw, 1rem); }
  .phone-line { gap: 9px; }
  .phone-line .text-link { font-size: .6rem; }
  .region-switch button { min-width: 26px; padding: 3px 5px; font-size: .52rem; }
}
