/* Editorial resume: white canvas, selective accent gradients, square corners. */
:root {
  --ed-rule: color-mix(in srgb, var(--accent) 35%, #fff);
  --ed-ink: #171b19;
  --ed-text-size: 16px;
  --ed-caption-size: 14px;
  --ed-gradient-band: linear-gradient(110deg, color-mix(in srgb, var(--accent) 18%, #fff) 0%, color-mix(in srgb, var(--accent) 8%, #fff) 45%, #fff 95%);
  --ed-gradient-panel: linear-gradient(135deg, color-mix(in srgb, var(--accent) 11%, #fff) 0%, color-mix(in srgb, var(--accent) 4%, #fff) 48%, #fff 100%);
}

.ed-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  grid-template-areas: "identity portrait" "alternatives portrait" "contacts contacts";
  margin: 34px 0 72px;
  border: 1px solid var(--ed-rule);
  color: var(--ed-ink);
  background: #fff;
}
.ed-identity {
  grid-area: identity;
  padding: 38px 38px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
.ed-name {
  font-size: clamp(60px, 7.7vw, 104px);
  font-weight: 720;
  line-height: .96;
  letter-spacing: -.065em;
}
.ed-role, .ed-contact-cta {
  padding: 9px 15px;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
}
.ed-role {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}
.ed-role-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: max-content; align-items: stretch; gap: 12px; min-width: 0; }
@container (max-width: 500px) {
  .ed-role-actions { grid-template-columns: minmax(0, 1fr); }
}
.ed-contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.ed-contact-cta-arrow { display: block; width: 1.25em; height: 1.25em; overflow: visible; transition: transform 180ms ease; }
.ed-contact-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) {
  .ed-contact-cta:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px currentColor; }
  .ed-contact-cta:hover .ed-contact-cta-arrow { transform: translate(3px, -3px); }
}
.ed-contact-cta:active { transform: translateY(0); box-shadow: inset 0 0 0 1px currentColor; }
.ed-alternatives {
  grid-area: alternatives;
  border-top: 1px solid var(--ed-rule);
  padding: 24px 38px 28px;
  display: flex;
  align-items: center;
  font-size: var(--ed-text-size);
  line-height: 1.65;
  color: var(--muted);
}
.ed-alternatives p { max-width: 540px; }
.ed-hero-buttons { display: contents; }
.ed-pdf-cta, .ed-desktop-label { display: none; }
.ed-position-list { display: inline; padding: 0; margin: 0; list-style: none; }
.ed-position-list li { display: inline; }
.ed-position-list li:not(:last-child)::after { content: ", "; }
.ed-alternatives-break, .ed-desktop-break { display: none; }
@media screen and (min-width: 1101px) {
  .ed-alternatives p { max-width: none; }
  .ed-alternatives-break, .ed-desktop-break { display: inline; }
  .ed-hero {
    position: relative;
    grid-template-areas: "name portrait" "role portrait" "alternatives portrait" "actions portrait" "contacts contacts";
    grid-template-rows: auto auto auto 1fr auto;
  }
  .ed-hero .ed-identity,
  .ed-hero .ed-role-row,
  .ed-hero .ed-role-actions { display: contents; container-type: normal; }
  .ed-name { grid-area: name; padding: 38px 38px 0; }
  .ed-hero .ed-role {
    grid-area: role;
    margin: 28px 38px 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ed-ink);
    font-size: 24px;
    font-weight: 650;
    line-height: 1.3;
  }
  .ed-alternatives { padding: 14px 38px 0; border-top: 0; }
  .ed-mobile-label { display: none; }
  .ed-desktop-label { display: inline; }
  .ed-position-list { display: block; margin-top: 8px; }
  .ed-position-list li { display: block; position: relative; padding-left: 17px; }
  .ed-position-list li + li { margin-top: 3px; }
  .ed-position-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
  }
  .ed-position-list li::after { content: none !important; }
  .ed-hero-buttons {
    grid-area: actions;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: max-content;
    min-width: 501.6px; /* Two 244.8px buttons (+20%), with the same 12px gap. */
    gap: 12px;
    align-self: end;
    margin: 26px 38px 34px;
  }
  .ed-pdf-cta { display: inline-flex; background: var(--accent); color: #fff; }
  .ed-pdf-cta:hover { filter: brightness(1.1); }
  .ed-pdf-cta:hover .ed-contact-cta-arrow { transform: translateY(2px); }
  .ed-hero .ed-role-row > .ed-emblem {
    position: absolute;
    top: 46px;
    right: calc(100% / 2.65 + 38px);
  }
}
.ed-portrait {
  grid-area: portrait;
  border-left: 1px solid var(--ed-rule);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.ed-photo-frame { position: relative; width: 100%; min-height: 460px; flex: 1; }
.ed-photo-frame img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center top;
}
.ed-corner { position: absolute; width: 10px; height: 10px; background: var(--accent); }
.ed-corner-tl { top: -5px; left: -5px; }
.ed-corner-tr { top: -5px; right: -5px; }
.ed-corner-bl { bottom: -5px; left: -5px; }
.ed-corner-br { bottom: -5px; right: -5px; }
.ed-contact-strip {
  grid-area: contacts;
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(0, 3.2fr) minmax(190px, 1fr);
  border-top: 1px solid var(--ed-rule);
}
.ed-contact {
  min-width: 0;
  padding: 20px 24px;
  font-size: var(--ed-caption-size);
  line-height: 1.8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: .3em;
}
.ed-contact + .ed-contact { border-left: 1px solid var(--ed-rule); }
.ed-contact-methods { gap: 10px 20px; }
.ed-language-list { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ed-contact a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.ed-contact-token { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; white-space: nowrap; }
.ed-contact-icon { display: block; width: 21.6px; height: 21.6px; flex: 0 0 21.6px; color: var(--accent); }
.ed-language-flag { display: block; flex: 0 0 22px; }

.ed-section { margin-bottom: 64px; }
.ed-section-head { display: flex; align-items: center; margin-bottom: 24px; }
.ed-section-label {
  color: #fff;
  border: 1px solid var(--accent);
  background: var(--accent);
  padding: 13px 22px 12px;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.ed-heading-rule { height: 1px; background: var(--ed-rule); flex: 1; margin-left: 22px; }
.ed-education-board { display: grid; grid-template-columns: 1.25fr 1fr; border: 1px solid var(--ed-rule); }
.ed-degree, .ed-internship { padding: 32px 36px; }
.ed-degree { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.ed-degree-copy { display: block; font-size: var(--ed-text-size); line-height: 1.65; }
.ed-degree-heading { display: contents; }
.ed-degree-year { display: none; }
.ed-school { display: block; font-size: 48px; line-height: 1.1; letter-spacing: -.055em; font-weight: 650; margin-bottom: 16px; }
.ed-punctuation { font-size: var(--ed-caption-size); font-weight: 400; }
.ed-score { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: var(--ed-caption-size); line-height: 1.2; }
.ed-score-arrow { position: relative; flex: 0 1 64px; min-width: 20px; height: 1.5px; background: currentColor; }
.ed-score-arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.ed-score strong { flex-shrink: 0; font-size: 65px; font-weight: 500; letter-spacing: -.065em; margin-left: auto; }
.ed-internship { border-left: 1px solid var(--ed-rule); font-size: var(--ed-text-size); line-height: 1.65; }
.ed-internship-title { display: block; font-size: 23px; font-weight: 550; line-height: 1.4; letter-spacing: -.025em; margin-bottom: 18px; }
.ed-courses { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ed-rule); }
.ed-course { padding: 25px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 195px; }
.ed-course + .ed-course { border-left: 1px solid var(--ed-rule); }
.ed-course-copy { font-size: var(--ed-text-size); line-height: 1.65; }
.ed-course-year { font-size: 27px; line-height: 1; letter-spacing: -.04em; color: var(--accent); font-weight: 500; }

.ed-experience-board { border: 1px solid var(--ed-rule); }
.ed-job { display: grid; grid-template-columns: 265px minmax(0, 1fr); }
.ed-job + .ed-job { border-top: 1px solid var(--ed-rule); }
.ed-job-period { position: relative; display: block; padding: 31px 28px; color: var(--accent); font-size: 31px; font-weight: 500; line-height: 1.3; letter-spacing: -.045em; white-space: nowrap; }
.ed-job-period small { display: block; margin-top: 7px; font-size: var(--ed-caption-size); font-weight: 400; letter-spacing: 0; }
.ed-job-copy { display: block; padding: 30px 36px; border-left: 1px solid var(--ed-rule); font-size: var(--ed-text-size); line-height: 1.65; }
.ed-job-title { font-size: 23px; line-height: 1.4; font-weight: 550; letter-spacing: -.025em; }
.ed-job-detail { display: block; color: var(--muted); margin-top: 9px; }

.ed-group-heading { font-size: 25px; font-weight: 550; line-height: 1.4; letter-spacing: -.03em; }
.ed-business { border: 1px solid var(--ed-rule); }
.ed-business > .ed-group-heading { padding: 26px 32px; border-bottom: 1px solid var(--ed-rule); }
.ed-results-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.ed-result { min-width: 0; padding: 28px 30px; font-size: var(--ed-text-size); line-height: 1.65; }
.ed-launch, .ed-budget { grid-column: span 4; }
.ed-revenue, .ed-clients { grid-column: span 5; }
.ed-automation, .ed-team { grid-column: span 3; }
.ed-result:not(.ed-launch):not(.ed-budget) { border-left: 1px solid var(--ed-rule); }
.ed-budget, .ed-team, .ed-clients { border-top: 1px solid var(--ed-rule); }
.ed-launch { font-size: var(--ed-text-size); line-height: 1.65; letter-spacing: 0; }
.ed-budget { display: flex; align-items: center; font-size: var(--ed-text-size); line-height: 1.65; }
.ed-metric-before, .ed-metric-after { display: block; }
.ed-mobile-glue { display: contents; }
.ed-metric-mobile-prefix { display: none; }
.ed-figure { display: block; color: var(--accent); font-size: 62px; font-weight: 500; line-height: 1.1; letter-spacing: -.065em; margin: 18px 0; }
.ed-figure small { font-size: var(--ed-caption-size); font-weight: 400; letter-spacing: -.025em; white-space: nowrap; }
.ed-revenue .ed-figure { white-space: nowrap; font-size: 55px; }
.ed-team .ed-figure { font-size: 55px; }
.ed-clients { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ed-client-result { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; font-size: var(--ed-caption-size); line-height: 1.65; }
.ed-client-result strong { display: block; color: var(--accent); font-size: 51px; line-height: 1.2; font-weight: 500; letter-spacing: -.06em; margin: 8px 0; }
.ed-sales { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; border: 1px solid var(--ed-rule); margin-top: 24px; }
.ed-sales > * { padding: 28px 30px; }
.ed-sales > * + * { border-left: 1px solid var(--ed-rule); }
.ed-sales .ed-group-heading { font-size: 24px; }
.ed-sales-copy { font-size: var(--ed-text-size); line-height: 1.65; }
.ed-forums { margin-top: 24px; border: 1px solid var(--ed-rule); }
.ed-forums > .ed-group-heading { max-width: 850px; padding: 26px 32px; }
.ed-forums-grid { display: grid; grid-template-columns: 1.05fr 1fr; border-top: 1px solid var(--ed-rule); }
.ed-forum-copy { padding: 26px 32px; font-size: var(--ed-text-size); line-height: 1.65; }
.ed-forum-copy:first-child { grid-row: span 2; font-size: var(--ed-text-size); line-height: 1.65; letter-spacing: 0; }
.ed-forum-copy + .ed-forum-copy { border-left: 1px solid var(--ed-rule); }
.ed-forum-copy:last-child { border-top: 1px solid var(--ed-rule); }

.ed-skills-intro { max-width: 930px; font-size: var(--ed-text-size); line-height: 1.65; letter-spacing: 0; margin: 28px 0 32px; }
.ed-skills-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border: 1px solid var(--ed-rule); }
.ed-skill-card { grid-column: span 6; padding: 30px 32px 34px; }
.ed-skill-card:nth-child(2), .ed-skill-card:nth-child(4) { border-left: 1px solid var(--ed-rule); }
.ed-skill-card:nth-child(3), .ed-skill-card:nth-child(4) { border-top: 1px solid var(--ed-rule); }
.ed-skill-card:nth-child(3) { grid-column: span 4; }
.ed-skill-card:nth-child(4) { grid-column: span 8; }
.ed-card-title { display: block; font-size: 23px; font-weight: 550; line-height: 1.4; letter-spacing: -.025em; }
.ed-skill-summary { font-size: var(--ed-text-size); line-height: 1.65; margin-top: 18px; }
.ed-skill-detail { font-size: var(--ed-caption-size); color: var(--muted); line-height: 1.9; border-top: 1px solid var(--ed-rule); margin-top: 23px; padding-top: 19px; }
.ed-skill-bullet { display: inline-block; width: 6px; height: 6px; margin-inline: 4px; border-radius: 50%; background: var(--accent); font-size: 0; line-height: 0; vertical-align: middle; }

.ed-personal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ed-rule); }
.ed-personal-card { padding: 30px 32px; }
.ed-personal-card:nth-child(even) { border-left: 1px solid var(--ed-rule); }
.ed-personal-card:nth-child(n + 3) { border-top: 1px solid var(--ed-rule); }
.ed-personal-card .ed-card-title { color: var(--accent); }
.ed-card-copy { display: block; font-size: var(--ed-text-size); line-height: 1.65; margin-top: 15px; }
.ed-interests-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ed-interests-grid .ed-personal-card { border: 0; padding: 24px; }
.ed-interests-grid .ed-personal-card + .ed-personal-card { border-left: 1px solid var(--ed-rule); }
.ed-interests-grid .ed-card-title { font-size: 19px; color: var(--ed-ink); }
.ed-interests-grid .ed-card-copy { font-size: var(--ed-text-size); }

.ed-additional-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, 1.15fr); border: 1px solid var(--ed-rule); }
.ed-additional-card { padding: 30px; }
.ed-additional-card + .ed-additional-card { border-left: 1px solid var(--ed-rule); }
.ed-additional-card .ed-card-title { font-size: 21px; }
.ed-additional-card .ed-card-copy { font-size: var(--ed-text-size); }
.ed-travel-figure { display: block; font-size: 55px; font-weight: 500; letter-spacing: -.065em; line-height: 1.2; color: var(--accent); margin: 22px 0 12px; white-space: nowrap; }

