:root {
  color-scheme: light;
  --font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --color-background: #ffffff;
  --color-text: #000000;
  --color-highlight: #bee6dc;
  --color-underline: #e7cdc2;
  --color-brand-yellow: #efd6b1;
  --color-brand-purple: #b2b2cf;
  --layout-max-width: 1200px;
  --gutter-inline: clamp(1.5rem, 5vw, 4rem);
  --header-height: clamp(4.25rem, 14vw, 6rem);
  --section-scroll-offset: calc(var(--header-height) + clamp(1.5rem, 4vw, 2.5rem));
}

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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

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

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

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: clamp(1.1rem, 3.2vw, 2rem) 0 clamp(0.6rem, 2vw, 1rem);
  z-index: 1000;
  background-color: var(--color-background);
}

.header__inner {
  width: min(var(--layout-max-width), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter-inline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
}

.brand {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 0.9rem);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.2vw + 0.8rem, 2rem);
  letter-spacing: 0.02em;
}

.brand__logo {
  width: clamp(2rem, 4.2vw, 2.8rem);
  aspect-ratio: 1;
  border-radius: clamp(0.75rem, 2vw, 1.2rem);
  background: center / contain no-repeat url("../assets/sason_logo.svg");
  display: inline-block;
}

nav {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.4vw, 1.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(0.95rem, 0.6vw + 0.8rem, 1.05rem);
  letter-spacing: 0.01em;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  content: "";
  border-radius: 999px;
}

.nav__toggle-bar {
  position: relative;
  width: 100%;
  height: 2px;
}

.nav__toggle-bar::before,
.nav__toggle-bar::after {
  position: absolute;
  left: 0;
  transform-origin: center;
}

.nav__toggle-bar::before {
  top: -6px;
}

.nav__toggle-bar::after {
  top: 6px;
}

input[type="checkbox"] {
  display: none;
}

main {
  width: min(var(--layout-max-width), 100%);
  margin: 0 auto;
  padding: clamp(1rem, 6vw, 4rem) var(--gutter-inline) clamp(6rem, 18vw, 12rem);
  display: flex;
  flex-direction: column;
  gap: clamp(8rem, 26vw, 22rem);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 280px);
  justify-content: center;
}

.hero__heading {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 100%;
}

.mobile-break {
  display: none;
}

.hero__highlight {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.15em;
  z-index: 1;
}

.hero__highlight::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8em;
  height: 8em;
  background: center / contain no-repeat url("../assets/hero_circle.svg");
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  opacity: 1;
}

.hero__underline {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.hero__underline::after {
  content: "";
  position: absolute;
  left: -0.4em;
  right: -0.4em;
  bottom: -2.75em;
  height: 5.5em;
  background: url("../assets/hero_underline.svg") center bottom / 100% 100% no-repeat;
  pointer-events: none;
  z-index: -1;
}

.brand-asset-placeholder {
  display: none;
}

.hero__accent-row {
  display: none;
}

.about {
  width: 100%;
  scroll-margin-top: var(--section-scroll-offset);
}

.about__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 12vw, 8rem);
}

.about-block {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 5rem);
  max-width: min(68rem, 100%);
  margin: 0 auto;
}

.about-block--reverse {
  flex-direction: row;
}

.about-block__copy {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2rem);
  text-align: left;
}

.about-block__title {
  margin: 0;
  font-size: clamp(2rem, 3.5vw + 1rem, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-align: justify;
  text-align-last: left;
}

.about-block__title-emphasis {
  font-weight: 500;
}

.about-block__subtitle {
  margin: 0;
  font-size: clamp(1.75rem, 2.2vw + 0.8rem, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.about-block__body {
  margin: 0;
  max-width: 65ch;
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.2rem);
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: rgb(0 0 0 / 0.78);
  text-align: justify;
  text-justify: inter-word;
}

.about-block__body strong {
  font-weight: 500;
  color: var(--color-text);
}

.about-block__media {
  flex: 0 0 auto;
  margin: 0;
  display: flex;
  justify-content: center;
}

.about-block__media img {
  display: block;
  width: 100%;
  max-width: clamp(14rem, 32vw, 24rem);
  height: auto;
}

.solutions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 12vw, 8rem);
  scroll-margin-top: var(--section-scroll-offset);
}

.solutions__intro {
  text-align: center;
}

.solutions__title {
  margin: 0;
  font-size: clamp(2rem, 2vw + 1.5rem, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.solutions__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 12vw, 8rem);
}

