

:root {
  --ed-measure: 68ch;
  --ed-gap: clamp(20px, 2.4vw, 32px);
}

.ed-wrap { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.ed-section { padding-block: clamp(36px, 4.5vw, 64px); }

.ed-hero {
  position: relative;
  min-height: clamp(340px, 46vw, 540px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.ed-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%; z-index: -2; }

.ed-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(11,10,16,.72) 0%, rgba(11,10,16,.42) 38%, rgba(11,10,16,0) 68%),
    linear-gradient(180deg, rgba(11,10,16,0) 45%, rgba(11,10,16,.5) 100%);
}
.ed-hero-in { padding: clamp(28px, 4vw, 56px) var(--gutter); max-width: var(--container-max); margin-inline: auto; width: 100%; }

.ed-hero-eyebrow {
  margin: 0 0 7px;
  font-size: var(--text-eyebrow); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--sl-cyan-200);
}
.ed-hero-h {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h2); line-height: var(--lh-h2);
  letter-spacing: var(--track-display);
  color: var(--colors-loud-text);
  max-width: 16ch;
}
.ed-hero-sub {
  margin: 10px 0 0; max-width: 52ch;
  font-size: var(--text-lead); line-height: var(--lh-lead);
  color: var(--sl-neutral-200);
}

.ed-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--ed-gap); }
.ed-chip {
  padding: 9px 16px;
  border: 1.5px solid var(--colors-border-default);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: var(--text-small); font-weight: 700;
  color: var(--colors-text-subtle);
  cursor: pointer;
  transition: background .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out);
}
.ed-chip:hover { border-color: var(--sl-cyan-600); color: var(--colors-text-default); }
.ed-chip.on { background: var(--sl-ink); border-color: var(--sl-ink); color: var(--colors-text-inverse); }

.ed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--ed-gap);
}

.ed-card { display: flex; flex-direction: column; }
.ed-card[hidden] { display: none; }

.ed-card-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card);
  margin-bottom: 16px;
}

.ed-card-media > img { object-position: center 58%; }
.ed-card:hover .ed-card-media.is-ready > img { transform: scale(1.03); }
.ed-card-media.is-ready > img { transition: opacity .55s var(--ease-out), transform .6s var(--ease-out); }

.ed-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--colors-text-muted);
}
.ed-topic { color: var(--sl-cyan-700); }
.ed-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.ed-card-h {
  margin: 10px 0 0;
  font-size: 1.3125rem; line-height: 1.25; font-weight: 800;
  letter-spacing: -.015em;
  color: var(--colors-text-default);
}
.ed-card:hover .ed-card-h { color: var(--sl-cyan-700); }
.ed-card-p { margin: 10px 0 0; color: var(--colors-text-subtle); line-height: var(--lh-body); }

.ed-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.ed-feature .ed-card-media { aspect-ratio: 4 / 3; margin: 0; }
.ed-feature .ed-card-h { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; margin-top: 14px; }
.ed-feature .ed-card-p { font-size: var(--text-lead); }

@media (max-width: 860px) {
  .ed-feature { grid-template-columns: 1fr; }
}

.ed-empty { padding: 48px 0; color: var(--colors-text-muted); }

.ed-post-head { padding-block: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.ed-post-head .ed-meta { justify-content: flex-start; }

.ed-post-h {
  margin: 16px 0 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: var(--text-h2); line-height: var(--lh-h2);
  letter-spacing: var(--track-display);
  color: var(--colors-text-default);
}
.ed-post-standfirst {
  margin: 12px 0 0; max-width: var(--ed-measure);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5;
  color: var(--colors-text-subtle);
}

.ed-post-media {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-panel);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.ed-post-media > img { object-position: center 62%; }

.ed-article { max-width: var(--ed-measure); font-size: 1.0625rem; line-height: 1.7; color: var(--colors-text-body); }
.ed-article > * + * { margin-top: 1.25em; }
.ed-article h2 {
  margin-top: 2em; margin-bottom: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.2; font-weight: 800;
  letter-spacing: -.02em;
}
.ed-article h3 { margin-top: 1.6em; margin-bottom: 0; font-size: 1.1875rem; font-weight: 800; }
.ed-article h2 + p, .ed-article h3 + p { margin-top: .6em; }
.ed-article a { color: var(--colors-quiet-link); text-decoration: underline; text-underline-offset: 3px; }
.ed-article ul, .ed-article ol { padding-left: 1.3em; }
.ed-article li + li { margin-top: .5em; }
.ed-article strong { font-weight: 800; }

.ed-article blockquote {
  margin-inline: 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--sl-cyan-400);
  font-size: 1.1875rem; line-height: 1.5;
  color: var(--colors-text-default);
}

.ed-callout {
  padding: 22px 24px;
  border-radius: var(--radius-card);
  background: var(--sl-cyan-50);
  border: 1px solid var(--sl-cyan-100);
}
.ed-callout p { margin: 0; }
.ed-callout p + p { margin-top: .7em; }
.ed-callout-k {
  display: block; margin-bottom: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sl-cyan-800);
}

