
/* =========================================================
   THE RYOOF EDIT — DEVELOPER PORTFOLIO
   Clean consolidated stylesheet
   ========================================================= */

/* 01 — GLOBAL */

:root {
  --background1: #f8f8f6;
  --background2: #eeeeeb;
  --mainColor: #d83831;
  --textColor: #171717;
  --secondaryText: #525250;
  --borderColor: #b8b8b3;
  --cardBorder: #e2e2dc;
  --shadow: 0 10px 28px rgba(0, 0, 0, .065);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background1);
  color: var(--textColor);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

figure,
blockquote {
  margin: 0;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  line-height: 1.1;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--mainColor);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden],
.work-card[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--mainColor);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.index-page,
.projects-page,
.cv-page,
.contact-page {
  width: 100%;
  margin: 0;
}

.issue-section {
  padding: 65px 5%;
}

.section-index,
.project-issue,
.profile-edition {
  display: block;
  margin-bottom: 16px;
  color: var(--mainColor);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.issue-section h2 {
  margin-bottom: 28px;
  font-size: clamp(38px, 5.5vw, 82px);
  letter-spacing: -2px;
}

.issue-section h3 {
  font-size: clamp(22px, 2.3vw, 31px);
}

.issue-section p {
  max-width: 68ch;
  color: var(--secondaryText);
}

/* 02 — ORIGINAL NAVIGATION */

.site-header {
  border-bottom: 1px solid var(--borderColor);
  background: var(--background1);
}

.main-nav {
  display: grid;
  grid-template-columns: 1.55fr repeat(4, minmax(0, 1fr)) 1fr;
  min-height: 68px;
  background: var(--background2);
}

.main-nav > * {
  min-width: 0;
  padding: 14px 12px;
  border-right: 1px solid var(--borderColor);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav > *:last-child {
  border-right: none;
}

.main-nav > a[aria-current="page"] {
  color: var(--mainColor);
  box-shadow: inset 0 -3px 0 var(--mainColor);
}

.main-nav .brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  padding: 10px 12px;
}

.brand strong {
  font-size: 13px;
  line-height: 1;
}

.brand small {
  font-size: 7px;
  font-weight: 400;
  letter-spacing: .5px;
}

.nav-volume {
  font-size: 10px;
  font-weight: 400;
}

.main-nav .nav-dot {
  display: none;
}

/* 03 — ORIGINAL MAGAZINE COVER */

.magazine-cover {
  --headlineOverlap: 250px;

  display: grid;
  grid-template-columns: 33% 39% 14% 14%;
  grid-template-rows: auto auto auto auto;
  width: 100%;
  padding: 24px 3% 0;
}

.hero-fashion {
  grid-column: 1;
  grid-row: 1 / 4;
  position: relative;
  align-self: start;
  height: 470px;
  background: var(--mainColor);
  overflow: hidden;
}

.hero-fashion img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 77%;
  height: 94%;
  object-fit: contain;
  object-position: left bottom;
}

.hero-fashion figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--background2);
  font-size: 10px;
}

