:root {
  --ink: #07131f;
  --ink-soft: #102131;
  --paper: #f4f2ed;
  --white: #ffffff;
  --slate: #687683;
  --line: rgba(8, 29, 46, 0.14);
  --red: #ef1d2f;
  --red-dark: #c90f22;
  --blue: #30327e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.page-shell {
  width: min(100% - 48px, 1400px);
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 940px;
  overflow: hidden;
  isolation: isolate;
  background: #06111d;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image {
  background-image: url("./proline-port-hero.webp");
  background-position: 60% center;
  background-size: cover;
  transform: scale(1.015);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 12, 22, 0.98) 0%, rgba(3, 12, 22, 0.92) 31%, rgba(3, 12, 22, 0.43) 64%, rgba(3, 12, 22, 0.13) 100%),
    linear-gradient(180deg, rgba(2, 8, 14, 0.62) 0%, transparent 36%, rgba(3, 11, 19, 0.48) 78%, rgba(3, 11, 19, 0.92) 100%);
}

.site-header {
  height: 100px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  width: 215px;
}

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

.primary-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.primary-nav a,
.header-contact,
.text-link {
  transition: color 180ms ease, opacity 180ms ease;
}

.primary-nav a:hover,
.header-contact:hover,
.text-link:hover {
  color: #ff6673;
}

.header-contact {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-content {
  display: flex;
  align-items: center;
  min-height: 650px;
  padding-block: 96px 70px;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 26px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow span {
  width: 34px;
  height: 2px;
  background: var(--red);
}

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

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(4rem, 7.1vw, 7rem);
  font-weight: 520;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.hero-lede {
  max-width: 690px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.65;
}

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

.button {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, background 180ms ease;
}

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

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

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.hero-proof-wrap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
}

.hero-proof {
  min-height: 146px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 16, 27, 0.64);
  backdrop-filter: blur(12px);
}

.proof-item {
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

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

.proof-item strong {
  font-size: 21px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.proof-item span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  line-height: 1.5;
}

.section-pad {
  padding-block: 128px;
}

.control-section {
  background: var(--paper);
}

.split-heading {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr;
  gap: 90px;
  align-items: end;
}

.section-kicker {
  color: var(--red);
}

.section-heading h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  font-weight: 520;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.section-heading > p,
.split-heading > p {
  margin: 0 0 8px;
  color: #596875;
  font-size: 16px;
  line-height: 1.75;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 78px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.control-grid article {
  min-height: 330px;
  padding: 36px 38px 30px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.control-grid article:last-child {
  border-right: 0;
}

.control-grid article > span {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.control-grid h3 {
  margin: 50px 0 14px;
  font-size: 24px;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.control-grid p {
  margin: 0;
  color: #61707d;
  font-size: 14px;
  line-height: 1.7;
}

.control-grid svg {
  margin-top: auto;
  color: var(--red);
}

.capabilities-section {
  position: relative;
  overflow: hidden;
  background: #081724;
  color: var(--white);
}

.capabilities-section::before {
  content: "";
  position: absolute;
  top: -340px;
  right: -220px;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  box-shadow:
    0 0 0 120px rgba(255, 255, 255, 0.015),
    0 0 0 240px rgba(255, 255, 255, 0.01);
  pointer-events: none;
}

.capabilities-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.55fr);
  column-gap: 90px;
  align-items: end;
}

.capabilities-heading .section-kicker {
  grid-column: 1 / -1;
}

.capabilities-heading h2 {
  max-width: 800px;
}

.capabilities-heading > p:last-child {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 16px;
  line-height: 1.75;
}

.capabilities-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 78px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.capabilities-grid article {
  min-height: 285px;
  padding: 32px 34px 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.015);
  transition: background 180ms ease, transform 180ms ease;
}

.capabilities-grid article:hover {
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-3px);
}

.capability-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #f23b49;
}

.capability-topline span {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.capabilities-grid h3 {
  margin: 78px 0 14px;
  font-size: 22px;
  font-weight: 540;
  letter-spacing: -0.025em;
}

.capabilities-grid article > p {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.7;
}

.process-section {
  background: #ffffff;
}

.process-heading h2 {
  max-width: 790px;
}

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

.process-list li {
  position: relative;
  min-height: 270px;
  padding: 34px 30px 25px;
  border-right: 1px solid var(--line);
}

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

.process-list li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 30px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px #ffffff;
}

.process-list > li > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.process-list h3 {
  margin: 58px 0 12px;
  font-size: 30px;
  font-weight: 540;
  letter-spacing: -0.04em;
}

.process-list p {
  max-width: 270px;
  margin: 0;
  color: #63717d;
  font-size: 13px;
  line-height: 1.75;
}

.experience-section {
  background: #e8eae7;
}

.experience-heading {
  max-width: 1000px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
  margin-top: 72px;
}