.ed-post-foot {
  max-width: var(--ed-measure);
  margin-top: clamp(40px, 5vw, 64px); padding-top: 28px;
  border-top: 1px solid var(--colors-border-default);
  color: var(--colors-text-muted); font-size: var(--text-small);
}

@media (max-width: 900px) { .ct-top { grid-template-columns: 1fr; } .ct-media { order: -1; } }

.ct-head {
  text-align: center;
  padding-top: calc(var(--header-h-top) + clamp(26px, 3.6vw, 54px));
  padding-bottom: clamp(18px, 2.4vw, 30px);
}
.ct-head .ct-h1 { margin-inline: auto; }
.ct-head .ct-lede { margin-inline: auto; max-width: 40ch; }

.ct-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h3); line-height: var(--lh-h3);
  letter-spacing: var(--track-display);
  color: var(--colors-text-default);
}

.ct-h2 + .ct-sub { margin-top: 9px; }
.ct-sub {
  margin: 0; max-width: 60ch;
  font-size: var(--text-lead); line-height: var(--lh-lead);
  color: var(--colors-text-subtle);
}

.ct-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h2); line-height: var(--lh-h2); letter-spacing: var(--track-display);
  color: var(--colors-text-default);
}
.ct-lede { margin: 10px 0 0; max-width: 46ch; font-size: var(--text-lead); line-height: var(--lh-lead); color: var(--colors-text-subtle); }

.ct-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ed-gap); }
@media (max-width: 860px) { .ct-routes { grid-template-columns: 1fr; } }

.ct-route {
  padding: 26px 24px;
  border: 1px solid var(--colors-border-default);
  border-radius: var(--radius-card);
  background: var(--colors-bg-container);
  transition: transform .18s var(--ease-out), border-color .18s var(--ease-out);
}
.ct-route:hover { transform: translateY(-3px); border-color: var(--sl-cyan-400); }
.ct-route h3 { margin: 14px 0 0; font-size: 1.125rem; font-weight: 800; }
.ct-route p { margin: 8px 0 0; color: var(--colors-text-subtle); line-height: var(--lh-body); }
.ct-route-ico { width: 26px; height: 26px; color: var(--sl-cyan-700); }

.ct-form-sec { background: var(--sl-violet-50); }
.ct-form-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .ct-form-grid { grid-template-columns: 1fr; } }

.ct-form { display: grid; gap: 18px; background: var(--colors-bg-container); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-panel); border: 1px solid var(--colors-border-default); }

.ct-field { display: grid; gap: 7px; }
.ct-field label { font-size: var(--text-small); font-weight: 700; color: var(--colors-text-default); }
.ct-hint { font-size: 12px; color: var(--colors-text-muted); font-weight: 500; }

.ct-input, .ct-select, .ct-textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit; font-size: 1rem;
  color: var(--colors-text-default);
  background: var(--colors-bg-page);
  border: 1.5px solid var(--colors-border-default);
  border-radius: 12px;
  transition: border-color .16s var(--ease-out), box-shadow .16s var(--ease-out);
}
.ct-textarea { min-height: 148px; resize: vertical; line-height: 1.55; }
.ct-input:focus, .ct-select:focus, .ct-textarea:focus {
  outline: none;
  border-color: var(--sl-cyan-500);
  box-shadow: 0 0 0 4px rgba(0, 202, 224, .16);
}
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .ct-row { grid-template-columns: 1fr; } }

.ct-submit {
  justify-self: start;
  padding: 15px 30px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--sl-cyan-700); color: #FFF;
  font-weight: 800; font-size: 1rem; cursor: pointer;
  transition: transform .16s var(--ease-out), background .16s var(--ease-out);
}
.ct-submit:hover { background: var(--sl-cyan-800); transform: translateY(-2px); }
.ct-submit[disabled] { opacity: .6; cursor: progress; transform: none; }

.ct-legal { margin: 0; font-size: 12px; line-height: 1.5; color: var(--colors-text-muted); }
.ct-legal a { color: var(--colors-quiet-link); text-decoration: underline; }

.ct-err { font-size: 12px; font-weight: 700; color: var(--sl-error-on-paper); }
.ct-field.is-bad .ct-input,
.ct-field.is-bad .ct-select,
.ct-field.is-bad .ct-textarea { border-color: var(--sl-error-on-paper); }

.ct-sent { text-align: left; padding: clamp(24px, 3vw, 40px); }
.ct-sent-tick {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--sl-cyan-400); color: var(--sl-ink);
  display: grid; place-items: center;
  animation: ct-pop .45s var(--ease-out) both;
}
@keyframes ct-pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.ct-sent h3 { margin: 18px 0 0; font-size: 1.375rem; font-weight: 800; }
.ct-sent p { margin: 10px 0 0; color: var(--colors-text-subtle); line-height: var(--lh-body); }

@media (prefers-reduced-motion: reduce) {
  .ct-route:hover { transform: none; }
  .ct-submit:hover { transform: none; }
  .ct-sent-tick { animation: none; }
  .ed-card:hover .ed-card-media.is-ready > img { transform: none; }
}
