:root {
  --site-accent: #d9c7aa;
  --site-muted: rgba(255, 255, 255, 0.6);
  --site-line: rgba(255, 255, 255, 0.18);
  --site-panel: rgba(255, 255, 255, 0.04);
}

body {
  background: #151515;
}

#bg::before {
  background-attachment: fixed;
  background-image:
    radial-gradient(circle at top, rgba(217, 199, 170, 0.12), transparent 34%),
    linear-gradient(to top, rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.6)),
    var(--hero-bg-image, linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)));
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

#bg::after {
  background-image: linear-gradient(180deg, rgba(18, 18, 18, 0.12), rgba(18, 18, 18, 0.32));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

a:hover {
  color: var(--site-accent);
}

#header .logo {
  width: 6rem;
  height: 6rem;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

#header .logo .symbol {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.32rem;
  text-indent: 0.32rem;
  font-weight: 600;
}

#header .logo .symbol-placeholder {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

#header .logo .symbol-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

#header > * {
  transition-duration: 0.45s;
}

#header .content .inner {
  padding: 3rem 2.5rem;
}

#header .content .inner h1 {
  margin-bottom: 0.9rem;
}

#header .content .inner p {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-kicker,
.section-kicker,
.site-locale-switcher {
  text-transform: uppercase;
  letter-spacing: 0.24rem;
}