.ed-additional-card.ed-gratitude-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.ed-gratitude-copy { margin-bottom: 22px; }
.ed-gratitude-card .ed-card-copy { margin-top: 15px; }
.ed-contact-cta.ed-gratitude-link { max-width: 100%; min-height: 44px; margin-top: auto; padding: 10px 14px; font-size: 14px; text-align: left; white-space: normal; }

.ed-references-grid { display: grid; grid-template-columns: repeat(var(--reference-count, 3), minmax(0, 1fr)); border: 1px solid var(--ed-rule); }
.ed-reference-card { padding: 30px; display: flex; flex-direction: column; align-items: flex-start; }
.ed-reference-card + .ed-reference-card { border-left: 1px solid var(--ed-rule); }
.ed-reference-name { display: block; font-size: 25px; font-weight: 550; line-height: 1.3; letter-spacing: -.035em; max-width: 290px; }
.ed-reference-detail { display: block; font-size: var(--ed-caption-size); line-height: 1.9; color: var(--muted); margin-top: 20px; }
.ed-reference-copy { margin-bottom: 22px; }
.ed-contact-cta.ed-reference-link {
  max-width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 14px;
  font-size: 14px;
  white-space: normal;
  text-align: left;
  grid-column: 1 / -1;
  justify-self: start;
}
.ed-reference-note { font-size: var(--ed-caption-size); line-height: 1.7; color: var(--accent); text-align: right; margin-top: 19px; }

