@font-face {
  font-family: Barlow Condensed;
  src: url("assets/barlow-condensed.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url("assets/barlow-condensed-ext.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF;
}
@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/manrope-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF;
}

:root {
  color-scheme: light;
  --paper: #f6f6f0;
  --white: #fbfaf5;
  --ink: #17292e;
  --muted: #465b5e;
  --accent: #bce2cc;
  --accent-ink: #2d6959;
  --border: #d1dad4;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --header-height: 5.125rem;
  --gutter: clamp(1.25rem, 6vw, 6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.65 Manrope, system-ui, sans-serif;
}
body:has(dialog[open]) { overflow: hidden; }
main { overflow-x: clip; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: var(--header-height); }
#start { scroll-margin-top: 0; }
h1, h2, h3, p, ol { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 5px; }
.site-header :focus-visible, .hero :focus-visible, .contact :focus-visible, .site-footer :focus-visible {
  outline-color: var(--accent);
}
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.skip-link:focus {
  position: fixed;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: .8rem 1rem;
  background: var(--white);
}
.wrap {
  width: min(100% - 2 * var(--gutter), 84rem);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 3;
  inset: 0 0 auto;
  color: var(--white);
  background: linear-gradient(180deg, #102029ce 0%, #10202983 58%, transparent 100%);
}
.site-header::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #14242c;
  box-shadow: 0 1px #ffffff20;
  opacity: 0;
  transition: opacity .45s ease;
  content: "";
}
.site-header.is-scrolled::before, .site-header:has(.menu-toggle[aria-expanded="true"])::before {
  opacity: 1;
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  transition: min-height .45s ease;
}
.site-header.is-scrolled .header-inner { min-height: 4rem; }
.wordmark { display: inline-flex; align-items: center; flex: none; }
.office-brand {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -.085em;
  line-height: 1;
}
.office-brand span { color: var(--accent); }
.site-header .office-brand { transition: font-size .45s ease; }
.site-header.is-scrolled .office-brand { font-size: 1.9rem; }
.navigation {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.3vw, 3.6rem);
  font-size: .875rem;
  font-weight: 800;
}
.navigation > a { transition: color .18s ease, border-color .18s ease; }
.navigation > a:hover { color: var(--accent); }
.navigation .nav-contact {
  padding: .63rem 1.04rem;
  border: 1px solid #ffffff70;
}
.navigation .nav-contact:hover { border-color: var(--accent); }
.menu-toggle { display: none; }

.hero {
  min-height: 44rem;
  min-height: max(44rem, 90svh);
  isolation: isolate;
  position: relative;
  display: grid;
  background: #1a2b36;
  color: var(--white);
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.hero-panel {
  position: relative;
  grid-area: 1 / 1;
  display: grid;
  isolation: isolate;
  min-width: 0;
  visibility: hidden;
}
.hero-panel.is-current { visibility: visible; z-index: 1; }
.hero-panel.is-leaving { visibility: visible; pointer-events: none; }
.hero-visual {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-visual--architecture {
  background-image: url("assets/accounting-hero.webp");
  background-position: center 53%;
}
.hero-visual--digital {
  background-image: url("assets/accounting-company.webp");
  background-position: center 56%;
}
.hero-visual--process {
  background-image: url("assets/accounting-online.webp");
  background-position: center 56%;
}
.hero-panel::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #0c1f2bea 0%, #0c1f2b80 52%, #0c1f2b22 100%),
    linear-gradient(0deg, #0c1f2b9b 0%, transparent 35%);
}
.hero-inner {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding-block: calc(var(--header-height) + 2rem) 6.4rem;
}
.hero-content { width: max-content; max-width: 100%; }
.hero-content, .hero-footer { opacity: var(--hero-copy-opacity, 1); }
.hero:has(:focus-visible) :is(.hero-content, .hero-footer), .hero-footer:hover { opacity: 1; }
.hero-progress {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 3px;
  background: #ffffff45;
  pointer-events: none;
}
.hero-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--white);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
}
.eyebrow--ink { color: var(--ink); }
.eyebrow > span {
  width: 1.95rem;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.eyebrow--ink > span { background: var(--accent-ink); }

.hero-title, .section-title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: .88;
  text-transform: uppercase;
}
.hero-title {
  margin-top: 1.1rem;
  font-size: clamp(5.1rem, 10.7vw, 10.75rem);
}
.hero-title span, .services .section-title span, .contact .section-title span { color: var(--accent); }
.hero-description {
  max-width: 30rem;
  margin-block: 1.6rem 1.7rem;
  color: #efede7;
  font-size: clamp(1.06rem, 1.55vw, 1.22rem);
  line-height: 1.55;
}
.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.32rem;
  border: 1px solid transparent;
  font-size: .9rem;
  font-weight: 800;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.button--accent { background: var(--accent); color: var(--ink); }
