/*
Theme Name: IAMREJIM
Theme URI: https://iamrejim.com/
Author: IAMREJIM.COM
Description: Custom editorial block theme for the IAMREJIM biography and portfolio.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: iamrejim
*/

html {
  scroll-behavior: smooth;
}

body {
  text-wrap: pretty;
  overflow-x: hidden;
}

a {
  text-underline-offset: 0.2em;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ed262b; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 9999; left: 1rem; top: 1rem; transform: translateY(-200%); background: #ed262b; color: #ffffff; padding: .75rem 1rem; }
.skip-link:focus { transform: translateY(0); }

::selection {
  background: #ed262b;
  color: #ffffff;
}

.wp-site-blocks { overflow: hidden; }
.wp-block-site-title a { text-decoration: none; letter-spacing: -0.02em; }
footer a { color: #ed262b; }

.hero {
  position: relative;
  min-height: min(820px, 88vh);
  display: grid;
  align-items: center;
  padding-block: clamp(5rem, 10vw, 9rem);
  background-image:
    linear-gradient(90deg, #171717 0%, #171717 35%, rgba(23, 23, 23, 0.82) 55%, rgba(23, 23, 23, 0.08) 100%),
    url("assets/images/hero-portrait-placeholder.png");
  background-position: center, right 12% center;
  background-repeat: no-repeat;
  background-size: cover, min(52vw, 720px) auto;
}
.hero::after {
  content: "PORTRAIT PLACEHOLDER";
  position: absolute;
  right: 1.5rem;
  bottom: 1.25rem;
  color: rgba(244, 240, 232, 0.55);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero h1 { max-width: 12ch; margin-block: 0.35em; letter-spacing: -0.045em; }
.hero-lead { max-width: 620px; color: #d9d4cb; }
.eyebrow, .project-number { letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }

.journey-section, .projects-section, .closing-statement {
  padding-block: clamp(5rem, 10vw, 9rem);
}
.section-intro { margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.section-intro h2, .projects-section h2, .closing-statement h2 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  letter-spacing: -0.04em;
}
.timeline {
  position: relative;
  border-top: 1px solid #c9c3b7;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4.45rem;
  width: 1px;
  background: linear-gradient(#ed262b, rgba(237, 38, 43, 0.08));
}
.timeline-item {
  position: relative;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(2.2rem, 4vw, 3.4rem) clamp(0rem, 2vw, 2rem);
  border-bottom: 1px solid #c9c3b7;
  transition: background-color 240ms ease, transform 240ms ease;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 4.15rem;
  top: 3.15rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #ed262b;
  box-shadow: 0 0 0 0.4rem #fffdf8;
}
.timeline-item:hover {
  background: rgba(255, 255, 255, 0.48);
  transform: translateX(0.35rem);
}
.timeline-item .timeline-kicker { flex: 0 0 3rem; margin-top: 0.2rem; font-weight: 700; }
.timeline-item h3 { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.timeline-item p:last-child { max-width: 720px; }

.project-grid { margin-top: clamp(2.5rem, 6vw, 5rem); gap: 1rem; }
.project-card {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid #d9d4cb;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
.project-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 85% 12%, rgba(237, 38, 43, 0.18), transparent 30%),
    linear-gradient(145deg, transparent 48%, rgba(23, 23, 23, 0.035) 49%, transparent 50%);
  transform: scale(1.02);
  transition: transform 500ms ease;
}
.project-card::after {
  content: "↗";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0.55;
}
.project-card:hover {
  transform: translateY(-0.55rem);
  border-color: #ed262b;
  box-shadow: 0 1.4rem 3rem rgba(23, 23, 23, 0.11);
}
.project-card:hover::before { transform: scale(1.12); }
.project-card:nth-child(2) { background: #eee8dc; }
.project-card:nth-child(3) {
  background: linear-gradient(160deg, #ffffff 40%, #fffdf8 100%);
}
.project-card-dark {
  background: linear-gradient(150deg, #272727 0%, #111111 72%);
  color: #fffdf8;
  border-color: #171717;
}
.project-card h3 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 0.2em; }
.project-card p:last-child { max-width: 32ch; }
.closing-statement h2 { max-width: 980px; margin-inline: auto; }

@media (max-width: 781px) {
  .hero {
    min-height: 760px;
    align-items: end;
    padding-block: 4rem;
    background-image:
      linear-gradient(0deg, #171717 0%, rgba(23, 23, 23, 0.96) 32%, rgba(23, 23, 23, 0.25) 72%, rgba(23, 23, 23, 0.05) 100%),
      url("assets/images/hero-portrait-placeholder.png");
    background-position: center, center top;
    background-size: cover, auto 82%;
  }
  .hero::after { display: none; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5rem) !important; }
  .hero-lead { font-size: 1.12rem !important; }
  .timeline::before { left: 2.9rem; }
  .timeline-item { align-items: flex-start; padding-inline: 0; gap: 1.25rem; }
  .timeline-item::before { left: 2.6rem; }
  .timeline-item:hover { transform: none; }
  .project-card { min-height: 280px; }
}

.contact-hero, .contact-body { padding-block: clamp(5rem, 10vw, 9rem); }
.contact-hero { min-height: 72vh; display: grid; align-items: end; }
.contact-hero h1 { max-width: 13ch; letter-spacing: -0.05em; }
.contact-deck { max-width: 720px; color: #c9c3b7; }
.contact-aside { padding-right: clamp(1rem, 5vw, 4rem); }
.contact-aside h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.contact-privacy { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #c9c3b7; color: #6b675f; font-size: .9rem; }
.iamrejim-contact-form { display: grid; gap: 1.5rem; }
.contact-field { display: grid; gap: .55rem; }
.contact-field label { font-weight: 650; }
.contact-field input, .contact-field select, .contact-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #aaa49a; border-radius: 0; background: #fff; color: #171717; padding: .9rem 1rem; font: inherit; }
.contact-field textarea { resize: vertical; }
.contact-help { margin: 0; color: #6b675f; font-size: .85rem; }
.contact-submit { width: fit-content; border: 0; border-radius: 0; padding: 1rem 1.5rem; background: #171717; color: #fffdf8; font: inherit; font-weight: 650; cursor: pointer; }
.contact-submit:hover { background: #ed262b; color: #ffffff; }
.contact-alert { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-left: 4px solid; }
.contact-alert-success { border-color: #2d7a46; background: #e5f3e9; color: #174126; }
.contact-alert-error { border-color: #a63a32; background: #f8e7e5; color: #6f211c; }
.contact-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 781px) {
  .contact-hero { min-height: auto; }
  .contact-aside { padding-right: 0; margin-bottom: 3rem; }
}

.biography-hero, .biography-opening, .biography-chapters, .biography-close { padding-block: clamp(5rem, 10vw, 10rem); }
.biography-hero { min-height: 82vh; display: grid; align-items: end; }
.biography-hero h1 { max-width: 11ch; letter-spacing: -0.055em; }
.biography-deck { color: #c9c3b7; border-left: 2px solid #ed262b; padding-left: 1.5rem; }
.biography-prose { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.biography-prose > p { max-width: 720px; }
.biography-dropcap::first-letter { float: left; font-family: Georgia, "Times New Roman", serif; font-size: 5.2em; line-height: .72; padding: .12em .12em 0 0; color: #ed262b; }
.biography-chapter { padding-block: clamp(4.5rem, 9vw, 8rem); border-top: 1px solid #c9c3b7; }
.chapter-label { font-size: .75rem; letter-spacing: .15em; font-weight: 700; }
.biography-chapter h2, .biography-close h2 { font-size: clamp(2.4rem, 5vw, 5rem); letter-spacing: -0.045em; }
.biography-chapter .wp-block-pullquote { padding: 2rem 0; border-block: 1px solid #c9c3b7; text-align: left; }
.biography-chapter .wp-block-pullquote p { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.15; }
.biography-chapter-dark { margin-inline: calc(50% - 50vw); padding-inline: max(calc((100vw - 1180px) / 2), 1.25rem); background: #171717; color: #fffdf8; border-color: #171717; }
.biography-chapter-dark .wp-block-pullquote { border-color: #55514b; }
.biography-close h2 { max-width: 1000px; }

@media (max-width: 781px) {
  .biography-hero { min-height: auto; }
  .biography-deck { margin-top: 2rem; }
  .biography-dropcap::first-letter { font-size: 4.4em; }
}

.vlog-preview,
.vlog-hero,
.vlog-library {
  padding-block: clamp(5rem, 10vw, 9rem);
}
.vlog-preview { background: #171717; color: #fffdf8; }
.vlog-heading-row { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.vlog-heading-row h2, .vlog-hero h1, .vlog-library h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  letter-spacing: -0.045em;
}
.vlog-heading-row a { color: #ed262b; }
.vlog-grid { gap: clamp(1.5rem, 3vw, 3rem); }
.vlog-card { position: relative; }
.vlog-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #282828;
}
.vlog-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08);
  transition: transform 500ms ease, filter 300ms ease;
}
.vlog-thumbnail::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 0.2rem;
  background: #ed262b;
  color: #171717;
  font-size: 1.2rem;
  box-shadow: 0 0 0 0.65rem rgba(23,23,23,0.25);
}
.vlog-card:hover .vlog-thumbnail img { transform: scale(1.045); filter: saturate(1) contrast(1.08); }
.vlog-card h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 0.35rem; }
.vlog-card h3 a { color: inherit; text-decoration: none; }
.vlog-card p:last-child { color: #aaa49a; }
.vlog-page-card { margin-bottom: clamp(4rem, 8vw, 8rem); }
.vlog-page-card .wp-block-embed { margin-top: 2rem; }
.vlog-disclaimer { border-left: 2px solid #ed262b; padding-left: 1.5rem; color: #6b675f; }

@media (max-width: 781px) {
  .vlog-thumbnail::after { width: 3rem; height: 3rem; }
}

.projects-hero, .project-index, .case-hero, .case-summary, .case-approach, .case-video, .case-evidence { padding-block: clamp(5rem, 10vw, 9rem); }
.projects-hero, .case-hero { min-height: 68vh; display: grid; align-items: end; }
.projects-hero h1 { max-width: 13ch; letter-spacing: -0.05em; }
.projects-hero p:last-child, .case-lead { max-width: 760px; color: #c9c3b7; }
.project-index-card { padding: clamp(2rem, 5vw, 4.5rem); border: 1px solid #c9c3b7; }
.project-index-featured { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.3fr) !important; background: #171717; color: #fffdf8; margin-block: 3rem 1rem; gap: clamp(2rem, 6vw, 6rem); }
.project-index-card h2, .case-summary h2, .case-approach h2, .case-video h2, .case-evidence h2 { font-size: clamp(2.2rem, 5vw, 4.7rem); letter-spacing: -0.04em; }
.project-secondary-grid { gap: 1rem; }
.project-secondary-grid .project-index-card { min-height: 350px; display: flex; flex-direction: column; justify-content: flex-end; }
.project-status { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid currentColor; color: #6b675f; font-size: .88rem; }
.case-hero h1 { font-size: clamp(5rem, 18vw, 14rem) !important; letter-spacing: -0.07em; margin-bottom: .1em; }
.case-meta { border-top: 2px solid #ed262b; padding-top: 1.5rem; }
.case-step-grid { margin-top: clamp(3rem, 6vw, 5rem); gap: 1rem; }
.case-step { min-height: 280px; padding: 2rem; border: 1px solid #c9c3b7; display: flex; flex-direction: column; justify-content: flex-end; }
.case-step h3 { font-size: 2rem; }
.case-video .wp-block-embed { margin-top: 3rem; }

@media (max-width: 781px) {
  .projects-hero, .case-hero { min-height: auto; }
  .project-index-featured { grid-template-columns: 1fr !important; }
  .case-hero h1 { font-size: clamp(3.2rem, 16vw, 5.2rem) !important; }
  .case-meta { margin-bottom: 3rem; }
}

.experience-hero,
.experience-body,
.experience-footnote {
  padding-block: clamp(5rem, 10vw, 9rem);
}
.experience-hero { min-height: 75vh; display: grid; align-items: end; }
.experience-hero h1 { max-width: 13ch; letter-spacing: -0.05em; }
.experience-lead { max-width: 760px; color: #c9c3b7; }
.experience-list { border-top: 1px solid #c9c3b7; }
.experience-entry {
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1.8fr) !important;
  gap: clamp(2rem, 8vw, 8rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid #c9c3b7;
}
.experience-index { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: 1; margin: 0 0 1rem; }
.experience-entry h2 { font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -0.04em; }
.experience-entry > .wp-block-group:last-child { max-width: 780px; }
.experience-featured {
  margin-inline: calc(50% - 50vw);
  padding-inline: max(calc((100vw - 1180px) / 2), 1.25rem);
  background: #171717;
  color: #fffdf8;
  border-color: #171717;
}
.experience-featured p:not(.has-gold-color) { color: #c9c3b7; }
.experience-footnote h2 { font-size: clamp(2.2rem, 4vw, 4rem); }

@media (max-width: 781px) {
  .experience-hero { min-height: auto; }
  .experience-entry { grid-template-columns: 1fr !important; gap: 1rem; }
  .experience-index { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .timeline-item, .project-card, .project-card::before { transition: none; }
}

.about-hero,
.about-intro,
.career-chapters,
.principles-section,
.about-note {
  padding-block: clamp(5rem, 10vw, 9rem);
}
.about-hero { min-height: 70vh; display: grid; align-items: end; }
.about-hero h1 { max-width: 11ch; letter-spacing: -0.05em; }
.about-standfirst { color: #c9c3b7; border-left: 2px solid #ed262b; padding-left: 1.5rem; }
.about-intro h2, .career-chapters h2, .principles-section h2, .about-note h2 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  letter-spacing: -0.04em;
}
.about-intro .wp-block-column:last-child > p { max-width: 760px; }
.chapter-grid { margin-top: clamp(3rem, 6vw, 5rem); gap: 0; flex-wrap: wrap !important; }
.chapter-card {
  flex-basis: 50% !important;
  min-height: 310px;
  padding: clamp(1.7rem, 4vw, 3.5rem);
  border: 1px solid #c9c3b7;
  margin: -1px 0 0 -1px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background-color 240ms ease, color 240ms ease;
}
.chapter-card:hover { background: #171717; color: #fffdf8; }
.chapter-era { letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; }
.chapter-card h3 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.principles-list h3 { padding-top: 1.5rem; border-top: 1px solid #55514b; color: #ed262b; }
.principles-list p { padding-bottom: 1.5rem; color: #c9c3b7; }
.about-note h2 { max-width: 1000px; }

@media (max-width: 781px) {
  .about-hero { min-height: auto; }
  .about-standfirst { margin-top: 2rem; }
  .chapter-card { flex-basis: 100% !important; min-height: 250px; }
}

/* Rejim Life: the primary IAMREJIM visual system, inspired by the original WordPress.com site. */
:root {
  --rl-red: #ed262b;
  --rl-ink: #202020;
  --rl-paper: #fffdf8;
  --rl-rule: #d9d6cf;
}
.rejim-life-page {
  background: var(--rl-paper);
  color: var(--rl-ink);
}
.rejim-life-page a { color: inherit; }
.rejim-life-wrap { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.rejim-life-masthead { padding-block: clamp(1rem, 2.5vw, 2.25rem); }
.rejim-life-masthead .rejim-life-wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.rejim-life-brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.rejim-life-logo { width: 72px; height: auto; flex: 0 0 auto; }
.rejim-life-brand-copy { display: grid; line-height: 1.05; }
.rejim-life-brand-copy strong { font-size: clamp(1.15rem, 2.1vw, 1.7rem); letter-spacing: -0.035em; }
.rejim-life-brand-copy span { margin-top: .35rem; color: #6f6b64; font-size: .78rem; }
.rejim-life-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem 1.35rem; font-weight: 650; }
.rejim-life-nav a { text-decoration: none; }
.rejim-life-nav a:hover { color: var(--rl-red); }
.rejim-life-hero { padding: clamp(.25rem, 1vw, .75rem) 0 clamp(4rem, 8vw, 8rem); text-align: center; }
.rejim-life-home .rejim-life-hero { padding-bottom: clamp(2rem, 4vw, 3rem); }
.rejim-life-home-portrait { position: relative; width: min(100%, 780px); margin: 0 auto clamp(.5rem, 1.2vw, 1rem); }
.rejim-life-home-portrait img { display: block; width: 100%; height: auto; }
.rejim-life-home-portrait::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--rl-paper) 0%, rgba(255, 253, 248, 0) 9%, rgba(255, 253, 248, 0) 91%, var(--rl-paper) 100%),
    linear-gradient(to bottom, var(--rl-paper) 0%, rgba(255, 253, 248, 0) 8%, rgba(255, 253, 248, 0) 86%, var(--rl-paper) 100%);
}
.rejim-life-kicker { margin: 0 0 1.25rem; color: var(--rl-red); font-size: .72rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.rejim-life-hero h1 { max-width: 980px; margin: 0 auto; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 8.6vw, 8.3rem); font-weight: 400; line-height: .94; letter-spacing: -.065em; }
.rejim-life-intro { max-width: 720px; margin: 2rem auto 0; color: #56524c; font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.rejim-life-hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.4rem; margin-top: 2rem; }
.rejim-life-hero-links a { font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration-color: var(--rl-red); }
.rejim-life-status { width: fit-content; margin: 0 auto 2rem; padding: .45rem .75rem; border: 1px solid var(--rl-rule); color: #6f6b64; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.rejim-life-section { padding-block: clamp(4rem, 9vw, 8rem); }
.rejim-life-section-heading { display: grid; grid-template-columns: minmax(150px, .45fr) minmax(0, 1.55fr); gap: clamp(2rem, 7vw, 8rem); margin-bottom: clamp(2.5rem, 6vw, 5rem); align-items: end; }
.rejim-life-section-heading h2 { max-width: 760px; margin: 0; font-size: clamp(2.5rem, 6vw, 6rem); letter-spacing: -.055em; }
.rejim-life-section-heading p { margin: 0; color: #6f6b64; }
.instagram-home-section { padding-top: clamp(1rem, 3vw, 2.5rem); }
.instagram-home-heading { display: block; margin-bottom: .75rem; }
.instagram-home-heading .rejim-life-kicker { margin-bottom: 0; }
.instagram-home-footer { max-width: 650px; margin: 1.35rem auto 0; text-align: center; color: #6f6b64; }
.instagram-home-footer p { margin: 0; }
.instagram-home-footer p + p { margin-top: .35rem; }
.instagram-home-footer a { text-decoration-color: var(--rl-red); text-underline-offset: .22em; }
.rejim-life-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(105px, 13vw, 190px); gap: .45rem; }
.rejim-life-tile { position: relative; overflow: hidden; margin: 0; background: #171717; }
.rejim-life-tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.08); transition: transform 550ms ease, filter 300ms ease; }
.rejim-life-tile:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.03); }
.rejim-life-tile figcaption { position: absolute; inset: auto 0 0; padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.rejim-life-tile-a { grid-column: span 7; grid-row: span 2; }
.rejim-life-tile-b { grid-column: span 5; grid-row: span 3; }
.rejim-life-tile-c { grid-column: span 4; grid-row: span 2; }
.rejim-life-tile-d { grid-column: span 3; grid-row: span 2; }
.rejim-life-tile-e { grid-column: span 7; grid-row: span 2; }
.rejim-life-tile-f { grid-column: span 5; grid-row: span 2; }
.rejim-life-projects { position: relative; background: transparent; overflow: visible; }
.rejim-life-project { position: relative; display: grid; grid-template-columns: minmax(190px, .78fr) minmax(0, 1.22fr); width: min(78%, 810px); min-height: 330px; overflow: hidden; background: #fff; border: 1px solid rgba(237, 38, 43, .72); border-radius: 1.15rem; box-shadow: 0 18px 44px rgba(32, 32, 32, .1); }
.rejim-life-project:nth-child(1) { z-index: 1; }
.rejim-life-project:nth-child(2) { z-index: 2; margin: -1.75rem 0 0 auto; background: #f8f8f6; }
.rejim-life-project:nth-child(3) { z-index: 3; margin: -1.75rem auto 0 4%; }
.rejim-life-project-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.7rem, 4vw, 3.4rem); }
.rejim-life-project-copy h3 { margin: .35rem 0 .65rem; font-size: clamp(2.2rem, 3.8vw, 3.8rem); letter-spacing: -.045em; line-height: .95; }
.rejim-life-project-copy p { max-width: 520px; margin-block: 0; color: #625e57; font-size: .98rem; }
.rejim-life-project-copy a { display: inline-block; width: fit-content; margin-top: .9rem; font-size: .78rem; font-weight: 700; text-decoration-color: var(--rl-red); }
.rejim-life-project-media { position: relative; overflow: hidden; min-height: 100%; background: #d9d9d6; border-right: 1px solid var(--rl-rule); }
.rejim-life-project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; filter: saturate(.75) contrast(1.03); }
.rejim-life-project-media:hover img { transform: scale(1.025); }
.rejim-life-project-panel { display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding: clamp(1.5rem, 3vw, 2.6rem); background: #e3e3e0; border-right: 1px solid var(--rl-rule); color: #77736d; }
.rejim-life-project-panel span { font-size: .7rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.rejim-life-project-panel strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 4.8rem); font-weight: 400; line-height: .9; letter-spacing: -.06em; }
.rejim-life-project:nth-child(3) .rejim-life-project-panel { background: #d5d5d2; }
.rejim-life-project-number { margin: 0; color: var(--rl-red) !important; font-size: .68rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.rejim-life-manifesto { padding-block: clamp(6rem, 13vw, 12rem); background: var(--rl-red); color: #fff; }
.rejim-life-manifesto blockquote { max-width: 1050px; margin: 0 auto; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 7vw, 7.4rem); line-height: .98; letter-spacing: -.055em; text-align: center; }
.rejim-life-manifesto cite { display: block; margin-top: 2rem; font-family: Inter, Aptos, "Segoe UI", sans-serif; font-size: .75rem; font-style: normal; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.rejim-life-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rl-rule); border-left: 1px solid var(--rl-rule); }
.rejim-life-note { min-height: 280px; padding: clamp(1.5rem, 3vw, 2.6rem); border-right: 1px solid var(--rl-rule); border-bottom: 1px solid var(--rl-rule); display: flex; flex-direction: column; justify-content: space-between; }
.rejim-life-note span { color: var(--rl-red); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.rejim-life-note h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.rejim-life-note a { font-weight: 700; text-decoration-color: var(--rl-red); }
.rejim-life-cta { padding-block: clamp(5rem, 11vw, 9rem); text-align: center; }
.rejim-life-cta h2 { max-width: 900px; margin: 0 auto; font-size: clamp(2.8rem, 7vw, 6.7rem); letter-spacing: -.055em; }
.rejim-life-cta a { display: inline-block; margin-top: 2rem; padding: 1rem 1.45rem; background: var(--rl-ink); color: #fff; font-weight: 700; text-decoration: none; }
.rejim-life-cta a:hover { background: var(--rl-red); }
.rejim-life-footer { padding-block: 2rem; border-top: 1px solid var(--rl-rule); color: #6f6b64; font-size: .82rem; }
.rejim-life-footer .rejim-life-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

@media (min-width: 782px) {
  .rejim-life-home .rejim-life-hero h1 { max-width: 800px; font-size: clamp(4rem, 5vw, 6rem); }
  .rejim-life-home .rejim-life-intro { margin-top: 1.25rem; }
  .rejim-life-home .rejim-life-hero-links { margin-top: 1.25rem; }
}

@media (min-width: 782px) and (max-height: 900px) {
  .rejim-life-masthead { padding-block: 1rem; }
  .rejim-life-home-portrait { width: min(100%, 700px); }
  .rejim-life-home .rejim-life-hero h1 { max-width: 740px; font-size: clamp(3.8rem, 4.5vw, 5.3rem); }
}

@media (max-width: 781px) {
  .rejim-life-wrap { width: min(100% - 2rem, 1180px); }
  .rejim-life-masthead .rejim-life-wrap { align-items: flex-start; }
  .rejim-life-logo { width: 58px; }
  .rejim-life-brand-copy span { display: none; }
  .rejim-life-nav { max-width: 160px; gap: .25rem .8rem; font-size: .82rem; }
  .rejim-life-home-portrait { margin-bottom: .75rem; }
  .rejim-life-section-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .rejim-life-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .rejim-life-tile-a, .rejim-life-tile-b, .rejim-life-tile-c, .rejim-life-tile-d, .rejim-life-tile-e, .rejim-life-tile-f { grid-column: span 1; grid-row: span 1; }
  .rejim-life-tile-a, .rejim-life-tile-b { grid-row: span 2; }
  .rejim-life-notes { grid-template-columns: 1fr; }
  .rejim-life-note { min-height: 220px; }
  .rejim-life-projects { min-height: auto; padding: 1rem; border-radius: 1.2rem; }
  .rejim-life-project { grid-template-columns: minmax(115px, .65fr) minmax(0, 1.35fr); width: 100%; min-height: 270px; }
  .rejim-life-project:nth-child(2), .rejim-life-project:nth-child(3) { margin: 1rem 0 0; }
}

@media (max-width: 420px) {
  .rejim-life-brand-copy strong { font-size: 1rem; }
  .rejim-life-nav { max-width: 130px; font-size: .75rem; }
  .rejim-life-hero { padding-top: .5rem; }
  .rejim-life-project { grid-template-columns: 1fr; }
  .rejim-life-project-media, .rejim-life-project-panel { min-height: 160px; border-right: 0; border-bottom: 1px solid var(--rl-rule); }
  .rejim-life-project-copy { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rejim-life-tile img, .rejim-life-project-media img { transition: none; }
}

/* Site-wide Rejim Life treatment. */
.wp-site-blocks > * { margin-block-start: 0; }
.site-masthead { background: var(--rl-paper); }
.site-footer { background: var(--rl-paper); }
.site-footer .rejim-life-wrap { align-items: center; }
.site-footer a { font-weight: 700; text-decoration-color: var(--rl-red); }

.biography-page,
.experience-page,
.projects-page,
.case-page,
.vlog-page,
.contact-page,
.about-page,
.journal-index {
  background: var(--rl-paper);
  color: var(--rl-ink);
}

.biography-hero,
.experience-hero,
.projects-hero,
.case-hero,
.vlog-hero,
.contact-hero,
.about-hero {
  min-height: auto;
  padding-block: clamp(5rem, 11vw, 10rem);
  background: var(--rl-paper) !important;
  color: var(--rl-ink) !important;
  border-top: 1px solid var(--rl-rule);
}
.biography-hero h1,
.experience-hero h1,
.projects-hero h1,
.case-hero h1,
.vlog-hero h1,
.contact-hero h1,
.about-hero h1 {
  max-width: 1050px;
  font-size: clamp(3.2rem, 8vw, 8rem) !important;
  line-height: .96;
  letter-spacing: -.06em;
}
.biography-deck,
.experience-lead,
.projects-hero p:last-child,
.case-lead,
.vlog-hero p:last-child,
.contact-deck,
.about-standfirst {
  color: #625e57 !important;
  border-color: var(--rl-red);
}

.biography-opening,
.biography-chapters,
.biography-close,
.experience-body,
.experience-footnote,
.project-index,
.case-summary,
.case-approach,
.case-video,
.case-evidence,
.vlog-library,
.contact-body,
.about-intro,
.career-chapters,
.principles-section,
.about-note {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.biography-chapter,
.experience-entry,
.project-index-card,
.case-step,
.vlog-page-card,
.chapter-card {
  border-color: var(--rl-rule);
}
.biography-chapter-dark {
  background: var(--rl-paper);
  color: var(--rl-ink);
  border-color: var(--rl-rule);
}
.biography-chapter-dark .wp-block-pullquote { border-color: var(--rl-rule); }
.biography-chapter .wp-block-pullquote p { color: var(--rl-red); }
.biography-close,
.experience-footnote,
.case-evidence,
.about-note {
  background: var(--rl-red) !important;
  color: #ffffff !important;
}
.biography-close .wp-block-button.is-style-outline .wp-block-button__link,
.about-note .wp-block-button.is-style-outline .wp-block-button__link {
  color: #ffffff;
}

.experience-featured {
  margin-inline: 0;
  padding-inline: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--rl-ink);
  color: #ffffff;
}
.experience-featured p:not(.has-gold-color) { color: #d6d1c9; }
.project-index-featured {
  background: var(--rl-ink);
  color: #ffffff;
  border-color: var(--rl-ink);
}
.project-secondary-grid .project-index-card,
.case-step,
.chapter-card,
.rejim-life-note {
  transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}
.project-secondary-grid .project-index-card:hover,
.case-step:hover,
.chapter-card:hover,
.rejim-life-note:hover {
  background: var(--rl-ink);
  color: #ffffff;
  transform: translateY(-.35rem);
}
.project-secondary-grid .project-index-card:hover .project-status { color: #d6d1c9; }

.case-video {
  background: var(--rl-ink) !important;
  color: #ffffff !important;
}
.case-video .wp-block-embed,
.vlog-page-card .wp-block-embed {
  overflow: hidden;
  border: 1px solid var(--rl-rule);
}
.vlog-page-card {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
  column-gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--rl-rule);
}
.vlog-page-card > .eyebrow { grid-column: 1; grid-row: 1 / span 4; }
.vlog-page-card > :not(.eyebrow) { grid-column: 2; }
.vlog-page-card h2 { margin-top: 0; font-size: clamp(2.2rem, 5vw, 5rem); letter-spacing: -.045em; }
.vlog-library .vlog-page-card:last-of-type { border-bottom: 1px solid var(--rl-rule); }
.vlog-disclaimer { border-color: var(--rl-red); }

.contact-field input,
.contact-field select,
.contact-field textarea {
  border-color: var(--rl-rule);
  background: #ffffff;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus { border-color: var(--rl-red); }
.contact-submit:hover { background: var(--rl-red); color: #ffffff; }

.principles-section {
  background: var(--rl-ink) !important;
  color: #ffffff !important;
}
.principles-list h3 { color: var(--rl-red); }
.principles-list p { color: #d6d1c9; }
.chapter-card:hover { background: var(--rl-ink); color: #ffffff; }

.journal-index { padding-inline: max(calc((100vw - 1180px) / 2), 1.25rem); }
.journal-index .wp-block-query-title { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -.055em; }
.journal-index .wp-block-post { padding-block: 2.5rem; border-top: 1px solid var(--rl-rule); }
.journal-index .wp-block-post-title { font-size: clamp(2rem, 4vw, 4rem); }
.journal-index .wp-block-post-title a { text-decoration-color: var(--rl-red); }

@media (max-width: 781px) {
  .site-masthead .rejim-life-wrap { gap: 1rem; }
  .site-masthead .rejim-life-nav { max-width: 175px; }
  .biography-hero,
  .biography-opening,
  .biography-chapters,
  .biography-close,
  .experience-hero,
  .experience-body,
  .experience-footnote,
  .projects-hero,
  .project-index,
  .case-hero,
  .case-summary,
  .case-approach,
  .case-video,
  .case-evidence,
  .vlog-hero,
  .vlog-library,
  .contact-hero,
  .contact-body,
  .about-hero,
  .about-intro,
  .career-chapters,
  .principles-section,
  .about-note { padding-inline: 1rem; }
  .vlog-page-card { grid-template-columns: 1fr; gap: .75rem; }
  .vlog-page-card > .eyebrow,
  .vlog-page-card > :not(.eyebrow) { grid-column: 1; grid-row: auto; }
  .project-secondary-grid .project-index-card:hover,
  .case-step:hover,
  .chapter-card:hover,
  .rejim-life-note:hover { transform: none; }
}