/* Category bands carry the stronger wash; selected facts use a lighter tint. */
.ed-business > .ed-group-heading,
.ed-sales > .ed-group-heading,
.ed-forums > .ed-group-heading {
  background: #fff var(--ed-gradient-band);
}
.ed-forums > .ed-group-heading { max-width: none; }
.ed-forums > .ed-group-heading > .ed-text-reveal { max-width: 786px; }
.ed-degree,
.ed-skill-card:first-child,
.ed-skill-card:nth-child(4),
.ed-qualities-grid > .ed-personal-card:first-child,
.ed-qualities-grid > .ed-personal-card:nth-child(4),
.ed-additional-card:nth-child(2) {
  background: #fff var(--ed-gradient-panel);
}
.ed-reference-note {
  padding: 16px 20px;
  border: 1px solid var(--ed-rule);
  background: #fff var(--ed-gradient-band);
}

@media (max-width: 1100px) {
  .ed-hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .ed-identity { padding: 30px 28px; }
  .ed-name { font-size: clamp(56px, 7.4vw, 84px); }
  .ed-alternatives { padding: 22px 28px; font-size: var(--ed-text-size); }
  .ed-portrait { padding: 20px; }
  .ed-photo-frame { min-height: 410px; }
  .ed-contact { padding: 18px; font-size: var(--ed-caption-size); }
  .ed-degree, .ed-internship { padding: 28px; }
  .ed-job { grid-template-columns: 230px minmax(0, 1fr); }
  .ed-job-period { font-size: 27px; padding-inline: 24px; }
  .ed-job-copy { padding-inline: 28px; }
  .ed-job-title { font-size: 21px; }
  .ed-result { padding: 25px; }
  .ed-revenue .ed-figure { font-size: 43px; }
  .ed-figure small { font-size: var(--ed-caption-size); }
  .ed-team .ed-figure { font-size: 45px; }
  .ed-client-result strong { font-size: 44px; }
  .ed-launch { font-size: var(--ed-text-size); }
  .ed-sales > *, .ed-forum-copy, .ed-skill-card, .ed-personal-card, .ed-additional-card, .ed-reference-card { padding: 26px; }
  .ed-forum-copy:first-child { font-size: var(--ed-text-size); }
  .ed-interests-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-interests-grid .ed-personal-card { padding: 24px; }
  .ed-interests-grid .ed-personal-card:nth-child(odd) { border-left: 0; }
  .ed-interests-grid .ed-personal-card:nth-child(n + 3) { border-top: 1px solid var(--ed-rule); }
  .ed-travel-figure { font-size: 47px; }
  .ed-reference-name { font-size: 22px; }
}

