@font-face {
  font-family: "Hurme Geometric Sans 4";
  src: url("assets/hurme-light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hurme Geometric Sans 4";
  src: url("assets/hurme-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #1b1b1e;
  --pink: #ffb5fb;
  --lavender: #c3b6ff;
  --white: #ffffff;
  --mica-surface: rgb(20 20 24 / .56);
  --mica-edge: rgb(255 255 255 / .2);
  --mica-highlight: rgb(255 255 255 / .13);
  color: var(--white);
  background: #111114;
  font-family: "Hurme Geometric Sans 4", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  min-height: 100svh;
  min-height: 100dvh;
  background: #111114;
}

img { display: block; }

button,
a { -webkit-tap-highlight-color: rgb(255 181 251 / .18); }

::selection {
  color: var(--charcoal);
  background: var(--pink);
}

.contact-card {
  position: relative;
  width: min(100%, 430px);
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding:
    max(1.75rem, env(safe-area-inset-top))
    max(1.5rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
  overflow: hidden;
  background: var(--charcoal);
  isolation: isolate;
}

.project {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  object-position: 48% center;
  transform: scale(1.04) translate3d(0, var(--parallax-y, 0px), 0);
  transform-origin: center;
}

.contact-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgb(27 27 30 / .07) 0%,
      rgb(27 27 30 / .025) 24%,
      rgb(27 27 30 / .05) 38%,
      rgb(27 27 30 / .14) 50%,
      rgb(27 27 30 / .31) 63%,
      rgb(27 27 30 / .52) 76%,
      rgb(27 27 30 / .72) 87%,
      rgb(27 27 30 / .88) 95%,
      rgb(27 27 30 / .98) 100%
    ),
    linear-gradient(to right, rgb(27 27 30 / .22) 0%, transparent 50%);
  content: "";
  pointer-events: none;
}

.brand,
.hero-grid,
.contact-panel {
  position: relative;
  z-index: 2;
}

.brand { flex: 0 0 auto; }

.logo {
  width: clamp(8.75rem, 34vw, 9.15rem);
  height: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(45vw, 11.5rem);
  gap: clamp(.75rem, 3vw, 1.25rem);
  align-items: center;
  margin-top: clamp(6.5rem, 17svh, 9.25rem);
}

.identity-lead {
  position: relative;
  z-index: 0;
  min-width: 0;
  margin-left: -.75rem;
  padding: .85rem .9rem .95rem;
  isolation: isolate;
}

.identity-lead::before {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.identity-lead::before {
  inset: -.65rem -.9rem;
  background: radial-gradient(ellipse at 42% 54%, rgb(18 18 21 / .18) 0 28%, rgb(18 18 21 / .08) 52%, transparent 76%);
  -webkit-backdrop-filter: blur(8px) brightness(.9) saturate(108%);
  backdrop-filter: blur(8px) brightness(.9) saturate(108%);
  -webkit-mask-image: radial-gradient(ellipse, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse, #000 30%, transparent 78%);
}

.name {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.1rem, 10.5vw, 2.55rem);
  font-weight: 300;
  line-height: .94;
  letter-spacing: -.03em;
}

.name-compact {
  font-size: clamp(1.5rem, 6.8vw, 2.1rem);
  letter-spacing: -.04em;
}

.credentials {
  margin: .55rem 0 0;
  color: var(--white);
  font-size: .82rem;
  line-height: 1.25;
}

.role {
  margin: .9rem 0 0;
  color: var(--lavender);
  font-size: clamp(.95rem, 4.1vw, 1rem);
  font-weight: 400;
  line-height: 1.28;
}

.portrait {
  width: 100%;
  aspect-ratio: 184 / 242;
  object-fit: cover;
  object-position: center top;
  border-radius: .8rem;
}

.contact-panel {
  margin-top: auto;
  padding: 1rem 0 .75rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  row-gap: .25rem;
  align-items: center;
  padding-bottom: .85rem;
}

.contact-grid a {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: 0 1px 14px rgb(0 0 0 / .32);
}

.contact-grid a::before {
  position: absolute;
  inset: .2rem -.55rem;
  z-index: -1;
  background: radial-gradient(ellipse, rgb(15 15 18 / .16) 0 22%, rgb(15 15 18 / .07) 52%, transparent 78%);
  -webkit-backdrop-filter: blur(7px) brightness(.92) saturate(106%);
  backdrop-filter: blur(7px) brightness(.92) saturate(106%);
  -webkit-mask-image: radial-gradient(ellipse, #000 24%, transparent 80%);
  mask-image: radial-gradient(ellipse, #000 24%, transparent 80%);
  content: "";
  pointer-events: none;
}

.contact-grid .email {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}

.contact-grid .website { color: var(--lavender); }

.action-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  border-top: 1.5px solid rgb(195 182 255 / .45);
  border-bottom: 1.5px solid var(--lavender);
}

.action {
  min-height: 62px;
  display: flex;
  align-items: center;
  border: 0;
  color: var(--white);
  background: transparent;
  font: 400 1rem/1 "Hurme Geometric Sans 4", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.save-contact {
  justify-content: space-between;
  padding-right: 1.1rem;
  font-size: 1.125rem;
}

.save-contact::after {
  width: .55rem;
  height: .55rem;
  border: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-.2rem);
}

.copy-details {
  justify-content: flex-end;
  padding-left: 1rem;
  color: var(--lavender);
  border-left: 1px solid rgb(195 182 255 / .25);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.copy-dialog {
  width: min(100%, 430px);
  max-width: 430px;
  max-height: min(82svh, 46rem);
  margin: auto auto 0;
  padding:
    1.5rem
    max(1.5rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
  overflow-y: auto;
  border: 1px solid var(--mica-edge);
  border-radius: 1.25rem 1.25rem 0 0;
  color: var(--white);
  background:
    linear-gradient(145deg, rgb(255 255 255 / .06), transparent 48%),
    rgb(27 27 30 / .94);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  font-family: "Hurme Geometric Sans 4", sans-serif;
}

.copy-dialog::backdrop { background: rgb(10 10 12 / .72); }

.dialog-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--lavender);
}

.dialog-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1.05;
}

.close-dialog,
.copy-row button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  color: var(--lavender);
  background: transparent;
  font: 400 .9rem/1 "Hurme Geometric Sans 4", sans-serif;
  cursor: pointer;
}

.copy-list { display: grid; }

.copy-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid rgb(195 182 255 / .22);
}

