/* G.J. du Toit: website component styles, version 2 ("Chapters").
   Colours, spaces, strokes, sizes and shadows come from tokens.json. Font sizes repeat the type styles of the same name.
   Layout responds to the width of .gj-page (a container), not the window, so every part also works inside a narrow column.
   The heading lines need bundle.js (on the website: js/site.js). Everything else is CSS only. */

/* Motion: the one easing curve for anything that moves. tokens.json has no motion family, so it lives here. */
:root { --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1); }

/* Page ------------------------------------------------------------------ */
.gj-ground { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 28px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.gj-page { container-type: inline-size; container-name: page; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 28px; }
.gj-page *, .gj-page *::before, .gj-page *::after { box-sizing: border-box; }
.gj-page :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
.gj-page :where(ul, ol) { list-style: none; }
.gj-page :where(a) { color: inherit; text-decoration: none; }
.gj-page :where(img, svg) { display: block; }
.gj-page :focus-visible { outline: var(--stroke-focus) solid var(--ink); outline-offset: 3px; }

/* Measures that change with the width of the page. Set on the page's children so everything inside can use them. */
.gj-page > * {
  --gutter: var(--size-gutter);
  --stack-gap: 22px;
  --cover-w: clamp(96px, 11.2cqi, 172px);                                          /* hero covers; never above 172px, well under their real size */
  --piece-h: min(310px, calc((100cqi - 2 * var(--gutter) - 72px) / 3.477));         /* tallest work piece; 310px is under every image's real height */
  --overhang: calc(var(--cover-w) * 0.87);                                          /* how far the hero covers hang into the next chapter */
  --piece-overhang: calc(var(--piece-h) * 0.39);
}
@container page (max-width: 1199px) { .gj-page > * { --gutter: 48px; --stack-gap: 16px; } }
@container page (max-width: 899px) { .gj-page > * { --gutter: 32px; --cover-w: min(172px, calc((100cqi - 2 * var(--gutter) - 3 * var(--stack-gap)) / 4)); --piece-h: 230px; } }
@container page (max-width: 599px) { .gj-page > * { --gutter: 20px; --stack-gap: 10px; --piece-h: 210px; } }

.gj-container { max-width: calc(var(--size-container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.gj-chapter--deep { background: var(--teal-ink); color: var(--on-deep); }
.gj-chapter--deep :focus-visible { outline-color: var(--on-deep); }

/* Type ------------------------------------------------------------------ */
.gj-display, .gj-h2 { font-family: var(--font-display); font-weight: 400; color: inherit; font-variant-numeric: oldstyle-nums; }
.gj-display { font-size: clamp(46px, 8.6cqi, 124px); line-height: 1.02; letter-spacing: -0.022em; }
.gj-h2 { font-size: clamp(38px, 4.6cqi, 64px); line-height: 1.04; letter-spacing: -0.018em; }
.gj-h2--large { font-size: clamp(40px, 7.2cqi, 104px); line-height: 1.02; letter-spacing: -0.022em; }
.gj-h2--small { font-size: clamp(32px, 3.5cqi, 48px); line-height: 1.08; letter-spacing: -0.015em; }
.gj-h1 { font-family: var(--font-display); font-weight: 400; color: inherit; font-variant-numeric: oldstyle-nums; font-size: clamp(42px, 6.4cqi, 92px); line-height: 1.02; letter-spacing: -0.022em; }
.gj-h3 { font-family: var(--font-ui); font-size: 22px; line-height: 28px; font-weight: 400; font-style: italic; color: var(--orange-deep); }
.gj-caption { font-family: var(--font-body); font-size: 15px; line-height: 22px; font-style: italic; color: var(--ink-muted); }
.gj-it { font-style: italic; letter-spacing: -0.012em; }
.gj-lede { font-family: var(--font-body); font-size: 22px; line-height: 34px; text-wrap: pretty; }
.gj-eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--font-ui); font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive-deep); }
.gj-eyebrow__no { color: var(--orange-deep); }
.gj-eyebrow__rule { flex: none; width: calc(var(--size-dot-pitch) * 4); height: var(--stroke-dot); background: radial-gradient(circle, var(--orange) calc(var(--stroke-dot) / 2 - 0.2px), transparent calc(var(--stroke-dot) / 2 + 0.2px)) 0 0 / var(--size-dot-pitch) var(--stroke-dot) repeat-x; }
.gj-chapter--deep .gj-eyebrow, .gj-work .gj-eyebrow { color: var(--on-deep-muted); }
.gj-chapter--deep .gj-eyebrow__no, .gj-work .gj-eyebrow__no { color: var(--on-deep); }
.gj-small { font-family: var(--font-ui); font-size: 14px; line-height: 20px; letter-spacing: 0.01em; color: var(--ink-muted); }
@container page (max-width: 599px) { .gj-lede { font-size: 20px; line-height: 31px; } }

/* A heading line and its type-metric lines. site.js measures the font and places the lines; without it there are none. */
.gj-ln { display: block; position: relative; }
.gj-ln__t { position: relative; z-index: 1; }
.gj-guide { position: absolute; left: 0; right: 0; height: 0; pointer-events: none; }
.gj-guide::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--stroke-hairline); background: currentColor; opacity: 0.3; transform: scaleX(0); transform-origin: left center; transition: transform 900ms var(--ease-out); }
.gj-guide--base::before { background: var(--orange); opacity: 1; }
.gj-guide:nth-of-type(3)::before { transition-delay: 90ms; }
.gj-guide:nth-of-type(4)::before { transition-delay: 180ms; }
.gj-guide:nth-of-type(5)::before { transition-delay: 270ms; }
.gj-guide__label { position: absolute; right: 0; bottom: 6px; font-family: var(--font-ui); font-style: normal; font-size: 10.5px; line-height: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0; transition: opacity 500ms ease 450ms; }
.gj-ln--ruled.is-drawn .gj-guide::before { transform: scaleX(1); }
.gj-guide--desc .gj-guide__label { bottom: auto; top: 7px; }
.gj-ln--ruled.is-drawn .gj-guide__label { opacity: 0.66; }
.gj-guide--still::before, .gj-guide--still .gj-guide__label { transition: none; }
@media (hover: hover) { :is(.gj-display, .gj-h1, .gj-h2):hover .gj-guide::before { transform: scaleX(1); } }

