/* The portfolio article owns its composition. The header and footer use the site theme. */
#main.study {
  --ink: #162c40;
  --muted: #465d6d;
  --blue: #006cb0;
  --rule: #bfcfd9;
  --space: clamp(3rem, 6vw, 6rem);
  --study-frame-inset: 10%;
  color: var(--ink);
  margin: 0 auto;
  width: min(100% - clamp(2rem, 8vw, 9rem), 76rem);
  max-width: none;
  padding: 0;
}
.study-sheet {padding-block: calc(clamp(5.5rem, 8vw, 8rem) + clamp(2rem, 3vw, 3rem)) 2.75rem}
.study-sheet :where(figure,h1,h2,p) {margin:0}
.study .study-intro {text-align:center;width:100%;margin-inline:auto;margin-bottom:clamp(1.75rem,3vw,3rem)}
.study .study-category {color:var(--muted);font-size:.8rem;font-weight:650;letter-spacing:.06em;margin-bottom:1rem}
.study-category span {color:#80939f;margin-inline:.45rem}
.study .study-intro h1,.study .study-sheet h2 {color:var(--ink);font-weight:600;line-height:1.04;letter-spacing:-.045em;text-wrap:balance}
.study .study-intro h1 {max-width:62rem;margin-inline:auto;width:100%;font-size:clamp(2.35rem,6vw,5.5rem)}
@media(min-width:561px){.study .study-intro h1 span {white-space:nowrap}}

/* Use the same width constraints as the cover screenshot, with a small reading inset. */
.study .study-intro > .study-deck {
  width:min(calc(100% - 2 * var(--study-frame-inset)), var(--study-image-limit, 100%));
  max-width:none;box-sizing:border-box;padding-inline:clamp(2px,.6vw,10px);margin:1.15rem auto 0;color:var(--muted);font-size:clamp(1.05rem,1.65vw,1.45rem);line-height:1.5;text-wrap:pretty}
.study .study-sheet figure {margin:0;min-width:0}
/* Screens rest on the same glass and marble as the portfolio cards. The
   stand keeps its native proportions as different screens change the height. */
.study-cover-stage {
  position:relative;isolation:isolate;display:grid;justify-items:center;align-items:end;
  padding:clamp(1rem,3.6vw,3.25rem) var(--study-frame-inset) 16%;
  overflow:hidden;border-radius:clamp(.75rem,1.6vw,1.4rem);
  background:linear-gradient(110deg,#dfebfa,#f2f2f8 52%,#f9eeea);
}
.study-cover-stage::before {
  content:"";position:absolute;z-index:-1;pointer-events:none;inset:auto 0 0;aspect-ratio:25/16;
  background:url('/assets/oxo-crystal-portfolio-stage.3a41576278ef.webp') center bottom/100% auto no-repeat;
  mask-image:linear-gradient(to bottom,transparent,#000 36%);
}
.study-cover-stage > :is(a,picture) {display:block;width:min(100%,var(--study-image-limit,100%));min-width:0}
.study-cover-stage picture {
  display:block;box-sizing:border-box;overflow:hidden;
  border:clamp(2px,.32vw,4px) solid #f1f7fb;border-radius:clamp(6px,.9vw,14px);
  background:#ecf3f8;box-shadow:0 0 0 1px #a3b8ca,0 4px 0 -1px #8ba2b1,0 10px 12px -7px #233e5566;
}
.study-cover-stage picture::before {
  content:"";display:block;height:clamp(10px,1.55vw,20px);
  background:
    radial-gradient(circle,#7c94a8 1.35px,transparent 1.6px) 6px center / 5px 5px no-repeat,
    radial-gradient(circle,#7c94a8 1.35px,transparent 1.6px) 12px center / 5px 5px no-repeat,
    radial-gradient(circle,#7c94a8 1.35px,transparent 1.6px) 18px center / 5px 5px no-repeat,
    linear-gradient(#fff,#e8eff4);
}
.study-cover-stage img {display:block;width:100%;height:auto}
.study .study-cover>figcaption {display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0 1.15rem;border-bottom:1px solid var(--rule)}
.study .study-sheet figcaption {color:var(--ink);font-size:1rem;font-weight:600;line-height:1.45}
.study .study-sheet figcaption small {display:block;color:var(--muted);font-size:.91rem;font-weight:400;margin-top:.15rem}
.study .study-link {display:inline-flex;align-items:center;min-height:44px;color:#154f74;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.26em;font-weight:600}
.study .study-link:hover {color:var(--blue);text-decoration-thickness:2px}
.study .study-sheet a:focus-visible {outline:2px solid var(--blue);outline-offset:4px}
.study .study-feature {display:grid;grid-template-columns:minmax(0,4fr) minmax(0,5fr);gap:clamp(2rem,7vw,7rem);align-items:center;padding-block:var(--space);border-bottom:1px solid var(--rule)}
.study .study-sheet h2 {font-size:clamp(2.05rem,3.8vw,3.65rem)}
.study .study-prose>p,.study .study-section-head>p {font-size:clamp(1rem,1.3vw,1.17rem);line-height:1.68;color:var(--muted);max-width:58ch}
.study .study-prose p {margin-top:.95rem}
.study-macro {position:relative;overflow:hidden;aspect-ratio:1.45;border-radius:14px;background:#f3f0e8}
.study .study-macro img {position:absolute;width:220%;max-width:none;height:auto;left:-105%;top:-33%}
.study .study-detail figcaption {margin-top:.75rem;font-size:.88rem;color:var(--muted);font-weight:500}
.study .study-journey {padding-block:var(--space)}
.study .study-section-head {display:grid;grid-template-columns:minmax(0,4fr) minmax(0,5fr);gap:clamp(2rem,7vw,7rem);align-items:center;margin-bottom:clamp(1.5rem,3.3vw,3rem)}
.study .study-gallery {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:clamp(1rem,2vw,2rem)}
.study .study-screen {height:clamp(15rem,31vw,26rem);display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;box-sizing:border-box;padding:clamp(.75rem,1.5vw,1.5rem);border-radius:14px;background:#dbe5e9}
.study .study-screen-phone {background:#e1e5dd}
.study .study-screen img {display:block;max-width:100%;max-height:100%;height:auto;width:auto;min-height:0;object-fit:contain;border-radius:5px;box-shadow:0 4px 14px #203a481d}
.study .study-gallery figcaption {padding-top:.85rem}
.study .study-enquiry {padding:clamp(1.3rem,3vw,2.5rem);background:linear-gradient(125deg,#fafcfe,#e2edf4);border:1px solid #fff;border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.study .study-enquiry h2 {font-size:clamp(1.4rem,2vw,1.95rem)}
.study .study-enquiry p {margin-top:.4rem;color:var(--muted);line-height:1.5}
.study .study-enquiry a,.study-cover .study-link {flex:none}

/* One shared navigation surface with two distinct targets. */
#main.study .study-next {
 display:grid;grid-template-columns:auto 1fr;align-items:stretch;max-width:36rem;
 margin:clamp(1.5rem,3vw,2.5rem) auto 0;padding:.3rem;
 border:1px solid #cddae3;border-radius:14px;background:#f6f9fb;
 box-shadow:inset 0 1px 0 white,0 2px 5px #253f5312;
}
#main.study .study-next a {
 display:flex;align-items:center;justify-content:center;gap:.65rem;
 padding:.6rem clamp(.7rem,2vw,1.65rem);min-height:48px;box-sizing:border-box;
 border-radius:10px;color:var(--ink);text-decoration:none;font-size:.96rem;font-weight:600;
}
#main.study .study-next svg {width:17px;height:17px;flex:none}
#main.study .study-next a[rel=next] {
 display:grid;justify-content:start;align-content:center;gap:.1rem;
 margin-left:.3rem;border-left:1px solid var(--rule);border-radius:0 10px 10px 0;
}
#main.study .study-next a[rel=next] span {color:var(--muted);font-size:.78rem;font-weight:500}
#main.study .study-next strong {font-size:1rem;line-height:1.25}
#main.study .study-next a:hover,#main.study .study-next a:focus-visible {background:#e6eff5}
@media(max-width:740px) {
  .study .study-feature,.study .study-section-head {grid-template-columns:1fr;gap:1.25rem}
  .study .study-gallery {grid-template-columns:1fr}
  .study .study-screen-wide {height:auto;aspect-ratio:1.6}
  .study .study-screen-phone {height:23rem}
  .study .study-gallery {gap:1.75rem}
  .study .study-enquiry {align-items:flex-start;flex-direction:column;gap:.5rem}
}
@media(max-width:560px) {
  .study-sheet:not(.study-has-original) {--study-image-limit:min(68vw,17.5rem)}
}

.study .study-updated {font-size:.875rem;color:var(--muted);margin:0 0 1rem}

/* Optional sections used by longer case studies. */
.study-sheet.study-has-original {--study-image-limit:var(--study-wide-limit)}
@media(max-width:600px){
  .study-sheet.study-has-portrait {--study-image-limit:min(68vw,17.5rem,var(--study-portrait-limit))}
}
.study .study-intro .study-quick {margin:1em auto 0}
.study .study-facts {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;
 margin:0;padding:1.35rem 0;border-bottom:1px solid var(--rule);text-align:center;
}
.study .study-facts dt {font-size:.8rem;font-weight:600;color:var(--muted)}
.study .study-facts dd {margin:.25rem 0 0;font-size:1rem;line-height:1.4}
.study .study-chapter {padding-block:clamp(2rem,4.5vw,4.25rem);border-bottom:1px solid var(--rule)}
.study .study-chapter .study-section-head {margin:0;align-items:start}
.study .study-chapter .study-section-head:has(> .study-narrative:only-child) {display:block}
.study .study-narrative {min-width:0}
.study .study-narrative>p,.study .study-prose>div>p {margin:0 0 .85em;max-width:65ch;color:var(--muted);font-size:clamp(1rem,1.3vw,1.17rem);line-height:1.68}
.study .study-narrative>p:last-child {margin-bottom:0}
.study .study-feature-figure {padding:clamp(.6rem,1.2vw,1.2rem);background:#dbe5e9;border-radius:14px}
.study .study-feature-figure img {display:block;width:auto;height:auto;max-width:100%;max-height:32rem;margin-inline:auto}
.study .study-gallery-extra {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-block:clamp(2rem,4vw,4rem)}
.study .study-gallery-extra:has(>figure:only-child) {grid-template-columns:1fr;max-width:64rem;margin-inline:auto}
.study .study-gallery-extra .study-screen {height:clamp(15rem,30vw,28rem)}
/* Propagate the stage bounds through linked and responsive images. */
.study .study-screen>a,.study .study-screen>picture,.study .study-screen>a>picture {
 display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;
 width:100%;height:100%;min-width:0;min-height:0;
}
.study .study-screen img {min-width:0}
.study .study-feature-figure :is(a,picture){display:block;max-width:100%}
.study .study-highlights {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(15rem,100%),1fr));gap:clamp(.75rem,2vw,1.5rem);padding-block:clamp(1.25rem,2.4vw,2rem)}
.study .study-highlight {padding:1.25rem;background:#f3f7fa;border:1px solid #d3dfe7;border-radius:.75rem}
.study .study-highlight h3 {margin:0 0 .5rem;color:var(--ink);font-size:1.15rem}
.study .study-highlight p {margin:0;color:var(--muted);line-height:1.55}
.study .study-table {max-width:100%;overflow:auto;margin-block:1rem}
.study .study-table table {border-collapse:collapse;width:100%;background:#f4f8fb;color:var(--ink);font-size:.95rem}
.study .study-table :is(td,th,caption) {text-align:left;padding:.6rem;border-bottom:1px solid var(--rule)}
.study .study-table caption {font-weight:600}
.study .study-related,.study .study-source {margin:1rem 0;color:var(--muted);font-size:.91rem}
.study .study-related summary {padding:.6rem 0;cursor:pointer}
.study .study-related div {display:flex;flex-wrap:wrap;gap:.5rem 1.2rem}
.study .study-feature,.study .study-section-head {overflow-wrap:break-word}
.study .study-enquiry>div {min-width:0}
.study .study-enquiry .study-link {max-width:36%;white-space:normal}
.study .study-updated {margin-top:2rem}
@media(max-width:740px){
 .study .study-facts{grid-template-columns:1fr;gap:.75rem}
 .study .study-gallery-extra{grid-template-columns:1fr}
 .study .study-gallery-extra .study-screen{height:clamp(12rem,66vw,25rem)}
 .study .study-gallery-extra .study-screen:has(img[width="390"]){height:25rem}
 
 .study .study-enquiry .study-link{max-width:100%}
}
.study .study-intro h1 .oxo-heading-accent {white-space:normal}
.study .study-cover a.study-link {max-width:50%;text-align:right}
.study .study-sheet>.study-quick,.study .study-intro+.study-context {margin:0 auto 1.25rem;max-width:65ch;text-align:center;color:var(--muted)}
.study .study-section-head .study-narrative {width:100%;max-width:65ch}
.study .study-prose .study-narrative>p:first-child {margin-top:1rem}
@media(max-width:480px){
 .study .study-cover-original>figcaption{align-items:flex-start;flex-direction:column;gap:.25rem}
 .study .study-cover a.study-link {max-width:100%;text-align:left}
}
