/* --------------------------------------------------------------------------
   Foundation
   -------------------------------------------------------------------------- */

:root {
  --bg: #e0e1da;
  --ink: #474f09;
  --olive: #474f09;
  --soft: #ffffff;
  --line: #474f09;
  --muted: #474f09;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
}
a:hover {
  color: var(--olive);
}
a:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 4px;
}
.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}
.eyebrow,
.nav,
.tag,
.index {
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}
/* --------------------------------------------------------------------------
   Site navigation
   -------------------------------------------------------------------------- */

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
}
.nav .brand {
  margin-right: auto;
  font-family: "Jost", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.nav a {
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.menu-toggle {
  display: none;
}
/* --------------------------------------------------------------------------
   Shared section layout
   -------------------------------------------------------------------------- */

.hero,
section {
  position: relative;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  z-index: 0;
  padding: 100px 0 90px;
  color: var(--soft);
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background: var(--olive);
  transform: translateX(-50%);
}
.hero::after,
section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
}
.eyebrow {
  color: var(--olive);
  font-weight: 400;
}
h1,
h2,
h3 {
  font-family: "Jost", sans-serif;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(52px, 8vw, 112px);
  letter-spacing: -0.07em;
  line-height: 0.9;
  margin: 24px 0 30px;
}
.hero h1 span {
  color: var(--soft);
}
.hero .eyebrow,
.hero .hero-foot {
  color: rgb(255 255 255 / 0.72);
}
.hero .lede {
  color: rgb(255 255 255 / 0.86);
}
.hero-foot .eyebrow {
  color: rgb(255 255 255 / 0.64);
}
.hero::after {
  border-color: rgb(255 255 255 / 0.48);
}
.lede {
  font-size: clamp(16px, 1.45vw, 19px);
  max-width: 560px;
  line-height: 1.4;
}
.hero-foot {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 65px;
  color: var(--muted);
}
section {
  padding: 82px 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(21px, 5vw, 68px);
  letter-spacing: -0.065em;
  line-height: 1.05;
  margin: 0;
  white-space: nowrap;
}
.content {
  max-width: 760px;
  margin-left: 0;
  margin-right: 0;
}
.content p {
  font-size: 17px;
}
/* --------------------------------------------------------------------------
   01 / Professional assessment
   -------------------------------------------------------------------------- */

.assessment-prose {
  font-size: 17px;
  line-height: 1.65;
  max-width: 70ch;
  margin-inline: auto;
}
#assessment .content {
  max-width: none;
}
.assessment-prose p {
  margin: 0;
}
.assessment-lead {
  font-weight: 500;
}
.assessment-group + .assessment-group {
  margin-top: 40px;
}
.assessment-subheading {
  margin: 0 0 12px;
  color: var(--olive);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.assessment-paragraphs {
  display: grid;
  gap: 20px;
}
.assessment-pullquote {
  margin: 24px 0 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--olive);
  font-family: "Jost", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.12;
}
#assessment .section-head {
  margin-bottom: 32px;
}
strong {
  font-weight: 500;
}
.muted {
  color: var(--muted);
}
.outcomes-intro {
  max-width: 760px;
  margin-top: 48px;
  margin-left: auto;
  margin-right: auto;
}
.outcomes-intro h3 {
  margin: 0;
}
.outcomes-intro p {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}
.outcomes {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  margin-left: auto;
  margin-right: auto;
}
.outcome {
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--olive);
  box-shadow: inset 0 5px 0 var(--olive);
  min-height: 160px;
}
@media (min-width: 701px) {
  .outcome:last-child {
    grid-column: 1 / -1;
  }
}
.outcome strong {
  display: block;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  margin: 10px 0;
}
.outcome p {
  font-size: 14px;
  margin: 0;
}
/* --------------------------------------------------------------------------
   02 / Code review
   -------------------------------------------------------------------------- */

#review {
  z-index: 0;
  color: var(--soft);
}
#review::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background: var(--olive);
  transform: translateX(-50%);
}
#review::after {
  border-color: rgb(255 255 255 / 0.48);
}
#review .eyebrow {
  color: var(--soft);
}
.video {
  aspect-ratio: 16/9;
  background: var(--olive);
}
.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
#review .links {
  justify-content: center;
}
#review .links a {
  border-color: var(--soft);
  color: var(--soft);
}
#review .links a:hover {
  background: var(--soft);
  color: var(--olive);
}
@media (min-width: 701px) {
  #review .content,
  #artifacts .content {
    max-width: none;
  }
  #review .content > p,
  #artifacts .content > p {
    max-width: 760px;
  }
  #review .video {
    width: min(100%, 760px);
    margin-inline: auto;
  }
  #artifacts .source-grid {
    max-width: 760px;
    margin-inline: auto;
  }
}
/* --------------------------------------------------------------------------
   03 / Enhancements
   -------------------------------------------------------------------------- */

