/* fonts: self-hosted subsets (latin + the few japanese glyphs the site shows); licences sit next to the files */
@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/zen-kaku-gothic-new-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/zen-kaku-gothic-new-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/zen-kaku-gothic-new-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/zen-kaku-gothic-new-700-ja.woff2') format('woff2');
  unicode-range: U+3040-309F;
}
@font-face {
  font-family: 'Shippori Mincho';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/shippori-mincho-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Shippori Mincho';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/shippori-mincho-600-ja.woff2') format('woff2');
  unicode-range: U+3040-309F, U+4E00-9FFF;
}

:root {
  --washi: #ECE7DC;
  --washi-alt: #E4DECF;
  --ink: #1F1B15;
  --mute: #585145;
  --faint: #857D6D;
  --line: #CFC7B6;
  --line-alt: #C8BFAD;
  --honey: #DDA01F;
  --honey-light: #EDC565;
  --amber: #C4830F;
  --slate: #383E42;
  --on-ink-mute: #B9B1A2;
  --on-ink-line: #3A352C;
  --on-ink-outline: #4A443A;
  /* the other golds an origami facet takes on hover, beside the honeys and the amber */
  --champagne: #F3D98A;
  --brass: #C2A23A;

  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Helvetica Neue', sans-serif;
  --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --gutter: clamp(20px, 5vw, 48px);
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  /* slows down evenly, for a flight that lasts several beats of the wings */
  --ease-glide: cubic-bezier(.3, .55, .4, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* no scroll anchoring: on a reload, chrome would put the page back by the block that was at the top
   of the screen, measured while it still rises in (22px down) or before the fonts arrive, and the
   page would land a little higher at each reload. without it, the page comes back at its offset */
html {
  -webkit-text-size-adjust: 100%;
  overflow-anchor: none;
}
/* smooth only after a link or a field has the focus: a reload comes back at once, not from the top */
html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--washi);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  /* whatever reaches past the edge (a cell of the hive, the corner honeycomb), never a sideways scroll */
  overflow-x: clip;
}

:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 3px;
}

/* selected text in honey, on light and dark sections alike */
::selection {
  background: var(--honey-light);
  color: var(--ink);
}

/* the browser's scrollbar, replaced by one in honey once site.js has put it in place: drawn over the
   page, always shown */
.has-scrollbar {
  scrollbar-width: none;
}
.has-scrollbar::-webkit-scrollbar {
  display: none;
}
.scrollbar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: 14px;
}
.scrollbar__thumb {
  position: absolute;
  top: 0;
  right: 3px;
  width: 8px;
  border-radius: 8px;
  background: var(--honey);
  transition: background-color .2s ease;
}
.scrollbar__thumb:hover,
.scrollbar.is-dragging .scrollbar__thumb {
  background: var(--amber);
}

/* ---------- layout ---------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* on a short page the content stretches, never the footer */
.page > main {
  flex-grow: 1;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--washi);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---------- entrance animations ---------- */

@keyframes cellIn {
  from { opacity: 0; transform: scale(.5); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes cellOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(.6); }
}
@keyframes pop {
  0% { transform: scale(.82); }
  60% { transform: scale(1.07); }
  100% { transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* the bee of the contact panel, while the message is on its way */
@keyframes float {
  from { transform: none; }
  to { transform: translateY(-5px); }
}
/* the origami flies in from the left and a little below, levelling out as it lands; in full view
   from its first beat of the wings (bird.js) */
@keyframes birdIn {
  from { opacity: 0; transform: translate(-60px, 18px) rotate(-7deg) scale(.88); }
  25% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

.rise {
  animation: rise .9s var(--ease-out) both;
}
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }

/* set by site.js on blocks below the fold, removed when they scroll into view */
.rise.wait {
  animation: none;
  opacity: 0;
}
/* on paper, every block, scrolled to or not */
@media print {
  .rise.wait {
    opacity: 1;
  }
}

/* ---------- shared pieces ---------- */

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}

.h2 {
  --h2-size: clamp(30px, 3.6vw, 52px);
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.015em;
  font-size: var(--h2-size);
  line-height: 1.15;
  text-wrap: balance;
}

.page-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.03em;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.06;
}

