/* Company on a phone: the Ledger (front/company.js, which marks #company .ledger up to 820 px with JavaScript on; desktop, and a page without JavaScript,
   keep index.html's own styles). One locked page in Company's blue with white ink: it starts under the head bar's short fade and ends 30 px above the
   pixel edge that hangs from it (front/edges.js, 1 px over its foot). Three rows, hairlines between them; a row's head is a button, its body runs between
   nothing and its content's height and is hidden once shut, so that nothing in a closed row can be reached. .up: a row's documents beside its
   address, smaller, for a page too short for that row open; still too short, the rows scroll inside the page. .drawn: the page has arrived and its sketches are
   drawn in. .co-cut: laid out again with nothing run. Under reduced motion index.html cuts every transition. */
@media (max-width: 820px) {
  html.js #sc > #company.ledger { display: flex; flex-direction: column; padding: calc(var(--clear) + 14px) 20px 0; font-size: 14px; line-height: 1.4; }
  #company.ledger .stage, #company.ledger .branches, #company.ledger .branches-clip { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; width: 100%; align-items: stretch; text-align: left; }
  /* (the title is the head bar's mark: kept for a screen reader only) */
  #company.ledger .section-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  /* (the list reaches 6 px past the text on each side, and so does a row's body, so that a focus ring round the address or a document shows whole) */
  #company.ledger .branches-inner { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; width: auto; margin: 0 -6px; padding: 0 6px; border: 0; overflow-y: auto; }
  #company.ledger .branch { opacity: 1; padding: 0; border: 0; }
  #company.ledger .branch + .branch { padding-top: 0; border-top: 1px solid rgba(255, 255, 255, .26); }
  /* (what the head and the body have not taken: London's and İstanbul's "since", whose dates are in their registry lines, and Roma's empty paper) */
  #company.ledger .branch > .meta, #company.ledger .branch > .thumbs { display: none; }
  /* the head: the sketch, the name over the legal name and branch, the round plus that turns into a minus */
  #company.ledger .co-head { box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: none;
    color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  #company.ledger .co-head:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
  /* (the strokes scaled with the drawing: 1.5 px on the screen at 70 px wide) */
  #company.ledger .sketch { position: static; z-index: auto; flex: none; width: 70px; height: 42px; opacity: 1; stroke-width: 4.7; }
  #company.ledger .co-name { flex: 1 1 auto; min-width: 0; }
  /* (a line of 1.15, the desktop's, not 1: the dot of İstanbul's İ reaches above the letters, and keeps 4 px of blue under the hairline over its row; the
     sub-line comes 2 px closer for it; a closed row still grows by 3.75 px, from 66 to 70) */
  #company.ledger .city-row { display: block; min-height: 1.15em; font: 500 27px/1.15 "CooperMed", Georgia, serif; letter-spacing: -.02em; }
  #company.ledger .city { display: inline; }
  #company.ledger .co-sub { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; font-weight: 500; color: rgba(255, 255, 255, .92); }
  #company.ledger .co-sub .legal { display: inline; font-weight: inherit; }
  #company.ledger .co-pm { flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: transform .45s cubic-bezier(.3, 1.45, .5, 1); }
  #company.ledger .co-pm::before, #company.ledger .co-pm::after { content: ""; position: absolute; left: 8px; right: 8px; top: 12px; height: 2px; border-radius: 1px; background: #fff; }
  #company.ledger .co-pm::after { transform: rotate(90deg); transition: transform .35s; }
  #company.ledger .co-open .co-pm { transform: rotate(180deg); }
  #company.ledger .co-open .co-pm::after { transform: rotate(0deg); }

  /* the body: its height runs between nothing and its content's (a browser that does not animate grid rows simply opens it), its content fades in after it
     and out before; shut, it is hidden once it has closed */
  #company.ledger .co-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s cubic-bezier(.2, .9, .2, 1), visibility 0s linear .55s; }
  #company.ledger .co-open .co-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .55s cubic-bezier(.2, .9, .2, 1), visibility 0s linear 0s; }
  #company.ledger .co-in { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .25s; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start;
    margin: 0 -6px; padding: 0 6px; }
  #company.ledger .co-open .co-in { opacity: 1; transition: opacity .35s .15s; }
  /* (the room over and under the content is part of it, so that a closed body is nothing at all: padding would stay; the 4 px over it hold the
     address's focus ring) */
  #company.ledger .co-in > *, #company.ledger .co-in::before, #company.ledger .co-in::after { grid-column: 1 / -1; }
  #company.ledger .co-in::before { content: ""; grid-row: 1; height: 4px; }
  #company.ledger .co-in::after { content: ""; height: 12px; }
  #company.ledger .mail { display: block; justify-self: start; margin: 0; font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  #company.ledger .mail svg { display: none; }
  #company.ledger .mail:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }
  /* Roma's opening date, a small pill under its address as on a desktop */
  #company.ledger .co-in > .soon { justify-self: start; margin-top: 8px; font-size: 12px; }
  #company.ledger .mini { grid-template-columns: 8.6em minmax(0, 1fr); gap: 4px 12px; margin: 9px 0 0; padding-top: 9px; font-size: 12px; line-height: 1.32;
    border-top: 1px solid rgba(255, 255, 255, .26); opacity: 1; transform: none; transition: none; }
  /* (white at .92 is the least that reads at 4.5:1 on Company's blue, #1560FE: 4.53:1) */
  #company.ledger .mini dt { color: rgba(255, 255, 255, .92); font-weight: 500; }
  #company.ledger .mini dd { font-weight: 600; }
  #company.ledger .thumbs { display: flex; gap: 22px; margin: 10px 0 0; }
  #company.ledger .sheet { position: relative; width: 40px; min-width: 0; max-width: none; touch-action: manipulation; }
  #company.ledger .sheet img { width: 40px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 6px; opacity: 1; transform: none;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45); transition: none; }
  #company.ledger .sheet:focus-visible img { outline: 2px solid #fff; outline-offset: 2px; }
  /* (no captions shown: a screen reader names a document by its aria-label, its title; the caption is kept out of sight) */
  #company.ledger .sheet-label { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 1; }
  /* a page too short for the open row: its documents beside its address, 24 px wide */
  #company.ledger .up .co-in > .mail { grid-column: 1; grid-row: 2; align-self: center; }
  #company.ledger .up .co-in > .thumbs { grid-column: 2; grid-row: 2; align-self: center; margin: 0 0 0 10px; gap: 6px; }
  #company.ledger .up .co-in > .mini { grid-row: 3; }
  #company.ledger .up .sheet, #company.ledger .up .sheet img { width: 24px; }
  #company.ledger .up .sheet img { border-radius: 3px; box-shadow: 0 3px 8px -3px rgba(0, 0, 0, .5); }

  /* the sketches draw themselves in when the page arrives, as on a desktop, the strokes one after another (the sequence a little tighter, so that all
     three are drawn in under two and a half seconds); nothing in them turns or drifts, and Roma's bars do not shimmer */
  #company.ledger .sketch path { stroke-dashoffset: var(--off); transition: none; }
  #company.ledger.drawn .sketch path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.45, 0, .25, 1) calc(var(--d, 0ms) * .8); }
  #company.ledger .sketch .spin, #company.ledger .sketch .gull, #company.ledger .skel, #company.ledger .live::before { animation: none; }
  #company.co-cut, #company.co-cut * { transition: none !important; }
}
/* (under reduced motion the sketches are simply there) */
@media (max-width: 820px) and (prefers-reduced-motion: reduce) { #company.ledger .sketch path { stroke-dashoffset: 0; } }

/* ---- the page's footer, on the company, the last page (index.html's .co-foot) ----
   The company's papers, then a row of pixels stepping down into navy, and in the navy the two ways to reach Olict, the languages and the legal line.
   A desktop: the company in the middle of what the page has above the footer, the footer at its foot, one screen on a laptop. A phone: the Ledger's
   rows, then the footer at the screen's foot. The two contacts are type, no box: what it is, small, over the address in Inter, on a faint line; under
   the pointer (or keyboard focus) a solid line is drawn under the address in steps, pixel by pixel, as the pixel edge above the footer is drawn. */
html.js .sec-company { display: flex; flex-direction: column; }
html.js .sec-company > .stage { flex: 1 0 auto; justify-content: center; }
.co-foot { --navy: #0A1A4F; margin: 0 -16px; color: #fff; }
.co-px { display: block; width: 100%; height: 24px; fill: var(--navy); margin-bottom: -1px; }
.co-foot-in { background: var(--navy); padding: 26px max(16px, calc((100% - 1120px) / 2)) calc(28px + env(safe-area-inset-bottom, 0px)); }
.co-foot .contacts { display: flex; flex-wrap: wrap; gap: 14px 48px; }
.co-foot .contact { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.co-foot .contact small { font: 500 12px/1.3 "Inter", system-ui, sans-serif; color: rgba(255, 255, 255, .62); transition: color .2s; }
/* (the address's line: a faint hairline always, and over it a solid 2 px line that grows in 10 steps under the pointer) */
.co-foot .contact b { max-width: 100%; padding-bottom: 6px; font: 500 20px/1.2 "Inter", system-ui, sans-serif; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat, linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s steps(10, end); }
.co-foot .contact:hover b { background-size: 100% 2px, 100% 1px; }
/* (Instagram's verified badge after the handle: its blue seal and white tick, as tall as the handle's capitals, on their middle) */
.co-foot .contact .vf { display: inline-block; width: .8em; height: .8em; margin-left: .3em; vertical-align: -.06em; overflow: visible; }
.co-foot .contact .vf-seal { fill: #0095F6; }
.co-foot .contact .vf-tick { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.co-foot .contact:hover small { color: #fff; }
/* (the same for keyboard focus, in rules of their own: before Safari 15.4 a list holding :focus-visible is dropped whole) */
.co-foot .contact:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 4px; }
.co-foot .contact:focus-visible b { background-size: 100% 2px, 100% 1px; }
.co-foot .contact:focus-visible small { color: #fff; }
/* (the languages, each by its own name, the page's own underlined; the legal links under them, quieter; the copyright line, quieter still, last) */
.co-foot .langs { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .35rem 1.1rem; margin: 0; font-size: 13px; }
.co-foot .langs a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; }
.co-foot .langs a:hover { border-bottom-color: rgba(255, 255, 255, .6); }
.co-foot .langs a[aria-current] { font-weight: 600; border-bottom-color: #fff; }
.co-foot .ft-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 12px 0 0; font-size: 12.5px; }
.co-foot .ft-legal a { color: rgba(255, 255, 255, .8); text-underline-offset: .22em; text-decoration-color: rgba(255, 255, 255, .35); }
.co-foot .ft-legal a:hover { color: #fff; text-decoration-color: #fff; }
.co-foot .ft-copy { margin: 16px 0 0; font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .62); }
@media (min-width: 821px) {
  /* (the page has no padding at its foot: the footer is its foot; the three cities a little wider than the other pages' content, so that London's
     four papers stand in one row and the registry lines wrap less) */
  html.js .sec-company { padding-top: calc(88px + env(safe-area-inset-top, 0px)); padding-bottom: 0; }
  html.js .sec-company > .stage { padding-bottom: clamp(10px, 2vh, 30px); }
  .sec-company .branches { width: min(1240px, 100%); }
  .sec-company .branches-inner { padding-top: clamp(1rem, 2.2vh, 1.5rem); }
  .sec-company .mini { font-size: 12.5px; line-height: 1.3; }
  .sec-company .sketch { width: 78px; }
  .sec-company .sheet { min-width: 66px; } .sec-company .sheet img, .sec-company .sheet .paper { width: 66px; }
  /* (one row: the languages and the legal links to the left, a rule down the middle, the two contacts side by side to the right; the copyright line
     under the row) */
  .co-foot-in { padding: 18px max(16px, calc((100% - 1240px) / 2)) calc(14px + env(safe-area-inset-bottom, 0px)); }
  .co-foot .ft-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .co-foot .ft-l { padding-right: clamp(24px, 3vw, 44px); }
  .co-foot .langs { gap: .3rem 1rem; line-height: 1.5; }
  .co-foot .contacts { align-self: stretch; align-content: center; align-items: center; gap: 14px clamp(32px, 4vw, 64px); padding-left: clamp(24px, 3vw, 44px); border-left: 1px solid rgba(255, 255, 255, .16); }
  .co-foot .contact b { font-size: clamp(19px, 1.7vw, 25px); }
  .co-foot .ft-copy { margin-top: 16px; }
}
/* (a laptop's screen, up to 900 px tall: "The company" over the cities is kept for a screen reader only, the bar already says it, so that the cities and
   the footer stand on one screen) */
@media (min-width: 821px) and (max-height: 900px) {
  .sec-company .section-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .sec-company .branches-inner { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .co-foot .contact b, .co-foot .contact small { transition: none; } }
/* a phone: under the Ledger, at the screen's foot, the two contacts side by side; the languages and the legal line in small type */
@media (max-width: 820px) {
  /* (out to the screen's edges: the page's own side padding, 16 px, or the Ledger's, 20 px, once it is built) */
  .co-foot { flex: none; margin: 0 -16px; } #company.ledger .co-foot { margin: 0 -20px; }
  .co-px { height: 16px; }
  .co-foot-in { padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
  /* (the contacts first, over the languages: a finger's first want) */
  .co-foot .ft-row { display: flex; flex-direction: column; }
  .co-foot .contacts { order: -1; gap: 10px 32px; padding: 6px 0 4px; }
  .co-foot .contact small { font-size: 11.5px; } .co-foot .contact b { font-size: 18px; padding-bottom: 5px; }
  /* (a language link and a legal link are 28 px tall or more to the finger, by their padding: the type stays small) */
  .co-foot .langs { gap: 0 .7rem; margin-top: 10px; padding-top: 2px; font-size: 12px; line-height: 1.55; }
  .co-foot .langs a { display: inline-block; padding: 8px 0 0; }
  .co-foot .ft-legal { gap: 0 .9rem; margin-top: 4px; font-size: 11.5px; line-height: 1.35; }
  .co-foot .ft-legal a { display: inline-block; padding: 7px 0; }
  .co-foot .ft-copy { margin: 0; font-size: 11.5px; line-height: 1.35; color: rgba(255, 255, 255, .72); }
}
