:root {
  --ink: #082c4f;
  --ink-deep: #061e36;
  --blue: #159bd2;
  --blue-bright: #38bdf2;
  --mist: #eef6fa;
  --paper: #f9fbfc;
  --white: #ffffff;
  --muted: #607489;
  --line: #ccdde7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-deep);
  font-family: Arial, Helvetica, sans-serif;
}

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

.site-header,
.hero,
.section,
footer {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.site-header {
  min-height: 94px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 10px 10px 16px 10px;
  background: linear-gradient(145deg, var(--ink), var(--blue));
  color: white;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.08em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
  letter-spacing: 0.15em;
}

.brand small {
  margin-top: 2px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}

nav a,
.text-link,
footer a {
  transition: color 180ms ease;
}

nav a:hover,
.text-link:hover,
footer a:hover {
  color: var(--blue);
}

.header-cta {
  justify-self: end;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: 180ms ease;
}

.header-cta:hover {
  background: var(--ink);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 700px;
  padding: 72px 0 82px;
  align-items: center;
  gap: 70px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 28px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.99;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(56px, 6.2vw, 94px);
}

.hero h1 em {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lead {
  max-width: 690px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 56px;
  padding: 0 25px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover {
  background: var(--blue);
}

.text-link {
  font-size: 14px;
  font-weight: 700;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 58px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.trust-line span::before {
  content: "✓";
  margin-right: 8px;
  color: var(--blue);
}

.portrait-wrap {
  position: relative;
  align-self: stretch;
  min-height: 570px;
  overflow: hidden;
  border-radius: 8px 8px 120px 8px;
  background: #dde4e9;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 30, 54, 0.32));
  pointer-events: none;
}

.portrait {
  width: 100%;
  height: 100%;
  min-height: 570px;
  display: block;
  object-fit: cover;
  object-position: 61% center;
}

.portrait-label {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 24px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.portrait-label span,
.portrait-label small {
  display: block;
}

.portrait-label span {
  font-weight: 800;
}

.portrait-label small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.section {
  padding: 112px 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.intro h2,
.section-heading h2,
.skills-copy h2 {
  font-size: clamp(42px, 5vw, 68px);
}

.intro > div {
  max-width: 850px;
}

.intro p:last-child {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.services {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1280px) / 2));
  background: var(--mist);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}

.section-heading .section-kicker {
  padding-top: 10px;
}

.service-grid {
  border-top: 1px solid #bad2de;
}

.service-card {
  display: grid;
  grid-template-columns: 0.42fr 1fr auto;
  gap: 80px;
  align-items: start;
  padding: 38px 0;
  border-bottom: 1px solid #bad2de;
  transition: padding 180ms ease, background 180ms ease;
}

.service-card:hover {
  padding-inline: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.card-number,
.skill-row span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 29px;
  letter-spacing: -0.02em;
}

.service-card p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.card-arrow {
  color: var(--blue);
  font-size: 24px;
}

.skills-section {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  padding-inline: max(24px, calc((100vw - 1280px) / 2));
  background: var(--ink);
  color: var(--white);
}

.section-kicker.light {
  color: var(--blue-bright);
}

.skills-copy h2 {
  color: white;
}

.skills-copy > p:last-child {
  max-width: 520px;
  margin: 28px 0 0;
  color: #b9cddd;
  font-size: 18px;
  line-height: 1.7;
}

.skill-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.skill-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.skill-row strong {
  font-size: 17px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps li {
  min-height: 300px;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.steps li:first-child {
  padding-left: 0;
}

.steps li:last-child {
  border-right: 0;
}

.steps span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.steps h3 {
  margin: 84px 0 18px;
  color: var(--ink);
  font-size: 29px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1280px) / 2));
  background: var(--blue);
  color: white;
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: start;
}

.contact h2 {
  max-width: 760px;
  color: white;
  font-size: clamp(52px, 6vw, 84px);
}

.contact-copy p {
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.65;
}

.contact-intro {
  max-width: 590px;
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.65;
}

.contact-address {
  display: grid;
  gap: 6px;
  margin: 0 0 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
}

.contact-address span:first-child {
  font-weight: 800;
}

.contact-address a {
  width: fit-content;
}

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

.button-light {
  background: white;
  color: var(--ink);
}

.button-light:hover {
  background: var(--ink);
  color: white;
}

.form-card {
  padding: 34px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-deep);
  box-shadow: 0 22px 60px rgba(6, 30, 54, 0.16);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.form-row label span,
.required-note {
  color: var(--muted);
  font-weight: 400;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-deep);
  font: inherit;
}

.form-row textarea {
  min-height: 132px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(21, 155, 210, 0.22);
  border-color: var(--blue);
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 22px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.consent a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-submit {
  border: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.required-note {
  margin: 12px 0 0;
  font-size: 11px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.form-notice.success {
  background: #e4f6eb;
  color: #155c35;
}

.form-notice.error {
  background: #fff0ed;
  color: #8b2b21;
}

footer {
  min-height: 160px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

footer > div {
  justify-self: end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-meta {
  display: grid;
  gap: 6px;
  margin: 0;
  text-align: center;
}

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

.legal-content {
  width: min(100% - 48px, 860px);
  margin: 0 auto;
  padding: 90px 0 120px;
}

.legal-content h1 {
  margin: 0 0 58px;
  color: var(--ink);
  font-size: clamp(50px, 7vw, 82px);
  letter-spacing: -0.05em;
}

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

.legal-content h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.legal-content p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.72;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  margin-top: 32px !important;
  padding: 20px;
  border-left: 4px solid var(--blue);
  background: var(--mist);
}

.legal-back {
  margin-top: 46px !important;
}

.legal-footer {
  min-height: 100px;
  border-top: 1px solid var(--line);
}

.message-page {
  width: min(100% - 48px, 860px);
  min-height: calc(100vh - 94px);
  margin: 0 auto;
  padding: 120px 0;
}

.message-page h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 7vw, 80px);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.message-page p:not(.section-kicker) {
  max-width: 640px;
  margin: 30px 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.message-page p a {
  color: var(--blue);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 56px;
  }

  .portrait-wrap {
    min-height: 520px;
  }

  .intro,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    grid-template-columns: 64px 1fr auto;
    gap: 24px;
  }

  .skills-section,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .section,
  footer {
    width: min(100% - 32px, 1280px);
  }

  .form-card {
    padding: 24px;
  }

  .legal-content {
    width: min(100% - 32px, 860px);
    padding: 62px 0 84px;
  }

  .message-page {
    width: min(100% - 32px, 860px);
    padding: 80px 0;
  }

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

  .legal-footer .footer-links {
    justify-self: start;
  }

  .site-header {
    min-height: 78px;
  }

  .header-cta {
    padding: 11px 14px;
  }

  .hero {
    min-height: 0;
    padding: 46px 0 62px;
  }

  .hero h1 {
    font-size: clamp(49px, 16vw, 66px);
  }

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

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-line {
    flex-direction: column;
  }

  .portrait-wrap,
  .portrait {
    min-height: 440px;
  }

  .section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .services,
  .skills-section,
  .contact {
    width: 100%;
  }

  .service-card {
    grid-template-columns: 40px 1fr;
  }

  .card-arrow {
    display: none;
  }

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

  .steps li,
  .steps li:first-child {
    min-height: 240px;
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps li:last-child {
    border-bottom: 0;
  }

  .steps h3 {
    margin-top: 54px;
  }

  footer {
    grid-template-columns: 1fr auto;
    padding: 32px 0;
  }

  footer > p {
    display: none;
  }
}

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

  * {
    transition: none !important;
  }
}
