/* Duston360 Tax Solutions
   A committed light palette sampled from the firm's own artwork: ledger paper, navy, gold,
   sage green, and the banner's indigo for the close. Editorial serif for headings, a clean
   sans for everything else. No decorative labelling: headings say what a section is. */

:root {
  --paper:      #F7F5F0;
  --paper-2:    #EFECE4;
  --ink:        #0D1826;
  --ink-2:      #2A3544;
  --muted:      #5A6470;
  --rule:       #D8D4CB;
  --rule-firm:  #B9B4A8;
  /* Sampled from the D360 Tax Solutions artwork, not guessed. Navy is the D and the wordmark,
     gold is the 3-6-0 and its arrow, green is the third arrow. */
  --brand:      #203850;   /* navy */
  --brand-deep: #183048;
  --brand-wash: #E7ECF1;   /* navy at ~8% over paper */
  --amber:      #B8903A;   /* gold: the hero stroke, the ticks, the accent on dark bands */
  --gold-light: #D4B05A;   /* gold lifted for legibility on ink */
  --green:      #507058;   /* sage: the process band and success states */
  --white:      #FFFFFF;

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint ledger grain so the ground reads as paper, not a flat hex */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(13,24,38,.035) 31px 32px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.25));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.dim  { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .5rem .75rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

/* ---------------------------------------------------------------- type */
.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  line-height: .98;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}
.display .line { display: block; }
.display em { font-style: italic; font-weight: 400; }

.display-2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
  max-width: 24ch;
}

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 .5rem;
  letter-spacing: -.005em;
}


.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  margin: 1.6rem 0 0;
}
.lede em { font-style: italic; font-family: var(--serif); font-size: 1.07em; }

.fineprint { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }

/* the one amber moment */
.stroke {
  position: relative; white-space: nowrap;
}
.stroke::after {
  content: "";
  position: absolute; left: -.02em; right: -.02em; bottom: .06em;
  height: .11em;
  background: var(--amber);
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  animation: stroke-in .7s var(--ease) 1.05s forwards;
}
@keyframes stroke-in { to { transform: scaleX(1); } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: .8rem 1.25rem;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  border-radius: 3px;
  transition: transform .18s var(--ease), background .18s, color .18s, border-color .18s;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-ghost { border-color: transparent; padding-inline: .25rem; color: var(--ink-2); }
.btn-ghost:hover { color: var(--brand); transform: none; }
.btn-sm { padding: .55rem .95rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 44px; width: auto; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; letter-spacing: -.01em; color: var(--ink); }
.brand-tag  { font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav .btn { color: var(--ink); }
.nav .btn:hover { color: var(--white); background: var(--ink); }
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* who we work with — a plain panel. Nothing in it looks interactive on purpose. */
.who {
  background: var(--white);
  border: 1px solid var(--rule-firm);
  border-radius: 4px;
  padding: 1.5rem 1.6rem 1.35rem;
  box-shadow: 0 1px 0 rgba(13,24,38,.04), 0 18px 40px -28px rgba(13,24,38,.35);
  margin-top: .35rem;
}
.who-h { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 0 0 .35rem; letter-spacing: -.005em; }
.who-lede { color: var(--muted); margin: 0 0 .9rem; font-size: .98rem; }
.who-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.who-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .62rem 0; border-bottom: 1px solid var(--rule);
  font-weight: 500; font-size: 1rem;
}
.who-ref { color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.who-foot { margin: .9rem 0 0; color: var(--ink-2); font-size: .95rem; font-style: italic; font-family: var(--serif); }

/* ---------------------------------------------------------------- sections */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* concerns — the dark band. The questions carry weight, and the white mark sits behind
   them as a faint watermark, the way it does on the black logo card. */
.concerns {
  background: var(--ink); color: var(--white);
  position: relative; overflow: hidden;
}
.concerns::before {
  content: ""; position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(520px, 55vw); aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23fff' stroke-width='7'%3E%3Cpath d='M10.5 35.6A42 42 0 0 1 65.7 11.1'/%3E%3Cpath d='M10.5 35.6A42 42 0 0 1 65.7 11.1' transform='rotate(120 50 50)'/%3E%3Cpath d='M10.5 35.6A42 42 0 0 1 65.7 11.1' transform='rotate(240 50 50)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cpolygon points='77.9,17.6 66.3,17.8 72.3,7.4'/%3E%3Cpolygon points='77.9,17.6 66.3,17.8 72.3,7.4' transform='rotate(120 50 50)'/%3E%3Cpolygon points='77.9,17.6 66.3,17.8 72.3,7.4' transform='rotate(240 50 50)'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .05; pointer-events: none;
}
.concerns .wrap { position: relative; }
.concerns .display-2 { color: var(--white); }
.q-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid rgba(255,255,255,.85); }
.q {
  display: grid; grid-template-columns: minmax(0, 22rem) 1fr;
  gap: 1.5rem 2.5rem; align-items: start;
  padding: 1.75rem 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.q h3 { margin: 0; font-style: italic; font-weight: 500; font-size: 1.45rem; color: var(--white); }
.q p { margin: 0; color: rgba(255,255,255,.76); max-width: 46em; }
@media (max-width: 900px) {
  .q { grid-template-columns: 1fr; }
}

/* services — a ledger, not cards. Paper again after the dark band, ruled a shade deeper. */
.services { background: var(--paper); border-block: 1px solid var(--rule); }
.ledger { border-top: 1.5px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 1rem 2.5rem; align-items: start;
  padding: 2.25rem 0; border-bottom: 1px solid var(--rule-firm);
}
.row-body h3 { font-size: 1.7rem; margin-bottom: .2rem; }
.serves { color: var(--muted); margin: 0 0 .9rem; font-size: .95rem; }
.row-body > p:not(.who) { color: var(--ink-2); max-width: 56em; margin: 0 0 1rem; }
.inc { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2.5rem; max-width: 56em; }
.inc li { break-inside: avoid; padding: .3rem 0 .3rem 1.2rem; position: relative; font-size: .97rem; color: var(--ink-2); }
.inc li::before { content: "—"; position: absolute; left: 0; color: var(--brand); }
.row-cta { padding-top: .35rem; }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; }
  .row-cta { padding-top: .5rem; }
  .inc { columns: 1; }
}

