/* quadraarkan.com (Quadra Arkan): the landing page; the case study pages add css/case.css. Built to docs/design.md; the tokens below are the design system. */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; src: url('../assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; src: url('../assets/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; src: url('../assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; src: url('../assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; src: url('../assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-display: swap; }

/* colours by function: ink draws, sand annotates and measures, white carries */
:root {
  --white: #ffffff; --shade: #ece8de; --stone: #f6f3ec; --sand-light: #e6d3a3; --ink: #161616; --text: #2b2d30; --grey: #5c5f63; --rule: #d6cfbd; --rule-light: #ebe6d9;
  --sand: #b8913f; --sand-dark: #8f6f2c;
  /* one colour per discipline: lines and points in the colour, fills in its tint */
  --c-struct: #b4532f; --t-struct: #f4e0d6; --c-water: #1f5f8b; --t-water: #dbe7f1;
  --c-em: #b07a0c; --t-em: #f6e7c3; --c-tech: #157a74; --t-tech: #d5ebe8;
  --head: 'IBM Plex Sans', system-ui, sans-serif; --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 6vw, 110px); --ease: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); font-size: 17px; color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
/* hidden alone does not stop sideways scrolling in every phone browser; clip does where it is supported */
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
:focus-visible { outline: 2px solid var(--sand-dark); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--gutter); top: 8px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 16px; font-size: 15px; translate: 0 -200%; }
.skip:focus { translate: 0 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wrap { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
section { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 90px; border-top: 1px solid var(--rule); }
h1, h2 { font-family: var(--head); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; color: var(--ink); }
h2 { font-size: clamp(26px, 2.8vw, 40px); max-width: 26ch; }
h3 { font-family: var(--head); font-weight: 500; letter-spacing: -.01em; font-size: clamp(24px, 2.2vw, 32px); color: var(--ink); }
.lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; max-width: 58ch; }
.sheet-no { font-family: var(--mono); font-size: 13px; color: var(--sand-dark); margin-bottom: 18px; }
.sheet-no::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--sand); vertical-align: middle; margin-right: 10px; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 120px); align-items: end; margin-bottom: clamp(32px, 4vw, 64px); }
@media (max-width: 900px) { .head { grid-template-columns: 1fr; } section { padding-top: 110px; } }

