/*
  ROMAN HONCHARENKO — PORTFOLIO
  Main visual settings live here. The content and links are in index.html.
*/

:root {
  --paper: #f1f0eb;
  --paper-deep: #e7e6e0;
  --ink: #0b0b0c;
  --muted: #686863;
  --line: rgba(11, 11, 12, 0.2);
  --line-strong: rgba(11, 11, 12, 0.5);
  --light: #f5f4ef;
  --light-muted: rgba(245, 244, 239, 0.62);
  --accent: #d84d40;
  --page-width: 1480px;
  --page-pad: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(3.75rem, 5vw, 5.25rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: var(--page-pad);
  width: 1px;
  background: rgba(11, 11, 12, 0.055);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  top: 0;
  right: var(--page-pad);
  bottom: 0;
  width: 1px;
  background: rgba(11, 11, 12, 0.055);
  pointer-events: none;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.viewer-cursor {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  display: none;
  width: 1.75rem;
  height: 1.75rem;
  opacity: 0;
  color: rgba(245, 244, 239, 0.94);
  pointer-events: none !important;
  transform: translate3d(-4rem, -4rem, 0) translate(-50%, -50%);
  transition: opacity 70ms linear;
  will-change: transform;
}

.viewer-cursor *,
.viewer-cursor *::before,
.viewer-cursor *::after {
  pointer-events: none !important;
}

.reel-cover.has-viewer-pointer .viewer-cursor {
  display: block;
}

.reel-cover.has-viewer-pointer {
  cursor: none;
}

@media (any-hover: hover) and (any-pointer: fine) {
  .reel-cover {
    cursor: none;
  }

  .viewer-cursor {
    display: block;
  }
}

.viewer-cursor.is-visible {
  opacity: 1;
}

.viewer-cursor-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.625rem;
  height: 1.625rem;
  overflow: hidden;
  font-size: 0;
  transform: translate(-50%, -50%);
}

.viewer-cursor-cross::before,
.viewer-cursor-cross::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.viewer-cursor-cross::before {
  width: 100%;
  height: 1px;
}

.viewer-cursor-cross::after {
  width: 1px;
  height: 100%;
}

.viewer-cursor-readout {
  position: absolute;
  top: calc(50% + 0.15rem);
  left: calc(50% + 1.15rem);
  display: grid;
  gap: 0.1rem;
  opacity: 0.92;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
  white-space: nowrap;
}

.viewer-cursor.is-near-right .viewer-cursor-readout {
  right: calc(50% + 1.15rem);
  left: auto;
  text-align: right;
}

.viewer-cursor.is-near-bottom .viewer-cursor-readout {
  top: auto;
  bottom: calc(50% + 0.15rem);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.page-width {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--light);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-brand {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-short {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
}

.site-nav a {
  position: relative;
  padding-block: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a::after,
.footer-email::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  transition: transform 240ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.footer-email:hover::after,
.footer-email:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding-top: clamp(1.5rem, 2.2vw, 2rem);
  padding-bottom: clamp(3.75rem, 5vw, 5.25rem);
}

.meta-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.reel-heading {
  text-align: center;
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.reel-heading-copy {
  display: inline-block;
  text-align: center;
}

.reel-heading h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.15vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: uppercase;
}

.reel-heading h1 span {
  color: var(--muted);
  font-weight: 400;
}

.reel-subheading {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.45;
  text-transform: uppercase;
}

.section-block {
  padding-block: var(--section-space);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(7rem, 2fr) minmax(0, 10fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 3vw, 2.75rem);
}

.section-overline {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: uppercase;
}

.reel-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.reel-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  animation: reelIn 350ms ease both;
}

@keyframes reelIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reel-cover {
  --viewer-x: 50%;
  --viewer-y: 50%;
  --show-shift-x: 0px;
  --show-shift-y: 0px;
  --reel-shift-x: 0px;
  --reel-shift-y: 0px;
  --grid-shift-x: 0px;
  --grid-shift-y: 0px;
  --play-shift-x: 0px;
  --play-shift-y: 0px;
  --play-scale: 1;
  --play-ring-opacity: 0;
  --play-ring-scale: 0.96;
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.1rem, 2.8vw, 2.75rem);
  background: #0b0b0c;
  color: var(--light);
  isolation: isolate;
}

.reel-cover::before,
.reel-cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.reel-cover::before {
  top: 0;
  bottom: 0;
  left: 33.333%;
  width: 33.333%;
  border-right: 1px solid rgba(245, 244, 239, 0.12);
  border-left: 1px solid rgba(245, 244, 239, 0.12);
  transform: translate3d(var(--grid-shift-x), 0, 0);
  transition: transform 180ms ease-out;
}

.reel-cover::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(245, 244, 239, 0.12);
  transform: translate3d(0, var(--grid-shift-y), 0);
  transition: transform 180ms ease-out;
}