/* Buttons and links ----------------------------------------------------- */
.gj-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border: var(--stroke-hairline) solid var(--teal-ink); border-radius: var(--radius-none); background: var(--teal-ink); color: var(--on-deep); font-family: var(--font-ui); font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.gj-button:hover { background: var(--teal-ink-hover); border-color: var(--teal-ink-hover); }
.gj-button--small { min-height: var(--size-control); padding: 0 22px; }
.gj-chapter--deep .gj-button { background: var(--on-deep); border-color: var(--on-deep); color: var(--ink); }
.gj-chapter--deep .gj-button:hover { background: var(--orange); border-color: var(--orange); }
.gj-chapter--deep .gj-button--secondary { background: transparent; color: var(--on-deep); }
.gj-chapter--deep .gj-button--secondary:hover { background: var(--on-deep); border-color: var(--on-deep); color: var(--ink); }
.gj-actions { display: flex; flex-wrap: wrap; gap: 18px; }
@container page (max-width: 599px) { .gj-actions { gap: var(--space-3); } .gj-actions .gj-button { flex: 1 1 auto; padding: 0 22px; } }
.gj-arrow { flex: none; width: 22px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 300ms var(--ease-out); }
.gj-arrow-link { display: inline-flex; align-items: center; gap: 12px; min-height: var(--size-control); font-family: var(--font-ui); font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.gj-arrow-link:hover .gj-arrow { transform: translateX(6px); }
.gj-arrow-link--back:hover .gj-arrow { transform: translateX(-6px); }
.gj-button:disabled, .gj-button[aria-disabled="true"] { background: var(--hairline); border-color: var(--hairline); color: var(--ink-muted); cursor: not-allowed; }

/* Header: the letterhead ------------------------------------------------- */
.gj-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: 26px 0; }
.gj-wordmark { display: inline-flex; align-items: center; gap: var(--space-4); color: var(--ink); }
.gj-wordmark img { flex: none; width: var(--size-seal-small); height: var(--size-seal-small); }
.gj-wordmark__name { font-family: var(--font-display); font-variant-caps: small-caps; font-size: 25px; line-height: 26px; letter-spacing: 0.1em; white-space: nowrap; }
.gj-wordmark__line { display: block; margin-top: 2px; font-family: var(--font-display); font-variant-caps: normal; font-style: italic; font-size: 16px; line-height: 20px; letter-spacing: 0; color: var(--ink-muted); font-variant-numeric: oldstyle-nums; }
.gj-nav { display: flex; align-items: center; gap: 40px; font-family: var(--font-ui); font-size: 16px; line-height: 24px; letter-spacing: 0.01em; }
.gj-nav__link { position: relative; display: inline-block; padding: var(--space-3) 0; }
.gj-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: var(--stroke-focus); background: var(--orange); transform: scaleX(0); transform-origin: left center; transition: transform 300ms var(--ease-out); }
.gj-nav__link:hover::after, .gj-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.gj-menu { display: none; position: relative; font-family: var(--font-ui); }
.gj-menu > summary { display: inline-flex; align-items: center; min-height: var(--size-control); padding: 0 var(--space-4); border: var(--stroke-hairline) solid var(--ink); font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; list-style: none; }
.gj-menu > summary::-webkit-details-marker { display: none; }
.gj-menu[open] > summary { background: var(--ink); color: var(--paper); }
.gj-menu .gj-nav { position: absolute; right: 0; top: calc(100% + var(--space-2)); z-index: 5; min-width: 220px; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--space-5); background: var(--paper); border: var(--stroke-hairline) solid var(--ink); }
.gj-menu .gj-nav li + li { border-top: var(--stroke-hairline) solid var(--hairline); }
.gj-menu .gj-nav__link { display: block; }
.gj-menu .gj-nav__link::after { display: none; }
@container page (max-width: 759px) { .gj-header__nav { display: none; } .gj-menu { display: block; } .gj-header { padding: 18px 0; } }
@container page (max-width: 599px) { .gj-wordmark { gap: var(--space-3); } .gj-wordmark img { width: 52px; height: 52px; } .gj-wordmark__name { font-size: 21px; line-height: 22px; } .gj-wordmark__line { font-size: 14px; line-height: 18px; } }

