@import url("assets/css/part-1.css");
@import url("assets/css/part-2.css");
@import url("assets/css/part-3.css");
@import url("assets/css/part-4.css");
@import url("assets/css/part-5.css");
@import url("assets/css/part-6.css");
@import url("assets/css/part-7.css");
@import url("assets/css/part-8.css");

/* QA correction for the misspelled declaration in the earlier component stylesheet. */
.card-link:hover,
.text-link:hover,
.back-link:hover {
  text-decoration-thickness: 2px;
}

/* Keep in-page targets clear of the sticky desktop/tablet header. */
section[id] {
  scroll-margin-top: 104px;
}

/* Real portfolio media */
.collage-tile img,
.card-media img,
.project-hero-media img,
.project-media img,
.episode-thumb img {
  display: block;
}

.media-focus-portrait { object-position: 50% 32%; }
.media-focus-top { object-position: 50% 24%; }
.media-focus-center { object-position: 50% 50%; }

/* Mikhail Kirs visual system v1 */
:root {
  --text: #20364a;
  --fanshawe-red: #c8102e;
}

.hero h1,
.section h2,
.card h3,
.about-copy .lead,
.brand,
.project-copy h3,
.episode-copy h3 {
  color: var(--text);
}

/* Hero: one portrait + repeating soft-square motif */
.hero-identity {
  min-height: 590px;
}

.hero-identity::before,
.hero-identity::after {
  border-radius: 70px 28px 70px 28px;
}

.hero-identity::before {
  width: 360px;
  height: 360px;
  left: 8%;
  top: 88px;
  background: var(--yellow);
  transform: rotate(-7deg);
}

.hero-identity::after {
  width: 300px;
  height: 300px;
  right: 3%;
  bottom: 64px;
  background: var(--cyan);
  transform: rotate(8deg);
}

.hero-identity .collage-portrait {
  width: min(72%, 370px);
  height: 485px;
  left: 50%;
  top: 50%;
  border-radius: 58px 22px 58px 22px;
  transform: translate(-50%, -50%) rotate(-2deg);
  box-shadow: 18px 20px 0 var(--purple), var(--shadow);
}

.hero-identity .collage-portrait img {
  object-position: 50% 28%;
}

.hero-identity .accent-coral {
  width: 58px;
  height: 58px;
  left: 5%;
  top: 9%;
}

.hero-identity .accent-purple {
  width: 72px;
  height: 72px;
  right: 5%;
  top: 21%;
}

.hero-identity .accent-green {
  width: 68px;
  height: 68px;
  left: 10%;
  bottom: 10%;
}

.hero-identity .collage-caption {
  right: 8%;
  bottom: 16%;
}

/* About */
.about-title { align-self: start; }

.about-portrait-stack {
  position: relative;
  width: min(100%, 360px);
  margin: 54px 0 24px 42px;
  isolation: isolate;
}

.about-portrait-stack::before,
.about-portrait-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px 18px 30px 18px;
  z-index: -1;
}

.about-portrait-stack::before {
  background: var(--yellow);
  transform: translate(-26px, -20px) rotate(-5deg);
}

.about-portrait-stack::after {
  background: var(--cyan);
  transform: translate(22px, 20px) rotate(4deg);
}

.about-portrait-stack img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 28%;
  border: 5px solid var(--surface);
  border-radius: 30px 18px 30px 18px;
  box-shadow: var(--shadow);
  transition: transform .22s ease;
}

.about-portrait-stack:hover img { transform: translateY(-4px); }

.about-photo-caption {
  margin-top: 18px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-copy .lead {
  background: none !important;
  box-shadow: none !important;
}

.about-copy .lead::before,
.about-copy .lead::after {
  content: none !important;
}

.workflow-copy strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.16rem;
}

.education-card { border-bottom: 4px solid var(--fanshawe-red); }
.education-year { background: var(--fanshawe-red); color: white; }

/* Contact: poster composition */
.contact-section { padding-bottom: 86px; }

.contact-box {
  display: block;
  padding: clamp(34px, 5vw, 62px);
}

