@font-face {
  font-family: "Bricolage";
  src: url("./assets/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f2efe6;
  --paper-bright: #faf8f2;
  --ink: #13150f;
  --ink-soft: #4d5146;
  --rule: rgba(19, 21, 15, 0.18);
  --moss: #506653;
  --mineral: #748d91;
  --lime-wash: #e5edc8;
  --focus: #1c57d2;
  --radius: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--paper);
  scrollbar-width: thin;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: "Bricolage", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: var(--paper);
}

body::-webkit-scrollbar-thumb {
  border: 3px solid var(--paper);
  border-radius: 999px;
  background: var(--ink);
}

::selection {
  color: var(--paper-bright);
  background: var(--moss);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

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

.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;
}

.site-header,
.hero,
.principle,
.founder,
.contact,
.site-footer {
  width: min(100% - 64px, 1600px);
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.wordmark__name span {
  color: var(--moss);
  font-style: italic;
  font-weight: 400;
}

.wordmark__inc {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 550;
}

.site-nav > a:not(.contact-button) {
  text-decoration: none;
}

.site-nav > a:not(.contact-button):hover {
  text-decoration: underline;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 0 17px 0 20px;
  border-radius: 999px;
  color: var(--paper-bright);
  background: var(--ink);
  text-decoration: none;
  transition: background-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.contact-button:hover {
  background: var(--moss);
  transform: translateY(-2px);
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(390px, 0.82fr) minmax(660px, 1.18fr);
  align-items: center;
  gap: clamp(38px, 5vw, 86px);
  padding-block: clamp(42px, 6vh, 76px);
}

.hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.hero h1 {
  max-width: 9.3ch;
  margin: 0;
  font-size: clamp(3.4rem, 6.2vw, 6rem);
  font-weight: 610;
  letter-spacing: -0.038em;
  line-height: 0.94;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--moss);
}

.hero__copy > p {
  max-width: 55ch;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.62;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-weight: 620;
  text-decoration: none;
}

.text-link span {
  border-bottom: 1px solid currentColor;
}

.text-link svg {
  transition: transform 220ms var(--ease-out);
}

.text-link:hover svg {
  transform: translateY(4px);
}

.portfolio-map {
  --px: 0px;
  --py: 0px;
  position: relative;
  min-width: 0;
  height: min(68vh, 640px);
  min-height: 570px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(10, minmax(0, 1fr));
  gap: 12px;
  isolation: isolate;
}

.portfolio-map__contours {
  position: absolute;
  inset: -42px -28px;
  z-index: -1;
  width: calc(100% + 56px);
  height: calc(100% + 84px);
  overflow: hidden;
  transform: translate3d(var(--px), var(--py), 0);
  transition: transform 900ms var(--ease-out);
}

.portfolio-map__contours path {
  fill: none;
  stroke: rgba(80, 102, 83, 0.28);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.portfolio-map.is-visible .portfolio-map__contours path {
  animation: trace-contour 1300ms var(--ease-out) forwards;
}

.portfolio-map.is-visible .portfolio-map__contours path:nth-child(2) {
  animation-delay: 110ms;
}

.portfolio-map.is-visible .portfolio-map__contours path:nth-child(3) {
  animation-delay: 220ms;
}

@keyframes trace-contour {
  to { stroke-dashoffset: 0; }
}

.company {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2vw, 27px);
  overflow: hidden;
  border: 1px solid rgba(19, 21, 15, 0.14);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 360ms var(--ease-out), border-color 260ms ease;
}

.company::after {
  content: "";
  position: absolute;
  width: 62px;
  height: 28px;
  right: 14px;
  top: 14px;
  border-top: 1px solid rgba(19, 21, 15, 0.18);
  border-radius: 50%;
  opacity: 0;
  transform: rotate(-13deg) scale(.8);
  transition: opacity 260ms ease, transform 420ms var(--ease-out);
}

.company:hover {
  z-index: 3;
  border-color: rgba(19, 21, 15, 0.36);
  transform: translateY(-6px);
}

.company:hover::after {
  opacity: 1;
  transform: rotate(-13deg) scale(1);
}

.company--pullstory {
  grid-column: 1 / 7;
  grid-row: 1 / 5;
  background: #fbfaf6;
}

.company--gambit {
  grid-column: 7 / 13;
  grid-row: 1 / 6;
  background: var(--lime-wash);
}

.company--chatgrid {
  grid-column: 1 / 5;
  grid-row: 5 / 11;
  color: #f5f4ef;
  border-color: transparent;
  background: #141715;
}

.company--chatgrid::after {
  border-color: rgba(245, 244, 239, 0.24);
}

.company--merna {
  grid-column: 5 / 9;
  grid-row: 6 / 11;
  background: #eae6d9;
}

.company--terminal {
  grid-column: 9 / 13;
  grid-row: 6 / 11;
  background: #e8efe5;
}

.company__logo-frame {
  display: block;
  min-height: 50px;
}

.company__logo-frame img {
  display: block;
  width: auto;
  max-width: min(100%, 180px);
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.company--pullstory .company__logo-frame img {
  width: 150px;
}

.company--gambit .company__logo-frame img {
  width: 180px;
}

.company--chatgrid .company__logo-frame img {
  width: 154px;
}

.company--merna .company__logo-frame img {
  width: 112px;
}

.company__logo-frame--wide img {
  width: min(100%, 222px);
  max-width: 222px;
  height: auto;
  margin-top: 6px;
}

.company__copy {
  max-width: 38ch;
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.45;
}

.company--chatgrid .company__copy {
  color: #cfd5cd;
}

.company__visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 630;
  letter-spacing: 0.01em;
  opacity: 0.72;
}

.company__visit svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  transition: transform 240ms var(--ease-out);
}

