/* ==========================================================================
   Anadolu Casting — Editorial theme (middle-of-page sections)
   Calm grey/cream sections, rounded cards, spec table, photo cards, timeline.
   Loaded after anadolu.css so it overrides the earlier section treatments.
   ========================================================================== */
.home-casting {
  --title-font: "Lama Sans", "Space Grotesk", sans-serif; /* headings */
  --ed-grey: #ececea;
  --ed-cream: #e9e1d3;
  --ed-ink: #1b1b1b;
  --ed-ink-soft: #54544f;
  --ed-card: #262626;
  --ed-accent: #BF0A30; /* American flag red */
  --ed-line: #d9d9d4;
  --ed-r: 22px;
  --ed-r-lg: 34px;
  /* warm grey page behind the rounded section panels:
     - top layer: white→grey over the hero region (white at the very top)
     - bottom layer: grey gradually fades back to white behind the footer */
  background-color: #e6e9ee;
  background-image:
    linear-gradient(to top, #ffffff 0%, #ffffff 46%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 30%, #e6e9ee 100%);
  background-position: bottom center, top center;
  background-size: 100% clamp(1100px, 125vh, 1550px), 100% clamp(860px, 130vh, 1320px);
  background-repeat: no-repeat, no-repeat;
  /* breathing room above the header */
  padding-top: clamp(6px, 0.9vw, 14px);
}

/* Neutralize the previous dark/tinted treatments on the reused section IDs */
.home-casting #about-sec.ed-section,
.home-casting #service-sec.ed-section,
.home-casting #materials-sec.ed-section,
.home-casting #process-sec.ed-section {
  color: var(--ed-ink);
  padding: clamp(56px, 7.5vw, 112px) 0;
}
.home-casting #service-sec.ed-section::before,
.home-casting #process-sec.ed-section::before { content: none; display: none; }
.home-casting #about-sec.ed-bg-paper,
.home-casting #process-sec.ed-bg-paper { background: #fff; }
.home-casting #service-sec.ed-bg-grey,
.home-casting #materials-sec.ed-bg-grey { background: var(--ed-grey); }

.ed-section {
  padding: clamp(56px, 7.5vw, 112px) 0;
  margin: clamp(10px, 1.3vw, 16px) clamp(8px, 1.8vw, 22px);
  border-radius: clamp(22px, 2.4vw, 40px);
  overflow: hidden;
}
.ed-bg-paper { background: #fff; }
.ed-bg-grey { background: var(--ed-grey); }
.ed-bg-cream { background: var(--ed-cream); }

/* Shared type */
.ed-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--title-font); font-weight: 700; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ed-ink); }
.ed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ed-accent); flex-shrink: 0; }
.ed-h2 { font-family: var(--title-font); color: var(--ed-ink); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.55rem, 1rem + 2.2vw, 2.9rem); line-height: 1.12; margin: 0; }
.ed-lead { color: var(--ed-ink-soft); font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem); line-height: 1.7; margin: 22px 0 30px; max-width: 560px; }
.ed-head { margin-bottom: clamp(28px, 4vw, 52px); }
.ed-head .ed-eyebrow { margin-bottom: 16px; }

/* Heading block with an image beside the text */
.ed-head-media {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 4vw, 64px); align-items: center;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.ed-head-media .ed-head { margin-bottom: 0; }
.ed-head-media .ed-head .ed-lead { margin-bottom: 0; }
.ed-head-media__img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--ed-r);
}
@media (max-width: 860px) {
  .ed-head-media { grid-template-columns: 1fr; gap: 20px; }
  .ed-head-media__img { aspect-ratio: 16 / 10; max-width: 520px; }
}

/* ==========================================================================
   Hero (editorial) — full image-background panel, matching the section panels'
   width + radius, with the content overlaid.
   ========================================================================== */