@media (max-width: 760px) {
  .ed-contact-strip { grid-template-columns: minmax(0, 1fr); }
  .ed-contact + .ed-contact { border-left: 0; border-top: 1px solid var(--ed-rule); }
  .ed-hero { margin-top: 24px; margin-bottom: 48px; }
  .ed-identity { padding: 24px; gap: 24px; }
  .ed-name { font-size: clamp(45px, 7.1vw, 56px); }
  .ed-role, .ed-contact-cta { font-size: 12px; padding: 8px 10px; }
  .ed-alternatives { padding: 22px 24px; font-size: var(--ed-text-size); }
  .ed-portrait { padding: 17px; }
  .ed-photo-frame { min-height: 360px; }
  .ed-contact { font-size: var(--ed-caption-size); }
  .ed-section-label { font-size: 19px; padding: 11px 16px; }
  .ed-education-board { grid-template-columns: 1fr 1fr; }
  .ed-degree, .ed-internship { padding: 24px; }
  .ed-degree-copy { font-size: var(--ed-text-size); }
  .ed-school { font-size: 40px; }
  .ed-score strong { font-size: 51px; }
  .ed-internship-title { font-size: 20px; }
  .ed-internship { font-size: var(--ed-text-size); }
  .ed-course { padding: 22px; }
  .ed-course-copy { font-size: var(--ed-text-size); }
  .ed-job { grid-template-columns: 190px minmax(0, 1fr); }
  .ed-job-period { font-size: 23px; padding: 26px 20px; }
  .ed-job-copy { padding: 24px; }
  .ed-job-title { font-size: 19px; }
  .ed-section-label { max-width: 100%; }
  .ed-heading-rule { min-width: 0; }
  .ed-group-heading { font-size: 22px; }
  .ed-business > .ed-group-heading, .ed-forums > .ed-group-heading { padding: 24px; }
  .ed-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-result { grid-column: auto; padding: 24px; }
  .ed-result:not(.ed-launch):not(.ed-budget) { border-left: 0; }
  .ed-result:nth-child(even) { border-left: 1px solid var(--ed-rule) !important; }
  .ed-result:nth-child(n + 3) { border-top: 1px solid var(--ed-rule); }
  .ed-result .ed-figure { font-size: 52px; }
  .ed-revenue .ed-figure small { display: block; margin-top: 6px; }
  .ed-clients { gap: 15px; }
  .ed-client-result strong { font-size: 36px; }
  .ed-client-result { font-size: var(--ed-caption-size); }
  .ed-sales { grid-template-columns: 1fr 1fr; }
  .ed-sales > .ed-group-heading { grid-column: 1 / -1; border-bottom: 1px solid var(--ed-rule); }
  .ed-sales > .ed-sales-copy:nth-child(2) { border-left: 0; }
  .ed-forums-grid { display: block; }
  .ed-forum-copy + .ed-forum-copy { border-left: 0; border-top: 1px solid var(--ed-rule); }
  .ed-forum-copy:first-child { font-size: var(--ed-text-size); }
  .ed-skills-intro { font-size: var(--ed-text-size); }
  .ed-skill-card:nth-child(n) { grid-column: span 6; }
  .ed-card-title { font-size: 20px; }
  .ed-skill-summary { font-size: var(--ed-text-size); }
  .ed-additional-grid, .ed-references-grid { display: block; }
  .ed-additional-card + .ed-additional-card, .ed-reference-card + .ed-reference-card { border-left: 0; border-top: 1px solid var(--ed-rule); }
  .ed-additional-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
  .ed-additional-card .ed-card-copy { margin-top: 0; }
  .ed-travel-figure { margin-top: 0; }
  .ed-reference-detail { margin-top: 0; }
}

