@import url('./about-editorial.css');
@import url('./resources-contact-editorial.css');

:root {
  --ed-paper: #faf9f6;
  --ed-paper-deep: #f0eee8;
  --ed-ink: #0f3d66;
  --ed-night: #082b47;
  --ed-yellow: #f2b705;
  --ed-muted: #526371;
  --ed-line: #d9dfdf;
  --ed-serif: Georgia, 'Times New Roman', serif;
  --ed-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.editorial-site { background: var(--ed-paper); color: var(--ed-ink); }
.editorial-site main { overflow: clip; }
:where(.editorial-site) p { color: var(--ed-muted); }
.editorial-site img { max-width: 100%; }
.ed-wrap { width: min(1160px, 100%); margin-inline: auto; }
.ed-section { padding: clamp(76px, 9vw, 132px) 6%; position: relative; scroll-margin-top: 110px; }
.ed-section h2 { font: 600 clamp(2.35rem, 4.5vw, 4.3rem)/1.08 var(--font-main); letter-spacing: -.045em; margin: 0; }
.ed-section h2 em { font-family: var(--ed-serif); font-weight: 400; }
.ed-section h3 { color: inherit; }
.ed-section-intro { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 11%; margin-bottom: 72px; }
.ed-section-intro p { margin: 0 0 20px; }
.ed-human-line { font: italic 1.4rem/1.5 var(--ed-serif); color: var(--ed-ink) !important; }
.ed-margin-note { font: italic 1.3rem/1.5 var(--ed-serif); }
.ed-mark { position: relative; white-space: nowrap; }
.ed-sketch { position: absolute; width: 105%; height: 18px; left: -2%; bottom: -12px; overflow: visible; }
.ed-sketch path { fill: none; stroke: var(--ed-yellow); stroke-width: 5; stroke-linecap: round; }
.ed-anchor { position: absolute; top: 0; scroll-margin-top: 110px; }
.ed-skip { position: fixed; z-index: 100100; top: 8px; left: 8px; padding: 12px 20px; background: var(--ed-yellow); color: var(--ed-ink); transform: translateY(-160%); border-radius: 8px; }
.ed-skip:focus { transform: none; }

.ed-cta,
.ed-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; }
.ed-cta { position: relative; isolation: isolate; overflow: hidden; padding: 15px 26px; border: 0; border-radius: 100px; color: var(--ed-night); background: var(--ed-yellow); transform: translate(var(--magnetic-x, 0px), var(--magnetic-y, 0px)); transition: transform 500ms var(--ed-ease); }
.ed-cta::before { content: ''; position: absolute; inset: 0; background: #ffd45b; transform: translateY(102%); transition: transform 550ms var(--ed-ease); z-index: -1; }
.ed-cta:hover::before,
.ed-cta:focus-visible::before { transform: translateY(0); }
.ed-cta > span:last-child,
.ed-link > span:last-child { transition: transform 500ms var(--ed-ease); }
.ed-cta:hover > span:last-child,
.ed-link:hover > span:last-child { transform: translate(3px, -3px); }
.ed-link { color: var(--ed-ink); border-bottom: 1px solid currentColor; }
.ed-link:hover { color: var(--azul-medio); }
.ed-link--light { color: white; }
.ed-link--light:hover { color: var(--ed-yellow); }

/* The office stays recognisable; the typography supplies the rhythm. */
.ed-hero { min-height: min(980px, 100svh); padding: 180px 6% 112px; background: var(--ed-night); position: relative; display: flex; align-items: end; color: #fff; isolation: isolate; overflow: clip; }
.ed-hero__photo { position: absolute; inset: -5% 0; width: 100%; height: 110%; object-fit: cover; object-position: center 56%; z-index: -3; transform: translateY(var(--parallax-y, 0px)); }
.ed-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 29, 47, .89) 0%, rgba(4, 29, 47, .65) 58%, rgba(4, 29, 47, .62) 100%); z-index: -2; }
.ed-hero__content { display: grid; grid-template-columns: 1.15fr .8fr; align-items: end; gap: 8%; }
.ed-hero__place { color: #f2f4f5 !important; font-size: .85rem; margin: 0 0 26px; letter-spacing: .12em; }
.ed-hero h1 { color: #fff; font-size: clamp(3.8rem, 7.1vw, 7.4rem); line-height: .98; letter-spacing: -.055em; margin: 0; font-weight: 600; }
.ed-hero h1 > span { display: block; }
.ed-hero h1 em { color: var(--ed-yellow); font-family: var(--ed-serif); font-weight: 400; }
.ed-hero__aside { padding-bottom: 8px; }
.ed-hero__aside > p { color: #f0f3f5; font-size: 1.05rem; line-height: 1.8; max-width: 42ch; }
.ed-hero__actions { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 30px 0 40px; align-items: center; }
.ed-hero__signature { border-left: 2px solid var(--ed-yellow); padding-left: 18px; font-size: .85rem !important; }
.ed-hero__scroll { position: absolute; bottom: 28px; right: 6%; display: flex; align-items: center; gap: 40px; font-size: .8rem; }
.ed-hero__scroll span { font-size: 1.5rem; color: var(--ed-yellow); }

/* Services read like an agenda, with the detail close at hand. */
.ed-service-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 9%; align-items: start; }
.ed-service-aside { position: sticky; top: 130px; padding-bottom: 35px; }
.ed-service-aside figure { margin: 0; }
.ed-service-aside img { width: 100%; height: 430px; object-fit: cover; object-position: 60% center; border-radius: 3px 72px 3px 3px; }
.ed-service-aside figcaption { font-size: .7rem; color: var(--ed-muted); line-height: 1.5; margin-top: 16px; max-width: 100%; }
.ed-stamp { width: 118px; height: 118px; border: 2px solid var(--ed-ink); border-radius: 50%; display: grid; place-content: center; text-align: center; font-size: 1.05rem; font-weight: 600; letter-spacing: .08em; background: var(--ed-paper); transform: rotate(-12deg); margin: 22px -25px 18px auto; position: relative; outline: 1px solid var(--ed-ink); outline-offset: -7px; }
.ed-stamp small { font-size: .52rem; margin-top: 6px; }
.ed-service-aside .ed-margin-note { max-width: 19ch; margin-top: 28px; }
.ed-list-heading { font-size: 1rem; font-weight: 500; margin-bottom: 12px; }
.ed-list-description { font-size: .9rem; margin-bottom: 28px; }
.ed-service { border-top: 1px solid #bdcbd2; padding: 0; scroll-margin-top: 120px; }
.ed-service:last-child { border-bottom: 1px solid #bdcbd2; }
.ed-service summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 94px; padding: 22px 0; }
.ed-service summary::-webkit-details-marker { display: none; }
.ed-service summary h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.25; letter-spacing: -.025em; font-weight: 500; margin: 0; max-width: 27ch; }
.ed-service__toggle { font: 300 2rem/1 var(--font-main); width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; transition: transform 500ms var(--ed-ease), background 500ms; border-radius: 50%; }
.ed-service[open] .ed-service__toggle { transform: rotate(45deg); background: var(--ed-yellow); }
.ed-service__body { padding: 0 0 30px; }
.ed-service__body > p { max-width: 58ch; }
.ed-service__terms { font-size: .76rem !important; margin: 20px 0; letter-spacing: .02em; }
.ed-delivery { font-size: .85rem; }
.ed-delivery span { font-weight: 600; color: var(--ed-ink); margin-right: 12px; }
.ed-service__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 25px; }
.ed-service__actions .ed-link { font-size: .82rem; }
.ed-consulting-heading { margin: 58px 0 24px; }
.ed-consulting-heading h3 { font-size: 1rem; margin: 0 0 8px; }
.ed-consulting-heading p { font-size: .9rem; }
@supports (interpolate-size: allow-keywords) {
  .ed-service::details-content { interpolate-size: allow-keywords; block-size: 0; overflow: clip; transition: block-size 600ms var(--ed-ease), content-visibility 600ms allow-discrete; }
  .ed-service[open]::details-content { block-size: auto; }
}

/* A report lives inside one workspace rather than a row of promotional cards. */
.ed-reports { background: var(--ed-night); color: white; }
.ed-reports__layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8%; align-items: center; }
.ed-reports h2 { color: white; }
.ed-reports h2 em { color: var(--ed-yellow); }
.ed-reports__copy > p { color: #d3dfe7; margin: 28px 0 35px; }
.ed-report-copy { border-top: 1px solid rgba(255,255,255,.2); padding: 18px 0 6px; }
.ed-report-copy h3 { color: white; font-size: 1rem; margin-bottom: 8px; }
.ed-report-copy p { color: #c5d4df; font-size: .85rem; line-height: 1.7; }
.ed-reports__copy > .ed-cta { margin-top: 30px; }
.ed-report-board { background: #f3f5f6; color: var(--ed-ink); border-radius: 16px 16px 4px 4px; padding: 22px; transform: rotate(1.5deg); margin: 60px -40px 0 0; box-shadow: 0 30px 70px rgba(0,0,0,.18); }
.ed-report-board__header { display: flex; gap: 16px; align-items: center; border-bottom: 1px solid #d2dce2; padding-bottom: 17px; font-size: .75rem; }
.ed-report-board__header > strong { letter-spacing: .12em; font-size: .9rem; }
.ed-board-dot { width: 7px; height: 7px; background: var(--ed-yellow); border-radius: 50%; margin-left: auto; }
.ed-report-board__meta { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; gap: 20px; }
.ed-report-board__meta p { font-size: .75rem; margin: 0; }
.ed-report-board__meta p:first-child { display: flex; align-items: center; gap: 12px; }
.ed-report-board__meta [data-count] { font-size: 3rem; color: var(--ed-ink); line-height: 1; font-weight: 500; }
.ed-report-board__charts { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.ed-report-board__main { grid-column: 1/-1; }
.ed-chart { width: 100%; height: auto; display: block; border-radius: 9px; }
.ed-report-board figcaption { color: var(--ed-muted); font-size: .67rem; padding: 16px 4px 0; }

/* Sector illustrations form a collage with different proportions. */
.ed-sectors { background: #fff; }
.ed-sectors__intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 12%; align-items: end; margin-bottom: 65px; }
.ed-sectors__intro > .ed-margin-note { grid-column: 1/-1; margin-bottom: 30px; }
.ed-sectors__intro > p:last-child { margin: 0; }
.ed-sector-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 26px; }
.ed-sector { min-width: 0; border-top: 1px solid #c5d0d6; padding-top: 18px; }
.ed-sector figure { margin: 0 0 22px; background: var(--ed-paper); }
.ed-sector img { width: 100%; height: 220px; object-fit: contain; }
.ed-sector h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.025em; margin: 0 0 14px; }
.ed-sector p { font-size: .9rem; line-height: 1.8; }
.ed-sector__terms { font-size: .72rem !important; color: var(--ed-ink) !important; }
.ed-sector--construction { grid-column: 1/4; grid-row: 1; }
.ed-sector--commerce { grid-column: 4/7; grid-row: 1/3; margin-top: 90px; background: var(--ed-paper); padding: 22px 28px; }
.ed-sector--commerce img { height: 390px; }
.ed-sector--transport { grid-column: 1/4; grid-row: 2; display: grid; grid-template-columns: .65fr 1fr; align-items: center; gap: 22px; }
.ed-sector--transport figure { margin: 0; }
.ed-sector--transport img { height: 180px; }
.ed-sector--communities { grid-column: 1/4; grid-row: 3; background: var(--ed-night); padding: 24px; color: white; }
.ed-sector--communities figure { background: var(--ed-paper); }
.ed-sector--communities p { color: #d4e1eb; }
.ed-sector--communities .ed-sector__terms { color: var(--ed-yellow) !important; }
.ed-sector--services { grid-column: 4/7; grid-row: 3; display: grid; grid-template-columns: .8fr 1fr; gap: 24px; align-items: center; }
.ed-sector--services img { height: 240px; }
.ed-sector--people { grid-column: 1/-1; display: grid; grid-template-columns: .7fr 1.3fr; gap: 10%; align-items: center; padding: 30px 0; }
.ed-sector--people figure { margin: 0; }
.ed-sector--people img { height: 200px; }
.ed-sector-question { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-top: 60px; border-top: 1px solid var(--ed-line); padding-top: 32px; }
.ed-sector-question h3 { font-size: 1.35rem; max-width: 40ch; margin-bottom: 10px; }
.ed-sector-question p { font-size: .9rem; }
.ed-sector-question > .ed-link { flex-shrink: 0; }

.ed-page-hero { padding: 180px 6% 60px; background: var(--ed-night); color: white; }
.ed-page-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.045em; color: inherit; max-width: 18ch; font-weight: 500; }
.ed-page-hero p { color: #d6e2ea; max-width: 62ch; }
.ed-page-hero .ed-link { color: white; }
.ed-detail-list { margin-top: 60px; }
.ed-detail-list .ed-service { max-width: 100%; }
.ed-detail-list .ed-service__body { max-width: 760px; }
.ed-detail-list .ed-service__body ul { list-style: disc; padding-left: 20px; margin: 20px 0; }
.ed-detail-list .ed-service__body > .ed-link { margin-right: 24px; background: none; border-width: 0 0 1px; padding: 0; }
.editorial-contact-page .ed-contact { padding-top: 170px; }
.editorial-contact-page .ed-contact h1 { color: var(--ed-ink); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; }
.editorial-contact-page .ed-contact h1 em { font-family: var(--ed-serif); font-weight: 400; }

@media (max-width: 1080px) {
  .ed-hero { min-height: 900px; }
  .ed-hero__content { grid-template-columns: 1fr .85fr; gap: 6%; }
  .ed-hero h1 { font-size: clamp(3.6rem, 8vw, 6.2rem); }
  .ed-reports__layout { grid-template-columns: 1fr; }
  .ed-reports__copy { display: grid; grid-template-columns: 1fr 1fr; gap: 0 9%; }
  .ed-reports h2,
  .ed-reports__copy > p,
  .ed-reports__copy > .ed-cta { grid-column: 1/-1; }
  .ed-reports__copy > .ed-cta { justify-self: start; }
  .ed-report-board { max-width: 720px; margin: 60px auto 0; }
  .ed-sector--transport,
  .ed-sector--services { display: block; }
}

@media (max-width: 767px) {
  .ed-section { padding: 72px 6%; }
  .ed-hero { min-height: 100svh; padding: 140px 6% 92px; }
  .ed-hero__content { grid-template-columns: 1fr; gap: 38px; }
  .ed-hero h1 { font-size: clamp(3.35rem, 13vw, 5.3rem); }
  .ed-hero__place { font-size: .7rem; margin-bottom: 22px; }
  .ed-hero__aside > p { font-size: .95rem; }
  .ed-hero__actions { margin: 24px 0; gap: 12px 22px; }
  .ed-hero__signature { display: none; }
  .ed-section-intro,
  .ed-service-layout,
  .ed-sectors__intro { grid-template-columns: 1fr; gap: 30px; }
  .ed-section-intro { margin-bottom: 42px; }
  .ed-service-aside { position: relative; top: auto; max-width: 440px; }
  .ed-service-aside img { height: 290px; }
  .ed-stamp { margin-right: 12px; }
  .ed-service-aside .ed-margin-note { margin-top: 16px; max-width: 28ch; }
  .ed-service summary { min-height: 84px; gap: 15px; }
  .ed-service summary h3 { font-size: 1.4rem; }
  .ed-cta { padding: 14px 23px; font-size: .85rem; }
  .ed-reports__copy { display: block; }
  .ed-report-board { padding: 13px; margin-top: 40px; transform: rotate(.6deg); width: 100%; }
  .ed-report-board__header { font-size: .64rem; gap: 10px; }
  .ed-report-board__charts { gap: 7px; }
  .ed-report-board__cost,
  .ed-report-board__flow { grid-column: 1/-1; }
  .ed-sector-grid { display: block; }
  .ed-sector { margin: 0 0 30px; padding: 22px 0; display: block; }
  .ed-sector--commerce { margin-left: 8%; padding: 22px; }
  .ed-sector--commerce img { height: 240px; }
  .ed-sector--communities { margin-right: 5%; padding: 24px; }
  .ed-sector--people { display: grid; grid-template-columns: .6fr 1fr; gap: 18px; }
  .ed-sector--people img { height: 150px; }
  .ed-sector-question { display: block; margin-top: 30px; }
  .ed-sector-question > .ed-link { margin-top: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal], .reveal { transition: opacity 700ms var(--ed-ease) var(--ed-delay, 0ms), translate 700ms var(--ed-ease) var(--ed-delay, 0ms), clip-path 800ms var(--ed-ease) var(--ed-delay, 0ms); }
  .ed-pending { opacity: 0; translate: 0 22px; }
  .ed-pending[data-reveal='mask'] { clip-path: inset(0 0 12% 0); }
  .ed-pending:focus-within { opacity: 1; translate: none; clip-path: none; transition: none; }
  .is-visible .ed-chart-line { stroke-dasharray: 1; animation: ed-line-draw 800ms var(--ed-ease) 200ms both; }
  .is-visible .ed-chart-bar { transform-box: fill-box; transform-origin: left; animation: ed-bar-grow 800ms var(--ed-ease) calc(150ms + var(--bar-delay, 0ms)) both; }
}
@keyframes ed-line-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ed-bar-grow { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .ed-pending { opacity: 1; translate: none; clip-path: none; }
  .ed-hero__photo, .ed-cta { transform: none !important; }
}
