:root {
  --ink: #0e0e0e;
  --cream: #f4f1eb;
  --accent: oklch(0.75 0.13 70);
  --divider: rgba(244, 241, 235, 0.18);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
}

a {
  color: inherit;
}

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

@keyframes fadein {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Layout: desktop (full-bleed photo, right-hand column) */

.screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 20%;
  filter: grayscale(1) contrast(1.05);
}

.photo .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(8,8,8,.97) 0%, rgba(8,8,8,.6) 40%, rgba(8,8,8,.05) 64%, rgba(8,8,8,0) 100%);
}

.name {
  font-family: 'Bodoni Moda', serif;
  font-weight: 500;
  line-height: 1.05;
}

.name--mobile {
  display: none;
}

.content {
  position: relative;
  margin-left: auto;
  width: 460px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  gap: 44px;
  animation: fadein .5s ease;
}

.intro .name--desktop {
  font-size: 46px;
  margin: 0 0 18px;
}

.tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 241, 235, .6);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--divider);
}

.accordion-item {
  border-bottom: 1px solid var(--divider);
}

.accordion-header {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 16px 0;
  color: rgba(244, 241, 235, .9);
}

.accordion-header .glyph {
  font-size: 16px;
  transform: rotate(0deg);
  transition: transform .25s ease;
}

.accordion-item.open .accordion-header {
  color: var(--accent);
}

.accordion-item.open .accordion-header .glyph {
  transform: rotate(45deg);
}

.accordion-body {
  display: none;
  padding: 0 0 20px;
}

.accordion-body.visible {
  display: block;
  animation: fadein .3s ease;
}

.accordion-body p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 241, 235, .75);
}

.accordion-body .pre-line {
  white-space: pre-line;
}

.accordion-body a {
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent);
}

/* Layout: mobile (stacked, single scrolling column) */

@media (max-width: 768px) {
  .screen {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 280px;
  }

  .photo .overlay {
    background: linear-gradient(180deg, rgba(8,8,8,.05) 0%, rgba(8,8,8,.35) 65%, rgba(8,8,8,.95) 100%);
  }

  .photo img {
    object-position: 50% 15%;
  }

  .name--mobile {
    display: block;
    position: absolute;
    left: 24px;
    bottom: 20px;
    right: 24px;
    font-size: 32px;
  }

  .intro .name--desktop {
    display: none;
  }

  .content {
    position: static;
    margin-left: 0;
    width: 100%;
    height: auto;
    padding: 20px 24px 40px;
    gap: 0;
  }

  .intro {
    margin-bottom: 24px;
  }

  .tagline {
    font-size: 13px;
  }

  .accordion-header {
    font-size: 14px;
    padding: 16px 0;
  }

  .accordion-header .glyph {
    font-size: 17px;
  }

  .accordion-body {
    padding: 0 0 18px;
  }

  .accordion-body p {
    margin-bottom: 12px;
  }
}
