:root {
  --ink: #16202c;
  --navy: #0d2036;
  --muted: #5d6877;
  --gold: #a8843f;
  --gold-soft: #efe6d2;
  --line: #e7e2d8;
  --wash: #f7f5f0;
  --white: #ffffff;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { background: var(--white); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.9 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.35; color: var(--navy); font-weight: 650; }
img { display: block; max-width: 100%; }
.skip { position: absolute; left: -999px; top: 0; padding: 8px 14px; background: var(--navy); color: #fff; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* header */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: var(--max); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-size: 19px; font-weight: 700; letter-spacing: .14em; }
.logo-mark { width: 13px; height: 13px; border: 2px solid var(--gold); transform: rotate(45deg); }
.menu { display: flex; gap: 6px; }
.menu a { padding: 8px 14px; text-decoration: none; color: var(--muted); font-size: 15px; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a:focus-visible { color: var(--navy); outline: none; }
.menu a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }

/* views: with the script only the active one shows; without it everything stacks */
main { max-width: var(--max); margin: 0 auto; padding: 0 24px; min-height: 62vh; }
.view { padding: clamp(36px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.view:first-of-type { border-top: 0; }
.js .view { display: none; border-top: 0; }
.js .view.is-active { display: block; }
.view:focus { outline: none; }
.view > h2, .view > .kicker + h2 { font-size: clamp(28px, 4.2vw, 40px); letter-spacing: .03em; margin-bottom: 18px; }
.sub { color: var(--gold); font-size: 17px; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px; }

/* tab rows */
.tabs { display: none; flex-wrap: wrap; gap: 8px; padding: 22px 0 0; }
.js .tabs.is-active { display: flex; }
.tabs a { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--muted); background: var(--white); }
.tabs a:hover, .tabs a:focus-visible { border-color: var(--gold); color: var(--navy); outline: none; }
.tabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
html:not(.js) .tabs { display: none; }
.js .tabs.is-active + .view { padding-top: clamp(24px, 4vw, 44px); }

/* home */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); letter-spacing: .1em; }
.slogan { margin: 14px 0 0; font-size: clamp(18px, 2.4vw, 22px); letter-spacing: .12em; color: var(--gold); font-weight: 600; }
.lead { margin: 22px 0 0; max-width: 34em; color: #33404f; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.btn { display: inline-block; padding: 12px 26px; background: var(--navy); border: 1px solid var(--navy); color: #fff; text-decoration: none; font-size: 15px; letter-spacing: .06em; }
.btn:hover, .btn:focus-visible { background: #1a3556; outline: none; }
.btn-line { background: var(--white); color: var(--navy); }
.btn-line:hover, .btn-line:focus-visible { background: var(--wash); }

.photo { margin: 0; overflow: hidden; background: var(--wash); border-radius: 4px; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: clamp(32px, 5vw, 56px); }
.card { display: flex; flex-direction: column; gap: 6px; padding: 0 0 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); text-decoration: none; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover, .card:focus-visible { border-color: var(--gold); box-shadow: 0 6px 22px rgba(13, 32, 54, .08); outline: none; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 8px; }
.card-plain { padding-top: 22px; background: var(--wash); }
.card-title, .card-text { padding: 0 18px; }
.card-title { font-size: 17px; font-weight: 650; color: var(--navy); }
.card-text { font-size: 14px; line-height: 1.7; color: var(--muted); }

/* prose views */
.prose { max-width: 46em; }
.prose p { font-size: 17px; color: #2a3644; }
.prose-p { max-width: 44em; font-size: 17px; }
.pull { font-size: clamp(20px, 2.8vw, 26px); color: var(--navy); font-weight: 650; letter-spacing: .05em; padding-left: 18px; border-left: 3px solid var(--gold); margin: 6px 0 24px; line-height: 1.6; }

.values { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.values li { padding: 22px 20px; border: 1px solid var(--line); border-top: 3px solid var(--gold); background: var(--white); }
.values strong { display: block; margin-bottom: 8px; font-size: 20px; letter-spacing: .14em; color: var(--navy); }
.values span { font-size: 15px; line-height: 1.8; color: var(--muted); }

/* service views */
.kicker { margin: 0 0 8px; font-size: 14px; letter-spacing: .22em; color: var(--gold); font-weight: 700; }
.service-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.service-head-single { grid-template-columns: minmax(0, 46em); }
.service-head p { font-size: 17px; color: #2a3644; }
.service h3 { margin: clamp(26px, 4vw, 40px) 0 12px; font-size: 14px; letter-spacing: .22em; color: var(--muted); font-weight: 700; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 64px); }
.cols > div > h3:first-child { margin-top: clamp(26px, 4vw, 40px); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); }
.list li::before { content: ""; position: absolute; left: 3px; top: 1.2em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 48px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border: 1px solid var(--gold); border-radius: 50%; text-align: center; line-height: 28px; font-size: 14px; color: var(--gold); font-weight: 700; }
.steps strong { display: block; color: var(--navy); }
.steps span { display: block; font-size: 15px; line-height: 1.75; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 7px 16px; background: var(--gold-soft); color: #5f4a1e; border-radius: 999px; font-size: 14px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; padding: 12px 0; color: var(--navy); font-weight: 600; list-style-position: outside; }
details p { margin: 0 0 14px; color: #33404f; font-size: 16px; }
.notice { margin: 28px 0 0; padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--wash); color: #3b4756; font-size: 15px; }
.link { color: var(--navy); font-weight: 650; text-underline-offset: 4px; text-decoration-color: var(--gold); }

/* link to the product site */
.go { margin-top: 32px; padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--wash); max-width: 46em; }
.service .go h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: .06em; color: var(--navy); }
.go p { font-size: 15px; color: #33404f; margin: 0 0 12px; }
.go-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0 !important; }

/* contact */
.contact { margin: 24px 0 0; max-width: 46em; }
.contact div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact div:last-child { border-bottom: 1px solid var(--line); }
.contact dt { color: var(--muted); font-size: 14px; letter-spacing: .12em; }
.contact dd { margin: 0; font-size: 18px; color: var(--navy); overflow-wrap: anywhere; }
.contact a { text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--wash); margin-top: clamp(40px, 6vw, 72px); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 36px 24px 44px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot strong { display: block; margin-bottom: 6px; font-size: 18px; letter-spacing: .14em; color: var(--navy); }
.foot p { margin: 0 0 4px; line-height: 1.8; }
.foot-note { font-size: 13px; }
.foot-links { display: flex; gap: 18px; align-items: flex-start; }
.foot-links a { text-decoration: none; color: var(--navy); }
.foot-links a:hover, .foot-links a:focus-visible { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.foot .footer-icp { width: 100%; margin-top: 4px; }
.foot .footer-icp a { color: var(--muted); text-decoration: none; }

@media (max-width: 860px) {
  .hero, .service-head, .cols { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .menu a { padding: 8px 9px; font-size: 14px; }
  .bar-in { padding: 10px 16px; }
  main { padding: 0 16px; }
  .foot-in { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 520px) {
  .bar-in { flex-direction: column; align-items: flex-start; gap: 4px; }
  .menu { margin-left: -9px; flex-wrap: wrap; }
  .contact div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