.hero-heading {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  align-self: start;
  margin: 35px 14px 12px calc(-1 * var(--headlineOverlap));
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(
    to right,
    white var(--headlineOverlap),
    var(--textColor) var(--headlineOverlap)
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-heading h1 {
  margin: 0;
  font-size: clamp(34px, 3.45vw, 55px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -1.5px;
  overflow-wrap: break-word;
  background: linear-gradient(
    to right,
    white var(--headlineOverlap),
    var(--textColor) var(--headlineOverlap)
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-heading h1 em {
  font-style: normal;
}

.hero-intro {
  grid-column: 2;
  grid-row: 2;
  margin: 0 16px 8px;
  padding-right: 16px;
  border-left: 1px solid var(--borderColor);
  font-size: 14px;
  line-height: 1.55;
}

.hero-intro p {
  margin-bottom: 13px;
}

.hero-intro .hero-strap {
  margin-top: 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}

.text-arrow {
  display: inline-block;
  padding: 5px 0;
  color: var(--textColor);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.text-arrow span {
  margin-left: 7px;
  color: var(--mainColor);
}

.hero-sidebar {
  min-width: 0;
  align-self: start;
  font-size: 12px;
  line-height: 1.43;
}

.hero-sidebar h2 {
  margin-bottom: 11px;
  font-size: 12px;
}

.hero-sidebar h2:not(:first-child) {
  margin-top: 22px;
}

.hero-sidebar p {
  margin-bottom: 13px;
  overflow-wrap: break-word;
}

.hero-sidebar a {
  text-decoration: none;
}

.hero-sidebar a:hover {
  text-decoration: underline;
}

.sidebar-one {
  grid-column: 2;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: start;
  gap: 0 20px;
  margin: 8px 16px 0;
  padding: 10px 16px 0 0;
  border-right: 1px solid var(--borderColor);
}

.sidebar-one h2 {
  grid-row: 1;
  margin-top: 0;
}

.sidebar-one p {
  grid-row: 2;
}

.sidebar-one h2:nth-of-type(1),
.sidebar-one p:nth-of-type(1) {
  grid-column: 1;
}

.sidebar-one h2:nth-of-type(2),
.sidebar-one p:nth-of-type(2) {
  grid-column: 2;
}

.sidebar-two,
.sidebar-three {
  grid-row: 1 / 4;
  margin: 36px 0 0;
  padding-left: 14px;
  border-left: 1px solid var(--borderColor);
}

.sidebar-two {
  grid-column: 3;
}

.sidebar-three {
  grid-column: 4;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding-right: 3px;
}

.edition-number {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: auto 0 0;
  color: var(--mainColor);
  font-size: clamp(55px, 6vw, 100px);
  font-weight: 800;
  line-height: 1;
}

.edition-number span {
  font-size: 18px;
}

.cover-folio {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 10px;
  font-weight: 700;
}

@media (min-width: 781px) {
  .hero-intro {
    margin-left: 16px;
    padding-left: 18px;
    border-left: 1px solid var(--borderColor);
    border-right: none;
  }

  .sidebar-one {
    margin-left: 16px;
    padding: 10px 0 0;
    border-left: none;
    border-right: none;
  }

  .sidebar-one > h2,
  .sidebar-one > p {
    padding-left: 18px;
    border-left: 1px solid var(--borderColor);
  }
}

/* 04 — ORIGINAL FEATURED PROJECTS */

.featured-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 52px 0 35px;
}

.featured-section > .section-index,
.featured-section > h2,
.featured-section > .section-intro {
  grid-column: 1 / -1;
  margin-right: 4%;
  margin-left: 4%;
}

.featured-section > .section-index {
  margin-bottom: 7px;
}

.featured-section > h2 {
  grid-row: 2;
  margin-bottom: 7px;
  font-size: clamp(50px, 7vw, 108px);
  text-shadow: 1px 2px 3px rgba(0, 0, 0, .12);
}

.featured-section > .featured-more {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  z-index: 2;
  margin: 0 4% 13px 0;
  padding: 10px 15px;
  border: 1px solid var(--textColor);
  background: var(--background1);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.featured-section > .featured-more:hover {
  background: var(--mainColor);
  border-color: var(--mainColor);
  color: white;
}

.featured-section > .section-intro {
  grid-row: 3;
  margin-bottom: 28px;
  font-size: 15px;
}

.featured-section > .project-card {
  grid-row: 4;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px 24px 20px;
  border-right: 1px solid var(--borderColor);
}

.project-card:last-child {
  border-right: none;
}

.story-number {
  margin-bottom: 14px;
  color: var(--mainColor);
  font-size: 11px;
  font-weight: 700;
}

.project-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 250px;
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.12);
}

.project-image figcaption {
  display: none;
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.4vw, 35px);
}

.project-card p {
  color: var(--secondaryText);
  font-size: 14px;
}

.project-card > a {
  margin-top: auto;
  padding-top: 13px;
  font-size: 14px;
  font-weight: 700;
}

.project-logo-placeholder {
  color: var(--mainColor);
  font-size: 25px;
  font-weight: 700;
  text-align: center;
}

/* SME Finance image fallback */

.project-lettermark {
  position: relative;
}

.project-lettermark .feature-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--mainColor);
  font-size: clamp(35px, 4.5vw, 60px);
  font-weight: 900;
  line-height: 1;
}

.project-lettermark .feature-art span {
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: .07em;
}

.project-lettermark .feature-art small {
  margin-top: 12px;
  color: var(--textColor);
  font-size: 10px;
  letter-spacing: .07em;
}

.project-lettermark > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.project-lettermark.has-image .feature-art {
  display: none;
}

.project-lettermark.missing-media > img {
  display: none;
}

/* 05 — ORIGINAL ABOUT ME */

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 43%) minmax(0, 57%);
  gap: 0;
  padding: 55px 4%;
  align-items: start;
}

.about-section > .section-index {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 16px;
}

.about-section > h2 {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 23px 20px;
  color: white;
  font-size: clamp(48px, 5.3vw, 86px);
  line-height: 1;
}

.about-image {
  grid-column: 1;
  grid-row: 2 / span 5;
  position: relative;
  align-self: start;
  width: 100%;
  height: 510px;
  background: var(--mainColor);
  overflow: hidden;
}

.about-image img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 81%;
  object-fit: contain;
  object-position: center bottom;
}

.about-image figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: var(--background1);
  font-size: 10px;
}

.about-section > p:not(.pull-quote) {
  grid-column: 2;
  margin: 0 0 18px;
  padding: 0 0 0 30px;
  border-left: 1px solid var(--borderColor);
  font-size: 18px;
  line-height: 1.55;
}

.about-section > .pull-quote {
  grid-column: 2;
  margin: 8px 0 0;
  padding-left: 30px;
  color: var(--mainColor);
  font-size: clamp(29px, 3.4vw, 54px);
  font-weight: 800;
  line-height: 1.13;
}

.about-photo-switch {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.about-image .about-photo-switch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.about-photo-one {
  animation: firstPicture 4s infinite;
}

.about-photo-two {
  animation: secondPicture 4s infinite;
}

@keyframes firstPicture {
  0%, 45%, 100% { opacity: 1; }
  50%, 95% { opacity: 0; }
}

@keyframes secondPicture {
  0%, 45%, 100% { opacity: 0; }
  50%, 95% { opacity: 1; }
}

/* 06 — WHAT I DO */

.what-i-do-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.what-i-do-section > .section-index,
.what-i-do-section > h2 {
  grid-column: 1 / -1;
}

.what-i-do-section > article {
  padding: 20px 30px 24px 0;
}

.what-i-do-section > article:nth-of-type(even) {
  padding-left: 28px;
  border-left: 1px solid var(--borderColor);
}

.what-i-do-section > article p {
  max-width: 48ch;
  font-size: 15px;
}

/* 07 — PROFILE / CV */

.cv-page {
  padding: 25px 3% 65px;
}

.cv-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 30px;
  background: white;
}

