/* ============================================================
   GROWMARK — a case study page   (case-channah.html, case-orbit.html,
   case-sea-maris.html)

   Laid out after the user's references (2026-11-25, "Beam — Lighting
   Brand Identity"): the case's name on paper, its picture across the
   whole width, an Overview in four columns (About, Brief, Client, What
   we did), then on the dark the Workflow (the work's four stages and
   their steps, after the user's second reference) and the Key design
   decisions, then the case's pictures in rows of one
   height (the rows the home's work section showed before its reel,
   css/sections.css .work-case*, repeated here), and the next case.

   ============================================================ */

.case-page{background:var(--paper)}

/* ---------------------------- head ------------------------- */

.cs-head{padding-block:clamp(40px,7vw,112px) clamp(36px,5vw,80px)}
.cs-head__eyebrow{margin-bottom:clamp(14px,1.6vw,22px)}
.cs-head__title{
  max-width:22em;
  font-size:clamp(32px,3.8vw,58px);
  line-height:1.04;
}

/* the case's picture, across the whole width, as tall as its own shape
   allows up to most of a screen; upright screens get the middle of it,
   cut at 3:4 (the <source>, as on the home) */
.cs-hero{
  --ha:2;
  position:relative;
  margin:0;
  height:min(calc(100vw / var(--ha)), 86svh);
  overflow:hidden;
  background:#151514;
}
.cs-hero > picture{display:contents}
.cs-hero img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
@media (max-aspect-ratio:3/4){
  .cs-hero{--ha:.75}
}
/* a mark drawn on black (ORBIT): shown whole in the middle of a black band */
.cs-hero--whole{--ha:2.2;background:#000}
.cs-hero--whole img{
  position:absolute;
  inset:0;
  margin:auto;
  width:auto;
  height:82%;
  max-width:90%;
  object-fit:contain;
}
@media (max-aspect-ratio:3/4){
  .cs-hero--whole{--ha:1}
  .cs-hero--whole img{width:84%;height:auto}
}

/* ---------------------------- sections --------------------- */

.cs-sec{padding-top:clamp(72px,9vw,144px)}
.cs-h2{
  margin-bottom:clamp(36px,4.6vw,72px);
  font-size:clamp(36px,4.2vw,62px);
  line-height:1;
}
.cs-h3{
  margin-bottom:clamp(14px,1.6vw,22px);
  font-size:clamp(17px,1.35vw,20px);
  font-weight:500;
  line-height:1.28;
  letter-spacing:-.014em;
}
.cs-text p,
.cs-text li{
  font-size:15px;
  line-height:1.6;
  color:var(--muted);
  text-wrap:pretty;
}
.cs-text p + p{margin-top:1em}

/* ---------------------------- overview --------------------- */

.cs-cols{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(36px,4vw,64px) clamp(24px,3vw,48px);
}
.cs-client{color:var(--ink) !important}
/* what we did: the site's square dot */
.cs-list{display:grid;gap:.35em}
.cs-list li{position:relative;padding-left:16px}
.cs-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.68em;
  width:4px;
  height:4px;
  background:currentColor;
  opacity:.7;
}
@media (max-width:960px){
  .cs-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .cs-cols{grid-template-columns:minmax(0,1fr)}
}

/* ---------------------------- workflow --------------------- */

/* On the dark, as the user's reference (2026-11-25, "some contracts"),
   and each case its own ("each map should have its own workflow"): its
   stages over its columns, each ruled at its left edge, named at the top
   and numbered at the foot; one step a row, its bar filling the row across
   the columns it takes, the row's rule showing under it. The first
   stage's steps are pale blue, the last's orange, grey between; a step
   done only if needed has no fill, a dashed line under it. The columns
   (--cols) and the narrowest the chart may get (--minw) come from the
   page's generator, sized so no label is cut. */