@media (max-width: 580px) {
  .ed-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "identity" "portrait" "alternatives" "contacts"; }
  .ed-identity { padding: 27px 22px 26px; gap: 22px; }
  .ed-name { font-size: clamp(39px, 11.8vw, 66px); }
  .ed-role, .ed-contact-cta { font-size: 12px; }
  .ed-portrait { border-left: 0; border-top: 1px solid var(--ed-rule); padding: 20px; }
  .ed-photo-frame { min-height: 0; aspect-ratio: 4 / 3; }
  .ed-alternatives { padding: 20px 22px; font-size: var(--ed-text-size); }
  .ed-contact-strip { display: block; }
  .ed-contact { padding: 16px 22px; font-size: var(--ed-caption-size); }
  .ed-contact + .ed-contact { border-left: 0; }
  .ed-section { margin-bottom: 42px; }
  .ed-section-head { margin-bottom: 18px; }
  .ed-section-label { font-size: 18px; padding: 10px 14px; }
  .ed-heading-rule { margin-left: 14px; }
  .ed-education-board { display: block; }
  .ed-degree, .ed-internship { padding: 26px 24px; }
  .ed-degree { gap: 28px; }
  .ed-degree-copy { font-size: var(--ed-text-size); }
  .ed-score strong { font-size: 64px; }
  .ed-internship { border-left: 0; border-top: 1px solid var(--ed-rule); font-size: var(--ed-text-size); }
  .ed-courses { display: block; }
  .ed-course { min-height: 0; flex-direction: row; align-items: flex-start; gap: 22px; padding: 22px 24px; }
  .ed-course + .ed-course { border-left: 0; border-top: 1px solid var(--ed-rule); }
  .ed-course-copy { flex: 1; font-size: var(--ed-text-size); }
  .ed-course-year { font-size: 22px; }
  .ed-job { display: block; }
  .ed-job-period { padding: 22px 24px 12px; font-size: 27px; }
  .ed-job-period small { display: inline; margin-left: 5px; }
  .ed-job-copy { border-left: 0; padding: 0 24px 24px; }
  .ed-job-title { font-size: 20px; }
  .ed-section-label { text-wrap: balance; overflow-wrap: anywhere; }
  .ed-group-heading, .ed-sales .ed-group-heading { font-size: 21px; }
  .ed-results-grid { display: block; }
  .ed-result { padding: 24px; }
  .ed-result:nth-child(n) { border-left: 0 !important; }
  .ed-result + .ed-result { border-top: 1px solid var(--ed-rule); }
  .ed-revenue .ed-figure { font-size: clamp(45px, 11vw, 60px); }
  .ed-revenue .ed-figure small { display: inline; font-size: var(--ed-caption-size); }
  .ed-clients { gap: 20px; }
  .ed-client-result { font-size: var(--ed-caption-size); }
  .ed-client-result strong { font-size: 46px; }
  .ed-sales { display: block; }
  .ed-sales > * { padding: 24px; }
  .ed-sales > * + * { border-left: 0; }
  .ed-sales > *:last-child { border-top: 1px solid var(--ed-rule); }
  .ed-forum-copy { padding: 24px; font-size: var(--ed-text-size); }
  .ed-forum-copy:first-child { font-size: var(--ed-text-size); }
  .ed-skills-intro { font-size: var(--ed-text-size); margin: 22px 0 24px; }
  .ed-skills-grid { display: block; }
  .ed-skill-card { padding: 24px; }
  .ed-skill-card:nth-child(n) { border-left: 0; }
  .ed-skill-card + .ed-skill-card { border-top: 1px solid var(--ed-rule); }
  .ed-personal-grid { display: block; }
  .ed-personal-card { padding: 24px; }
  .ed-personal-card:nth-child(n) { border-left: 0; }
  .ed-personal-card + .ed-personal-card { border-top: 1px solid var(--ed-rule); }
  .ed-interests-grid .ed-personal-card:nth-child(n) { padding: 24px; border-left: 0; }
  .ed-additional-card, .ed-reference-card { padding: 24px; }
  .ed-additional-card { display: block; }
  .ed-additional-card .ed-card-copy, .ed-reference-detail { margin-top: 15px; }
  .ed-travel-figure { font-size: 55px; margin-top: 20px; }
  .ed-reference-name { max-width: 260px; }
  .ed-reference-note { text-align: left; }
}