.button--accent:hover { background: #d7f3df; }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { background: #2d454b; }

.hero-footer {
  position: absolute;
  z-index: 2;
  bottom: 1.9rem;
  inset-inline: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}
.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  justify-self: start;
  min-height: 2.75rem;
  color: #eceae4;
  white-space: nowrap;
  font-size: .875rem;
  font-weight: 700;
}
.scroll-link:hover { color: var(--accent); }
.scroll-glyph {
  position: relative;
  width: .8rem;
  height: 1.15rem;
  border: 1px solid currentColor;
  border-radius: 1rem;
}
.scroll-glyph::before {
  position: absolute;
  inset: .22rem 0 auto;
  margin-inline: auto;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}
.slider-controls { display: flex; gap: .4rem; }
.slider-controls button {
  display: grid;
  width: 2.85rem;
  min-height: 2.75rem;
  padding: .35rem;
  place-items: center;
  border: 0;
  background: transparent;
}
.slider-controls button span {
  width: 100%;
  height: 2px;
  background: #ffffffa0;
  transition: background .18s ease;
}
.slider-controls button:hover span { background: var(--white); }
.slider-controls button[aria-pressed="true"] span { height: 3px; background: var(--accent); }
.slider-toggle {
  display: grid;
  width: 2.75rem;
  min-height: 2.75rem;
  justify-self: end;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}
