:root {
  --bg: #f7f7f7;
  --panel: #f1f1f1;
  --panel-border: #e3e1de;
  --text: #151312;
  --muted: #5f5a55;
  --accent: #f05a28;
  --card: #ffffff;
  --card-border: #e6e2de;
  --tag-bg: #fff0e6;
  --tag-border: #f3c4aa;
  --link: #151312;
  --sidebar-top: 2rem;
  --hero-h1-size: clamp(3rem, 7vw, 8rem);
  --logo-size: var(--hero-h1-size);
  --logo-gap: 0.75rem;
  --main-pad-x: 5.143rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Keep 100% to respect user font settings while establishing a stable base. */
  font-size: 100%;
}

body {
  font-family: "DM Sans", sans-serif;
  background:
    linear-gradient(
      127deg,
      #fdeff0 0%,
      #f7eeea 25%,
      #f3ece9 50%,
      #ececec 75%,
      #f3f3f3 100%
    );
  color: var(--text);
  /* Body text stays calm and readable across sizes. */
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  border: 20px solid #ffffff;
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  text-transform: uppercase;
}

.page {
  display: grid;
  grid-template-columns: minmax(220px, 20%) 1fr;
  min-height: 100vh;
}

.cover-letter-page {
  grid-template-columns: 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 5rem var(--main-pad-x) 5rem var(--main-pad-x);
  border-right: 20px solid #ffffff;
  overflow: hidden;
}

.logo {
  height: calc(var(--hero-h1-size) * 0.75);
  width: auto;
  color: var(--text);
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.name {
  /* Slightly emphasized but not headline-sized. */
  font-size: 1.143rem;
  font-weight: 600;
  margin-bottom: 1.286rem;
}

.navigation > ul {
  list-style: none;
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  padding-top: 1rem;
}

.navigation li {
  list-style: none;
}

.navigation > ul > li > a,
.navigation summary > span {
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 700;
  color: #000000;
  line-height: 1;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color 0.2s ease-in, text-decoration-color 0.2s ease-in;
}

.navigation details {
  margin: 0;
}

.navigation summary {
  list-style: none;
  cursor: pointer;
}

.navigation summary::-webkit-details-marker {
  display: none;
}

.navigation details > ul {
  list-style: none;
  display: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.navigation details[open] > ul {
  display: grid;
}

.navigation li.is-active details > ul {
  display: grid;
}

.navigation details > ul a {
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 700;
  color: #000000;
  line-height: 1;
  text-transform: uppercase;
  font-style: italic;
  text-decoration: none;
  transition: color 0.2s ease-in, text-decoration-color 0.2s ease-in;
}

.navigation > ul > li > a:hover,
.navigation > ul > li > a:focus-visible,
.navigation summary > span:hover,
.navigation summary > span:focus-visible,
.navigation details > ul a:hover,
.navigation details > ul a:focus-visible {
  color: #f05a28;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.08em;
}

.navigation .is-active > a,
.navigation .is-active > summary > span {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.08em;
}

.navigation details > ul .is-active > a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.08em;
}

.main {
  padding: 5rem var(--main-pad-x) 5rem var(--main-pad-x);
  max-width: none;
  width: 100%;
  overflow-x: hidden;
}

.cover-letter-main {
  max-width: 960px;
  margin: 0 auto;
}

.cover-letter-logo {
  width: calc(var(--hero-h1-size) * 0.6);
  display: inline-block;
  margin-bottom: 2rem;
}

.cover-letter-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.cover-letter-contact {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.cover-letter-contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in, text-decoration-color 0.2s ease-in;
}

.cover-letter-contact a:hover,
.cover-letter-contact a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.08em;
}

.mobile-logo {
  display: none;
  width: calc(var(--hero-h1-size) * 0.75);
  margin: 0 0 1.5rem 0;
}

.mobile-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.nav-toggle {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--accent);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  display: block;
  width: 1.4rem;
  height: 0.15rem;
  background: var(--accent);
  position: relative;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.nav-toggle-label span::before {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(90deg);
}

.nav-toggle-label span::after {
  display: none;
}

.nav-toggle:checked + .nav-toggle-label span {
  transform: rotate(765deg);
}

.nav-toggle:checked + .nav-toggle-label span::before {
  transform: rotate(90deg);
}

.nav-toggle:checked + .nav-toggle-label span::after {
  display: none;
}