/* Chapter: hero ---------------------------------------------------------- */
.gj-hero { padding-top: clamp(56px, 7.2cqi, 104px); }
.gj-hero__split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-5); margin-top: clamp(36px, 5.8cqi, 84px); }
.gj-hero__text { padding-bottom: clamp(72px, 7.8cqi, 112px); }
.gj-hero__text .gj-lede { max-width: 440px; color: var(--on-deep-muted); }
.gj-hero__text .gj-actions { margin-top: 40px; }
.gj-stack { position: relative; z-index: 2; display: flex; justify-content: flex-end; align-items: flex-start; gap: var(--stack-gap); align-self: end; margin-bottom: calc(-1 * var(--overhang)); }
.gj-stack a { display: block; flex: none; animation: gj-rise 900ms var(--ease-out) both; }
.gj-stack a:nth-child(1) { margin-top: calc(var(--cover-w) * 0.23); animation-delay: 250ms; }
.gj-stack a:nth-child(2) { animation-delay: 350ms; }
.gj-stack a:nth-child(3) { margin-top: calc(var(--cover-w) * 0.37); animation-delay: 450ms; }
.gj-stack a:nth-child(4) { margin-top: calc(var(--cover-w) * 0.12); animation-delay: 550ms; }
.gj-stack img { width: var(--cover-w); height: auto; box-shadow: var(--shadow-lift); transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out); }
@keyframes gj-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@container page (max-width: 899px) {
  .gj-hero__split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gj-hero__text { padding-bottom: 0; }
  .gj-stack { justify-content: space-between; margin-top: 56px; }
}