.faint {
  color: var(--faint);
}

.nowrap {
  white-space: nowrap;
}

.hex {
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
}

.cluster {
  display: block;
  flex: none;
  width: 34px;
  height: 32px;
}
/* the tones of a cell of the honeycomb (hex_svg, cluster_svg): its colour, which .gild fills it with */
.cell--honey {
  color: var(--honey);
}
.cell--amber {
  color: var(--amber);
}
/* on the ink, the light honey of .gild would turn olive */
.cell--ink {
  --gilt: var(--honey);
  color: var(--ink);
}
.cell--hollow {
  color: transparent;
  stroke: var(--line-alt);
  stroke-width: .9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: var(--washi);
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease;
}
/* a button never rises on hover: it only lightens */
.btn:hover {
  background: var(--slate);
}
.btn--honey {
  background: var(--honey);
  color: var(--ink);
}
.btn--honey:hover {
  background: var(--honey-light);
}

/* the shape under the pointer, and only it (a facet of an origami bird, a cell of the honeycomb),
   takes a little honey at once and keeps its shade, then lets it go slowly: the pointer leaves a
   short golden trail. the shape's own colour is its color */
@property --gild {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}
.gild {
  --gilded: color-mix(in srgb, var(--gilt, var(--honey-light)) var(--gild), currentColor);
  fill: var(--gilded);
  transition: --gild .9s ease;
}
.gild:hover {
  --gild: 45%;
  transition-duration: .15s;
}
/* a facet of an origami bird of app/svg.php, its colour in its color attribute (bird.js relights it
   in flight): its hairline stroke, which hides the seams, follows its fill */
.origami__facet {
  stroke: var(--gilded);
}
/* white paper needs a little more honey than the cells to look golden */
.origami__facet:hover {
  --gild: 60%;
}
/* each facet gilds in a gold of its own (GILT_TONES, app/svg.php), unlike its neighbours: the pointer
   leaves a trail of several golds, not of one */
.gilt--champagne { --gilt: var(--champagne); }
.gilt--light { --gilt: var(--honey-light); }
.gilt--honey { --gilt: var(--honey); }
.gilt--amber { --gilt: var(--amber); }
.gilt--brass { --gilt: var(--brass); }

/* ---------- header ---------- */

.site-header {
  background: var(--washi);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 32px;
  min-height: 88px;
  padding: 10px 0;
}
.site-header__end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 32px;
}
/* the hive may climb over the header band: links stay above it */
.site-header a,
.lang__current {
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.brand__mark {
  display: block;
  flex: none;
  width: 31px;
  height: 34px;
}
.brand__stripes {
  transition: fill .3s ease;
}
.brand:hover .brand__stripes,
.brand:focus-visible .brand__stripes {
  fill: var(--honey);
}
.brand__name {
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -.01em;
}

.lang {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}
.lang__current {
  color: var(--ink);
}
.lang__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  /* mute, not faint: small text needs a contrast of 4.5:1 */
  color: var(--mute);
  text-decoration: none;
}
.lang__link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ---------- hero and hive ---------- */

/* as tall as the screen under the header, never less than the bird and the text need */
.hero {
  position: relative;
  min-height: 792px;
  min-height: max(720px, calc(100svh - 88px));
  padding: 36px 0 80px;
  display: flex;
  align-items: center;
}
/* the hive lies under the text: only the lines of text and the paper of the bird catch the pointer,
   never the box around them, so a cell beside a short line keeps its hover */
