/*
   Tojo Dynamics — Editorial layer (loaded globally, after style.css)

   Brand: black / white + a single warm gold accent (BRAND.md).
   Fraunces display serif for headlines, Inter for body & UI.
   Asymmetric, calm, magazine-like. Gold appears sparingly.

   Naming: all editorial classes are prefixed `.ed-` so they never collide
   with the legacy components in style.css.
*/

/* =========================================================
   SHARED PRIMITIVES
   ========================================================= */
.ed-section {
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.ed-section--tight {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.ed-section--alt {
    background: var(--bg-secondary);
}

.ed-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.ed-wrap--narrow {
    max-width: 920px;
}

/* eyebrow base lives in style.css; this is the dark-section variant */
.eyebrow--on-dark {
    color: rgba(255, 255, 255, 0.65);
}

.eyebrow--center {
    justify-content: center;
}

/* Section head: title left, intro right (asymmetric, not centered) */
.ed-head {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.ed-head--stack {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--spacing-md);
}

.ed-head__title {
    font-size: var(--font-size-display-sm);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0;
    max-width: 18ch;
    overflow-wrap: break-word;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.ed-head__intro {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin: 0;
    max-width: 46ch;
}

/* =========================================================
   PAGE HERO (subpages)
   ========================================================= */
.ed-pagehero {
    position: relative;
    background: var(--bg-primary);
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
    overflow: hidden;
}

.ed-pagehero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.ed-pagehero--narrow .ed-pagehero__inner {
    grid-template-columns: 1fr;
    max-width: 860px;
    text-align: left;
}

.ed-pagehero__title {
    font-size: var(--font-size-display);
    line-height: 1.03;
    letter-spacing: -0.02em;
    font-weight: 560;
    margin: 0 0 var(--spacing-lg);
    max-width: 16ch;
    overflow-wrap: break-word;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.ed-pagehero__lead {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    max-width: 52ch;
    margin: 0 0 var(--spacing-xl);
}

.ed-pagehero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.ed-pagehero__media {
    position: relative;
    margin: 0;
}

.ed-pagehero__media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

.ed-pagehero__media::after {
    content: '';
    position: absolute;
    right: -16px;
    bottom: -16px;
    width: 55%;
    height: 55%;
    border: 1px solid var(--accent-color);
    border-radius: 2px;
    z-index: 0;
}

/* =========================================================
   TILE GRID (feature columns, top-hairline editorial)
   ========================================================= */
.ed-cardgrid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
}

.ed-cardgrid--2 { --cols: 2; }
.ed-cardgrid--4 { --cols: 4; }

.ed-tile {
    position: relative;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.ed-tile::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-tile:hover::after { width: 42%; }

.ed-tile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.ed-tile__num {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.ed-tile__icon { color: var(--text-primary); }
.ed-tile__icon svg { display: block; width: 26px; height: 26px; }

.ed-tile h3,
.ed-tile h4 {
    font-size: var(--font-size-xl);
    margin: 0 0 var(--spacing-sm);
}

.ed-tile p {
    margin: 0 0 var(--spacing-md);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

.ed-tile p:last-child { margin-bottom: 0; }
.ed-tile__cta { margin-top: var(--spacing-md); }

/* =========================================================
   SPLIT (2-column text + aside)
   ========================================================= */
.ed-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.ed-split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.ed-split--wide-right { grid-template-columns: 0.85fr 1.15fr; }

.ed-split__title {
    font-size: var(--font-size-display-sm);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0 0 var(--spacing-lg);
    max-width: 16ch;
    overflow-wrap: break-word;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.ed-split__body p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin: 0 0 var(--spacing-md);
    max-width: 56ch;
}

/* a quiet bordered panel used as an aside (lists, "what we deliver") */
.ed-panel {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--bg-primary);
}

.ed-panel__title {
    font-size: var(--font-size-xl);
    margin: 0 0 var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

/* =========================================================
   CHECK LIST (gold tick)
   ========================================================= */
.ed-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ed-list li {
    position: relative;
    padding: var(--spacing-sm) 0 var(--spacing-sm) calc(var(--spacing-lg) + 4px);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
}

.ed-list li:last-child { border-bottom: none; }

.ed-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.95em;
    width: 13px;
    height: 7px;
    border-left: 1.5px solid var(--accent-color);
    border-bottom: 1.5px solid var(--accent-color);
    transform: rotate(-45deg);
}

/* =========================================================
   STAT ROW (compact inline figures)
   ========================================================= */
.ed-statrow {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    margin-top: var(--spacing-xl);
}

.ed-stat__num {
    font-family: var(--font-display);
    font-size: var(--font-size-3xl);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
}

.ed-stat__label {
    display: block;
    font-size: var(--font-size-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: var(--font-weight-medium);
    margin-top: var(--spacing-xs);
}

/* =========================================================
   PRICING
   ========================================================= */
.ed-prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: stretch;
}

.ed-price {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.ed-price:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.ed-price--featured {
    border-color: var(--text-primary);
    position: relative;
}

.ed-price__badge {
    position: absolute;
    top: 0;
    left: var(--spacing-xl);
    transform: translateY(-50%);
    background: var(--accent-color);
    color: #1d1d1d;
    font-size: var(--font-size-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
    padding: 4px 12px;
    border-radius: 2px;
}

.ed-price__name {
    font-size: var(--font-size-xl);
    margin: 0 0 var(--spacing-md);
}

.ed-price__amount {
    font-family: var(--font-display);
    font-size: var(--font-size-4xl);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--text-primary);
}

.ed-price__period {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-light);
    font-weight: var(--font-weight-normal);
    letter-spacing: 0;
}

.ed-price__note {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin: var(--spacing-sm) 0 var(--spacing-lg);
}

.ed-price .ed-list {
    margin-bottom: var(--spacing-xl);
}

.ed-price__cta { margin-top: auto; }

/* =========================================================
   FAQ (native accordion)
   ========================================================= */
.ed-faq {
    max-width: 880px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.ed-faq details { border-bottom: 1px solid var(--border-color); }

.ed-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.ed-faq summary:hover { color: var(--accent-hover); }
.ed-faq summary::-webkit-details-marker { display: none; }

.ed-faq summary::after {
    content: '+';
    font-family: var(--font-family);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-normal);
    color: var(--accent-color);
    line-height: 1;
    flex-shrink: 0;
}

.ed-faq details[open] summary::after { content: '\2013'; }

.ed-faq__a {
    margin: 0;
    padding: 0 0 var(--spacing-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    max-width: 68ch;
}

/* =========================================================
   CONTACT META ROWS + FORM CARD
   ========================================================= */
.ed-meta-rows { margin: var(--spacing-xl) 0 0; }

.ed-meta-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
}

.ed-meta-row:last-child { border-bottom: 1px solid var(--border-color); }

.ed-meta-row__icon { color: var(--text-primary); }
.ed-meta-row__icon svg { display: block; width: 24px; height: 24px; }

.ed-meta-row h4 { margin: 0 0 2px; font-size: var(--font-size-base); }
.ed-meta-row p { margin: 0; color: var(--text-secondary); }
.ed-meta-row a { color: var(--text-primary); border-bottom: 1px solid var(--accent-color); }
.ed-meta-row a:hover { color: var(--accent-hover); }

.ed-formcard {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--bg-primary);
}

.ed-formcard__title { font-size: var(--font-size-xl); margin: 0 0 var(--spacing-xs); }
.ed-formcard__sub { color: var(--text-secondary); margin: 0 0 var(--spacing-xl); }

/* =========================================================
   CTA — dark band over a brand texture (shared)
   ========================================================= */
.ed-cta {
    position: relative;
    background: var(--bg-dark);
    color: var(--text-white);
    text-align: center;
    overflow: hidden;
}

.ed-cta__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    z-index: 0;
}

.ed-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.55);
    z-index: 1;
}

.ed-cta__inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 8rem) var(--spacing-xl);
}

