:root {
  --ink: #0b0b09;
  --ink-soft: #23231d;
  --paper: #f4f1e8;
  --white: #fffdf8;
  --line: #d6d0c1;
  --muted: #706d64;
  --gold: #c99a20;
  --gold-bright: #e4b72f;
  --green: #526c58;
  --red: #9a4f46;
  --amber: #9a6b2f;
  --radius: 10px;
  --shadow: 0 22px 55px rgba(20, 18, 12, 0.1);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper) url("./assets/akari-paper-light.png") center top / cover fixed; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.public-site { min-height: 100vh; color: var(--ink); }
.public-header { min-height: 118px; padding: 0 clamp(28px, 4.2vw, 70px); display: flex; align-items: center; justify-content: space-between; }
.public-wordmark { color: var(--ink); text-decoration: none; font: 500 clamp(23px, 2.1vw, 31px) Georgia, "Times New Roman", serif; letter-spacing: -.015em; }
.public-login { border: 0; background: transparent; color: var(--ink); padding: 12px 0 12px 28px; font: 500 16px Georgia, serif; }
.public-login::after { content: ""; display: block; width: 0; height: 1px; margin-top: 4px; margin-left: auto; background: var(--gold); transition: width .2s ease; }
.public-login:hover::after { width: 100%; }
.public-main { width: 100%; }
.public-hero { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 1.02fr); align-items: stretch; }
.public-hero-image { min-height: 520px; position: relative; overflow: hidden; background: #090908 url("./assets/akari-hero-dark.png") center / cover; box-shadow: 20px 25px 60px rgba(18,16,10,.13); }
.public-hero-image video { width: 100%; height: 100%; min-height: 520px; display: block; object-fit: cover; object-position: center; background: transparent; }
.video-frame { position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(218,172,45,.16); box-shadow: inset 0 0 80px rgba(0,0,0,.3); }
.public-hero-copy { padding: clamp(58px, 8vw, 120px) clamp(40px, 7vw, 110px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.public-hero-copy h1 { max-width: 650px; font-size: clamp(52px, 6vw, 88px); line-height: .98; letter-spacing: -.045em; }
.public-hero-copy > p:not(.eyebrow) { max-width: 570px; margin: clamp(42px, 7vw, 90px) 0 0; font: 600 clamp(16px, 1.5vw, 20px)/1.75 Georgia, serif; }
.public-portal-link { margin-top: 34px; padding: 13px 0; border: 0; border-bottom: 1px solid rgba(133,98,10,.4); background: transparent; color: #765707; font-weight: 750; }
.public-portal-link span { display: inline-block; margin-left: 16px; transition: transform .18s ease; }
.public-portal-link:hover span { transform: translateX(5px); }
.public-statement { min-height: 920px; position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; padding: 70px 24px; text-align: center; color: white; background: #070706 url("./assets/akari-hero-dark.png") center / cover; }
.public-statement::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at center, transparent 10%, rgba(0,0,0,.26) 75%), linear-gradient(115deg, rgba(0,0,0,.08), rgba(225,178,42,.08), rgba(0,0,0,.15)); }
.public-statement > div:not(.mirror-shard) { width: min(900px, 90vw); position: relative; z-index: 3; }
.mirror-shard { position: absolute; inset: -2%; z-index: 1; pointer-events: none; background: url("./assets/akari-hero-dark.png") center / cover; filter: contrast(1.07) saturate(1.06); opacity: .8; }
.shard-one { clip-path: polygon(0 0, 39% 0, 22% 100%, 0 100%); transform: translate(-1.1%, -.4%) scale(1.025); animation: shard-one 11s ease-in-out infinite alternate; }
.shard-two { clip-path: polygon(37% 0, 72% 0, 62% 100%, 20% 100%); transform: translate(.8%, .5%) scale(1.018); animation: shard-two 13s ease-in-out infinite alternate; }
.shard-three { clip-path: polygon(70% 0, 100% 0, 100% 100%, 60% 100%); transform: translate(1.15%, -.2%) scale(1.022); animation: shard-three 12s ease-in-out infinite alternate; }
@keyframes shard-one { to { transform: translate(-.35%, .25%) scale(1.018); } }
@keyframes shard-two { to { transform: translate(.15%, -.3%) scale(1.024); } }
@keyframes shard-three { to { transform: translate(.4%, .3%) scale(1.016); } }
.public-statement .eyebrow { color: #f1c84d; }
.public-statement h2 { font-size: clamp(45px, 6vw, 82px); line-height: 1.08; text-wrap: balance; text-shadow: 0 4px 20px rgba(0,0,0,.42); }
.public-statement a { display: inline-block; margin-top: 55px; padding: 17px 25px; color: #171207; background: linear-gradient(135deg, #efc54a, #c38f13); border: 1px solid #f2cb55; text-decoration: none; font: 700 15px Georgia, serif; box-shadow: 0 15px 36px rgba(0,0,0,.22); }
.public-intent { padding: clamp(90px, 12vw, 170px) clamp(28px, 8vw, 140px); display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(45px, 10vw, 150px); border-bottom: 1px solid var(--line); }
.public-kicker { margin: 0; font: 500 clamp(34px, 4vw, 58px)/1.04 Georgia, serif; letter-spacing: -.03em; }
.public-intent-copy { max-width: 740px; }
.public-intent-copy p { margin: 0 0 28px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.8; color: #514f48; }
.public-footer { min-height: 190px; padding: 45px clamp(28px, 5vw, 80px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; background: linear-gradient(rgba(5,5,4,.92), rgba(5,5,4,.96)), url("./assets/akari-paper-dark.png") center / cover; color: white; }
.public-footer img { width: 80px; height: 48px; object-fit: contain; }
.public-footer span { font: 500 24px Georgia, serif; }
.public-footer button { border: 1px solid rgba(220,173,45,.55); border-radius: 0; padding: 13px 18px; color: white; background: transparent; }
.public-footer button:hover { background: rgba(220,173,45,.12); }

.app-shell { display: grid; grid-template-columns: 278px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 32px 24px; background: linear-gradient(rgba(5,5,4,.9), rgba(5,5,4,.96)), url("./assets/akari-paper-dark.png") center / cover; color: #f8f3e7; display: flex; flex-direction: column; z-index: 10; border-right: 1px solid rgba(222,177,45,.28); box-shadow: 18px 0 55px rgba(0,0,0,.12); }
.sidebar::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); }
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; margin: 0 6px 48px; }
.brand-mark { width: 58px; height: 34px; object-fit: contain; filter: saturate(.9) contrast(1.08); }
.brand strong { display: block; font: 500 20px Georgia, serif; letter-spacing: .015em; white-space: nowrap; }
.brand small { display: block; margin-top: 5px; color: #aaa79d; font-size: 9px; text-transform: uppercase; letter-spacing: .24em; }
.sidebar nav { display: grid; gap: 8px; }
.nav-item { width: 100%; border: 0; border-left: 1px solid transparent; border-radius: 0 7px 7px 0; padding: 13px 14px; display: flex; gap: 12px; align-items: center; color: #aaa99e; background: transparent; text-align: left; transition: .18s ease; }
.nav-item:hover, .nav-item.active { color: white; background: linear-gradient(90deg, rgba(211,164,36,.14), rgba(255,255,255,.035)); border-left-color: var(--gold-bright); }
.nav-item span { color: var(--gold); width: 18px; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.secure-note { display: flex; gap: 9px; align-items: center; color: #bfc1b8; font-size: 12px; margin: 0 10px 15px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #83a789; box-shadow: 0 0 0 4px rgba(131,167,137,.12); }
.view-switch { width: 100%; padding: 13px 14px; border: 1px solid rgba(211,164,36,.42); border-radius: 7px; background: rgba(0,0,0,.22); color: white; display: flex; justify-content: space-between; }
.view-switch:hover { background: rgba(211,164,36,.12); }
.sidebar-bottom p { color: #77776f; font-size: 10px; margin: 18px 8px 0; }

main { min-width: 0; padding: 0 5vw 70px; background: rgba(248,246,239,.62); backdrop-filter: blur(1px); }
.topbar { min-height: 122px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.eyebrow { margin: 0 0 7px; color: #a67908; font-size: 10px; letter-spacing: .22em; font-weight: 800; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; margin: 0; }
h1 { font-size: clamp(25px, 3vw, 38px); }
h2 { font-size: 27px; }
.private-label { color: var(--muted); font-family: Georgia, serif; font-size: 13px; font-style: italic; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: white; font-size: 12px; }
.mobile-menu { position: relative; border: 1px solid var(--line); background: rgba(255,255,255,.42); width: 40px; height: 40px; border-radius: 50%; }
.mobile-menu { display: none; }

.hero-row { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 28px; }
.lede { color: var(--muted); margin: 0; max-width: 560px; font-family: Georgia, serif; font-size: 18px; line-height: 1.55; }
.primary-button, .secondary-button { border-radius: 9px; padding: 12px 17px; font-weight: 650; border: 1px solid var(--ink); }
.primary-button { background: linear-gradient(135deg, var(--gold-bright), #bf8912); color: #17130a; border-color: #b48210; box-shadow: 0 8px 24px rgba(180,128,11,.16); }
.primary-button:hover { background: linear-gradient(135deg, #edc444, #ca9519); }
.secondary-button { background: transparent; color: var(--ink); }

.metric-grid { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.metric-card { min-height: 158px; padding: 24px; border-radius: var(--radius); background: rgba(255,253,248,.8); border: 1px solid var(--line); border-top-color: rgba(197,148,26,.58); box-shadow: 0 8px 25px rgba(26,28,21,.045); position: relative; overflow: hidden; }
.metric-card.dark { background: linear-gradient(rgba(5,5,4,.72), rgba(5,5,4,.86)), url("./assets/akari-paper-dark.png") center / cover; color: white; border-color: #222018; }
.metric-card.dark::after { content: ""; position: absolute; inset: auto -25px -65px auto; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(185,154,94,.3); box-shadow: 0 0 0 24px rgba(185,154,94,.04); }
.metric-card p { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.metric-card.dark p { color: #bbbcb4; }
.metric-card strong { display: block; font-family: Georgia, serif; font-size: clamp(25px, 2.4vw, 34px); font-weight: 500; margin-bottom: 10px; }
.metric-card span { color: var(--muted); font-size: 11px; }
.metric-card .positive { color: var(--green); }
.metric-card .warning { color: var(--red); }
.metric-card.dark span { color: #d4d0c5; }
.metric-line { width: 75px; height: 2px; background: var(--gold); margin-top: 18px; }

.panel { background: rgba(255,253,248,.88); border: 1px solid var(--line); border-top: 2px solid rgba(198,151,29,.68); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-header { padding: 24px 26px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.filters { display: flex; gap: 10px; }
.search { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; background: white; }
.search input { border: 0; outline: 0; width: 170px; padding: 10px 0; background: transparent; }
select { border: 1px solid var(--line); border-radius: 8px; padding: 10px 34px 10px 11px; background: white; color: var(--ink); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th { padding: 13px 26px; background: rgba(232,226,212,.78); color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; text-align: left; }
td { padding: 18px 26px; border-top: 1px solid #e7e2d7; font-size: 13px; }
tbody tr { transition: background .15s; cursor: pointer; }
tbody tr:hover { background: rgba(185,154,94,.07); }
.invoice-number { font-weight: 750; }
.client-cell { display: flex; align-items: center; gap: 10px; }
.client-initial { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e4dfd2; color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.amount { text-align: right; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-paid { color: var(--green); background: #e4ece4; }
.status-overdue { color: var(--red); background: #f3e4e1; }
.status-sent { color: #556679; background: #e4e9ee; }
.status-draft { color: var(--amber); background: #f1eadc; }
.payment-state { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.payment-incoming { color: #466352; background: #e0ebe3; }
.payment-awaiting { color: #735f29; background: #f3ead0; }
.payment-attention { color: var(--red); background: #f3e4e1; }
.payment-settled { color: var(--green); background: #e4ece4; }
.payment-not-requested { color: #777; background: #eceae4; }
.empty-state { padding: 34px; text-align: center; color: var(--muted); }
.lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.compact { min-height: 270px; }
.activity-list { padding: 0 26px 18px; }
.activity { display: grid; grid-template-columns: 33px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid #e7e2d7; }
.activity-icon { width: 30px; height: 30px; border-radius: 50%; background: #e3e8df; color: var(--green); display: grid; place-items: center; }
.activity strong, .activity small { display: block; }
.activity strong { font-size: 12px; margin-bottom: 3px; }
.activity small, .activity time { color: var(--muted); font-size: 10px; }
.readiness { padding-bottom: 12px; }
.readiness-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 14px 26px; border-top: 1px solid #e7e2d7; }
.connection-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; }
.connection-icon.ready { color: var(--green); background: #e3eae3; }
.connection-icon.pending { color: var(--amber); background: #f0e9da; }
.readiness-row strong, .readiness-row small { display: block; }
.readiness-row strong { font-size: 12px; }
.readiness-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.pill { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; padding: 5px 7px; border-radius: 99px; }
.pill.ready { background: #e3eae3; color: var(--green); }
.pill.pending { background: #f0e9da; color: var(--amber); }

.client-welcome { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: 52px 42px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(4,4,3,.92), rgba(4,4,3,.6)), url("./assets/akari-hero-dark.png") center / cover; color: white; margin-bottom: 20px; overflow: hidden; position: relative; border: 1px solid rgba(211,164,36,.34); box-shadow: var(--shadow); }
.client-welcome::after { content: ""; position: absolute; width: 330px; height: 330px; right: -190px; top: -160px; border: 1px solid rgba(185,154,94,.25); transform: rotate(45deg); }
.client-welcome h2 { font-size: clamp(31px, 4vw, 48px); }
.client-welcome p:not(.eyebrow) { color: #b9bab3; max-width: 520px; line-height: 1.6; }
.client-balance { text-align: right; z-index: 1; }
.client-balance small, .client-balance span { display: block; color: #b9bab3; }
.client-balance strong { display: block; font: 500 clamp(30px, 4vw, 44px) Georgia, serif; margin: 8px 0; }
.client-secure { color: var(--green); font-size: 11px; }
.invoice-cards { padding: 0 26px 25px; display: grid; gap: 12px; }
.invoice-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; background: white; }
.invoice-card h3 { margin: 0 0 5px; font-size: 14px; }
.invoice-card p { color: var(--muted); margin: 0; font-size: 11px; }
.invoice-card .card-amount { font: 500 20px Georgia, serif; }
.card-actions { display: flex; gap: 8px; }
.small-button { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 9px 11px; font-size: 11px; }
.small-button.pay { color: white; background: var(--ink); border-color: var(--ink); }
.client-help { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px 28px; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.client-help p { color: var(--muted); margin: 5px 0 0; font-size: 12px; }

dialog { border: 1px solid rgba(198,151,29,.48); border-radius: 10px; padding: 0; color: var(--ink); background: var(--white) url("./assets/akari-paper-light.png") center / cover; box-shadow: 0 30px 90px rgba(0,0,0,.34); }
dialog::backdrop { background: rgba(14,15,12,.62); backdrop-filter: blur(4px); }
.invoice-dialog { width: min(760px, calc(100vw - 30px)); }
.create-dialog { width: min(900px, calc(100vw - 30px)); }
.dialog-shell { position: relative; padding: 42px; }
.dialog-close { position: absolute; right: 17px; top: 15px; border: 0; background: transparent; font-size: 27px; color: var(--muted); }
.document-head { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.document-brand { display: flex; align-items: center; gap: 12px; font: 500 31px Georgia, serif; }
.document-brand img { width: 62px; height: 34px; object-fit: contain; }
.document-meta { text-align: right; }
.document-meta strong, .document-meta span { display: block; }
.document-meta span { color: var(--muted); font-size: 11px; margin-top: 4px; }
.billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 25px 0; }
.billing-grid small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 7px; }
.billing-grid p { margin: 3px 0; font-size: 13px; }
.line-item { display: grid; grid-template-columns: 1fr auto; padding: 15px 0; border-top: 1px solid var(--line); }
.invoice-total { display: flex; justify-content: flex-end; gap: 30px; padding: 20px 0; border-top: 2px solid var(--ink); font: 500 21px Georgia, serif; }
.document-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin: 25px 0; }
.form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 650; }
.form-grid input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.form-grid select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.form-grid textarea { width: 100%; min-height: 100px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); resize: vertical; font: inherit; }
.form-wide { grid-column: 1 / -1; }
.document-items-field { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f6; }
.items-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; }
.items-heading div { display: grid; gap: 4px; }
.items-heading span { color: var(--ink); font-size: 12px; font-weight: 750; }
.items-heading small { color: var(--muted); font-size: 10px; font-weight: 500; }
.items-heading strong { color: var(--ink); font-size: 16px; white-space: nowrap; }
.items-editor { display: grid; gap: 9px; }
.item-editor-row { display: grid; grid-template-columns: minmax(180px, 1.6fr) minmax(100px, .7fr) minmax(110px, .75fr) minmax(88px, .55fr) minmax(125px, .8fr) 38px; gap: 9px; align-items: end; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.item-editor-row label { margin: 0; }
.item-editor-row input, .item-editor-row select { min-width: 0; }
.remove-line-button, .add-line-button { border: 1px solid var(--line); background: white; color: var(--ink); cursor: pointer; }
.remove-line-button { width: 38px; height: 40px; border-radius: 8px; font-size: 19px; }
.add-line-button { justify-self: start; padding: 10px 14px; border-radius: 999px; font: inherit; font-size: 11px; font-weight: 700; }
.negative-line strong { color: #9e3028; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.proposal-lede { margin-top: 12px; }
.proposal-action { white-space: nowrap; }
.row-actions { display: flex; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.edit-button { color: var(--ink); border-color: rgba(201, 154, 32, .55); background: #fffdf7; }
.proposal-pricing { display: grid; gap: 3px; white-space: nowrap; }
.proposal-pricing small { color: var(--muted); font-size: 10px; }
.proposal-price-block { border-top: 1px solid var(--line); margin-top: 26px; }
.proposal-status-invoiced { color: #4d5c78; background: #e5e8ef; }
.settings-panel { padding: 30px; }
.settings-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.settings-heading h2 { margin: 4px 0 0; }
.settings-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: right; }
.payment-heading { margin-top: 34px; }
.settings-check { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; font-weight: 650; }
.settings-check input { width: 17px; height: 17px; accent-color: var(--gold); }
.settings-note { margin: 10px 0 24px; color: var(--muted); font-size: 12px; }
.payment-details { margin: 18px 0 8px; padding: 18px; border: 1px solid rgba(201,154,32,.42); border-radius: 8px; background: rgba(248,244,232,.72); }
.payment-details small { display: block; margin-bottom: 10px; color: #917733; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.payment-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 24px; }
.payment-details p { margin: 0; font-size: 12px; }
.payment-details strong { margin-right: 5px; }
.payment-reference { grid-column: 1 / -1; padding-top: 6px; border-top: 1px solid rgba(201,154,32,.22); }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 13px 17px; border-radius: 9px; background: var(--ink); color: white; box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .22s ease; z-index: 50; }
.toast.show { opacity: 1; transform: translateY(0); }

.login-dialog { width: min(470px, calc(100vw - 28px)); }
.login-dialog .dialog-shell { padding: 46px; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; font: 500 20px Georgia, serif; }
.login-brand img { width: 56px; height: 32px; object-fit: contain; }
.login-intro { color: var(--muted); line-height: 1.65; margin: 12px 0 28px; }
.login-field { display: grid; gap: 8px; margin-top: 16px; color: #555148; font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.login-field input { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: rgba(255,255,255,.82); outline: none; }
.login-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,154,32,.12); }
.login-submit { width: 100%; margin-top: 24px; padding: 14px 18px; }
.prototype-note { margin: 17px 0 0; color: #89857b; font-size: 10px; line-height: 1.55; text-align: center; }
.text-button { border: 0; background: transparent; color: #746b58; font: inherit; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media print {
  body > *:not(dialog[open]) { display: none !important; }
  dialog[open] { position: static; width: 100%; box-shadow: none; }
  dialog::backdrop, .dialog-close, .document-actions { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mirror-shard { animation: none; }
}

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .settings-heading { align-items: start; flex-direction: column; }
  .settings-heading > p { text-align: left; }
  .payment-details-grid { grid-template-columns: 1fr; }
  .public-header { min-height: 86px; }
  .public-hero { grid-template-columns: 1fr; }
  .public-hero-image, .public-hero-image video { min-height: 56vw; }
  .public-hero-image { order: 2; }
  .public-hero-copy { padding: 55px 24px 62px; }
  .public-hero-copy h1 { font-size: clamp(45px, 14vw, 68px); }
  .public-hero-copy > p:not(.eyebrow) { margin-top: 34px; }
  .public-statement { min-height: 690px; }
  .public-intent { grid-template-columns: 1fr; padding: 80px 24px; }
  .public-footer { grid-template-columns: auto 1fr; }
  .public-footer button { grid-column: 1 / -1; }
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; transform: translateX(-100%); transition: transform .2s; box-shadow: 18px 0 50px rgba(0,0,0,.25); }
  .sidebar.open { transform: translateX(0); }
  main { padding: 0 18px 45px; }
  .topbar { min-height: 95px; margin-bottom: 28px; }
  .mobile-menu { display: inline-grid; place-items: center; margin-right: 12px; flex: 0 0 auto; }
  .topbar > div:nth-child(2) { margin-right: auto; }
  .topbar-actions .icon-button { display: none; }
  .hero-row { align-items: stretch; flex-direction: column; }
  .primary-button { align-self: flex-start; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 135px; }
  .panel-header { align-items: flex-start; flex-direction: column; }
  .filters { width: 100%; flex-direction: column; }
  .search input, .search { width: 100%; }
  .filters select { width: 100%; }
  .client-welcome { grid-template-columns: 1fr; padding: 28px; }
  .client-balance { text-align: left; }
  .invoice-card { grid-template-columns: 1fr; }
  .card-actions { justify-content: flex-start; }
  .client-help { align-items: flex-start; flex-direction: column; }
  .dialog-shell { padding: 34px 22px; }
  .form-grid, .billing-grid { grid-template-columns: 1fr; }
  .item-editor-row { grid-template-columns: 1fr 1fr; }
  .item-editor-row label:first-child { grid-column: 1 / -1; }
  .document-head { flex-direction: column; }
  .document-meta { text-align: left; }
  .login-dialog .dialog-shell { padding: 40px 23px 30px; }
}

/* Exact public-site recreation measured from the live Squarespace pages. */
@font-face {
  font-family: "Akari Cormorant";
  src: url("https://file.squarespace-cdn.com/content/v2/namespaces/fonts/libraries/sqsp/assets/4f3c9c63-637c-426b-ad69-48b3338fda09/latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Akari Garamond";
  src: url("https://use.typekit.net/af/a4e080/00000000000000007735d91e/31/l?subset_id=2&fvd=n7&v=3") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
.sq-clone { position: relative; width: 100%; min-width: 320px; overflow: hidden; color: #000; background: #f7f6f0; font-family: "Akari Garamond", Georgia, serif; }
.sq-clone button, .sq-clone input, .sq-clone select, .sq-clone textarea { font-family: inherit; }
.sq-header { position: absolute; inset: 0 0 auto; z-index: 20; height: 120.7px; display: flex; align-items: flex-start; justify-content: space-between; padding: 40.8px 4.048%; background: transparent; }
.sq-header a { color: #000; text-decoration: none; font-family: "Akari Cormorant", "Cormorant Garamond", Georgia, serif; font-size: 31.36px; font-weight: 500; line-height: 1.2; }
.sq-header button { margin: 2.4px 0 0; padding: 0; border: 0; color: #000; background: transparent; font-size: 19.072px; font-weight: 700; line-height: 34.3296px; }
.sq-home { width: 100%; padding: 0; background: transparent; backdrop-filter: none; }
.sq-home section { position: relative; width: 100%; overflow: hidden; }
.sq-section-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sq-hero { z-index: 3; height: 659.0625px; clip-path: polygon(0 0, 100% 0, 100% 88.5%, 87.5% 100%, 75% 88.5%, 62.5% 100%, 50% 88.5%, 37.5% 100%, 25% 88.5%, 12.5% 100%, 0 88.5%); }
.sq-video { position: absolute; left: 0; top: 157px; width: 49.567%; height: 352.6375px; background: #111; }
.sq-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sq-hero h1 { position: absolute; left: 54.302%; top: 120.6875px; width: 37.786%; margin: 0; color: #000; font-family: "Akari Cormorant", "Cormorant Garamond", Georgia, serif; font-size: 62.08px; font-weight: 500; line-height: 1.2319; letter-spacing: 0; }
.sq-hero > p { position: absolute; left: 54.302%; top: 411.5375px; width: 33.921%; margin: 0; color: #000; font-size: 19.072px; font-weight: 700; line-height: 34.3296px; }

/* Scroll-scrubbed material folds. ?fold=0 is the accessible no-motion escape hatch. */
.material-fold[hidden] { display: none; }
.sq-clone.fold-preview { overflow: hidden; }
.fold-preview .sq-home { position: relative; }
.fold-preview .material-fold {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 310px;
  pointer-events: none;
}
.fold-preview .material-fold__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.fold-preview .material-fold__mesh {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.fold-preview .material-fold__mesh polygon {
  stroke: rgba(235,197,97,.62);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.28));
}
.fold-preview .material-fold__mesh polygon[data-fold-converted] {
  stroke: none;
  filter: none;
}
.fold-preview .material-fold__mesh polyline {
  fill: none;
  stroke: #e0b84f;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(255,232,160,.4));
}

/* When the lower fold lands, the geometry hands its paper surface to the
   section itself. That removes the artificial "end of animation" seam. */
.fold-preview .sq-vision::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--vision-material-progress, 0);
  background: #f7f6f0 url("./assets/akari-paper-light.png") center / cover no-repeat;
}
.fold-preview .sq-vision h2,
.fold-preview .sq-vision a {
  z-index: 1;
  opacity: calc(1 - var(--vision-content-fade, 0));
}

.sq-vision { z-index: 2; height: 1052.225px; margin-top: -76.8px; color: #fff; clip-path: polygon(0 0, 100% 0, 100% 92.8%, 87.5% 100%, 75% 92.8%, 62.5% 100%, 50% 92.8%, 37.5% 100%, 25% 92.8%, 12.5% 100%, 0 92.8%); }
.sq-vision h2 { position: absolute; left: 19.509%; top: 395.15px; width: 60.982%; margin: 0; color: #fff; text-align: center; font-family: "Akari Cormorant", "Cormorant Garamond", Georgia, serif; font-size: 62.08px; font-weight: 500; line-height: 1.2319; letter-spacing: 0; }
.sq-vision a { position: absolute; left: 41.415%; top: 733.3375px; width: 17.166%; height: 57.6px; display: grid; place-items: center; color: #000; background: #e7b82e; text-decoration: none; font-size: 16px; font-weight: 700; letter-spacing: .32px; }
.sq-about { z-index: 1; height: 634.1875px; margin-top: -76.8px; }
.sq-about > div { position: absolute; left: 15.645%; top: 161.275px; width: 68.706%; }
.sq-about p { margin: 0 0 16px; color: #000; font-size: 19.072px; font-weight: 700; line-height: 34.3296px; }

.sq-inquiry { min-height: 1985.325px; }
.sq-inquiry > main { position: relative; min-height: 1985.325px; padding: 0; background: transparent; backdrop-filter: none; }
.sq-inquiry-intro { position: absolute; left: 23.375%; top: 205.1625px; width: 53.245%; text-align: center; }
.sq-inquiry-intro h2 { margin: 0; font-family: "Akari Cormorant", "Cormorant Garamond", Georgia, serif; font-size: 43.648px; font-weight: 500; line-height: 56.7075px; }
.sq-inquiry-intro p { margin: 31.9px 0 0; font-size: 19.072px; font-weight: 700; line-height: 34.3296px; }
.sq-inquiry-form { position: absolute; left: 15.645%; top: 472px; width: 68.706%; color: #000; }
.sq-inquiry-form fieldset { margin: 0 0 27px; padding: 0; border: 0; }
.sq-inquiry-form legend, .sq-inquiry-form > label, .sq-name-grid label { color: #000; font-size: 19.072px; font-weight: 700; line-height: 23px; }
.sq-inquiry-form label { display: grid; gap: 8px; margin: 0 0 27px; }
.sq-inquiry-form label span { color: #5d5d5d; font-size: 16px; }
.sq-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.sq-name-grid label { margin-bottom: 0; }
.sq-inquiry-form input, .sq-inquiry-form select, .sq-inquiry-form textarea { width: 100%; border: .8px solid #000; border-radius: 0; color: #000; background: rgba(255,255,255,.72); box-shadow: none; outline: none; }
.sq-inquiry-form input { height: 55.925px; padding: 10px; font-size: 19.072px; }
.sq-inquiry-form select { height: 50.4px; padding: 10px 32px 10px 10px; font-size: 16px; font-weight: 700; }
.sq-inquiry-form textarea { height: 100px; padding: 10px; resize: vertical; font-size: 19.072px; font-weight: 700; }
.sq-inquiry-form input:focus, .sq-inquiry-form select:focus, .sq-inquiry-form textarea:focus { outline: 1px solid #000; outline-offset: 2px; }
.sq-inquiry-form > button { width: 97.425px; height: 57.6px; margin-top: -7px; padding: 0; border: 0; color: #fff; background: #000; font-size: 16px; font-weight: 700; }
.sq-inquiry-email { position: absolute; left: 34.966%; top: 1839.225px; width: 30.052%; margin: 0; text-align: center; font-size: 19.072px; font-weight: 700; line-height: 34.3296px; }

@media (max-width: 760px) {
  .sq-header { height: 92px; padding: 28px 24px; }
  .sq-header a { font-size: 25px; }
  .sq-header button { font-size: 17px; }
  .sq-hero { height: auto; min-height: 920px; clip-path: polygon(0 0,100% 0,100% 95%,75% 100%,50% 95%,25% 100%,0 95%); }
  .sq-video { top: 135px; width: 100%; height: 56.25vw; }
  .sq-hero h1 { left: 24px; top: calc(135px + 56.25vw + 50px); width: calc(100% - 48px); font-size: clamp(45px, 14vw, 62px); }
  .sq-hero > p { left: 24px; top: calc(135px + 56.25vw + 230px); width: calc(100% - 48px); }
  .sq-vision { height: 760px; margin-top: -46px; clip-path: polygon(0 0,100% 0,100% 94%,75% 100%,50% 94%,25% 100%,0 94%); }
  .sq-vision h2 { left: 8%; top: 250px; width: 84%; font-size: 49px; }
  .sq-vision a { left: 22%; top: 555px; width: 56%; }
  .sq-about { height: auto; min-height: 680px; margin-top: -46px; }
  .sq-about > div { left: 24px; top: 120px; width: calc(100% - 48px); }
  .sq-inquiry, .sq-inquiry > main { min-height: 2070px; }
  .sq-inquiry-intro { left: 24px; top: 145px; width: calc(100% - 48px); }
  .sq-inquiry-form { left: 24px; top: 390px; width: calc(100% - 48px); }
  .sq-name-grid { grid-template-columns: 1fr; gap: 27px; }
  .sq-inquiry-email { left: 24px; top: 1990px; width: calc(100% - 48px); }
  .fold-preview .material-fold { height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  .fold-preview .material-fold__mesh polygon { filter: none; }
}