.hero__inner {
  position: relative;
  pointer-events: none;
}
.hero__stack > p,
.hero__title,
.hero__bird .origami__facet {
  pointer-events: auto;
}
.hero__text {
  max-width: 560px;
  container-type: inline-size;
}
.hero__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
/* the font of the other headings; one sentence per line, never broken */
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.015em;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.12;
}
.hero__title span {
  display: block;
  white-space: nowrap;
}
.hero__lead {
  margin: 0;
  max-width: 540px;
  font-size: clamp(17px, 1.35vw, 19.5px);
  line-height: 1.6;
  color: var(--mute);
}
/* the second sentence of the lead, on a line of its own */
.hero__lead-next {
  display: block;
  margin-top: 8px;
}
/* the origami bird above the text, on its left edge, the hive filling the right ("tête et pied", H13
   of the artifact of the hero compositions). a bird of app/svg.php: its height follows its drawing */
/* it glides in while beating its wings (bird.js), slowly: its two beats take 3.2 s of the 4 s
   (2.4 s before 2026-11-30) */
.hero__bird {
  margin: 0 0 24px -18px;
  transform-origin: 70% 40%;
  animation: birdIn 4s var(--ease-glide) .15s both;
}
/* in flight (bird.js), the wings reach a little past the drawing's box. its nose 7° lower than in the
   drawing, as in a calm level flight, turned around its breast (112, 100 of its 200 × 192 box): set
   here, the page without script and reduced motion show it the same way */
.hero__bird-mark {
  display: block;
  width: 320px;
  height: auto;
  overflow: visible;
  rotate: 7deg;
  transform-origin: 56% 52%;
}

/* cells are created by hive.js, which sets their position and the two colours below */
.hive {
  position: absolute;
  inset: 0;
  transition: opacity 1.2s ease;
  will-change: transform;
}
.hive.is-fading {
  opacity: 0;
}
.hive__cell {
  --tone: var(--line);
  --core: var(--washi);
  position: absolute;
  clip-path: var(--hex);
  background: var(--tone);
  transform-box: fill-box;
  transform-origin: center;
  transition: background-color .4s ease, filter .25s ease;
  animation: cellIn 1.3s var(--ease-out) both;
}
.hive__cell::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  clip-path: var(--hex);
  background: var(--core);
  transition: background-color .4s ease;
}
.hive__cell.is-pop {
  animation-name: pop;
}
/* a cell that gives way to another one elsewhere; hive.js removes it at the end */
.hive__cell.is-gone {
  animation: cellOut 1.1s ease-in both;
  pointer-events: none;
}
.hive__cell:hover {
  filter: brightness(1.1);
}

/* ---------- the name ---------- */

.section-name {
  background: var(--washi-alt);
  padding: 120px 0;
}
.section-name__stack {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.words {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 56px 72px;
}
.word {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 2px solid var(--ink);
  padding-top: 28px;
}
.word__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.word__name {
  margin: 0;
  font-weight: 700;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.02em;
}
.word__kanji {
  flex: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1;
  white-space: nowrap;
}
.word__kana {
  color: var(--ink);
}
.word__kana-dim {
  color: var(--mute);
}
.word__definition {
  max-width: 30em;
  font-size: 19px;
  line-height: 1.6;
}
.word__definition p {
  margin: 0;
}
.word__definition p + p {
  margin-top: 0.5em;
}
.word__keep {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--mute);
}
.word__keep strong {
  color: var(--ink);
}

/* ---------- expertise ---------- */

.section-craft {
  padding: 96px 0 120px;
}
.section-craft__stack,
.section-contact__stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.section-craft__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* one line on a computer, folded on narrower screens */
.section-craft__lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--mute);
}
.activities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 40px 48px;
}
.activity {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.activity__title {
  margin: 0;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
}
.activity__text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--mute);
}

/* ---------- contact ---------- */

.section-contact {
  background: var(--ink);
  color: var(--washi);
  padding: 112px 0;
  /* the browser's own colours there (autofill, its preview) turn light too, instead of black on ink */
  color-scheme: dark;
}
/* one line on a computer: the size at which the french title, the longer one (23.6 times its font
   size), fills the width of the page, with 2 % to spare; never larger than the other titles, and
   down to 22 px so it stays on one line until the phone layout (700 px), where it folds */