.ed-cta .eyebrow { justify-content: center; }

.ed-cta h2 {
    color: var(--text-white);
    font-size: var(--font-size-display-sm);
    line-height: 1.05;
    margin: 0 0 var(--spacing-lg);
    overflow-wrap: break-word;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.ed-cta__inner > p {
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin: 0 auto var(--spacing-xl);
    max-width: 48ch;
}

.ed-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
}

.ed-cta .btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #1d1d1d;
}

.ed-cta .btn-primary::before { display: none; }

.ed-cta .btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #1d1d1d;
}

/* ghost button on the dark scrim */
.ed-cta .btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-white);
}

.ed-cta .btn-ghost:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    transform: translateY(-2px);
}

.ed-cta__email {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--font-size-sm);
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 2px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.ed-cta__email:hover { color: var(--accent-color); border-color: var(--accent-color); }

/* =========================================================
   CAREERS — open positions
   ========================================================= */
.ed-positions { border-top: 1px solid var(--border-color); }

.ed-position {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-md) var(--spacing-xl);
    align-items: start;
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.ed-position__title { font-size: var(--font-size-2xl); margin: 0 0 var(--spacing-sm); }

.ed-position__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-light);
    letter-spacing: 0.04em;
}

.ed-position__desc {
    grid-column: 1 / -1;
    margin: var(--spacing-xs) 0 0;
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    max-width: 64ch;
}