.reel-topline,
.reel-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--light-muted);
  font-size: clamp(0.7rem, 1vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reel-card-location {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.reel-card-location .meta-dot {
  width: 0.42rem;
  height: 0.42rem;
}

.reel-wordmark {
  position: absolute;
  top: 50%;
  left: clamp(1.1rem, 2.8vw, 2.75rem);
  transform: translateY(-51%);
  font-size: clamp(3.5rem, 10.5vw, 10.5rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.75;
  text-transform: uppercase;
}

.reel-wordmark span {
  display: block;
  transition: transform 170ms ease-out;
  will-change: transform;
}

.reel-wordmark span:first-child {
  transform: translate3d(var(--show-shift-x), var(--show-shift-y), 0);
}

.reel-wordmark span:last-child {
  margin-left: clamp(2rem, 11vw, 10rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 244, 239, 0.74);
  transform: translate3d(var(--reel-shift-x), var(--reel-shift-y), 0);
}

.play-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(1.1rem, 5vw, 5.5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translate3d(var(--play-shift-x), calc(-50% + var(--play-shift-y)), 0);
  transition: transform 130ms ease-out;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.play-icon {
  position: relative;
  display: grid;
  width: clamp(4.4rem, 7vw, 6.6rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(245, 244, 239, 0.7);
  border-radius: 50%;
  background: var(--accent);
  transform: scale(var(--play-scale));
  transition: transform 130ms ease-out, background-color 140ms ease, color 140ms ease;
  will-change: transform;
}

.play-icon::after {
  content: "";
  position: absolute;
  inset: -0.48rem;
  border: 1px solid rgba(245, 244, 239, 0.42);
  border-radius: 50%;
  opacity: var(--play-ring-opacity);
  pointer-events: none;
  transform: scale(var(--play-ring-scale));
  transition: opacity 130ms ease-out, transform 130ms ease-out;
}

.play-icon svg {
  position: relative;
  z-index: 1;
  width: 1.5rem;
  fill: currentColor;
}

.play-control:hover .play-icon {
  transform: scale(1.08);
  background: var(--light);
  color: var(--ink);
}

.play-control:hover .play-icon::after {
  opacity: 0.34;
  transform: scale(1);
}

.viewer-inspection {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 3.65rem at var(--viewer-x) var(--viewer-y),
    rgba(245, 244, 239, 0.045) 0,
    rgba(245, 244, 239, 0.02) 56%,
    transparent 100%
  );
  transition: opacity 100ms linear;
}

.reel-cover.has-viewer-pointer .viewer-inspection {
  opacity: 1;
}

.viewer-inspection::before {
  content: "";
  position: absolute;
  inset: -3px;
  background:
    linear-gradient(
      to right,
      transparent calc(33.333% - 0.5px),
      rgba(245, 244, 239, 0.22) calc(33.333% - 0.5px),
      rgba(245, 244, 239, 0.22) calc(33.333% + 0.5px),
      transparent calc(33.333% + 0.5px)
    ),
    linear-gradient(
      to right,
      transparent calc(66.666% - 0.5px),
      rgba(245, 244, 239, 0.22) calc(66.666% - 0.5px),
      rgba(245, 244, 239, 0.22) calc(66.666% + 0.5px),
      transparent calc(66.666% + 0.5px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(50% - 0.5px),
      rgba(245, 244, 239, 0.22) calc(50% - 0.5px),
      rgba(245, 244, 239, 0.22) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    );
  pointer-events: none;
  transform: translate3d(var(--grid-shift-x), var(--grid-shift-y), 0);
  transition: transform 180ms ease-out;
  -webkit-mask-image: radial-gradient(
    circle 3.65rem at var(--viewer-x) var(--viewer-y),
    #000 0,
    rgba(0, 0, 0, 0.94) 72%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 3.65rem at var(--viewer-x) var(--viewer-y),
    #000 0,
    rgba(0, 0, 0, 0.94) 72%,
    transparent 100%
  );
}

.viewer-inspection::after {
  content: "";
  position: absolute;
  top: var(--viewer-y);
  left: var(--viewer-x);
  width: 6.5rem;
  height: 6.5rem;
  border: 1px solid rgba(245, 244, 239, 0.13);
  border-radius: 50%;
  opacity: 0.72;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.reel-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.reel-action {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.reel-action:not(:last-child) {
  border-right: 1px solid var(--ink);
}

.reel-action span:last-child {
  transition: transform 220ms var(--ease);
}

.reel-action:hover,
.reel-action:focus-visible {
  background: var(--ink);
  color: var(--light);
}

.reel-action:hover span:last-child,
.reel-action:focus-visible span:last-child {
  transform: translate(0.18rem, -0.18rem);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6.8fr) minmax(17rem, 4.2fr);
  column-gap: clamp(2.5rem, 6vw, 6rem);
  row-gap: clamp(1.5rem, 2.5vw, 2.25rem);
  align-items: start;
}

.about-main {
  grid-column: 1;
  grid-row: 1;
}

.about-copy {
  margin: 0;
  max-width: 57ch;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.62;
}

.portrait-frame {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0;
  justify-self: end;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.portrait-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transition: opacity 300ms ease;
}

.portrait-frame.has-portrait .portrait-image {
  opacity: 1;
}

.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.portrait-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
}

.portrait-placeholder span:first-child {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.portrait-frame.has-portrait .portrait-placeholder {
  opacity: 0;
}

.about-details {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding-top: clamp(0.75rem, 1.5vw, 1.25rem);
}

.about-details div {
  min-height: 5.4rem;
  padding: 1rem 1.25rem 1rem 0;
  border-top: 1px solid var(--line);
}

.about-details div:not(:first-child) {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.about-details div {
  border-bottom: 1px solid var(--line);
}

.about-details dt,
.footer-label {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.about-details dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.primary-profiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.profile-link {
  position: relative;
  display: grid;
  align-items: center;
  color: var(--ink);
  transition: background-color 200ms ease, color 200ms ease;
}

.profile-link--primary {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 1.25rem;
  min-height: 6.8rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.profile-link--primary:nth-child(odd) {
  border-right: 1px solid var(--ink);
}

.profile-logo {
  width: 3.4rem;
  height: 2.3rem;
  flex: 0 0 auto;
  color: inherit;
  fill: currentColor;
}

.profile-logo--lbb,
.profile-logo--tmdb,
.profile-logo--mubi,
.profile-logo--rotten-tomatoes,
.profile-logo--letterboxd {
  transform-origin: center;
}

.profile-logo--lbb {
  transform: scale(0.92);
}

.profile-logo--tmdb,
.profile-logo--rotten-tomatoes {
  transform: scale(0.88);
}

.profile-logo--mubi {
  transform: scale(0.8);
}

.profile-logo--letterboxd {
  transform: scale(1.12);
}

.profile-name {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.profile-note {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.profile-arrow {
  font-size: 1rem;
  transition: transform 240ms var(--ease);
}

.profile-link:hover,
.profile-link:focus-visible {
  background: var(--ink);
  color: var(--light);
}

.profile-link:hover .profile-note,
.profile-link:focus-visible .profile-note {
  color: var(--light-muted);
}

.profile-link:hover .profile-arrow,
.profile-link:focus-visible .profile-arrow {
  transform: translate(0.22rem, -0.22rem);
}

.more-toggle {
  display: flex;
  width: 100%;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.more-symbol {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--ink);
  transition: transform 300ms var(--ease), background-color 180ms ease, color 180ms ease;
}

.more-toggle:hover .more-symbol {
  background: var(--ink);
  color: var(--light);
}

.more-toggle[aria-expanded="true"] .more-symbol {
  transform: rotate(180deg);
}

.more-profiles-shell {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 340ms var(--ease), opacity 260ms ease;
}

.more-profiles-shell.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.more-profiles-inner {
  min-height: 0;
  overflow: hidden;
}

.additional-profiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 1rem;
}

.profile-link--small {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  min-height: 4.8rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.profile-link--small:not(:nth-child(3n)) {
  border-right: 1px solid var(--line);
}

.profile-link--small .profile-name {
  font-size: 0.875rem;
  letter-spacing: 0;
}

.profile-link--small .profile-logo {
  width: 2.8rem;
  height: 1.9rem;
}

.site-footer {
  background: var(--ink);
  color: var(--light);
  padding-block: clamp(2.75rem, 4.5vw, 4rem) 1.5rem;
}

.site-footer ::selection {
  background: #fff;
  color: #000;
}

.site-footer ::-moz-selection {
  background: #fff;
  color: #000;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
  column-gap: clamp(2rem, 6vw, 6rem);
}

.footer-label {
  color: var(--light-muted);
}

.footer-statement {
  margin: 0;
  max-width: 21ch;
  font-size: clamp(1.85rem, 3.4vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-transform: uppercase;
}

.footer-contact {
  align-self: end;
  padding-bottom: 0.2rem;
}

.footer-contact p {
  margin: 0.8rem 0 0;
  color: var(--light-muted);
  font-size: 0.8125rem;
}

.footer-email {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 244, 239, 0.24);
}

.footer-bottom > p {
  margin: 0;
  color: var(--light-muted);
  font-size: 0.75rem;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
}

.footer-socials a {
  display: grid;
  place-items: center;
  transition: color 180ms ease, transform 220ms var(--ease);
}

.footer-socials .profile-logo {
  width: 2.35rem;
  height: 2.35rem;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--accent);
  transform: translateY(-0.18rem);
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 600ms ease, transform 700ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 64rem) {
  .about-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(15rem, 0.85fr);
    column-gap: clamp(2.5rem, 6vw, 4.5rem);
  }

  .about-copy {
    font-size: clamp(1rem, 1.55vw, 1.15rem);
  }

  .profile-link--primary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .profile-note {
    display: none;
  }
}

@media (max-width: 48rem) {
  :root {
    --section-space: clamp(3.25rem, 8vw, 4rem);
  }

  .header-inner {
    min-height: 4.25rem;
    gap: 1.25rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .hero-inner {
    padding-top: 1.25rem;
    padding-bottom: 3.5rem;
  }

  .section-heading {
    margin-bottom: 2.25rem;
  }

  .section-heading h2 {
    max-width: 13ch;
  }

  .reel-topline > span:first-child,
  .play-control > span:last-child {
    display: none;
  }

  .reel-topline,
  .reel-bottomline {
    justify-content: flex-end;
  }

  .reel-bottomline {
    justify-content: flex-start;
  }

  .reel-wordmark {
    font-size: clamp(3rem, 15vw, 6.2rem);
  }

  .play-control {
    right: clamp(1.1rem, 4vw, 2rem);
  }

  .reel-action {
    min-height: 4rem;
    padding-inline: 1rem;
    font-size: 0.75rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(13rem, 0.9fr);
    column-gap: 1.75rem;
    row-gap: 1.75rem;
  }

  .about-main {
    grid-column: 1;
    grid-row: 1;
  }

  .portrait-frame {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
  }

  .about-details {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .about-copy {
    max-width: 38ch;
  }

  .profile-link--primary {
    min-height: 6.3rem;
  }

  .additional-profiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-link--small:not(:nth-child(3n)) {
    border-right: 0;
  }

  .profile-link--small:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
    column-gap: 2rem;
  }
}

@media (max-width: 40rem) {
  .reel-links {
    grid-template-columns: 1fr;
  }

  .reel-action {
    min-height: 3.5rem;
  }

  .reel-action:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
}

@media (max-width: 32.5rem) {
  .site-nav {
    gap: 0.65rem;
  }

  .site-brand,
  .site-nav a {
    font-size: 0.7rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .reel-heading {
    margin-bottom: 1rem;
  }

  .section-heading {
    margin-bottom: 1.75rem;
  }

  .section-heading h2 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .reel-cover {
    padding: 0.85rem;
  }

  .reel-wordmark {
    left: 0.85rem;
    font-size: clamp(2.7rem, 14.8vw, 4.1rem);
  }

  .reel-wordmark span:last-child {
    margin-left: 1rem;
  }

  .play-icon {
    width: 3.65rem;
  }

  .play-icon svg {
    width: 1.25rem;
  }

  .reel-topline,
  .reel-bottomline {
    font-size: 0.625rem;
  }

  .about-copy {
    max-width: none;
    font-size: 1rem;
    line-height: 1.55;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-main,
  .portrait-frame,
  .about-details {
    grid-column: 1;
    grid-row: auto;
  }

  .portrait-frame {
    max-width: none;
    aspect-ratio: 4 / 5;
    justify-self: stretch;
  }

  .about-details {
    display: block;
    padding-top: 0.5rem;
  }

  .about-details div,
  .about-details div:not(:first-child) {
    min-height: 0;
    padding: 0.9rem 0;
    border-left: 0;
  }

  .profile-link--primary {
    min-height: 5.5rem;
    gap: 0.9rem;
    padding-inline: 0.75rem;
  }

  .primary-profiles {
    grid-template-columns: 1fr;
  }

  .profile-link--primary:nth-child(odd) {
    border-right: 0;
  }

  .profile-name {
    font-size: 0.875rem;
  }

  .additional-profiles {
    grid-template-columns: 1fr;
  }

  .profile-link--small {
    min-height: 4.25rem;
  }

  .profile-link--small:nth-child(odd) {
    border-right: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    row-gap: 2.25rem;
  }

  .footer-contact {
    align-self: start;
  }

  .footer-bottom {
    grid-column: 1;
    align-items: flex-start;
    flex-direction: column-reverse;
    margin-top: 0.5rem;
  }
}

@media (max-width: 22rem) {
  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline;
  }
}

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

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

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

  .viewer-inspection {
    display: none !important;
  }

  .reel-wordmark span,
  .play-icon {
    transform: none !important;
  }

  .play-control {
    transform: translateY(-50%) !important;
  }
}
