:root {
  --ink: #071b35;
  --text: #182a3f;
  --muted: #5d6d7f;
  --line: #d9e2ec;
  --line-strong: #b7c4d3;
  --paper: #ffffff;
  --paper-soft: #f5f8fb;
  --navy: #003366;
  --navy-2: #072746;
  --gold: #c99628;
  --gold-2: #e2bb63;
  --green: #2b8a3e;
  --shadow: 0 22px 60px rgba(7, 27, 53, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(43, 138, 62, 0.35);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(217, 226, 236, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(201, 150, 40, 0.55);
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.brand-text span {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 12px 0;
}

.site-nav button,
.footer-main nav button {
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.site-nav button {
  padding: 12px 0;
}

.footer-main nav button {
  padding: 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--green);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav .nav-contact::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.section-shell {
  width: calc(100% - 48px);
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 54px;
  align-items: center;
  min-height: clamp(680px, calc(100vh - 78px), 860px);
  padding: 74px 0 78px;
}

.role,
.section-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.expertise-layout h2,
.contact-layout h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(52px, 8vw, 90px);
}

.hero .role {
  margin: 16px 0 0;
  font-size: clamp(20px, 2.8vw, 28px);
  letter-spacing: 0;
  text-transform: none;
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: #263a50;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 36px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button::after {
  margin-left: 12px;
  content: "->";
  font-weight: 850;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 14px 28px rgba(0, 51, 102, 0.22);
}

.button-primary:hover {
  background: #062a4f;
}

.button-secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: #9fb0c2;
}

.button-secondary:hover {
  border-color: var(--navy);
  box-shadow: 0 12px 26px rgba(7, 27, 53, 0.1);
}

.button-secondary.inverted {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.54);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 46px 0 0;
}

.hero-proof div {
  padding-left: 16px;
  border-left: 2px solid var(--gold);
}

.hero-proof dt {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.hero-proof dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-2);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7, 27, 53, 0.16), rgba(7, 27, 53, 0) 42%);
  content: "";
  pointer-events: none;
}

.hero-visual picture,
.hero-visual img {
  width: 100%;
  height: 100%;
}

.hero-visual picture {
  display: block;
  position: absolute;
  inset: 0;
}

.hero-visual img {
  object-fit: cover;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}

.signal-item {
  min-height: 172px;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 32px 34px;
  color: #ffffff;
  background: var(--navy);
}

.signal-item + .signal-item {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.signal-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
}