/* Chapter: services ------------------------------------------------------ */
.gj-services { padding: clamp(88px, 8.9cqi, 128px) 0 clamp(88px, 10cqi, 144px); }
.gj-services__head { max-width: 38%; }
.gj-services__head .gj-h2, .gj-work__bar .gj-h2, .gj-contact .gj-h2 { margin-top: 22px; }
.gj-cols { display: grid; grid-template-columns: 96px 4fr 5fr 40px; gap: 0 var(--space-5); align-items: baseline; }
.gj-rows__head { margin-top: clamp(48px, 5.8cqi, 84px); padding: 13px 0; border-top: var(--stroke-hairline) solid var(--ink); border-bottom: var(--stroke-hairline) solid var(--ink); font-family: var(--font-ui); font-size: 11.5px; line-height: 14px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); }
.gj-row { position: relative; padding: 25px 0 27px; border-bottom: var(--stroke-hairline) solid var(--hairline); }
.gj-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--stroke-hairline); background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform 600ms var(--ease-out); }
.gj-row__no { font-family: var(--font-ui); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: var(--ink-muted); transition: color 200ms ease; }
.gj-row__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 2.95cqi, 42px); line-height: 1.1; letter-spacing: -0.012em; transition: transform 380ms var(--ease-out); }
.gj-row__what { font-size: 18px; line-height: 28px; color: var(--ink-muted); text-wrap: pretty; }
.gj-row .gj-arrow { justify-self: end; align-self: center; }
.gj-rows--plain { border-top: var(--stroke-hairline) solid var(--ink); }
@container page (max-width: 1199px) { .gj-cols { grid-template-columns: 64px 4fr 5fr 32px; } }
@container page (max-width: 899px) {
  .gj-services { padding-top: calc(var(--overhang) + 72px); }
  .gj-services__head { max-width: none; }
  .gj-rows__head { height: 0; padding: 0; border-bottom: 0; overflow: hidden; }
  .gj-cols { grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 6px var(--space-3); }
  .gj-row { padding: 20px 0 22px; }
  .gj-row__name { font-size: 32px; }
  .gj-row__what { grid-column: 2 / 3; grid-row: 2; font-size: 17px; line-height: 26px; }
  .gj-row .gj-arrow { align-self: baseline; }
}

/* Chapter: work. The colour stops short so the pieces stand across its lower edge. */
.gj-work { --caption-h: 64px; padding-top: clamp(80px, 8.9cqi, 128px); color: var(--on-deep); background: linear-gradient(var(--teal-ink), var(--teal-ink)) top / 100% calc(100% - (var(--piece-overhang) + 22px + var(--caption-h))) no-repeat; }
.gj-work :focus-visible { outline-color: var(--on-deep); }
.gj-work__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.gj-work__bar .gj-arrow-link { margin-bottom: 6px; }
.gj-pieces { display: flex; justify-content: space-between; align-items: flex-start; margin-top: clamp(40px, 6.1cqi, 88px); }
.gj-piece { display: block; }
.gj-piece:focus-visible { outline: var(--stroke-focus) solid var(--ink); box-shadow: 0 0 0 5px var(--paper); }
.gj-piece__media { display: flex; align-items: flex-end; height: var(--piece-h); }
.gj-piece__frame { position: relative; display: flex; box-shadow: var(--shadow-lift); transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out); }
.gj-piece__frame img { width: auto; height: calc(var(--piece-h) * var(--k, 1)); background: var(--sheet); }
.gj-piece__frame::before { content: ""; position: absolute; inset: -15px; opacity: 0; transform: scale(0.97); transition: opacity 300ms ease, transform 380ms var(--ease-out);
  background:
    linear-gradient(var(--orange), var(--orange)) 0 15px / 10px 1px no-repeat, linear-gradient(var(--orange), var(--orange)) 15px 0 / 1px 10px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 100% 15px / 10px 1px no-repeat, linear-gradient(var(--orange), var(--orange)) calc(100% - 15px) 0 / 1px 10px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 0 calc(100% - 15px) / 10px 1px no-repeat, linear-gradient(var(--orange), var(--orange)) 15px 100% / 1px 10px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 100% calc(100% - 15px) / 10px 1px no-repeat, linear-gradient(var(--orange), var(--orange)) calc(100% - 15px) 100% / 1px 10px no-repeat; }