.ed-tags { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); grid-column: 1 / -1; margin-top: var(--spacing-xs); }

.ed-tag {
    font-size: var(--font-size-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 4px 12px;
}

.ed-position__cta { align-self: center; white-space: nowrap; }

.ed-callout {
    text-align: center;
    max-width: 640px;
    margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}

.ed-callout h3 { font-size: var(--font-size-2xl); margin: 0 0 var(--spacing-md); }
.ed-callout p { color: var(--text-secondary); line-height: var(--line-height-relaxed); margin: 0 0 var(--spacing-lg); }

@media (max-width: 980px) {
    .ed-cardgrid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .ed-position { grid-template-columns: 1fr; }
    .ed-position__cta { justify-self: start; }
}

/* =========================================================
   HOMEPAGE-SPECIFIC
   ========================================================= */
.ed-hero {
    position: relative;
    background: var(--bg-primary);
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 8vw, 7rem);
    overflow: hidden;
}

.ed-hero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.ed-hero__title {
    font-size: var(--font-size-display);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-weight: 560;
    margin: 0 0 var(--spacing-lg);
    max-width: 15ch;
    overflow-wrap: break-word;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.ed-hero__lead {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    max-width: 48ch;
    margin: 0 0 var(--spacing-xl);
}

.ed-hero__cta { display: flex; flex-wrap: wrap; gap: var(--spacing-md); }

.ed-hero__meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin: var(--spacing-xxl) 0 0;
    padding: var(--spacing-lg) 0 0;
    border-top: 1px solid var(--border-color);
}

.ed-hero__meta li {
    font-size: var(--font-size-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: var(--font-weight-medium);
    position: relative;
    padding-left: 1rem;
}

.ed-hero__meta li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-color);
}

.ed-hero__media { position: relative; margin: 0; }

.ed-hero__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

.ed-hero__media::after {
    content: '';
    position: absolute;
    right: -16px;
    bottom: -16px;
    width: 58%;
    height: 58%;
    border: 1px solid var(--accent-color);
    border-radius: 2px;
    z-index: 0;
}

/* homepage services (numbered) */
.ed-svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
}