/* header */
header { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gutter); background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); transition: padding .35s var(--ease); }
header .logo { height: 56px; width: auto; transition: height .35s var(--ease); }
header.small { padding: 10px var(--gutter); } header.small .logo { height: 40px; }
nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
nav a { position: relative; padding-bottom: 3px; white-space: nowrap; }
@media (max-width: 1200px) { nav { gap: 18px; font-size: 14px; } header .logo { height: 44px; } }
nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
nav a:hover::after, nav a.here::after { transform: scaleX(1); }
nav .btn { border: 1px solid var(--ink); padding: 10px 16px; white-space: nowrap; transition: background .25s ease, color .25s ease; }
nav .btn::after { display: none; }
nav .btn:hover { background: var(--ink); color: #fff; }
@media (max-width: 900px) { nav a:not(.btn) { display: none; } header .logo { height: 40px; } header.small .logo { height: 34px; } }


/* drawn SVGs: each stroked element gets --len and --i from the script */
.draw :is(line, path, polyline, polygon, rect, circle, ellipse) { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset var(--dur, .9s) var(--ease) calc(var(--i, 0) * var(--step, 12ms) + var(--delay, 0s)); }
.draw.on :is(line, path, polyline, polygon, rect, circle, ellipse) { stroke-dashoffset: 0; }
.draw .f { fill-opacity: 0; transition: fill-opacity .9s ease calc(var(--i, 0) * var(--step, 12ms) + var(--delay, 0s) + .7s); }
.draw.on .f { fill-opacity: 1; }
.draw text { opacity: 0; transition: opacity .5s ease calc(var(--i, 0) * var(--step, 12ms) + var(--delay, 0s) + .4s); }
.draw.on text { opacity: 1; }
/* each column group carries its discipline's colour: g1 civil and water (back), g2 structural (left), g3 electromechanical (right), g4 technology (front) */
.monument .g1 { --c: var(--c-water); --t: var(--t-water); } .monument .g2 { --c: var(--c-struct); --t: var(--t-struct); }
.monument .g3 { --c: var(--c-em); --t: var(--t-em); } .monument .g4 { --c: var(--c-tech); --t: var(--t-tech); }
/* the monument rises part by part: platform, then the four groups, each from the ground up */
.monument polygon { fill: #fff; stroke: var(--ink) !important; stroke-width: .7 !important; }
.monument .platform { fill: var(--shade); }
.monument .pedestal { fill: var(--stone); }
.monument .architrave { fill: var(--t); }
.monument .cornice { fill: var(--c); }
.monument .coltop { fill: var(--c); }
.monument .colbase { fill: var(--stone); }
.rise .part { clip-path: inset(100% 0 -2% 0); transform: translateY(5px); transform-box: fill-box; transition: clip-path var(--dur, 1.3s) var(--ease) var(--delay, 0s), transform var(--dur, 1.3s) var(--ease) var(--delay, 0s); }
.rise.on .part { clip-path: inset(-2% 0 -2% 0); transform: none; }
.rise .base { --delay: 0s; --dur: 1.1s; } .rise .g1 { --delay: .6s; } .rise .g2 { --delay: 1.1s; } .rise .g3 { --delay: 1.6s; } .rise .g4 { --delay: 2.1s; }
.assembly.rise .base { --delay: 0s; } .assembly.rise .g2 { --delay: .9s; } .assembly.rise .g1 { --delay: 2s; } .assembly.rise .g3 { --delay: 3.1s; } .assembly.rise .g4 { --delay: 4.2s; }
@media (prefers-reduced-motion: reduce) { .rise .part { transition: none; clip-path: none; transform: none; } }
/* staggered appearance of annotated items */
.seq > * { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--k, 0) * var(--gap, 160ms) + var(--delay, 0s)); }
.seq.on > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .draw :is(line, path, polyline, polygon, rect, circle, ellipse), .draw text { transition: none; stroke-dashoffset: 0; opacity: 1; } .seq > * { transition: none; opacity: 1; transform: none; }  }

