/* Adosoft Interactive */

/* Reset ------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

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

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

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

@font-face {
  font-family: "Archivo";
  src: url("/assets/font/archivo-latin-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --canvas: #191a1d;
  --surface: #202226;
  --ink: #f1f2f3;
  --muted: #a4a7ad;
  --quiet: #83868d;
  --line: #2e3036;
  --line-strong: #3d4046;
  --inverse: #101114;
  --inverse-ink: #f1f2f3;
  --inverse-muted: #a4a7ad;
  --inverse-line: #24272d;
  --bar: #26282c;
  --accent: #cfd2d7;
  --accent-hover: #ffffff;

  --bar-h: 76px;
  --max: 1240px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --r-sm: 4px;

  --step-h1: clamp(2.65rem, 1.7rem + 3.2vw, 5.2rem);
  --step-h3: clamp(1.35rem, 1.1rem + 0.7vw, 1.8rem);
  --step-lead: clamp(1.12rem, 1.02rem + 0.42vw, 1.42rem);
  --step-body: clamp(1rem, 0.97rem + 0.13vw, 1.075rem);
}

body {
  min-width: 280px;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: var(--step-body);
  font-weight: 420;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 680;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

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

::selection {
  background: #3d4046;
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  z-index: 100;
  left: -9999px;
  top: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--canvas);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.skip:focus {
  left: 0.65rem;
}

/* Shared ------------------------------------------------------------------ */

.section {
  padding-block: var(--section);
}

.kicker {
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--canvas);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--canvas);
}

.button--outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--canvas);
}

.button--light {
  border-color: var(--inverse-ink);
  background: var(--inverse-ink);
  color: var(--inverse);
}

.button--light:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--inverse);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ext {
  font-size: 0.82em;
  opacity: 0.7;
}

/* Header ------------------------------------------------------------------ */