.profile-cover {
  position: relative;
  min-height: 335px;
  padding: 42px 240px 35px 20px;
}

.profile-cover .profile-edition {
  margin-bottom: 11px;
}

.profile-cover h1 {
  margin: 0 0 5px;
  font-size: clamp(64px, 7vw, 92px);
  line-height: 1;
  letter-spacing: -4px;
}

.profile-cover h2 {
  margin: 0 0 15px;
  font-size: clamp(29px, 3vw, 42px);
  letter-spacing: -1px;
}

.profile-cover p {
  max-width: 670px;
  margin-bottom: 7px;
  color: var(--secondaryText);
  font-size: 15px;
}

.cv-photo-frame {
  position: absolute;
  top: 42px;
  right: 18px;
  width: 190px;
  height: 238px;
  background: var(--mainColor);
  overflow: hidden;
}

.cv-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 22px;
}

.editorial-button,
.cv-actions button,
.cv-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--mainColor);
  border-radius: 0;
  background: var(--mainColor);
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s,
              border-color .2s,
              transform .2s;
}

.editorial-button.outline,
.cv-actions a {
  color: var(--textColor);
  background: transparent;
  border-color: var(--textColor);
}

.editorial-button:hover,
.cv-actions button:hover,
.cv-actions a:hover {
  background: var(--textColor);
  color: white;
  border-color: var(--textColor);
  transform: translateY(-2px);
}

.cv-section {
  display: grid;
  grid-template-columns: 25% minmax(0, 1fr);
  gap: 0 28px;
  padding: 25px 20px;
}

.cv-section > .section-index {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.cv-section > h2 {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin: 0;
  font-size: 25px;
  letter-spacing: -.5px;
}

.cv-section > article,
.cv-section > p,
.cv-section > ul,
.cv-section > ol,
.cv-section > h3,
.cv-section > blockquote,
.cv-section > dl {
  grid-column: 2;
}

.cv-section > p {
  max-width: 72ch;
  margin-bottom: 12px;
  color: var(--secondaryText);
  font-size: 15px;
}

.cv-section > h3 {
  margin: 17px 0 7px;
  font-size: 18px;
}

.cv-section > ul {
  margin: 0 0 14px;
  padding-left: 20px;
  columns: 2;
  list-style-type: square;
}

.cv-section li {
  margin-bottom: 7px;
  font-size: 14px;
  break-inside: avoid;
}

.cv-section article {
  padding: 11px 0;
}

.cv-section article h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.cv-section article p {
  max-width: 72ch;
  margin-bottom: 6px;
  color: var(--secondaryText);
  font-size: 14px;
}

.cv-section blockquote {
  margin: 5px 0 15px;
  padding: 10px 18px;
  border-left: 3px solid var(--mainColor);
  font-size: 20px;
  font-weight: 700;
}

.cv-section blockquote:hover {
  color: white;
  background: var(--mainColor);
}

/* 08 — PROJECTS PAGE */

.project-page-cover,
.contact-cover {
  padding: 60px 5%;
}

.project-page-cover {
  border-bottom: 1px solid var(--borderColor);
}

.project-page-cover h1,
.contact-cover h1 {
  margin-bottom: 16px;
  font-size: clamp(57px, 9vw, 124px);
  letter-spacing: -3px;
  text-shadow: 1px 2px 3px rgba(0, 0, 0, .12);
}

.project-page-cover h2,
.contact-cover h2 {
  max-width: 740px;
  font-size: clamp(24px, 3.2vw, 42px);
}

.project-page-cover p,
.contact-cover p {
  max-width: 700px;
}

.project-page-cover p {
  color: var(--secondaryText);
}

.project-browser-wrap {
  padding-top: 40px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -.04em;
}

.browser-caption {
  max-width: 38ch;
  color: var(--secondaryText);
  font-size: 14px;
}

.project-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding: 13px 14px;
  border: 1px solid var(--cardBorder);
  border-radius: 12px;
  background: white;
}

.toolbar-search {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--cardBorder);
  border-radius: 999px;
  background: var(--background1);
}

.toolbar-icon {
  font-size: 18px;
  color: var(--mainColor);
}

.toolbar-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline-offset: 2px;
  background: transparent;
  font-size: 14px;
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.toolbar-group select,
.icon-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--cardBorder);
  border-radius: 999px;
  background: white;
  color: var(--textColor);
  font-size: 13px;
  cursor: pointer;
}

.icon-button {
  font-weight: 700;
}

.toolbar-group select:hover,
.icon-button:hover {
  border-color: var(--mainColor);
}

.browser-status p {
  margin: 0 0 20px;
  color: var(--secondaryText);
  font-size: 13px;
}

.projects-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 22px;
  align-items: stretch;
  background: transparent;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: white;
  border: 1px solid var(--cardBorder);
  overflow: hidden;
  transition: transform .2s ease,
              box-shadow .2s ease,
              border-color .2s ease;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #c9c9c3;
}

.card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 180px;
  padding: 18px;
  background: #fafaf8;
  overflow: hidden;
}

.card-art img {
  max-width: 100%;
  max-height: 150px;
  height: auto;
  object-fit: contain;
}

.card-mark {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  color: var(--mainColor);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.card-art.no-image .card-mark,
.card-art.missing-media .card-mark {
  display: flex;
}

.card-art.missing-media img {
  display: none;
}

.work-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
}

