@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');

:root {
  --ink: #102a43;
  --ink-soft: #48647b;
  --paper: #f1f6fa;
  --paper-deep: #e2edf5;
  --white: #fbfdff;
  --accent: #2f78ab;
  --accent-dark: #155d8c;
  --line: rgba(16, 42, 67, 0.17);
  --shadow: 0 28px 70px rgba(16, 42, 67, 0.14);
  --radius: 22px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 18px;
  top: 14px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.site-header {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent-dark);
}

.hero {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  min-height: 720px;
  padding: 78px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.75fr);
  gap: 80px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
.statement {
  font-family: "Manrope", sans-serif;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 6.1vw, 82px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.hero-intro {
  max-width: 720px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.7;
}

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

.button {
  min-height: 52px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--white);
}

.portrait-wrap {
  position: relative;
  margin: 0;
  padding: 22px 22px 0;
}

.portrait-backdrop {
  position: absolute;
  inset: 10% 0 12%;
  border-radius: 48% 48% 18px 18px;
  background: var(--accent);
  transform: rotate(3deg);
}

.portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(460px, 49vw, 580px);
  display: block;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 48% 48% var(--radius) var(--radius);
  filter: saturate(0.88) contrast(1.02);
  box-shadow: var(--shadow);
}

figcaption {
  position: relative;
  z-index: 2;
  width: calc(100% - 34px);
  margin: -38px auto 0;
  padding: 17px 20px;
  display: flex;
  flex-direction: column;
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(16, 42, 67, 0.12);
}

figcaption span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

figcaption strong {
  font-size: 15px;
}

.proof {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof div {
  min-height: 140px;
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

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

.proof strong {
  font-family: "Manrope", sans-serif;
  font-size: 33px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.proof span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

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

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 110px;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(38px, 4.7vw, 61px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.about-copy {
  padding-top: 20px;
}

.about-copy p {
  margin: 0 0 25px;
  color: var(--ink-soft);
  font-size: 18px;
}

.about-copy p:first-child::first-letter {
  float: left;
  padding: 7px 8px 0 0;
  color: var(--accent-dark);
  font-family: "Manrope", sans-serif;
  font-size: 60px;
  font-weight: 600;
  line-height: 0.72;
}

.projects {
  width: 100%;
  max-width: none;
  padding: 115px max(24px, calc((100% - var(--max)) / 2));
  background: var(--ink);
  color: var(--white);
}

.projects .eyebrow {
  color: #88c9ee;
}

.projects-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.65fr);
  gap: 80px;
  align-items: end;
}

.projects-heading > p {
  margin: 0 0 8px;
  color: #b9c7c5;
}

.project-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  min-height: 360px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  border-color: #88c9ee;
  background: rgba(255, 255, 255, 0.04);
}

.project-number {
  color: #8fa4a3;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
}

.project-status {
  width: fit-content;
  margin-top: 45px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #cbd5d4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 18px 0 8px;
  font-size: 31px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.project-card p {
  max-width: 560px;
  margin: 0;
  color: #b9c7c5;
  font-size: 15px;
}

.project-link {
  margin-top: auto;
  padding-top: 32px;
  color: #8fd2f7;
  font-size: 13px;
  font-weight: 700;
}

.project-featured {
  background: var(--accent);
  border-color: var(--accent);
}

.project-featured .project-number,
.project-featured p {
  color: rgba(255, 255, 255, 0.86);
}

.project-featured .project-link {
  color: var(--white);
}

.project-featured:hover,
.project-featured:focus-visible {
  background: #3a86b9;
  border-color: #8fd2f7;
}

.closing {
  padding-top: 135px;
  padding-bottom: 135px;
}

.statement {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(36px, 5.1vw, 68px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-align: center;
}

.contact {
  padding: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.75fr);
  gap: 80px;
  background: var(--white);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 20px 70px rgba(16, 42, 67, 0.08);
}

.contact-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-links a {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-links a:last-child {
  border-bottom: 0;
}

.contact-links span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-links strong {
  font-size: 16px;
}

.contact-links a:hover strong,
.contact-links a:focus-visible strong {
  color: var(--accent-dark);
}

footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 80px 0 36px;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 65px;
  }

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

  .portrait-wrap {
    width: min(100%, 540px);
    margin: 0 auto;
  }

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

  .proof div:nth-child(2) {
    border-right: 0;
  }

  .proof div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .about,
  .projects-heading,
  .contact {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-copy {
    max-width: 760px;
    padding-top: 0;
  }

  .contact {
    padding: 54px;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 16px;
  }

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

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

  .brand > span:last-child {
    display: none;
  }

  nav {
    gap: 18px;
  }

  nav a {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 70px;
  }

  h1 {
    font-size: clamp(45px, 13vw, 65px);
  }

  .hero-intro {
    font-size: 17px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .portrait-wrap {
    padding: 14px 14px 0;
  }

  .proof {
    width: calc(100% - 32px);
  }

  .proof div {
    min-height: 112px;
    padding: 20px;
  }

  .proof strong {
    font-size: 27px;
  }

  .proof span {
    font-size: 11px;
  }

  .section {
    padding: 84px 0;
  }

  .projects {
    width: 100%;
    padding: 84px 16px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    margin-top: 46px;
  }

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

  .closing {
    padding-top: 95px;
    padding-bottom: 95px;
  }

  .contact {
    padding: 38px 26px;
  }

  footer {
    padding-top: 58px;
    flex-direction: column;
    gap: 8px;
  }
}

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

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