.ed-hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: clamp(460px, 68vh, 660px);
  /* same width (side margins) + radius as .ed-section */
  margin: clamp(10px, 1.3vw, 16px) clamp(8px, 1.8vw, 22px);
  border-radius: clamp(22px, 2.4vw, 40px);
  overflow: hidden;
  background-size: cover; background-position: center;
  color: #fff;
}
.ed-hero__overlay {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(92deg, rgba(8, 10, 16, 0.88) 0%, rgba(8, 10, 16, 0.62) 42%, rgba(8, 10, 16, 0.2) 76%, rgba(8, 10, 16, 0.45) 100%),
    linear-gradient(0deg, rgba(8, 10, 16, 0.7) 0%, transparent 42%);
}
.ed-hero .ac-container { position: relative; z-index: 1; width: 100%; padding-top: clamp(70px, 12vh, 130px); padding-bottom: clamp(38px, 6vh, 64px); }
.ed-hero__content { max-width: 680px; }
.ed-hero__content .ed-eyebrow { color: #fff; }
.ed-hero__content .ed-eyebrow .ed-dot { background: var(--ed-accent); }
.ed-hero__title {
  font-family: var(--title-font); color: #fff; font-weight: 800;
  font-size: clamp(2.3rem, 1rem + 4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.025em;
  margin: 22px 0 0; text-shadow: 0 2px 26px rgba(0, 0, 0, 0.35);
}
.ed-hero__title .hl { color: var(--ed-accent); }
.ed-hero__text { color: #dde2ec; font-size: clamp(1rem, 0.96rem + 0.2vw, 1.14rem); line-height: 1.66; margin: 22px 0 0; max-width: 540px; }
.ed-hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(28px, 4vh, 40px); }
.ed-hero__metrics { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.4vw, 36px); margin-top: clamp(26px, 4vh, 44px); }
.ed-hero__metrics > div { display: flex; flex-direction: column; }
.ed-hero__metrics > div + div { border-left: 1px solid rgba(255, 255, 255, 0.22); padding-left: clamp(18px, 2.4vw, 36px); }
.ed-hero__metrics strong { font-family: var(--title-font); font-weight: 800; color: #fff; font-size: clamp(1.4rem, 1rem + 1vw, 2rem); line-height: 1; }
.ed-hero__metrics span { color: #b9c0cd; font-size: 0.8rem; margin-top: 5px; }

@media (max-width: 575px) {
  .ed-hero { min-height: clamp(440px, 82vh, 560px); }
  .ed-hero__metrics strong { font-size: 1.35rem; }
  .ed-hero__metrics span { font-size: 0.72rem; }
}

/* ---- Video background hero ---- */
.ed-hero--video { background-color: #0b0e16; }
.ed-hero__video {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; background: #0b0e16;
}
/* a touch more contrast over moving footage */
.ed-hero--video .ed-hero__overlay {
  background:
    linear-gradient(92deg, rgba(8, 10, 16, 0.92) 0%, rgba(8, 10, 16, 0.66) 44%, rgba(8, 10, 16, 0.26) 78%, rgba(8, 10, 16, 0.5) 100%),
    linear-gradient(0deg, rgba(8, 10, 16, 0.78) 0%, transparent 46%);
}

/* Animated gradient on the highlighted word */
.ed-hero__title .hl {
  background: linear-gradient(100deg, #ff5b73 0%, #BF0A30 46%, #ff8a9c 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: edHlShift 6s ease-in-out infinite;
}
@keyframes edHlShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Capability chips */
.ed-hero__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 24px 0 0; padding: 0;
}
.ed-hero__tags li {
  display: inline-flex; align-items: center;
  font-family: var(--title-font); font-weight: 600; font-size: 12.5px; letter-spacing: 0.04em;
  color: #eef1f6; padding: 7px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.ed-hero__tags li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ed-accent); margin-right: 9px; flex-shrink: 0;
}
.ed-hero__tags li:hover { background: rgba(191, 10, 48, 0.22); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

/* Glassy stat bar */
.ed-hero__metrics {
  display: inline-flex; flex-wrap: wrap; gap: 0;
  margin-top: clamp(28px, 4vh, 44px); padding: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ed-hero__metrics > div { padding: 10px clamp(16px, 2vw, 26px); }
.ed-hero__metrics > div + div { border-left: 1px solid rgba(255, 255, 255, 0.16); }

/* Vertical scroll cue */
.ed-hero__scroll {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(26px, 5vh, 54px); z-index: 2;
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  color: #cdd5e4; text-decoration: none;
  font-family: var(--title-font); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  writing-mode: vertical-rl;
  transition: color 0.25s var(--ease);
}
.ed-hero__scroll-bar {
  writing-mode: horizontal-tb; width: 1px; height: 54px;
  background: rgba(255, 255, 255, 0.28); position: relative; overflow: hidden;
}
.ed-hero__scroll-bar::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--ed-accent); animation: edScrollLine 1.8s var(--ease) infinite;
}
@keyframes edScrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(240%); } }
.ed-hero__scroll:hover { color: #fff; }

@media (max-width: 575px) {
  .ed-hero__metrics { gap: 10px 0; }
  .ed-hero__metrics > div { padding: 6px 14px; }
}
@media (max-width: 767px) {
  .ed-hero__scroll { display: none; }
}

/* ==========================================================================
   Hero — premium cinematic upgrade
   Richer graded overlay + red ambient glow, film-grain, inset frame,
   glass eyebrow with pulsing dot, larger headline and a staggered entrance.
   ========================================================================== */
.ed-hero--video { min-height: clamp(540px, 82vh, 800px); }

/* Cinematic grade + subtle brand-red glow toward the copy (bottom-left) */
.ed-hero--video .ed-hero__overlay {
  background:
    radial-gradient(76% 64% at 5% 98%, rgba(191, 10, 48, 0.32) 0%, transparent 56%),
    linear-gradient(92deg, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.70) 42%, rgba(7, 9, 14, 0.24) 76%, rgba(7, 9, 14, 0.52) 100%),
    linear-gradient(0deg, rgba(7, 9, 14, 0.84) 0%, transparent 48%);
}
/* Film-grain texture for a filmic finish */
.ed-hero--video .ed-hero__overlay::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.06; mix-blend-mode: overlay; background-size: 170px 170px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Eyebrow → glass pill with a pulsing dot */
.ed-hero__eyebrow {
  padding: 8px 16px 8px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ed-hero__eyebrow .ed-dot {
  box-shadow: 0 0 0 4px rgba(191, 10, 48, 0.28);
  animation: edDotPulse 2.4s ease-in-out infinite;
}
@keyframes edDotPulse { 50% { box-shadow: 0 0 0 8px rgba(191, 10, 48, 0.05); } }

/* Compact, tighter hero copy + extra breathing room below the buttons */
.ed-hero__content { max-width: 560px; }
.ed-hero__title { font-size: clamp(1.9rem, 1rem + 2.6vw, 3.2rem); margin-top: 18px; }
.ed-hero__text { font-size: clamp(0.95rem, 0.92rem + 0.15vw, 1.04rem); max-width: 480px; margin-top: 18px; }
.ed-hero__tags { margin-top: 20px; }
.ed-hero__cta { margin-top: 26px; }
/* lift the content block up so there's clear space beneath the CTAs */
.ed-hero--video .ac-container { padding-bottom: clamp(70px, 13vh, 150px); }

/* Staggered entrance for the hero copy.
   Opt-in via the JS-added .ed-hero--anim class so content is NEVER stranded
   hidden (no JS / reduced-motion → content is visible by default). */
@keyframes edHeroUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.ed-hero--anim .ed-hero__content > * { animation: edHeroUp 0.85s var(--ease) both; }
.ed-hero--anim .ed-hero__content > .ed-hero__eyebrow { animation-delay: 0.05s; }
.ed-hero--anim .ed-hero__content > .ed-hero__title  { animation-delay: 0.16s; }
.ed-hero--anim .ed-hero__content > .ed-hero__text   { animation-delay: 0.30s; }
.ed-hero--anim .ed-hero__content > .ed-hero__tags   { animation-delay: 0.42s; }
.ed-hero--anim .ed-hero__content > .ed-hero__cta    { animation-delay: 0.54s; }
/* Safety net: once settled (added by JS), force the final visible state */
.ed-hero--shown .ed-hero__content > * { animation: none !important; opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .ed-hero__title .hl, .ed-hero__scroll-bar::after, .ed-hero__eyebrow .ed-dot { animation: none !important; }
  .ed-hero--anim .ed-hero__content > * { animation: none !important; }
}

/* Intro: small label + big heading */
.ed-intro { display: grid; grid-template-columns: 0.8fr 2fr; gap: clamp(20px, 5vw, 80px); align-items: start; }
.ed-intro .ed-intro__img { display: block; width: 100%; margin-top: clamp(20px, 2.4vw, 32px); aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--ed-r); }
@media (max-width: 991px) { .ed-intro .ed-intro__img { max-width: 460px; aspect-ratio: 16 / 10; margin-top: 6px; } }
.ed-intro__head .ed-h2 { max-width: 780px; }

/* ---- Dark rounded service cards ---- */
.ed-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.4vw, 20px); }
.ed-card { position: relative; background: var(--ed-card); border-radius: var(--ed-r); overflow: hidden; color: #fff; display: flex; flex-direction: column; transition: transform 0.4s var(--ease); }
.ed-card:hover { transform: translateY(-6px); }
.ed-card__media { height: clamp(166px, 15vw, 206px); background-size: cover; background-position: center; transition: transform 0.6s var(--ease); }
.ed-card:hover .ed-card__media { transform: scale(1.07); }
.ed-card__body { position: relative; z-index: 1; background: var(--ed-card); padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ed-card__tag { font-family: var(--title-font); color: var(--ed-accent); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.ed-card__body h3 { color: #fff; font-size: 1.22rem; margin: 0; }
.ed-card__body p { color: #b4b4ae; font-size: 0.92rem; line-height: 1.6; margin: 0; }
.ed-card::after {
  content: "\f061"; font-family: var(--icon-font); font-weight: 600;
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center; font-size: 12px;
  opacity: 0; transform: scale(0.8); transition: 0.3s var(--ease);
}
.ed-card:hover::after { opacity: 1; transform: none; background: var(--ed-accent); }

/* ---- Value banner ---- */
.ed-banner { background: var(--ed-grey); border-radius: var(--ed-r-lg); padding: clamp(30px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.ed-banner__title { font-family: var(--title-font); color: var(--ed-ink); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem); margin: 0; max-width: 440px; line-height: 1.12; }
.ed-banner__feats { display: flex; flex-wrap: wrap; gap: clamp(18px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.ed-banner__feats li { display: flex; align-items: center; gap: 12px; font-family: var(--title-font); font-weight: 600; color: var(--ed-ink); }
.ed-banner__feats .ic { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ed-accent); transition: 0.3s var(--ease); }
.ed-banner__feats li:hover .ic { background: var(--ed-accent); color: #fff; transform: translateY(-3px); }

/* ---- Photo cards (with zoom + hover arrow) ---- */
.ed-photos { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(14px, 1.4vw, 20px); }
.ed-photo { position: relative; overflow: hidden; min-height: clamp(300px, 32vw, 460px); border-radius: var(--ed-r); display: block; text-decoration: none; background: #15140f; }
.ed-photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--img) center/cover no-repeat; transition: transform 0.7s var(--ease); }
.ed-photo:hover::before { transform: scale(1.07); }
.ed-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 28%, rgba(0, 0, 0, 0.66)); transition: background 0.4s var(--ease); }
.ed-photo:hover::after { background: linear-gradient(180deg, rgba(191, 10, 48, 0.22) 0%, rgba(0, 0, 0, 0.72)); }
.ed-photo__cat { position: absolute; top: 18px; left: 20px; z-index: 2; color: #fff; font-family: var(--title-font); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.12em; opacity: 0.85; }
.ed-photo__label { position: absolute; left: 22px; bottom: 22px; z-index: 2; color: #fff; font-family: var(--title-font); font-weight: 700; font-size: 1.18rem; display: inline-flex; align-items: center; gap: 10px; }
.ed-photo__label::after { content: "\f061"; font-family: var(--icon-font); font-weight: 600; font-size: 0.72em; opacity: 0; transform: translateX(-6px); transition: 0.3s var(--ease); }
.ed-photo:hover .ed-photo__label::after { opacity: 1; transform: none; }

/* ---- Spec table ---- */
.ed-table-wrap { background: #fff; border-radius: var(--ed-r); overflow: hidden; border: 1px solid var(--ed-line); }
.ed-table { width: 100%; border-collapse: collapse; }
.ed-table th, .ed-table td { text-align: left; padding: 16px clamp(16px, 2vw, 26px); border-bottom: 1px solid var(--ed-line); font-size: 0.95rem; }
.ed-table th { font-family: var(--title-font); color: var(--ed-ink); font-weight: 700; background: #f3f1ee; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; }
.ed-table td { color: var(--ed-ink-soft); }
.ed-table td:first-child { color: var(--ed-ink); font-weight: 600; font-family: var(--title-font); }
.ed-table tbody tr:nth-child(even) { background: #faf9f7; }
.ed-table tbody tr:last-child td { border-bottom: 0; }
.ed-table tbody tr { transition: background 0.2s; }
.ed-table tbody tr:hover { background: #f4efe9; }

/* ---- Full-width band ---- */
.ed-band { position: relative; border-radius: var(--ed-r-lg); overflow: hidden; min-height: clamp(280px, 34vw, 420px); background-size: cover; background-position: center; display: flex; align-items: center; }
.ed-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 12, 12, 0.8), rgba(12, 12, 12, 0.2)); }
.ed-band__inner { position: relative; z-index: 1; padding: clamp(26px, 5vw, 60px); }
.ed-band__inner h2 { color: #fff; font-family: var(--title-font); font-weight: 800; font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); max-width: 540px; margin: 0 0 26px; line-height: 1.12; }

/* ---- Process steps (animated accent rule) ---- */
.ed-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.ed-step { position: relative; border-top: 1px solid var(--ed-line); padding-top: 26px; }
.ed-step::before { content: ""; position: absolute; top: -1px; left: 0; width: 42px; height: 2px; background: var(--ed-accent); transition: width 0.45s var(--ease); }
.ed-step:hover::before { width: 100%; }
.ed-step__no { font-family: var(--title-font); color: var(--ed-accent); font-weight: 800; font-size: 1.4rem; }
.ed-step h3 { color: var(--ed-ink); font-size: 1.15rem; margin: 14px 0 8px; }
.ed-step p { color: var(--ed-ink-soft); font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* ---- Story (cream) + floating badge ---- */
.ed-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.ed-story__media { position: relative; border-radius: var(--ed-r-lg); min-height: clamp(300px, 36vw, 460px); background-size: cover; background-position: center; }
.ed-story__badge { position: absolute; left: -18px; bottom: 26px; background: var(--ed-ink); color: #fff; border-radius: 18px; padding: 18px 22px; display: flex; flex-direction: column; gap: 2px; }
.ed-story__badge strong { color: var(--ed-accent); font-family: var(--title-font); font-weight: 800; font-size: 1.7rem; line-height: 1; }
.ed-story__badge span { font-size: 0.8rem; color: #cfcfca; }
.ed-story__body .ed-eyebrow { margin-bottom: 16px; }
.ed-story__body .ed-h2 { margin-bottom: 18px; }
.ed-story__body p { color: var(--ed-ink-soft); line-height: 1.72; margin: 0 0 28px; }

/* ---- Timeline ---- */
.ed-timeline { list-style: none; margin: 0; padding: 0; max-width: 780px; }
.ed-timeline li { display: grid; grid-template-columns: 116px 1fr; gap: 30px; padding: 26px 0; border-top: 1px solid var(--ed-line); transition: 0.3s var(--ease); }
.ed-timeline li:first-child { border-top: 0; }
.ed-timeline li:hover { padding-left: 8px; }
.ed-timeline__year { position: relative; padding-left: 22px; font-family: var(--title-font); color: var(--ed-ink); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); }
.ed-timeline__year::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 11px; height: 11px; border-radius: 50%; background: var(--ed-accent); }
.ed-timeline h3 { color: var(--ed-ink); font-size: 1.08rem; margin: 0 0 6px; }
.ed-timeline p { color: var(--ed-ink-soft); margin: 0; font-size: 0.95rem; line-height: 1.6; }

/* Stagger reveals inside editorial grids */
.ed-cards > [data-reveal]:nth-child(2), .ed-photos > [data-reveal]:nth-child(2), .ed-steps > [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.ed-cards > [data-reveal]:nth-child(3), .ed-photos > [data-reveal]:nth-child(3), .ed-steps > [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.ed-cards > [data-reveal]:nth-child(4), .ed-steps > [data-reveal]:nth-child(4) { transition-delay: 0.24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Large tablet / small laptop */
@media (max-width: 1199px) {
  .ed-cards { grid-template-columns: repeat(2, 1fr); }
  .ed-intro { grid-template-columns: 0.7fr 2fr; }
}
/* Small laptop — step photos & process down so they aren't cramped */
@media (max-width: 1100px) {
  .ed-photos { grid-template-columns: repeat(2, 1fr); }
  .ed-photo--lg { grid-column: 1 / -1; min-height: clamp(260px, 40vw, 380px); }
  .ed-steps { grid-template-columns: repeat(2, 1fr); }
}
/* Tablet */
@media (max-width: 991px) {
  .ed-intro { grid-template-columns: 1fr; gap: 14px; }
  .ed-photos { grid-template-columns: 1fr 1fr; }
  .ed-photo--lg { grid-column: 1 / -1; min-height: clamp(260px, 42vw, 360px); }
  .ed-steps { grid-template-columns: repeat(2, 1fr); }
  .ed-story { grid-template-columns: 1fr; }
  .ed-story__media { min-height: clamp(280px, 60vw, 420px); order: -1; }
  .ed-story__badge { left: 16px; }
}
/* Small tablet / large phone */
@media (max-width: 767px) {
  .ed-banner { border-radius: 26px; }
  .ed-band { border-radius: 26px; }
}
/* Spec table → stacked cards (no hidden data) */
@media (max-width: 660px) {
  .ed-table-wrap { border-radius: 18px; }
  .ed-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ed-table, .ed-table tbody, .ed-table tr, .ed-table td { display: block; width: 100%; }
  .ed-table tbody tr { padding: 10px clamp(14px, 4vw, 20px); border-bottom: 1px solid var(--ed-line); }
  .ed-table tbody tr:nth-child(even) { background: #faf9f7; }
  .ed-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 7px 0; border: 0; text-align: right; }
  .ed-table td::before { content: attr(data-label); font-family: var(--title-font); font-weight: 700; color: var(--ed-ink); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.05em; text-align: left; opacity: 0.7; }
  .ed-table td:first-child { font-size: 1.1rem; padding: 4px 0 10px; border-bottom: 1px dashed var(--ed-line); margin-bottom: 6px; }
  .ed-table td:first-child::before { align-self: center; }
}
/* Phone */
@media (max-width: 575px) {
  .ed-cards, .ed-photos, .ed-steps { grid-template-columns: 1fr; }
  .ed-photo--lg { grid-column: auto; }
  .ed-banner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .ed-timeline li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .ed-timeline li:hover { padding-left: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ed-card, .ed-card__media, .ed-photo::before, .ed-step::before, .ed-timeline li { transition: none !important; }
  .ed-card:hover .ed-card__media, .ed-photo:hover::before { transform: none !important; }
}

/* ==========================================================================
   Casting methods — interactive expanding accordion
   Click a panel and it widens while the others narrow; on mobile it becomes a
   vertical accordion (collapsed bars that open to full height).
   ========================================================================== */
/* Neutralize anadolu.css's dark #service-sec band — this is a paper panel now */
.home-casting #service-sec.ed-section.ed-bg-paper {
  background: #fff;
  margin: clamp(10px, 1.3vw, 16px) clamp(8px, 1.8vw, 22px);
}

.cast-accordion {
  display: flex;
  gap: clamp(10px, 1vw, 16px);
  height: clamp(440px, 56vh, 580px);
}

.cast-panel {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  margin: 0; padding: 0;
  border: 0; -webkit-appearance: none; appearance: none;
  border-radius: var(--ed-r);
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  background: #1b1b1b;
  text-align: left;
  font-family: inherit;
  isolation: isolate;
  transition: flex-grow 0.65s var(--ease), height 0.55s var(--ease);
  will-change: flex-grow;
}
.cast-panel:focus-visible { outline: 3px solid var(--ed-accent); outline-offset: 3px; }
.cast-panel.is-active { flex-grow: 4.6; }

/* Image + overlay layers (kept behind the content) */
.cast-panel__bg {
  position: absolute; inset: 0; z-index: -2;
  background: var(--img) center/cover no-repeat;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.05);
  transition: filter 0.6s var(--ease), transform 1s var(--ease);
}
.cast-panel.is-active .cast-panel__bg { filter: none; transform: scale(1); }
.cast-panel:hover .cast-panel__bg { filter: grayscale(0.55) contrast(1.04); }
.cast-panel.is-active:hover .cast-panel__bg { filter: none; }

.cast-panel__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 15, 17, 0.20) 0%, rgba(15, 15, 17, 0.55) 52%, rgba(15, 15, 17, 0.88) 100%);
  transition: background 0.5s var(--ease);
}
.cast-panel.is-active .cast-panel__overlay {
  background: linear-gradient(180deg, rgba(15, 15, 17, 0.02) 0%, rgba(15, 15, 17, 0.30) 42%, rgba(15, 15, 17, 0.90) 100%);
}

/* Number badge — shown when collapsed */
.cast-panel__index {
  position: absolute; top: 18px; left: 0; right: 0; z-index: 2;
  text-align: center;
  font-family: var(--title-font); font-weight: 800; font-size: 0.95rem;
  letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.86);
  transition: opacity 0.35s var(--ease);
}
.cast-panel.is-active .cast-panel__index { opacity: 0; }

/* Vertical title — shown when collapsed */
.cast-panel__label {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
  padding-block: 52px;
  font-family: var(--title-font); font-weight: 700;
  font-size: clamp(0.98rem, 0.9rem + 0.4vw, 1.2rem);
  letter-spacing: 0.04em; color: #fff; white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s var(--ease);
}
.cast-panel.is-active .cast-panel__label { opacity: 0; }

/* Full content — revealed when active */
.cast-panel__content {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  width: clamp(260px, 30vw, 460px); max-width: 100%;
  padding: clamp(22px, 2vw, 34px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.45s var(--ease) 0.18s, transform 0.45s var(--ease) 0.18s;
}
.cast-panel.is-active .cast-panel__content { opacity: 1; transform: none; pointer-events: auto; }
.cast-panel__tag {
  font-family: var(--title-font); font-weight: 800; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: #ff6b81;
}
.cast-panel__title {
  font-family: var(--title-font); color: #fff; font-weight: 800;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1.08; margin: 0;
}
.cast-panel__desc { color: #e4e4e1; font-size: 0.96rem; line-height: 1.6; margin: 0; }
.cast-panel__btn { margin-top: 6px; }

/* Tablet & mobile → vertical accordion (cleaner than 5 cramped horizontal slivers) */
@media (max-width: 991px) {
  .cast-accordion { flex-direction: column; height: auto; gap: 10px; }
  .cast-panel { height: 78px; flex: 0 0 auto; transition: height 0.55s var(--ease); }
  .cast-panel.is-active { height: clamp(300px, 56vh, 420px); }
  .cast-panel__label {
    writing-mode: horizontal-tb; transform: none;
    justify-content: flex-start; align-items: center;
    padding: 0 64px 0 24px;
  }
  .cast-panel__index {
    top: 50%; left: auto; right: 22px; transform: translateY(-50%);
    text-align: right;
  }
  .cast-panel__content { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cast-panel, .cast-panel__bg, .cast-panel__overlay,
  .cast-panel__content, .cast-panel__label, .cast-panel__index { transition: none !important; }
  .cast-panel__bg { transform: none; }
}

/* ==========================================================================
   Footer — rounded brand-navy panel with a theme-blue bottom strip.
   (American-flag palette: navy body, red accents, brighter blue base band.)
   ========================================================================== */
.home-casting .ac-footer {
  margin: clamp(10px, 1.3vw, 16px) clamp(8px, 1.8vw, 22px);
  border-radius: clamp(22px, 2.4vw, 40px);
  overflow: hidden;
  background: #061634;
}
.home-casting .ac-footer::before { content: none; }

/* Pre-footer CTA → vivid brand-blue gradient + soft glow + red bolt accent */
.home-casting .ac-cta-band {
  background: linear-gradient(120deg, #0a2f6b 0%, #154090 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.home-casting .ac-cta-band::after {
  content: ""; position: absolute; top: -65%; right: -6%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 60%); pointer-events: none;
}
.home-casting .ac-cta-band__eyebrow { color: #c6daff; }
.home-casting .ac-cta-band__eyebrow i { color: var(--accent-color); }
.home-casting .ac-cta-band__title { color: #fff; }
.home-casting .ac-cta-band__sub { color: #dbe7fb; }

/* Footer body → deep navy with a cool top sheen */
.home-casting .ac-footer__main {
  padding-bottom: 0;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(31, 111, 201, 0.20) 0%, transparent 55%),
    linear-gradient(180deg, #0a2350 0%, #061634 100%);
}
.home-casting .ac-footer__main::before { content: none; display: none; }

/* Brand */
.home-casting .ac-footer .ac-logo-text .w1 { color: #fff; }
.home-casting .ac-footer .ac-logo-text .w2 { color: var(--accent-color); }
.home-casting .ac-footer__about,
.home-casting .ac-footer__hilite li { color: #9fb2d4; }
.home-casting .ac-footer__hilite i { color: #6fb2f0; }
.home-casting .ac-footer__hilite a { background-image: linear-gradient(90deg, #2f7fd6, #8cc4f7); }

/* Headings + links */
.home-casting .ac-footer__col h3 { color: #eaf1fb; }
.home-casting .ac-footer__col a { color: #9fb2d4; }
.home-casting .ac-footer__col a:hover { color: #fff; }
.home-casting .ac-footer__col:not(.ac-footer__col--contact) a,
.home-casting .ac-footer__col--contact a span { background-image: linear-gradient(90deg, #2f7fd6, #8cc4f7); }
.home-casting .ac-footer__col--contact a i { background: rgba(79, 155, 230, 0.18); color: #6fb2f0; }
.home-casting .ac-footer__col--contact a:hover i { background: #1f6fc9; color: #fff; }

/* Bottom strip → full-width Old-Glory-Blue band */
.home-casting .ac-footer__bottom {
  display: block;
  background: var(--theme-color);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
}
.home-casting .ac-footer__bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.home-casting .ac-footer__copy { color: #b3c5e6; }
.home-casting .ac-footer__social a {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #dbe6f7;
}
.home-casting .ac-footer__social a:hover { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }

/* ==========================================================================
   Scroll choreography — richer reveal-on-scroll + a top scroll-progress bar.
   Loaded last so it overrides the base reveal in anadolu.css.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(64px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
/* Directional + effect variants (value of the data-reveal attribute) */
.js [data-reveal="left"]  { transform: translateX(-72px); }
.js [data-reveal="right"] { transform: translateX(72px); }
.js [data-reveal="scale"] { transform: scale(0.85); }
.js [data-reveal="fade"]  { transform: none; }
.js [data-reveal="blur"]  { transform: translateY(44px); filter: blur(16px); }
/* Settled state resets every variant */
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* Stagger — timeline rows */
.js .ed-timeline > li:nth-child(2) { --reveal-delay: 0.08s; }
.js .ed-timeline > li:nth-child(3) { --reveal-delay: 0.16s; }
.js .ed-timeline > li:nth-child(4) { --reveal-delay: 0.24s; }
.js .ed-timeline > li:nth-child(5) { --reveal-delay: 0.32s; }
/* Stagger — footer columns */
.js .ac-footer__grid > [data-reveal]:nth-child(2) { --reveal-delay: 0.07s; }
.js .ac-footer__grid > [data-reveal]:nth-child(3) { --reveal-delay: 0.14s; }
.js .ac-footer__grid > [data-reveal]:nth-child(4) { --reveal-delay: 0.21s; }
.js .ac-footer__grid > [data-reveal]:nth-child(5) { --reveal-delay: 0.28s; }

/* Top scroll-progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000;
  background: linear-gradient(90deg, var(--ed-accent), #ff7d90);
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform; pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .scroll-progress { display: none; }
}
