:root {
  --ink: #2e211d;
  --blue: #b65338;
  --mist: #f5e7de;
  --paper: #fcf8f2;
  --line: #eadcd2;
  --muted: #77645b;
  --warm: #eccb65;
  --radius: 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 5;
  padding: .5rem .75rem;
  background: white;
}

.skip-link:focus { top: 1rem; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 75rem;
  margin: 0 auto;
  padding: 1.2rem 2rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--warm); font-family: Georgia, serif; }
nav { display: flex; gap: 1.4rem; font-size: .93rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--blue); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr);
  gap: clamp(2rem, 6vw, 7rem);
  max-width: 75rem;
  min-height: 38rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 7rem) 2rem;
}

.hero-copy { padding-top: clamp(1rem, 5vw, 4rem); }
.eyebrow { margin: 0 0 .85rem; color: var(--blue); font-size: .73rem; font-weight: 800; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 11ch; margin-bottom: 1.5rem; font-size: clamp(3rem, 7vw, 6rem); line-height: .99; letter-spacing: -.065em; }
h1 em { color: var(--blue); font-family: Georgia, "Songti SC", serif; font-weight: 400; }
.hero-summary { max-width: 37rem; color: #4b5870; font-size: 1.1rem; }
.text-link { display: inline-flex; gap: .7rem; margin-top: 1.2rem; color: var(--ink); font-weight: 700; text-decoration: none; }
.text-link span { color: var(--blue); }

.hero-panel {
  align-self: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 1.2rem 1.2rem 0 var(--mist);
  color: white;
}
.panel-label { margin-bottom: 1.6rem; color: var(--warm); font-size: .7rem; letter-spacing: .13em; }
.hero-panel dl { margin: 0; }
.hero-panel dl > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgb(255 255 255 / 16%); }
.hero-panel dt { color: #a9b4c8; font-size: .82rem; }
.hero-panel dd { margin: 0; font-weight: 650; }
.panel-status { display: flex; align-items: center; gap: .55rem; margin: 1.6rem 0 0; color: #d6deee; font-size: .84rem; }
.panel-status span { width: .55rem; aspect-ratio: 1; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 .28rem rgb(214 255 112 / 14%); }

.section { max-width: 75rem; margin: 0 auto; padding: clamp(4rem, 7vw, 7rem) 2rem; }
.section-heading { display: grid; grid-template-columns: minmax(10rem, .55fr) minmax(0, 1.45fr); gap: 2rem; align-items: start; }
h2 { max-width: 18ch; margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -.045em; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 3.5rem; border: 1px solid var(--line); background: var(--line); }
.service-grid article { min-height: 16rem; padding: 1.6rem; background: var(--paper); }
.service-number { color: var(--blue); font-family: Georgia, serif; font-size: 1.2rem; }
.service-grid h3 { margin: 3.2rem 0 .75rem; font-size: 1.1rem; }
.service-grid article > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .92rem; }

.security-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 8rem); padding: clamp(4rem, 7vw, 7rem) max(2rem, calc((100vw - 75rem) / 2 + 2rem)); background: #f1e3d2; }
.security-band h2 { max-width: 12ch; }
.security-band > p { align-self: end; max-width: 33rem; margin-bottom: 0; color: #3b4c69; font-size: 1.05rem; }

.contact { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.contact-email { color: var(--blue); font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 750; letter-spacing: -.04em; text-decoration-color: rgb(23 105 255 / 28%); text-underline-offset: .18em; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; max-width: 75rem; margin: 0 auto; padding: 1.5rem 2rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
footer p { margin-bottom: 0; }
footer a { color: var(--muted); }

@media (max-width: 48rem) {
  .site-header { padding-inline: 1.25rem; }
  nav { gap: .8rem; font-size: .82rem; }
  .hero, .security-band { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-inline: 1.25rem; }
  .hero-panel { max-width: 32rem; }
  .section { padding-inline: 1.25rem; }
  .section-heading { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { align-items: start; flex-direction: column; }
  footer { padding-inline: 1.25rem; }
}

@media (max-width: 30rem) {
  nav { display: none; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
