/* Fisher Web Studio. Base system from the Manual kit (editorial serif, near-white)
   and the Clay kit (soft gray cards, midnight pills). See AGENTS.md. */

:root {
  --bg: #f9f8f8;
  --surface: #f0efed;
  --ink: #1c1c1c;
  --muted: #6b6c66;
  --line: #e4e2df;
  --accent: #b4520f;
  --midnight: #171921;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --tight: "Inter Tight", "Inter", system-ui, sans-serif;
  --radius: 20px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(249, 248, 248, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.wordmark { font: 600 19px/1 var(--tight); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.wordmark span { font-weight: 400; color: var(--muted); }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 28px; list-style: none; padding: 0; }
.nav__links a { font-size: 15px; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
section[id] { scroll-margin-top: 80px; }

.pill {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--midnight); color: #fff; text-decoration: none;
  font: 500 14px/1 var(--sans); padding: 12px 18px; border-radius: 999px;
  white-space: nowrap; transition: transform .2s, background .2s;
}
.pill:hover { background: #000; transform: translateY(-1px); }
.pill--lg { font-size: 16px; padding: 17px 26px; }
.pill--light { background: var(--bg); color: var(--ink); }
.pill--light:hover { background: #fff; }
.link { font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent); }
.link--light { color: #e9e7e3; }
.link--light:hover { color: #fff; }

/* Hero */
.hero { padding-top: clamp(64px, 11vw, 150px); padding-bottom: clamp(72px, 10vw, 140px); }
.eyebrow { font: 500 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.hero__title {
  font: 400 clamp(40px, 6.6vw, 96px)/1.04 var(--serif);
  letter-spacing: -.025em; max-width: 15.5em; text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(40px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line); }
.hero__lede { max-width: 30em; text-wrap: pretty; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Sections */
.section { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(24px, 3vw, 40px); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head .eyebrow { margin-bottom: 20px; }
h2 { font: 400 clamp(34px, 4.4vw, 60px)/1.06 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.section__lede { margin-top: 20px; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 36em; }
h3 { font: 600 21px/1.2 var(--tight); letter-spacing: -.02em; }

/* Concept frames */
.concepts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.concept figcaption { margin-top: 18px; font-size: 15px; color: var(--muted); }
.concept figcaption strong { display: block; color: var(--ink); font: 600 16px/1.3 var(--tight); margin-bottom: 2px; }
.frame {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 18px 40px -18px rgba(28,28,28,.25);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s;
}
.concept:hover .frame { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 30px 60px -24px rgba(28,28,28,.32); }
.frame__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #ecebe9; }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3d1ce; }
.frame__bar span { margin: 0 auto; transform: translateX(-16px); font-size: 11px; color: #8a8a86; background: #f7f6f5; padding: 3px 14px; border-radius: 6px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen { container-type: inline-size; aspect-ratio: 16 / 11; position: relative; overflow: hidden; }
.screen img { object-fit: cover; }
.m-nav { display: flex; align-items: center; gap: 4.5cqi; padding: 4cqi 5cqi; font-size: 2.6cqi; }
.m-nav > * { white-space: nowrap; }
.m-nav b { margin-right: auto; }
.m-nav em { font-style: normal; }

/* Coffee: inspired by a cobalt-on-stone roaster kit */
.m-coffee { background: #f4f2f1; color: #1a73e8; font-family: var(--sans); display: flex; flex-direction: column; }
.m-coffee .m-nav b { font: 700 3.8cqi/1 "Libre Caslon Text", serif; }
.m-coffee__hero { text-align: center; padding: 0 8cqi 4cqi; }
.m-coffee__title { font: 700 7.2cqi/1.05 "Libre Caslon Text", serif; letter-spacing: -.01em; }
.m-coffee__sub { font-size: 2.7cqi; margin: 2cqi auto 3cqi; color: #3b6fc4; }
.m-coffee__cta { display: inline-block; background: #188ffb; color: #fff; font-size: 2.4cqi; padding: 1.6cqi 4cqi; }
.m-coffee img { flex: 1 1 0; min-height: 0; width: calc(100% - 10cqi); margin: 0 5cqi; }

/* Dental: inspired by a sage-serif wellness dental kit */
.m-dental { background: #eaf4eb; color: #36514c; font-family: var(--sans); }
.m-dental .m-nav b { font: 700 3.2cqi/1 "Libre Caslon Text", serif; }
.m-dental .m-nav em { background: #0178d1; color: #fff; padding: 1.2cqi 2.6cqi; border-radius: 99px; }
.m-dental__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5cqi; align-items: center; padding: 3cqi 5cqi; }
.m-dental__title { font: 700 5.6cqi/1.1 "Libre Caslon Text", serif; }
.m-dental__sub { font-size: 2.5cqi; margin: 2.5cqi 0 3.5cqi; color: #6c675c; line-height: 1.45; }
.m-dental__cta { display: inline-block; background: #e7fb7e; color: #36514c; font-weight: 600; font-size: 2.5cqi; padding: 1.8cqi 4cqi; border-radius: 99px; }
.m-dental img { width: 100%; height: 50cqi; border-radius: 22cqi 22cqi 3cqi 3cqi; }

/* Law: inspired by a dark slate litigation-boutique kit */
.m-law { background: #202625; color: #f7f7ed; font-family: var(--sans); }
.m-law .m-nav { color: #a4a8a2; }
.m-law .m-nav b { color: #f7f7ed; font: 400 3.6cqi/1 "Libre Caslon Display", serif; }
.m-law__hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 6cqi; align-items: center; padding: 3cqi 5cqi; }
.m-law__kicker { font-size: 2.2cqi; letter-spacing: .14em; text-transform: uppercase; color: #a4a8a2; margin-bottom: 3cqi; }
.m-law__title { font: 400 6.4cqi/1.08 "Libre Caslon Display", serif; letter-spacing: -.01em; }
.m-law__cta { display: inline-block; margin-top: 4cqi; color: #ef4852; font-size: 2.5cqi; border-bottom: 1px solid currentColor; padding-bottom: .6cqi; }
.m-law img { width: 100%; height: 48cqi; filter: saturate(.55) contrast(1.05); }

/* Home services: inspired by a navy-and-yellow HVAC kit */
.m-home { background: #fff; color: #14377d; font-family: var(--sans); }
.m-home .m-nav { background: #fff; }
.m-home .m-nav b { font: italic 800 3.6cqi/1 "Montserrat", sans-serif; text-transform: uppercase; }
.m-home .m-nav em { color: #e2203a; font-weight: 600; }
.m-home__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4cqi; align-items: center; background: #14377d; color: #fff; margin: 0 3cqi; padding: 4.5cqi 5cqi; border-radius: 3cqi; }
.m-home__title { font: italic 800 5.6cqi/1.02 "Montserrat", sans-serif; text-transform: uppercase; }
.m-home__sub { font-size: 2.5cqi; margin: 2.5cqi 0 3.5cqi; color: #d6deec; line-height: 1.45; }
.m-home__cta { display: inline-block; background: #ffcd00; color: #14377d; font-weight: 700; font-size: 2.6cqi; padding: 1.8cqi 4cqi; border-radius: 99px; }
.m-home__media { position: relative; }
.m-home__media img { width: 100%; height: 40cqi; border-radius: 2cqi; }
.m-home__badge { position: absolute; left: -3cqi; bottom: 3cqi; background: #e2203a; color: #fff; font: italic 800 2.2cqi/1 "Montserrat", sans-serif; text-transform: uppercase; padding: 1.6cqi 2.6cqi; border-radius: 99px; transform: rotate(-4deg); }

.m-home__trust { text-align: center; font-size: 2.3cqi; font-weight: 600; padding: 3cqi 5cqi 0; color: #14377d; }

.note { margin-top: 32px; font-size: 14px; color: var(--muted); }

/* Service cards (Clay-style soft gray) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; }
.card__num { font: 500 13px/1 var(--sans); color: var(--accent); margin-bottom: 48px; }
.card h3 { font-size: 26px; margin-bottom: 12px; }
.card > p { color: var(--muted); }
.card ul { list-style: none; padding: 24px 0 0; margin-top: auto; border-top: 1px solid #dddbd7; display: grid; gap: 10px; }
.card > p + ul { margin-top: 28px; }
.card li { position: relative; padding-left: 22px; font-size: 15.5px; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1.5px; background: var(--ink); }

/* Process */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.steps li { border-top: 1px solid var(--ink); padding-top: 22px; }
.steps span { display: block; font: 400 italic 44px/1 var(--serif); color: var(--accent); margin-bottom: 28px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 16px; }

/* About */
.about__body { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.about__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); background: var(--surface); }
.about__text { max-width: 34em; }
.about__text h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.about__body p { font-size: clamp(17px, 1.5vw, 20px); }
.about__body p + p { margin-top: 1em; color: var(--muted); }

/* Final CTA */
.cta {
  margin-top: clamp(80px, 10vw, 140px);
  background: var(--midnight); color: #fff; border-radius: 28px;
  padding: clamp(48px, 8vw, 112px) clamp(24px, 7vw, 96px);
  max-width: calc(1280px - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
}
.cta h2 { max-width: 14em; }
.cta p { margin: 24px 0 40px; color: #b9bac0; max-width: 32em; font-size: clamp(17px, 1.5vw, 20px); }

/* Footer */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 40px; padding-bottom: 48px; font-size: 14px; color: var(--muted); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .frame, .pill { transition: none; }
  .concept:hover .frame, .pill:hover { transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .card__num { margin-bottom: 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .about__body { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 760px) {
  /* Section links move to a second row that scrolls sideways if it ever overflows. */
  .nav__inner { flex-wrap: wrap; height: auto; gap: 0 16px; padding-top: 12px; }
  .nav .pill { margin-left: auto; padding: 10px 16px; }
  .nav nav { order: 1; width: 100%; margin: 0 calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); overflow-x: auto; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav__links { gap: 24px; padding: 10px var(--gutter) 12px; width: max-content; }
  .nav__links a { font-size: 14.5px; }
  section[id] { scroll-margin-top: 104px; }
  .concepts { grid-template-columns: 1fr; }
  .about__body { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { max-width: 420px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; padding-top: 18px; }
  .steps span { grid-row: span 2; font-size: 34px; margin: 0; }
  .card__num { margin-bottom: 16px; }
}
@media (max-width: 359px) {
  .wordmark span { display: none; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
}
