/* polish-c.css — final review polish, loaded last */
/* Scope: Our work (#work: showreel and photo wall, plus its photo viewer)
   and Design & development (#design: the artboard studio). */

/* ---------- Our work: showreel ---------- */
@media (min-width: 700px) {
  /* a soft shade in the bottom-right corner so the chapter bars and buttons
     read on bright photos as well as dark ones */
  #work .reelstage__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: radial-gradient(42% 62% at 100% 100%, rgba(2, 6, 5, .72), rgba(2, 6, 5, .42) 45%, rgba(2, 6, 5, 0) 78%);
  }
  /* chapter bars: a brighter track, so the unplayed chapters are visible */
  #work .reelseg i { background: rgba(244, 240, 230, .38); box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
  #work .reelseg:hover i { background: rgba(244, 240, 230, .58); }
}
/* the intro breaks into two even lines ("...put to work / for takeaways, cafés
   and shops.") instead of leaving "and shops." alone on the second line */
#work .reelstage__intro { max-width: 19em; text-wrap: wrap; }

@media (min-width: 1100px) {
  /* the title and the controls line up with the site container's edges, like
     the text in every other section (--t is the container edge measured from
     the showreel's own edge, which sits clamp(12px, 1.2vw, 22px) in from the page) */
  #work .reelstage {
    --rm: clamp(12px, 1.2vw, 22px);
    --t: calc(max(var(--gutter), (100% + 2 * var(--rm) - var(--maxw)) / 2) - var(--rm));
  }
  #work .reelstage__title { left: var(--t); }
  /* the controls sit on the caption's line: the middle of the buttons lines up
     with the middle of the caption text (caption 14.5px x 1.3, buttons 42px) */
  #work .reelstage__controls { right: var(--t); bottom: calc(clamp(22px, 3vw, 54px) - 11.6px); }
  /* the shade under the title moves with it, so the text keeps its contrast */
  #work .reelstage__fx {
    background:
      radial-gradient(66% 118% at max(0px, calc(max(var(--gutter), (100% + 2 * var(--rm) - var(--maxw)) / 2) - var(--rm) - 60px)) 100%, rgba(2, 6, 5, .95), rgba(2, 6, 5, .86) 32%, rgba(2, 6, 5, .56) 54%, rgba(2, 6, 5, .2) 74%, transparent 90%),
      linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, 0) 17%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .74) 100%),
      radial-gradient(130% 120% at 50% 42%, transparent 50%, rgba(0, 0, 0, .58) 100%);
  }
}

/* keyboard focus on the round buttons: a clear ring that follows the circle */
#work .reelbtn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* ---------- Design & development ---------- */
/* the intro keeps "screens —" together, so the dash never starts a line */
#design .section-head .section-intro { max-width: 19.9em; text-wrap: wrap; }
/* ...and it still starts where the other split intros start (the column's
   left edge), rather than being pushed right by the narrower box */
@media (min-width: 900px) { #design .section-head--split .section-intro { justify-self: start; } }
/* narrow phones: a touch smaller, so "...your screens —" still fits on line one */
@media (max-width: 379px) { #design .section-head .section-intro { font-size: 17px; } }

/* phones: every artboard in the scroller has the same shape, so the titles,
   copy and "Get a quote" links line up from card to card, and the short menu
   board no longer leaves a tall empty gap under it (the demos scale with
   their frames) */
@media (max-width: 699px) {
  #design .aboard--menu,
  #design .aboard--logo,
  #design .aboard--web,
  #design .aboard--seo,
  #design .aboard--social,
  #design .aboard--code { --ar: 1.25; }
}

/* Round 2 */
/* ---------- Our work ---------- */
/* the showreel: a faint warm spill of light under the screen, as if it were lit */
#work .reelstage__frame {
  box-shadow:
    0 0 0 1px rgba(244, 240, 230, .08),
    0 60px 120px -60px rgba(0, 0, 0, .9),
    0 40px 90px -56px rgba(255, 107, 61, .22);
}
/* round buttons: a soft halo on hover, so they feel pressable */
#work .reelbtn { transition: background-color .25s ease, border-color .25s ease, box-shadow .3s ease; }
#work .reelbtn:hover { box-shadow: 0 0 0 5px rgba(244, 240, 230, .07); }
/* the playing chapter's bar glows a little */
#work .reelseg.is-active i { box-shadow: 0 0 12px rgba(244, 240, 230, .32), 0 1px 6px rgba(0, 0, 0, .35); }

/* the wall sits closer to the showreel, so the two read as one piece */
#work .workwall {
  position: relative;
  isolation: isolate;
  margin-top: clamp(30px, 3.4vw, 60px);
}
/* soft ambient light behind the two rows (static, no filter) */
#work .workwall::before {
  content: "";
  position: absolute;
  inset: -6% 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 52% at 24% 46%, rgba(255, 107, 61, .075), transparent 72%),
    radial-gradient(40% 56% at 78% 58%, rgba(80, 200, 150, .055), transparent 72%);
}
/* each photo glows faintly in its own colour, like a lit screen on a dark wall */
#work .wtile__btn {
  box-shadow:
    0 18px 36px -26px rgba(0, 0, 0, .9),
    0 20px 40px -30px color-mix(in srgb, var(--glow) 34%, transparent);
}
#work .wtile__btn:is(:hover, :focus-visible) {
  box-shadow:
    0 30px 56px -26px color-mix(in srgb, var(--glow) 70%, transparent),
    0 0 0 1px color-mix(in srgb, var(--glow) 42%, transparent),
    0 0 0 6px color-mix(in srgb, var(--glow) 9%, transparent);
}
/* a glass edge: a brighter hairline along the top of each photo */
#work .wtile__btn::after { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(244, 240, 230, .09); }
#work .wtile__btn:is(:hover, :focus-visible)::after { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(244, 240, 230, .26); }
/* the hint under the wall: framed by two fading hairlines */
#work .workwall__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  letter-spacing: .01em;
  color: rgba(244, 240, 230, .56);
}
#work .workwall__note::before,
#work .workwall__note::after {
  content: "";
  flex: 0 0 clamp(28px, 4vw, 56px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 240, 230, .26));
}
#work .workwall__note::after { background: linear-gradient(270deg, transparent, rgba(244, 240, 230, .26)); }

