:root {
  --ink: #14120f;
  --parchment: #e8d2a3;
  --tobacco: #8a542d;
  --amber: #c87532;
  --moss: #51513a;
  --midnight: #10202d;
  --paper-bright: #f6e8c6;
  --parchment-soft: rgba(232, 210, 163, 0.72);
  --parchment-muted: rgba(232, 210, 163, 0.48);
  --hairline: rgba(232, 210, 163, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 280px;
  min-height: 100%;
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  -webkit-tap-highlight-color: rgba(200, 117, 50, 0.24);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 50;
  padding: 11px 17px;
  background: var(--parchment);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  transform: translate(-50%, -170%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.contact-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(28px, 4vw, 58px);
  padding-top: max(clamp(64px, 7vw, 92px), calc(env(safe-area-inset-top) + 52px));
  padding-right: max(clamp(28px, 4vw, 58px), env(safe-area-inset-right));
  padding-bottom: max(clamp(28px, 4vw, 58px), env(safe-area-inset-bottom));
  padding-left: max(clamp(28px, 4vw, 58px), env(safe-area-inset-left));
  background-image:
    radial-gradient(circle at 32% 38%, rgba(200, 117, 50, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(20, 18, 15, 0.7), rgba(16, 32, 45, 0.38) 52%, rgba(20, 18, 15, 0.76)),
    linear-gradient(180deg, rgba(20, 18, 15, 0.18), rgba(20, 18, 15, 0.76) 78%, rgba(20, 18, 15, 0.94)),
    url("../assets/background-mountains.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0 36%, rgba(0, 0, 0, 0.54) 92%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

.home-link {
  position: absolute;
  top: max(clamp(25px, 3vw, 44px), env(safe-area-inset-top));
  left: max(clamp(28px, 4vw, 58px), env(safe-area-inset-left));
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: rgba(232, 210, 163, 0.86);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 7px 20px rgba(0, 0, 0, 0.9);
  transition: color 170ms ease, transform 170ms ease;
}

.home-link > span:first-child {
  color: var(--amber);
  font-size: 1.05rem;
  line-height: 1;
}

.home-link:hover,
.home-link:focus-visible {
  color: var(--paper-bright);
  transform: translateX(-3px);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  align-items: stretch;
  width: min(1160px, 100%);
  min-height: min(760px, calc(100svh - 120px));
  margin: 0 auto;
}

.identity,
.connections {
  position: relative;
  min-width: 0;
}

.identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 76px) clamp(36px, 5vw, 74px) clamp(34px, 5vw, 76px) 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.88);
}

.logo {
  display: block;
  width: clamp(223px, 28.75vw, 388px);
  height: auto;
  margin: 0 0 clamp(30px, 5vh, 52px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.8));
}

.identity-copy {
  position: relative;
}

.contact-kicker {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--paper-bright);
  font-size: clamp(3.35rem, 5.3vw, 5.55rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

h1 em {
  color: #e2a56f;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.065em;
}

.introduction {
  max-width: 490px;
  margin: 27px 0 0;
  color: rgba(232, 210, 163, 0.78);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.58;
}

.services-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 25px 0 0;
  color: rgba(232, 210, 163, 0.62);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.services-line .service-separator {
  color: var(--amber);
  opacity: 0.9;
}

.connections {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 5vw, 70px);
  background:
    radial-gradient(circle at 93% 4%, rgba(200, 117, 50, 0.1), transparent 25%),
    linear-gradient(145deg, rgba(16, 32, 45, 0.26), transparent 46%),
    rgba(20, 18, 15, 0.88);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.connections::before {
  content: "";
  position: absolute;
  top: clamp(42px, 5vw, 70px);
  left: 0;
  width: 2px;
  height: 76px;
  background: linear-gradient(180deg, var(--amber), transparent);
}

.contact-heading {
  max-width: 620px;
  margin-bottom: 19px;
}

.contact-kicker {
  color: var(--amber);
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  letter-spacing: 0.18em;
}

.contact-heading h2 {
  max-width: 610px;
  margin: 11px 0 0;
  color: var(--paper-bright);
  font-size: clamp(2.35rem, 3.8vw, 4rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.contact-list {
  display: grid;
  border-top: 1px solid var(--hairline);
}

.contact-list--social {
  margin-top: 16px;
}

.contact-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 8px 5px;
  border-bottom: 1px solid var(--hairline);
  color: var(--parchment);
  text-decoration: none;
  transition: background 170ms ease, padding 170ms ease;
}

.row-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200, 117, 50, 0.6);
  border-radius: 50%;
  color: #e2a56f;
}

.row-icon svg,
.save-contact svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row-icon .filled-dot {
  fill: currentColor;
  stroke: none;
}

.row-icon--letter {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  text-transform: lowercase;
}

.row-copy {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: baseline;
  gap: 13px;
  min-width: 0;
}

.row-copy strong {
  color: rgba(232, 210, 163, 0.66);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.row-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--paper-bright);
  font-size: 0.89rem;
  line-height: 1.25;
}

.row-arrow {
  color: var(--amber);
  font-size: 0.95rem;
  transition: transform 170ms ease;
}

.contact-row:hover,
.contact-row:focus-visible {
  padding-right: 9px;
  padding-left: 9px;
  background: rgba(232, 210, 163, 0.06);
}

.contact-row:hover .row-arrow,
.contact-row:focus-visible .row-arrow {
  transform: translate(2px, -2px);
}

.save-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  margin: 0 0 16px;
  padding: 12px 18px;
  background: var(--amber);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: background 170ms ease, color 170ms ease, transform 170ms ease;
}

