:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #18202a;
  --muted: #616c7b;
  --line: #dce1e9;
  --accent: #af7c27;
  --accent-dark: #845916;
  --accent-soft: #f6eddc;
  --blue: #145ff5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 5px;
  background: var(--text);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

.page {
  min-height: 100vh;
}

.site-header,
main,
footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex: 0 0 62px;
}

.brand > span {
  min-width: 0;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.15;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .82rem;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 22px;
  font-size: .9rem;
}

nav a {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent-dark);
}

.hero {
  position: relative;
  max-width: 900px;
  padding: 68px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 74px;
  width: 3px;
  height: 44px;
  border-radius: 2px;
  background: var(--accent);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -.025em;
}

h1 {
  max-width: 860px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.04;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 500;
  line-height: 1.1;
}

.lead {
  max-width: 740px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.button:hover {
  box-shadow: 0 8px 18px rgba(20, 95, 245, .18);
  transform: translateY(-1px);
}

.text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section {
  padding: 62px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.section-heading > p {
  max-width: 480px;
  margin: 0 0 4px;
  color: var(--muted);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 102px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.project-card:hover {
  border-color: #bdc5d2;
  box-shadow: 0 8px 22px rgba(24, 32, 42, .07);
  transform: translateY(-2px);
}

.project-card.featured {
  border-color: #ddc28f;
  background: linear-gradient(135deg, #fff 0%, var(--accent-soft) 170%);
}

.project-index {
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .83rem;
}

.project-card strong,
.project-card small {
  display: block;
}

.project-card strong {
  font-size: 1.02rem;
  line-height: 1.3;
}

.project-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .82rem;
}

.arrow {
  color: var(--blue);
  font-size: 1.15rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  min-height: 176px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.company {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
}

.company > div > p:last-child {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
}

dl {
  margin: 0;
}

dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 700;
}

footer {
  padding: 34px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr .9fr 1.4fr;
  gap: 30px;
}

.footer-grid strong {
  color: var(--text);
}

address {
  font-style: normal;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compliance-main {
  padding: 62px 0 72px;
}

.compliance-hero {
  max-width: 840px;
  padding-bottom: 50px;
}

.compliance-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.compliance-content {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr);
  gap: 28px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.compliance-copy,
.compliance-facts {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.compliance-copy h2,
.compliance-facts h2 {
  margin-bottom: 20px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.compliance-copy p {
  margin: 0 0 18px;
  color: var(--muted);
}

.compliance-copy p:last-child {
  margin-bottom: 0;
}

.compliance-note {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 5px 5px 0;
  background: var(--accent-soft);
  color: var(--text) !important;
}

.compliance-facts dl > div {
  display: block;
  padding: 14px 0;
}

.compliance-facts dt {
  margin-bottom: 4px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.compliance-facts dd {
  font-weight: 600;
}

.compliance-contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.compliance-contact p {
  margin: 0 0 8px;
  color: var(--muted);
}

.compliance-contact a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.compliance-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  nav {
    width: 100%;
    overflow-x: auto;
  }

  .portfolio-grid,
  .company,
  .compliance-content {
    grid-template-columns: 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .brand img {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .brand small {
    max-width: 245px;
    white-space: normal;
  }

  nav {
    gap: 18px;
  }

  .hero {
    padding: 50px 0 54px;
  }

  .hero::before {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .compliance-main {
    padding: 48px 0 54px;
  }

  .compliance-copy,
  .compliance-facts {
    padding: 22px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .project-card {
    min-height: 94px;
    padding: 15px;
  }

  .company {
    gap: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