.cs-flow{
  margin-top:clamp(72px,9vw,144px);
  padding-top:clamp(72px,9vw,140px);
}
.cw-wrap{
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
}
.cw{
  --row:clamp(32px,2.45vw,38px);
  --rule:rgba(250,250,248,.3);
  display:grid;
  grid-template-columns:var(--cols,repeat(7,minmax(0,1fr)));
  grid-template-rows:clamp(54px,4.2vw,64px) repeat(var(--rows),var(--row)) var(--row) clamp(44px,3.4vw,52px);
  min-width:var(--minw,1040px);
  border-right:1px solid var(--rule);
}
.cw__stage{
  grid-row:1 / -1;
  grid-column:var(--s) / span var(--d);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:10px 10px 12px;
  border-left:1px solid var(--rule);
}
.cw__stage-name{
  font-size:clamp(18px,1.55vw,24px);
  line-height:1.1;
  letter-spacing:-.02em;
}
.cw__stage-n{font-size:13px;color:var(--muted)}
/* the rows' rules, from the first step to the empty row before the foot */
.cw__rules{
  grid-row:2 / -2;
  grid-column:1 / -1;
  border-top:1px solid var(--line);
  background:repeating-linear-gradient(to bottom,transparent 0 calc(var(--row) - 1px),var(--line) calc(var(--row) - 1px) var(--row));
  pointer-events:none;
}
.cw__bar{
  position:relative;
  z-index:1;
  grid-row:var(--r);
  grid-column:var(--s) / span var(--d);
  align-self:start;
  display:flex;
  align-items:center;
  gap:.4em;
  min-width:0;
  height:calc(var(--row) - 1px);
  margin:0 0 0 1px;
  padding:0 9px;
  font-size:clamp(12.5px,.95vw,14px);
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cw__bar--start{background:#CDE8F3;color:#131312}
.cw__bar--work{background:#C4C4C1;color:#131312}
.cw__bar--end{background:#F0601C;color:#FAFAF8}
/* no fill, so a step that crosses stages keeps their rules showing */
.cw__bar--opt{
  height:var(--row);
  background:none;
  color:var(--ink);
  border-bottom:1px dashed rgba(240,96,28,.75);
}
.cw__note{color:var(--muted)}

/* ---------------------------- key decisions ---------------- */

.cs-keys{
  margin-top:clamp(72px,9vw,144px);
  padding-block:clamp(72px,9vw,140px);
}
/* straight after the Workflow, on the same dark */
.cs-flow + .cs-keys{margin-top:-1px}   /* -1px: no hairline of the paper between the two at fractional heights */

/* ---------------------------- the pictures ----------------- */

.cs-gallery{padding:clamp(8px,1vw,16px) clamp(8px,1vw,16px) 0}
.cs-gallery .work-case{
  display:flex;
  flex-direction:column;
  gap:clamp(8px,1vw,16px);
}
.cs-gallery .work-case__row{display:flex;gap:clamp(8px,1vw,16px)}
.cs-gallery .work-case__fig{
  position:relative;
  flex:var(--a) 1 0;
  min-width:0;
  aspect-ratio:var(--a);
  margin:0;
  overflow:hidden;
  background:#151514;
}
.cs-gallery .work-case__fig > img:first-child{display:block;width:100%;height:100%;object-fit:cover}
/* the case's website, live (js/case-site.js): it scrolls itself, and is
   the visitor's to use while hovered, pressed or focused */
.cs-gallery .work-case__scroll{position:absolute;inset:0;overflow:hidden;scrollbar-width:none;outline:none}
.cs-gallery .work-case__scroll::-webkit-scrollbar{display:none}
.cs-gallery .work-case__site.is-held .work-case__scroll{overflow-y:auto}
.cs-gallery .work-case__site.is-touch .work-case__scroll{overscroll-behavior:contain}
.cs-gallery .work-case__scroll:focus-visible{box-shadow:inset 0 0 0 2px rgba(255,255,255,.6)}
.cs-gallery .work-case__scroll > .work-case__poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cs-gallery .work-case__scroll > iframe{
  position:absolute;left:0;top:0;width:1440px;height:900px;border:0;
  transform-origin:0 0;transform:scale(var(--k,.5));
  pointer-events:none;background:transparent;
}
.cs-gallery .work-case__site.is-held .work-case__scroll > iframe{pointer-events:auto}
.cs-gallery .case__word{position:absolute;width:auto;height:auto;pointer-events:none}
.cs-gallery .case__word--architectural{left:4%;top:3.5%;width:92%;opacity:.88}
.cs-gallery .case__word--aristocratic{left:4%;bottom:3%;width:89%;filter:invert(1) sepia(.18);opacity:.9}
/* a case's colour palette (The Sea Maris), drawn as its own picture */
.cs-gallery .case__palette{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  grid-template-rows:1fr 1fr;
  gap:clamp(6px,.7vw,10px);
  background:none;
}
.cs-gallery .case__swatch{
  grid-column:span 2;
  display:flex;
  align-items:flex-end;
  min-width:0;
  padding:clamp(10px,1.2vw,18px);
  color:#fff;
  font-size:clamp(11px,.95vw,14px);
  line-height:1;
  letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
}
.cs-gallery .case__swatch--wide{grid-column:span 3}
.cs-gallery .case__swatch--light{color:#151514}
/* phones: one picture across, the squares two across */
@media (max-width:640px){
  .cs-gallery .work-case__row{flex-wrap:wrap}
  .cs-gallery .work-case__fig{flex:1 1 100%}
  .cs-gallery .work-case__fig[style*="--a:1.0000"]{flex:1 1 calc(50% - 8px)}
}

/* ---------------------------- out of the toning ------------
   The work is shown as it is (the user, 2026-11-25: "don't apply the
   filter on the portfolio work"): the case's picture and its rows take
   the inverse of the site's toning (#site-untone, inline on these pages),
   as the home's work cards do (css/tokens.css). The rows' block carries
   the paper, so the gaps between pictures print as the page around them
   (white barely moves through the toning). Safari tones with a soft-light
   layer instead, and these take its inverse as their own layer. */
.cs-gallery .work-case{position:relative;background:var(--paper)}
:is(.cs-hero, .cs-gallery .work-case){filter:url(#site-untone)}
@supports (font:-apple-system-body) and (-webkit-appearance:none){
  :is(.cs-hero, .cs-gallery .work-case){filter:none;isolation:isolate}
  :is(.cs-hero, .cs-gallery .work-case)::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:2147483646;
    pointer-events:none;
    background:rgb(110,128,179);
    mix-blend-mode:soft-light;
  }
}

/* ---------------------------- next case -------------------- */

.cs-next{padding-block:clamp(72px,9vw,140px)}
.cs-next__inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px 48px;
  flex-wrap:wrap;
}
.cs-next__link{display:block;color:inherit;text-decoration:none}
.cs-next__title{
  display:flex;
  align-items:center;
  gap:.35em;
  margin-top:clamp(12px,1.4vw,20px);
  font-size:clamp(34px,5vw,80px);
  line-height:1;
}
.cs-next__title .dot-arrow{width:12px;height:21px;transition:transform var(--dur-2) var(--ease)}
.cs-next__link:hover .dot-arrow,
.cs-next__link:focus-visible .dot-arrow{transform:translateX(6px)}
.cs-next__link:focus-visible{outline:2px solid var(--ink);outline-offset:6px}

/* ---------------------------- footer ----------------------- */
/* the legal pages' bar (css/careers.css, css/privacy.css), copied so
   this page loads neither */

.careers-foot{border-top:1px solid var(--line)}
.careers-foot__bar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 28px;
  padding-block:28px;
  font-size:13.5px;
  color:var(--muted);
}
.careers-foot__bar > :first-child{margin-right:auto}
.careers-foot__bar .tlink{color:var(--ink)}
.careers-foot__cookies{
  padding:0 0 2px;
  border:0;
  background:none;
  font:inherit;
  font-weight:500;
  cursor:pointer;
}
.legal__mail{
  margin:0;
  padding:0 0 2px;
  border:0;
  background:none;
  font:inherit;
  font-weight:500;
  cursor:pointer;
}
.legal__mail:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.legal__mail-roll{display:inline-grid;justify-items:start;overflow:hidden;vertical-align:bottom}
.legal__mail-roll > span{grid-area:1 / 1;transition:transform .35s var(--ease)}
.legal__mail-done{transform:translateY(105%)}
.legal__mail[data-copied] .legal__mail-text{transform:translateY(-105%)}
.legal__mail[data-copied] .legal__mail-done{transform:none}
@media (prefers-reduced-motion:reduce){
  .legal__mail-roll > span{transition:none}
  .cs-next__title .dot-arrow{transition:none}
}