@media (max-width: 370px) {
  .ed-score { gap: 6px; }
  .ed-revenue .ed-figure small { display: block; }
}

/* Mobile hero follows the desktop hierarchy, with actions below the portrait. */
@media screen and (max-width: 760px) {
  .ed-mobile-glue { display: inline; white-space: nowrap; }
  .ed-degree-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
  .ed-degree-heading .ed-school { margin-bottom: 0; }
  .ed-degree-year { display: block; flex-shrink: 0; }
  .ed-degree-year-inline, .ed-school .ed-punctuation { display: none; }
  .ed-metric-desktop-prefix { display: none; }
  .ed-metric-mobile-prefix {
    display: inline;
    font-size: var(--ed-text-size);
    font-weight: 400;
    letter-spacing: normal;
    white-space: pre;
  }
  .ed-hero {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "name" "role" "alternatives" "portrait" "actions" "contacts";
  }
  .ed-hero .ed-identity,
  .ed-hero .ed-role-row,
  .ed-hero .ed-role-actions { display: contents; container-type: normal; }
  .ed-hero .ed-name {
    grid-area: name;
    padding: 27px 22px 0;
    font-size: clamp(39px, 11.8vw, 66px);
  }
  .ed-hero .ed-role-row .ed-role {
    grid-area: role;
    margin: 22px 22px 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ed-ink);
    font-size: 22px;
    font-weight: 650;
    line-height: 1.3;
    white-space: normal;
  }
  .ed-hero .ed-role-row > .ed-emblem {
    position: absolute;
    top: 27px;
    right: 22px;
  }
  .ed-hero .ed-alternatives {
    padding: 12px 22px 22px;
    border-top: 0;
    font-size: var(--ed-caption-size);
    line-height: 1.55;
  }
  .ed-hero .ed-mobile-label { display: none; }
  .ed-hero .ed-desktop-label { display: inline; }
  .ed-hero .ed-position-list { display: inline; margin: 0; }
  .ed-hero .ed-position-list li { display: inline; padding: 0; }
  .ed-hero .ed-position-list li + li { margin-top: 0; }
  .ed-hero .ed-position-list li::before { content: none; }
  .ed-hero .ed-position-list li::after { content: none; }
  .ed-hero .ed-position-list li:not(:last-child)::after { content: ", "; }
  .ed-hero .ed-portrait { padding: 0 22px 22px; border: 0; }
  .ed-hero .ed-photo-frame { min-height: 0; flex: none; aspect-ratio: 4 / 5; }
  .ed-hero .ed-hero-buttons {
    grid-area: actions;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 22px 26px;
  }
  .ed-hero .ed-hero-buttons .ed-contact-cta {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    font-size: 16px;
  }
  .ed-hero .ed-pdf-cta { display: inline-flex; background: var(--accent); color: #fff; }
}

@media print {
  .ed-contact-cta { display: none; }
  .ed-hero { margin: 0 0 24pt; break-inside: avoid; }
  .ed-identity { padding: 18pt; }
  .ed-name { font-size: 42pt; }
  .ed-role { font-size: 10pt; }
  .ed-alternatives { padding: 14pt 18pt; font-size: 9pt; }
  .ed-photo-frame { min-height: 220pt; }
  .ed-contact { font-size: 8pt; padding: 12pt; }
  .ed-section { margin-bottom: 24pt; }
  .ed-section-head { break-after: avoid; }
  .ed-degree, .ed-internship, .ed-course, .ed-job { break-inside: avoid; }
  .ed-result, .ed-skill-card, .ed-personal-card, .ed-additional-card, .ed-reference-card { break-inside: avoid; }
  .ed-section-label, .ed-role { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