.projects {
  display: grid;
  gap: 14px;
}
.project {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 32px;
  background: var(--soft);
  border: 1px solid var(--olive);
  box-shadow: inset 0 5px 0 var(--olive);
}
.project .index {
  white-space: nowrap;
}
.project h3 {
  font-size: clamp(28px, 3.4vw, 45px);
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin: 4px 0 18px;
}
.project p {
  max-width: 730px;
}
@media (min-width: 701px) {
  .project > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
  }
  .project > div > :not(.links) {
    grid-column: 1;
  }
  .project > div > .links {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
    justify-self: end;
    margin-top: 0;
  }
}
.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.links a,
.button {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid var(--olive);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
ion-icon {
  margin-left: 6px;
  font-size: 16px;
  vertical-align: -0.2em;
}
.links a:hover,
.button:hover {
  background: var(--olive);
  color: var(--soft);
}
/* --------------------------------------------------------------------------
   04 / The application
   -------------------------------------------------------------------------- */

#application {
  z-index: 0;
  color: var(--soft);
}
#application::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background: var(--olive);
  transform: translateX(-50%);
}
#application::after {
  border-color: rgb(255 255 255 / 0.48);
}
#application .eyebrow {
  color: var(--soft);
}
.application-copy {
  margin-left: 0;
  margin-bottom: 3rem;
}
.app-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  width: 100%;
}
.app-gallery figure {
  margin: 0;
  min-width: 0;
  padding: 20px 20px 24px;
  background: var(--soft);
  border: 1px solid var(--soft);
}
.app-gallery img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}
.app-gallery figcaption {
  padding-top: 18px;
  color: var(--olive);
  font-family: "Jost", sans-serif;
  font-size: clamp(18px, 2.1vw, 30px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}
/* --------------------------------------------------------------------------
   05 / Artifacts and source code
   -------------------------------------------------------------------------- */

.source {
  display: flex;
  flex-direction: column;
  background: var(--soft);
  padding: 32px;
  border: 1px solid var(--olive);
  box-shadow: inset 0 5px 0 var(--olive);
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.source p {
  margin: auto 0 0;
  padding-top: 24px;
}
.source .button {
  display: table;
  margin-inline: auto;
}
.notice {
  border-left: 3px solid var(--olive);
  padding: 12px 20px;
  background: var(--soft);
}
/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding: 42px 0 60px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
}
/* --------------------------------------------------------------------------
   Mobile adjustments
   -------------------------------------------------------------------------- */

@media (max-width: 700px) {
  .wrap {
    width: min(100% - 32px, 1120px);
  }
  .nav {
    justify-content: space-between;
    padding: 18px 0;
  }
  .nav .brand {
    margin-right: 0;
  }
  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-content: center;
    gap: 6px;
    color: var(--ink);
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .menu-toggle__line {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 220ms ease, translate 220ms ease;
  }
  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .menu-open .menu-toggle__line:first-child {
    translate: 0 3.5px;
    transform: rotate(45deg);
  }
  .menu-open .menu-toggle__line:nth-child(2) {
    translate: 0 -3.5px;
    transform: rotate(-45deg);
  }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 88px 32px 32px;
    visibility: hidden;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 0s linear 220ms;
  }
  .menu-open .nav-links {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 220ms ease;
  }
  .nav-links a {
    font-family: "Jost", sans-serif;
    font-size: clamp(30px, 9vw, 44px);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1;
  }
  body:has(.menu-open) {
    overflow: hidden;
  }
  .hero {
    padding: 65px 0;
  }
  section {
    padding: 55px 0;
  }
  .outcomes {
    grid-template-columns: 1fr;
  }
  .source-grid {
    grid-template-columns: 1fr;
  }
  .app-gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% - 44px);
    gap: 14px;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .app-gallery::-webkit-scrollbar {
    display: none;
  }
  .app-gallery figure {
    scroll-snap-align: center;
  }
  .project {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 24px;
  }
  .links {
    justify-content: center;
  }
  .hero-foot {
    gap: 12px;
  }
}

@media (max-width: 767px) {
  #assessment .section-head {
    margin-bottom: 28px;
  }
  .assessment-prose {
    line-height: 1.6;
  }
  .assessment-group + .assessment-group {
    margin-top: 32px;
  }
  .assessment-subheading {
    margin-bottom: 10px;
  }
  .assessment-paragraphs {
    gap: 18px;
  }
  .assessment-pullquote {
    margin-top: 20px;
    padding-left: 20px;
  }
}