@media (max-width: 1400px) and (min-width: 901px) {
  .sidebar {
    padding-left: clamp(1.5rem, 3vw, 5.143rem);
    padding-right: clamp(1.5rem, 3vw, 5.143rem);
  }
}

@media (max-width: 1200px) {
  .work-grid {
    gap: 2rem;
  }

  .about-paras,
  .about-columns {
    grid-template-columns: 1fr;
  }

  .contact-links {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .case-meta {
    grid-template-columns: 1fr !important;
  }

}

@media (max-width: 900px) {
  .mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4rem;
    display: flex;
    align-items: center;
    padding: 0 1.5rem 0 calc(1.5rem + 2.75rem + 0.75rem);
    background: var(--bg);
    border-bottom: 1px solid #ffffff;
    z-index: 15;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .mobile-topbar-logo {
    height: 2.75rem;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .mobile-topbar-logo img {
    height: 100%;
    width: auto;
    display: block;
  }

  body.is-scrolled .nav-toggle-label {
    top: 0.625rem;
  }

  body.is-scrolled .mobile-topbar {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.is-scrolled .mobile-topbar-logo {
    opacity: 1;
    transform: translateY(0);
  }

  body.is-scrolled .mobile-logo {
    opacity: 0;
    transform: translateY(-0.5rem);
  }

  .page {
    grid-template-columns: 1fr;
  }

  .logo {
    display: none;
  }

  .mobile-logo {
    display: block;
    width: 37.5vw;
    max-width: 320px;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    max-width: none;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    background: var(--bg);
    z-index: 20;
    padding: 4rem 2rem;
    overflow-y: auto;
  }

  .main {
    max-width: none;
    --main-pad-x: 1.5rem;
    padding: 6rem var(--main-pad-x) 2rem var(--main-pad-x);
  }

  .nav-toggle-label {
    display: inline-flex;
    z-index: 40;
  }

  .nav-toggle:checked ~ .page .sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navigation > ul > li > a,
  .navigation summary > span,
  .navigation details > ul a {
    font-size: clamp(2.2rem, 10vw, 4rem) !important;
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.2rem) !important;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .hero p {
    font-size: clamp(1.4rem, 6vw, 2.3rem) !important;
    line-height: 1.3;
    text-align: left !important;
    text-align-last: left !important;
  }

  .main .hero p {
    font-size: clamp(1.4rem, 6vw, 2.3rem) !important;
  }

  .main p,
  .main li {
    text-align: left !important;
    text-align-last: auto !important;
  }

  .work.panel h2,
  .about.panel h2,
  .contact.panel h2 {
    font-size: clamp(1.75rem, 2.25vw, 2.75rem);
  }

  .work.panel,
  .about.panel,
  .contact.panel {
    padding: 2.5rem 0;
  }

  .main > section {
    padding: 26px 0;
    margin-bottom: 15px;
  }

  .main > section::after {
    bottom: -15px;
    height: 15px;
  }

  .about p,
  .project-entry p,
  .ask-helper {
    font-size: clamp(1.4rem, 6vw, 2.3rem) !important;
  }

  .about-paras {
    grid-template-columns: 1fr;
  }

  .about-paras-left {
    flex-direction: column;
  }

  .ask-helper,
  .ask-chips {
    max-width: 100%;
  }
}

@media (min-width: 901px) {
  .mobile-topbar {
    display: none;
  }
}

@media (max-width: 700px) {
  .navigation > ul > li > a,
  .navigation summary > span,
  .navigation details > ul a {
    width: 100%;
  }

  .case-study-header h1 {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  .case-section p,
  .case-section li {
    font-size: 1.25rem;
  }

  .about p,
  .project-entry p,
  .ask-helper {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .about ul,
  .contact-links {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-top: 2.5rem;
  }
}


@media (max-width: 600px) {
  body {
    border-width: 12px;
  }
}

@media (max-width: 420px) {
  body {
    border-width: 8px;
  }

  .navigation > ul > li > a,
  .navigation summary > span,
  .navigation details > ul a {
    font-size: 1.4rem;
  }
}

.hero {
  /* Control line length for comfortable reading. */
  width: 100%;
  margin-top: 0;
  margin-bottom: 2rem;
}

#home {
  padding-bottom: 5rem;
}

.main > section {
  position: relative;
  padding: 35px 0;
  margin-bottom: 20px;
}

.main > section::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--main-pad-x));
  right: calc(-1 * var(--main-pad-x));
  bottom: -20px;
  height: 20px;
  background: #ffffff;
}

.main > .hero {
  padding-top: 0;
}

.main > section.case-media {
  padding-bottom: 0;
  margin-bottom: 2.5rem;
}

.case-media + .case-study-body {
  padding-top: 0;
}

.main > section.case-media::after {
  display: none;
}

.main > section:last-of-type::after {
  display: none;
}

.main > section:last-of-type {
  margin-bottom: 0;
}

.hero h1 {
  /* The positioning statement is the primary heading in the main column. */
  font-size: clamp(2.75rem, 6vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 0.35rem;
}

#intro h1 {
  white-space: normal;
  overflow-wrap: break-word;
}

.hero h2 {
  /* Match the panel h2 scale (e.g. "work") for consistent hierarchy. */
  font-size: clamp(1.4rem, 1.8vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hero .hero-subhead {
  text-transform: none;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.hero p {
  /* Body copy remains stable for readability. */
  font-size: clamp(1.4rem, 1.8vw, 2.2rem);
  font-weight: 300;
  color: var(--text);
  width: 100%;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: none;
  margin-bottom: 0.85rem;
}

.hero-inline-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0;
  margin: 0;
  font-size: 1.35rem;
}

.hero-inline-list li {
  flex: 1 1 calc((100% - 3rem) / 3);
}

@media (max-width: 700px) {
  .hero-inline-list li {
    flex-basis: 100%;
  }
}

.current-role {
  font-style: normal;
  font-weight: 300;
}

.hero-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease-in, text-decoration-color 0.2s ease-in;
}

.hero-link:hover,
.hero-link:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.08em;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 0.5rem;
  padding: 5rem 1.429rem 5rem 1.429rem;
  margin-top: 1.429rem;
}

.cover-letter {
  display: grid;
  gap: 1.5rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
}

.cover-letter p {
  font-size: 1.35rem;
  line-height: 1.6;
}

.work.panel,
.about.panel,
.contact.panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 5rem 0;
}

