/* Opifes — tokens */
:root {
  --paper: #eeede8;
  --surface: #e2e1da;
  --ink: #11110f;
  --muted: #55544e;
  --accent: #ff4d1a;
  --m: clamp(16px, 3vw, 44px);          /* page margin */
  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 clamp(1.0625rem, 1rem + .25vw, 1.25rem)/1.5 var(--sans);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

/* Bar */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--m); background: var(--paper);
}
.mark { font-weight: 700; font-size: 1.5rem; letter-spacing: -.04em; text-decoration: none; }
.bar-links { display: flex; gap: 28px; margin-left: auto; font-size: 1rem; }
.bar-links a, .foot nav a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100%/0 2px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.bar-links a:hover, .foot nav a:hover { background-size: 100% 2px; }
.bar-end { display: flex; align-items: center; gap: 16px; }
/* Home page: while the hero button is on screen the bar keeps its own folded away, so there is one at a time */
.bar .btn { max-width: 14rem; overflow: hidden; transition: max-width .45s var(--ease), padding .45s var(--ease), margin .45s var(--ease), opacity .3s, transform .2s var(--ease), background-color .2s; }
.cta-top .bar .btn { max-width: 0; padding-inline: 0; margin-left: -16px; opacity: 0; visibility: hidden; transition: max-width .45s var(--ease), padding .45s var(--ease), margin .45s var(--ease), opacity .3s, visibility 0s .45s; }
.lang { display: flex; background: var(--surface); padding: 3px; }
.lang button {
  font: 500 .875rem/1 var(--sans); border: 0; background: none; color: var(--muted);
  padding: 9px 11px; cursor: pointer; min-height: 34px;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.btn {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
  background: var(--ink); color: var(--paper); font-weight: 500; font-size: 1rem;
  text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { background: var(--accent); color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--ink); min-height: 54px; padding: 0 26px; font-size: 1.0625rem; }
.btn-accent:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { padding: clamp(20px, 3vw, 48px) var(--m) 0; }
h1 {
  font-weight: 700; font-size: clamp(2.6rem, 11.2vw, 12.5rem); line-height: .9;
  letter-spacing: -.032em; margin-left: -.03em;
}
.hero-row {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end;
  margin-top: clamp(24px, 3.2vw, 56px);
}
.gloss { grid-column: 1 / 6; font: italic 400 clamp(1.125rem, 1rem + .6vw, 1.5rem)/1.35 var(--serif); color: var(--muted); max-width: 26ch; }
.gloss b { font-weight: 400; color: var(--ink); }
.hero-lead { grid-column: 7 / 13; display: grid; gap: 24px; justify-items: start; }
.hero-lead p { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.3; letter-spacing: -.015em; max-width: 30ch; }

/* Compare */
.cmp { margin-top: clamp(32px, 4vw, 72px); }   /* inside the page margins */
.cmp-frame {
  position: relative; height: min(54vw, 80vh); overflow: hidden; background: #fff;
  container-type: size; --u: min(1cqw, 1.77cqh);   /* one unit for every size inside; a low frame scales the content down instead of squeezing it */ touch-action: pan-y;
}
.lay { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.lay-m { clip-path: inset(0 0 0 var(--pos)); }

/* the template: a filled-in weak site, the way a ready-made theme leaves it */
.lay-t { --c1: #1d3f72; --c2: #c9a24a; background: #fff; color: #333; font-family: Arial, Helvetica, sans-serif; display: flex; flex-direction: column; }
.t-strip { display: flex; justify-content: space-between; background: #14294a; color: #fff; font-size: calc(1.05 * var(--u)); padding: calc(.7 * var(--u)) calc(3 * var(--u)); }
.t-nav { position: relative; display: flex; align-items: center; gap: calc(1 * var(--u)); padding: calc(1.1 * var(--u)) calc(3 * var(--u)); font-size: calc(1.2 * var(--u)); box-shadow: 0 calc(.2 * var(--u)) calc(.8 * var(--u)) rgba(0, 0, 0, .14); }
.t-logo { width: calc(2.8 * var(--u)); height: calc(2.8 * var(--u)); border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; }
.t-logo svg { width: 72%; }
.t-nav b { font-size: calc(1.9 * var(--u)); color: var(--c1); }
.t-links { margin-left: auto; display: flex; align-items: center; gap: calc(1.9 * var(--u)); color: #555; }
.t-links span:last-child { background: var(--c2); color: #fff; font-weight: 700; padding: calc(.8 * var(--u)) calc(1.8 * var(--u)); border-radius: 99px; }
.t-hero { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: calc(1.2 * var(--u)); color: #fff; padding: 0 calc(12 * var(--u)) calc(5.4 * var(--u)); background: var(--c1); }
.t-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-hero > :not(.t-photo) { position: relative; }
.t-hero::before, .t-hero::after { content: "‹"; position: absolute; z-index: 1; top: 36%; left: calc(2 * var(--u)); font-size: calc(5 * var(--u)); line-height: 1; opacity: .6; }
.t-hero::after { content: "›"; left: auto; right: calc(2 * var(--u)); }
.t-hero strong { font: 700 calc(4.3 * var(--u))/1.12 Georgia, "Times New Roman", serif; text-shadow: 0 calc(.2 * var(--u)) calc(.6 * var(--u)) rgba(0, 0, 0, .35); }
.t-hero p { font-size: calc(1.45 * var(--u)); line-height: 1.45; max-width: 40em; opacity: .93; }
.t-btns { display: flex; gap: calc(1.2 * var(--u)); font-size: calc(1.3 * var(--u)); font-weight: 700; }
.t-btns span { padding: calc(1 * var(--u)) calc(2.4 * var(--u)); border-radius: 99px; background: var(--c2); }
.t-btns span + span { background: none; box-shadow: inset 0 0 0 calc(.16 * var(--u)) #fff; }
.t-dots { display: flex; gap: calc(.7 * var(--u)); margin-top: calc(.5 * var(--u)); }
.t-dots i { width: calc(.9 * var(--u)); height: calc(.9 * var(--u)); border-radius: 50%; background: #fff; opacity: .5; }
.t-dots i:first-child { opacity: 1; }
.t-cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(2 * var(--u)); padding: 0 calc(6 * var(--u)) calc(2.4 * var(--u)); margin-top: calc(-4 * var(--u)); }
.t-cards div { background: #fff; border-radius: calc(1 * var(--u)); padding: calc(1.6 * var(--u)); text-align: center; box-shadow: 0 calc(.4 * var(--u)) calc(1.6 * var(--u)) rgba(0, 0, 0, .16); display: grid; justify-items: center; gap: calc(.5 * var(--u)); }
.t-cards i { width: calc(3.6 * var(--u)); height: calc(3.6 * var(--u)); border-radius: 50%; background: #dfe6f1; color: var(--c1); display: grid; place-items: center; }
.t-cards svg { width: 58%; }
.t-cards b { font-size: calc(1.5 * var(--u)); color: var(--c1); }
.t-cards p { font-size: calc(1.1 * var(--u)); color: #777; line-height: 1.4; }
.t-cards u { font-size: calc(1.05 * var(--u)); color: var(--c2); text-decoration: none; font-weight: 700; }
.t-chat { position: absolute; right: calc(1.6 * var(--u)); bottom: calc(1.6 * var(--u)); width: calc(5 * var(--u)); height: calc(5 * var(--u)); border-radius: 50%; background: var(--c2); color: #fff; display: grid; place-items: center; font-size: calc(1.1 * var(--u)); font-weight: 700; box-shadow: 0 calc(.3 * var(--u)) calc(1 * var(--u)) rgba(0, 0, 0, .3); }

/* the design */
.lay-m { background: #0c2833; color: #2a1a12; font-family: var(--sans); display: flex; flex-direction: column; padding: calc(2.6 * var(--u)) calc(3 * var(--u)) calc(3 * var(--u)); }
.m-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-top { position: relative; display: flex; align-items: baseline; gap: calc(3.4 * var(--u)); font-size: calc(1.45 * var(--u)); }
.m-top b { font: 400 calc(2.6 * var(--u))/1 var(--serif); letter-spacing: -.02em; }
.m-nav { display: flex; gap: calc(2.2 * var(--u)); font-weight: 500; }
.m-where { margin-left: auto; }
.m-head { position: relative; align-self: flex-start; font: 400 calc(10.6 * var(--u))/.9 var(--serif); letter-spacing: -.04em; margin-top: calc(5.6 * var(--u)); }
.m-sub { position: relative; font-size: calc(1.7 * var(--u)); line-height: 1.35; font-weight: 500; margin-top: calc(1.8 * var(--u)); }
.m-foot { position: relative; margin-top: auto; width: 64%; color: #fbe2b4; }
.m-foot p { font-size: calc(1.5 * var(--u)); font-weight: 500; margin-bottom: calc(1.1 * var(--u)); }
.m-bar { display: flex; align-items: stretch; background: #fffaf0; color: #0f2f3c; }
.m-bar div { flex: 1; padding: calc(1.2 * var(--u)) calc(1.5 * var(--u)); display: grid; gap: calc(.3 * var(--u)); box-shadow: calc(-.12 * var(--u)) 0 0 #d9d2c2; }
.m-bar div:first-child { box-shadow: none; }
.m-bar small { font-size: calc(1.1 * var(--u)); color: #5b6b70; }
.m-bar b { font-size: calc(1.6 * var(--u)); font-weight: 600; white-space: nowrap; }
.m-bar > span { display: grid; place-items: center; padding: 0 calc(2.4 * var(--u)); background: #e4532f; color: #fff; font-weight: 600; font-size: calc(1.6 * var(--u)); white-space: nowrap; }
/* numbered marks on the designed side; the notes under the frame explain them */
.n { display: inline-grid; place-items: center; width: calc(2.4 * var(--u)); height: calc(2.4 * var(--u)); background: #2a1a12; color: #fbe2b4; font: normal 700 calc(1.35 * var(--u))/1 var(--sans); letter-spacing: 0; }
.m-top .n, .m-foot .n { margin-left: calc(.9 * var(--u)); vertical-align: middle; }
.m-head .n { position: absolute; left: 0; top: calc(-3.4 * var(--u)); }
.m-foot .n { background: #fbe2b4; color: #0c2833; }

.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--accent); pointer-events: none; }
.cmp-handle span {
  position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center;
  transition: transform .2s var(--ease);
}
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp-frame:hover .cmp-handle span, .cmp-range:active ~ .cmp-handle span { transform: scale(1.12); }
.cmp-frame:has(.cmp-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }
.cmp-cap { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: baseline; padding-top: 16px; }
.cmp-notes { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 24px; padding-top: clamp(28px, 3.4vw, 56px); }
.cmp-notes li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; max-width: 40ch; }
.cmp-notes b { display: grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--paper); font-size: .9375rem; font-weight: 700; }
.cmp-notes span { padding-top: 3px; }
.cmp-cap p { text-align: center; color: var(--muted); font-size: 1rem; max-width: 62ch; justify-self: center; }
.cmp-side { font-weight: 600; }

/* Phones: the slider gives way to a crossed-out list and one closing sentence */
.made { display: none; }

/* Work */
.work { padding: clamp(96px, 13vw, 220px) var(--m) 0; }
.work-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
h2 { font-weight: 700; font-size: clamp(2.5rem, 7.4vw, 8rem); line-height: .94; letter-spacing: -.035em; margin-left: -.03em; }
.work-head h2 { grid-column: 1 / 7; }
.work-head p { grid-column: 7 / 13; max-width: 34ch; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.3; letter-spacing: -.015em; }
.work-grid { display: grid; row-gap: clamp(64px, 8vw, 136px); margin-top: clamp(48px, 6vw, 104px); }
.w { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.shot { grid-column: 1 / 10; grid-row: 1; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 10; }
.w figcaption { grid-column: 10 / 13; grid-row: 1; }
.w:nth-child(even) .shot { grid-column: 4 / 13; }
.w:nth-child(even) figcaption { grid-column: 1 / 4; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .9s var(--ease); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.03); }
figcaption { display: grid; gap: 6px; }
figcaption b { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
figcaption span { color: var(--muted); font-size: 1.0625rem; line-height: 1.35; }
figcaption i { font: italic 400 1.125rem/1.2 var(--serif); color: var(--muted); margin-top: 14px; }
.work-all { display: inline-block; margin-top: clamp(48px, 6vw, 104px); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -.015em; }
/* How */
.how { margin-top: clamp(96px, 13vw, 220px); background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 160px) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.how h2 { grid-column: 1 / 6; position: sticky; top: 96px; font-size: clamp(2.5rem, 5.6vw, 6rem); }
.how-list { grid-column: 7 / 13; display: grid; gap: clamp(48px, 5.5vw, 96px); }
.how-list h3 { font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem); line-height: 1.02; letter-spacing: -.04em; max-width: 16ch; }
.how-list p { margin-top: 16px; max-width: 44ch; color: #c9c8c1; }

/* Contact */
.contact { background: var(--accent); color: var(--ink); padding: clamp(72px, 9vw, 160px) var(--m) clamp(56px, 6vw, 104px); }
.contact h2 { max-width: 12ch; }
.contact-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; margin-top: clamp(40px, 6vw, 112px); }
.contact-side { grid-column: 1 / 5; display: grid; gap: clamp(32px, 4vw, 64px); }
.contact-side p { max-width: 30ch; }
.contact-alt { font-size: 1.0625rem; }
.contact-alt a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-alt a:hover { text-decoration-thickness: 4px; }

/* Contact form. Shown only when the script runs; without it the email line beside it is the way in. */
.form { grid-column: 6 / 13; display: none; grid-template-columns: 1fr 1fr; gap: 30px 24px; }
.js .form { display: grid; }
.field { display: grid; gap: 4px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 600; }
.field label small { font-size: inherit; font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 1.375rem; line-height: 1.35; color: var(--ink);
  width: 100%; padding: 8px 0 12px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  background: transparent;
}
.field textarea { display: block; min-height: 4.6em; resize: vertical; }
/* The browser paints autofilled fields its own colour. Keep the accent ground. */
.field input:-webkit-autofill, .field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100px var(--accent) inset; caret-color: var(--ink);
}
/* Active field: a thin frame whose bottom edge sits on the field's own line. */
.ctl { display: block; position: relative; }
.ctl :focus-visible { outline: 0; }
.ctl:focus-within::after { content: ""; position: absolute; inset: 0 -10px; border: 2px solid var(--ink); pointer-events: none; }
.field .err { font-size: .9375rem; font-weight: 600; }
.field .err:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.form-end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-end .btn { min-height: 54px; padding: 0 30px; font-size: 1.0625rem; cursor: pointer; border: 0; font-family: inherit; }
.form-end .btn:hover { background: var(--paper); color: var(--ink); }
.form-end .btn[disabled] { opacity: .55; cursor: default; background: var(--ink); color: var(--paper); }
.form-end p { font-size: .9375rem; max-width: 34ch; }
.form-status { grid-column: 1 / -1; font-weight: 600; }
.form-status:empty { display: none; }
.form-ts { grid-column: 1 / -1; }
.form-ts:empty { display: none; }
.form-done { grid-column: 6 / 13; }
.form-done p { font-size: clamp(1.75rem, 3.2vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; max-width: 18ch; overflow-wrap: anywhere; }
.form-done .sig { display: block; margin-top: 20px; }
.form-done:focus { outline: 0; }
.form[hidden], .form-done[hidden] { display: none; }

/* Footer */
.foot { padding: 28px var(--m) 0; overflow: hidden; }
.foot-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.sig { font: italic 400 1.25rem/1.2 var(--serif); }
.foot nav { display: flex; gap: 28px; font-size: 1rem; flex-wrap: wrap; }
.foot-mark { font-weight: 700; font-size: 31vw; line-height: .74; letter-spacing: -.045em; margin: .12em 0 -.07em -.05em; white-space: nowrap; }

/* Entrances (only when script runs) */
.js [data-r] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js [data-r].in { opacity: 1; transform: none; }
/* the reveal rule above would replace the entry's own colour transition, so both are listed here */
.js .entry[data-r] { transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s), background-color .7s var(--ease), color .7s var(--ease); }

@media (max-width: 820px) {
  .bar-links { display: none; }
  .bar-end { margin-left: auto; gap: 10px; }
  .bar .btn { min-height: 40px; padding: 0 14px; font-size: .9375rem; }
  .cta-top .bar .btn { margin-left: -10px; }
  .hero-row, .work-head, .contact-row { display: block; }
  .gloss { max-width: none; }
  .hero-lead { margin-top: 24px; }
  .cmp { display: none; }
  .made { display: block; margin: 40px calc(var(--m) * -1) 0; }
  .made ul { list-style: none; margin: 0 var(--m); border-top: 2px solid var(--ink); padding: 22px 0 26px; display: grid; gap: 6px; }
  .made li { font-weight: 700; font-size: 2rem; line-height: 1.08; letter-spacing: -.04em; }
  .made s { text-decoration: none; color: #8a897f; background: linear-gradient(var(--accent), var(--accent)) 0 56% / 100% 3px no-repeat; transition: background-size .9s var(--ease) .4s, color .6s .4s; }
  .js .made:has(.made-end:not(.in)) s { background-size: 0 3px; color: var(--ink); }   /* strokes are drawn when the last line comes into view */
  .made li:nth-child(2) s { transition-delay: 1.1s; }
  .made li:nth-child(3) s { transition-delay: 1.8s; }
  .made li:nth-child(4) s { transition-delay: 2.5s; }
  .made-end { display: block; background: var(--ink); color: var(--paper); padding: 30px var(--m) 32px; font-weight: 700; font-size: 2.25rem; line-height: 1.02; letter-spacing: -.04em; }
  .made-end span { color: var(--accent); }
  .work-head p { margin-top: 20px; }
  .work-grid { row-gap: 48px; }
  .w { display: block; }
  .work .w:nth-child(n+4) { display: none; }   /* home page on phones: three projects; all six are on /work */
  .w figcaption { padding-top: 14px; }
  figcaption i { margin-top: 4px; }
  .how { display: block; }
  .how h2 { position: static; margin-bottom: 48px; }
  .contact-side { margin-bottom: 44px; }
  .form { grid-template-columns: 1fr; gap: 26px; }
  .field input, .field textarea { font-size: 1.1875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-r] { opacity: 1; transform: none; transition: none; }
  .shot img, .cs-hero img, .cs-shot .crop img, .btn, .bar .btn, .cta-top .bar .btn, .cmp-handle span, .made s { transition: none; }
}

/* Focus: ink on light and accent grounds, paper on the dark one (accent on accent was invisible) */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.how :focus-visible, .entry:hover:focus-visible { outline-color: var(--paper); }
.cmp-frame:has(.cmp-range:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; }
.skip { position: absolute; left: var(--m); top: -80px; z-index: 30; background: var(--ink); color: var(--paper); padding: 12px 18px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bar-links a[aria-current="page"] { background-size: 100% 2px; }

/* Journal (home section and the blog list) */
.journal { padding: clamp(96px, 13vw, 220px) var(--m); }
.journal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.more { font-weight: 500; text-decoration: none; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100%/100% 2px no-repeat; transition: background-size .35s var(--ease); }
.more:hover { background-size: 0 2px; background-position: 100% 100%; }
.entry {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 12px;
  padding: clamp(24px, 3vw, 44px) clamp(16px, 2.2vw, 32px); margin-top: clamp(32px, 4vw, 64px);
  background: var(--surface); color: var(--ink); text-decoration: none; transition: background-color .7s var(--ease), color .7s var(--ease);
}
.entry time { grid-column: 1 / 4; color: var(--muted); font-size: 1rem; padding-top: .55em; transition: color .7s var(--ease); }
.entry strong { grid-column: 4 / 13; font-weight: 600; font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.75rem); line-height: 1; letter-spacing: -.04em; }
.entry span { grid-column: 4 / 10; color: var(--muted); max-width: 52ch; transition: color .7s var(--ease); }
.entry:hover { background: var(--ink); color: var(--paper); }
.entry:hover time, .entry:hover span { color: #c9c8c1; }
.entries .entry + .entry { margin-top: 8px; }
.entry.pic { align-items: start; }
.entry.pic strong { grid-column: 4 / 10; }
.entry.pic span { grid-column: 4 / 9; }
.thumb { grid-column: 10 / 13; grid-row: 1 / 3; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.entry.pic:hover .thumb img { transform: scale(1.03); }

/* Inner pages */
.page { padding: clamp(40px, 6vw, 104px) var(--m) clamp(96px, 12vw, 200px); }
.page-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.page-title { grid-column: 1 / 8; }
.page-head p { grid-column: 8 / 13; max-width: 30ch; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.3; letter-spacing: -.015em; padding-bottom: .5em; }

/* Post */
.post { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.post-head { grid-column: 1 / 13; display: grid; gap: 22px; justify-items: start; }
.post-title { font-size: clamp(2.5rem, 7.4vw, 8rem); line-height: .94; letter-spacing: -.035em; max-width: 13ch; }
.post-head time { color: var(--muted); }
.post-hero { grid-column: 1 / 13; margin: clamp(32px, 4.5vw, 72px) calc(var(--m) * -1) 0; aspect-ratio: 21 / 9; overflow: hidden; background: var(--surface); }
.post-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.post-body { grid-column: 5 / 12; margin-top: clamp(40px, 6vw, 96px); font-size: clamp(1.125rem, 1.05rem + .35vw, 1.375rem); line-height: 1.55; }
.post-body p { max-width: 62ch; }
.post-body p + p { margin-top: 1.1em; }
.post-body .post-lead { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); line-height: 1.28; letter-spacing: -.02em; max-width: 40ch; }
.post-body h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; margin: 2.2em 0 .6em; max-width: 24ch; }
.post-foot { grid-column: 5 / 12; margin-top: clamp(48px, 6vw, 96px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .entry { display: block; }
  .entry time, .entry strong, .entry span { display: block; }
  .entry strong { margin: 10px 0 12px; }
  .thumb { aspect-ratio: 3 / 2; margin-bottom: 18px; }
  .post-hero { aspect-ratio: 3 / 2; }
  .page-head, .post { display: block; }
  .page-head p { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .entry, .js .entry[data-r], .entry time, .entry span, .thumb img, .more { transition: none; }
}

/* Long text pages (privacy policy) */
.post-body b { font-weight: 600; }
.post-body a, .form-end p a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-body a:hover, .form-end p a:hover { text-decoration-thickness: 4px; }
/* Places still to be filled in before launch */
.todo { background: var(--accent); color: var(--ink); padding: 0 .25em; }

/* Work: one page per project (strona/work/*.html, built by tools/realizacje.mjs) */
.shot { display: block; }
figcaption .more { justify-self: start; margin-top: 8px; }
.cs-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 22px; align-items: end; }
.cs-head .back, .cs-head h1 { grid-column: 1 / -1; justify-self: start; }
.cs-lead { grid-column: 1 / 8; display: grid; gap: 16px; justify-items: start; margin-top: clamp(8px, 2vw, 32px); }
.cs-lead p:first-child { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); line-height: 1.28; letter-spacing: -.02em; max-width: 34ch; }
.cs-note { color: var(--muted); max-width: 46ch; }
.cs-facts { grid-column: 9 / 13; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 1rem; }
.cs-facts dt { color: var(--muted); }
.cs-hero { margin: clamp(40px, 6vw, 96px) 0 0; background: var(--surface); }
.cs-hero img, .cs-shot img { display: block; width: 100%; height: auto; }
.cs-hero { overflow: hidden; }
@media (min-width: 821px) {
  .cs-head { align-items: start; }
  .cs-lead { grid-column: 1 / 6; grid-row: 3; }
  .cs-facts { grid-column: 1 / 6; grid-row: 4; align-self: end; margin-top: 18px; }
  .cs-hero { grid-column: 6 / 13; grid-row: 3 / 5; margin-top: clamp(8px, 2vw, 32px); }
}
.cs-hero img, .cs-shot .crop img { transition: transform .9s var(--ease); }
.cs-hero:hover img, .cs-shot .crop:hover img { transform: scale(1.03); }
.cs-sec { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: clamp(80px, 10vw, 176px); }
.cs-sec > header { grid-column: 1 / 5; }
.cs-sec h2, .phones h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; }
.cs-sec > header p { margin-top: 14px; max-width: 30ch; color: var(--muted); }
.cs-body { grid-column: 5 / 13; min-width: 0; }
.cs-wide { grid-column: 1 / -1; margin-top: clamp(28px, 4vw, 56px); }
/* colour: one band, widths roughly as the colours are used */
.pal { display: flex; min-height: clamp(220px, 26vw, 400px); }
.pal div { display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; font-size: .9375rem; line-height: 1.3; min-width: 0; }
.pal b { font-weight: 600; }
/* type */
.type-name { font-size: clamp(4.5rem, 15vw, 15rem); line-height: .86; letter-spacing: -.045em; overflow-wrap: anywhere; }
.type-long { font-size: clamp(3rem, 10vw, 10rem); }
.type-line { font-size: clamp(1.5rem, 1rem + 2vw, 3rem); letter-spacing: -.03em; line-height: 1.1; margin-top: clamp(20px, 3vw, 44px); }
.type-w { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-top: 18px; font-size: 1.25rem; }
/* pages: staggered, never a row of equal tiles */
.pages { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 5vw, 88px) 24px; align-items: end; }
.cs-shot { margin: 0; }
.cs-shot .crop { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.cs-shot .crop img { height: 100%; object-fit: cover; object-position: 50% 100%; }
.cs-shot.top .crop img { object-position: 50% 0; }
.cs-shot figcaption { padding-top: 14px; }
.p1 { grid-column: 1 / 9; } .p2 { grid-column: 9 / 13; } .p3 { grid-column: 1 / 6; } .p4 { grid-column: 6 / 13; } .p5 { grid-column: 3 / 11; }
.p2 .crop, .p3 .crop { aspect-ratio: 4 / 3; }
.p2 .crop img, .p3 .crop img { object-position: 0 100%; }
.p2.top .crop img, .p3.top .crop img { object-position: 0 0; }
.p2.center .crop img, .p3.center .crop img { object-position: 50% 100%; }
/* a screen shown whole, uncropped */
.cs-shot.free .crop { aspect-ratio: auto; }
.cs-shot.free .crop img { height: auto; }
.cs-shot.wide { grid-column: 1 / -1; }
/* large tiles for app screens, set off left and right in turn */
.cs-shot.pl { grid-column: 1 / 11; }
.cs-shot.pr { grid-column: 3 / 13; }
.p2 figcaption b, .p3 figcaption b { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
/* a whole screen with a magnified cut of the same screen laid over one corner */
/* a phone standing beside a wide screen */
.cs-shot.pph { grid-column: 10 / 13; }
.cs-shot.pph .phone { width: 100%; max-width: 300px; }
/* phones */
.phones { margin: clamp(80px, 10vw, 176px) calc(var(--m) * -1) 0; padding: clamp(56px, 7vw, 120px) var(--m); background: var(--surface); }
.phones header { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.phones header p { color: var(--muted); max-width: 36ch; }
.phone-row { display: flex; justify-content: center; align-items: flex-start; gap: clamp(24px, 8vw, 140px); margin-top: clamp(40px, 5vw, 80px); }
.phone-row figure { width: min(28vw, 330px); flex: none; }
.phone-row figure:nth-child(2) { margin-top: clamp(32px, 6vw, 96px); }
.phone-row .phone { width: 100%; }
.phone-row figcaption { padding-top: 18px; }
.phone-row figcaption b { font-size: 1.25rem; letter-spacing: -.02em; }
/* The one rounded thing on the site: it is a picture of a phone, not an interface element. */
.phone { width: min(26vw, 300px); padding: 9px; background: var(--ink); border-radius: 38px; flex: none; }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 30px; }
/* decisions */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; }
.notes h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.notes p { margin-top: 10px; color: var(--muted); max-width: 34ch; }
.cs-next { margin-top: clamp(80px, 10vw, 176px); }
.cs-next .entry { margin-top: 0; }
@media (max-width: 820px) {
  .cs-head, .cs-sec { display: block; }
  .cs-facts { margin-top: 28px; }
  .cs-sec > header { margin-bottom: 28px; }
  .pal { flex-wrap: wrap; min-height: 0; }
  .pal div { flex: 1 1 50% !important; min-height: 120px; }
  .pages { display: block; }
  .cs-shot.pph .phone { width: 62vw; }
  .cs-shot + .cs-shot { margin-top: 36px; }
  .phone-row { gap: 4vw; }
  .phone-row figure { width: 43vw; }
  .phone-row figure:nth-child(2) { margin-top: 28px; }
  .phone-row .phone { padding: 6px; border-radius: 26px; }
  .phone-row .phone img { border-radius: 20px; }
  .phone-row figcaption span { font-size: .9375rem; }
  .notes { grid-template-columns: 1fr; gap: 32px; }
}

/* Newsletter (/newsletter) i komunikaty Workera (zapis, wypis). Formularz zapisu działa bez skryptu,
   więc w odróżnieniu od formularza kontaktowego jest widoczny zawsze. */
.newsletter-form { display: grid; grid-template-columns: 1fr; max-width: 560px; margin-top: clamp(40px, 6vw, 88px); }
.newsletter-form .form-end .btn:hover { background: var(--accent); color: var(--ink); }
.newsletter-form .form-end p a, .newsletter-dalej a:not(.btn), .komunikat a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.newsletter-dalej { margin-top: clamp(40px, 6vw, 88px); max-width: 46ch; font-size: 1.125rem; }
.komunikat { margin-top: clamp(32px, 5vw, 64px); max-width: 60ch; display: grid; gap: 18px; font-size: 1.125rem; }
.komunikat ul { padding-left: 1.2em; list-style: disc; }
.komunikat .button {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 30px;
  background: var(--ink); color: var(--paper); font: inherit; font-weight: 500; font-size: 1.0625rem;
  border: 0; cursor: pointer; text-decoration: none; transition: background-color .2s;
}
.komunikat .button:hover { background: var(--accent); color: var(--ink); }
.komunikat-tytul { grid-column: 1 / -1; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 5rem); max-width: 18ch; }
