:root {
  color-scheme: light dark;
  --bg: #f3f5f5;
  --surface: #fbfcfc;
  --surface-muted: #e8edef;
  --ink: #172a33;
  --muted: #596a72;
  --accent: #27597c;
  --accent-strong: #1c4867;
  --accent-soft: #dce8ee;
  --cta-bg: #27597c;
  --cta-hover: #1c4867;
  --line: rgb(23 42 51 / 16%);
  --header: rgb(243 245 245 / 88%);
  --shadow: 0 24px 70px rgb(39 89 124 / 13%);
  --radius-card: 24px;
  --radius-media: 28px;
  --radius-control: 999px;
  --container: 1240px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10191e;
    --surface: #17242b;
    --surface-muted: #1e3039;
    --ink: #eef3f5;
    --muted: #a8b7bd;
    --accent: #6d9fbe;
    --accent-strong: #8eb7cf;
    --accent-soft: #203c4b;
    --cta-bg: #27597c;
    --cta-hover: #1f4c69;
    --line: rgb(238 243 245 / 15%);
    --header: rgb(16 25 30 / 88%);
    --shadow: 0 24px 70px rgb(0 0 0 / 28%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  width: 174px;
}

.brand img {
  width: 100%;
  height: auto;
}

.brand picture,
.footer-brand {
  display: block;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a,
.language-link {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.language-link:hover {
  color: var(--ink);
}

.nav-contact,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.nav-contact,
.button-primary {
  background: var(--cta-bg);
  color: #f8fbfc;
}

.nav-contact:hover,
.button-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.nav-contact:active,
.button:active {
  transform: translateY(1px);
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-lines::before {
  transform: translateY(-6px);
}

.nav-toggle-lines::after {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  transform: translateY(1px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  transform: translateY(-1px) rotate(-45deg);
}

.hero {
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 54px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.hero-copy {
  max-width: 660px;
}

.kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.legal-hero h1 {
  max-width: 13.5ch;
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.75rem);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 0.97;
}

.hero-lead {
  max-width: 50ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-height: 670px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: var(--surface-muted);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: clamp(92px, 11vw, 152px) 0;
}

.section-compact {
  padding: clamp(72px, 9vw, 116px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 54px;
}

.section-heading h2,
.experience-intro h2,
.about-statement,
.contact-title {
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 4.9rem);
  font-weight: 580;
  letter-spacing: -0.048em;
  line-height: 1.02;
}

.section-heading p {
  max-width: 56ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.services-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.service-main,
.service-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.service-main {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(circle at 85% 18%, rgb(39 89 124 / 22%), transparent 32%),
    var(--accent-soft);
}

.service-main::after {
  position: absolute;
  right: -4%;
  bottom: -22%;
  width: 56%;
  aspect-ratio: 1;
  border: 28px solid rgb(39 89 124 / 16%);
  border-radius: 50%;
  content: "";
}

.service-main-content {
  position: relative;
  z-index: 1;
  max-width: 510px;
}

.service-main h3,
.service-row h3,
.project-item h3,
.approach-item h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  font-weight: 630;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.service-main p,
.service-row p,
.project-item p,
.approach-item p {
  max-width: 42ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.service-side {
  display: grid;
  gap: 18px;
}

.service-row {
  min-height: 241px;
  padding: clamp(26px, 3vw, 40px);
  background: var(--surface);
}

.experience-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.experience-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(54px, 9vw, 130px);
}

.experience-intro p {
  max-width: 42ch;
  margin: 24px 0 0;
  color: var(--muted);
}

.project-list {
  display: grid;
  align-content: start;
}

.project-item {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.project-item:first-child {
  padding-top: 6px;
}

.project-item:last-child {
  border-bottom: 0;
}

.project-type {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 750;
}

.certification {
  grid-column: 2;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.certification-mark {
  display: grid;
  width: 116px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(39 89 124 / 24%);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.certification-label {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
}

.certification-copy h3 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.certification-copy > p:last-child {
  max-width: 54ch;
  margin: 10px 0 0;
  color: var(--muted);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.approach-item {
  min-height: 260px;
  padding: 34px 28px 30px 0;
  border-right: 1px solid var(--line);
}

.approach-item + .approach-item {
  padding-left: 28px;
}

.approach-item:last-child {
  border-right: 0;
}

.product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-media {
  min-height: 580px;
  padding: clamp(26px, 4vw, 50px) 0 clamp(26px, 4vw, 50px) clamp(26px, 4vw, 50px);
  overflow: hidden;
  background: #edf2f4;
}

.product-media img {
  width: 128%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  border: 1px solid rgb(17 17 16 / 10%);
  border-radius: 18px 0 0 18px;
  box-shadow: 0 22px 54px rgb(35 66 85 / 14%);
}

.product-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 68px);
}

.moneytale-logo {
  width: min(245px, 78%);
  margin-bottom: 34px;
}

.product-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

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

.product-link {
  align-self: flex-start;
  margin-top: 30px;
  color: var(--accent-strong);
  font-weight: 760;
  text-decoration: none;
}

.product-link:hover {
  text-decoration: underline;
}

.about-section {
  padding-top: clamp(100px, 13vw, 178px);
}

.about-statement {
  max-width: 17ch;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(54px, 10vw, 140px);
  margin-top: 64px;
}

.about-copy {
  max-width: 65ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.about-copy p {
  margin: 0 0 18px;
}

.company-facts {
  margin: 0;
}

.company-facts div {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.company-facts dt {
  color: var(--muted);
}

.company-facts dd {
  margin: 0;
  font-weight: 680;
}

.contact-section {
  padding: clamp(94px, 12vw, 154px) 0;
  border-top: 1px solid var(--line);
}

.contact-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}

.contact-title {
  max-width: 13ch;
}

.contact-meta {
  flex: 0 0 auto;
  text-align: right;
}

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

.email-link {
  color: var(--accent-strong);
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  font-weight: 760;
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 38px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.8fr;
  align-items: start;
  gap: 36px;
}

.footer-brand {
  width: 142px;
}

.footer-brand img {
  width: 100%;
  height: auto;
}

.footer-company {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.footer-company p {
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.86rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.legal-main {
  min-height: 65dvh;
}

.legal-hero {
  padding: clamp(72px, 10vw, 120px) 0 68px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
}

.legal-updated {
  margin: 24px 0 0;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  justify-content: space-between;
  gap: 70px;
  padding: 76px 0 120px;
}

.legal-aside {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 28px);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-aside strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.legal-content h2 {
  margin: 58px 0 16px;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 28px 0 8px;
  font-size: 1.12rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content a {
  color: var(--accent-strong);
}

.not-found {
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 80px 24px;
  text-align: center;
}

.not-found img {
  width: 96px;
  margin: 0 auto 30px;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 7rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.not-found p {
  max-width: 46ch;
  margin: 22px auto 30px;
  color: var(--muted);
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr 0.82fr;
    gap: 44px;
  }

  .nav-links {
    gap: 17px;
  }

  .nav-links a {
    font-size: 0.86rem;
  }

  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach-item:nth-child(2) {
    border-right: 0;
  }

  .approach-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .product-shell {
    grid-template-columns: 1.12fr 0.88fr;
  }

  .footer-grid {
    grid-template-columns: 0.6fr 1.4fr;
  }

  .footer-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .brand {
    width: 154px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-panel {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
    background: var(--bg);
  }

  .nav-panel[data-open="true"] {
    display: flex;
  }

  .nav-links {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
    color: var(--ink);
    font-size: 1.14rem;
  }

  .nav-contact {
    align-self: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 44px;
  }

  .hero-grid,
  .services-layout,
  .experience-grid,
  .product-shell,
  .about-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-visual {
    max-height: none;
    aspect-ratio: 5 / 4;
  }

  .hero-visual img {
    object-position: center 62%;
  }

  .service-main {
    min-height: 400px;
  }

  .experience-grid {
    gap: 52px;
  }

  .certification {
    grid-column: 1;
    margin-top: -28px;
  }

  .product-media {
    min-height: 430px;
    padding-right: 0;
  }

  .product-copy {
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-meta {
    text-align: left;
  }

  .legal-layout {
    gap: 48px;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 32px;
  }

  .hero-grid {
    gap: 32px;
  }

  .kicker {
    margin-bottom: 14px;
  }

  .hero h1,
  .legal-hero h1 {
    font-size: clamp(2.85rem, 14vw, 4.2rem);
  }

  .hero-lead {
    margin-top: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 26px;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    aspect-ratio: 16 / 11;
  }

  .services-layout,
  .service-side {
    gap: 12px;
  }

  .service-main {
    min-height: 420px;
  }

  .service-row {
    min-height: auto;
  }

  .certification {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 20px;
    padding: 22px;
  }

  .certification-mark {
    width: 82px;
    font-size: 0.68rem;
  }

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

  .approach-item,
  .approach-item + .approach-item {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .approach-item:first-child {
    border-top: 0;
  }

  .product-media {
    min-height: 320px;
    padding: 20px 0 20px 20px;
  }

  .product-copy {
    padding: 36px 26px 42px;
  }

  .about-statement,
  .contact-title {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .company-facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