.contact-manifesto {
  display: grid;
  gap: .05em;
  max-width: none;
  font-size: clamp(2.7rem, 4.7vw, 4.9rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.contact-manifesto span {
  display: block;
  white-space: nowrap;
}

.contact-manifesto em { font-style: normal; }
.word-seen { color: var(--cyan); }
.word-heard { color: var(--purple); }
.word-told { color: var(--green); }

.contact-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 38px;
}

.contact-prompt {
  margin: 0;
  color: var(--text) !important;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
}

.contact-section .actions {
  gap: 12px;
  margin-top: 0;
}

.contact-section .button.linkedin {
  border-color: var(--text);
  color: var(--text);
}

.contact-section .button.instagram {
  border-color: var(--purple);
  color: var(--purple);
}

/* Repeating soft-square factual blocks */
.project-facts-branded {
  gap: 22px;
  align-items: stretch;
}

.project-facts-branded .fact {
  min-height: 156px;
  padding: 22px;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 30px 14px 30px 14px;
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--fact-accent);
}

.project-facts-branded .fact:nth-child(1) {
  --fact-accent: var(--yellow);
  transform: rotate(-1deg);
}

.project-facts-branded .fact:nth-child(2) {
  --fact-accent: var(--cyan);
  transform: rotate(1deg);
}

.project-facts-branded .fact:nth-child(3) {
  --fact-accent: var(--purple);
  transform: rotate(-.7deg);
}

.project-facts-branded .fact:nth-child(4) {
  --fact-accent: var(--green);
  transform: rotate(.8deg);
}

/* Compact published-media cards */
.compact-heading { align-items: start; }
.episode-section { padding-top: 72px; }

.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.episode-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px 14px 30px 14px;
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--project-accent);
}

.episode-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-copy { padding: 22px; }

.episode-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.episode-copy > p:not(.item-number) { color: var(--muted); }

.episode-copy .text-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
}

.boundary-section {
  padding-top: 50px;
  padding-bottom: 50px;
}

/* Long-form project page */
.project-page-city {
  --project-accent: var(--blue);
  --project-soft: rgba(15, 111, 143, .12);
}

.longform-projects .project-item {
  grid-template-columns: minmax(0, .9fr) minmax(330px, 1.1fr);
}

.longform-projects .project-media img,
.longform-projects .project-media .placeholder-visual {
  min-height: 360px;
}

/* Footer */
.site-footer .footer-row {
  justify-content: flex-start;
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1050px) {
  .hero-identity {
    width: min(100%, 620px);
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .nav-links a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 4px;
  }

  .about-portrait-stack { margin-left: 26px; }

  .contact-manifesto { font-size: clamp(2.8rem, 9vw, 4.8rem); }
  .contact-manifesto span { white-space: normal; }

  .contact-copy {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 620px) {
  .nav-links {
    justify-content: space-between;
    gap: 4px;
    overflow: visible;
    flex-wrap: nowrap;
  }

  .nav-links a {
    min-height: 40px;
    padding: 0 6px;
    font-size: 0.82rem;
  }

  .hero-identity { min-height: 470px; }

  .hero-identity::before {
    width: 245px;
    height: 245px;
    left: 7%;
    top: 88px;
  }

  .hero-identity::after {
    width: 205px;
    height: 205px;
    right: 3%;
    bottom: 66px;
  }

  .hero-identity .collage-portrait {
    width: 68%;
    height: 330px;
  }

  .hero-identity .collage-caption {
    right: 3%;
    bottom: 8%;
  }

  .about-portrait-stack {
    width: calc(100% - 42px);
    margin: 44px 0 34px 22px;
  }

  .contact-manifesto { font-size: clamp(2.55rem, 12vw, 4.2rem); }

  .contact-section .actions {
    width: 100%;
    align-items: stretch;
  }

  .contact-section .button { width: 100%; }

  .project-facts-branded { grid-template-columns: 1fr; }

  .project-facts-branded .fact {
    min-height: 126px;
    transform: none !important;
  }

  .episode-grid { grid-template-columns: 1fr; }
  .longform-projects .project-item { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .about-portrait-stack img { transition: none; }
  .about-portrait-stack:hover img { transform: none; }
}