/* hero: the title sheet */
#top { border-top: 0; padding-top: 140px; overflow: hidden; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 6vw, 120px); align-items: center; }
.hero h1 { font-size: clamp(30px, 3.6vw, 56px); max-width: 17ch; }
.hero .lead { margin-top: 28px; }
.hero .cta { display: flex; gap: 12px 28px; margin-top: 36px; flex-wrap: wrap; align-items: center; }
.hero .cta a { font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: color .25s ease, border-color .25s ease; }
.hero .cta a:hover { color: var(--sand-dark); border-color: var(--sand-dark); }
.hero .cta a.primary { border: 1px solid var(--ink); padding: 13px 20px; }
.hero .cta a.primary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero .fig { position: relative; will-change: transform; }
.hero .fig > svg { width: 100%; height: auto; }
/* the stamp builds itself: frame, step, pedestal, shafts, capitals, architrave, cornice, band, name, slogan, then a press */
.stampbox { position: relative; width: min(100%, 560px); margin-inline: auto; cursor: pointer; }
.stamp { width: 100%; height: auto; overflow: visible; position: relative; z-index: 1; }
.stamp .frame-out, .stamp .frame-in { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); fill-opacity: 0; transition: stroke-dashoffset 1.1s var(--ease), fill-opacity .4s ease .9s; }
.stamp.on .frame-out, .stamp.on .frame-in { stroke-dashoffset: 0; fill-opacity: 1; }
.stamp .b { opacity: 0; translate: var(--tr, 0 0); scale: var(--sc, 1); transition: opacity .45s ease var(--d), translate .7s var(--ease) var(--d), scale .7s var(--ease) var(--d); }
.stamp.on .b { opacity: 1; translate: 0 0; scale: 1; }
.stamp .step { --d: 1s; --tr: 0 6px; }
.stamp .pedestal { --d: 1.3s; --tr: 0 6px; }
.stamp .shaft { --d: calc(1.7s + var(--k) * .14s); --sc: 1 0; transform-box: fill-box; transform-origin: 50% 100%; }
.stamp .capital { --d: calc(2.45s + var(--k) * .09s); --tr: 0 -6px; }
.stamp .architrave { --d: 2.95s; --tr: 0 -10px; }
.stamp .cornice { --d: 3.25s; --tr: 0 -16px; }
.stamp .band { clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease) 3.7s; }
.stamp.on .band { clip-path: inset(0 0 0 0); }
.stamp .big { --d: calc(4.2s + var(--k) * .08s); --tr: 0 5px; }
.stamp .small { --d: calc(5.1s + var(--k) * .018s); }
.stamp.done { animation: press .6s var(--ease); }
@keyframes press { 0% { scale: 1; } 35% { scale: .965; } 100% { scale: 1; } }
.stampbox::after { content: ""; position: absolute; left: 13%; right: 13%; top: 8%; bottom: 13%; border: 2px solid var(--sand); opacity: 0; pointer-events: none; }
.stampbox.done::after { animation: ring 1.2s ease-out; }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18); } }
.stamp.done .cornice { animation: glint 4s ease-in-out 1.5s infinite; }
@keyframes glint { 0%, 70%, 100% { fill: #b8913f; } 80% { fill: #e6c97d; } }
.guides { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sand); overflow: visible; --step: 70ms; --dur: .9s; transition: opacity 1s ease 5.6s; }
.guides .axis { stroke-width: .3; stroke-dasharray: 5 2 1 2 !important; }
.guides text { fill: var(--sand-dark); stroke: none; font-family: var(--mono); font-size: 3.4px; }
.guides.on { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .stamp .b, .stamp .band, .stamp .frame-out, .stamp .frame-in { transition: none; } .stamp.done, .stamp.done .cornice, .stampbox.done::after { animation: none; } }
.hero .cap { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--grey); line-height: 1.5; }
.hero .cap b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
/* stacked under the text (tablet and phone) the emblem stands still and centred, in its final state: no build, no guides, nothing that could reach the text */
@media (max-width: 900px) {
  .stampbox { width: min(78%, 380px); margin-inline: auto; cursor: default; }
  .stampbox::after, .guides { display: none; }
  .stamp .frame-out, .stamp .frame-in, .stamp .b, .stamp .band { transition: none !important; stroke-dashoffset: 0; fill-opacity: 1; opacity: 1; translate: none; scale: none; clip-path: none; }
  .stamp.done, .stamp.done .cornice { animation: none; }
  .hero .cap { text-align: center; max-width: 380px; margin-inline: auto; }
}