.slider-toggle:hover { color: var(--accent); }
.slider-toggle span { width: .55rem; height: .7rem; border-inline: 2px solid; }
.slider-toggle.is-paused span {
  width: .6rem;
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.section { padding-block: clamp(4rem, 8vw, 8.25rem); }
.section-title {
  margin-top: .8rem;
  font-size: clamp(3.25rem, 6.5vw, 7rem);
}
.section-title span { color: var(--accent-ink); }
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: end;
  gap: 2.8rem clamp(3rem, 6vw, 7rem);
}
.about .section-title { font-size: clamp(3.25rem, 5.3vw, 6rem); }
.about-copy { max-width: 35rem; padding-bottom: .15rem; }
.about-copy p { color: var(--muted); font-size: 1.06rem; }
.about-copy p:first-child {
  margin-bottom: 1.05rem;
  color: var(--ink);
  font-size: clamp(1.125rem, 1.7vw, 1.35rem);
  font-weight: 700;
}
.work { background: #e9eee8; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-bottom: 2rem;
}
.filters { display: flex; flex-wrap: wrap; gap: .42rem; }
.filters button {
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid #93a8a0;
  background: transparent;
  font-size: .875rem;
  font-weight: 800;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.project-grid { display: grid; align-content: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.1rem; }
.project { position: relative; min-width: 0; }
.project-action {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.project-art { aspect-ratio: 3 / 2; overflow: hidden; }
.project-art--jdg { background: #c3b198; }
.project-art--company { background: #45575d; }
.project-art--payroll { background: #7d8f75; }
.project-art--online { background: #ccc8bc; }
.project-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.project:has(.project-action:not([hidden])):hover img { transform: scale(1.045); }
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding-top: 1rem;
}
.project-label { color: var(--accent-ink); font-size: .875rem; font-weight: 800; }
.project-description { max-width: 53ch; margin-top: .45rem; color: var(--muted); }

.project-meta h3 { font-size: clamp(1.08rem, 1.9vw, 1.55rem); line-height: 1.25; font-weight: 800; }
.project-icon {
  display: grid;
  position: relative;
  width: 2.65rem;
  height: 2.65rem;
  flex: none;
  place-items: center;
  border: 1px solid #93a8a0;
  border-radius: 50%;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.project-icon::before, .project-icon::after { position: absolute; content: ""; background: currentColor; }
.project-icon::before { width: .75rem; height: 1px; }
.project-icon::after { width: 1px; height: .75rem; }
.project:has(.project-action[hidden]) .project-icon { display: none; }
.project:has(.project-action:not([hidden])):hover .project-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.services { background: #142930; color: var(--white); }

.process .split { align-items: start; }
.process-list { padding: 0; list-style: none; counter-reset: process; }
.process-list li {
  position: relative;
  padding: .9rem 0 .95rem 3rem;
  border-top: 1px solid var(--border);
  counter-increment: process;
}
.process-list li::before {
  content: counter(process, decimal-leading-zero);
  position: absolute;
  inset: 1.08rem auto auto 0;
  color: var(--accent-ink);
  font-size: .875rem;
  font-weight: 800;
}
.process-list h3 { font-size: 1.22rem; line-height: 1.35; }
.process-list p { margin-top: .15rem; color: var(--muted); }
.process-list li:last-child { border-bottom: 1px solid var(--border); }
.services .process-list { --border: #ffffff33; --muted: #d5e4e1; --accent-ink: var(--accent); }

.faq .split { align-items: start; }
.faq-list { border-block: 1px solid var(--border); }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: .6rem;
  height: .6rem;
  flex: none;
  margin-right: .3rem;
  border: solid var(--accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-.1rem, -.1rem);
}
.faq-item[open] summary::after { transform: rotate(225deg) translate(-.1rem, -.1rem); }
.faq-item p { padding: 0 1.35rem 1.2rem 0; color: var(--muted); }


.contact {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #252525;
  color: var(--white);
}
.contact::before {
  position: absolute;
  z-index: -1;
  inset: -15% 0;
  background: linear-gradient(90deg, #102228fa 0%, #102228e0 50%, #10222889 100%), #252525 url("assets/accounting-online.webp") center 57% / cover;
  translate: 0 var(--contact-shift, 0px);
  content: "";
}
.contact-inner > p:not(.eyebrow) { max-width: 36rem; margin-block: 1.25rem; color: #eeeee9; font-size: 1.06rem; }
.contact-inner .contact-note, .contact-inner .copy-status { font-size: .875rem; }
.copy-status:empty { display: none; }
.inquiry-template { display: grid; gap: .4rem; max-width: 36rem; font-size: .9rem; }
.inquiry-template textarea { width: 100%; padding: .8rem; border: 1px solid var(--accent); font: inherit; resize: vertical; }

.contact-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.site-footer { padding-block: 1.5rem; background: #102228; color: #d7d7d3; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.25rem; font-size: .875rem; }
.footer-inner > a:hover { color: var(--accent); }

.project-dialog {
  max-width: min(43rem, 100% - 2rem);
  max-height: calc(100% - 2rem);
  padding: 0;
  border: none;
  background: var(--paper);
  color: var(--ink);
}
.project-dialog::backdrop { background: #111210bc; }
.dialog-inner { position: relative; }
.dialog-close {
  position: absolute;
  z-index: 1;
  top: .75rem;
  right: .75rem;
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border: 0;
  background: var(--white);
  font-size: .875rem;
  font-weight: 800;
}
.dialog-close span { margin-left: .2rem; font-size: 1.2em; }
.dialog-close:hover { background: var(--accent); }
.dialog-image { width: 100%; height: auto; aspect-ratio: 2.5 / 1; object-fit: cover; }
.dialog-copy { padding: clamp(1.25rem, 5vw, 2.5rem); }
.dialog-copy .section-title { font-size: clamp(2.25rem, 6vw, 4rem); }
.dialog-description, .dialog-detail { color: var(--muted); }
.dialog-description { margin-top: .9rem; }
.dialog-detail { margin-block: .55rem 1.4rem; }

@media (max-width: 56rem) {
  .section-heading { align-items: start; }
}
@media (max-width: 45rem) {
  :root { --header-height: 4.3rem; }
  .header-inner { flex-wrap: wrap; }
  .office-brand { font-size: 2.05rem; }
  .site-header.is-scrolled .header-inner { min-height: 3.8rem; }
  .site-header.is-scrolled .office-brand { font-size: 1.8rem; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 2.75rem;
    padding: .2rem 0 .2rem .65rem;
    border: 0;
    background: transparent;
    font-size: .875rem;
    font-weight: 800;
  }
  .menu-glyph {
    display: block;
    position: relative;
    width: 1.25rem;
    height: .68rem;
    border-top: 1px solid;
    border-bottom: 1px solid;
  }
  .menu-toggle[aria-expanded="true"] .menu-glyph { border: 0; }
  .menu-toggle[aria-expanded="true"] .menu-glyph::before,
  .menu-toggle[aria-expanded="true"] .menu-glyph::after {
    position: absolute;
    top: 50%;
    width: 100%;
    border-top: 1px solid;
    content: "";
    transform: rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .menu-glyph::after { transform: rotate(-45deg); }
  .navigation {
    width: 100%;
    flex-wrap: wrap;
    gap: 0 1.05rem;
    padding-bottom: .6rem;
  }
  .menu-toggle:not([hidden]) + .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter) 1rem;
    background: #14242c;
    box-shadow: 0 1px #ffffff20;
  }
  .menu-toggle[aria-expanded="true"] + .navigation {
    display: flex;
    animation: menu-in .3s ease both;
  }
  .navigation a, .navigation .nav-contact { padding: .65rem 0; border: 0; }
  .menu-toggle:not([hidden]) + .navigation a { border-top: 1px solid #ffffff24; }
  .hero { min-height: max(38rem, 88svh); }
  .hero-panel::after { background: linear-gradient(90deg, #0c1f2be8, #0c1f2ba8 75%), linear-gradient(0deg, #0c1f2b9b, transparent 45%); }
  .hero-visual--architecture { background-position: 65% center; }
  .hero-inner { padding-block: calc(var(--header-height) + 1.2rem) 5.25rem; }
  .hero-title { font-size: clamp(2.55rem, 12.6vw, 5.65rem); }
  .hero-description { margin-block: 1.2rem 1.4rem; }
  .hero-footer { bottom: .8rem; }
  .slider-controls { gap: .1rem; }
  .slider-controls button { width: 2.75rem; }
  .split { grid-template-columns: 1fr; gap: 1.6rem; }
  .section-title, .about .section-title { font-size: clamp(2.65rem, 9vw, 4.55rem); }
  .project-grid { gap: 1.55rem .85rem; }
  .project-meta { align-items: flex-start; gap: .3rem; }
  .project-icon { width: 1.8rem; height: 1.8rem; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 32rem) {
  .project-grid { grid-template-columns: 1fr; }
  .project-icon { width: 2.35rem; height: 2.35rem; }
}
@media (max-width: 23rem) {
  .scroll-glyph { display: none; }
}
@keyframes menu-in {
  from { opacity: 0; translate: 0 -.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