.top {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(25, 26, 29, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 150ms ease;
}

.top.is-stuck {
  border-bottom-color: var(--line);
}

.top__bar {
  display: flex;
  max-width: none;
  min-height: var(--bar-h);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
}

.brand img {
  width: clamp(160px, 16vw, 194px);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.4vw, 2rem);
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-block: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

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

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.burger {
  display: none;
  width: 44px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
}

.burger span + span {
  margin-top: 5px;
}

@media (max-width: 760px) {
  :root {
    --bar-h: 68px;
  }

  .brand img {
    width: 158px;
  }

  .burger {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 0.45rem var(--gutter) 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--canvas);
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    display: block;
  }

  .nav li + li {
    border-top: 1px solid var(--line);
  }

  .nav a {
    display: flex;
    width: 100%;
    padding: 0.95rem 0;
    color: var(--ink);
    font-size: 1.08rem;
  }

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

/* Homepage masthead ------------------------------------------------------- */

.top--home {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bar);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.top--home.is-stuck {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.top--home .nav a {
  color: rgba(247, 246, 242, 0.72);
}

.top--home .nav a:hover,
.top--home .nav a[aria-current="page"] {
  color: var(--inverse-ink);
}

.top--home .burger {
  border-color: rgba(255, 255, 255, 0.28);
}

.top--home .burger span {
  background: var(--inverse-ink);
}

/* Homepage showcase ------------------------------------------------------- */

.firstview {
  display: flex;
  min-height: calc(100svh - var(--bar-h));
  flex-direction: column;
}

.showcase {
  display: flex;
  flex: 1;
  flex-direction: column;
  background: #0b0d11;
}

.showcase__stage {
  display: grid;
  flex: 1;
  min-height: 0;
}

.showcase__inner {
  display: grid;
  max-width: 1440px;
  align-content: center;
  align-items: center;
  padding-block: clamp(1.25rem, 3.2vh, 3.25rem);
  gap: clamp(1.75rem, 3.5vw, 3.25rem);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
}

.showcase__kicker {
  margin-bottom: 0.85rem;
  color: var(--inverse-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.showcase__name {
  color: var(--inverse-ink);
  font-size: clamp(2.4rem, 1.5rem + 2.5vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.03;
  text-wrap: balance;
}

.showcase__copy {
  max-width: 40ch;
  margin-top: 0.9rem;
  color: var(--inverse-muted);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.24rem);
  line-height: 1.55;
}

.showcase__cta {
  margin-top: clamp(1.15rem, 2vw, 1.6rem);
}

.showcase__art {
  max-width: 960px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 10px;
}

.showcase__art img,
.showcase__art video {
  width: 100%;
}

.brandrule {
  flex: none;
  height: 5px;
}

.brandrule span {
  display: block;
  height: 5px;
  background: linear-gradient(
    90deg,
    #b21236 0 20%,
    #f03812 20% 40%,
    #fe8826 40% 60%,
    #feb914 60% 80%,
    #2c9fa2 80% 100%
  );
}

.brandrule.is-caught span {
  position: fixed;
  z-index: 40;
  top: var(--bar-h);
  right: 0;
  left: 0;
}

@media (max-width: 900px) {
  .showcase__inner {
    padding-block: clamp(2.75rem, 8vw, 4rem) clamp(3.5rem, 9vw, 4.75rem);
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase__copy {
    max-width: 52ch;
  }
}

/* Homepage studio index --------------------------------------------------- */

.studio-index {
  background: var(--canvas);
}

.studio-index__inner {
  max-width: 900px;
  padding-block: clamp(1.75rem, 4.5vh, 3.75rem);
  text-align: center;
}

.studio-index .kicker {
  margin-bottom: 0.85rem;
}

.studio-index h1 {
  font-size: clamp(2rem, 1.45rem + 1.7vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.studio-index__inner > p:last-child {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.15rem);
}

/* Homepage overview ------------------------------------------------------- */

.home-overview {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.home-latest {
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
}

.home-latest h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.6rem);
  letter-spacing: -0.025em;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 980px;
  margin-inline: auto;
}

.news-card {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.news-card:hover {
  color: var(--ink);
}

.news-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.75rem;
  border-radius: 2px;
  background: #091018;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.02);
}

.news-card__title,
.news-card__copy {
  display: block;
}

.news-card__title {
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
}

.news-card__copy {
  margin-top: 0.45rem;
  color: var(--quiet);
  font-size: 0.82rem;
  line-height: 1.5;
}

.work-jump {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0.5rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  padding: 0.75rem 0 1.15rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 680;
  text-decoration: none;
}

.work-jump:hover {
  color: var(--accent);
}

/* Homepage featured work -------------------------------------------------- */

.work-showcase {
  position: relative;
  min-height: 430px;
  border-block: 1px solid var(--inverse-line);
  background: var(--inverse);
  color: var(--inverse-ink);
}

.work-showcase__inner {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 1040px;
  grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.work-showcase__art {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.work-showcase__art img {
  width: 100%;
}

.work-showcase__body {
  max-width: 36rem;
}

.work-showcase__meta {
  margin-bottom: 0.75rem;
  color: var(--inverse-muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.work-showcase__body h2 {
  margin-bottom: 1rem;
  color: var(--inverse-ink);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3.2rem);
}

.work-showcase__body > p {
  color: var(--inverse-muted);
  font-size: clamp(0.98rem, 0.94rem + 0.18vw, 1.08rem);
}

.work-showcase__body h3 {
  margin-block: 1.5rem 0.8rem;
  padding-top: 1.15rem;
  border-top: 2px solid rgba(255, 255, 255, 0.24);
  color: var(--inverse-ink);
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.work-showcase__actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--inverse-ink);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.work-showcase__actions a:hover {
  border-color: var(--inverse-ink);
  background: var(--inverse-ink);
  color: var(--inverse);
}

@media (max-width: 760px) {
  .top--home .nav {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: var(--bar);
  }

  .top--home .nav li + li {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .top--home .nav a {
    color: var(--inverse-ink);
  }

  .news-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(255px, 82vw);
    grid-template-columns: none;
    gap: 0.9rem;
    width: calc(100% + var(--gutter));
    max-width: calc(100% + var(--gutter));
    margin-right: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-right: var(--gutter);
    padding-bottom: 0.5rem;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .news-card {
    scroll-snap-align: start;
  }

  .work-showcase__inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .work-showcase__art {
    max-width: 460px;
  }
}

/* Page header ------------------------------------------------------------- */

.pagehead {
  padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.pagehead .kicker {
  margin-bottom: 1.5rem;
}

.pagehead h1 {
  max-width: 12ch;
  font-size: var(--step-h1);
}

.pagehead p {
  max-width: 45ch;
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: var(--step-lead);
}

/* Contact ----------------------------------------------------------------- */

.contact-list {
  border-top: 1px solid var(--line);
}

.contact-row {
  display: grid;
  gap: 0.75rem 2rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

.contact-row h2 {
  font-size: var(--step-h3);
}

.contact-row__copy {
  max-width: 40rem;
}

.contact-row__copy p {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.contact-row__copy a {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 620;
  text-underline-offset: 0.22em;
}

.contact-row__copy a:hover {
  color: var(--accent);
}

@media (min-width: 760px) {
  .contact-row {
    grid-template-columns: minmax(12rem, 0.45fr) minmax(0, 1fr);
  }
}

/* 404 --------------------------------------------------------------------- */

.notfound {
  display: grid;
  min-height: calc(100svh - var(--bar-h));
  place-items: center;
  padding-block: 5rem;
}

.page-404 {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.page-404 > main { display: grid; flex: 1 0 auto; }
.page-404 .notfound { min-height: 0; padding-block: clamp(2.5rem, 6vh, 4rem); }

.notfound__inner {
  max-width: 720px;
  text-align: center;
}

.notfound__inner img {
  width: 72px;
  margin: 0 auto 2rem;
}

.notfound h1 {
  font-size: var(--step-h1);
}

.notfound p {
  max-width: 42ch;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: var(--step-lead);
}

.notfound .actions {
  justify-content: center;
  margin-top: 2rem;
}

/* Footer ------------------------------------------------------------------ */

.foot {
  border-top: 1px solid var(--inverse-line);
  background: var(--inverse);
  color: var(--inverse-ink);
}

.foot__top {
  display: grid;
  gap: 2.75rem;
  padding-block: clamp(3.75rem, 7vw, 6.5rem);
}

.foot__brand img {
  width: min(220px, 75%);
}

.foot__brand p {
  max-width: 34ch;
  margin-top: 1.25rem;
  color: var(--inverse-muted);
  font-size: 0.92rem;
}

.foot h2 {
  margin-bottom: 1rem;
  color: var(--inverse-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.foot ul {
  display: grid;
  gap: 0.6rem;
}

.foot a {
  color: var(--inverse-ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.foot a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--inverse-muted);
  text-underline-offset: 0.24em;
}

.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--inverse-line);
}

.foot__bottom p,
.foot__bottom a {
  color: var(--inverse-muted);
  font-size: 0.8rem;
}

@media (min-width: 760px) {
  .foot__top {
    grid-template-columns: minmax(18rem, 1.4fr) minmax(8rem, 0.55fr) minmax(12rem, 0.75fr);
  }
}

@media (max-width: 600px) {
  .foot__bottom {
    display: grid;
  }
}