/* structure: the monument assembles itself, one discipline per group */
#structure .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.assembly { width: 100%; height: auto; overflow: visible; }
.assembly .lab { font-family: var(--mono); font-size: 4.4px; fill: var(--grey); }
.assembly .name { font-family: var(--head); font-size: 6.5px; fill: var(--c, var(--ink)); }
.assembly .lab b, .assembly .num { font-family: var(--head); font-size: 6.5px; fill: var(--ink); }
.assembly .num { fill: var(--c, var(--sand-dark)); }
.assembly .leader { stroke: var(--c, var(--sand)); stroke-width: .45; --dur: .7s; }
.assembly .l1 { --delay: 1.9s; } .assembly .l2 { --delay: 3s; } .assembly .l3 { --delay: 4.1s; } .assembly .l4 { --delay: 5.2s; } .assembly .l0 { --delay: 6.2s; }
.assembly text { transition-delay: calc(var(--delay, 0s) + .3s) !important; }
.disc { list-style: none; margin-top: 32px; border-top: 1px solid var(--ink); --gap: 1.1s; --delay: 1.9s; }
.disc li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.disc .n { font-family: var(--head); font-weight: 600; font-size: 20px; color: var(--c); }
.disc li { box-shadow: inset 3px 0 0 var(--c); padding-left: 14px !important; }
.disc h3 { font-size: 17px; letter-spacing: 0; font-weight: 600; color: var(--ink); }
.disc p { font-size: 15.5px; color: var(--grey); margin-top: 2px; }
.abox { position: relative; }
.labels { pointer-events: none; }
.assembly .part:not(.base) { cursor: pointer; }
.assembly.rise .part { transition: clip-path var(--dur, 1.3s) var(--ease) var(--delay, 0s), transform var(--dur, 1.3s) var(--ease) var(--delay, 0s), opacity .35s ease, translate .45s var(--ease), filter .35s ease; }
.abox.focus .assembly .part:not(.base) { opacity: .18; }
.abox.focus-g1 .assembly .part.g1, .abox.focus-g2 .assembly .part.g2, .abox.focus-g3 .assembly .part.g3, .abox.focus-g4 .assembly .part.g4 { opacity: 1; translate: 0 -5px; filter: drop-shadow(0 6px 4px rgba(0,0,0,.18)); }
.labels g[data-g] { transition: opacity .35s ease; }
.abox.focus .labels g[data-g] { opacity: .2; }
.abox.focus-g1 .labels g[data-g="g1"], .abox.focus-g2 .labels g[data-g="g2"], .abox.focus-g3 .labels g[data-g="g3"], .abox.focus-g4 .labels g[data-g="g4"] { opacity: 1; }
.disc li { transition: background .3s ease; cursor: default; }
.disc li.hot { background: var(--stone); }
.disc li:focus-visible { outline-offset: -2px; }
.card { position: relative; margin: 18px auto 0; width: min(560px, 100%); min-height: 226px; background: #fff; border: 1px solid var(--ink); border-top: 4px solid var(--c, var(--ink)); padding: 16px 18px 14px; box-shadow: 8px 8px 0 var(--shade); transition: border-color .35s ease; }
.card > * { transition: opacity .3s ease, translate .4s var(--ease); }
.card.swap > * { opacity: 0; translate: 0 6px; }
.card .idle { font-family: var(--mono); font-size: 13px; color: var(--grey); padding-top: 70px; text-align: center; }
.abox.focus .card .idle { display: none; }
.abox:not(.focus) .card .ch, .abox:not(.focus) .card .cp, .abox:not(.focus) .card .cl { display: none; }
.card .ch { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.card .cn { font-family: var(--mono); font-size: 13px; color: var(--c); font-weight: 500; }
.card .ct { font-size: 19px; font-weight: 600; color: var(--ink); }
.card .cp { font-size: 14px; color: var(--grey); line-height: 1.5; margin-bottom: 10px; }
.card .cl { list-style: none; border-top: 1px solid var(--rule); }
.card .cl li { display: grid; grid-template-columns: 1fr auto; gap: 12px; font-size: 13.5px; padding: 7px 0; border-bottom: 1px solid var(--rule-light); color: var(--ink); line-height: 1.35; }
.card .cl span { font-family: var(--mono); font-size: 12px; color: var(--c); white-space: nowrap; }
.hint { font-family: var(--mono); font-size: 12px; color: var(--grey); text-align: center; margin-top: 6px; }
.hint::before { content: ""; display: inline-block; width: 7px; height: 7px; border: 1px solid var(--sand); transform: rotate(45deg); margin-right: 10px; vertical-align: 1px; }
@media (max-width: 900px) { #structure .grid { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* lines of work: three full-height panels */
#work { display: block; padding: 0; min-height: 0; }
.panel { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 120px); padding: 120px var(--gutter) 90px; border-top: 1px solid var(--rule); }
.panel:first-child { border-top: 0; }
.panel:nth-child(even) .fig { order: 2; }
.panel .fig { color: var(--ink); --step: 45ms; --dur: 1.1s; }
.panel .fig svg { width: 100%; height: auto; overflow: visible; }
.panel .fig text { fill: var(--c); font-family: var(--mono); }
.panel .fig .dimline { color: var(--c); }
.panel .sheet-no { color: var(--c); } .panel .sheet-no::before { background: var(--c); }
.panel dl { border-top-color: var(--c) !important; border-top-width: 2px !important; }
.panel h3 { margin: 6px 0 16px; }
.panel p { font-size: 17px; max-width: 54ch; }
.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15.5px; margin-top: 28px; border-top: 1px solid var(--ink); padding-top: 18px; }
.panel dt { color: var(--grey); white-space: nowrap; } .panel dd { color: var(--ink); }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; padding-top: 110px; } .panel:nth-child(even) .fig { order: 0; } .panel .fig { max-width: 360px; } }