.section-contact__stack {
  container-type: inline-size;
}
.contact__title {
  font-size: min(var(--h2-size), max(22px, 4.15cqi));
}
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 72px;
}
.contact__intro {
  flex: 1 1 360px;
  min-width: 0;
}
.contact__panel {
  flex: 1 1 420px;
  min-width: 0;
}
/* the still bird of the contact section (app/svg.php): its height follows its drawing */
.bird {
  --bird-width: 220px;
  display: block;
  flex: none;
  width: var(--bird-width);
  height: auto;
  overflow: visible;
  /* the drawing starts 13.9 units into its 200 wide box: its wing tip lines up with the title */
  margin-left: calc(var(--bird-width) * -.0695);
}
/* bird and form side by side (360 + 72 + 420 px: the bases and the gap above): a larger bird, in the
   middle of its column and across from the middle of the form */
@container (min-width: 852px) {
  .contact__intro {
    align-self: center;
  }
  .bird {
    --bird-width: 300px;
    margin-inline: auto;
  }
}

/* ---------- forms (on the ink background; the login form of the client area: see .access) ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 560px;
}
.form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 20px;
}
/* honeypot: hidden from people, filled by bots */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field--grow {
  flex: 1 1 200px;
  min-width: 0;
}
.field__label {
  padding-left: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
}
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1.5px solid var(--on-ink-mute);
  border-radius: 0;
  background: transparent;
  color: var(--washi);
  font-family: inherit;
  font-size: 16.5px;
}
.field__input--area {
  min-height: 120px;
  line-height: 1.5;
  resize: none;
}
.field__input:focus-visible {
  outline: 0;
  border-bottom-color: var(--honey-light);
  box-shadow: 0 1.5px 0 var(--honey-light);
}
.field__input[aria-invalid='true'] {
  border-bottom-color: var(--honey-light);
}
/* keeps the browser's autofill from painting a light box on the dark form */
.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--washi);
  box-shadow: 0 0 0 100px var(--ink) inset;
  caret-color: var(--washi);
}
.field__error {
  margin: 4px 0 0;
  padding-left: 12px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--honey-light);
}
.field__error:empty {
  display: none;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.form__note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--on-ink-mute);
}
.form__status {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--honey-light);
}
.form__status:empty {
  display: none;
}
.form__status--keep,
.form__status--keep:empty {
  display: block;
  min-height: 22px;
}
/* the address, under the form, for those who prefer their own mail */
.form__mail {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-ink-mute);
}
.form__mail a,
.thanks__more a {
  color: var(--honey-light);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

/* at the click, a panel takes the form's place (contact.js): the bee and "sending…" while the
   message is on its way, then the thank-you words */
.form[hidden],
.thanks[hidden],
.thanks[data-step='wait'] > :not(.thanks__bee, .thanks__wait),
.thanks[data-step='done'] > .thanks__wait {
  display: none;
}
.thanks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
  scroll-margin-top: 24px;
  animation: rise .9s var(--ease-out) both;
}
.thanks:focus {
  outline: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .thanks[data-step='wait'] > .thanks__bee {
    animation: float .8s ease-in-out infinite alternate;
  }
  .thanks[data-step='done'] > :not(.thanks__bee) {
    animation: fadeIn .6s var(--ease-out) both;
  }
}
.thanks__bee {
  width: 46px;
  height: auto;
  color: var(--honey);
}
.thanks__title {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.2;
  color: var(--washi);
}
.thanks__text {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.6;
}
.thanks__more {
  align-self: stretch;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--on-ink-line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-ink-mute);
}
.thanks__again {
  display: inline-flex;
  align-items: center;
  height: 48px;
  margin-top: 26px;
  padding: 0 22px;
  border: 1.5px solid var(--on-ink-mute);
  border-radius: 6px;
  color: var(--washi);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.thanks__again:hover {
  border-color: var(--honey-light);
  color: var(--honey-light);
}

/* send button: the bee leads the way */
.send {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  background: var(--honey);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease;
}
.send:hover {
  background: var(--honey-light);
}
.send__bee {
  flex: none;
  width: 26px;
  height: 26px;
  transform: rotate(90deg);
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--on-ink-line);
  background: var(--ink);
  color: var(--washi);
}
.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 48px;
}
.site-footer__legal {
  margin: 0;
  font-size: 14.5px;
  color: var(--on-ink-mute);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
}
.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--washi);
  font-size: 14.5px;
}
.site-footer__link:hover {
  color: var(--honey-light);
}