.contact.panel {
  padding-bottom: 0;
}

.panel h2 {
  /* Match hero subtitle scale for consistent hierarchy. */
  font-size: clamp(1.4rem, 1.8vw, 2.2rem);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-actions {
  display: flex;
  gap: 0.429rem;
}

.panel-actions .dot {
  width: 0.286rem;
  height: 0.286rem;
  background: #b3adaa;
  border-radius: 50%;
  display: inline-block;
}

.work-intro {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  max-width: 50%;
}

.ask-helper {
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  max-width: 50%;
}

.ask-chips {
  max-width: 50%;
}

.work-subsection-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 2rem;
  margin-top: 80px;
}

@media (max-width: 900px) {
  .ask-helper,
  .ask-chips {
    max-width: 100%;
  }

  .ask-helper {
    font-size: 1.35rem !important;
  }

  .work-subsection-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
  }
}

.project-list {
  display: flex;
  flex-direction: column;
}

.project-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2.5rem 0;
}

.project-entry:first-child {
  padding-top: 0;
}

.project-entry + .project-entry {
  border-top: 2px solid var(--accent);
}

.project-entry h3 {
  font-size: clamp(1.2rem, 1.6vw, 2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s ease-in, text-decoration-color 0.2s ease-in;
}

.project-link {
  color: inherit;
  text-decoration: none;
}

.project-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project-entry p {
  font-size: 1.35rem;
  transition: color 0.2s ease-in;
  max-width: 72ch;
}

@media (max-width: 900px) {
  .project-entry p {
    font-size: 1.35rem !important;
  }
}


.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 1;
  margin: 0;
  padding: 0.3rem 0.6rem;
  border: none;
  border-radius: 3px;
  background: var(--tag-bg);
}

.project-entry:hover h3 {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.08em;
}

.project-entry:hover p {
  color: var(--accent);
}

.read-more {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease-in, text-decoration-color 0.2s ease-in;
}

.read-more:hover,
.read-more:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.about h2 {
  margin-bottom: 0.714rem;
}

.about p {
  font-size: 1.35rem;
  color: var(--text);
  max-width: 72ch;
  line-height: 1.3;
  margin-bottom: 0.714rem;
}

@media (max-width: 900px) {
  .about p {
    font-size: 1.35rem !important;
  }
}