.solution {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.solution__text {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  max-width: min(100%, 32ch);
  align-items: flex-start;
}

.solution__text--left {
  grid-column: 1;
  justify-self: end;
  text-align: left;
}

.solution__text--right {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

.solution__title {
  margin: 0;
  font-size: clamp(1.45rem, 1.2vw + 1.1rem, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.solution__body {
  margin: 0;
  color: rgb(0 0 0 / 0.7);
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.08rem);
  line-height: 1.7;
  text-align: justify;
  text-align-last: left;
}

.solution__body--secondary {
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.08rem);
}

.solution__media {
  margin: 0;
  display: flex;
  justify-content: center;
}

.solution__media--center {
  grid-column: 2;
}

.solution__media--right {
  grid-column: 3;
  justify-content: center;
}

.solution__media img {
  width: 100%;
  max-width: clamp(13rem, 28vw, 22rem);
  height: auto;
}

.solution--stations .solution__media--center img {
  max-width: clamp(15rem, 32vw, 26rem);
}

.solution--stations .solution__media--right img {
  max-width: clamp(13rem, 28vw, 22rem);
}

.team {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter-inline);
  scroll-margin-top: var(--section-scroll-offset);
}

.team__inner {
  width: min(72rem, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3rem, 8vw, 5rem);
}

.team__title {
  margin: 0;
  font-size: clamp(2rem, 1.8vw + 1.5rem, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.team__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 4rem);
  justify-items: center;
}

.team-card--highlight {
  order: -1;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  text-align: center;
}

.team-card__media {
  margin: 0;
}

.team-card__media img {
  display: block;
  width: 100%;
  max-width: clamp(11rem, 26vw, 16rem);
  height: auto;
}

.team-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.team-card__role {
  margin: 0;
  font-size: clamp(0.95rem, 0.3vw + 0.9rem, 1.05rem);
  color: rgb(0 0 0 / 0.55);
  font-style: italic;
}

.team-card__name {
  margin: 0;
  font-size: clamp(1.25rem, 0.6vw + 1.1rem, 1.6rem);
  font-weight: 600;
  color: var(--color-text);
}

.contact {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter-inline);
  scroll-margin-top: var(--section-scroll-offset);
}

.contact__inner {
  width: min(76rem, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 5rem);
  align-items: start;
}

.contact__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__title {
  margin: 0;
  font-size: clamp(2.1rem, 2vw + 1.5rem, 2.75rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact__icon {
  width: clamp(2.75rem, 6vw, 3.75rem);
  height: auto;
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.1rem);
  color: rgb(0 0 0 / 0.75);
}

.contact__label {
  margin: 0;
  font-weight: 500;
  color: var(--color-text);
}

.contact__email {
  color: var(--color-text);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.1rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: clamp(0.95rem, 0.3vw + 0.9rem, 1.05rem);
  color: rgb(0 0 0 / 0.75);
}

.contact-form__field span {
  font-weight: 500;
  color: var(--color-text);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgb(108 196 171 / 0.35);
  border-radius: 0.75rem;
  font: inherit;
  color: var(--color-text);
  background-color: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: rgb(108 196 171 / 0.8);
  box-shadow: 0 0 0 3px rgb(190 230 220 / 0.4);
}

.contact-form__submit {
  align-self: flex-end;
  padding: 0.65rem 2.5rem;
  border-radius: 0.75rem;
  border: 1.5px solid rgb(108 196 171 / 0.5);
  background-color: transparent;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.1rem);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  background-color: rgb(190 230 220 / 0.35);
}

@media (max-width: 880px) {
  header {
    align-items: center;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .nav__list {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background-color: var(--color-background);
    border-radius: 0.75rem;
    padding: 1.5rem clamp(2rem, 6vw, 3rem);
    box-shadow: 0 1.5rem 3rem -1.5rem rgb(0 0 0 / 25%);
    flex-direction: column;
    gap: 1.25rem;
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  #nav-toggle:checked ~ nav .nav__list {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  #nav-toggle:checked ~ nav .nav__toggle-bar {
    background-color: transparent;
  }

  #nav-toggle:checked ~ nav .nav__toggle-bar::before {
    top: 0;
    transform: rotate(45deg);
  }

  #nav-toggle:checked ~ nav .nav__toggle-bar::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

@media (max-width: 1070px) {
  main {
    padding-top: clamp(3rem, 10vw, 5rem);
  }

  .hero {
    text-align: center;
    align-items: center;
  }

  .hero__heading {
    line-height: 1.1;
  }

  .mobile-break {
    display: block;
  }

  .hero__accent-row {
    gap: 0.75rem;
  }

  main {
    gap: clamp(12rem, 36vw, 28rem);
  }

  .about-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-block--reverse {
    flex-direction: column;
  }

  .about-block--reverse .about-block__copy {
    order: -1;
  }

  .about-block__copy {
    align-items: center;
    text-align: center;
  }

  .about-block__title {
    text-align: justify;
    text-align-last: left;
  }

  .about-block__body {
    width: min(100%, 65ch);
    text-align: justify;
    text-justify: inter-word;
  }

  .about-block__media img {
    width: clamp(12rem, 60vw, 22rem);
  }

  .solution {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .solution__text {
    max-width: min(100%, 38ch);
    align-items: center;
  }

  .solution__body {
    text-align: justify;
    text-align-last: center;
  }

  .solution__text--left,
  .solution__text--right {
    grid-column: 1;
    justify-self: center;
  }

  .solution__text--right {
    text-align: center;
  }

  .solution__body {
    text-align: justify;
  }

  .solution--flip .solution__text--right {
    order: -1;
  }

  .solution__media--center,
  .solution__media--right {
    grid-column: 1;
  }

  .solution__media img,
  .solution--stations .solution__media--center img,
  .solution--stations .solution__media--right img {
    width: clamp(13rem, 65vw, 22rem);
  }

  .team__grid {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 7vw, 3rem);
  }

  .team-card--highlight {
    order: -1;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 8vw, 3.5rem);
  }

  .contact__heading {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  .contact__title {
    text-align: left;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-form__submit {
    align-self: stretch;
  }
}
