.profile-shell {
  max-width: 1760px;
}

.profile-page {
  padding-top: 70px;
}

.profile-section[id] {
  scroll-margin-top: 28px;
}

.profile-hero {
  min-height: 680px;
  padding: 110px 0 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-hero h1 {
  max-width: 1220px;
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 14rem);
  font-weight: 500;
  line-height: 0.78;
  text-transform: uppercase;
}

.profile-role {
  max-width: 760px;
  margin: 36px 0 0;
  color: var(--accent);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.55;
}

.profile-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  max-width: 1160px;
  margin-top: 68px;
}

.profile-intro p,
.profile-copy p,
.profile-wide-copy {
  margin: 0;
  color: var(--soft);
  font-size: 1.04rem;
  line-height: 1.82;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 84px;
  border: 1px solid var(--line);
}

.profile-metrics span {
  display: grid;
  min-height: 172px;
  align-content: space-between;
  gap: 28px;
  padding: 24px;
}

.profile-metrics span + span {
  border-left: 1px solid var(--line);
}

.profile-metrics strong {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  font-weight: 500;
  line-height: 0.95;
}

.profile-metrics small {
  max-width: 320px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.profile-panel,
.profile-section {
  padding: 86px 0;
  border-bottom: 1px solid var(--line);
}

.profile-two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.64fr) minmax(0, 1fr);
  gap: 72px;
}

.profile-two-column > *,
.profile-section-heading > * {
  min-width: 0;
}

.profile-panel h2,
.profile-section-heading h2 {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.8vw, 6.8rem);
  font-weight: 500;
  line-height: 0.9;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.profile-two-column h2 {
  font-size: clamp(2.85rem, 4.75vw, 5.7rem);
}

.profile-copy {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 24px;
}

.profile-section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-bottom: 46px;
}

.methodology-heading {
  margin-bottom: 58px;
}

.methodology-intro {
  display: grid;
  max-width: 780px;
  gap: 22px;
  min-width: 0;
}

.methodology-intro p,
.methodology-body p {
  margin: 0;
  color: var(--soft);
  font-size: 1.02rem;
  line-height: 1.82;
}

.methodology-subtitle {
  color: var(--accent) !important;
  font-size: 1.08rem !important;
  font-weight: 600;
  line-height: 1.55 !important;
}

.methodology-list {
  border-top: 1px solid var(--line);
}

.methodology-block {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr);
  gap: 72px;
  padding: 58px 0 64px;
  border-bottom: 1px solid var(--line);
}

.methodology-lead {
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
}

.methodology-number {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.methodology-lead h3 {
  max-width: 430px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.1vw, 5rem);
  font-weight: 500;
  line-height: 0.94;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.methodology-lead .methodology-subtitle {
  max-width: 360px;
  margin-top: 6px;
}

.methodology-body {
  display: grid;
  max-width: 820px;
  gap: 36px;
  min-width: 0;
  align-content: start;
}

.methodology-body > div {
  display: grid;
  gap: 16px;
}

.methodology-body h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.methodology-tools {
  color: var(--accent) !important;
  font-size: 0.9rem !important;
  font-weight: 600;
}

.methodology-focus {
  padding-top: 8px;
  color: var(--accent) !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.capability-grid,
.timeline-grid,
.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-grid article,
.timeline-grid article,
.work-list article {
  min-height: 260px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-list article {
  min-height: 320px;
}

.capability-grid h3,
.timeline-grid h3,
.work-list h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  font-weight: 500;
  line-height: 0.98;
}

.capability-grid p,
.timeline-grid p,
.work-list p,
.timeline-list p {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.work-list span,
.timeline-list span {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.work-list a {
  display: inline-flex;
  margin-top: 28px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.project-archive-intro {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.8;
}

.project-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.project-filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.project-filter-button:hover,
.project-filter-button:focus-visible,
.project-filter-button.is-active {
  border-color: rgba(222, 207, 181, 0.7);
  background: rgba(222, 207, 181, 0.08);
  color: var(--accent);
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-case-card {
  display: grid;
  min-height: 360px;
  align-content: start;
  gap: 18px;
  padding: 28px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.project-case-card:hover,
.project-case-card:focus-visible {
  background: rgba(222, 207, 181, 0.055);
  outline: 0;
  transform: translateY(-2px);
}

.project-case-number,
.project-case-type,
.project-case-role,
.project-case-cta {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-case-number {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 500;
  line-height: 0.9;
}

.project-case-card strong {
  display: block;
  max-width: 440px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.6vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.project-case-business {
  color: var(--soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.project-case-role {
  margin-top: auto;
  color: var(--muted);
  line-height: 1.55;
}

.project-case-cta {
  color: var(--accent);
}

.case-study-index {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 42px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.case-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.case-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
}

.case-modal-panel {
  position: relative;
  width: min(1480px, 100%);
  max-height: min(88vh, 980px);
  overflow: auto;
  border: 1px solid rgba(222, 207, 181, 0.28);
  background: rgba(5, 5, 5, 0.97);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(0.985);
  transition: transform 220ms ease;
}

.case-modal[aria-hidden="false"] .case-modal-panel {
  transform: translateY(0) scale(1);
}

.case-modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  margin-left: auto;
  padding: 18px 22px;
  border: 0;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.96);
  color: var(--accent);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.case-modal-content {
  padding: 34px clamp(26px, 5vw, 82px) 80px;
}

.case-study-header {
  display: grid;
  gap: 22px;
  max-width: 1120px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.case-study-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 8.2rem);
  font-weight: 500;
  line-height: 0.92;
}

.case-study-business {
  max-width: 720px;
  margin: 0;
  color: var(--soft);
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  line-height: 1.65;
}

.case-study-role {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.case-study-role span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-study-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--line);
}

.case-study-body section {
  min-height: 260px;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-study-body h3 {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-study-body p {
  margin: 0;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.82;
}

body.case-modal-open {
  overflow: hidden;
}

.concept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.concept-tags span {
  padding: 12px 15px;
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.timeline-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.timeline-list article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-list p {
  margin-top: 0;
}

@media (max-width: 960px) {
  .profile-intro,
  .profile-two-column,
  .profile-section-heading,
  .methodology-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-metrics,
  .capability-grid,
  .timeline-grid,
  .work-list,
  .project-card-grid,
  .case-study-body {
    grid-template-columns: 1fr;
  }

  .profile-metrics span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-case-card {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .profile-page {
    padding-top: 28px;
  }

  .profile-hero {
    min-height: auto;
    padding: 70px 0;
  }

  .profile-hero h1 {
    font-size: clamp(3.4rem, 17vw, 6rem);
  }

  .profile-panel,
  .profile-section {
    padding: 62px 0;
  }

  .profile-panel h2,
  .profile-section-heading h2 {
    font-size: clamp(2.3rem, 13vw, 4rem);
    overflow-wrap: anywhere;
  }

  .timeline-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .case-modal {
    padding: 0;
  }

  .case-modal-panel {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-right: 0;
    border-left: 0;
  }

  .case-modal-content {
    padding: 26px 18px 58px;
  }

  .case-study-body section {
    padding: 26px 0;
    border-right: 0;
  }
}
