:root {
  --bg: #FAF9F5;
  --text: #151514;
  --muted: #66645F;
  --hairline: #E2DFD7;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--text);
}

/* 3-Panel Layout: Full-bleed responsive width with consistent column widths */
.three-panel-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 230px;
  gap: 2.25rem;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 1.75rem 2.4rem 1.75rem;
  align-items: start;
}

/* Left Panel: Bio */
.left-panel {
  position: sticky;
  top: 1.75rem;
}

.left-panel h1 {
  font-family: var(--sans);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
  color: var(--text);
  line-height: 1.22;
}

.bio-photo {
  width: 164px;
  height: auto;
  display: block;
  margin: 0 0 0.95rem;
}

.identity-sub {
  font-size: 12.4px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0.8rem;
}

.bio-lead {
  margin: 0 0 0.75rem;
  font-size: 13px;
  line-height: 1.54;
  color: var(--text);
}

.bio-background {
  margin: 0 0 0.9rem;
  font-size: 12.4px;
  line-height: 1.52;
  color: var(--muted);
}

.bio-links-group {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

/* Middle Panel: 3 Projects per Row with Comfortable Spacing */
.middle-panel {
  min-width: 0;
  padding: 0 2.25rem;
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
}

.work-section {
  margin-bottom: 1.5rem;
}

.work-section:last-child {
  margin-bottom: 0;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--hairline);
}

.section-heading {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.65rem;
  row-gap: 1.75rem;
}

.work-item {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.work-media-link {
  display: block;
  overflow: hidden;
  background: #EFECE6;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.55rem;
  text-decoration: none;
  border: 1px solid rgba(21, 21, 20, 0.06);
  transition: border-color 0.15s ease;
}

.work-media-link.is-contain {
  background: #FFFFFF;
  border: 1px solid #EAE7DF;
}

.work-item:hover .work-media-link {
  border-color: #B5B0A4;
}

.work-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.work-media.is-contain {
  object-fit: contain;
  padding: 4px;
}

.work-item:hover .work-media {
  opacity: 0.94;
}

.work-title {
  font-family: var(--sans);
  font-size: 13.3px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.22rem;
}

.work-title a {
  color: var(--text);
  text-decoration: none;
}

.work-item:hover .work-title a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.work-meta {
  font-size: 11.4px;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

/* Saffron-style 1-sentence description below every project (shown in full) */
.work-summary {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.46;
  color: var(--muted);
}

/* Expandable "More projects" section */
.work-section-collapsible {
  margin-top: 1.65rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
}

.more-projects-details {
  width: 100%;
}

.more-projects-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.25rem 0;
  color: var(--muted);
  font-size: 13px;
  user-select: none;
}

.more-projects-summary::-webkit-details-marker {
  display: none;
}

.more-projects-summary:hover {
  color: var(--text);
}

.more-projects-title {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hairline);
}

.more-projects-summary:hover .more-projects-title {
  text-decoration-color: var(--text);
}

.more-projects-details:not([open]) .more-projects-title::before {
  content: "+ ";
  font-family: var(--sans);
  color: var(--muted);
}

.more-projects-details[open] .more-projects-title::before {
  content: "− ";
  font-family: var(--sans);
  color: var(--muted);
}

.more-projects-count {
  font-size: 11.5px;
  color: var(--muted);
}

.more-work-grid {
  margin-top: 1.25rem;
}

/* Right Panel: Selected Press & Recognition */
.right-panel {
  position: sticky;
  top: 1.75rem;
  font-size: 12.4px;
  line-height: 1.48;
}

.rail-group {
  margin-bottom: 1.5rem;
}

.rail-group h3 {
  font-family: var(--sans);
  font-size: 12.2px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.rail-group ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
}

.rail-group li {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 12.4px;
}

.rail-group li span {
  color: var(--muted);
  font-size: 11.4px;
}

/* Site Footer */
.site-footer {
  max-width: 1920px;
  margin: 0 auto;
  padding: 1rem 2.4rem 1.8rem;
  border-top: 1px solid var(--hairline);
  font-size: 11.8px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* In-Page Project Reader Window (Modal Overlay) */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(21, 21, 20, 0.36);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-modal-backdrop[hidden] {
  display: none !important;
}

.project-modal-window {
  background: var(--bg);
  border: 1px solid #C8C4B9;
  box-shadow: 0 22px 54px rgba(21, 21, 20, 0.18);
  width: min(740px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.2s ease, max-height 0.2s ease;
}

.project-modal-window.is-expanded {
  width: min(1140px, 96vw);
  max-height: 92vh;
}

.project-modal-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.15rem;
  background: #F2EFE8;
  border-bottom: 1px solid var(--hairline);
  font-size: 11.8px;
  color: var(--muted);
}

.project-modal-venue {
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-modal-window-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.modal-win-btn {
  appearance: none;
  background: var(--bg);
  border: 1px solid #D5D1C8;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 3px 9px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-win-icon-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 13.5px;
}

.modal-win-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.project-modal-body {
  padding: 1.4rem 1.65rem 1.65rem;
  overflow-y: auto;
}

.project-modal-media-wrap {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #EAE7DF;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-modal-media {
  width: 100%;
  max-height: 410px;
  object-fit: contain;
  display: block;
}

.project-modal-window.is-expanded .project-modal-media {
  max-height: 540px;
}

.project-modal-title {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.project-modal-description {
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--text);
  margin: 0 0 1.2rem;
}

.project-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--hairline);
}

.project-modal-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.project-modal-link-pill:first-child {
  background: var(--text);
  color: var(--bg);
}

.project-modal-link-pill:hover {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 1320px) {
  .three-panel-shell {
    grid-template-columns: 215px minmax(0, 1fr) 215px;
    gap: 1.5rem;
    padding: 1.35rem 1.6rem;
  }

  .middle-panel {
    padding: 0 1.5rem;
  }
}

@media (max-width: 1040px) {
  .three-panel-shell {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.25rem;
  }

  .left-panel,
  .right-panel {
    position: static;
  }

  .middle-panel {
    padding: 1.5rem 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }

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

@media (max-width: 600px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}
