@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&family=Google+Sans+Flex:wght@800&family=Instrument+Serif:ital@0;1&family=Manrope:wght@500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #EDEBE6;
}

button {
  border: 0;
  font: inherit;
}

.wrap {
  background: #EDEBE6;
  font-family: 'DM Sans', sans-serif;
  color: #1C1C18;
  padding: 16px;
}

.inner {
  background: #EDEBE6;
  border-radius: 16px;
  overflow: hidden;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #1C1C18;
  padding-bottom: 0;
  text-decoration: none;
  cursor: pointer;
}

.logo-mark {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
}

.logo-text {
  position: relative;
  font-family: 'Google Sans Flex', 'Manrope', sans-serif;
  font-weight: 800;
  line-height: .95;
}

.nav-mid {
  display: flex;
  gap: 20px;
}

.menu-toggle {
  display: none;
}

.nav-mid a {
  position: relative;
  font-size: 12px;
  color: #7A7870;
  text-decoration: none;
  padding: 8px 0;
  transition: color .28s ease, transform .28s ease;
}

.nav-mid a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: #1C1C18;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .34s ease;
}

.nav-mid a:hover,
.nav-mid a:focus-visible {
  color: #1C1C18;
  transform: translateY(-1px);
}

.nav-mid a:hover::after,
.nav-mid a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-mid a:focus-visible {
  outline: 1px solid rgba(28, 28, 24, .45);
  outline-offset: 6px;
  border-radius: 2px;
}

.nav-right {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1C1C18;
  border-bottom: 1px solid #1C1C18;
  padding-bottom: 1px;
  cursor: pointer;
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 16px;
  padding: 0 16px 16px;
  min-height: 520px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7A7870;
  margin-bottom: 20px;
}

.big-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.02;
  color: #1C1C18;
  letter-spacing: 0;
  margin-bottom: 22px;
  font-weight: 700;
  max-width: min(100%, 680px);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.big-title em {
  font-style: normal;
  color: #5A5850;
}

.hero-lead {
  max-width: 560px;
  color: #5A5850;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 36px;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 24px;
}

.meta-left {
  padding-right: 16px;
}

.meta-label {
  font-size: 11px;
  color: #9A9890;
  letter-spacing: .06em;
  margin-bottom: 2px;
}

.meta-val {
  font-size: 13px;
  color: #4A4840;
  font-weight: 300;
  line-height: 1.5;
}

.meta-year {
  font-size: 11px;
  color: #9A9890;
  margin-bottom: 4px;
}

.meta-desc {
  font-size: 11px;
  color: #6A6860;
  line-height: 1.55;
  font-weight: 300;
}

.divider {
  border: none;
  border-top: .5px solid #C8C5BC;
  margin: 20px 0;
}

.bottom-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.bottom-left > div:first-child {
  width: 100%;
}

.tech-title {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  color: #1C1C18;
  margin-bottom: 8px;
}

.tech-title-muted {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: .58em;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7A7870;
  vertical-align: middle;
  margin-left: 8px;
}

.tech-sub {
  font-size: 13px;
  color: #7A7870;
  font-weight: 300;
  line-height: 1.65;
  max-width: 520px;
}

.cta-btn {
  display: inline-block;
  margin-top: 14px;
  background: #1C1C18;
  color: #EDEBE6;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
}

.scribble {
  margin-left: auto;
  opacity: .4;
}

.hero-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 16, .72) 0%, rgba(20, 20, 16, 0) 58%);
}

.hero-card-text {
  position: relative;
  z-index: 2;
  padding: 16px;
}

.card-caption {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #F5F2EB;
  line-height: 1.05;
  margin-bottom: 6px;
}

