/* Catalogue additions preserve the portfolio's existing type and colour system. */
.portfolio-section{padding-block-start:clamp(28px,4vw,58px)}
.portfolio-heading{margin-bottom:clamp(20px,3vw,36px)}
.portfolio-heading h1{margin:0;font-size:clamp(42px,5vw,68px)}
.portfolio-filter-select {
  display:block;
  width:100%;
  min-height:48px;
  margin-bottom:28px;
  padding:8px 12px;
  border:1px solid var(--accent);
  border-radius:var(--radius);
  background:var(--paper);
  color:var(--ink);
  font-size:16px;
}
@media (min-width:621px) { .portfolio-filter-select { max-width:28rem; margin-bottom:36px; } }
.project-card{position:relative;border-radius:var(--radius);scroll-margin-top:calc(var(--header-offset) + 16px)}
.project-primary::after{content:'';position:absolute;inset:0;z-index:1;border-radius:var(--radius)}
.project-primary:focus-visible{outline:none}
.project-primary:focus-visible::after{outline:2px solid var(--accent);outline-offset:8px}
.project-details-link{position:relative;z-index:2}
.project-card .project-image{box-shadow:0 4px 14px #28342807}
.project-image .browser{aspect-ratio:16/10;display:grid;grid-template-rows:29px minmax(0,1fr)}
.project-image .browser img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:top;min-height:0}
.project-card:focus-within .image-open{opacity:1;transform:translateY(0)}
.project-recommendations{margin:0 0 22px;padding-top:16px;border-top:1px solid var(--line)}
.project-recommendations p{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 10px}
.project-recommendations ul{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0}
.project-recommendations li{border:1px solid var(--line);border-radius:20px;padding:4px 10px;font-size:11px;line-height:1.5;color:var(--accent);background:var(--white)}
.case-copy .project-recommendations{margin-top:25px}
:is(.case-copy,.case-study-rich) .project-recommendations p{font-size:13px!important;line-height:1.6!important}
.case-study-rich { grid-column:1/-1; min-width:0; }
.case-lead-grid { display:grid; gap:22px; align-items:start; }
.case-study-rich .case-copy > .case-plan {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  margin:0; font-size:13px; font-weight:600; line-height:1.5;
}
.case-plan-badge {
  padding:4px 11px; border:1px solid #c7d1bf; border-radius:20px;
  background:var(--accent-light); color:var(--accent); font-size:11px; letter-spacing:.04em;
}
.case-study-rich .case-copy > .case-plan-extras { margin-top:8px; }
.case-plan-extras .case-plan-badge { border-color:var(--line); background:var(--white); font-weight:400; letter-spacing:0; }
.case-study-rich .project-recommendations { margin-block:18px 0; }
.case-journey {
  padding:clamp(16px,2.4vw,24px); border:1px solid var(--line);
  border-radius:var(--radius); background:var(--soft);
}
.case-journey :is(h2,h3) { margin:0 0 12px; font-size:20px; }
.case-journey ol { margin:0; padding-inline-start:1.35em; }
.case-journey li + li { margin-top:10px; }
.case-journey li::marker { color:var(--accent); font-weight:600; }
.case-journey strong { font-size:15px; }
.case-journey p,.case-delivery-grid p { margin:0; color:var(--muted); font-size:15px; line-height:1.55; }
.case-delivery { margin-top:clamp(25px,3.4vw,40px); }
.case-delivery > :is(h2,h3) { margin:0 0 14px; font:500 clamp(30px,3.5vw,40px)/1.1 var(--font-display); }
.case-delivery-grid { display:grid; gap:10px; margin:0; list-style:none; }
.case-delivery-grid > li {
  padding:clamp(14px,2vw,21px); border:1px solid var(--line);
  border-radius:var(--radius); background:var(--paper);
}
.case-delivery-grid > .case-delivery-highlight { border-color:#c7d1bf; background:var(--accent-light); }
.case-delivery-grid :is(h3,h4) { margin:0 0 5px; font-size:17px; font-weight:650; line-height:1.3; letter-spacing:normal; }
.case-delivery-grid :is(h3,h4):only-child { margin-bottom:0; }
@media(min-width:700px){
  .case-lead-grid,.case-delivery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.project-visit{color:var(--accent)}
@media(hover:hover){
 .project-card:hover .project-image{box-shadow:0 12px 28px #28342812}
 .project-card:hover .image-open{opacity:1;transform:translateY(0)}
 .project-card:hover .project-image img{transform:scale(1.015)}
}
@media(max-width:620px){
 .project-recommendations p{font-size:12px}
 .project-recommendations li{font-size:11px}
 .project-card .image-open{display:flex;font-size:10px;right:10px;bottom:10px}
 .project-dialog .dialog-actions{justify-content:center}
}
@media(prefers-reduced-motion:reduce){.project-card:hover .project-image img{transform:none}}

/* The featured view keeps its original image-left / text-right composition. */
.featured-catalogue{display:none}
@media(min-width:621px){
 .featured-actions{flex-wrap:nowrap;gap:clamp(6px,.9vw,12px)}
 .featured-actions>a{justify-content:center;gap:8px;min-height:44px;padding:8px 10px;font-size:13px;text-align:center}
 .featured-actions .icon{width:16px;height:16px}
}
@media(min-width:621px) and (max-width:850px){
 .featured-actions>a{padding-inline:6px}
 .featured-actions .icon{display:none}
}
.featured-pictures{touch-action:pan-y}
.featured-hint{display:none;margin:12px 0 0;font-size:12px;line-height:1.5;color:var(--accent)}
@media(hover:hover){.js .featured-hint{display:block}}
.featured-projects{position:relative;min-height:var(--featured-copy-height,0px)}
.featured-project{display:flow-root}
.featured-project.featured-measuring{position:absolute;left:0;right:0;top:0;visibility:hidden;pointer-events:none;animation:none!important}
.featured-description{color:var(--muted);font-size:16px;line-height:1.75;margin-bottom:0}
.featured-project .check-list{margin-block:22px}
.featured-project .project-recommendations{margin:0 0 24px;padding-top:17px;border-color:#c7d1bf}
.featured-project .project-recommendations p{font-size:12px;color:var(--accent);font-weight:500;margin-bottom:10px}
.featured-project .project-recommendations li{background:#f8f9f580;border-color:#c7d1bf}
.featured-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px}
.featured-paging{display:flex;align-items:center;gap:12px}
.featured-paging .icon-button{width:44px;height:44px;border-color:#bfcab7;background:transparent}
.featured-paging .icon-button:hover{background:#f8f9f580}
.featured-play{display:inline-flex;align-items:center;gap:8px;min-height:44px;border:1px solid #bfcab7;border-radius:24px;padding:8px 14px;background:transparent;font-size:12px;color:var(--ink)}
.featured-play:hover{background:#f8f9f580}
.featured-play .icon{width:16px;height:16px}
.featured-play[aria-pressed=true] .featured-play-icon,.featured-play[aria-pressed=false] .featured-pause-icon{display:none}
.featured-enter{animation:featured-appear 320ms ease-out both}
@keyframes featured-appear{from{opacity:0}to{opacity:1}}
@media(max-width:850px){.featured-description{font-size:15px}.featured-controls{gap:10px}.featured-paging{gap:8px}.featured-play{padding-inline:11px;font-size:11px}}
@media(max-width:620px){
 .featured-projects{min-height:0}
 .featured-controls{margin-top:20px;gap:16px}
 .featured-paging{gap:13px}
 .featured-play{font-size:12px;padding-inline:14px}
 .featured-description{font-size:16px}
 .featured-project .project-recommendations li{font-size:11px}
 .featured-actions{gap:10px}
 .featured-actions .featured-catalogue-link{display:none}
 .featured-catalogue{display:flex;justify-content:center;margin-top:14px;padding-top:10px;border-top:1px solid #c7d1bf}
 .featured-catalogue .button{width:100%;gap:14px}
}
@media(prefers-reduced-motion:reduce){.featured-enter{animation:none}}

/* Real mobile captures sit in a CSS phone shell beside the desktop preview. */
.featured-devices{position:relative;padding:32px 60px 40px 0}
.phone-preview{position:absolute;right:0;bottom:0;width:clamp(118px,30%,180px);margin:0;z-index:1}
.phone-frame{position:relative;background:var(--ink);padding:6px;border-radius:25px;box-shadow:0 12px 30px #25362926,0 0 0 1px #ffffffb3}
.phone-screen{position:relative;overflow:hidden;border-radius:19px;aspect-ratio:375/812;background:var(--white);--phone-travel:0px}
.phone-scroll-image{display:block;width:100%;height:auto;max-width:none;aspect-ratio:auto;transform:translateY(0);user-select:none}
.phone-island{position:absolute;top:10px;left:50%;transform:translateX(-50%);width:28%;height:5px;border-radius:10px;background:var(--ink);pointer-events:none}
.phone-home{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);width:27%;height:3px;border-radius:5px;background:#2630299e;pointer-events:none}
.phone-preview figcaption{text-align:center;font-size:9px;line-height:1.4;letter-spacing:.8px;color:var(--accent);text-transform:uppercase;margin-top:9px}
.phone-placeholder{display:grid;place-content:center;text-align:center;position:absolute;inset:0;font-size:11px;line-height:1.6;color:var(--muted);margin:0;padding:12px}
[data-rotation-running=true] [data-featured-picture]:not([hidden]) .phone-scroll-image{will-change:transform}
@media(max-width:850px){.featured-devices{padding:20px 43px 34px 0}.phone-preview{width:31%;min-width:100px}.phone-frame{padding:5px;border-radius:20px}.phone-screen{border-radius:15px}.phone-island{top:9px;height:4px}.phone-home{bottom:9px;height:2px}.phone-preview figcaption{font-size:8px;margin-top:7px}}
@media(max-width:620px){.featured-devices{padding-top:25px;padding-bottom:38px}.phone-preview{width:31%;max-width:150px}}
@media(prefers-reduced-motion:reduce){[data-featured-picture]:not([hidden]) .phone-scroll-image{animation:none;transform:translateY(0);will-change:auto}}