.gj-piece__caption { height: var(--caption-h); margin-top: 22px; overflow: hidden; font-family: var(--font-ui); font-size: 15px; line-height: 21px; letter-spacing: 0.01em; color: var(--ink); }
.gj-piece__caption span { display: block; color: var(--ink-muted); }
@container page (max-width: 899px) {
  /* A shelf to swipe along: the pieces keep their size and the row runs off the right edge. */
  .gj-pieces { justify-content: flex-start; gap: var(--space-5); margin: 12px calc(-1 * var(--gutter)) 0; padding: 28px var(--gutter) 0; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--gutter); scrollbar-width: none; }
  .gj-pieces::-webkit-scrollbar { display: none; }
  .gj-pieces li { flex: none; scroll-snap-align: start; }
  .gj-piece__caption { max-width: 240px; }
}

/* Lift on hover and on keyboard focus. Not on touch screens, where hover sticks. */
@media (hover: hover) {
  .gj-stack a:hover img, .gj-piece:hover .gj-piece__frame { transform: translateY(-14px); box-shadow: var(--shadow-lift-hover); }
  .gj-piece:hover .gj-piece__frame::before { opacity: 1; transform: none; }
  .gj-row:hover::after { transform: scaleX(1); }
  .gj-row:hover .gj-row__no { color: var(--orange-deep); }
  .gj-row:hover .gj-row__name { transform: translateX(12px); }
  .gj-row:hover .gj-arrow { transform: translateX(6px); }
}
.gj-stack a:focus-visible img, .gj-piece:focus-visible .gj-piece__frame { transform: translateY(-14px); box-shadow: var(--shadow-lift-hover); }
.gj-piece:focus-visible .gj-piece__frame::before { opacity: 1; transform: none; }
.gj-row:focus-visible::after { transform: scaleX(1); }