.work-meta {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 10px;
  color: var(--mainColor);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.work-meta time {
  color: var(--secondaryText);
  text-align: right;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.work-card h3 {
  margin: 0 0 11px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.work-summary {
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--secondaryText);
}

.work-tools {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
}

.project-details {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--cardBorder);
  font-size: 13px;
}

.project-details summary {
  font-weight: 800;
  cursor: pointer;
}

.project-details p {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--secondaryText);
}

.detail-note {
  font-size: 12px;
}

.work-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--cardBorder);
}

.project-source {
  color: var(--mainColor);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.source-status {
  color: var(--secondaryText);
  font-size: 12px;
}

.permalink {
  color: var(--mainColor);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.empty-results {
  font-weight: 700;
}

/* 09 — CONTACT PAGE — ORIGINAL EDITORIAL STYLE */

.contact-cover {
  background: var(--mainColor);
  color: white;
}

.contact-cover .section-index,
.contact-cover p {
  color: white;
}

.page-contact .contact-cover {
  padding: 60px 5%;
}

.page-contact .contact-layout {
  display: block;
  padding: 8px 5% 60px;
}

.page-contact .contact-form-box,
.page-contact .contact-side-box {
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  gap: 0 35px;
  padding: 40px 0;
  border: 0;
  border-bottom: 1px solid var(--borderColor);
  background: transparent;
}

.page-contact .contact-form-box > .section-index,
.page-contact .contact-side-box > .section-index {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 16px;
}

.page-contact .contact-form-box > h2,
.page-contact .contact-side-box > h2 {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 43px);
  letter-spacing: -.04em;
}

.page-contact .contact-form {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 0;
  max-width: 650px;
}

.page-contact .contact-form label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
}

.page-contact .contact-form input,
.page-contact .contact-form textarea {
  width: 100%;
  margin-bottom: 19px;
  padding: 12px 6px;
  border: 0;
  border-bottom: 1px solid var(--borderColor);
  border-radius: 0;
  background: transparent;
  color: var(--textColor);
}

.page-contact .contact-form .editorial-button {
  justify-self: start;
  width: auto;
}

.page-contact .small-note {
  grid-column: 2;
  grid-row: 3;
  margin: 12px 0 0;
  max-width: 650px;
  color: var(--secondaryText);
  font-size: 12px;
}

.page-contact .contact-side-box > p,
.page-contact .contact-side-box > ul {
  grid-column: 2;
  max-width: 650px;
  margin: 0 0 14px;
  color: var(--secondaryText);
}

.page-contact .contact-side-box ul {
  padding-left: 20px;
}

/* 10 — FOOTER */

.site-footer {
  padding: 42px 5% 22px;
}

.footer-connect {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 24px;
}

.footer-kicker {
  color: var(--mainColor);
  font-size: 11px;
  font-weight: 700;
}

.footer-connect h2 {
  max-width: 790px;
  margin: 8px 0 14px;
  font-size: clamp(42px, 6vw, 84px);
  letter-spacing: -2px;
}

.footer-connect p {
  font-size: 13px;
}

.social-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding-left: 26px;
  border-left: 1px solid var(--borderColor);
}

.social-links a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.social-icon {
  margin-right: 9px;
  color: var(--mainColor);
}

.site-footer > p,
.site-footer > nav {
  font-size: 11px;
}

.site-footer > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 10px 0;
  padding: 12px 0;
}

.site-footer > nav a {
  text-decoration: none;
}

.footer-issue {
  color: var(--mainColor);
  font-weight: 700;
}

/* 11 — TABLETS */