/* independent technical assurance: the as-built frame checked against the design (dashed, sand) */
#assurance .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 120px); align-items: center; }
#assurance .fig svg { width: 100%; height: auto; overflow: visible; color: var(--ink); --step: 45ms; --dur: 1.1s; }
#assurance .fig text { fill: var(--sand-dark); font-family: var(--mono); }
#assurance .fig .dimline { color: var(--sand); }
#assurance .fig .dash { stroke: var(--sand); stroke-width: .7; stroke-dasharray: 3 2 !important; stroke-dashoffset: 0 !important; opacity: 0; transition: opacity .8s ease 1.2s !important; }
#assurance .fig .draw.on .dash, #assurance .fig svg.on .dash { opacity: 1; }
#assurance dl { display: grid; grid-template-columns: minmax(0, 15ch) minmax(0, 1fr); gap: 12px 24px; font-size: 15.5px; margin-top: 28px; border-top: 2px solid var(--sand); padding-top: 18px; }
#assurance dt { color: var(--ink); font-weight: 600; } #assurance dd { color: var(--grey); }
@media (max-width: 900px) { #assurance .grid { grid-template-columns: 1fr; } #assurance .fig { max-width: 360px; } }
@media (max-width: 480px) { #assurance dl { grid-template-columns: 1fr; gap: 2px; } #assurance dd { margin-bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { #assurance .fig .dash { transition: none !important; opacity: 1; } }

/* reach: the heading beside the figures */
#reach .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: center; }
#reach ul { list-style: none; border-top: 1px solid var(--ink); --gap: 180ms; --delay: .2s; }
#reach li { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 16px; display: grid; grid-template-columns: 1fr auto; gap: 16px; }
#reach li span { color: var(--sand-dark); font-family: var(--mono); font-size: 14px; padding-top: 2px; }
@media (max-width: 900px) { #reach .grid { grid-template-columns: 1fr; } }

/* case studies: one column each, the picture over the text, each a link to its own page */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.2vw, 56px); border-top: 1px solid var(--ink); padding-top: clamp(28px, 3vw, 44px); }
.case { display: flex; flex-direction: column; }
.case picture, .case .thumb { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--shade); background: #fff; overflow: hidden; margin-bottom: 28px; }
.case img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.case:hover img, .case:focus-visible img { scale: 1.035; }
.case .thumb { display: grid; place-items: center; padding: 14px 18px; color: var(--ink); --step: 30ms; }
.case .thumb svg { width: 100%; height: auto; max-height: 100%; }
.case .thumb text { fill: var(--c-tech); font-family: var(--mono); }
.case > div:last-child { display: flex; flex-direction: column; flex: 1; }
.cno { font-family: var(--mono); font-size: 13px; color: var(--c, var(--c-struct)); }
.case h3 { font-size: clamp(20px, 1.6vw, 25px); margin: 8px 0 12px; line-height: 1.22; }
.case p { font-size: 16px; }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 15px; margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 14px; }
.case dt { color: var(--grey); } .case dd { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.more { align-self: flex-start; margin-top: auto; font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: color .25s ease, border-color .25s ease; }
.case dl { margin-bottom: 22px; }
.case:hover .more { color: var(--c, var(--c-struct)); border-color: var(--c, var(--c-struct)); }
@media (max-width: 1000px) { .cases { grid-template-columns: 1fr; gap: 44px; } .case { max-width: 560px; } }

/* who we work for, and contact as the title block */
#contact .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.who { list-style: none; border-top: 1px solid var(--ink); margin-top: 24px; --gap: 200ms; }
.who li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.who li b { font-weight: 600; color: var(--ink); } .who li span { color: var(--grey); }
.title-block { border: 1px solid var(--ink); background: #fff; margin-top: 24px; box-shadow: 10px 10px 0 var(--shade); }
.title-block .r { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.title-block .r:last-child { border-bottom: 0; }
.title-block .r:first-child { background: var(--stone); }
.title-block .c { padding: 16px 18px; border-right: 1px solid var(--ink); min-width: 0; }
.title-block .c:last-child { border-right: 0; }
.title-block .c.wide { grid-column: 1 / -1; }
.title-block small { display: block; font-family: var(--mono); font-size: 11px; color: var(--grey); margin-bottom: 4px; }
.title-block b { font-weight: 600; color: var(--ink); font-size: 17px; overflow-wrap: anywhere; }
.title-block a:hover { color: var(--sand-dark); }
.title-block .emblem { height: 64px; margin-top: 4px; }
/* the company row carries the emblem */
.title-block .co { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.title-block .co .emblem { height: 56px; margin: 0; flex: none; }
/* the profile request: a sheet under the title block, fields drawn as cells */
.request { margin-top: 28px; background: #fff; border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--shade); padding: 20px 22px 22px; scroll-margin-top: 110px; }
.request .rh { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.request .rh h3 { font-size: 20px; }
.request .rh span { font-family: var(--mono); font-size: 12px; color: var(--grey); }
.request .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 18px; }
.request .wide { grid-column: 1 / -1; }
.request label, .request fieldset { display: block; min-width: 0; border: 0; padding: 0; margin: 0; }
.request label > span, .request legend { display: block; font-size: 13px; color: var(--grey); margin-bottom: 6px; padding: 0; }
.request label em { font-style: normal; color: #a9a290; }
.request input:not([type=radio]) { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 46px; border: 1px solid var(--ink); border-radius: 0; background: #fff; padding: 0 12px; font: 400 16px var(--body); color: var(--ink); }
.request input:not([type=radio]):focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 3px var(--t-em); }
.request .copy .seg { display: flex; flex-wrap: wrap; }
.request .copy label { cursor: pointer; }
.request .copy input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.request .copy span { display: block; height: 46px; line-height: 44px; padding: 0 18px; margin-left: -1px; border: 1px solid var(--ink); background: #fff; font-size: 15px; color: var(--ink); transition: background .2s ease, color .2s ease; }
.request .copy label:first-of-type span { margin-left: 0; }
.request .copy label:hover span { background: var(--stone); }
.request .copy input:checked + span { background: var(--ink); color: #fff; }
.request .copy input:focus-visible + span { outline: 2px solid var(--sand-dark); outline-offset: 2px; }
.request .send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; }
.request button { height: 46px; padding: 0 24px; font: 600 15px var(--body); color: #fff; background: var(--ink); border: 1px solid var(--ink); cursor: pointer; transition: background .25s ease, color .25s ease; }
.request button:hover { background: #fff; color: var(--ink); }
.request button:disabled { opacity: .5; cursor: progress; }
.request .note { font-size: 15px; color: var(--grey); }
.request .note.ok { color: var(--c-tech); } .request .note.bad { color: var(--c-struct); }
.request .privacy { font-family: var(--mono); font-size: 12px; color: var(--grey); margin-top: 14px; line-height: 1.5; }
.request textarea { display: block; width: 100%; border: 1px solid var(--ink); border-radius: 0; background: #fff; padding: 10px 12px; font: 400 16px/1.5 var(--body); color: var(--ink); resize: vertical; min-height: 84px; }
.request textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 3px var(--t-em); }
.request .copy .seg { padding-top: 1px; } .request .copy span { margin-top: -1px; }
.request fieldset[id] { scroll-margin-top: 120px; }
.go { margin-top: 28px; }
.go a { font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: color .25s ease, border-color .25s ease; }
.go a:hover { color: var(--sand-dark); border-color: var(--sand-dark); }
.cases + .go { margin-top: clamp(28px, 4vw, 48px); }
.request .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contact .title-block { margin-top: 0; }
@media (max-width: 480px) { .request .fields { grid-template-columns: 1fr; } .request button { width: 100%; } .request .copy label { flex: 1; } .request .copy span { padding: 0; text-align: center; } .request .need label { flex: 1 1 46%; } }
footer { display: flex; justify-content: space-between; gap: 16px 24px; padding: 24px var(--gutter) 32px; border-top: 1px solid var(--rule); color: var(--grey); font-size: 14px; flex-wrap: wrap; }
footer .site { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { #contact .grid { grid-template-columns: 1fr; } }
/* on a phone each title-block cell takes the full width, so the email and phone stay on one line */
@media (max-width: 480px) { .title-block .r { grid-template-columns: 1fr; } .title-block .c { border-right: 0; border-bottom: 1px solid var(--ink); } .title-block .c:last-child { border-bottom: 0; } }

/* ?review: static final state for screenshots */
.review *, .review *::before, .review *::after { transition: none !important; animation: none !important; }
.review.full section, .review.full .panel { min-height: 0; }
.review.one section:not(.only) { display: none !important; }
.review.one section.only { padding-top: 110px; }
.review.one .panel { min-height: 0; padding-top: 60px; padding-bottom: 60px; }