/* ---------- Design & development ---------- */
/* warm daylight on the canvas: a coral wash top right, a green shade bottom left
   (the dotted grid layer sits above this) */
#design.section {
  background:
    radial-gradient(48% 34% at 92% 0%, rgba(255, 107, 61, .075), transparent 72%),
    radial-gradient(52% 36% at 0% 100%, rgba(18, 53, 43, .07), transparent 72%),
    radial-gradient(70% 40% at 50% 46%, rgba(255, 255, 255, .32), transparent 76%),
    var(--cream);
}
/* artboards: layered shadows (contact, near and far) for a paper-on-desk depth */
#design .aboard__frame {
  box-shadow:
    0 0 0 1px rgba(18, 53, 43, .09),
    0 1px 2px rgba(18, 53, 43, .06),
    0 10px 22px -14px rgba(18, 53, 43, .24),
    0 30px 54px -34px rgba(18, 53, 43, .5);
}
/* a glass edge along the top of each artboard */
#design .aboard__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
@media (hover: hover) and (pointer: fine) {
  #design .aboard__stage:hover .aboard__frame {
    box-shadow:
      0 0 0 1px rgba(18, 53, 43, .12),
      0 2px 4px rgba(18, 53, 43, .06),
      0 18px 34px -18px rgba(18, 53, 43, .3),
      0 46px 72px -38px rgba(18, 53, 43, .58);
  }
}
/* crop marks a touch closer, so neighbouring boards' marks never touch */
#design .aboard__stage::before { inset: -10px; }
/* the format tag reads as a small paper chip */
#design .aboard__top span:last-child {
  border-radius: 5px;
  background: rgba(255, 255, 255, .42);
  box-shadow: inset 0 0 0 1px rgba(18, 53, 43, .13), 0 1px 0 rgba(255, 255, 255, .6);
}
/* copy without lone last words */
#design .aboard__copy { text-wrap: pretty; }
/* "Get a quote": the round icon gets a soft coral halo on hover and focus */
#design .aboard__go-icon { transition: transform .35s var(--ease-out), background-color .25s ease, box-shadow .35s ease; }
#design .aboard__go:is(:hover, :focus-visible) .aboard__go-icon { box-shadow: 0 0 0 4px rgba(255, 107, 61, .16), 0 6px 14px -6px rgba(255, 107, 61, .7); }
#design .aboard__go:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 6px; }

/* Round 3 */
/* ---------- Our work ---------- */
/* the headline: at this size the tight tracking closed the word spaces up
   ("Outin the wild"), so they open a touch; the round "O" is pulled back by its
   side bearing so its curve lines up with the eyebrow dot and the intro below */
#work #work-title { word-spacing: .06em; margin-left: -.05em; }

/* the "Real installs" badge hangs on the same left edge as the eyebrow, title,
   intro and caption, instead of sitting on its own line near the frame's corner */
@media (min-width: 1100px) {
  #work .reelstage__badge { left: var(--t); }
}

/* a glass edge on the showreel, like the photos below it: a brighter hairline
   along the top, fading down the sides */
#work .reelstage__fx {
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(244, 240, 230, .045);
}

/* the wall: the gap between the two rows now matches the gap between photos,
   so the wall reads as one even grid (the rows' padding still leaves room for
   the lift and glow on hover) */
#work .workwall__row + .workwall__row { margin-top: calc(var(--wg) - 52px); }
@media (max-width: 699px) {
  #work .workwall__row + .workwall__row { margin-top: calc(var(--wg) - 38px); }
}

/* captions that run to two lines break evenly, and the bullet stays on the
   first line instead of floating between the two */
#work .wtile__cap { align-items: flex-start; text-wrap: balance; }
#work :is(.wtile__cap, .reelstage__cap) .px-bullet { align-self: flex-start; margin-top: calc((1lh - 7px) / 2); }
#work .reelstage__cap { align-items: flex-start; text-wrap: balance; }

/* ---------- Design & development ---------- */
/* the headline's round "G" lines up optically with the eyebrow dot */
#design #design-title { margin-left: -.045em; }

/* wide screens: the intro starts exactly where the Logo artboard below it
   starts, so the heading and the canvas share one grid (the columns copy the
   first row of artboards: menu 16:9 + logo 1.4:1, 28px apart) */
@media (min-width: 1100px) {
  #design .section-head--split {
    grid-template-columns: minmax(0, 1.7778fr) minmax(0, 1.4fr);
    column-gap: 28px;
  }
}

/* software board: the kitchen screen's live light had almost no space before
   its label on the wide board; prices on the café cards use even figures */
#design .code__kds span:first-child { gap: .7em; }
#design .web__card span { font-variant-numeric: tabular-nums; }

/* keyboard focus on a wall photo: the cream focus ring alone, without the
   coloured halo from the hover state sitting just outside it */
#work .wtile__btn:focus-visible {
  box-shadow:
    0 30px 56px -26px color-mix(in srgb, var(--glow) 70%, transparent),
    0 0 0 1px color-mix(in srgb, var(--glow) 42%, transparent);
}