.save-contact:hover,
.save-contact:focus-visible {
  background: #dda05f;
  color: #090705;
  transform: translateY(-2px);
}

a:focus-visible {
  outline: 3px solid #e2a56f;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .contact-page {
    display: block;
    overflow: visible;
    padding: 60px 14px 14px;
    padding-top: max(60px, calc(env(safe-area-inset-top) + 52px));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    padding-left: max(14px, env(safe-area-inset-left));
    background-position: 58% center;
  }

  .home-link {
    top: max(8px, env(safe-area-inset-top));
    left: max(18px, env(safe-area-inset-left));
  }

  .contact-shell {
    grid-template-columns: minmax(0, 1fr);
    width: min(680px, 100%);
    min-height: 0;
  }

  .identity {
    align-items: center;
    padding: 8px 18px 29px;
    text-align: center;
  }

  .logo {
    width: clamp(176px, 56vw, 232px);
    margin-bottom: clamp(20px, 4.2vh, 32px);
  }

  h1 {
    font-size: clamp(2.65rem, 11.5vw, 4rem);
    line-height: 0.91;
  }

  .introduction {
    max-width: 510px;
    margin: 17px auto 0;
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .services-line {
    justify-content: center;
    margin-top: 14px;
    font-size: 0.58rem;
  }

  .connections {
    justify-content: flex-start;
    padding: 31px clamp(18px, 6vw, 44px) 30px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .connections::before {
    top: 0;
    left: clamp(18px, 6vw, 44px);
    width: 72px;
    height: 2px;
    background: linear-gradient(90deg, var(--amber), transparent);
  }

  .contact-heading {
    margin-bottom: 14px;
  }

  .contact-heading h2 {
    margin-top: 8px;
    font-size: clamp(2rem, 9vw, 3rem);
  }

}

@media (max-width: 520px) {
  .connections {
    padding-right: 18px;
    padding-left: 18px;
  }

  .connections::before {
    left: 18px;
  }

  .contact-row {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    gap: 10px;
    min-height: 62px;
    padding: 8px 3px;
  }

  .row-icon {
    width: 34px;
    height: 34px;
  }

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

  .row-copy small {
    font-size: 0.82rem;
  }

  .email-address {
    font-size: 0.73rem !important;
  }

  .save-contact {
    min-height: 50px;
    font-size: 0.61rem;
  }

}

@media (max-width: 520px) and (max-height: 650px) {
  .contact-page {
    padding-top: max(48px, calc(env(safe-area-inset-top) + 42px));
  }

  .identity {
    padding-top: 0;
    padding-bottom: 20px;
  }

  .logo {
    width: min(164px, 54vw);
    margin-bottom: 16px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .introduction {
    margin-top: 11px;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .services-line {
    display: none;
  }

  .connections {
    padding-top: 24px;
  }

  .contact-heading {
    margin-bottom: 10px;
  }

  .contact-heading h2 {
    margin-top: 6px;
    font-size: 1.85rem;
  }

}

@media (max-width: 340px) {
  .home-link > span:last-child {
    display: none;
  }

  .contact-page {
    padding-right: 10px;
    padding-left: 10px;
  }

  .identity {
    padding-right: 12px;
    padding-left: 12px;
  }

  .logo {
    width: min(164px, 54vw);
  }

  h1 {
    font-size: 2.7rem;
  }

  .introduction {
    font-size: 0.84rem;
  }

  .services-line {
    gap: 6px;
  }

  .connections {
    padding-right: 14px;
    padding-left: 14px;
  }

  .connections::before {
    left: 14px;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .contact-page {
    padding: max(52px, calc(env(safe-area-inset-top) + 46px)) max(18px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background-position: center;
  }

  .contact-shell {
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    width: min(900px, 100%);
  }

  .identity {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 14px 28px 28px 0;
    text-align: left;
  }

  .logo {
    width: min(184px, 24vw);
    margin-bottom: 12px;
  }

  h1 {
    font-size: clamp(2.65rem, 6.4vw, 3.5rem);
  }

  .introduction {
    margin: 14px 0 0;
    font-size: 0.78rem;
  }

  .services-line {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .connections {
    padding: 30px 28px;
  }

  .connections::before {
    left: 0;
    width: 2px;
    height: 68px;
    background: linear-gradient(180deg, var(--amber), transparent);
  }

  .contact-heading h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 901px) and (max-height: 960px) {
  .contact-page {
    padding-top: max(62px, calc(env(safe-area-inset-top) + 48px));
    padding-bottom: 24px;
  }

  .contact-shell {
    min-height: 0;
  }

  .identity {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .logo {
    width: clamp(190px, 22vw, 270px);
    margin-bottom: 20px;
  }

  h1 {
    margin-top: 0;
    font-size: 4.35rem;
  }

  .introduction {
    margin-top: 17px;
  }

  .services-line {
    margin-top: 16px;
  }

  .connections {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .connections::before {
    top: 34px;
  }

  .contact-heading {
    margin-bottom: 12px;
  }

  .contact-heading h2 {
    font-size: 2.7rem;
  }

  .contact-row {
    min-height: 52px;
  }

  .save-contact {
    min-height: 48px;
    margin-bottom: 12px;
  }

  .contact-list--social {
    margin-top: 12px;
  }

}

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

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

@media print {
  .skip-link,
  .home-link {
    display: none;
  }

  .contact-page {
    padding: 0;
  }

  .connections {
    box-shadow: none;
  }
}