.signal-item strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.signal-item p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.content-section {
  padding: 90px 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

.section-heading.compact {
  max-width: 760px;
}

.section-heading h2,
.expertise-layout h2,
.contact-layout h2 {
  font-size: clamp(34px, 4.4vw, 52px);
}

.section-heading p:not(.section-label),
.expertise-layout p,
.contact-layout p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.service-card {
  min-height: 252px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 38px rgba(7, 27, 53, 0.09);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  color: var(--navy);
  border: 1px solid rgba(0, 51, 102, 0.35);
  border-radius: 50%;
  font-weight: 850;
}

.service-card h3,
.domain-grid h3,
.process-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.service-card p,
.domain-grid p,
.process-list p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.expertise-section,
.process-section {
  padding: 88px 0;
  background: var(--paper-soft);
  border-block: 1px solid var(--line);
}

.expertise-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 58px;
  align-items: start;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 10px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  font-size: 14px;
  font-weight: 720;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.domain-grid article {
  min-height: 178px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.domain-grid article:nth-child(2n) h3 {
  color: var(--green);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  padding: 0 20px 0 0;
}

.process-list li:not(:last-child)::after {
  position: absolute;
  top: 20px;
  right: 0;
  width: 42px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.process-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  color: #ffffff;
  border-radius: 6px;
  background: var(--navy);
  font-weight: 850;
}

.contact-section {
  padding: 82px 0;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(0, 51, 102, 0.98), rgba(7, 27, 53, 0.98)),
    radial-gradient(circle at 88% 12%, rgba(43, 138, 62, 0.28), transparent 34%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: center;
}

.contact-layout h2,
.contact-layout p,
.contact-layout .section-label {
  color: #ffffff;
}

.contact-layout p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.contact-actions .button-primary {
  background: var(--green);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.site-footer {
  width: calc(100% - 48px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 0 54px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-main nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.footer-main nav a:hover,
.legal a:hover {
  color: var(--green);
}

.legal {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr 1.4fr;
  gap: 24px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.legal p {
  margin: 0;
}

.legal strong {
  color: var(--ink);
}

.privacy {
  color: #68798b;
}

.card-site {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 51, 102, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 51, 102, 0.035) 1px, transparent 1px),
    #ffffff;
  background-size: 64px 64px;
}

.visit-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 76px 0 42px;
}

.visit-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 34px;
  color: var(--navy);
  border: 1px solid rgba(201, 150, 40, 0.72);
  background: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(7, 27, 53, 0.08);
}

.visit-card-copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 8.5vw, 104px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
}

.visit-role {
  margin: 18px 0 0;
  color: var(--gold);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 850;
  line-height: 1.2;
}

.visit-summary {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.64;
}

.visit-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 720px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.visit-skills li {
  padding: 7px 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.15;
}

.visit-note {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.mail-link {
  display: inline-flex;
  margin-top: 32px;
  padding: 2px 0;
  color: var(--navy);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 18px;
  font-family: inherit;
  font-weight: 800;
  line-height: inherit;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.mail-link:hover,
.mail-link:focus-visible {
  color: var(--green);
  border-bottom-color: var(--gold);
}

.site-nav button:hover,
.footer-main nav button:hover {
  color: var(--green);
}

.site-nav button,
.footer-main nav button,
.mail-link {
  cursor: pointer;
}

.visit-card-panel {
  display: grid;
  gap: 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}

.panel-line {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 28px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.panel-line:last-child {
  border-bottom: 0;
}

.panel-line span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-line strong {
  color: var(--ink);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 780;
  line-height: 1.2;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.card-footer a {
  color: var(--ink);
  font-weight: 750;
}

.legal-page {
  background: var(--paper-soft);
}

.legal-content {
  min-height: calc(100vh - 260px);
  padding: 86px 0 72px;
}

.legal-content h1 {
  max-width: 760px;
  margin: 0 0 38px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 500;
  line-height: 1.08;
}

.legal-content section {
  max-width: 760px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
}

.legal-content p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.legal-content a {
  color: var(--navy);
  font-weight: 750;
}

.compact-footer {
  padding-top: 18px;
}

@media (max-width: 1060px) {
  .hero,
  .expertise-layout,
  .visit-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .visit-card {
    min-height: auto;
  }

  .signal-band,
  .service-grid,
  .domain-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-item {
    padding-inline: 28px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding-inline: 18px;
  }

  .brand-text span {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
  }

  .menu-toggle span:not(.sr-only) {
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(7, 27, 53, 0.12);
  }

  .legal-page .legal-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .legal-page .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .section-shell,
  .site-footer {
    width: calc(100% - 32px);
    max-width: var(--max);
  }

  .hero {
    gap: 34px;
    padding: 44px 0 58px;
  }

  .visit-card {
    gap: 34px;
    padding: 42px 0 30px;
  }

  .visit-mark {
    width: 52px;
    height: 52px;
    margin-bottom: 28px;
    font-size: 26px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .visit-card-copy h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .visit-skills {
    gap: 7px;
  }

  .visit-skills li {
    padding: 7px 9px;
    font-size: 12px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-proof,
  .signal-band,
  .service-grid,
  .domain-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    gap: 16px;
  }

  .hero-visual {
    min-height: 290px;
  }

  .visit-card-panel {
    display: none;
  }

  .card-footer {
    flex-direction: column;
    padding-bottom: 26px;
  }

  .signal-item + .signal-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .content-section,
  .expertise-section,
  .process-section,
  .contact-section {
    padding: 62px 0;
  }

  .service-card,
  .domain-grid article {
    min-height: auto;
    padding: 24px;
  }

  .domain-grid {
    border-left: 0;
  }

  .domain-grid article {
    border-left: 1px solid var(--line);
  }

  .process-list li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -12px;
    left: 20px;
    width: 1px;
    height: 24px;
  }

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

  .footer-main {
    flex-direction: column;
  }

  .footer-main nav {
    align-items: flex-start;
  }

  .legal {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
