/* Fairline Tax & Accounting: "Ledger" template (example site by Keep Web Up).
   Swiss grid on light paper, near-black ink, one cobalt accent, hairline rules, tabular mono figures. */
:root {
  --paper: #f6f6f3;
  --paper-2: #edede8;
  --white: #ffffff;
  --ink: #0d0e11;
  --ink-2: #383b42;
  --muted: #5a5d64;
  --rule: #d9d9d3;
  --rule-2: #c7c7c0;
  --cobalt: #2340ff;
  --cobalt-2: #1a30d6;
  --cobalt-t: #e8ebff;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hl { color: var(--cobalt); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Example banner */
.banner { background: var(--ink); color: #c9cbd0; font-size: 12.5px; line-height: 1.45; }
.banner-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 9px; padding-bottom: 9px; }
.banner b { color: #fff; font-weight: 600; }
.banner a { color: #fff; text-underline-offset: 3px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 246, 243, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark-glyph { width: 32px; height: 32px; background: var(--ink); display: grid; align-content: center; gap: 4px; padding: 0 7px; flex: none; }
.mark-glyph i { display: block; height: 2px; background: var(--paper); }
.mark-glyph i:nth-child(2) { background: var(--cobalt); width: 70%; margin-left: auto; height: 2.5px; }
.mark-text { display: grid; line-height: 1.05; }
.mark-text b { font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em; }
.mark-text span { font: 500 .66rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; font-size: .93rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav-cta { padding: 9px 16px; background: var(--ink); color: var(--paper) !important; font-weight: 500; }
.nav-cta:hover { background: var(--cobalt); }
@media (max-width: 860px) { .nav a:not(.nav-cta) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; background: var(--cobalt); color: #fff; font: 500 1rem/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: var(--cobalt-2); }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-2); padding-bottom: 2px; font-size: .95rem; }
.link:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* Hero: visible 12-column grid behind it */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 0; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 100%; pointer-events: none; z-index: -1;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), rgba(13, 14, 17, .055) calc(100% / 12 - 1px) calc(100% / 12));
  -webkit-mask-image: linear-gradient(#000 0, #000 55%, transparent 90%); mask-image: linear-gradient(#000 0, #000 55%, transparent 90%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.dot { width: 8px; height: 8px; background: var(--cobalt); border-radius: 50%; display: inline-block; flex: none; }
.hero h1 { margin-top: 22px; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.05em; font-weight: 600; text-wrap: balance; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .08em; background: var(--cobalt); transform-origin: left; transform: scaleX(var(--u, 1)); transition: transform .9s .5s var(--ease); }
.motion .hero h1:not(.in) .hl::after { --u: 0; }
.hero-sub { margin-top: 24px; max-width: 34rem; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }

/* Deadline board */
.board { background: var(--white); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 22px 22px 20px; }
.board-head { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.board-live { display: inline-flex; align-items: center; gap: 7px; color: var(--cobalt); }
.board-live .dot { animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.board-what { margin-top: 16px; font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; }
.board-date { margin-top: 2px; color: var(--muted); font-size: .85rem; }
.count { margin-top: 16px; display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; border: 1px solid var(--ink); }
.count[hidden] { display: none; }
.count div { padding: 12px 10px 10px; display: grid; gap: 4px; border-left: 1px solid var(--rule); }
.count div:first-child { border-left: 0; background: var(--cobalt); color: #fff; }
.count b { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.count span { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.ledger { margin-top: 18px; font-size: .8rem; }
.ledger li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-top: 1px solid var(--rule); }
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.ledger .lead { flex: 1; border-bottom: 1px dotted var(--rule-2); transform: translateY(-3px); }
.ledger li.is-next { color: var(--cobalt); font-weight: 600; }
.board-note { margin-top: 14px; font-size: .8rem; line-height: 1.5; color: var(--muted); }

/* Hero opening: "container scroll animation", after the 21st.dev / Aceternity UI component by
   @manuarora700 (21st.dev/@manuarora700/components/container-scroll-animation). The photo sits in
   a ledger frame tilted back 26 degrees and flattens as the hero rises; --shift (from site.js) is
   how far it must rise to show the whole frame. Plain CSS fed --p / --e by /examples/scroll-hero.js.
   Defaults are the finished, flat state, so the page is complete without JS or with reduced motion. */
.sh { --p: 1; --e: 1; --shift: 0px; }
.sh-run { display: none; }
.sh-on .hero { padding-top: 0; }
.sh-on .sh { --p: 0; --e: 0; position: relative; }
.sh-on .sh-run { display: block; height: 100svh; }
.sh-on .sh-stage { position: sticky; top: 69px; padding-top: clamp(40px, 6vw, 80px); margin-bottom: calc(-1 * var(--shift)); }
.cs-move { transform: translateY(calc(var(--e) * -1 * var(--shift))); }
.sh-on .hero-grid { transform: translateY(calc(var(--e) * -24px)); opacity: calc(1 - var(--e) * .25); }
.cs-persp { perspective: 1100px; margin-top: clamp(40px, 6vw, 72px); }
.cs-card { margin: 0; padding: 10px 10px 0; background: var(--white); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  transform-origin: 50% 0; transform: rotateX(calc((1 - var(--e)) * 26deg)) scale(calc(1.05 - .05 * var(--e))); will-change: transform; }
.cs-card figcaption { padding: 0 2px 10px; }
@media (max-width: 1000px) {
  .sh-on .cs-move { display: flex; flex-direction: column; }
  .sh-on .cs-move .hero-grid { display: contents; }
  .sh-on .cs-move .hero-copy { order: 1; padding: 0 var(--gutter); }
  .sh-on .cs-move .cs-wrap { order: 2; }
  .sh-on .cs-move .board { order: 3; margin: 36px var(--gutter) 0; }
  .sh-on .hero-grid > * { transform: translateY(calc(var(--e) * -24px)); }
  .sh-on .cs-move .hero-copy { opacity: calc(1 - var(--e) * .55); }
}
@media (max-width: 560px) { .cs-card { box-shadow: 5px 5px 0 var(--ink); padding: 6px 6px 0; } }

/* Hero photo + facts */
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 12%; filter: saturate(.85) contrast(1.02); }
figcaption { display: flex; gap: 14px; margin-top: 10px; font-size: .74rem; color: var(--muted); }
figcaption span { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-top: 36px; }
.facts li { padding: 20px 20px 22px 0; font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.facts li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.facts b { color: var(--ink); font-weight: 600; }
.facts .mono { display: block; margin-bottom: 8px; font-size: .72rem; color: var(--cobalt); }

/* Sections */
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec--paper { background: var(--paper-2); }
.sec--ink { background: var(--ink); color: var(--paper); }
.label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sec--ink .label { color: #8d9099; }
.sec-head h2, .about h2, .contact h2 { margin-top: 14px; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; max-width: 18ch; text-wrap: balance; }
.sec--ink .hl { color: #8e9bff; }
.fine { margin-top: 18px; font-size: .74rem; color: var(--muted); }

/* Services: ledger rows */
.svc { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--ink); }
.svc li { display: grid; grid-template-columns: 90px minmax(0, 1fr) 170px; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); position: relative; transition: padding .3s var(--ease), background .3s; }
.svc li::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.svc li:hover::before { transform: scaleX(1); }
.svc li:hover { background: var(--white); padding-left: 14px; padding-right: 14px; }
.svc-n { font-size: .86rem; color: var(--cobalt); }
.svc h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.svc p { margin-top: 6px; color: var(--ink-2); max-width: 44rem; }
.svc-fee { text-align: right; font-size: 1.25rem; font-weight: 600; }
.svc-fee small { font-size: .7rem; font-weight: 400; color: var(--muted); }

/* Process */
.steps { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #3a3d44; }
.steps li { padding: 26px 24px 28px 0; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; }
.steps li + li { padding-left: 24px; border-left: 1px solid #2a2c32; }
.step-n { font-size: 2.6rem; font-weight: 500; line-height: 1; color: #8e9bff; letter-spacing: -.05em; }
.steps h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; margin-top: 18px; }
.steps p { color: #b6b9c0; font-size: .97rem; }
.step-t { margin-top: 14px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #8d9099; padding-top: 12px; border-top: 1px dashed #3a3d44; }

/* Who we help */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 66% 50%; filter: saturate(.85); }
.who { margin-top: 32px; border-top: 1px solid var(--ink); }
.who li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.who b { font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; }
.who span { color: var(--ink-2); font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.about-copy p:not(.label) { margin-top: 18px; color: var(--ink-2); font-size: 1.05rem; max-width: 32rem; }
.about-media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: end; }
.about-media img { width: 100%; object-fit: cover; filter: saturate(.85); }
.about-media img:first-child { aspect-ratio: 4 / 5; }
.about-media img:last-child { aspect-ratio: 3 / 4; margin-bottom: 48px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.3rem/1 var(--mono); color: var(--cobalt); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 40rem; }

/* Contact */
.contact { background: var(--white); border-top: 1px solid var(--ink); padding: clamp(72px, 9vw, 120px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-copy > p:not(.label) { margin-top: 18px; color: var(--ink-2); max-width: 30rem; }
.contact-list { margin-top: 28px; border-top: 1px solid var(--rule); font-size: .86rem; }
.contact-list div { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.contact-list dt { color: var(--muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; padding-top: 2px; }
.contact-list a { text-decoration: none; color: var(--cobalt); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--cobalt); }
.field { display: grid; gap: 7px; min-width: 0; }
.field--full, .form-end { grid-column: 1 / -1; }
.field label { font: 500 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid var(--rule-2); border-radius: 0; padding: 12px 13px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-t); }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.sent { font-size: .92rem; color: var(--cobalt); }

/* Footer */
.foot { background: var(--ink); color: #a8abb2; padding: 48px 0 56px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1fr; gap: 28px; align-items: start; }
.foot-mark { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; }
.foot-mark .mark-glyph { background: var(--paper); }
.foot-mark .mark-glyph i { background: var(--ink); }
.foot-mark .mark-glyph i:nth-child(2) { background: var(--cobalt); }
.foot a { color: #fff; text-underline-offset: 3px; }

/* Reveals (only when JS is on and motion is allowed) */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .svc li.reveal:nth-child(2), .motion .steps li.reveal:nth-child(2) { transition-delay: .06s; }
.motion .svc li.reveal:nth-child(3), .motion .steps li.reveal:nth-child(3) { transition-delay: .12s; }
.motion .svc li.reveal:nth-child(4), .motion .steps li.reveal:nth-child(4) { transition-delay: .18s; }
.motion .svc li.reveal:nth-child(5) { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .board { max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid #2a2c32; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .split, .about, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .split-photo img { aspect-ratio: 4 / 3; }
  .svc li { grid-template-columns: 1fr; gap: 6px; }
  .svc-fee { text-align: left; font-size: 1.05rem; }
  .who li { grid-template-columns: 1fr; gap: 2px; }
  .about-media img:last-child { margin-bottom: 28px; }
  .hero-photo img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--cobalt); }
  .board { box-shadow: 5px 5px 0 var(--ink); padding: 18px 16px 16px; }
  .count b { font-size: 1.5rem; }
  .count div { padding: 10px 8px 8px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0 24px; border-left: 0; }
  .steps li + li { border-top: 1px solid #2a2c32; }
  .facts li, .facts li + li { padding: 16px 12px 18px 0; }
  .facts li:nth-child(even) { padding-left: 14px; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-cta { padding: 8px 12px; font-size: .86rem; }
  .mark-text span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
