/* Ocho Manos Studio. One page, phone first. Orange opens and closes, ink holds the work. */

@font-face {
  font-family: "Bricolage";
  src: url("assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --orange: #EE7A2A;
  --toast: #CF5E1F;
  --sun: #F2B45C;
  --ink: #141414;
  --ink-2: #1E1D1B;
  --paper: #F6EFE4;
  --white: #FFFFFF;
  --mute-on-ink: #B8AFA3;
  --mute-on-orange: #4A2A12;

  --gutter: clamp(18px, 4.6vw, 64px);
  --s1: 12px; --s2: 24px; --s3: 48px; --s4: 96px;
  --r-img: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--orange) var(--ink); }
html.intro { overflow: hidden; }
/* while the intro plays: nothing flashes before the script has placed it */
html.intro .hero__text > *, html.intro .nav { opacity: 0; }
html.intro.intro-pop .hero__logo svg { visibility: hidden; }
html.intro.intro-pop.ready .hero__logo svg { visibility: visible; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Bricolage", "Segoe UI", system-ui, sans-serif;
  font-variation-settings: "wdth" 100, "opsz" 14;
  font-weight: 420;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
p { margin: 0; }
::selection { background: var(--ink); color: var(--orange); }
.on-ink ::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.display {
  font-variation-settings: "wdth" 75, "opsz" 96;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
.lede { max-width: 46ch; font-size: clamp(1rem, 0.6vw + 0.9rem, 1.2rem); }
.wrap { padding-inline: var(--gutter); max-width: 1500px; margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons: full pill everywhere */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid var(--btn-line, var(--ink));
  background: var(--btn-bg, var(--ink)); color: var(--btn-fg, var(--paper));
  font: inherit; font-weight: 640; font-size: 1rem; white-space: nowrap; text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); }

/* ---------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-inline: var(--gutter);
  color: var(--ink);
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-line: var(--ink);
  transition: color 0.3s, background-color 0.3s;
}
.nav--ink { color: var(--paper); background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(10px); --btn-bg: var(--orange); --btn-fg: var(--ink); --btn-line: var(--orange); }
.nav__name { font-variation-settings: "wdth" 75, "opsz" 96; font-weight: 800; font-size: 1.35rem; letter-spacing: 0; text-decoration: none; text-transform: uppercase; }
.nav__right { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 2px solid currentColor; border-radius: 999px; padding: 2px; }
.lang button {
  font: inherit; font-weight: 640; font-size: 0.85rem; color: inherit; background: none; border: 0;
  min-width: 40px; min-height: 36px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: currentColor; }
.lang button[aria-pressed="true"] span { color: var(--orange); }
.nav--ink .lang button[aria-pressed="true"] span { color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }

/* ---------- hero: the logo is the hero */
.hero {
  position: relative; background: var(--orange); color: var(--ink);
  min-height: 100dvh; padding: calc(var(--nav-h) + 8px) var(--gutter) clamp(20px, 4dvh, 40px);
  display: grid; grid-template-rows: 1fr auto; gap: clamp(12px, 3dvh, 28px);
}
.hero__logo { position: relative; z-index: 1; display: grid; place-items: center; min-height: 0; }
html.intro .hero__logo { z-index: 60; }
.hero__logo svg { display: block; width: min(100%, 62dvh); height: auto; max-height: 100%; overflow: visible; }
.hero__text { display: grid; gap: var(--s2); align-items: end; }
.hero h1 { font-size: clamp(2.5rem, 9.2vw, 6rem); }
.hero__side { display: grid; gap: 18px; }
.hero__side p { max-width: 38ch; color: var(--ink); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) {
  .hero__logo svg { width: min(100%, 70dvh); }
  .hero__text { grid-template-columns: 1.25fr 1fr; gap: var(--s3); }
  .hero__side { justify-self: end; }
}

/* ---------- sections on ink */
.on-ink { overflow-x: clip; }
.sec { padding-block: clamp(72px, 12vw, 150px) clamp(56px, 9vw, 110px); }
.sec__head { display: grid; gap: 18px; margin-bottom: clamp(28px, 5vw, 56px); }
.sec__head h2 { font-size: clamp(2.3rem, 7.4vw, 5.2rem); max-width: 14ch; }
.sec__head p { color: var(--mute-on-ink); }

/* webs: three phones, the real sites scroll inside as the page scrolls. No pinning: scroll down passes straight through. */
.webs__track { display: flex; gap: clamp(18px, 4vw, 56px); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.webs__track::-webkit-scrollbar { display: none; }
.phone { flex: 0 0 auto; --h: min(68dvh, 600px); width: calc(var(--h) * 0.462); display: grid; gap: 12px; scroll-snap-align: center; align-content: start; }
.phone__frame { height: var(--h); border-radius: 30px; border: 6px solid #2B2926; background: var(--ink-2); overflow: hidden; }
.phone__frame img { width: 100%; will-change: transform; }
.phone__name { font-variation-settings: "wdth" 75, "opsz" 96; font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.phone__meta { color: var(--mute-on-ink); font-size: 0.92rem; display: flex; justify-content: space-between; gap: 8px; }
.phone__meta a { color: var(--orange); font-weight: 600; }
@media (min-width: 900px) {
  .webs__track { max-width: 1500px; margin-inline: auto; justify-content: space-between; overflow: visible; padding-bottom: 150px; }
  .phone { --h: min(74dvh, 660px); }
  .phone:nth-child(2) { transform: translateY(72px); }
  .phone:nth-child(3) { transform: translateY(144px); }
}

/* prints: uneven grid */
.prints__grid { display: grid; gap: clamp(14px, 2.4vw, 28px); grid-template-columns: 1fr; }
.print { margin: 0; display: grid; gap: 10px; }
.print__img { border-radius: var(--r-img); overflow: hidden; background: var(--ink-2); }
.print__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ar, 4 / 3); }
.print figcaption { display: grid; gap: 2px; }
.print figcaption b { font-weight: 640; }
.print figcaption span { color: var(--mute-on-ink); font-size: 0.94rem; }
.prints__note { margin-top: 22px; color: var(--mute-on-ink); font-size: 0.92rem; }
@media (min-width: 800px) {
  .prints__grid { grid-template-columns: repeat(12, 1fr); }
  .print:nth-child(1) { grid-column: span 5; --ar: 4 / 5; }
  .print:nth-child(2) { grid-column: span 7; --ar: 28 / 25; }
}

/* posts: one phone photo fans into finished posts */
.posts__stage { position: relative; display: grid; gap: var(--s3); align-items: center; }
.posts__before { width: min(52vw, 250px); margin: 0; display: grid; gap: 10px; }
.posts__before img, .post img { border-radius: var(--r-img); width: 100%; }
.posts__before figcaption, .posts__after-cap { color: var(--mute-on-ink); font-size: 0.94rem; }
.posts__fan { position: relative; height: clamp(300px, 92vw, 560px); }
.post { position: absolute; top: 0; left: 50%; width: min(58vw, 400px); margin: 0 0 0 calc(min(58vw, 400px) / -2); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8); }
@media (min-width: 900px) {
  .posts__stage { grid-template-columns: 0.55fr 1.45fr; }
  .posts__before { width: min(100%, 290px); justify-self: center; }
}

/* automations: four plain lines */
.auto__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(22px, 3.4vw, 44px); max-width: 26ch; font-size: clamp(1.5rem, 4.4vw, 3rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.015em; }
.auto__list em { font-style: normal; color: var(--orange); }

/* ---------- Paco + contact: orange again */
.paco { background: var(--orange); color: var(--ink); padding-block: clamp(64px, 10vw, 130px) 0; }
.paco__grid { display: grid; gap: var(--s3); align-items: center; }
.paco__photo { border-radius: var(--r-img); overflow: hidden; }
.paco__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.paco h2 { font-size: clamp(2.6rem, 9vw, 6rem); margin-bottom: 20px; }
.paco p { font-weight: 500; max-width: 40ch; }
.paco p + p { margin-top: 14px; }
@media (min-width: 900px) { .paco__grid { grid-template-columns: 0.8fr 1fr; gap: var(--s4); } }
.outfits { margin-top: clamp(40px, 7vw, 90px); overflow: hidden; }
.outfits__row { display: flex; gap: 14px; width: max-content; animation: slide 38s linear infinite; }
.outfits__row img { width: clamp(150px, 22vw, 250px); border-radius: var(--r-img); }
@keyframes slide { to { transform: translateX(-50%); } }

.contact { background: var(--orange); color: var(--ink); padding-block: clamp(72px, 12vw, 150px) 28px; }
.contact h2 { font-size: clamp(3rem, 12vw, 6rem); margin-bottom: clamp(24px, 4vw, 48px); }
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.row { border-top: 2px solid var(--ink); }
.row a, .row span.row__in {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: clamp(16px, 2.6vw, 30px) clamp(6px, 1vw, 14px); text-decoration: none; isolation: isolate;
}
.row a::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); z-index: -1; }
.row a:hover::before, .row a:focus-visible::before { transform: scaleX(1); }
.row a:hover, .row a:focus-visible { color: var(--orange); }
.row__label { font-variation-settings: "wdth" 75, "opsz" 96; font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 6.4vw, 4rem); line-height: 1; }
.row__value { font-weight: 560; font-size: clamp(0.95rem, 1.4vw, 1.2rem); text-align: right; }
.row--soon { color: var(--mute-on-orange); }
.foot { margin-top: clamp(40px, 7vw, 90px); display: flex; justify-content: space-between; gap: 16px; font-size: 0.9rem; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .outfits { overflow-x: auto; }
  .outfits__row { animation: none; }
  .btn, .row a::before { transition: none; }
}
