:root {
  --bg: #050505;
  --fg: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.68);
  --card: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  font-family: "Manrope", sans-serif;
  -webkit-tap-highlight-color: transparent;
  background: #050505;
}

a,
button,
input,
select,
textarea,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

body {
  padding-bottom: 2rem;
}

.subpage-video-shell {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 36%),
    #050505;
}

.subpage-video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.5));
}

.subpage-background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 340ms ease, transform 340ms ease;
}

.profile-shell {
  position: relative;
  z-index: 1;
}

.profile-shell {
  width: min(92rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
}

.profile-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.back-link,
.folder-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.66rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--card);
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.folder-pill {
  color: var(--muted);
}

.back-link:hover,
.folder-pill:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.back-link:active,
.folder-pill:active {
  transform: translateY(0) scale(0.98);
  background: rgba(255, 255, 255, 0.24);
}

.back-link:focus-visible,
.folder-pill:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.2),
    0 14px 30px rgba(0, 0, 0, 0.3);
}

.profile-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr);
  gap: 1.3rem;
  align-items: center;
  padding: 1.35rem 1.4rem;
}

.profile-hero-media {
  position: relative;
  min-height: clamp(18rem, 42vw, 29rem);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.profile-hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.profile-hero-copy {
  display: grid;
  gap: 0.35rem;
}

.profile-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--muted);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.profile-hero h1 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-subtitle {
  margin: 0.45rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.profile-note {
  margin-top: 0.9rem;
  padding: 0.95rem 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.profile-note strong {
  color: #ffffff;
}

.mediafeed-hero {
  padding: 1.35rem 1.4rem;
}

.mediafeed-copy {
  display: grid;
  gap: 0.35rem;
}

.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 1.15rem 0 0.8rem;
}

.feed-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-feed {
  display: grid;
  gap: 1rem;
}

.post-card {
  overflow: hidden;
  width: min(calc(100vw - 2rem), var(--post-card-width, 56rem));
  margin-inline: auto;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.post-media {
  aspect-ratio: var(--post-media-ratio, 16 / 9);
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.post-media img,
.post-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #050505;
  image-rendering: auto;
}

.post-body {
  padding: 1rem 1.1rem 1.1rem;
  background: rgba(8, 8, 8, 0.96);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36);
  border-color: rgba(255, 255, 255, 0.18);
}

.post-media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}

.post-body {
  padding: 1rem 1.1rem 1.1rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.post-date {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post-kind {
  display: none;
}

.post-title {
  margin: 0 0 0.45rem;
  font-family: "Sora", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
}

.post-description {
  margin: 0;
  color: rgba(245, 241, 232, 0.84);
  line-height: 1.72;
}

.post-author-row {
  display: grid;
  gap: 0.16rem;
  margin: 0 0 0.72rem;
}

.post-author-link {
  width: fit-content;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.post-author-link:hover,
.post-author-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.post-author-role {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.post-card[data-media-shape="portrait"] {
  max-width: 52rem;
}

.post-card[data-media-shape="square"] {
  max-width: 58rem;
}

.post-card[data-media-shape="landscape"] {
  max-width: 74rem;
}

code {
  color: #ffffff;
  font-family: "Consolas", "Courier New", monospace;
}

.site-footer {
  position: relative;
  padding: 0.6rem 1rem 1.8rem;
}

.footer-inner {
  width: min(58rem, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.95rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(0.8rem, 1.4vw, 1rem);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.footer-legal-nav,
.subpage-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer .ui-button,
.footer-legal-nav a,
.subpage-footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--card);
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.8rem, 1.3vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.site-footer .ui-button:hover,
.footer-legal-nav a:hover,
.subpage-footer-nav a:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.site-footer .ui-button:active,
.footer-legal-nav a:active,
.subpage-footer-nav a:active {
  transform: translateY(0) scale(0.98);
  background: rgba(255, 255, 255, 0.24);
}

.site-footer .ui-button:focus-visible,
.footer-legal-nav a:focus-visible,
.subpage-footer-nav a:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.2),
    0 14px 30px rgba(0, 0, 0, 0.3);
}

.footer-legal-nav a,
.subpage-footer-nav a {
  min-height: 2.28rem;
  padding: 0.34rem 0.58rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.footer-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
}

.footer-icon-button {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease;
}

.footer-icon-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.footer-icon-button:active {
  transform: translateY(0) scale(0.96);
}

.footer-icon-button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .profile-shell {
    width: calc(100vw - 1rem);
    padding-top: 0.8rem;
  }

  .profile-hero {
    grid-template-columns: 1fr;
  }

  .profile-hero-media {
    min-height: clamp(19rem, 68vw, 28rem);
  }

  .profile-topbar,
  .feed-head {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-card {
    border-radius: 24px;
  }

  .profile-hero,
  .post-body,
  .profile-note {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-footer {
    padding: 0.8rem 1rem 1.6rem;
  }

  .footer-inner {
    border-radius: 24px;
    padding: 0.95rem 0.9rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2rem;
    grid-template-areas:
      "links icon"
      "copy copy";
    align-items: center;
    gap: 0.55rem;
    overflow: hidden;
  }

  .footer-inner::-webkit-scrollbar {
    display: none;
  }

  .footer-legal-nav,
  .subpage-footer-nav {
    grid-area: links;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    gap: 0.18rem;
    min-width: 0;
    overflow: visible;
    scrollbar-width: none;
  }

  .footer-legal-nav::-webkit-scrollbar,
  .subpage-footer-nav::-webkit-scrollbar {
    display: none;
  }

  .footer-legal-nav a,
  .subpage-footer-nav a {
    min-height: 1.74rem;
    padding: 0.18rem 0.28rem;
    font-size: 0.46rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    text-align: center;
  }

  .footer-meta {
    display: contents;
    margin-left: 0;
    flex: 0 0 auto;
    gap: 0.35rem;
    white-space: nowrap;
  }

  .footer-copy {
    grid-area: copy;
    font-size: 0.6rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    text-align: center;
  }

  .footer-icon-button {
    grid-area: icon;
    justify-self: end;
    width: 1.72rem;
    height: 1.72rem;
    min-width: 1.72rem;
  }
}