.hero-kicker,
.section-kicker,
.work-meta {
  color: var(--site-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.hero-kicker {
  margin-bottom: 0.65rem;
}

.button.primary {
  background: rgba(255, 255, 255, 0.9);
  color: #111 !important;
}

.button.primary:hover {
  background: var(--site-accent);
}

#bg .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

body > .site-locale-switcher {
  position: fixed;
  top: 2rem;
  right: 2.5rem;
  z-index: 10002;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  gap: 0.9rem;
}

body > .site-locale-switcher a,
body > .site-locale-switcher strong {
  border-bottom: 0;
}

.hero-image {
  border: solid 1px var(--site-line);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
}

.about-image {
  border: 0;
  background: transparent;
  padding: 0;
}

.hero-image img,
.image.main img,
.work-image img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-grid,
.cv-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-grid {
  grid-template-columns: 1.4fr 0.9fr;
  align-items: start;
}

.feature-copy {
  border-left: solid 1px var(--site-line);
  padding-left: 1.5rem;
}

.feature-copy p:last-child {
  margin-bottom: 0;
}

.work-entry,
.cv-card,
.contact-card,
.quote-panel {
  border: solid 1px var(--site-line);
  background: var(--site-panel);
  padding: 1.2rem;
}

.work-entry {
  padding: 0;
  border: 0;
  background: transparent;
}

.work-entry-spaced {
  margin-top: 3.5rem;
}

.image.main.work-image {
  margin: 0 0 1rem 0;
}

.work-image img {
  max-height: none;
  object-fit: contain;
}

.work-entry h3,
.cv-card h3,
.contact-card h3 {
  margin-bottom: 0.75rem;
}

.project-entry h3,
.project-work-card h4 {
  margin-bottom: 0.75rem;
}

.work-entry p:last-child,
.cv-card ul:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.work-entry .work-meta {
  margin-bottom: 0.75rem;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.quote-panel {
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
}

.cv-grid {
  display: flex !important;
  flex-direction: column;
  gap: 1.5rem;
}

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

.project-work-grid {
  display: block;
  margin-top: 1rem;
}

.project-entry {
  padding: 0;
  border: 0;
  background: transparent;
}

.project-entry > h3 {
  margin-bottom: 0.75rem;
}

.project-work-entry {
  padding: 0;
  border: 0;
  background: transparent;
}

.image.main.project-work-image {
  margin: 0 0 1rem 0;
}

.project-work-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  background: rgba(0, 0, 0, 0.35);
}

.contact-inline {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: solid 1px var(--site-line);
}

.contact-inline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-inline-list li {
  display: flex;
  align-items: center;
  padding-left: 0 !important;
}

.contact-inline-list a .icon,
.contact-inline-list span .icon,
.footer-contact a .icon {
  margin-right: 0.45rem;
}

.contact-panel {
  border: solid 1px var(--site-line);
  background: var(--site-panel);
  padding: 1.2rem;
}

.about-contact-kicker {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.about-contact-panel {
  margin-top: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-contact-list {
  gap: 0.45rem;
  justify-items: center;
}

.footer-contact-list li {
  padding: 0;
  border: 0;
}

.footer-contact-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.92rem;
  text-align: center;
}

.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10004;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.35rem;
  padding: 0.78rem 1.1rem;
  border: 0;
  border-top: solid 1px rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: rgba(24, 24, 24, 0.96);
  box-shadow: rgba(0, 0, 0, 0.5) 0 8px 24px;
  backdrop-filter: blur(20px);
  flex-wrap: wrap;
}

.player-meta,
.player-controls,
.player-status {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.player-meta {
  min-width: 0;
  flex: 1 1 18rem;
}

.player-copy {
  min-width: 0;
}

.mini-art {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  object-fit: cover;
  background:
    radial-gradient(circle at 30% 35%, rgba(217, 199, 170, 0.35), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  flex-shrink: 0;
}

.mini-art-placeholder {
  display: block;
}

.player-title {
  margin: 0 0 0.12rem;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.player-subtitle .icon {
  margin-right: 0.4rem;
}

.player-controls {
  justify-content: center;
  flex: 0 1 auto;
  gap: 0.75rem;
}

.icon-button,
.play-button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.icon-button {
  width: 2.2rem;
  height: 2.2rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}

.play-button {
  width: 3.1rem;
  height: 3.1rem;
  background: var(--site-accent);
  position: relative;
}

.play-button::before {
  content: "";
  margin-left: 0.24rem;
  border-left: 0.84rem solid #111;
  border-top: 0.54rem solid transparent;
  border-bottom: 0.54rem solid transparent;
}

.play-button.is-paused::before {
  width: 0.82rem;
  height: 1rem;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(90deg, #111 0 34%, transparent 34% 66%, #111 66% 100%);
}

.play-button:disabled,
.icon-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.player-status {
  min-width: 12rem;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  flex: 1 1 13rem;
}

.progress {
  width: 8.25rem;
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--site-accent);
}

.player-bar audio {
  display: none;
}

.site-player-tracklist {
  display: flex;
}

.site-player-track {
  appearance: none;
  border: solid 1px rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.38rem 0.7rem;
  text-transform: uppercase;
}

.site-player-track.is-active {
  border-color: rgba(217, 199, 170, 0.65);
  background: rgba(217, 199, 170, 0.12);
  color: #fff;
}

.site-player-tracklist.is-hidden {
  display: none;
}

.cv-list,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-list li,
.contact-list li {
  padding: 0.7rem 0;
  border-bottom: solid 1px rgba(255, 255, 255, 0.08);
}

.cv-list li:last-child,
.contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cv-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.cv-year {
  flex: 0 0 3rem;
  color: var(--site-accent);
}

.cv-title {
  flex: 1 1 auto;
  min-width: 0;
}

.cv-venue {
  padding-left: 3.5rem;
  color: var(--site-muted);
}

.contact-list span {
  display: block;
  color: var(--site-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08rem;
}

#footer {
  color: rgba(255, 255, 255, 0.58);
}

@media screen and (max-width: 980px) {
  .feature-grid,
  .cv-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-copy {
    border-left: 0;
    padding-left: 0;
    border-top: solid 1px var(--site-line);
    padding-top: 1.5rem;
  }
}

@media screen and (max-width: 736px) {
  body.is-article-visible #wrapper {
    padding: 0;
  }

  body.is-article-visible #main {
    position: fixed;
    inset: 0;
    z-index: 10003;
    display: block;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    overflow: hidden;
    overflow-x: hidden;
    padding: 0;
  }

  #header .content .inner {
    padding: 2.25rem 1rem;
  }

  body > .site-locale-switcher {
    top: 1rem;
    right: 1rem;
  }

  .footer-contact {
    gap: 0.6rem;
  }

  .player-bar {
    align-items: stretch;
    padding: 0.75rem 0.85rem;
  }

  .player-meta,
  .player-status {
    flex: 1 1 100%;
  }

  .player-controls {
    width: 100%;
  }

  .player-status {
    justify-content: space-between;
  }

  .site-player-tracklist {
    padding-left: 0;
  }

  body.is-article-visible #main article {
    position: relative;
    width: 100%;
    width: 100vw;
    max-width: none;
    min-height: 100dvh;
    height: 100dvh;
    -moz-transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
    margin: 0 !important;
    border: 0;
    border-radius: 0;
    padding: 4.5rem 1.25rem 7rem;
    background: rgba(17, 17, 17, 0.94);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.is-article-visible #main article.active {
    -moz-transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
  }

  body.is-article-visible #main article .close {
    display: none;
  }

  body.is-article-visible #main article .close:before {
    top: 0.75rem;
    left: 0.75rem;
  }

  .mobile-modal-close {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
    right: calc(env(safe-area-inset-right, 0px) + 0.75rem);
    z-index: 10006;
    display: none;
    width: 4rem;
    height: 4rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    text-indent: 4rem;
    overflow: hidden;
    white-space: nowrap;
    backdrop-filter: blur(10px);
  }

  .mobile-modal-close::before {
    content: '';
    display: block;
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 100%;
    background-position: center;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20px' height='20px' viewBox='0 0 20 20' zoomAndPan='disable'%3E%3Cstyle%3Eline %7B stroke: %23ffffff%3B stroke-width: 1%3B %7D%3C/style%3E%3Cline x1='2' y1='2' x2='18' y2='18' /%3E%3Cline x1='18' y1='2' x2='2' y2='18' /%3E%3C/svg%3E");
    background-size: 20px 20px;
    background-repeat: no-repeat;
  }

  body.is-article-visible .mobile-modal-close {
    display: block;
  }
}
