/* vuerso® studio — homepage (draft identity, 2026-10-21)
   Colours from the owner's "Obsidian Chrome" reference (Figma Vuerso, image 36): Onyx #0A0A0A, Blue Slate #536878, Alabaster Grey #E5E4E2.
   Type: Onest (OFL), the free match for the draft wordmark's TT Commons Pro Bold. */

@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --ink: #0a0a0a;          /* Onyx */
  --slate: #536878;        /* Blue Slate: secondary text, AA on white (5.6:1) */
  --alabaster: #e5e4e2;    /* Alabaster Grey: hairlines, dark-section text */
  --line: #e5e4e2;
  --m: clamp(16px, 2.5vw, 36px);      /* page margin */
  --g: clamp(12px, 1.4vw, 20px);      /* column gap */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 1px; }

.wrap { padding-inline: var(--m); }
.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 10; background: var(--ink); color: var(--white); padding: 10px 14px; font-weight: 600; text-decoration: none; }

/* small type: the lockup's own sub-line style (bold caps, tight) */
.label {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.label--mute { color: var(--slate); }
.sep { display: inline-block; width: 1.15em; text-align: center; }

.display {
  font-size: clamp(36px, 5.1vw, 78px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.035em;
}
.lead {
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -.012em;
}
.arr { display: inline-block; transition: transform .45s var(--ease-out); }

/* ---------- opening ---------- */
.top {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--m) 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.nav a { text-decoration: none; }
.nav__links a { position: relative; }
.nav__links a::after, .cta::after, .more::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.cta, .more { position: relative; text-decoration: none; font-weight: 600; white-space: nowrap; }
.cta::after, .more::after { transform: scaleX(1); transform-origin: left; opacity: .9; }
@media (hover: hover) {
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
  .cta:hover .arr, .more:hover .arr { transform: translateX(4px); }
  .more:hover .arr { transform: translate(3px, -3px); }
}

.lockup {
  container-type: inline-size;
  margin: clamp(28px, 7vh, 88px) var(--m) 0;
  font-weight: 700;
}
.lockup__word {
  display: block;
  font-size: calc(100cqw / 6.64);
  line-height: .78;
  letter-spacing: -.01em;
  white-space: nowrap;
  padding-top: .06em;
}
.reg {
  display: inline-block;
  width: .37em;
  height: .37em;
  margin: 0 .3em 0 -.015em;
  vertical-align: .355em;
}
.lockup__sub {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(14px, 1.6vw, 26px);
  font-size: clamp(12px, 1.15vw, 17px);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.hero {
  flex: 1;
  position: relative;
  min-height: 380px;
  margin: 0 var(--m);
}
.hero canvas.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}
/* the panther's box; the drawing is fitted inside it (object-fit: contain), JS reads the same fit */
.panther {
  position: absolute;
  top: clamp(24px, 7%, 72px);
  bottom: var(--hero-pad);
  left: 28%;
  right: 0;
  pointer-events: none;
}
.panther__still { width: 100%; height: 100%; object-fit: contain; object-position: 100% 100%; }
.js-live .panther__still { visibility: hidden; }
.hero { --hero-pad: clamp(28px, 6vh, 56px); }
.hero__copy {
  position: absolute;
  left: 0;
  bottom: var(--hero-pad);
  width: min(25%, 380px);
  z-index: 1;
  pointer-events: none;
}
.hero__copy a { pointer-events: auto; }
.hero__lead {
  font-size: clamp(19px, 1.7vw, 26px);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -.018em;
}
.cta--hero { display: none; }

/* ---------- work ---------- */
.work { padding-top: clamp(96px, 13vw, 200px); }
.work__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
}

.feature__media, .card__media, .wide__media {
  display: block;
  position: relative;
  overflow: hidden;
}
.feature__media picture, .card__media picture, .wide__media picture { display: block; height: 100%; background: #f1f1f0; }
.feature__media img:not(.feature__mark), .card__media img, .wide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
@media (hover: hover) {
  .feature__media:hover img:not(.feature__mark), .card__media:hover img, .wide__media:hover img { transform: scale(1.025); }
}
.feature__media { aspect-ratio: 16 / 9; max-height: 94svh; width: 100%; }
.feature__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(150px, 30vw, 470px);
  height: auto;
  translate: -50% -50%;
  filter: drop-shadow(0 2px 24px rgba(10, 10, 10, .28));
  pointer-events: none;
}

.meta { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
.meta__k { color: var(--slate); }
.meta__t {
  font-size: clamp(28px, 2.9vw, 44px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.03em;
}
.meta__d { max-width: 44ch; color: var(--ink); font-size: 16px; line-height: 1.45; }
.more { align-self: flex-start; font-size: 15px; margin-top: 4px; }

.feature .meta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  row-gap: 10px;
  align-items: start;
  padding-top: 20px;
}
.feature .meta__k { grid-column: 9 / -1; grid-row: 1; text-align: right; }
.feature .meta__t { grid-column: 1 / span 4; grid-row: 1 / span 2; font-size: clamp(36px, 4.4vw, 68px); }
.feature .meta__d { grid-column: 5 / span 4; grid-row: 1 / span 2; font-size: clamp(16px, 1.25vw, 19px); }
.feature .more { grid-column: 9 / -1; grid-row: 2; justify-self: end; align-self: end; }

.pair {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  padding-top: clamp(96px, 12vw, 190px);
  align-items: start;
}
.card--nodo { grid-column: 1 / span 7; }
.card--vesta { grid-column: 9 / -1; margin-top: clamp(120px, 17vw, 300px); }
.card--nodo .card__media { aspect-ratio: 3 / 2; }
.card--vesta .card__media { aspect-ratio: 4 / 5; }

.wide {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  padding-top: clamp(96px, 12vw, 190px);
  align-items: end;
}
.wide__meta { grid-column: 1 / span 4; padding-bottom: 4px; }
.wide__media { grid-column: 6 / -1; aspect-ratio: 1460 / 1440; }

/* ---------- studio: the one obsidian-chrome moment ---------- */
.studio {
  position: relative;
  margin-top: clamp(120px, 15vw, 240px);
  background: var(--ink);
  color: var(--alabaster);
  overflow: hidden;
  isolation: isolate;
}
.studio__bg, .studio__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.studio__bg img { object-fit: cover; }
.studio::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/grain.png") repeat;
  background-size: 128px 128px;
  pointer-events: none;
  z-index: 0;
}
.studio__in {
  position: relative;
  z-index: 1;
  container-type: inline-size;
  min-height: max(100svh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 72px;
  padding-top: clamp(88px, 10vw, 150px);
  padding-bottom: clamp(14px, 2.4vw, 32px);
}
.studio__text { max-width: 640px; display: grid; gap: 22px; }
.studio__text .display { margin-bottom: 10px; color: #f2f2f0; }
.studio__text .lead { color: rgba(229, 228, 226, .8); max-width: 34ch; }
.studio :focus-visible { outline-color: var(--alabaster); }

/* embossed glass wordmark, after the owner's Group 5 (Figma 17:9): a lit top edge and a shadowed lower edge,
   so it reads on the dark and on the pale part of the gradient alike */
.emboss {
  font-size: calc(100cqw / 2.93);
  line-height: .74;
  font-weight: 700;
  letter-spacing: -.05em;
  padding-bottom: .03em;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(170deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .07) 34%, rgba(255, 255, 255, .03) 60%, rgba(255, 255, 255, .12) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(236, 236, 234, .26);
  filter:
    drop-shadow(-1px -1px 0 rgba(255, 255, 255, .22))
    drop-shadow(1px 2px 1px rgba(5, 8, 12, .38))
    drop-shadow(0 14px 34px rgba(5, 8, 12, .32));
  user-select: none;
}

/* ---------- services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  padding-top: clamp(110px, 13vw, 210px);
}
.services__h { grid-column: 1 / span 4; }
.services__groups {
  grid-column: 6 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--g);
  row-gap: 56px;
  padding-top: .6em;
}
.group .label { padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 16px; }
.list li {
  font-size: clamp(22px, 2.15vw, 32px);
  line-height: 1.24;
  font-weight: 500;
  letter-spacing: -.025em;
}

/* ---------- approach: one editorial paragraph ---------- */
.approach { padding-top: clamp(120px, 14vw, 230px); }
.approach__h { padding-bottom: clamp(18px, 2vw, 28px); }
.approach__text {
  max-width: 24em;
  font-size: clamp(26px, 3.15vw, 48px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -.03em;
  color: #7b8894;
  text-wrap: pretty;
}
.approach__text strong { color: var(--ink); font-weight: 600; }

/* ---------- closing + footer ---------- */
.closing { padding-top: clamp(130px, 16vw, 260px); }
.closing__h a {
  display: inline-block;
  font-size: clamp(52px, 10.2vw, 168px);
  line-height: .9;
  font-weight: 700;
  letter-spacing: -.045em;
  text-decoration: none;
  white-space: nowrap;
}
.closing__h .arr { font-weight: 500; }
@media (hover: hover) { .closing__h a:hover .arr { transform: translateX(.08em); } }
.closing__row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  margin-top: clamp(28px, 3vw, 44px);
  align-items: baseline;
}
.closing__row .lead { grid-column: 1 / span 6; color: var(--slate); }
.closing__mail { grid-column: 7 / -1; justify-self: end; }
.closing__mail a {
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 600;
  letter-spacing: -.012em;
  text-underline-offset: .2em;
  text-decoration-thickness: 1.5px;
}

.foot { padding-top: clamp(110px, 13vw, 200px); padding-bottom: 24px; }
.foot__mark { width: 100%; height: auto; }
.foot__row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  row-gap: 12px;
  margin-top: clamp(22px, 2.6vw, 40px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
  color: var(--slate);
}
.foot__row a { text-decoration: none; color: var(--ink); }
@media (hover: hover) { .foot__row a:hover { text-decoration: underline; text-underline-offset: .2em; } }
.foot__row > p:first-child { grid-column: 1 / span 3; color: var(--ink); }
.foot__links { grid-column: 4 / span 5; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__note { grid-column: 9 / span 3; }
.foot__top { grid-column: 12 / -1; justify-self: end; white-space: nowrap; }

/* ---------- motion: reveal once, then stay still ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.shot) [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .9s var(--ease), transform 1.1s var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js:not(.shot) [data-reveal="media"] { opacity: 1; transform: none; }
  .js:not(.shot) [data-reveal="media"] picture {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.25s var(--ease-out);
  }
  .js:not(.shot) [data-reveal="media"] picture img { transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
  .js:not(.shot) [data-reveal="media"] .feature__mark { opacity: 0; transition: opacity 1s var(--ease) .55s; }
  .js:not(.shot) [data-reveal="lockup"] { transform: translateY(.06em); }
  .js:not(.shot) [data-reveal="emboss"] { transform: translateY(.08em); transition-duration: 1.4s, 1.6s; }

  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="media"].is-in picture { clip-path: inset(0 0 0 0); }
  .js [data-reveal="media"].is-in picture img { transform: none; }
  .js [data-reveal="media"].is-in .feature__mark { opacity: 1; }
  /* once revealed, hover zoom takes over the image transform */
  .js [data-reveal="media"].is-done picture img { transition: transform 1.4s var(--ease-out); }
}

/* ---------- narrower screens ---------- */
@media (max-width: 1080px) {
  .feature .meta__d { grid-column: 5 / span 5; }
  .feature .meta__k { grid-column: 10 / -1; }
  .feature .more { grid-column: 10 / -1; }
}

@media (max-width: 760px) {
  .nav { padding-top: 16px; font-size: 15px; }
  .nav .cta:not(.cta--hero) { display: none; }
  .nav__links { gap: 20px; }
  .lockup { margin-top: clamp(24px, 6vh, 48px); }
  .lockup__sub { font-size: 11px; margin-top: 12px; }

  /* phones: the opening is content-height, not a full screen, so tall and short phones look the same */
  .top { min-height: 0; }
  .hero { flex: none; min-height: 0; padding: clamp(40px, 11vw, 64px) 0 0; display: flex; flex-direction: column; gap: clamp(36px, 9vw, 52px); }
  .panther { position: relative; inset: auto; width: 100%; aspect-ratio: 72.82 / 25.82; order: -1; }
  .panther__still { object-position: 50% 50%; }
  .hero__copy { position: relative; left: auto; bottom: auto; width: 100%; max-width: 30ch; }
  .hero__lead { font-size: 21px; }
  .cta--hero { display: inline-block; margin-top: 18px; font-size: 16px; }

  .work__head { flex-direction: column; gap: 4px; }
  .feature__media { aspect-ratio: 5 / 4; }
  .feature__media img:not(.feature__mark) { object-position: 58% 50%; }
  .feature .meta { display: flex; flex-direction: column; gap: 10px; }
  .feature .meta__k { text-align: left; }
  .feature .more { justify-self: start; }
  .feature .meta__t { order: -1; }

  .pair, .wide, .services, .closing__row, .foot__row { grid-template-columns: 1fr; }
  .card--nodo, .card--vesta, .wide__meta, .wide__media, .services__h, .services__groups,
  .closing__row .lead, .closing__mail,
  .foot__row > p:first-child, .foot__links, .foot__note, .foot__top { grid-column: 1 / -1; }
  .card--vesta { margin-top: 72px; width: 82%; justify-self: end; }
  .wide__media { order: -1; margin-bottom: 0; }
  .wide__meta { padding-bottom: 0; }

  .studio__in { min-height: 0; justify-content: flex-start; gap: 64px; padding-bottom: max(52vw, 200px); }

  .services__groups { grid-template-columns: 1fr; row-gap: 40px; padding-top: 28px; }
  .closing__mail { justify-self: start; margin-top: 18px; }
  .closing__h a { font-size: clamp(40px, 12.2vw, 100px); }
  .foot__top { justify-self: start; }
}

@media (max-width: 520px) {
  .feature__media { aspect-ratio: 4 / 5; }
  .approach__text { font-size: 23px; line-height: 1.16; }
}

/* tall desktop windows: stack the hero like on phones */
@media (min-width: 761px) and (max-aspect-ratio: 5/4) {
  .panther { left: 16%; right: 0; top: 4%; bottom: calc(var(--hero-pad) + 120px); }
  .panther__still { object-position: 100% 70%; }
  .hero__copy { width: min(46%, 440px); }
}

@media (max-width: 420px) {
  .nav__links { gap: 16px; }
  .nav { font-size: 14.5px; }
}