.about-photo {
  width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 63% 37% 48% 52% / 42% 58% 44% 56%;
  overflow: hidden;
  margin: 0;
  flex-shrink: 0;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-paras {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.about-paras .about-photo {
  flex-shrink: 0;
}

.about-intro-text {
  flex: 1;
  margin-bottom: 0.714rem;
}


.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (max-width: 1200px) {
  .about-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .about-paras {
    flex-direction: column;
  }

  .about-photo {
    width: 50%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }
}

.about-columns > div > p {
  font-size: 1.35rem;
}

@media (max-width: 900px) {
  .about-columns > div > p {
    font-size: 1.35rem !important;
  }
}

.about h3 {
  /* Fixed scale for subheads to prevent jitter. */
  font-size: clamp(1.2rem, 1.6vw, 2rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.429rem;
}

.about ul {
  list-style: none;
  margin-left: 0;
  color: var(--text);
  font-size: 1.35rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  line-height: 1.3;
}

.about li {
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: flex-start;
}

.about ul + p {
  margin-top: 1.5rem;
}

.list-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.about-columns .list-icon {
  width: 24px;
  height: 24px;
  margin-top: 0.1em;
}

.contact-links .list-icon {
  width: 50px;
  height: 50px;
}

.contact h2 {
  margin-bottom: 0.714rem;
}

.contact-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.35rem;
}

.contact-links li {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.contact-links a,
.contact-links li > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted);
  font-weight: 300;
  text-transform: none;
  line-height: 1.2;
  text-decoration: none;
}

.contact-links a {
  transition: color 0.2s ease-in, text-decoration-color 0.2s ease-in;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.08em;
}

.contact-links--plain {
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.contact-links--plain li {
  display: block;
}

.contact-links--plain a,
.contact-links--plain li > span {
  display: block;
  font-size: 1.1rem;
}

.case-study-header h1 {
  font-size: clamp(2.75rem, 6vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.profile-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.print-monogram {
  display: none;
  width: 48px;
  height: auto;
}

.print-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: lowercase;
  cursor: pointer;
}

.print-button:hover,
.print-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.print-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.case-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}

.case-summary,
.case-impact {
  font-size: clamp(1.2rem, 1.5vw, 1.8rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.case-summary-impact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.case-study-body {
  margin-top: 0;
}

.case-sections-grid {
  column-count: 2;
  column-gap: 4rem;
}

.case-sections-grid .case-section {
  margin-top: 0;
  margin-bottom: 5rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.case-media-grid {
  display: flex;
  gap: 1rem;
}

.case-media-box {
  flex: 1;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.main > .profile-body {
  padding: 40px 0;
}

.main > .profile-footer {
  padding-top: 40px;
  padding-bottom: 0;
}

.case-media {
  min-height: 240px;
  border-radius: 0.5rem;
  margin-bottom: 0;
}

.case-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.case-media:empty {
  display: none;
}

.case-section h2,
.case-section h3 {
  font-size: clamp(1.4rem, 1.8vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.case-section h3 {
  text-transform: uppercase;
}

.case-section p,
.case-section li {
  font-size: 1.5rem;
  line-height: 1.2;
}

.case-section p + p {
  margin-top: 1.25rem;
}

.case-section ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.case-section {
  margin-top: 5rem;
}

.case-section:first-of-type {
  margin-top: 0;
}

.case-kicker {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.case-standfirst {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 62ch;
  margin: 1rem 0 1.5rem;
}

.case-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  margin-bottom: 3rem;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.case-byline-author {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.case-byline .tags {
  margin: 0;
}

.case-impact-line {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 3rem;
}

.case-impact-line .case-label {
  margin-bottom: 0.4rem;
}

.case-impact-line p {
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
}

.case-sections-grid--broadsheet {
  column-rule: 1px solid var(--panel-border);
}

.case-pullquote {
  column-span: all;
  margin: 1rem 0 3rem;
  padding: 1.75rem 0;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
  max-width: 48rem;
}

@media (max-width: 700px) {
  .case-byline {
    gap: 0.5rem 1rem;
  }
}

.case-inline-media {
  column-span: all;
  margin: 1rem 0 3rem;
}

.case-inline-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 700px) {
  .case-inline-media img {
    height: 220px;
  }
}

/* Editorial variant: single full-width stacked column. Text blocks and the
   opening image run edge to edge; the pull-quote and supporting images break
   the column at 75% width, centered, for rhythm. */

.main--editorial .case-standfirst {
  font-weight: 300;
  line-height: 1.5;
}

.main--editorial .case-impact-line {
  border-left: 0;
  padding-left: 0;
}

.main--editorial .case-impact-line p {
  font-weight: 300;
  line-height: 1.5;
}

.main--editorial .case-sections-grid {
  display: block;
  column-count: 1;
  max-width: none;
}

.main--editorial .case-sections-grid--broadsheet {
  column-rule: none;
}

.main--editorial .case-section {
  max-width: none;
  margin-top: 0;
}

.main--editorial .case-section p {
  font-weight: 300;
  line-height: 1.65;
}

.main--editorial .case-section p + p {
  margin-top: 1.5rem;
}

.main--editorial .case-pullquote {
  max-width: none;
  width: 75%;
  margin: 3rem auto;
  padding: 1.75rem 0;
  font-weight: 300;
  line-height: 1.4;
  text-align: center;
}

.main--editorial .case-inline-media {
  max-width: none;
  width: 100%;
  margin: 1rem 0 3rem;
}

.main--editorial .case-inline-media--narrow {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.main--editorial .case-inline-media img {
  height: 420px;
}

.main--editorial .case-inline-media--natural {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.main--editorial .case-inline-media--natural img {
  height: auto;
}

@media (max-width: 900px) {
  .main--editorial .case-pullquote,
  .main--editorial .case-inline-media--narrow,
  .main--editorial .case-inline-media--natural {
    width: 100%;
  }
}


.profile-header .profile-meta {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0;
}

.profile-body .profile-entry {
  margin-top: 3rem;
}

.profile-body .profile-entry:first-of-type {
  margin-top: 1.5rem;
}

.profile-footer .profile-entry + .profile-entry {
  margin-top: 1.5rem;
}

.profile-entry .profile-company {
  font-size: clamp(1.3rem, 1.9vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.profile-entry .profile-tenure {
  font-weight: 500;
  color: var(--muted);
}

.profile-role {
  margin-top: 1.5rem;
}

.profile-role-title {
  font-size: clamp(1.2rem, 1.7vw, 1.7rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-meta {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.profile-entry ul {
  margin-top: 0.75rem;
}

@media (max-width: 900px) {
  .case-summary-impact {
    grid-template-columns: 1fr;
  }

  .case-sections-grid {
    column-count: 1;
  }

  .case-media-grid {
    flex-direction: column;
  }

  .case-media-box {
    flex: none;
    width: 100%;
    height: 220px;
  }
}

@media (max-width: 900px) {
  .work.panel,
  .about.panel,
  .contact.panel {
    padding: 2.5rem 0 !important;
  }

  .contact.panel {
    padding-bottom: 0 !important;
  }

  #home {
    padding-bottom: 2.5rem;
  }

  .main {
    padding-bottom: 2rem !important;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html {
    font-size: 45%;
  }

  body {
    background: #ffffff;
    border: 0;
    margin: 0;
  }

  .sidebar,
  .mobile-topbar,
  .mobile-logo,
  .nav-toggle,
  .nav-toggle-label {
    display: none !important;
  }

  .page {
    display: block;
    min-height: auto;
  }

  .main {
    padding: 0;
    min-height: auto;
  }

  .main > section::after {
    display: none;
  }

  .main > section {
    margin-bottom: 0;
    padding-bottom: 1rem;
  }

  .case-study-body {
    margin-top: 4px;
  }

  .main > .profile-header {
    padding-bottom: 8px;
  }

  .main > .profile-body {
    padding: 8px 0;
  }

  .main > .profile-footer {
    padding-top: 8px;
  }

  .case-section {
    margin-top: 1.5rem;
    page-break-inside: auto;
  }

  .profile-entry {
    margin-top: 1.5rem;
    page-break-inside: auto;
  }

  .profile-company,
  .profile-role-title {
    break-after: avoid;
  }

  .profile-body .profile-entry:first-of-type {
    margin-top: 0.75rem;
  }

  .profile-footer .case-section {
    margin-top: 4rem;
  }

  .profile-footer p,
  .profile-footer li {
    margin-top: 0.35rem;
  }

  .profile-footer .profile-entry + .profile-entry {
    margin-top: 1.25rem;
  }

  .print-button {
    display: none;
  }

  .print-monogram {
    display: block;
  }

  .contact-links .list-icon {
    width: 25px;
    height: 25px;
  }
}
.main > .profile-header {
  padding-top: 0;
  padding-bottom: 40px;
}
