/* Visual system refinements: editorial hero, professional taxonomy, cleaner cards. */

:root {
  --preview-surface: #fffdf8;
  --preview-shadow: 0 10px 30px rgba(32, 32, 29, .055);
}

/* Remove descriptive subtitles from page/section/card headings. */
.page-intro p,
.section-head p,
.project-row .project-copy > p,
.blog-row p,
.cv-preview {
  display: none;
}

/* Home hero: editorial split with the portrait integrated into the composition. */
.hero {
  padding: 0;
}

.hero-grid {
  min-height: 560px;
  grid-template-columns: minmax(250px, .62fr) minmax(0, 1.38fr);
  align-items: stretch;
  gap: 0;
}

.hero-copy {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding: 78px 0 74px clamp(52px, 7vw, 94px);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(58px, 8.2vw, 96px);
}

.hero-role {
  max-width: 690px;
  margin-top: 28px;
}

.hero-photo-wrap {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  width: 100%;
  min-height: 560px;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper-2);
  box-shadow: none;
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 72px;
  right: -1px;
  width: 3px;
  height: 88px;
  background: var(--rust);
}

.hero-photo {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 22%;
  border: 0;
  filter: saturate(.92) contrast(1.02);
}

/* Project imagery: retain the entire artwork with a quieter frame. */
.project-row {
  grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 34px 0;
}

.project-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--preview-surface);
  box-shadow: var(--preview-shadow);
  transition: border-color .18s ease, transform .18s ease;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  transition: none;
}

.project-row:hover .project-media {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.project-row:hover .project-media img {
  transform: none;
}

/* Professional taxonomy: no pills, no colored badges. */
.tag-line,
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  color: var(--muted);
}

.tag-line {
  margin-top: 14px;
}

.blog-tags {
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.tag-line span,
.blog-tags span,
.project-inline-tag {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.project-inline-tag {
  cursor: pointer;
}

.project-inline-tag:hover,
.project-inline-tag:focus-visible {
  color: var(--rust-dark);
}

.tag-line span + span::before,
.blog-tags span + span::before,
.project-inline-tag + .project-inline-tag::before {
  content: "/";
  padding: 0 9px;
  color: var(--line-strong);
  font-weight: 400;
}

/* Project tag filter: understated editorial tabs. */
.project-tag-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 22px;
  margin-bottom: 38px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--line-strong);
}

.project-filter-label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.project-tag-filter .filter-btn,
.blog-filter-btn {
  position: relative;
  min-height: 0;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.project-tag-filter .filter-btn::after,
.blog-filter-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--rust);
  transition: right .18s ease;
}

.project-tag-filter .filter-btn:hover,
.project-tag-filter .filter-btn.active,
.blog-filter-btn:hover,
.blog-filter-btn.active {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}

.project-tag-filter .filter-btn:hover::after,
.project-tag-filter .filter-btn.active::after,
.blog-filter-btn:hover::after,
.blog-filter-btn.active::after {
  right: 0;
}

/* CV filters remain controls, but lose the rounded-pill treatment. */
.cv-page .filter-bar {
  gap: 20px;
}

.cv-page .filter-btn {
  min-height: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cv-page .filter-btn:hover,
.cv-page .filter-btn.active {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--rust);
}

/* Blog taxonomy matches the same visual language. */
.blog-filter {
  gap: 7px;
}

.blog-filter-title {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* Other image collections use a quieter, square editorial frame. */
.cv-gallery {
  gap: 10px;
}

.cv-gallery a,
.blog-body figure img {
  overflow: hidden;
  border-color: var(--line);
  border-radius: 2px;
  background: var(--preview-surface);
  box-shadow: 0 6px 20px rgba(32, 32, 29, .045);
}

/* Legal footer and privacy policy. */
.site-footer {
  display: none;
}

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 calc(28px + env(safe-area-inset-bottom));
}

.legal-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.legal-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.legal-footer a:hover {
  color: var(--rust-dark);
  border-color: var(--rust);
}

.privacy-page {
  padding: 58px 0 76px;
}

.privacy-shell {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

.privacy-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.privacy-page h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
}

.privacy-lede {
  margin: 22px 0 40px;
  max-width: 690px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.5;
}

.privacy-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.privacy-section h2 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.35;
}

.privacy-section p,
.privacy-section li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.privacy-section p { margin: 0; }
.privacy-section p + p { margin-top: 12px; }
.privacy-section ul { margin: 10px 0 0; padding-left: 20px; }
.privacy-section li + li { margin-top: 6px; }

.privacy-section a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.privacy-section a:hover {
  color: var(--rust-dark);
  border-color: var(--rust);
}

@media (max-width: 800px) {
  .hero-grid {
    min-height: 470px;
    grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr);
  }

  .hero-photo-wrap {
    width: 100%;
    min-height: 470px;
    margin: 0;
    aspect-ratio: auto;
    border: 0;
    border-right: 1px solid var(--line-strong);
  }

  .hero-copy {
    padding: 58px 0 56px clamp(34px, 6vw, 58px);
  }

  .hero h1 {
    font-size: clamp(48px, 8.5vw, 68px);
  }

  .hero-photo-wrap::before {
    top: 58px;
    right: -1px;
    width: 3px;
    height: 68px;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0 31px;
  }

  .project-media {
    width: 100%;
    max-width: 620px;
    aspect-ratio: 16 / 10;
  }

  .project-tag-filter {
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .project-tag-filter::-webkit-scrollbar { display: none; }

  .project-filter-label,
  .project-tag-filter .filter-btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 38px 0 42px;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-photo-wrap {
    grid-column: 1;
    grid-row: 1;
    width: 112px;
    min-height: 0;
    height: 138px;
    margin: 0 0 26px;
    border: 0;
    border-radius: 0;
  }

  .hero-photo-wrap::before {
    top: auto;
    right: auto;
    left: 0;
    bottom: -1px;
    width: 46px;
    height: 2px;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(45px, 14vw, 56px);
    line-height: .96;
  }

  .hero-role {
    margin-top: 19px;
    font-size: 16px;
    line-height: 1.52;
  }

  .project-row {
    padding: 24px 0 27px;
  }

  .project-media {
    max-width: none;
    padding: 7px;
    border-radius: 0;
    box-shadow: 0 7px 22px rgba(32, 32, 29, .045);
  }

  .tag-line,
  .blog-tags {
    margin-top: 12px;
  }

  .tag-line span,
  .blog-tags span,
  .project-inline-tag {
    font-size: 9.5px;
    letter-spacing: .08em;
  }

  .tag-line span + span::before,
  .blog-tags span + span::before,
  .project-inline-tag + .project-inline-tag::before {
    padding: 0 7px;
  }

  .project-tag-filter {
    margin-left: -14px;
    width: calc(100% + 28px);
    margin-bottom: 30px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .blog-filter-btn {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .legal-footer { padding-top: 19px; }

  .legal-footer-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .privacy-page { padding: 42px 0 58px; }
  .privacy-shell { width: calc(100% - 28px); }
  .privacy-lede { margin-bottom: 30px; }
  .privacy-section { padding: 21px 0; }
}

@media (hover: none) {
  .project-row:hover .project-media {
    transform: none;
  }
}
