/* ══════════════════════════════════════════════════════════════
   Rugo Studio

   Two colours only. #5b2333 (ink) and #f4f4f3 (paper). Everything
   that reads as a lighter tone is the ink at reduced alpha, never a
   new hue, so the whole page stays inside the pair.

   Two typefaces. Jost carries every heading and number. Google Sans
   carries running text.
   ══════════════════════════════════════════════════════════════ */

:root {
  --ink:   #5b2333;
  --paper: #f4f4f3;

  /* The same ink, thinned. Each step is held at a contrast ratio that
     still passes against the paper, so nothing turns into grey mush:
     text steps are labelled with the ratio they carry. */
  --ink-80: rgba(91, 35, 51, .80);   /* running text        6.3:1 */
  --ink-72: rgba(91, 35, 51, .72);   /* small caps, labels  4.9:1 */
  --ink-58: rgba(91, 35, 51, .58);   /* display sizes only  3.4:1 */
  --ink-16: rgba(91, 35, 51, .16);   /* rules, never text         */
  --ink-10: rgba(91, 35, 51, .10);
  --ink-05: rgba(91, 35, 51, .05);

  --display: 'Jost', system-ui, sans-serif;
  --sans: 'Google Sans Text', 'Google Sans', 'Product Sans',
          system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* generous, and it grows with the viewport */
  --edge: clamp(22px, 6.5vw, 132px);
  --air:  clamp(96px, 17vh, 216px);
  --maxw: 1440px;

  --ease: cubic-bezier(.22, .7, .25, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(.9375rem, .89rem + .22vw, 1.0625rem);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
dl, dd { margin: 0; }

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

:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 4px;
}

.vh {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; font-size: .8rem; letter-spacing: .04em;
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ── Repeated atoms ────────────────────────────────────────── */
.label {
  font-family: var(--display);
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-72);
  line-height: 1;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
}

/* ── Header ────────────────────────────────────────────────── */
.head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.head::after {
  content: ''; position: absolute; left: var(--edge); right: var(--edge);
  bottom: 0; height: 1px; background: var(--ink-16);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
body.scrolled .head::after { transform: scaleX(1); }

.head__in {
  max-width: var(--maxw); margin-inline: auto;
  padding: 26px var(--edge);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  transition: padding .4s var(--ease);
}
body.scrolled .head__in { padding-block: 17px; }

.mark {
  font-family: var(--display);
  font-size: 1.0625rem; font-weight: 400;
  letter-spacing: .01em; line-height: 1;
  display: flex; align-items: baseline; gap: .45em;
}
.mark span {
  font-size: .6875rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-72);
}

.nav { display: flex; gap: clamp(22px, 3vw, 48px); }
.nav a {
  font-family: var(--display);
  font-size: .8125rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-72);
  position: relative; padding-block: 3px;
  transition: color .35s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none; width: 30px; height: 22px;
  flex-direction: column; justify-content: center; gap: 6px;
  cursor: pointer;
}
.burger span {
  display: block; width: 26px; height: 1px; background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(6deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-6deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  padding: 128px var(--edge) var(--edge);
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a {
  font-family: var(--display);
  font-size: clamp(2.2rem, 11vw, 3.4rem);
  font-weight: 300; letter-spacing: -.01em; line-height: 1.5;
  opacity: 0; transform: translateY(14px);
  animation: rise .55s var(--ease) forwards;
  animation-delay: calc(var(--i) * 70ms);
}
.menu p {
  font-size: .8125rem; color: var(--ink-72); line-height: 1.8;
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Opening ───────────────────────────────────────────────── */
.hero {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(72px, 13vh, 150px) var(--edge) var(--air);
  min-height: 76vh;
  display: flex; flex-direction: column;
}

.hero__h {
  font-family: var(--display);
  font-size: clamp(2.35rem, 6.6vw, 6.4rem);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -.022em;
  max-width: 17ch;
  margin-top: clamp(38px, 6vw, 82px);
  text-wrap: balance;
}
.hero__h em {
  display: block;
  font-style: normal;
  color: var(--ink-58);
}

.hero__foot {
  margin-top: auto;
  padding-top: clamp(56px, 9vw, 128px);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(32px, 6vw, 96px);
}
.hero__foot p {
  max-width: 46ch;
  color: var(--ink-80);
  text-wrap: pretty;
}

.cue {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  flex: none;
  font-family: var(--display);
  font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-72);
  transition: color .35s var(--ease);
}
.cue svg {
  width: 12px; height: 26px; fill: none;
  stroke: currentColor; stroke-width: 1;
  animation: drift 2.8s var(--ease) infinite;
}
.cue:hover { color: var(--ink); }
@keyframes drift {
  0%, 62%, 100% { transform: translateY(0); opacity: 1; }
  80%           { transform: translateY(6px); opacity: .45; }
}

/* ── Sections ──────────────────────────────────────────────── */
.sec {
  max-width: var(--maxw); margin-inline: auto;
  padding: var(--air) var(--edge);
}
.sec--quiet { background: var(--ink-05); max-width: none; }
.sec--quiet > * { max-width: var(--maxw); margin-inline: auto; }

.sec__h { margin-bottom: clamp(56px, 9vw, 120px); }
.sec__h h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.2vw, 3.6rem);
  font-weight: 200; line-height: 1.12;
  letter-spacing: -.02em;
  margin-top: 22px;
  max-width: 20ch;
}