.company:hover .company__visit svg {
  transform: translate(3px, -3px);
}

.principle {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: clamp(50px, 8vw, 150px);
  padding-block: 140px;
  border-top: 1px solid var(--rule);
}

.principle h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.principle p {
  max-width: 37ch;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.65;
}

.founder {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.75fr);
  gap: clamp(50px, 9vw, 150px);
  padding: clamp(70px, 9vw, 130px);
  width: min(100% - 32px, 1664px);
  border-radius: var(--radius);
  color: var(--paper-bright);
  background: var(--ink);
}

.founder__name h2 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.founder__line {
  position: relative;
  width: min(100%, 390px);
  height: 72px;
  margin-top: 52px;
  overflow: hidden;
}

.founder__line::before,
.founder__line::after {
  content: "";
  position: absolute;
  left: -8%;
  width: 116%;
  height: 70px;
  border-top: 1px solid rgba(242, 239, 230, 0.45);
  border-radius: 50%;
}

.founder__line::before {
  top: 30px;
  transform: rotate(-4deg);
}

.founder__line::after {
  top: 50px;
  transform: rotate(2deg);
}

.founder__copy {
  align-self: end;
}

.founder__lead {
  max-width: 26ch;
  margin: 0 0 28px;
  color: #f4f1e6;
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.founder__copy > p:not(.founder__lead) {
  max-width: 62ch;
  margin: 0;
  color: #bec4b8;
  font-size: 1.03rem;
  line-height: 1.68;
}

.founder code {
  padding: 0.12em 0.32em;
  border-radius: 4px;
  color: var(--paper-bright);
  background: rgba(255, 255, 255, 0.09);
  font-family: inherit;
  font-size: 0.92em;
}

.founder__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 34px;
}

.founder__links a {
  color: #e7ebd7;
  font-size: 0.88rem;
  font-weight: 620;
}

.founder__links a:focus-visible {
  outline-color: #9ec0ff;
}

.contact {
  min-height: 690px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 120px;
}

.contact h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 6rem);
  font-weight: 570;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.contact > p {
  max-width: 58ch;
  margin: 30px 0 54px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.65;
}

.contact__email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 980px;
  padding: 28px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: clamp(1.25rem, 3vw, 2.75rem);
  font-weight: 520;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.contact__email svg {
  flex: 0 0 auto;
  transition: transform 260ms var(--ease-out);
}

.contact__email:hover svg {
  transform: translateX(8px);
}

.site-footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.site-footer div {
  display: flex;
  gap: 24px;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(320px, 0.72fr) minmax(570px, 1.28fr);
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 5.7vw, 5rem);
  }

  .company {
    padding: 19px;
  }

  .company__copy {
    font-size: 0.86rem;
  }
}

@media (max-width: 1000px) {
  .site-header,
  .hero,
  .principle,
  .contact,
  .site-footer {
    width: min(100% - 40px, 1600px);
  }

  .site-nav > a:not(.contact-button) {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 64px;
    padding-block: 72px 90px;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(4rem, 9vw, 6rem);
  }

  .hero__copy > p {
    max-width: 62ch;
  }

  .portfolio-map {
    height: 680px;
  }

  .principle {
    min-height: 650px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 64px;
    padding-block: 110px;
  }

  .principle p {
    max-width: 52ch;
  }

  .founder {
    grid-template-columns: 1fr;
    gap: 88px;
  }

  .founder__copy {
    max-width: 650px;
  }
}

@media (max-width: 650px) {
  .site-header {
    min-height: 78px;
  }

  .wordmark__name {
    font-size: 1.1rem;
  }

  .wordmark__inc {
    display: none;
  }

  .contact-button {
    min-height: 42px;
    padding-inline: 15px 12px;
  }

  .contact-button span {
    font-size: 0;
  }

  .contact-button span::after {
    content: "Contact";
    font-size: 0.84rem;
  }

  .hero {
    gap: 54px;
    padding-block: 58px 72px;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(3.15rem, 14vw, 4.6rem);
    line-height: 0.95;
  }

  .hero__copy > p {
    margin-top: 24px;
  }

  .portfolio-map {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 10px;
  }

  .portfolio-map__contours {
    inset: -30px -20px;
    width: calc(100% + 40px);
    height: calc(100% + 60px);
  }

  .company,
  .company--pullstory,
  .company--gambit,
  .company--chatgrid,
  .company--merna,
  .company--terminal {
    grid-column: 1;
    grid-row: auto;
    min-height: 255px;
    padding: 24px;
  }

  .company--gambit,
  .company--chatgrid {
    min-height: 285px;
  }

  .company__copy {
    max-width: 42ch;
    font-size: 0.94rem;
  }

  .principle {
    min-height: auto;
    gap: 48px;
    padding-block: 105px;
  }

  .principle h2 {
    font-size: clamp(3rem, 13vw, 4.7rem);
  }

  .principle p {
    font-size: 1.04rem;
  }

  .founder {
    width: calc(100% - 20px);
    gap: 70px;
    padding: 72px 26px;
  }

  .founder__name h2 {
    font-size: clamp(3.8rem, 17vw, 5.5rem);
  }

  .contact {
    min-height: 620px;
    padding-block: 105px;
  }

  .contact h2 {
    font-size: clamp(3.4rem, 15vw, 5.4rem);
  }

  .contact__email {
    align-items: flex-end;
    font-size: clamp(0.92rem, 4.2vw, 1.15rem);
    overflow-wrap: anywhere;
  }

  .site-footer {
    min-height: 130px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .portfolio-map__contours path {
    stroke-dashoffset: 0;
  }
}

@media (prefers-contrast: more) {
  :root {
    --rule: rgba(19, 21, 15, 0.46);
    --ink-soft: #303329;
  }

  .company {
    border-color: currentColor;
  }
}