@media (max-width: 1150px) {
  .main-nav {
    grid-template-columns: 1.55fr repeat(4, minmax(0, 1fr));
  }

  .main-nav .nav-volume {
    display: none;
  }

  .magazine-cover {
    grid-template-columns: 37% 41% 22%;
  }

  .hero-heading h1 {
    font-size: clamp(30px, 3.7vw, 45px);
  }

  .hero-fashion {
    height: 415px;
  }

  .sidebar-two {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .sidebar-three {
    grid-column: 3;
    grid-row: 3;
    margin-top: 10px;
  }

  .hero-sidebar {
    font-size: 11px;
  }

  .featured-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-section > .project-card {
    grid-row: auto;
  }

  .featured-section > .project-card:last-child {
    grid-column: 1 / -1;
    border-right: none;
  }

  .project-image {
    height: 170px;
  }
}

@media (max-width: 780px) {
  .magazine-cover {
    grid-template-columns: 40% 60%;
    grid-template-rows: auto auto auto auto auto;
  }

  .hero-fashion {
    grid-column: 1;
    grid-row: 1 / 3;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .hero-heading {
    grid-column: 2;
    grid-row: 1;
    margin: 25px 14px 15px calc(-1 * var(--headlineOverlap));
  }

  .hero-heading h1 {
    font-size: clamp(28px, 4.3vw, 38px);
  }

  .hero-intro {
    grid-column: 2;
    grid-row: 2;
    margin: 0 0 0 12px;
    padding-right: 0;
    border: none;
  }

  .sidebar-one {
    grid-column: 1;
    grid-row: 3;
    display: block;
    margin: 23px 13px 20px 0;
    border-left: none;
    border-right: none;
  }

  .sidebar-one > h2,
  .sidebar-one > p {
    padding-left: 0;
    border-left: none;
  }

  .sidebar-two {
    grid-column: 2;
    grid-row: 3;
    margin: 23px 0 20px;
  }

  .sidebar-three {
    grid-column: 1 / -1;
    grid-row: 4;
    display: block;
    margin: 0 0 18px;
    padding-top: 8px;
  }

  .edition-number {
    display: none;
  }

  .cover-folio {
    grid-row: 5;
  }

  .featured-section > .project-card {
    grid-row: auto;
  }

  .page-index .about-image {
    height: auto;
    aspect-ratio: 5 / 6;
    padding: 0;
  }

  .page-index .about-photo-switch {
    width: 100%;
    height: 100%;
  }

  .page-index .about-photo-switch img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .cv-content {
    padding: 0 10px;
  }

  .cv-section {
    grid-template-columns: 27% minmax(0, 1fr);
    gap: 0 20px;
  }

  .toolbar-search {
    flex-basis: 100%;
  }

  .toolbar-group {
    width: 100%;
  }
}

/* 12 — MOBILE */

@media (max-width: 620px) {
  .main-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .main-nav .brand {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--borderColor);
  }

  .main-nav > a:not(.brand) {
    padding: 12px 4px;
    text-align: center;
    font-size: 11px;
  }

  .magazine-cover {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
  }

  .hero-heading {
    order: 1;
    margin: 28px 18px 20px;
  }

  .hero-heading h1 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .hero-heading h1,
  .eyebrow {
    background: none;
    color: var(--textColor);
    -webkit-text-fill-color: var(--textColor);
  }

  .hero-fashion {
    order: 2;
    width: calc(100% - 36px);
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 18px;
  }

  .hero-fashion img {
    height: 94%;
    object-fit: contain;
    object-position: left bottom;
  }

  .hero-intro {
    order: 3;
    margin: 0;
    padding: 23px 18px;
    font-size: 15px;
    border: none;
  }

  .hero-sidebar {
    display: block;
    margin: 0;
    padding: 15px 18px;
    border: none;
    font-size: 13px;
  }

  .sidebar-one {
    order: 4;
  }

  .sidebar-one h2,
  .sidebar-one p {
    grid-column: auto;
    grid-row: auto;
  }

  .sidebar-two {
    order: 5;
  }

  .sidebar-three {
    order: 6;
  }

  .cover-folio {
    order: 7;
    padding: 17px 18px;
    font-size: 9px;
  }

  .issue-section {
    padding: 48px 18px;
  }

  .issue-section h2 {
    font-size: clamp(38px, 11vw, 60px);
  }

  .featured-section {
    grid-template-columns: 1fr;
    padding: 35px 0;
  }

  .featured-section > .section-index,
  .featured-section > h2,
  .featured-section > .section-intro {
    margin-right: 18px;
    margin-left: 18px;
  }

  .featured-section > h2 {
    font-size: 48px;
  }

  .featured-section > .featured-more {
    grid-row: 3;
    justify-self: start;
    margin: 0 18px 16px;
  }

  .featured-section > .section-intro {
    grid-row: 4;
  }

  .featured-section > .project-card {
    grid-column: 1;
    grid-row: auto;
    padding: 24px 18px;
    border: 0;
    border-top: 1px solid var(--borderColor);
  }

  .project-image {
    height: 185px;
  }

  .about-section {
    display: grid;
    grid-template-columns: 1fr;
    padding: 42px 18px;
  }

  .about-section > .section-index {
    grid-column: 1;
    grid-row: 1;
  }

  .about-section > h2 {
    grid-column: 1;
    grid-row: 2;
    padding: 22px 18px;
    font-size: clamp(46px, 11vw, 72px);
    z-index: 3;
  }

  .about-image {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    margin: 0;
    padding: 0;
  }

  .about-section > p:not(.pull-quote),
  .about-section > .pull-quote {
    grid-column: 1;
    padding-left: 0;
    border-left: none;
  }

  .about-section > p:not(.pull-quote) {
    font-size: 16px;
  }

  .what-i-do-section {
    display: block;
  }

  .what-i-do-section > article,
  .what-i-do-section > article:nth-of-type(even) {
    padding: 20px 0;
    border: none;
  }

  /* Project cards and filters */

  .project-toolbar {
    padding: 12px;
  }

  .toolbar-search {
    flex-basis: 100%;
  }

  .toolbar-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .toolbar-group select,
  .icon-button {
    width: 100%;
    min-width: 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-card {
    min-width: 0;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    margin-top: 10px;
  }

  .browser-caption {
    margin: 8px 0 0;
  }

  /* Profile */

  .cv-page {
    padding: 15px 10px 40px;
  }

  .cv-content {
    padding: 0 5px;
  }

  .profile-cover {
    min-height: 275px;
    padding: 28px 132px 30px 12px;
  }

  .profile-cover h1 {
    font-size: 57px;
  }

  .profile-cover h2 {
    font-size: 24px;
  }

  .profile-cover p {
    font-size: 12px;
  }

  .cv-photo-frame {
    top: 29px;
    right: 12px;
    width: 112px;
    height: 150px;
  }

  .cv-actions {
    padding: 0 12px 18px;
  }

  .cv-section {
    display: block;
    padding: 23px 12px;
  }

  .cv-section > h2 {
    margin-bottom: 15px;
  }

  .cv-section > ul {
    columns: 1;
  }

  /* Contact */

  .page-contact .contact-layout {
    padding: 0 18px 40px;
  }

  .page-contact .contact-form-box,
  .page-contact .contact-side-box {
    display: block;
    padding: 30px 0;
  }

  .page-contact .contact-form-box > h2,
  .page-contact .contact-side-box > h2 {
    margin: 10px 0 24px;
  }

  .page-contact .contact-cover {
    padding: 48px 18px;
  }

  .page-contact .contact-cover h1 {
    font-size: clamp(48px, 11vw, 70px);
  }

  .page-contact .contact-form {
    max-width: none;
  }

  /* Footer */

  .footer-connect {
    display: block;
  }

  .social-links {
    margin-top: 24px;
    padding: 18px 0;
    border-left: none;
  }
}

@media (max-width: 390px) {
  .toolbar-group {
    grid-template-columns: 1fr;
  }

  .profile-cover {
    padding: 20px 12px 12px;
  }

  .cv-photo-frame {
    position: static;
    width: 100px;
    height: 130px;
    margin-bottom: 12px;
  }
}

/* 13 — PRINT CV */

@page {
  size: A4;
  margin: 9mm;
}

@media print {
  .site-header,
  .site-footer,
  .cv-actions {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 9px;
    line-height: 1.15;
  }

  .cv-page {
    padding: 0 !important;
  }

  .cv-content {
    max-width: none;
    padding: 0;
    border: 0;
  }

  .profile-cover {
    min-height: 0;
    padding: 0 0 6px;
    border-bottom: 1px solid #777;
  }

  .profile-cover h1 {
    font-size: 25px;
    letter-spacing: 0;
    margin-bottom: 1px;
  }

  .profile-cover h2 {
    font-size: 17px;
    letter-spacing: 0;
    margin-bottom: 3px;
  }

  .profile-cover p {
    font-size: 9px;
    margin-bottom: 1px;
    line-height: 1.15;
  }

  .cv-photo-frame {
    display: none;
  }

  .cv-section {
    display: grid;
    grid-template-columns: 24% 1fr;
    gap: 0 12px;
    padding: 5px 0;
    border: 0;
    break-inside: avoid;
  }

  .cv-section .section-index {
    display: none;
  }

  .cv-section > h2 {
    grid-column: 1;
    grid-row: auto;
    font-size: 12px;
    margin: 0;
  }

  .cv-section > p,
  .cv-section > article,
  .cv-section > h3,
  .cv-section > ul {
    grid-column: 2;
  }

  .cv-section p,
  .cv-section li {
    font-size: 8.5px;
    line-height: 1.18;
    margin-bottom: 2px;
  }

  .cv-section h3,
  .cv-section article h3 {
    font-size: 10px;
    margin: 3px 0 2px;
  }

  .cv-section article {
    padding: 2px 0;
  }

  .cv-section ul {
    columns: 2;
    padding-left: 12px;
    margin: 0 0 4px;
  }

  .cv-section li {
    margin-bottom: 2px;
  }
}

/* 14 — REAL PORTRAIT SHAPE WRAPPING
   Keep this section.
   It is the successful version from your current CSS.
*/

.page-index .hero-silhouette {
  display: none;
}

@media (min-width: 621px) {
  @supports (shape-outside: url("images/id_picture.png")) {

    .page-index .magazine-cover {
      position: relative;
      grid-template-rows: minmax(290px, auto) auto auto auto;
    }

    .page-index .hero-fashion > img {
      display: none;
    }

    .page-index .hero-fashion figcaption {
      z-index: 6;
    }

    .page-index .hero-heading {
      position: absolute;
      grid-column: auto;
      grid-row: auto;
      top: 24px;
      left: 3%;
      width: 67.68%;
      margin: 0;
      padding: 0;
      z-index: 5;
      pointer-events: none;
    }

    .page-index .hero-heading .eyebrow {
      position: absolute;
      top: 19px;
      left: 47%;
      width: max-content;
      background: none;
      color: var(--textColor);
      -webkit-text-fill-color: var(--textColor);
    }

    .page-index .hero-silhouette {
      display: block;
      float: left;
      width: 23.88vw;
      height: auto;

      margin:
        clamp(0px, calc(440px - 31.85vw), 440px)
        10px 0 0;

      shape-outside: url("images/id_picture.png");
      shape-image-threshold: 0.1;
      shape-margin: 12px;
    }

    .page-index .hero-heading h1 {
      position: static;
      max-width: none;
      margin: 0;
      padding-top: 61px;
      font-size: clamp(34px, 3.45vw, 55px);
      line-height: 1.04;

      background: linear-gradient(
        to right,
        white 45.833%,
        var(--textColor) 45.833%
      );

      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
    }
  }
}

/* Tablets — keep silhouette wrapping */

@media (min-width: 781px) and (max-width: 1150px) {
  @supports (shape-outside: url("images/id_picture.png")) {

    .page-index .hero-heading {
      width: 73.32%;
    }

    .page-index .hero-silhouette {
      width: 26.8vw;

      margin-top: clamp(
        0px,
        calc(385px - 35.73vw),
        385px
      );
    }

    .page-index .hero-heading h1 {
      font-size: clamp(30px, 3.5vw, 45px);

      background: linear-gradient(
        to right,
        white 47.44%,
        var(--textColor) 47.44%
      );

      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
    }
  }
}

/* Small tablets — wrap while there is room */

@media (min-width: 621px) and (max-width: 780px) {
  @supports (shape-outside: url("images/id_picture.png")) {

    .page-index .magazine-cover {
      grid-template-rows: minmax(270px, auto) auto auto auto;
    }

    .page-index .hero-heading {
      width: 94%;
    }

    .page-index .hero-silhouette {
      width: 28.95vw;

      margin-top: clamp(
        0px,
        calc(385px - 38.6vw),
        385px
      );
    }

    .page-index .hero-heading h1 {
      padding-top: clamp(
        85px,
        calc(300px - 25vw),
        135px
      );

      font-size: clamp(25px, 4vw, 33px);

      background: linear-gradient(
        to right,
        white 40%,
        var(--textColor) 40%
      );

      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
    }
  }
}

/* 15 — REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================
   FINAL SMALL FIXES
   Existing editorial design preserved
   ========================================== */

/* 1 — Keep the red portrait panel proportional
   on desktop, including the shoulders */

@media (min-width: 781px) {
  .page-index .hero-fashion {
    height: auto;
    aspect-ratio: 1 / 1.08;
    min-height: 470px;
  }
}

/* 2 — Larger project cards on desktop
   instead of six small cards in a row */

@media (min-width: 1200px) {
  .page-projects .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .page-projects .card-art {
    min-height: 240px;
  }

  .page-projects .card-art img {
    max-height: 195px;
  }

  .page-projects .work-card-content {
    padding: 26px;
  }

  .page-projects .work-card h3 {
    font-size: clamp(26px, 2vw, 34px);
  }

  .page-projects .work-summary {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-projects .work-tools {
    font-size: 13px;
  }
}

/* Tablet: two cards, mobile: one card */

@media (min-width: 700px) and (max-width: 1199px) {
  .page-projects .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .page-projects .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 3 — More comfortable contact layout
   on large desktop screens */

@media (min-width: 1151px) {
  .page-contact .contact-form-box,
  .page-contact .contact-side-box {
    grid-template-columns: 27% minmax(0, 1fr);
    column-gap: clamp(30px, 4vw, 80px);
  }

  .page-contact .contact-form {
    width: 100%;
    max-width: 900px;
  }

  .page-contact .contact-form-box > h2,
  .page-contact .contact-side-box > h2 {
    font-size: clamp(38px, 3vw, 48px);
  }

  .page-contact .contact-side-box > p,
  .page-contact .contact-side-box > ul {
    font-size: 17px;
  }
}

/* 4 — Visible, professional form fields */

.page-contact .contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.page-contact .contact-form input,
.page-contact .contact-form textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #bdbdb6;
  border-radius: 3px;
  background: #ffffff;
  color: var(--textColor);
  font-size: 16px;
  transition: border-color .2s ease,
              box-shadow .2s ease;
}

.page-contact .contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.page-contact .contact-form input::placeholder,
.page-contact .contact-form textarea::placeholder {
  color: #757570;
  opacity: 1;
}

.page-contact .contact-form input:focus,
.page-contact .contact-form textarea:focus {
  border-color: var(--mainColor);
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 56, 49, .12);
}

.page-contact .contact-form .editorial-button {
  min-height: 48px;
  padding: 13px 25px;
}

/* ==============================================
   RESPONSIVE LAYOUT REPAIRS — NOVEMBER 2026
   Preserve original editorial design and wrap
   ============================================== */

/* FIX 1 — NAVIGATION */

/* Also hides any old Selected Stories link
   left behind on another page */
.main-nav > a[href$="#featured-title"] {
    display: none;
}

@media (min-width: 1151px) {
    .main-nav {
        grid-template-columns:
            1.55fr repeat(4, minmax(0, 1fr)) 1fr;
    }
}


/* FIX 2 — HEADLINE SPACING */

/* The JavaScript below calculates this variable
   from the real height of the headline. */

@media (min-width: 621px) {

    @supports (shape-outside: url("images/id_picture.png")) {

        .page-index .magazine-cover {
            grid-template-rows:
                var(--hero-title-track, 240px)
                auto auto auto auto;
        }

        .page-index .hero-heading h1 {
            line-height: 1.12;
            padding-bottom: 0.12em;
            overflow: visible;
        }

        .page-index .hero-intro {
            position: relative;
            z-index: 1;
            align-self: start;
        }
    }
}


/* FIX 3 — NARROW TABLETS */

/* Keep the portrait-shaped headline, but stop
   squeezing the paragraphs beside the red panel. */

@media (min-width: 621px) and (max-width: 780px) {

    @supports (shape-outside: url("images/id_picture.png")) {

        .page-index .hero-fashion {
            grid-column: 1;
            grid-row: 1;
        }

        .page-index .hero-intro {
            grid-column: 1 / -1;
            grid-row: 2;

            width: 100%;
            max-width: 70ch;

            margin: 0;
            padding: 20px 0 16px;
            border: none;
        }

        .page-index .sidebar-one {
            grid-row: 3;
        }

        .page-index .sidebar-two {
            grid-row: 3;
        }

        .page-index .sidebar-three {
            grid-row: 4;
        }

        .page-index .cover-folio {
            grid-row: 5;
        }
    }
}


/* FIX 4 — ABOUT ME RESPONSIVENESS */

/* Switch earlier, before the photograph becomes
   an awkward, narrow block beside the paragraphs. */

@media (max-width: 960px) {

    .page-index .about-section {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 42px max(18px, 4%);
    }

    .page-index .about-section > .section-index {
        order: 0;
    }

    /* Large, centered red portrait panel */

    .page-index .about-section > .about-image {
        order: 1;

        position: relative;
        flex: none;

        width: min(100%, 480px);
        height: auto;
        aspect-ratio: 5 / 6;

        margin: 0 auto 20px;
        overflow: hidden;

        background: var(--mainColor);
    }

    .page-index .about-image .about-photo-switch {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .page-index .about-image .about-photo-switch img {
        width: 100%;
        height: 100%;

        object-fit: contain;
        object-position: center bottom;
    }

    /* Heading moves underneath the portrait */

    .page-index .about-section > h2 {
        order: 2;

        position: static;
        align-self: stretch;

        margin: 5px 0 18px;
        padding: 0;

        color: var(--textColor);
        font-size: clamp(40px, 7vw, 65px);
        text-align: left;
        pointer-events: auto;
    }

    /* Paragraphs use the full available width */

    .page-index .about-section > p:not(.pull-quote) {
        order: 3;

        width: 100%;
        max-width: 70ch;

        margin: 0 0 16px;
        padding: 0;

        border: none;

        font-size: 16px;
        line-height: 1.6;
    }

    .page-index .about-section > .pull-quote {
        order: 4;

        margin: 8px 0;
        padding: 0;

        border: none;
    }
}

/* ==========================================
   FINAL RESPONSIVE HOME FIX
   Keep the existing portrait shape wrapping
   ========================================== */

/* Prevent the photo caption from stretching
   the grid column unexpectedly */
@media (min-width: 621px) {
  .page-index .hero-fashion {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* Headline colors and edition-label alignment */
@media (min-width: 621px) {
  @supports (shape-outside: url("images/id_picture.png")) {

    .page-index .magazine-cover {
      grid-template-rows:
        var(--hero-title-track, 260px)
        auto auto auto;
    }

    .page-index .hero-heading h1 {
      line-height: 1.12;
      padding-bottom: .11em;
      overflow: visible;

      /* Color changes at the ACTUAL red panel edge */
      background-image: linear-gradient(
        to right,
        #ffffff 0 var(--hero-ink-edge, 45.833%),
        var(--textColor) var(--hero-ink-edge, 45.833%) 100%
      ) !important;

      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
    }

    /* Edition label always stays outside the red panel */
    .page-index .hero-heading .eyebrow {
      top: 16px;
      left: var(--hero-edition-x, 47%);
      width: max-content;
      max-width: none;
      white-space: nowrap;

      background: none !important;
      color: var(--textColor) !important;
      -webkit-text-fill-color: var(--textColor) !important;
    }

    .page-index .hero-intro {
      position: relative;
      align-self: start;
      z-index: 2;
    }

    /* Caption is always attached to the red panel */
    .page-index .hero-fashion figcaption {
      position: absolute;
      bottom: 0;
      z-index: 7;
    }
  }
}

/* ==========================================
   TABLET LAYOUT
   Keep the portrait wrapping, move the intro
   below the red box before overlap begins
   ========================================== */

@media (min-width: 621px) and (max-width: 1100px) {
  @supports (shape-outside: url("images/id_picture.png")) {

    .page-index .magazine-cover {
      grid-template-columns: 40% 60%;
      grid-template-rows:
        var(--hero-title-track, 430px)
        auto auto auto auto;
    }

    .page-index .hero-fashion {
      grid-column: 1;
      grid-row: 1;
    }

    .page-index .hero-heading {
      width: 94%;
    }

    .page-index .hero-silhouette {
      width: clamp(190px, 29vw, 330px);
    }

    .page-index .hero-intro {
      grid-column: 1 / -1;
      grid-row: 2;
      width: 100%;
      max-width: 72ch;
      margin: 0;
      padding: 24px 0 16px;
      border: 0;
    }

    .page-index .sidebar-one {
      grid-column: 1;
      grid-row: 3;
      display: block;
      margin: 15px 12px 10px 0;
      padding: 12px 0;
      border: 0;
    }

    .page-index .sidebar-one > h2,
    .page-index .sidebar-one > p {
      padding: 0;
      border: 0;
    }

    .page-index .sidebar-two {
      grid-column: 2;
      grid-row: 3;
      margin: 15px 0 10px;
    }

    .page-index .sidebar-three {
      grid-column: 1 / -1;
      grid-row: 4;
      display: none;
    }

    .page-index .cover-folio {
      grid-column: 1 / -1;
      grid-row: 5;
    }
  }
}

/* ==========================================
   ABOUT ME — TITLE ALWAYS INSIDE RED BOX
   Photograph appears ABOVE the paragraphs
   on smaller screens
   ========================================== */

@media (max-width: 960px) {

  .page-index .about-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .page-index .about-section > .section-index {
    grid-column: 1;
    grid-row: 1;
  }

  .page-index .about-section > .about-image {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;

    width: min(100%, 480px);
    height: auto;
    aspect-ratio: 5 / 6;

    margin: 0 auto 24px;
  }

  /* Overlay the heading in the same grid cell
     as the red photo panel */

  .page-index .about-section > h2 {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    align-self: start;

    position: relative;
    z-index: 4;

    width: min(100%, 480px);
    margin: 0 auto;

    padding:
      clamp(14px, 3.5vw, 23px)
      clamp(16px, 3.5vw, 24px);

    color: #ffffff;
    font-size: clamp(38px, 7vw, 67px);
    line-height: 1;
    text-align: left;
    pointer-events: none;
  }

  .page-index .about-section > p:not(.pull-quote),
  .page-index .about-section > .pull-quote {
    grid-column: 1;
    width: 100%;
    max-width: 70ch;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
  }
}