/* process — the wash band, and where the brand's green gets its job: the step rules and
   numerals, so the third colour appears exactly where the artwork uses it — as the
   "onward" arrow. */
.process { background: var(--brand-wash); border-block: 1px solid #CFD8E1; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.step { position: relative; padding-top: 1.25rem; border-top: 1.5px solid var(--green); }
.step-num {
  position: absolute; top: -.85rem; left: 0;
  background: var(--brand-wash); padding-right: .6rem;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--green);
}
.step h3 { font-size: 1.25rem; }
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

/* about */
.about { border-top: 1px solid var(--rule); }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-copy p { color: var(--ink-2); max-width: 44em; margin: 0 0 1rem; }
.about-copy .display-2 { margin-bottom: 1.25rem; }
.about-note { margin-top: 1.5rem !important; }
.about-mark { margin: 0; display: grid; place-items: center; }
.about-badge { width: min(280px, 60vw); height: auto; display: block; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-mark { order: -1; } }

/* schedule — the close, in the brand's own indigo (sampled from the banner card at
   2 / 30 / 70 / 98 % of its width). One action. The widget is embedded in light mode with
   the navy accent so it reads as a white card on the brand ground. */
.book {
  background: linear-gradient(100deg, #03030D 0%, #101041 30%, #28278D 70%, #312FBF 100%);
  color: var(--white);
}
.book .display-2 { color: var(--white); }
.book .sec-head { text-align: center; }
.book .sec-head .display-2 { margin: 0 auto; }
.book-wrap { max-width: 820px; margin: 0 auto; }
.book-frame {
  display: block; width: 100%; min-width: 320px; height: 600px;
  border: 0; border-radius: 6px; background: var(--white);
  box-shadow: 0 30px 70px -32px rgba(0,0,0,.65);
}


/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--ink); color: rgba(255,255,255,.8); border-top: 1px solid rgba(255,255,255,.08); padding: 2.5rem 0 2rem; }
.foot-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.foot-badge { width: 120px; height: auto; margin: 0 0 .75rem; display: block; }
.foot-nav { display: flex; gap: 1.5rem; }
.foot-nav a { color: rgba(255,255,255,.8); font-weight: 500; }
.foot-nav a:hover { color: var(--gold-light); }
.foot-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; animation-delay: calc(.12s + var(--d, 0) * .11s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-on-scroll.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-on-scroll { opacity: 1; transform: none; animation: none; transition: none; }
  .box::after { animation: none; transform: rotate(45deg) scale(1); }
  .stroke::after { animation: none; transform: scaleX(1); }
}
