/* The Ledger House */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/CormorantGaramond-500.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url('../fonts/CormorantGaramond-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/Jost-400.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/Jost-500.woff2') format('woff2'); }

:root {
  --ink: #0A0A0A; --ivory: #FEFCF8; --graphite: #2B2926; --stone: #625C54; --rule: #D9D1C5;
  --aviso: #C9A227;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --gut: clamp(20px, 5.5vw, 80px);
  --ease: cubic-bezier(.2, .6, .2, 1);
}

.uc--dental      { --bg: var(--ivory); --fg: var(--ink);   --fg-2: var(--graphite); --mute: var(--stone);  --line: var(--rule); }
.uc--bookkeeping { --bg: var(--ink);   --fg: var(--ivory); --fg-2: #E9E4DA;         --mute: #A59E93;       --line: rgba(254, 252, 248, .22); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.uc-band { position: relative; z-index: 3; background: var(--ink); }
.uc-band__stripe { height: 10px; background: var(--ink) url('../img/hazard.svg') repeat-x 0 0 / 35px 10px; }
.uc-band__stripe + .uc-band__label + .uc-band__stripe { background-position: 17px 0; }
.uc-band__label { margin: 0; height: 42px; display: flex; align-items: center; justify-content: center; gap: 18px;
  font: 500 14px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--aviso); }
.uc-band__label > span[data-es] { padding-left: .34em; }

.uc-page { position: relative; min-height: calc(100svh - 62px); display: grid; grid-template-rows: auto 1fr auto; isolation: isolate; }

.uc-head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px var(--gut) 0; }
.uc-brand { margin: 0; display: flex; align-items: center; gap: 14px; font: 500 12px/1 var(--sans);
  letter-spacing: .24em; text-transform: uppercase; }
.uc-mark { width: auto; height: 44px; display: block; }
.uc--bookkeeping .uc-mark { filter: invert(1) brightness(.99) sepia(.06); }
.uc-beacon { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--aviso); flex: none; }
.uc-beacon::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--aviso);
  opacity: 0; animation: uc-beacon 2.8s var(--ease) infinite; }
@keyframes uc-beacon { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

.uc-lang { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--bg); color: var(--fg); cursor: pointer;
  font: 500 13px/1 var(--sans); letter-spacing: .16em; transition: border-color .25s var(--ease); }
.uc-lang:hover { border-color: var(--fg); }
.uc-lang__globe { display: block; flex: none; }
.uc-lang__code { padding-left: .16em; }