/* ── Work ──────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(32px, 7vw, 132px);
  row-gap: clamp(80px, 12vw, 180px);
}
.piece--drop { margin-top: clamp(48px, 10vw, 170px); }

.piece__img {
  overflow: hidden;
  background: var(--ink-05);
  aspect-ratio: 3 / 4;
}
.piece__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center var(--crop, 50%);
  filter: saturate(.82);
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter .8s var(--ease);
}
.piece:hover .piece__img img { transform: scale(1.055); filter: saturate(.95); }

.piece figcaption {
  padding-top: 30px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.25fr);
  column-gap: clamp(24px, 3.5vw, 56px);
  row-gap: 20px;
  align-items: start;
}
.piece h3 {
  grid-column: 1;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  font-weight: 300; letter-spacing: -.012em; line-height: 1.2;
}
.piece dl {
  grid-column: 1; grid-row: 2;
  border-top: 1px solid var(--ink-16);
  padding-top: 14px;
}
.piece dl > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 5px;
  font-size: .8125rem;
}
.piece dt { color: var(--ink-72); }
.piece dd { font-family: var(--display); letter-spacing: .01em; text-align: right; }
.piece figcaption > p {
  grid-column: 2; grid-row: 1 / span 2;
  color: var(--ink-80);
  font-size: .9375rem;
  text-wrap: pretty;
}

/* ── Studio ────────────────────────────────────────────────── */
.say {
  max-width: 62ch;
  margin-left: auto; margin-right: auto;
}
.say p {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.05vw, 1.72rem);
  font-weight: 200;
  line-height: 1.52;
  letter-spacing: -.008em;
  text-wrap: pretty;
}
.say p + p { margin-top: 1.15em; color: var(--ink-80); }

.counts {
  margin-top: clamp(72px, 11vw, 150px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--ink-16);
  padding-top: 34px;
}
.counts dt {
  font-size: .75rem; color: var(--ink-72);
  line-height: 1.5; margin-bottom: 10px;
}
.counts dd {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 200; line-height: 1; letter-spacing: -.02em;
}

/* ── Visit ─────────────────────────────────────────────────── */
.sec--end { padding-bottom: clamp(72px, 11vh, 150px); }

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: clamp(32px, 7vw, 120px);
  row-gap: clamp(48px, 7vw, 84px);
  align-items: start;
}
.visit__lede {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 300; line-height: 1.55;
  color: var(--ink-80);
  max-width: 34ch;
}
.visit__facts { display: grid; gap: 26px; }
.visit__facts dt {
  font-family: var(--display);
  font-size: .6875rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-72);
  margin-bottom: 8px;
}
.visit__facts dd { font-size: .9375rem; line-height: 1.65; }

.mail {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.6vw, 3.4rem);
  font-weight: 200; letter-spacing: -.022em; line-height: 1.2;
  display: inline-block; justify-self: start;
  padding-bottom: 8px;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .6s var(--ease);
}
.mail:hover { background-size: 100% 1px; }

/* ── Footer ────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--ink-16); }
.foot__in {
  max-width: var(--maxw); margin-inline: auto;
  padding: 30px var(--edge);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px 40px; flex-wrap: wrap;
  font-size: .75rem; color: var(--ink-72);
}
.foot__c { flex: 1 1 auto; }
.foot a { transition: color .3s var(--ease); }
.foot a:hover { color: var(--ink); }

/* ── Entrance ──────────────────────────────────────────────── */
[data-rise] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .9s var(--ease) var(--d, 0s),
    transform .9s var(--ease) var(--d, 0s);
}
[data-rise].seen { opacity: 1; transform: none; }

/* ── Narrow ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .nav { display: none; }
  .burger { display: flex; }

  .hero { min-height: 84vh; }
  .hero__h { max-width: 14ch; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 44px; }
  .cue { flex-direction: row; align-items: center; gap: 12px; }
  .cue svg { transform: rotate(-90deg) scaleX(-1); animation: none; height: 14px; width: 22px; }

  .grid { grid-template-columns: 1fr; row-gap: clamp(64px, 14vw, 110px); }
  .piece--drop { margin-top: 0; }
  .piece__img { aspect-ratio: 3 / 4; }

  .counts { grid-template-columns: repeat(2, 1fr); }
  .visit { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .piece figcaption { grid-template-columns: 1fr; }
  .piece figcaption > p { grid-column: 1; grid-row: 3; }
  .piece dl { grid-row: 2; }
  .foot__in { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── Motion off ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-rise] { opacity: 1; transform: none; }
  .menu nav a { opacity: 1; transform: none; }
}