/* Chapter: contact ------------------------------------------------------- */
.gj-contact { padding: clamp(72px, 9.4cqi, 136px) 0 clamp(150px, 14.4cqi, 208px); }
.gj-facts { display: grid; grid-template-columns: 0.85fr 0.85fr 1.1fr 1.2fr; margin-top: clamp(40px, 5.3cqi, 76px); border-bottom: var(--stroke-hairline) solid var(--ink); }
.gj-facts > div { padding: 18px var(--space-5) 24px 0; border-top: var(--stroke-hairline) solid var(--ink); }
.gj-facts > div + div { padding-left: var(--space-5); border-left: var(--stroke-hairline) solid var(--ink); }
.gj-facts dt { font-family: var(--font-ui); font-size: 11.5px; line-height: 14px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); }
.gj-facts dd { margin-top: 12px; font-family: var(--font-display); font-size: clamp(22px, 1.85cqi, 26px); line-height: 32px; font-variant-numeric: oldstyle-nums; overflow-wrap: anywhere; }
.gj-facts a { padding-bottom: 3px; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 var(--stroke-focus) no-repeat; transition: background-size 380ms var(--ease-out); }
.gj-facts a:hover, .gj-facts a:focus-visible { background-size: 100% var(--stroke-focus); }
.gj-contact .gj-button { margin-top: var(--space-7); }
@container page (max-width: 899px) {
  .gj-facts { grid-template-columns: 1fr 1fr; }
  .gj-facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@container page (max-width: 599px) {
  .gj-facts { grid-template-columns: minmax(0, 1fr); }
  .gj-facts > div, .gj-facts > div + div { padding: 14px 0 18px; border-left: 0; }
  .gj-facts dd { margin-top: 6px; font-size: 24px; }
}

/* Inner pages: the opener ------------------------------------------------ */
.gj-opener { padding: clamp(48px, 6cqi, 88px) 0 clamp(52px, 6.4cqi, 92px); }
.gj-opener .gj-h1 { margin-top: 22px; }
.gj-opener .gj-lede { max-width: var(--size-measure); margin-top: clamp(24px, 2.8cqi, 40px); color: var(--on-deep-muted); }
.gj-opener .gj-actions { margin-top: 40px; }
.gj-jump { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: clamp(28px, 3.3cqi, 48px); padding-top: var(--space-3); border-top: var(--stroke-hairline) solid var(--on-deep-line); font-family: var(--font-ui); font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.gj-jump a { position: relative; display: inline-block; padding: 14px 0; }
.gj-jump a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: var(--stroke-focus); background: var(--orange); transform: scaleX(0); transform-origin: left center; transition: transform 300ms var(--ease-out); }
.gj-jump a:hover::after, .gj-jump a:focus-visible::after { transform: scaleX(1); }

/* Prose ------------------------------------------------------------------ */
.gj-prose { max-width: var(--size-measure); font-family: var(--font-body); font-size: 18px; line-height: 28px; color: var(--ink); }
.gj-prose p { margin: 0 0 var(--space-4); text-wrap: pretty; }
.gj-prose .gj-h3 { margin: var(--space-6) 0 var(--space-2); }
.gj-prose > :first-child { margin-top: 0; }
.gj-prose > :last-child { margin-bottom: 0; }
.gj-prose .gj-arrow-link { color: var(--ink); text-decoration: none; }
.gj-prose .gj-caption { margin-top: var(--space-5); padding-top: var(--space-3); border-top: var(--stroke-hairline) solid var(--hairline); }
.gj-link, .gj-prose a { color: var(--teal-deep); text-decoration: underline; text-decoration-thickness: var(--stroke-hairline); text-underline-offset: 0.18em; transition: color 150ms ease; }
.gj-link:hover, .gj-prose a:hover { color: var(--ink); }
.gj-list { margin: 0 0 var(--space-4); }
.gj-list li { padding-left: var(--space-5); margin-bottom: var(--space-2); }
.gj-list li::before { content: ""; display: inline-block; width: var(--size-bullet); height: var(--size-bullet); margin-left: calc(-1 * var(--space-5)); margin-right: calc(var(--space-5) - var(--size-bullet)); border-radius: var(--radius-dot); background: var(--orange); transform: translateY(-2px); }
.gj-list .gj-list { margin: var(--space-1) 0 0; }
.gj-list .gj-list li::before { background: var(--olive-tint); }
.gj-run-in { font-family: var(--font-ui); font-style: italic; font-size: 18px; color: var(--orange-deep); }
.gj-quote { margin: 0 0 var(--space-6); max-width: 680px; }
.gj-quote p { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 2.2cqi, 30px); line-height: 1.34; font-style: italic; color: var(--ink); text-wrap: balance; }
.gj-quote footer { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.gj-quote footer::before { content: ""; flex: none; width: var(--size-bullet); height: var(--size-bullet); border-radius: var(--radius-dot); background: var(--orange); }
.gj-quote cite { font-family: var(--font-ui); font-size: 13px; line-height: 16px; font-weight: 500; font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive-deep); }
.gj-tag { display: inline-block; padding: 2px var(--space-2); background: var(--teal); color: var(--ink); font-family: var(--font-ui); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.01em; text-transform: lowercase; }

