@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/dm-mono-300-site.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-400-site.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-mono-500-site.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/manrope-400-600-site.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-italic-400-site.woff2") format("woff2");
}

:root {
  --ink: #07110f;
  --ink-soft: #12201d;
  --paper: #f1f0e9;
  --paper-deep: #deddd4;
  --mint: #a8f3cf;
  --lime: #d8f379;
  --line: rgba(7, 17, 15, 0.17);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  --serif: "Newsreader", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--ink);
  background: var(--mint);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.section-shell,
.site-header {
  padding-inline: clamp(24px, 5vw, 78px);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 94px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: inherit;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
}

.brand-lys {
  color: var(--mint);
}

.site-header nav {
  display: flex;
  gap: 36px;
}

.site-header nav a,
.language-switch {
  color: inherit;
  font: 400 0.72rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a {
  position: relative;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.site-header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switch {
  justify-self: end;
  padding: 8px 0;
  opacity: 0.65;
}

.language-switch a {
  color: inherit;
  text-decoration: none;
}

.language-switch a:hover {
  color: var(--mint);
}

.language-current {
  color: var(--mint);
  opacity: 1;
}

.hero {
  position: relative;
  min-height: min(940px, 100vh);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 74% 46%, rgba(42, 105, 81, 0.48), transparent 31%),
    radial-gradient(circle at 97% 10%, rgba(121, 97, 47, 0.2), transparent 28%),
    var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to right, transparent 35%, #000);
}

.hero-copy {
  z-index: 2;
  min-width: 0;
  max-width: 770px;
  padding-top: 74px;
}

.eyebrow,
.section-index,
.project-type {
  font: 400 0.7rem/1.5 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--mint);
}

.hero h1 {
  max-width: 790px;
  margin: 30px 0 28px;
  font-size: clamp(4rem, 7.35vw, 7.6rem);
  font-weight: 500;
  line-height: 0.87;
  letter-spacing: -0.075em;
}

h1 em,
h2 em {
  font-family: var(--serif);
  font-weight: 400;
}

.hero h1 em {
  color: var(--mint);
}

