:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  --ink: #f7fbf8;
  --muted: rgba(241, 249, 244, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --accent: #bbf7d0;
  --surface: rgba(13, 30, 31, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #102326;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(77, 143, 132, 0.65), transparent 35%),
    radial-gradient(circle at 90% 85%, rgba(165, 113, 67, 0.48), transparent 38%),
    #102326;
}

.page-backdrop {
  position: fixed;
  inset: -60px;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(6, 20, 23, 0.3), rgba(23, 37, 34, 0.55)),
    url("images/cw_new_headshot.png") center / cover no-repeat;
  filter: blur(45px) saturate(1.25);
  transform: scale(1.12);
}

.page-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(6, 21, 23, 0.3), rgba(8, 18, 20, 0.82)),
    radial-gradient(circle at center, transparent 0 20%, rgba(3, 12, 14, 0.3) 78%);
}

.profile-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(300px, 1.28fr);
  width: min(100%, 890px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow:
    0 30px 90px rgba(1, 9, 10, 0.5),
    inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
}

.portrait-wrap {
  position: relative;
  display: grid;
  min-height: 100%;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(5, 17, 18, 0.45);
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(5, 15, 16, 0.42), transparent 52%);
}

.portrait {
  display: block;
  width: min(100%, 220px);
  height: auto;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(1, 9, 10, 0.38);
  object-fit: cover;
}

.profile-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.experience {
  max-width: 30ch;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.experience strong {
  color: var(--ink);
  font-weight: 650;
}

.credentials {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.credentials h2 {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.credentials ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credentials li {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(247, 251, 248, 0.9);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  line-height: 1.2;
}

.contact-button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 2.2rem;
  padding: 1rem 1.1rem;
  border-radius: 15px;
  color: #10251f;
  background: var(--accent);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  background: #dcfce7;
  box-shadow: 0 12px 30px rgba(3, 20, 13, 0.3);
}

.contact-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.contact-label,
.contact-address {
  grid-column: 1;
}

.contact-label {
  font-weight: 750;
  letter-spacing: -0.01em;
}

.contact-address {
  margin-top: 0.12rem;
  font-size: 0.76rem;
  opacity: 0.72;
}

.contact-button svg {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 680px) {
  .profile-shell {
    align-items: start;
    padding: 0;
  }

  .profile-card {
    grid-template-columns: 1fr;
    min-height: 100vh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    background: rgba(11, 27, 29, 0.78);
  }

  .portrait-wrap {
    min-height: auto;
    padding: 2rem 1.25rem 0;
  }

  .portrait {
    width: min(50vw, 210px);
    height: auto;
    min-height: 0;
    object-position: center 25%;
  }

  .profile-content {
    justify-content: flex-start;
    padding: 2rem clamp(1.25rem, 7vw, 2.5rem) 2.5rem;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5.1rem);
  }
}

@media (max-width: 380px) {
  .portrait {
    width: min(52vw, 185px);
    height: auto;
    min-height: 0;
  }

  .profile-content {
    padding-inline: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-button {
    transition: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: rgba(255, 255, 255, 0.92);
    --line: rgba(255, 255, 255, 0.42);
  }

  .profile-card {
    background: rgba(5, 16, 17, 0.94);
  }
}