/* Services page: one ruled section per service --------------------------- */
.gj-sections { padding-bottom: clamp(24px, 3.3cqi, 48px); }
.gj-service { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr); gap: var(--space-6) var(--space-7); padding: clamp(56px, 6.7cqi, 96px) 0; border-top: var(--stroke-hairline) solid var(--ink); scroll-margin-top: var(--space-5); }
.gj-service:first-child { border-top: 0; }
.gj-service__head .gj-h2 { margin-top: 22px; }
.gj-service__links { display: flex; flex-direction: column; align-items: flex-start; margin-top: var(--space-4); }
.gj-service__sample { justify-self: end; }
.gj-service__sample .gj-piece__media { height: auto; }
.gj-service__sample .gj-piece__frame img { height: auto; width: auto; max-width: 100%; }
.gj-service__sample .gj-piece__frame--spread img { max-width: 50%; }
.gj-service__sample .gj-piece__caption { height: auto; }
@container page (max-width: 1199px) { .gj-service { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .gj-service__sample { grid-column: 2; justify-self: start; max-width: 260px; } }
@container page (max-width: 899px) { .gj-service { grid-template-columns: minmax(0, 1fr); } .gj-service__sample { grid-column: 1; } }

/* Work page: one ruled section per kind of work, pieces on a shelf --------- */
.gj-category { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-6) var(--space-7); padding: clamp(48px, 5.6cqi, 80px) 0; border-top: var(--stroke-hairline) solid var(--ink); scroll-margin-top: var(--space-5); }
.gj-category:first-child { border-top: 0; }
.gj-category__head .gj-h2 { margin-top: 22px; }
.gj-category__what { max-width: 320px; margin-top: 14px; font-size: 17px; line-height: 26px; color: var(--ink-muted); }
.gj-shelf { --shelf-h: 250px; --shelf-w: calc(100cqi - 2 * var(--gutter)); --caption-h: 42px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-7) var(--space-6); }
.gj-shelf > li { flex: none; max-width: 100%; }
.gj-shelf .gj-piece__media { height: auto; }
.gj-shelf .gj-piece__frame img { width: auto; height: auto; max-height: var(--shelf-h); max-width: var(--shelf-w); }   /* never above real size: both limits only shrink */
.gj-shelf .gj-piece__frame--spread img { max-width: calc(var(--shelf-w) / 2); }
.gj-shelf .gj-piece__frame--wide img { max-height: 180px; max-width: min(var(--shelf-w), 660px); }
.gj-shelf .gj-piece__caption { max-width: 280px; }
.gj-piece__frame--bare, .gj-piece:hover .gj-piece__frame--bare { box-shadow: none; }
.gj-piece__frame--bare img { background: none; }
.gj-piece__frame .gj-tag { position: absolute; left: calc(-1 * var(--space-2)); bottom: var(--space-4); z-index: 1; }
.gj-shelf--photos { padding-left: var(--space-2); }
@container page (max-width: 899px) { .gj-category { grid-template-columns: minmax(0, 1fr); } .gj-category__what { max-width: var(--size-measure); } .gj-shelf { --shelf-h: 220px; gap: var(--space-6) var(--space-5); } }
@container page (max-width: 599px) { .gj-shelf { --shelf-h: 200px; } }