.card-sub {
  font-size: 10px;
  color: rgba(245, 242, 235, .5);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tags {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  flex-wrap: wrap;
}

.tag {
  border: .5px solid #B8B5AE;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 11px;
  color: #5A5850;
  cursor: pointer;
  background: transparent;
}

.content-section {
  padding: 56px 16px;
  border-top: .5px solid #C8C5BC;
}

.section-kicker {
  font-size: 11px;
  color: #9A9890;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 480px);
  gap: 42px;
}

.content-section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(34px, 5vw, 70px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -1.5px;
  color: #1C1C18;
}

.section-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.section-copy p,
.service-card p,
.projects-head p,
.project-list p,
.contact-card p {
  font-size: 14px;
  color: #5A5850;
  font-weight: 300;
  line-height: 1.65;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 42px;
}

.service-card {
  min-height: 230px;
  border: .5px solid #C8C5BC;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-featured {
  position: relative;
  border-color: rgba(28, 28, 24, .42);
  box-shadow: inset 0 0 0 1px rgba(28, 28, 24, .05);
}

.service-card-featured::after {
  content: "AXA";
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: rgba(28, 28, 24, .84);
  color: #EDEBE6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 7px 10px;
  backdrop-filter: blur(8px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.service-card span {
  font-size: 11px;
  color: #9A9890;
  margin: 20px 22px auto;
}

.service-card h3,
.project-list h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.05;
  color: #1C1C18;
  margin-bottom: 10px;
}

.service-card h3,
.service-card p {
  margin-left: 22px;
  margin-right: 22px;
}

.service-card p {
  margin-bottom: 22px;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.stat-item {
  min-height: 150px;
  background: #1C1C18;
  color: #EDEBE6;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-item strong {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 400;
  line-height: .9;
}

.stat-item span {
  font-size: 11px;
  color: rgba(237, 235, 230, .65);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.projects-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.projects-head p {
  max-width: 320px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.project-list article {
  min-height: 270px;
  border-radius: 8px;
  overflow: hidden;
  background: #DCD8CE;
  display: flex;
  flex-direction: column;
}

.project-list img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.project-list h3 {
  margin: 18px 18px 10px;
}

.project-list p {
  margin: 0 18px 18px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  gap: 36px;
  align-items: end;
}

.contact-card {
  grid-column: 1 / -1;
  border-radius: 8px;
  background: #1C1C18;
  color: #EDEBE6;
  padding: 24px;
  display: grid;
  gap: 14px;
}

.contact-card a,
.contact-card a:visited {
  color: #EDEBE6;
  text-decoration: none;
  font-family: 'Instrument Serif', serif;
  font-size: 34px;
  line-height: 1;
}

.contact-card p {
  color: rgba(237, 235, 230, .66);
}

.quote-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 10px;
}

.quote-form label {
  display: grid;
  gap: 8px;
}

.quote-form span {
  font-size: 11px;
  color: #7A7870;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: .5px solid #C8C5BC;
  border-radius: 8px;
  background: rgba(255, 255, 255, .28);
  color: #1C1C18;
  font: inherit;
  font-size: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.quote-form textarea {
  resize: vertical;
  min-height: 130px;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: #1C1C18;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 0 0 3px rgba(28, 28, 24, .08);
}

.form-full {
  grid-column: 1 / -1;
}

.form-submit {
  justify-self: start;
  background: #1C1C18;
  color: #EDEBE6;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: #34342D;
  transform: translateY(-1px);
}

@media (min-width: 1120px) {
  .wrap {
    min-height: 100vh;
    padding: clamp(20px, 2.2vw, 36px);
  }

  .inner {
    max-width: 1680px;
    margin: 0 auto;
  }

  nav {
    padding: clamp(20px, 2vw, 34px) clamp(26px, 2.4vw, 44px) clamp(18px, 1.8vw, 30px);
  }

  .nav-mid {
    gap: clamp(24px, 2.4vw, 44px);
  }

  .nav-mid a {
    font-size: 15px;
  }

  .nav-right {
    font-size: 13px;
  }

  .hero {
    grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
    gap: clamp(18px, 1.6vw, 30px);
    min-height: clamp(560px, 72vh, 780px);
    padding: 0 clamp(26px, 2.4vw, 44px) clamp(22px, 2vw, 36px);
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
  }

  .big-title {
    font-size: clamp(48px, 4vw, 64px);
    margin-bottom: 24px;
    max-width: min(100%, 680px);
  }

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

  .meta-grid {
    max-width: 560px;
    margin-bottom: 30px;
  }

  .meta-label,
  .meta-year {
    font-size: 12px;
  }

  .meta-val {
    font-size: 15px;
  }

  .meta-desc {
    font-size: 12px;
    max-width: 260px;
  }

  .divider {
    margin: 24px 0;
  }

  .tech-title {
    font-size: 34px;
  }

  .tech-title-muted {
    font-size: .46em;
  }

  .tech-sub {
    max-width: 520px;
    font-size: 13px;
  }

  .cta-btn {
    margin-top: 18px;
    padding: 12px 24px;
    font-size: 12px;
  }

  .scribble svg {
    width: 76px;
    height: 76px;
  }

  .hero-card {
    border-radius: 18px;
  }

  .hero-card-text {
    padding: 24px;
  }

  .card-caption {
    font-size: 30px;
  }

  .card-sub {
    font-size: 11px;
  }

  .tags {
    padding: 0 clamp(26px, 2.4vw, 44px) clamp(26px, 2.4vw, 44px);
    gap: 10px;
  }

  .tag {
    font-size: 12px;
    padding: 9px 16px;
  }

  .content-section {
    padding: clamp(70px, 7vw, 118px) clamp(26px, 2.4vw, 44px);
  }

  .service-cards,
  .project-list,
  .stats-section {
    gap: clamp(14px, 1.2vw, 22px);
  }

  .service-card {
    min-height: 280px;
  }

  .project-list article {
    min-height: 330px;
  }
}

@media (min-width: 1700px) {
  .inner {
    min-height: calc(100vh - 72px);
  }

  .hero {
    grid-template-columns: minmax(0, .85fr) minmax(680px, 1.15fr);
  }
}

@media (max-width: 860px) {
  .wrap {
    padding: 10px;
  }

  nav {
    padding: 16px 16px 12px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .nav-mid {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    border-top: .5px solid #D4D1CA;
    padding-top: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
  }

  .hero-left {
    grid-column: auto;
  }

  .big-title {
    font-size: clamp(42px, 8vw, 60px);
    margin-bottom: 20px;
  }

  .hero-card {
    min-height: 420px;
  }

  .scribble {
    display: none;
  }

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

  .service-cards,
  .project-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .projects-head {
    display: block;
  }

  .projects-head p {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0;
    background: #EDEBE6;
  }

  .inner {
    border-radius: 0;
  }

  nav {
    padding: 16px 14px 12px;
    justify-content: center;
    position: relative;
  }

  .logo {
    width: 100%;
    justify-content: center;
    gap: 10px;
    font-size: 34px;
    text-align: center;
  }

  .logo-mark {
    width: 46px;
    height: 46px;
  }

  .logo-text {
    line-height: 1;
  }

  .nav-right {
    display: none;
  }

  .menu-toggle {
    position: absolute;
    top: 18px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(28, 28, 24, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .42);
    box-shadow: 0 12px 28px rgba(28, 28, 24, .08);
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
  }

  .menu-toggle span {
    width: 17px;
    height: 1.5px;
    border-radius: 999px;
    background: #1C1C18;
    transform-origin: center;
    transition: transform .26s ease, opacity .2s ease;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    background: rgba(255, 255, 255, .78);
    border-color: rgba(28, 28, 24, .28);
    transform: translateY(-1px);
  }

  .menu-toggle:focus-visible {
    outline: 1px solid rgba(28, 28, 24, .45);
    outline-offset: 4px;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .nav-mid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-height: 0;
    margin-top: 0;
    padding: 0 12px;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .48);
    box-shadow: 0 18px 42px rgba(28, 28, 24, .1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height .36s ease, opacity .24s ease, transform .28s ease, padding .28s ease, margin .28s ease;
  }

  .nav-mid.is-open {
    max-height: 260px;
    margin-top: 8px;
    padding: 8px 12px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-mid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #34342D;
    border-bottom: 1px solid rgba(28, 28, 24, .08);
    border-radius: 10px;
    padding: 0 12px;
  }

  .nav-mid a:last-child {
    border-bottom: 0;
  }

  .nav-mid a::after {
    display: none;
  }

  .nav-mid a:hover,
  .nav-mid a:focus-visible {
    background: rgba(237, 235, 230, .9);
    transform: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    padding: 0 14px 14px;
    gap: 12px;
  }

  .big-title {
    font-size: clamp(36px, 10vw, 48px);
    margin-bottom: 22px;
  }

  .hero-left {
    justify-content: flex-start;
    padding-top: 20px;
  }

  .hero-lead {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px;
  }

  .meta-left {
    padding-right: 0;
  }

  .bottom-left {
    display: block;
  }

  .tech-sub {
    max-width: none;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
    border-radius: 8px;
    padding: 12px 18px;
  }

  .hero-card {
    min-height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .tags {
    padding: 0 14px 14px;
    gap: 7px;
  }

  .tag {
    font-size: 10px;
    padding: 7px 10px;
  }

  .content-section {
    padding: 44px 14px;
  }

  .content-section h2 {
    font-size: 38px;
    letter-spacing: -1px;
  }

  .service-cards,
  .project-list,
  .stats-section {
    grid-template-columns: 1fr;
  }

  .service-card,
  .project-list article {
    min-height: 180px;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .form-submit {
    width: 100%;
  }
}

@media (max-width: 380px) {
  nav {
    align-items: center;
  }

  .nav-right {
    display: none;
  }

  .logo {
    font-size: 28px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .menu-toggle {
    top: 17px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .nav-mid {
    justify-content: initial;
    overflow: hidden;
    padding-bottom: 2px;
  }

  .nav-mid a {
    white-space: nowrap;
    font-size: 12px;
  }

  .big-title {
    font-size: 40px;
  }
}
