
  /* ===== Entryphone case study styles — everything is scoped to .ep-case so it won't affect the rest of the site ===== */
  /* Uncut Sans: if the site already loads it, nothing else is needed. Otherwise upload the font files and point these URLs at them. */

  .ep-case {
    --navy: #212445;
    --green: #E0EBD0;
    --text: #212445;
    --muted: #5d6075;
    --line: #d9dbe3;
    --radius: 24px;
    --gap: 1.1em;          /* space between paragraphs — the same everywhere */
    --section: 56px;       /* space between sections — the same everywhere */
    font-family: "UncutSans-Regular", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    font-size: 17px;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
  }
  .ep-case *, .ep-case *::before, .ep-case *::after { box-sizing: inherit; }
  .ep-case p { margin: 0 0 var(--gap); }
  .ep-case p:last-child { margin-bottom: 0; }
  .ep-case h1, .ep-case h2, .ep-case h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
  .ep-case h2 { font-size: 30px; margin-bottom: 18px; }
  .ep-case img { display: block; max-width: 100%; height: auto; }
  .ep-case p a, .ep-case dd a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
  .ep-case p a:hover, .ep-case dd a:hover { text-decoration-thickness: 2px; }
  .ep-case section { margin-top: var(--section); }

  /* Hero — photo overhangs the bottom of the navy panel, as in the original mockups */
  .ep-case { --overhang: 72px; }
  .ep-case .ep-hero { background: var(--navy); color: #fff; border-radius: var(--radius); display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding: 56px 56px 56px; align-items: center; margin-bottom: calc(var(--overhang) + 32px); }
  .ep-case .ep-tag { display: inline-block; background: var(--green); color: var(--navy); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; margin-bottom: 24px; }
  .ep-case .ep-hero h1 { font-size: 56px; margin-bottom: 20px; }
  .ep-case .ep-hero .ep-lead { font-size: 22px; line-height: 1.4; font-weight: 500; margin-bottom: 20px; }
  .ep-case .ep-hero p { color: rgba(255,255,255,0.85); }
  .ep-case .ep-hero-img { align-self: end; margin-bottom: calc(-56px - var(--overhang)); }
  .ep-case .ep-hero-img img { width: 100%; height: auto; }
  .ep-case .ep-stats { margin-top: 0 !important; }

  /* Key figures */
  .ep-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
  .ep-case .ep-stat { background: var(--green); border-radius: 16px; padding: 22px 24px; }
  .ep-case .ep-stat strong { display: block; font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; margin-bottom: 8px; }
  .ep-case .ep-stat span { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }

  /* Project + details — details run as a strip under the text so there are no empty gaps */
  .ep-project h2 { margin-bottom: 18px; }
  .ep-case .ep-details { display: flex; align-items: center; gap: 32px; border: 1px solid var(--line); border-radius: 16px; padding: 20px 28px; margin-top: 32px; }
  .ep-case .ep-details .ep-sign { flex-shrink: 0; width: 180px; border: 1px solid var(--line); border-radius: 4px; }
  .ep-case .ep-details dl { flex: 1; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 0; }
  .ep-case .ep-details dl > div { padding: 0 24px; border-left: 1px solid var(--line); }
  .ep-case .ep-details dl > div:first-child { border-left: 0; padding-left: 0; }
  .ep-case .ep-details dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .ep-case .ep-details dd { margin: 0; font-size: 16px; line-height: 1.5; }

  /* Photos: equal heights in each row, whatever the photo shape */
  .ep-photos { display: flex; gap: 20px; }
  .ep-case .ep-photos figure { margin: 0; min-width: 0; }
  .ep-case .ep-photos img { width: 100%; border-radius: 16px; }
  .ep-case .ep-photos figcaption { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 10px; }

  /* Result + call to action */
  .ep-result { background: var(--green); border-radius: var(--radius); padding: 56px; }
  .ep-case .ep-result .ep-photos { margin-top: 40px; }
  .ep-case .ep-cta { background: var(--navy); color: #fff; border-radius: 20px; padding: 36px 40px; margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
  .ep-case .ep-cta small { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; margin-bottom: 6px; }
  .ep-case .ep-cta h3 { font-size: 28px; margin-bottom: 8px; }
  .ep-case .ep-cta p { color: rgba(255,255,255,0.85); font-size: 15px; }
  .ep-case .ep-cta-actions { text-align: center; flex-shrink: 0; }
  .ep-case .ep-btn { display: inline-block; background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; padding: 14px 28px; border-radius: 999px; }
  .ep-case .ep-btn::after { content: " \2192"; }
  .ep-case .ep-btn:hover { background: var(--green); }
  .ep-case .ep-cta-actions a.ep-tel { display: block; color: #fff; font-size: 14px; margin-top: 10px; text-decoration: none; }

  /* Tablet & mobile */
  @media (max-width: 900px) {
    .ep-case .ep-hero { grid-template-columns: 1fr; gap: 32px; }
    .ep-case .ep-details { flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px 24px; }
    .ep-case .ep-details dl { width: 100%; grid-template-columns: 1fr 1fr; }
    .ep-case .ep-details dl > div { border-left: 0; padding: 0; }
    .ep-case .ep-hero, .ep-case .ep-result { padding: 32px 24px; }
    .ep-case .ep-hero h1 { font-size: 40px; }
    .ep-case { --overhang: 40px; }
    .ep-case .ep-hero-img { margin-bottom: calc(-32px - var(--overhang)); max-width: 420px; }
    .ep-case .ep-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
    .ep-case .ep-cta-actions { text-align: left; }
  }
  @media (max-width: 600px) {
    .ep-case { font-size: 16px; padding: 0 16px; --section: 40px; }
    .ep-case .ep-photos { flex-direction: column; }
    .ep-case .ep-photos figure { flex: none !important; }
    .ep-case .ep-stat strong { font-size: 40px; }
  }

.ep-case {padding-bottom:56px;} .ep-case p,.ep-case a {font-size:inherit;} .ep-case figure {margin:0;} .ep-case .ep-hero h1 {color:#fff;} .ep-case .ep-breadcrumb {margin-bottom:24px;}

/* Keep the opening photograph contained in the header at every screen size. */
.ep-case .ep-hero { margin-bottom:32px; overflow:hidden; }
.ep-case .ep-hero-img { align-self:center; margin:0; width:100%; max-width:none; }
.ep-case .ep-hero-img img { width:100%; height:440px; object-fit:cover; object-position:center 45%; border-radius:16px; }
@media(max-width:900px) {
 .ep-case .ep-hero-img img { height:340px; }
}
@media(max-width:600px) {
 .ep-case .ep-hero-img img { height:280px; }
}

/* Show the entrance architecture and tiled approach together. */
.ep-case .ep-hero-img img {height:auto;aspect-ratio:3 / 4;object-fit:cover;object-position:center;border-radius:16px;}

/* Maintain readable text inside the navy installation call to action. */
.ep-case .ep-cta h3 {color:#fff;}
.ep-case .ep-cta small {color:#fff;}