.copy-row div { min-width: 0; }

.copy-row span,
.copy-row strong { display: block; }

.copy-row span {
  margin-bottom: .25rem;
  color: var(--pink);
  font-size: .78rem;
}

.copy-row strong {
  overflow-wrap: anywhere;
  font-size: clamp(.9rem, 3.8vw, .96rem);
  font-weight: 300;
  line-height: 1.25;
  user-select: text;
}

.copy-status {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: var(--lavender);
  font-size: .88rem;
}

@media (max-width: 370px) {
  .contact-card {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 43vw;
    gap: .65rem;
    margin-top: clamp(4rem, 13svh, 6rem);
  }

  .name { font-size: clamp(1.9rem, 10vw, 2.25rem); }
  .name-compact { font-size: clamp(1.42rem, 6.8vw, 1.8rem); }
  .contact-panel { padding: .8rem 0 .65rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .email { grid-column: auto; }
  .contact-grid .website { grid-row: 3; }
  .action { font-size: .95rem; }
  .save-contact { font-size: 1.02rem; }
}

@media (max-height: 720px) and (orientation: portrait) {
  .logo { width: 8rem; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) min(42vw, 10.5rem);
    margin-top: 2.75rem;
  }

  .identity-lead { padding: .7rem .8rem .8rem; }
  .contact-panel { padding: .75rem 0 .55rem; }
  .action { min-height: 56px; }
}

@media (min-width: 700px) {
  body {
    display: grid;
    place-items: center;
    padding: 2rem;
  }

  .contact-card {
    min-height: min(932px, calc(100svh - 4rem));
    min-height: min(932px, calc(100dvh - 4rem));
  }
}