/* ---------- inner pages: header block and corner honeycomb ---------- */

.page-head {
  position: relative;
  min-height: 320px;
  padding: 72px 0 88px;
  display: flex;
  align-items: center;
}
.page-head__inner,
.access__inner {
  position: relative;
}
.page-head__stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}
.page-head__lead {
  margin: 0;
  max-width: 32em;
  font-size: 18px;
  line-height: 1.6;
  color: var(--mute);
}

.page-head--tall {
  min-height: 560px;
}
.page-head__action {
  margin: 8px 0 0;
}

/* svg drawn by deco_html() (app/svg.php), its box 30 px past the right and 35 px past the bottom */
.deco {
  position: absolute;
  right: -30px;
  bottom: -35px;
  width: 300px;
  height: 225px;
  overflow: visible;
}
.deco__cell {
  transform-box: fill-box;
  transform-origin: center;
  animation: cellIn .7s var(--ease-out) both;
}
.deco__cell--honey { fill: var(--honey); }
.deco__cell--light { fill: var(--honey-light); }
.deco__cell--amber { fill: var(--amber); }
.deco__cell--slate { fill: var(--slate); }
.deco__cell--hollow { fill: var(--line); }
.deco__core { fill: var(--washi); }
/* the cells come in one after the other, 50 ms apart */
.deco > :nth-child(2) > .deco__cell { animation-delay: .05s; }
.deco > :nth-child(3) > .deco__cell { animation-delay: .1s; }
.deco > :nth-child(4) > .deco__cell { animation-delay: .15s; }
.deco > :nth-child(5) > .deco__cell { animation-delay: .2s; }
.deco > :nth-child(6) > .deco__cell { animation-delay: .25s; }
.deco > :nth-child(7) > .deco__cell { animation-delay: .3s; }
.deco > :nth-child(8) > .deco__cell { animation-delay: .35s; }
.deco > :nth-child(9) > .deco__cell { animation-delay: .4s; }
.deco > :nth-child(10) > .deco__cell { animation-delay: .45s; }
.deco > :nth-child(11) > .deco__cell { animation-delay: .5s; }
.deco > :nth-child(12) > .deco__cell { animation-delay: .55s; }
.deco > :nth-child(13) > .deco__cell { animation-delay: .6s; }
.deco > :nth-child(14) > .deco__cell { animation-delay: .65s; }
.deco > :nth-child(15) > .deco__cell { animation-delay: .7s; }
.deco > :nth-child(16) > .deco__cell { animation-delay: .75s; }
.deco > :nth-child(17) > .deco__cell { animation-delay: .8s; }
.deco > :nth-child(18) > .deco__cell { animation-delay: .85s; }
.deco > :nth-child(19) > .deco__cell { animation-delay: .9s; }
.deco > :nth-child(20) > .deco__cell { animation-delay: .95s; }
.deco > :nth-child(21) > .deco__cell { animation-delay: 1s; }
.deco > :nth-child(22) > .deco__cell { animation-delay: 1.05s; }
.deco > :nth-child(23) > .deco__cell { animation-delay: 1.1s; }
.deco > :nth-child(24) > .deco__cell { animation-delay: 1.15s; }
.deco > :nth-child(25) > .deco__cell { animation-delay: 1.2s; }
.deco > :nth-child(26) > .deco__cell { animation-delay: 1.25s; }
.deco > :nth-child(27) > .deco__cell { animation-delay: 1.3s; }
/* client area: under the title and its line, from 30 px left of the text */
.deco--client {
  top: calc(100% + 40px);
  right: auto;
  bottom: auto;
  left: -30px;
  width: 675px;
  height: 269px;
}

