* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand: #009086;
  --brand-deep: #005f59;
  --ink: #171a18;
  --muted: #69716e;
  --paper: #fbfaf7;
  --line: #dce4e1;
  --corner-radius: 2rem;
}

html {
  background: var(--paper);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
}

.site-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.profile {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 5.5rem);
}

.profile-media {
  position: sticky;
  top: 2rem;
  align-self: start;
  isolation: isolate;
  border-radius: var(--corner-radius);
}

.profile-media::after {
  position: absolute;
  content: "";
}

.profile-media::after {
  inset: 0;
  z-index: 1;
  border-radius: var(--corner-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(28deg, rgba(0, 144, 134, 0.32) 0%, rgba(0, 144, 134, 0.08) 36%, transparent 66%),
    linear-gradient(0deg, rgba(18, 28, 26, 0.26), transparent 46%);
  pointer-events: none;
}

.profile-media img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  max-height: min(820px, calc(100vh - 4rem));
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 50%;
  border: 1px solid rgba(0, 144, 134, 0.18);
  border-radius: var(--corner-radius);
  box-shadow: 0 2rem 5rem rgba(20, 23, 22, 0.12);
  filter: grayscale(100%) contrast(1.03);
}

.profile-content {
  max-width: 610px;
}

.profile-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 2.6rem;
}

.brand-block {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.brand-mark-wrap {
  display: grid;
  width: clamp(4.4rem, 8vw, 5.7rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(0, 144, 134, 0.26);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 1.1rem 2.8rem rgba(0, 95, 89, 0.18);
}

.brand-mark {
  display: block;
  width: 74%;
  height: auto;
  filter: brightness(0) invert(1);
}

.eyebrow {
  color: var(--brand-deep);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.9rem, 5.4vw, 4.9rem);
  font-weight: 300;
  line-height: 0.95;
  transform: translateY(0.1em);
}

h1 em {
  display: block;
  color: var(--brand);
  font-style: italic;
}

.profile-bio p {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.82;
}

.social-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-deep);
  font-size: 0.82rem;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.social-link i {
  color: var(--brand);
  font-size: 1rem;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--ink);
  outline-color: var(--brand);
  outline-offset: 0.25rem;
  transform: translateY(-1px);
}

.social-link:hover i,
.social-link:focus-visible i {
  color: var(--brand-deep);
}

.tags {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-deep);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.js .reveal {
  opacity: 0;
  transform: translateY(2rem);
  filter: blur(10px);
}

.js .reveal.is-visible {
  animation: text-rise 850ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms) both;
}

@keyframes text-rise {
  from {
    opacity: 0;
    transform: translateY(2rem);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 820px) {
  body {
    background: var(--paper);
  }

  .site-main {
    align-items: flex-start;
    padding: 1.25rem;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 42rem;
  }

  .profile-media {
    position: relative;
  }

  .profile-media img {
    max-height: none;
    aspect-ratio: 4 / 5;
    object-position: 50% 45%;
  }

  .profile-content {
    max-width: none;
    padding: 0.4rem 0.35rem 1.5rem;
  }

  .brand-mark-wrap {
    width: 4.8rem;
  }

  h1 {
    font-size: clamp(3.25rem, 13vw, 4.7rem);
  }
}

@media (max-width: 520px) {
  .site-main {
    padding: 0.9rem;
  }

  :root {
    --corner-radius: 1.45rem;
  }

  .profile-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    margin-bottom: 2.1rem;
  }

  .brand-block {
    gap: 0.9rem;
  }

  .brand-mark-wrap {
    width: 3.85rem;
  }

  .eyebrow {
    font-size: 0.54rem;
    letter-spacing: 0.14em;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3.6rem);
  }

  .profile-media img {
    aspect-ratio: 3 / 4;
  }

  .social-links {
    gap: 0.85rem 1rem;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
