.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.masthead__name {
  margin-bottom: 18px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5rem, 9vw, 9.5rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.masthead__intro {
  max-width: 770px;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.25;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.primary-nav a,
.theme-toggle {
  position: relative;
  top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.primary-nav a::after,
.text-link::after,
.about-panel__links a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.primary-nav a:hover::after,
.text-link:hover::after,
.about-panel__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.section-heading h2,
.about-panel h2 {
  margin-bottom: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 500;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}

.project-card {
  min-width: 0;
  opacity: 1;
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.project-card.is-hidden {
  display: none;
}

.project-card a {
  display: block;
  height: 100%;
}

.project-card__image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-secondary);
}

.project-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .project-card__image img {
  transform: scale(1.025);
}

.project-card__image--editorial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--border);
}

.project-card__image--editorial .editorial-eyebrow {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card__image--editorial .editorial-title {
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
}

.project-card__image--editorial .editorial-mark {
  width: 28px;
  height: 2px;
  background: var(--accent);
  transition: width 300ms ease;
}

.project-card__image--editorial .editorial-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card__image--editorial .editorial-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
}

.project-card__image--editorial .editorial-icon svg {
  width: 16px;
  height: 16px;
}

.project-card:hover .project-card__image--editorial .editorial-mark {
  width: 44px;
}

.project-card__content {
  padding-top: 16px;
}

.project-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 9px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.05;
}

.project-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 8px;
  background: var(--surface-secondary);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link {
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-list {
  border-top: 1px solid var(--border);
}

.article-list a {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 21px 0;
  border-bottom: 1px solid var(--border);
}

.article-list h3 {
  margin: 4px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
}

.article-list__category,
.article-list__meta {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-panel {
  padding-left: clamp(28px, 4vw, 54px);
  border-left: 1px solid var(--border);
}

.about-panel h2 {
  margin-bottom: 24px;
}

.about-panel p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.about-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 30px;
}

.about-panel__links a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.masthead__portrait {
  background: transparent;
}

.masthead__portrait img {
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  background: transparent;
}

.mobile-section-toggle {
  display: none;
}

.mobile-section-title {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.mobile-section-arrow {
  width: 12px;
  height: 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 220ms ease;
}

.mobile-section-toggle[aria-expanded="true"] .mobile-section-arrow {
  transform: rotate(225deg);
}


/* ==========================================================
   DARK THEME COMPONENT ADJUSTMENTS
========================================================== */

html[data-theme="dark"] .masthead__portrait {
    background: transparent;
}

html[data-theme="dark"] .masthead__portrait img {
    opacity: 1;
    filter: none;
    mix-blend-mode: normal;
}

html[data-theme="dark"] .filter-button {
    border-color: var(--border-strong);
    color: var(--text);
}

html[data-theme="dark"] .filter-button:hover,
html[data-theme="dark"] .filter-button.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-contrast);
}

html[data-theme="dark"] .project-card__image {
    background: #353335;
}

html[data-theme="dark"] .tag-list li {
    background: var(--surface-secondary);
    color: var(--text);
}

html[data-theme="dark"] .project-card,
html[data-theme="dark"] .article-list a,
html[data-theme="dark"] .about-panel {
    color: var(--text);
}


/* ==========================================================
   PORTRAIT
========================================================== */

.masthead__portrait {
    position: relative;
    overflow: visible;
    background: transparent;
}

.masthead__portrait .portrait-image {
    display: block;

    width: 100%;
    height: auto;

    opacity: 1;
    filter: none;
    mix-blend-mode: normal;
}

/* ==========================================================
   NAV THEME TOGGLE
========================================================== */

.theme-toggle {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: Inherit;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--accent);
}

.theme-toggle:focus-visible {
  outline: none;
}

.theme-toggle__label {
  display: inline;
}