@media (orientation: landscape) and (max-height: 700px) {
  body { padding: 0; }

  .contact-card {
    width: min(100%, 780px);
    min-height: 100svh;
    min-height: 100dvh;
  }

  .logo { width: 8rem; }

  .hero-grid {
    width: 48%;
    margin-top: 1.25rem;
  }

  .contact-panel {
    position: absolute;
    right: max(1.5rem, env(safe-area-inset-right));
    bottom: max(.5rem, env(safe-area-inset-bottom));
    width: 43%;
    padding-top: 0;
  }
}

@media (hover: hover) {
  .contact-grid a:hover,
  .copy-details:hover,
  .copy-dialog button:hover { color: var(--pink); }
}

@media (max-width: 699px) {
  html.has-card-overflow .project { will-change: transform; }
}

@media (prefers-reduced-transparency: reduce) {
  .copy-dialog {
    background: rgb(27 27 30 / .96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .identity-lead::before,
  .contact-grid a::before {
    background: radial-gradient(ellipse, rgb(27 27 30 / .22), transparent 76%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project {
    transform: scale(1.04) !important;
    will-change: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.error-page {
  min-height: 100svh;
  min-height: 100dvh;
  display: block;
  place-items: normal;
  padding: 0;
  background: var(--charcoal);
}

.error-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  min-height: 7.2rem;
  display: grid;
  grid-template-columns: 8.875rem minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 3.5vw, 4rem);
  align-items: center;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(3rem, env(safe-area-inset-right))
    1.5rem
    max(3rem, env(safe-area-inset-left));
  color: var(--white);
}

.error-logo {
  width: 8.875rem;
  color: inherit;
}

.error-logo img {
  width: 100%;
  height: auto;
}

.error-nav-links,
.error-nav-actions {
  display: flex;
  gap: clamp(1.25rem, 2.2vw, 2.5rem);
  align-items: center;
}

.error-nav-links { justify-content: center; }

.error-nav-links a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.error-nav a {
  color: inherit;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

.error-nav-actions a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0 .8rem;
  border-bottom: 1px solid var(--lavender);
}

.error-mobile-home { display: none; }

.error-main {
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
}

.error-hero {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding:
    max(8rem, env(safe-area-inset-top))
    max(1.5rem, env(safe-area-inset-right))
    max(3rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
  text-align: center;
  background: linear-gradient(0deg, var(--charcoal) 0%, #6d4a6b 100%);
}

.error-eyebrow {
  margin: 0;
  color: var(--pink);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
}

.error-heading {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  align-items: center;
}

.error-heading h1 {
  margin: 0;
  font-size: clamp(4.25rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.03em;
}

.error-heading p {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 300;
  line-height: 1.3;
  text-transform: uppercase;
}

.error-home-link {
  min-height: 3rem;
  display: inline-flex;
  gap: .8rem;
  align-items: center;
  margin-top: .35rem;
  padding: .35rem .8rem;
  border-bottom: 1px solid var(--lavender);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}

.error-home-link svg { transition: transform 180ms ease-out; }

.error-nav a:focus-visible,
.error-home-link:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

@media (hover: hover) {
  .error-nav a:hover,
  .error-home-link:hover { color: var(--pink); }
  .error-home-link:hover svg { transform: translateX(.2rem); }
}

@media (max-width: 980px) {
  .error-nav {
    min-height: 7.2rem;
    grid-template-columns: 8.875rem auto;
    justify-content: space-between;
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-left: max(1rem, env(safe-area-inset-left));
  }

  .error-nav-links,
  .error-nav-actions { display: none; }

  .error-mobile-home {
    width: 3rem;
    height: 3rem;
    display: flex;
    flex-direction: column;
    gap: .28rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lavender);
    border-radius: 50%;
  }

  .error-mobile-home span {
    width: 1rem;
    height: 1px;
    background: currentColor;
  }
}

@media (max-width: 480px) {
  .error-eyebrow { font-size: 1rem; }
  .error-heading { gap: 1.1rem; }
  .error-heading h1 { font-size: 3.25rem; }
  .error-heading p { font-size: 1.1rem; }
  .error-hero { gap: 1.5rem; }
}