.ed-svc {
    position: relative;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.ed-svc::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-svc:hover::after { width: 42%; }

.ed-svc__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.ed-svc__num {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.ed-svc__icon { color: var(--text-primary); }
.ed-svc__icon svg { display: block; width: 26px; height: 26px; }
.ed-svc h3 { font-size: var(--font-size-xl); margin: 0 0 var(--spacing-sm); }
.ed-svc p { margin: 0; color: var(--text-secondary); line-height: var(--line-height-relaxed); }

/* homepage figures band */
.ed-figures {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ed-figures__grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ed-figure {
    padding: clamp(2rem, 4vw, 3.5rem) var(--spacing-lg);
    text-align: center;
    border-left: 1px solid var(--border-color);
}

.ed-figure:first-child { border-left: none; }

.ed-figure__num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.ed-figure__label {
    font-size: var(--font-size-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: var(--font-weight-medium);
}

/* homepage why-us */
.ed-why__inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.ed-why__aside { position: sticky; top: calc(var(--header-height) + var(--spacing-xl)); }

.ed-why__title {
    font-size: var(--font-size-display-sm);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0 0 var(--spacing-md);
    max-width: 14ch;
    overflow-wrap: break-word;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.ed-why__intro {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin: 0 0 var(--spacing-xl);
    max-width: 34ch;
}

.ed-why__media { margin: 0; }

.ed-why__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
}

.ed-reasons { margin: 0; }

.ed-reason {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-color);
}

.ed-reason:last-child { border-bottom: 1px solid var(--border-color); }

.ed-reason__icon { color: var(--text-primary); transition: color var(--transition-normal); }
.ed-reason__icon svg { display: block; width: 28px; height: 28px; }
.ed-reason:hover .ed-reason__icon { color: var(--accent-color); }
.ed-reason h3 { font-size: var(--font-size-xl); margin: 0 0 var(--spacing-sm); }
.ed-reason p { margin: 0; color: var(--text-secondary); line-height: var(--line-height-relaxed); }

/* =========================================================
   STAGGERED REVEAL (uses the global .fade-in observer)
   ========================================================= */
.ed-svc.fade-in:nth-child(2),
.ed-tile.fade-in:nth-child(2) { transition-delay: 0.09s; }
.ed-svc.fade-in:nth-child(3),
.ed-tile.fade-in:nth-child(3) { transition-delay: 0.18s; }
.ed-tile.fade-in:nth-child(4) { transition-delay: 0.27s; }
.ed-reason.fade-in:nth-child(2) { transition-delay: 0.07s; }
.ed-reason.fade-in:nth-child(3) { transition-delay: 0.14s; }
.ed-reason.fade-in:nth-child(4) { transition-delay: 0.21s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
    .ed-hero__inner,
    .ed-pagehero__inner { grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 3rem); }
    /* Hero image -> compact full-width banner ABOVE the text on mobile. */
    .ed-hero__media,
    .ed-pagehero__media { order: -1; max-width: none; }
    .ed-hero__media img,
    .ed-pagehero__media img { aspect-ratio: 3 / 2; }
    .ed-hero__media::after { display: none; }
    .ed-head { grid-template-columns: 1fr; align-items: start; gap: var(--spacing-md); }
    .ed-why__inner { grid-template-columns: 1fr; }
    .ed-why__aside { position: static; }
    .ed-why__media { display: none; }
    .ed-split,
    .ed-split--wide-left,
    .ed-split--wide-right { grid-template-columns: 1fr; }
    .ed-prices { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

/* Collapse the multi-column grids to a single column BEFORE the iPad-portrait
   width (768px), aligned with style.css's 768px breakpoint. At 720px the 3-col
   card/service grids stayed active through 721-768px and got far too cramped. */
@media (max-width: 768px) {
    .ed-svc-grid,
    .ed-cardgrid,
    .ed-cardgrid--4 { grid-template-columns: 1fr; gap: 0; }
    .ed-svc,
    .ed-tile { padding-bottom: var(--spacing-xl); }
    .ed-cardgrid--2 { grid-template-columns: 1fr; }
    .ed-figures__grid { grid-template-columns: 1fr 1fr; }
    .ed-figure:nth-child(odd) { border-left: none; }
    .ed-figure:nth-child(n+3) { border-top: 1px solid var(--border-color); }
}

@media (max-width: 480px) {
    .ed-hero__meta { gap: var(--spacing-md); }
}

/* Tablet / small laptop (e.g. iPad incl. 12.9" landscape) — two columns are
   still active. The tall hero image vertically centred the copy and pushed it
   down. Fix: a fixed, narrow image column (image fills it, so it stays small and
   never hangs below the text), columns top-aligned, and a generous gap. */
@media (min-width: 981px) and (max-width: 1400px) {
    .ed-hero__inner,
    .ed-pagehero__inner {
        align-items: start;
        grid-template-columns: 1fr minmax(0, 360px);
        gap: clamp(2.5rem, 6vw, 5rem);
    }
    .ed-hero__media,
    .ed-pagehero__media {
        max-width: none;
        margin: 0;
    }
}

/* ── Key facts: scannable, citable specifics (SEO/GEO) ───────────── */
.ed-keyfacts__title {
    font-family: var(--font-display);
    font-size: var(--font-size-3xl);
    margin: 0 0 var(--spacing-sm);
}
.ed-keyfacts__lead {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    max-width: 62ch;
    margin: 0 0 var(--spacing-2xl);
}
.ed-keyfacts__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}
.ed-keyfact {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}
.ed-keyfact__icon {
    flex: 0 0 auto;
    color: var(--accent-color);
}
.ed-keyfact__icon svg {
    display: block;
    width: 28px;
    height: 28px;
}
.ed-keyfact p {
    margin: 0;
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}
@media (max-width: 768px) {
    .ed-keyfacts__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Auto-hyphenation is kept only for German (long compound words). In EN/ES it
   wrongly split the brand name ("Dy-namics"), so headings default to manual
   above; overflow-wrap still prevents overflow in every language. */
html:lang(de) :is(.ed-hero__title, .ed-pagehero__title, .ed-head__title,
    .ed-split__title, .ed-why__title, .ed-cta h2) {
    -webkit-hyphens: auto;
    hyphens: auto;
}