.uc-main { position: static; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.uc-art { position: absolute; z-index: -1; inset: 0; overflow: hidden; background: var(--bg); }
.uc-art picture, .uc-art img { display: block; width: 100%; height: 100%; }
.uc-art img { color: transparent; object-fit: cover; object-position: 78% 50%; transform-origin: 78% 55%;
  animation: uc-push 16s var(--ease) both; }
@keyframes uc-push { from { transform: scale(1); } to { transform: scale(1.04); } }

.uc-ink { position: absolute; inset: 0; z-index: 1; display: block; }
.uc-ink img { object-fit: cover; object-position: 78% 50%; transform-origin: 78% 55%; animation: uc-push 16s var(--ease) both; }
.uc-ink { clip-path: inset(0 0 0 0); }
.uc-ink.is-writing { animation: uc-write 5.5s cubic-bezier(.45, .05, .35, 1) .2s both; }
@keyframes uc-write { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
.uc-ink:not(.is-ready) { visibility: hidden; }

.uc-text { position: relative; z-index: 1; padding: clamp(20px, 4vh, 88px) var(--gut) clamp(32px, 6vh, 110px); max-width: calc(48% + var(--gut)); }
.uc-eyebrow { margin: 0 0 28px; display: flex; align-items: center; gap: 14px; font: 500 12px/1.3 var(--sans);
  letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.uc-eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }
.uc-h1 { margin: 0; max-width: 9.6em; font: 500 clamp(46px, min(6.4vw, 9vh), 104px)/.98 var(--serif); letter-spacing: -.012em;
  text-wrap: balance; color: var(--fg); }
.uc-h1 em { font-style: italic; }

.uc-count { margin-top: clamp(28px, 4.4vh, 64px); max-width: 600px; }
.uc-cells { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0 18px; }
.uc-cells[hidden] { display: none; }
.uc-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.uc-cell:first-child { border-left: 0; padding-left: 0; }
.uc-num { position: relative; display: block; overflow: hidden; height: 1em; font: 500 clamp(40px, min(5.2vw, 6.4vh), 80px)/1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; color: var(--fg); }
.uc-num .uc-digit { display: inline-block; }
.uc-num .uc-digit.is-in { animation: uc-digit .42s var(--ease) both; }
@keyframes uc-digit { from { transform: translateY(.55em); opacity: 0; } to { transform: none; opacity: 1; } }
.uc-lbl { font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.uc-when-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.uc-when { margin: 0; font: italic 500 clamp(19px, 1.5vw, 22px)/1.35 var(--serif); color: var(--fg-2); }
.uc-count--done .uc-when { font-size: clamp(26px, 2.2vw, 34px); color: var(--fg); }

.uc-scope { margin: 22px 0 0; max-width: 620px; font: 500 12px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

.uc-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin: 0 var(--gut); padding: 8px 0 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.uc-foot > p:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; min-height: 44px; }
.uc-tel { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; color: var(--fg-2); }
.uc-tel:hover { color: var(--fg); }
.uc-foot p { margin: 0; }
.uc-foot__credit a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.uc-foot__credit a:hover { color: var(--fg); }

@media (min-width: 900px) {
  .uc-head { padding-top: 24px; }
}

@media (min-width: 1024px) and (max-height: 940px) {
  .uc-h1 { font-size: min(76px, 8.4vh); }
  .uc-count { margin-top: clamp(24px, 3.4vh, 40px); }
  .uc-text { padding-bottom: clamp(24px, 4vh, 48px); }
}

@media (min-width: 900px) and (max-aspect-ratio: 4/3) {
  .uc-art { left: 40%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
  .uc-art img, .uc-ink img { object-position: 85% 50%; }
}

@media (max-width: 899px) {
  .uc-head { padding-top: 14px; }
  .uc-band__label { height: 38px; font-size: 14px; letter-spacing: .26em; gap: 12px; }
  .uc-band__label > span[data-es] { padding-left: .26em; }
  .uc-page { min-height: calc(100svh - 58px); }
  .uc-mark { height: 34px; }
  .uc-brand { font-size: 11px; gap: 10px; letter-spacing: .2em; }
  .uc-main { display: block; }
  .uc-art { position: relative; z-index: 0; inset: auto; width: 100%; aspect-ratio: 4 / 5; max-height: min(34svh, 300px);
    margin-top: 6px; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }

  .uc-art img, .uc-ink img { object-position: 50% 80%; transform-origin: 50% 60%; }
  .uc-text { max-width: none; padding-top: 0; margin-top: -9%; padding-bottom: 44px; }
  .uc-eyebrow { margin-bottom: 18px; }
  .uc-h1 { font-size: clamp(40px, 11.4vw, 60px); max-width: 9em; }
  .uc-count { margin-top: 22px; }
  .uc-scope { margin-top: 14px; }
  .uc-cells { padding: 16px 0 14px; }
  .uc-cell { padding: 0 10px; gap: 8px; }
  .uc-num { font-size: clamp(34px, 10vw, 44px); }
  .uc-lbl { font-size: 12px; letter-spacing: .12em; }
    .uc-when { font-size: 18px; }
  .uc-scope { font-size: 14px; letter-spacing: .1em; }
  .uc-foot { flex-direction: column; gap: 0; font-size: 14px; }
  .uc-foot > p:first-child { min-height: 0; padding-top: 10px; gap: 0 14px; }
}

@media (max-width: 899px) and (orientation: portrait) {
  .uc-art { aspect-ratio: auto; height: min(52svh, 470px); max-height: none; margin-top: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, #000 84%, transparent 100%); }
  .uc-art img, .uc-ink img { object-position: 50% 74%; transform-origin: 50% 60%; }
  .uc-text { margin-top: -2%; }
  .uc-h1 { font-size: clamp(30px, 8.4vw, 40px); max-width: 11em; }
  .uc-num { font-size: clamp(28px, 8vw, 36px); }
  .uc-eyebrow { margin-bottom: 12px; }
}
@media (max-width: 899px) and (orientation: landscape) {
  .uc-head { padding-top: 10px; }
  .uc-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .uc-art { order: 2; position: relative; inset: auto; align-self: center; height: auto; aspect-ratio: 16 / 10; max-height: none; margin: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
  .uc-art img, .uc-ink img { object-position: 78% 50%; transform-origin: 78% 55%; }
  .uc-text { order: 1; margin-top: 0; padding: 8px 12px 14px var(--gut); }
  .uc-eyebrow { margin-bottom: 10px; }
  .uc-h1 { font-size: clamp(24px, 3.6vw, 32px); max-width: 12em; }
  .uc-count { margin-top: 12px; }
  .uc-cells { padding: 10px 0 8px; }
  .uc-cell { gap: 6px; }
  .uc-num { font-size: clamp(22px, 3.4vw, 30px); }
  .uc-when-row { margin-top: 8px; }
  .uc-when { font-size: 15px; }
  .uc-scope { margin-top: 8px; font-size: 14px; letter-spacing: .06em; }
  .uc-foot { flex-direction: row; }
}
@media (max-width: 370px) {
    .uc-brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .uc-cell { padding: 0 7px; }
  .uc-lbl { letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
  .uc-art img, .uc-ink img, .uc-num .uc-digit.is-in { animation: none !important; }
  .uc-beacon::after { animation: none; opacity: .5; transform: scale(1.2); }
  .uc-lang { transition: none; }
  .uc-ink { display: none !important; }
}
@media print { .uc-band__stripe, .uc-art, .uc-lang { display: none; } body { background: #fff; color: #000; } }