/* ---------- legal notice ---------- */

.legal {
  background: var(--washi-alt);
  padding: 96px 0 112px;
}
.legal__item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 72px;
  border-top: 2px solid var(--ink);
  padding: 32px 0 56px;
}
.legal__title {
  flex: 0 1 320px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.015em;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
}
.legal__body {
  flex: 1 1 480px;
  min-width: 0;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
  line-height: 1.6;
}
.legal__body p {
  margin: 0;
}
.legal__body a {
  color: var(--ink);
}
.legal__body a:hover {
  color: var(--mute);
}
.legal__updated {
  margin: 0;
  border-top: 1px solid var(--line-alt);
  padding-top: 24px;
  font-size: 14.5px;
  color: var(--mute);
}

/* ---------- client area ---------- */

.access {
  position: relative;
  min-height: 640px;
  padding: 112px 0;
  display: flex;
  align-items: center;
}
.access__cols {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 96px;
}
.access__intro {
  position: relative;
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.access__lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--mute);
}
.access__panel {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 460px;
}
/* the login form sits on the light paper: ink instead of honey, which is too pale there */
.access .field__label {
  color: var(--mute);
}
.access .field__input {
  border-bottom-color: var(--mute);
  color: var(--ink);
}
.access .field__input:focus-visible,
.access .field__input[aria-invalid='true'] {
  border-bottom-color: var(--ink);
  box-shadow: 0 1.5px 0 var(--ink);
}
.access .field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 100px var(--washi) inset;
  caret-color: var(--ink);
}
.access .field__error,
.access .form__status {
  color: var(--ink);
}
/* the answer to a sign-in, on the line of the button, against the right edge of the fields; under
   the button when the line is too short for it */
.access .form__foot .form__status {
  flex: 1 1 12em;
  min-width: 0;
  text-align: right;
  text-wrap: balance;
}

/* ---------- smaller screens ---------- */

@media (max-width: 1100px) {
  .deco {
    display: none;
  }
}

@media (max-width: 700px) {
  .site-header__bar {
    min-height: 68px;
  }
  /* the hive grows in the space left under the text */
  .hero {
    min-height: 0;
    padding: 36px 0 300px;
    align-items: flex-start;
  }
  /* the size at which the english title's longer line (11.84 times its font size) fills the text
     column, with 1.5 % to spare */
  .hero__title {
    font-size: min(44px, 8.3cqi);
  }
  .hero__bird {
    margin: 0 0 4px -8px;
  }
  .hero__bird-mark {
    width: 210px;
  }
  .h2 {
    font-size: 27px;
  }
  .section-name,
  .section-craft,
  .section-contact {
    padding: 64px 0;
  }
  .section-name__stack,
  .section-craft__stack,
  .section-contact__stack {
    gap: 40px;
  }
  /* alone above the form, the bird sits in the middle of the column, under a centered title */
  .contact__title {
    text-align: center;
  }
  .bird {
    --bird-width: 180px;
    margin-inline: auto;
  }
  .page-head {
    min-height: 0;
    padding: 48px 0 56px;
  }
  .legal {
    padding: 56px 0 64px;
  }
  .legal__item {
    padding: 24px 0 40px;
  }
  .access {
    min-height: 0;
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  .rise,
  .hero__bird,
  .thanks,
  .hive__cell,
  .deco__cell {
    animation: none;
    opacity: 1;
  }
  .hive__cell,
  .btn,
  .thanks__again,
  .send,
  .scrollbar,
  .scrollbar__thumb {
    transition: none;
  }
}