/* About page ------------------------------------------------------------- */
.gj-about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-7) clamp(48px, 8cqi, 112px); padding: clamp(56px, 6.7cqi, 96px) 0 clamp(24px, 3.3cqi, 48px); }
.gj-about__main > section + section { margin-top: clamp(48px, 5.6cqi, 80px); padding-top: clamp(48px, 5.6cqi, 80px); border-top: var(--stroke-hairline) solid var(--ink); }
.gj-about__main .gj-h2 { margin: 22px 0 var(--space-6); }
.gj-about__seal { width: 208px; height: 208px; margin-bottom: var(--space-7); }
.gj-facts--stack { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.gj-facts--stack > div, .gj-facts--stack > div + div { padding: 14px 0 18px; border-left: 0; }
.gj-facts--stack dd { margin-top: 6px; font-size: 22px; line-height: 28px; overflow-wrap: normal; }
@container page (max-width: 899px) { .gj-about { grid-template-columns: minmax(0, 1fr); } .gj-about__seal { width: 160px; height: 160px; margin-bottom: var(--space-6); } }

/* Contact page, and the closing contact strip on other pages --------------- */
.gj-contact--page { padding-top: clamp(56px, 6.7cqi, 96px); }
.gj-contact--page .gj-facts { margin-top: 0; }
.gj-contact .gj-actions { margin-top: var(--space-7); }
.gj-contact .gj-actions .gj-button { margin-top: 0; }
.gj-contact--form { padding-top: 0; }
.gj-contact--form .gj-form { margin-top: var(--space-7); }
.gj-contact--page:has(+ .gj-contact--form) { padding-bottom: clamp(56px, 6.7cqi, 96px); }
.gj-button--line { background: transparent; color: var(--teal-ink); }
.gj-button--line:hover { background: var(--teal-ink); border-color: var(--teal-ink); color: var(--on-deep); }

/* Enquiry form. Built and parked: not on the site until the privacy wording is confirmed. */
.gj-form { display: grid; gap: var(--space-5); max-width: 560px; }
.gj-field { display: grid; gap: var(--space-1); }
.gj-field label { font-family: var(--font-ui); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.01em; color: var(--ink); }
.gj-field label span { font-weight: 400; color: var(--ink-muted); }
.gj-input { width: 100%; min-height: var(--size-control); margin: 0; padding: 9px var(--space-4); border: var(--stroke-hairline) solid var(--rule); border-radius: var(--radius-none); background: var(--sheet); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 28px; transition: border-color 150ms ease; appearance: none; }
textarea.gj-input { min-height: 160px; resize: vertical; }
.gj-input::placeholder { color: var(--ink-muted); opacity: 1; }
.gj-input:hover, .gj-input:focus-visible { border-color: var(--ink); }
.gj-help, .gj-error { font-family: var(--font-ui); font-size: 14px; line-height: 20px; letter-spacing: 0.01em; color: var(--ink-muted); }
.gj-error { color: var(--danger); }
.gj-field--error .gj-input { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.gj-notice { padding-top: var(--space-3); border-top: var(--stroke-hairline) solid var(--hairline); font-family: var(--font-ui); font-size: 16px; line-height: 24px; color: var(--olive-deep); }
.gj-honeypot { position: absolute; left: -9999px; }

/* Dotted rule: the 2009 row of orange dots. Version 2 uses it short, inside an eyebrow. ----- */
.gj-rule { display: block; height: var(--stroke-dot); margin: 0; border: 0; background: radial-gradient(circle, var(--orange) calc(var(--stroke-dot) / 2 - 0.2px), transparent calc(var(--stroke-dot) / 2 + 0.2px)) 0 0 / var(--size-dot-pitch) var(--stroke-dot) round no-repeat; }
.gj-rule--short { width: calc(var(--size-dot-pitch) * 8); }

/* Pager: previous and next. Not on the current site; kept for pages in a series. ----- */
.gj-pager { display: flex; justify-content: space-between; gap: var(--space-5); padding-top: var(--space-4); border-top: var(--stroke-hairline) solid var(--ink); }
.gj-pager a { display: grid; gap: var(--space-1); max-width: 46%; }
.gj-pager a:last-child { text-align: right; justify-items: end; margin-left: auto; }
.gj-pager__title { font-family: var(--font-display); font-size: 26px; line-height: 32px; letter-spacing: -0.01em; }
.gj-pager a:hover .gj-pager__title { text-decoration: underline; text-decoration-thickness: var(--stroke-hairline); text-underline-offset: 0.18em; }

/* Footer: the letterhead again ------------------------------------------- */
.gj-footer { position: relative; background: var(--paper-deep); padding: 104px 0 28px; }
.gj-footer__seal { position: absolute; left: 50%; top: -76px; width: 152px; height: 152px; margin-left: -76px; padding: 6px; border-radius: var(--radius-dot); background: var(--paper); }
.gj-footer__seal img { width: 100%; height: 100%; }
.gj-letterhead { text-align: center; font-family: var(--font-display); font-size: 16px; line-height: 26px; letter-spacing: 0.02em; color: var(--ink); }
.gj-letterhead__services { font-variant-caps: small-caps; letter-spacing: 0.08em; }
.gj-letterhead__dot { display: block; width: var(--size-bullet); height: var(--size-bullet); margin: 14px auto; border-radius: var(--radius-dot); background: var(--orange); }
.gj-letterhead__contact { font-style: italic; font-size: 18px; letter-spacing: 0; font-variant-numeric: oldstyle-nums; }
.gj-letterhead__contact a { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: var(--stroke-hairline); text-underline-offset: 0.18em; transition: text-decoration-color 200ms ease; }
.gj-letterhead__contact a:hover { text-decoration-color: var(--ink); }
.gj-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-top: var(--space-8); padding-top: var(--space-4); border-top: var(--stroke-hairline) solid var(--hairline); }
.gj-footer__base ul { display: flex; flex-wrap: wrap; gap: var(--space-2) 28px; }
.gj-footer__base a { display: inline-block; padding: var(--space-3) 0; font-family: var(--font-ui); font-size: 14px; line-height: 20px; letter-spacing: 0.01em; color: var(--ink); }
.gj-footer__base a:hover { text-decoration: underline; text-decoration-thickness: var(--stroke-hairline); text-underline-offset: 0.18em; }

/* Motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) { .gj-page *, .gj-page *::before, .gj-page *::after { transition: none !important; animation: none !important; } }
