/* Aeroflot — Page Architecture; isolated from the shared portfolio shell. */
.af-case {
  --af-blue: #001e4e;
  --af-orange: #ee7623;
  --af-wash: #f0f3f7;
  --af-muted: #53647a;
  --af-line: #d8e0e8;
  background: white;
  color: var(--af-blue);
}
.af-case .af-wrap {
  width: 92%;
  max-width: 1480px;
  margin-inline: auto;
}
.af-case figure, .af-case dl, .af-case p { margin: 0; }
.af-case h1, .af-case h2, .af-case h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.af-case p { font-size: 17px; line-height: 1.75; text-wrap: pretty; }
.af-case a:focus-visible { outline: 3px solid var(--af-orange); outline-offset: 6px; }
.af-case .af-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* 01 — The large text is a heading, never a substitute logo. */
.af-case .af-hero { background: var(--af-blue); color: white; padding: 28px 0 36px; }
.af-case .af-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.af-case .af-back, .af-case .af-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}
.af-case .af-back:hover, .af-case .af-text-link:hover, .af-case .af-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.af-case .af-hero h1 {
  margin-top: clamp(64px, 9vw, 145px);
  font-size: clamp(48px, 12.7vw, 200px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .95;
}
.af-case .af-hero-story {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: 40px;
  margin-top: clamp(42px, 6vw, 90px);
}
.af-case .af-hero-story h2 { font-size: clamp(29px, 4.1vw, 64px); line-height: 1.12; }
.af-case .af-lead { max-width: 450px; font-size: clamp(17px, 1.55vw, 23px); line-height: 1.55; color: #d6e1f1; }
.af-case .af-hero-bottom {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: end;
  gap: 32px;
  border-top: 1px solid #ffffff38;
  padding-top: 28px;
  margin-top: 64px;
}
.af-case .af-role dt { margin-bottom: 10px; color: #a8bcd6; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.af-case .af-role dd { margin: 0; font-size: 13px; line-height: 1.75; }
.af-case .af-hero-mark {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  color: #b1c1d7;
  font-size: 12px;
}

/* Shared chapter structure and material insertion areas. */
.af-case .af-section { padding-block: clamp(72px, 9vw, 144px); scroll-margin-top: 30px; }
.af-case .af-section-head {
  display: grid;
  grid-template-columns: 1fr 2fr 1.4fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 52px;
}
.af-case .af-section-head .af-eyebrow { padding-top: 9px; }
.af-case .af-section-head h2 { font-size: clamp(34px, 4.4vw, 68px); line-height: 1.08; }
.af-case .af-section-head p { padding-top: 5px; color: var(--af-muted); font-size: 15px; }
.af-case .af-slot {
  padding: clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  background: var(--af-wash);
}
.af-case .af-placeholder-label { font-size: 10px; line-height: 1.5; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.af-case .af-slot-title {
  display: block;
  max-width: 100%;
  font-size: clamp(26px, 4.3vw, 66px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.af-case .af-slot-meta { font-size: 12px; line-height: 1.65; color: var(--af-muted); }
.af-case .af-slot-logo { min-height: clamp(330px, 39vw, 620px); }
.af-case .af-caption { display: flex; justify-content: space-between; gap: 12px 28px; padding-top: 16px; font-size: 11px; line-height: 1.6; color: var(--af-muted); }
.af-case .af-reading-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 60px; }
.af-case .af-reading-row h3 { font-size: clamp(28px, 3.2vw, 48px); line-height: 1.15; }
.af-case .af-reading-copy { max-width: 580px; }
.af-case .af-reading-copy p + p { margin-top: 18px; }

/* 03 — The dark chapter distinguishes the structural layer. */
.af-case .af-grid-section { background: var(--af-blue); color: white; }
.af-case .af-grid-section .af-section-head p, .af-case .af-grid-section .af-caption { color: #bfcee1; }
.af-case .af-slot-grid { min-height: clamp(340px, 38vw, 590px); background: white; color: var(--af-blue); }
.af-case .af-logic-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.af-case .af-logic-list article { border-top: 1px solid #ffffff38; padding-top: 22px; }
.af-case .af-logic-list .af-eyebrow { color: #b1c1d7; }
.af-case .af-logic-list h3 { font-size: 29px; margin: 16px 0 14px; }
.af-case .af-logic-list p { max-width: 340px; font-size: 14px; color: #d6e1f1; }

/* 04 — The frame stays separate from the calculation grid. */
.af-case .af-slot-frame { min-height: clamp(340px, 37vw, 570px); }
.af-case .af-direct { border-top: 1px solid var(--af-line); margin-top: 48px; padding-top: 32px; }
.af-case .af-direct h3 { font-size: clamp(38px, 5vw, 76px); }

/* 05 — A small orange accent; source palettes will replace the slot. */
.af-case .af-colour-section { background: var(--af-wash); }
.af-case .af-slot-colour { min-height: clamp(300px, 30vw, 460px); border-top: 5px solid var(--af-orange); background: white; }

/* 06 — One compact proof of application. */
.af-case .af-environment-section { padding-block: 80px; }
.af-case .af-environment-layout { display: grid; grid-template-columns: .85fr 1.4fr; align-items: center; gap: 7%; }
.af-case .af-environment-copy h2 { font-size: clamp(32px, 3.6vw, 54px); line-height: 1.12; margin-top: 28px; }
.af-case .af-environment-copy p { max-width: 430px; margin-top: 24px; font-size: 15px; color: var(--af-muted); }
.af-case .af-slot-environment { min-height: 285px; padding: 30px; }
.af-case .af-slot-environment .af-slot-title { font-size: clamp(28px, 3vw, 43px); }

/* 07 — Conclusion and portfolio navigation. */
.af-case .af-final { background: var(--af-blue); color: white; padding-block: clamp(70px, 8vw, 120px); }
.af-case .af-final h2 { margin-top: 36px; max-width: 1200px; font-size: clamp(38px, 6.5vw, 100px); line-height: 1.08; }
.af-case .af-final-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 56px; }
.af-case .af-final-bottom > p { max-width: 520px; color: #d6e1f1; }
.af-case .af-result-list > div { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding-block: 15px; border-top: 1px solid #ffffff38; font-size: 13px; line-height: 1.65; }
.af-case .af-result-list dt { color: #b1c1d7; }
.af-case .af-result-list dd { margin: 0; }
.af-case .af-next { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; padding-block: 58px; }
.af-case .af-next a { display: grid; grid-template-columns: 1fr auto; gap: 12px; min-height: 100px; padding: 18px 0; border-bottom: 1px solid var(--af-line); }
.af-case .af-next a > span:first-child { grid-column: 1 / -1; font-size: 11px; color: var(--af-muted); }
.af-case .af-next strong { font-size: clamp(25px, 3vw, 42px); font-weight: 500; letter-spacing: -.04em; }
.af-case .af-next a > span:last-child { align-self: center; font-size: 26px; }
.af-case .af-next a:hover { text-decoration: none; border-bottom-color: var(--af-blue); }
.af-case .af-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0 36px; border-top: 1px solid var(--af-line); color: var(--af-muted); font-size: 11px; line-height: 1.6; }
.af-case .af-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Tablet: hierarchy plus full-width evidence. */
@media (max-width: 1050px) {
  .af-case .af-section-head { grid-template-columns: 1fr 1fr; gap: 24px; }
  .af-case .af-section-head .af-eyebrow { grid-column: 1 / -1; padding-top: 0; }
  .af-case .af-hero-bottom { grid-template-columns: 1.2fr 1fr; }
  .af-case .af-hero-bottom .af-text-link { grid-column: 1 / -1; justify-self: start; }
  .af-case .af-reading-row, .af-case .af-final-bottom { gap: 40px; }
  .af-case .af-logic-list { gap: 24px; }
}

/* Mobile: every chapter becomes one ordered reading column. */
@media (max-width: 700px) {
  .af-case .af-hero { padding-top: 16px; }
  .af-case .af-hero-top { flex-wrap: wrap; gap: 12px; }
  .af-case .af-hero h1 { margin-top: 60px; font-size: 12.3vw; }
  .af-case .af-hero-story, .af-case .af-hero-bottom, .af-case .af-section-head,
  .af-case .af-reading-row, .af-case .af-logic-list, .af-case .af-environment-layout,
  .af-case .af-final-bottom, .af-case .af-next {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .af-case .af-hero-story { margin-top: 36px; }
  .af-case .af-hero-bottom { margin-top: 40px; gap: 22px; }
  .af-case .af-role dd br { display: none; }
  .af-case .af-section-head { margin-bottom: 32px; gap: 22px; }
  .af-case .af-section-head p { max-width: 520px; padding-top: 0; }
  .af-case .af-section-head h2 { font-size: clamp(32px, 8vw, 50px); }
  .af-case .af-slot { padding: 24px; gap: 28px; }
  .af-case .af-slot-title { font-size: clamp(27px, 6.7vw, 43px); overflow-wrap: break-word; }
  .af-case .af-slot-logo, .af-case .af-slot-grid, .af-case .af-slot-frame { min-height: 330px; }
  .af-case .af-slot-colour { min-height: 300px; }
  .af-case .af-slot-environment { min-height: 240px; }
  .af-case .af-caption { flex-direction: column; gap: 4px; font-size: 10px; }
  .af-case .af-reading-row { padding-top: 38px; gap: 24px; }
  .af-case .af-reading-copy p, .af-case .af-final-bottom > p { font-size: 15px; }
  .af-case .af-logic-list { margin-top: 40px; }
  .af-case .af-logic-list h3 { margin-top: 10px; }
  .af-case .af-logic-list p { max-width: none; }
  .af-case .af-environment-section { padding-block: 64px; }
  .af-case .af-environment-copy h2 { margin-top: 22px; }
  .af-case .af-final h2 { font-size: clamp(34px, 8.4vw, 58px); margin-top: 28px; }
  .af-case .af-final-bottom { margin-top: 32px; }
  .af-case .af-result-list > div { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; font-size: 12px; }
  .af-case .af-next { padding-block: 32px; gap: 12px; }
  /* The shared nav style hides its last mobile link; case navigation shows both. */
  .af-case .af-next a:last-child { display: grid; }
  .af-case .af-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .af-case *, .af-case *::before, .af-case *::after { animation: none !important; transition: none !important; }
}

/* Authentic logo, exported from the supplied process PDF. */
.af-case .af-hero {background:white;color:var(--af-blue)}
.af-case .af-hero h1 {font-size:0;line-height:1;letter-spacing:0}
.af-case .af-hero h1 img {display:block;width:100%;height:auto;max-width:1250px}
.af-case .af-hero .af-lead,.af-case .af-role dt {color:var(--af-muted)}
.af-case .af-hero-bottom {border-color:var(--af-line)}

.af-case-nav {display:flex;flex-wrap:wrap;gap:12px 30px;border-top:1px solid #d8e0e8;border-bottom:1px solid #d8e0e8;padding:20px 0;font-size:14px}
.af-case-nav a {padding:7px 0;min-height:34px}
.af-case-nav a:last-child {display:flex!important}
.af-case-nav a:hover {text-decoration:underline;text-underline-offset:5px}
@media(max-width:760px){.af-case-nav{gap:5px 22px;font-size:12px}}

/* Floating local menu uses the Aeroflot palette. */
body.aeroflot-page .floating-menu {
  background: #001e4e;
  color: #fff;
  border-color: #001e4e;
}
