@font-face {
  font-family: "URW Gothic";
  src: url("./fonts/urw-gothic-book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "URW Gothic";
  src: url("./fonts/urw-gothic-demi.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #151720;
  --muted: #5f6470;
  --blue: #2948d8;
  --paper: #ffffff;
  --mist: #f2f4f7;
  --line: #d9dde4;
  --rail: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #e9ecf1;
  color: var(--ink);
  font-family: "URW Gothic", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
ul,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

::selection {
  background: #ccd5ff;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid #6f83ef;
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

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

.site-shell {
  width: min(calc(100% - 40px), 1460px);
  margin: 20px auto;
  border: 1px solid #d4d8df;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(22, 27, 39, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  background: var(--paper);
  transition: border-radius 120ms ease, box-shadow 160ms ease;
}

.site-header.is-scrolled {
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(21, 23, 32, 0.08);
}

.header-inner {
  display: grid;
  min-height: 80px;
  grid-template-columns: 230px 1fr 250px;
  align-items: stretch;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.header-inner > .brand {
  padding: 0 34px;
  border-right: 1px solid var(--line);
}

.brand-mark {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
}

.main-nav a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--blue);
}

.header-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.header-contact b {
  color: var(--blue);
  font-size: 20px;
  font-weight: 400;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: pointer;
}

.menu-toggle i {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: #fff;
  transition: transform 160ms ease;
}

.folio-section {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  scroll-margin-top: 94px;
  border-bottom: 1px solid var(--line);
}

.section-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  background: #fbfbfc;
  color: #555a66;
}

.section-marker span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.section-marker::after {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 7px;
  background: var(--blue);
  content: "";
}

.hero-canvas {
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 7vw, 104px) clamp(44px, 6vw, 82px) 68px;
}

.hero-kicker {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 690px;
  margin-bottom: 28px;
  font-size: clamp(54px, 6vw, 82px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 33px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.editorial-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 35px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--blue);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.editorial-link span,
.editorial-link b {
  color: var(--blue);
  font-size: 20px;
  font-weight: 400;
}

.hero-note {
  display: grid;
  margin: auto 0 0;
  padding-top: 26px;
  grid-template-columns: 145px 1fr;
  gap: 25px;
  border-top: 1px solid var(--line);
}

.hero-note dt {
  color: #777b84;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-note dd {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 600;
}

.hero-media {
  display: grid;
  min-width: 0;
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  border-left: 12px solid var(--blue);
  background: var(--blue);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 590px;
  object-fit: cover;
  object-position: 55% center;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}

.hero-media figcaption {
  padding: 14px 22px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-body {
  min-width: 0;
  padding: clamp(80px, 8vw, 118px) clamp(44px, 6vw, 84px);
}

.services-body {
  overflow: hidden;
  background: var(--mist);
}

.services-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.58fr);
  align-items: end;
  gap: clamp(50px, 8vw, 130px);
}

.services-heading h2,
.about-copy h2,
.contact-intro h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.services-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.service-columns {
  display: grid;
  min-height: 470px;
  margin-top: 78px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.service-columns article {
  align-self: start;
  min-width: 0;
  padding: 27px 35px 42px;
  border-top: 3px solid var(--ink);
}

.service-columns article + article {
  border-left: 1px solid #cfd3db;
}

.service-columns article:nth-child(2) {
  margin-top: 62px;
}

.service-columns article:nth-child(3) {
  margin-top: 124px;
}

.service-use {
  min-height: 38px;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-transform: uppercase;
}

.service-columns h3 {
  margin-bottom: 18px;
  font-size: clamp(27px, 2.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.service-columns article > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.about-body {
  display: grid;
  grid-template-columns: minmax(390px, 0.82fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(55px, 8vw, 122px);
}

.about-media {
  position: relative;
  margin: 0;
  border-left: 12px solid var(--blue);
}

.about-media img {
  width: 100%;
  max-height: 670px;
  aspect-ratio: 0.8;
  object-fit: cover;
  clip-path: polygon(0 0, 88% 0, 100% 10%, 100% 100%, 0 100%);
}

.about-intro {
  max-width: 690px;
  margin: 27px 0 35px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.working-notes {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.working-notes li {
  position: relative;
  padding: 19px 10px 19px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
}

.working-notes li::before {
  position: absolute;
  top: 26px;
  left: 4px;
  width: 7px;
  height: 7px;
  background: var(--blue);
  content: "";
}

.contact .section-marker {
  border-color: rgba(255, 255, 255, 0.25);
  background: #213bb7;
  color: #fff;
}

.contact .section-marker::after {
  background: #fff;
}

.contact-body {
  display: grid;
  padding: clamp(72px, 8vw, 108px) clamp(44px, 6vw, 84px);
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  align-items: end;
  gap: clamp(60px, 9vw, 150px);
  background: var(--blue);
  color: #fff;
}

.contact-intro > p {
  max-width: 560px;
  margin: 28px 0 0;
  color: #dbe1ff;
  font-size: 17px;
  line-height: 1.65;
}

.contact-lines {
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.contact-lines > * {
  display: grid;
  padding: 22px 0;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  text-decoration: none;
}

.contact-lines span {
  color: #dbe1ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-lines strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(27px, 3.1vw, 46px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.footer {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
}

.footer-rail {
  border-right: 1px solid var(--line);
}

.footer-main {
  display: grid;
  min-height: 108px;
  padding: 20px 40px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 35px;
  color: #5d626d;
  font-size: 13px;
}

.footer-main p {
  margin: 0;
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 0;
  bottom: 26px;
  z-index: 40;
  padding: 11px 15px 10px;
  border: 1px solid #bfc4cd;
  border-right: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.error-shell {
  min-height: calc(100vh - 40px);
}

.error-section {
  min-height: calc(100vh - 190px);
}

.error-body {
  display: grid;
  min-height: 620px;
  padding: clamp(70px, 8vw, 118px) clamp(44px, 7vw, 100px);
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  align-items: center;
  gap: clamp(70px, 9vw, 150px);
}

.error-title h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(68px, 8vw, 112px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.error-detail {
  max-width: 390px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.error-detail p {
  margin-bottom: 35px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

@media (max-width: 1120px) {
  :root {
    --rail: 62px;
  }

  .header-inner {
    grid-template-columns: 200px 1fr 220px;
  }

  .header-inner > .brand,
  .header-contact {
    padding-right: 25px;
    padding-left: 25px;
  }

  .hero-canvas {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
  }

  .hero h1 {
    font-size: clamp(52px, 6vw, 70px);
  }

  .services-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .services-heading > p {
    max-width: 690px;
  }

  .about-body {
    grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1fr);
    gap: 55px;
  }

  .contact-body {
    grid-template-columns: 1fr;
    gap: 55px;
  }
}

@media (max-width: 820px) {
  :root {
    --rail: 100%;
  }

  html {
    scroll-padding-top: 78px;
  }

  .site-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header {
    top: 0;
    border-radius: 0;
  }

  .header-inner {
    min-height: 72px;
    grid-template-columns: auto 1fr auto auto;
    gap: 14px;
    padding: 0 20px;
  }

  .header-inner > .brand {
    padding: 0;
    border-right: 0;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 22px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 28px rgba(20, 24, 36, 0.09);
  }

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

  .main-nav a {
    padding: 13px 4px;
    font-size: 17px;
  }

  .header-contact {
    grid-column: 3;
    padding: 0;
    border-left: 0;
  }

  .menu-toggle {
    display: block;
    grid-column: 4;
  }

  .menu-toggle[aria-expanded="true"] i:first-of-type {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] i:last-of-type {
    transform: translateY(-3px) rotate(-45deg);
  }

  .folio-section {
    grid-template-columns: 1fr;
  }

  .section-marker {
    min-height: 42px;
    justify-content: flex-start;
    padding: 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-marker span {
    writing-mode: initial;
    transform: none;
  }

  .section-marker::after {
    top: 0;
    right: 0;
    bottom: 0;
    width: 7px;
    height: 100%;
  }

  .hero-canvas {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 580px;
    padding: 68px 34px 50px;
  }

  .hero h1 {
    font-size: clamp(50px, 10vw, 70px);
  }

  .hero-media {
    border-top: 10px solid var(--blue);
    border-left: 0;
  }

  .hero-media img {
    min-height: 0;
    aspect-ratio: 1.3;
  }

  .section-body {
    padding: 76px 34px;
  }

  .service-columns {
    min-height: 0;
    margin-top: 58px;
    grid-template-columns: 1fr;
  }

  .service-columns article,
  .service-columns article:nth-child(2),
  .service-columns article:nth-child(3) {
    margin-top: 0;
    padding: 27px 0 36px;
  }

  .service-columns article + article {
    border-left: 0;
  }

  .service-use {
    min-height: 0;
  }

  .about-body {
    grid-template-columns: 1fr;
  }

  .about-media {
    width: min(100%, 600px);
  }

  .contact-body {
    padding: 72px 34px;
  }

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

  .footer-rail {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 38px 24px;
    text-align: center;
  }

  .footer-main .brand {
    margin: 0 auto;
  }

  .footer-main p {
    text-align: center;
  }

  .error-shell {
    min-height: 100vh;
  }

  .error-body {
    min-height: 610px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 52px;
    padding: 70px 34px;
  }

  .error-detail {
    max-width: 500px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 0 16px;
  }

  .header-contact {
    display: none;
  }

  .hero-copy {
    min-height: 0;
    padding: 58px 20px 46px;
  }

  .hero h1 {
    font-size: clamp(43px, 12.5vw, 58px);
  }

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

  .hero-note {
    margin-top: 50px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-media img {
    aspect-ratio: 0.96;
  }

  .section-marker {
    padding: 0 20px;
  }

  .section-body {
    padding: 64px 20px;
  }

  .services-heading h2,
  .about-copy h2,
  .contact-intro h2 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .about-media {
    border-left-width: 8px;
  }

  .working-notes li {
    padding-right: 0;
  }

  .contact-body {
    padding: 62px 20px;
  }

  .contact-lines > * {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-lines strong {
    font-size: clamp(26px, 9vw, 38px);
  }

  .back-to-top {
    bottom: 16px;
  }

  .error-body {
    min-height: 560px;
    gap: 40px;
    padding: 55px 20px;
  }

  .error-title h1 {
    font-size: clamp(56px, 17vw, 76px);
  }
}

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

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