.hero-intro {
  max-width: 620px;
  margin: 0;
  color: rgba(241, 240, 233, 0.7);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 190px;
  padding: 16px 19px;
  border: 1px solid transparent;
  font: 500 0.74rem/1 var(--mono);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

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

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

.button-primary:hover {
  background: var(--lime);
}

.text-link {
  position: relative;
  display: inline-block;
  width: max-content;
  font: 400 0.75rem/1.4 var(--mono);
  text-decoration: none;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 220ms ease;
}

.text-link:hover::after {
  transform: scaleX(0.25);
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  aspect-ratio: 1;
  justify-self: end;
}

.generative-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.field-rings {
  fill: none;
  stroke: rgba(168, 243, 207, .13);
  stroke-width: 1;
  stroke-dasharray: 2 8;
  vector-effect: non-scaling-stroke;
  transform-origin: center;
  animation: field-rotate 45s linear infinite;
}

.n-echoes {
  fill: none;
  stroke: rgba(168, 243, 207, .11);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.n-body {
  fill: url(#nFill);
  opacity: .72;
  transform-box: fill-box;
  transform-origin: center;
  animation: n-breathe 6s ease-in-out infinite;
}

.n-lines {
  fill: none;
  stroke: rgba(7, 17, 15, .38);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.n-highlight {
  fill: none;
  stroke: rgba(216, 243, 121, .72);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.word-letters {
  transform-box: fill-box;
  transform-origin: left center;
  animation: word-arrive 7s cubic-bezier(.2, .8, .2, 1) infinite;
}

.word-rest {
  fill: var(--paper);
  font: 600 68px var(--sans);
  letter-spacing: -5px;
}

.word-lys {
  fill: var(--mint);
}

.word-rule {
  fill: none;
  stroke: rgba(168, 243, 207, .42);
  stroke-width: 1;
  stroke-dasharray: 324;
  vector-effect: non-scaling-stroke;
  animation: rule-draw 7s ease-in-out infinite;
}

.word-caption {
  fill: rgba(241, 240, 233, .42);
  font: 300 8px var(--mono);
  letter-spacing: 2px;
}

.scan-line {
  fill: none;
  stroke: rgba(168, 243, 207, .45);
  stroke-width: 1;
  stroke-dasharray: 3 8;
  vector-effect: non-scaling-stroke;
  animation: scan 5.5s ease-in-out infinite;
}

@keyframes field-rotate {
  to { transform: rotate(360deg); }
}

@keyframes scan {
  0%, 100% { transform: translateY(-145px); opacity: 0; }
  15%, 85% { opacity: 1; }
  50% { transform: translateY(145px); }
}

@keyframes word-arrive {
  0%, 10% { opacity: 0; transform: translateX(-34px); }
  24%, 80% { opacity: 1; transform: translateX(0); }
  94%, 100% { opacity: 0; transform: translateX(10px); }
}

@keyframes rule-draw {
  0%, 14% { stroke-dashoffset: 324; opacity: 0; }
  30%, 80% { stroke-dashoffset: 0; opacity: 1; }
  94%, 100% { stroke-dashoffset: -324; opacity: 0; }
}

@keyframes n-breathe {
  0%, 100% { opacity: .55; }
  35%, 78% { opacity: .82; }
}

.scroll-cue {
  position: absolute;
  bottom: 0;
  left: clamp(24px, 5vw, 78px);
  width: 1px;
  height: 68px;
  overflow: hidden;
  background: rgba(241, 240, 233, 0.2);
}

.scroll-cue span {
  position: absolute;
  width: 100%;
  height: 36%;
  background: var(--mint);
  animation: scroll 2s ease-in-out infinite;
}

.statement {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  padding-block: clamp(110px, 14vw, 220px);
  border-bottom: 1px solid var(--line);
}

.section-index {
  margin: 12px 0 0;
  color: rgba(7, 17, 15, 0.48);
}

.statement > div {
  max-width: 1050px;
}

.statement h2,
.section-heading h2,
.quebec h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5.1vw, 5.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.statement h2 em,
.approach h2 em {
  color: #2b725b;
}

.statement > div > p {
  max-width: 610px;
  margin: 46px 0 0 auto;
  color: rgba(7, 17, 15, 0.63);
  font-size: 1.05rem;
  line-height: 1.75;
}

.work,
.approach {
  padding-block: clamp(100px, 12vw, 185px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  margin-bottom: 70px;
}

.project {
  position: relative;
  overflow: hidden;
}

.project-featured {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) 1.15fr;
  color: var(--paper);
  background: #163c32;
}

.project-number {
  position: absolute;
  z-index: 3;
  top: 25px;
  left: 28px;
  font: 400 0.7rem/1 var(--mono);
  opacity: 0.58;
}

.project-copy {
  z-index: 2;
}

.project-featured .project-copy {
  align-self: end;
  padding: 70px 55px 55px;
}

.project-type {
  margin: 0 0 18px;
  opacity: 0.55;
}

.project h3 {
  margin: 0 0 20px;
  font-size: clamp(2.15rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
}

.project-copy > p:not(.project-type) {
  max-width: 470px;
  margin: 0 0 30px;
  color: currentColor;
  font-size: 0.97rem;
  line-height: 1.68;
  opacity: 0.67;
}

.project-art {
  position: relative;
  min-height: 470px;
  background:
    radial-gradient(circle at 50% 50%, rgba(216, 243, 121, .16), transparent 40%),
    linear-gradient(135deg, #0d2c25, #0a1e1a);
}

.project-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
}

.word-card {
  position: absolute;
  width: clamp(180px, 20vw, 285px);
  padding: 26px 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 25px 60px rgba(0,0,0,.24);
  transform: rotate(var(--angle));
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
}

.project:hover .word-card {
  transform: rotate(0) translateY(-7px);
}

.word-card span {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-style: italic;
}

.word-card small {
  font: 400 0.58rem/1 var(--mono);
  opacity: 0.5;
}

.word-card-one { --angle: -7deg; top: 15%; left: 15%; }
.word-card-two { --angle: 6deg; top: 39%; right: 8%; background: var(--mint); }
.word-card-three { --angle: -2deg; bottom: 8%; left: 7%; background: var(--lime); }

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-small {
  min-height: 590px;
  padding: 60px 55px 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-top: 0;
}

.project-small + .project-small {
  border-left: 0;
}

.project-small .project-number {
  color: var(--ink);
}

.project-small h3 {
  font-size: clamp(2rem, 3.5vw, 3.8rem);
}

.engine-art {
  position: absolute;
  inset: 0 0 42% 0;
  overflow: hidden;
  background: var(--ink);
  perspective: 400px;
}

.engine-grid {
  position: absolute;
  inset: -40% -20% -20%;
  background-image: linear-gradient(rgba(168,243,207,.32) 1px, transparent 1px), linear-gradient(90deg, rgba(168,243,207,.32) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: rotateX(63deg) rotateZ(-13deg);
  animation: drift 12s linear infinite;
}

.code-line {
  position: absolute;
  right: 28px;
  bottom: 24px;
  color: var(--mint);
  font: 300 0.7rem/1 var(--mono);
}

.project-open {
  color: var(--ink);
  background: var(--lime);
}

.open-symbol {
  position: absolute;
  top: 7%;
  right: 8%;
  font-size: clamp(8rem, 17vw, 16rem);
  font-weight: 300;
  line-height: 1;
  transition: transform 900ms cubic-bezier(.2,.8,.2,1);
}

.project-open:hover .open-symbol {
  transform: rotate(120deg);
}

.approach {
  color: var(--paper);
  background: var(--ink);
}

.approach .section-index {
  color: rgba(241, 240, 233, 0.43);
}

.principles {
  margin-left: 25%;
  border-top: 1px solid rgba(241, 240, 233, .16);
}

.principle {
  display: grid;
  grid-template-columns: 70px minmax(180px, .65fr) 1fr;
  gap: 30px;
  align-items: start;
  padding: 39px 0;
  border-bottom: 1px solid rgba(241, 240, 233, .16);
}

.principle span {
  color: var(--mint);
  font: 300 0.67rem/1.5 var(--mono);
}

.principle h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.principle p {
  max-width: 460px;
  margin: 0;
  color: rgba(241, 240, 233, .58);
  font-size: .92rem;
  line-height: 1.65;
}

.quebec {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8vw;
  background: var(--paper-deep);
}

.quebec-mark {
  position: relative;
  aspect-ratio: 1.5;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--mint);
  border: 1px solid rgba(7, 17, 15, .2);
  background: var(--ink);
  box-shadow: 0 30px 80px rgba(7, 17, 15, .16);
  font: 400 clamp(2rem, 5vw, 5rem)/1 var(--mono);
  letter-spacing: -0.09em;
}

.quebec-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(168, 243, 207, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 243, 207, .16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.quebec-mark::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(168, 243, 207, .18);
}

.quebec-copy h2 {
  margin: 27px 0 35px;
}

.quebec-copy > p:last-child {
  max-width: 580px;
  color: rgba(7,17,15,.63);
  line-height: 1.75;
}

.contact {
  min-height: 650px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 100%, rgba(43,114,91,.38), transparent 43%),
    var(--ink);
}

.contact .eyebrow {
  margin-bottom: 28px;
}

.contact h2 {
  font-size: clamp(3.6rem, 7vw, 7.3rem);
  line-height: .91;
}

.button-light {
  margin-top: 55px;
  color: var(--ink);
  background: var(--paper);
}

.button-light:hover {
  background: var(--mint);
}

.site-footer {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: rgba(241,240,233,.55);
  background: var(--ink);
  border-top: 1px solid rgba(241,240,233,.12);
  font: 300 0.65rem/1.4 var(--mono);
  text-transform: uppercase;
}

.site-footer .brand {
  color: var(--paper);
  text-transform: none;
}

.site-footer p:last-child {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scroll {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(280%); }
}

@keyframes drift {
  to { background-position: 0 88px, 88px 0; }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 920px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 430px;
    padding-top: 130px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-visual {
    width: min(590px, 95vw);
    margin: -30px auto -70px;
    justify-self: center;
  }

  .statement,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .statement > div > p {
    margin-left: 0;
  }

  .project-featured {
    grid-template-columns: 1fr;
  }

  .project-art {
    grid-row: 1;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-small + .project-small {
    border-left: 1px solid var(--line);
  }

  .principles {
    margin-left: 0;
  }

  .quebec {
    grid-template-columns: minmax(220px, .7fr) 1fr;
  }
}

@media (max-width: 640px) {
  .section-shell,
  .site-header {
    padding-inline: 20px;
  }

  .site-header {
    height: 76px;
  }

  .hero {
    min-height: 850px;
    grid-template-rows: auto 350px;
    padding-top: 115px;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 4rem);
    letter-spacing: -0.065em;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 27px;
    margin-top: 32px;
  }

  .hero-visual {
    margin-top: 0;
  }

  .statement h2,
  .section-heading h2,
  .quebec h2 {
    font-size: clamp(2.45rem, 11vw, 3.7rem);
  }

  .statement {
    gap: 25px;
  }

  .section-heading {
    gap: 24px;
    margin-bottom: 45px;
  }

  .project-featured {
    min-height: 740px;
  }

  .project-featured .project-copy,
  .project-small {
    padding: 70px 25px 34px;
  }

  .project-art {
    min-height: 390px;
  }

  .word-card {
    width: 205px;
    padding: 20px;
  }

  .word-card-two {
    right: -4%;
  }

  .project-small {
    min-height: 525px;
  }

  .principle {
    grid-template-columns: 35px 1fr;
    gap: 16px;
  }

  .principle p {
    grid-column: 2;
  }

  .quebec {
    min-height: 750px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 85px;
  }

  .quebec-mark {
    width: 65%;
    justify-self: center;
  }

  .contact {
    min-height: 590px;
  }

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

  .site-footer {
    min-height: 180px;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .site-footer > p:nth-child(2) {
    justify-self: end;
  }

  .site-footer p:last-child {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .word-letters {
    opacity: 1;
    transform: none;
  }

  .word-rule {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  .n-body {
    opacity: .72;
  }

  .scan-line {
    opacity: .35;
    transform: none;
  }
}

/* Error pages */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 70% 35%, rgba(42, 105, 81, .28), transparent 36%),
    var(--ink);
  color: var(--paper);
}

.error-page .site-header {
  position: relative;
}

.error-main {
  width: min(100% - 48px, 1380px);
  min-height: calc(100vh - 220px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-content {
  max-width: 760px;
  padding: 80px 0;
}

.error-code {
  margin: 0 0 18px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.error-title {
  margin: 0;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: .86;
  letter-spacing: -.075em;
}

.error-title em {
  color: var(--lime);
  font-family: var(--serif);
  font-weight: 400;
}

.error-copy {
  max-width: 580px;
  margin: 34px auto 0;
  color: var(--paper-muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.error-actions {
  margin-top: 36px;
}

.error-page .site-footer {
  width: min(100% - 48px, 1380px);
  min-height: 110px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .error-main,
  .error-page .site-footer {
    width: min(100% - 36px, 1380px);
  }

  .error-page .site-header nav {
    display: none;
  }
}