.project-card {
  position: relative;
  min-height: 500px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #f8f8f5;
  border: 1px solid rgba(8, 29, 46, 0.08);
}

.project-featured {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 50%),
    #0b1a28;
  color: var(--white);
}

.project-featured::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -230px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025);
}

.project-number {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
}

.project-body {
  position: relative;
  z-index: 1;
  max-width: 630px;
}

.project-client {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 4.4rem);
  font-weight: 520;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.project-card:not(.project-featured) h3 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
}

.project-body > p:not(.project-client) {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.7;
}

.project-card:not(.project-featured) .project-body > p:not(.project-client) {
  color: #64727e;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.project-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card:not(.project-featured) .project-tags span {
  border-color: var(--line);
  color: #65727c;
}

.project-featured > svg {
  position: absolute;
  top: 34px;
  right: 34px;
  color: rgba(255, 255, 255, 0.45);
}

.legacy-experience {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 70px;
  margin-top: 18px;
  padding: 48px 42px;
  border: 1px solid rgba(8, 29, 46, 0.1);
  background: rgba(255, 255, 255, 0.46);
}

.legacy-intro h3 {
  max-width: 420px;
  margin: 0;
  font-size: 27px;
  font-weight: 540;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.legacy-experience ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 50px;
  row-gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legacy-experience li {
  min-height: 54px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: #4f5f6c;
  font-size: 13px;
}

.closing-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 22%, rgba(255, 255, 255, 0.13), transparent 30%),
    var(--red);
  color: var(--white);
}

.closing-section::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -150px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  transform: rotate(24deg);
}

.closing-inner {
  position: relative;
  z-index: 1;
  min-height: 420px;
  padding-block: 90px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.closing-inner .section-kicker {
  color: rgba(255, 255, 255, 0.68);
}

.closing-inner h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.2rem, 6.3vw, 6.5rem);
  font-weight: 520;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.button-light {
  flex: 0 0 auto;
  background: #ffffff;
  color: #101d28;
}

.button-light:hover {
  background: #f1ece6;
}

.site-footer {
  padding-top: 76px;
  background: #06111c;
  color: var(--white);
}

.footer-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 70px;
}

.footer-brand img {
  display: block;
  width: 230px;
  height: auto;
}

.footer-brand p,
.footer-base p,
.footer-contact span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer-brand p {
  margin: 18px 0 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-contact span {
  text-transform: uppercase;
}

.footer-contact a {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.footer-base {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-base p {
  margin: 0;
}

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

  .primary-nav {
    display: none;
  }

  .hero {
    min-height: 900px;
  }

  .hero-content {
    min-height: 610px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .split-heading > p {
    max-width: 650px;
  }

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

  .capabilities-heading .section-kicker {
    grid-column: auto;
    margin-bottom: 0;
  }

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

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

  .process-list li:nth-child(2) {
    border-right: 0;
  }

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

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

  .project-card {
    min-height: 450px;
  }

  .legacy-experience {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 32px, 1400px);
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    background-position: 67% center;
  }

  .site-header {
    height: 80px;
  }

  .brand {
    width: 154px;
  }

  .header-contact span {
    display: none;
  }

  .header-contact {
    width: 42px;
    height: 42px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
  }

  .hero-content {
    min-height: 640px;
    padding-block: 78px 110px;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 4.8rem);
  }

  .hero-lede {
    margin-top: 26px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    margin-top: 34px;
  }

  .hero-proof-wrap {
    position: relative;
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .proof-item {
    min-height: 108px;
    padding: 22px 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

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

  .section-pad {
    padding-block: 88px;
  }

  .section-heading h2 {
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .control-grid {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .control-grid article {
    min-height: 280px;
    padding-inline: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .control-grid article:last-child {
    border-bottom: 0;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .capabilities-grid article {
    min-height: 250px;
  }

  .capabilities-grid h3 {
    margin-top: 58px;
  }

  .process-list {
    grid-template-columns: 1fr;
    margin-top: 58px;
  }

  .process-list li {
    min-height: 230px;
    padding-inline: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-list li:nth-child(n + 3) {
    border-top: 0;
  }

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

  .process-list li::before {
    left: 8px;
  }

  .project-grid {
    margin-top: 50px;
  }

  .project-card {
    min-height: 485px;
    padding: 28px 24px;
  }

  .project-featured > svg {
    top: 28px;
    right: 24px;
  }

  .legacy-experience {
    padding: 34px 24px;
  }

  .legacy-experience ul {
    grid-template-columns: 1fr;
  }

  .closing-inner {
    min-height: 500px;
    padding-block: 80px;
  }

  .closing-inner h2 {
    font-size: clamp(3.2rem, 14vw, 5rem);
  }

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

  .footer-contact {
    align-items: flex-start;
  }

  .footer-base {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 24px;
  }
}

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

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