/* YALA STUDIO — shared styles + home page (the "Studio" reference) */

/*
 * Fonts (Liav's own):
 *  Futurism   — narrow: every "condensed" line of the reference (nav, clocks, lead, columns, pills, labels)
 *  Fb Reading — wide: the accent words that the reference sets in italic serif
 *  Bloomfild  — the app look of the portfolio page (title, folder names, buttons)
 */
@font-face { font-family: "Futurism"; src: url(../fonts/futurism-400.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Futurism"; src: url(../fonts/futurism-700.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Futurism"; src: url(../fonts/futurism-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Fb Reading"; src: url(../fonts/reading-300.woff) format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Fb Reading"; src: url(../fonts/reading-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fb Reading"; src: url(../fonts/reading-700.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bloomfild"; src: url(../fonts/bloomfild-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bloomfild"; src: url(../fonts/bloomfild-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bloomfild"; src: url(../fonts/bloomfild-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bloomfild"; src: url(../fonts/bloomfild-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #111111;
  --paper: #ffffff;
  --muted: #6d6d6d;
  --line: #111111;
  --sky: #a8c7ea;
  --sans: "Futurism", "Arial Narrow", system-ui, sans-serif;
  --serif: "Fb Reading", system-ui, sans-serif;
  --app: "Bloomfild", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 2vw, 24px);
  --dock-h: 0px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* accent words: the wide Fb Reading against the narrow Futurism
   (the reference does the same contrast with an italic serif) */
em,
.serif {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  font-size: .92em;
  text-transform: none;
  letter-spacing: 0;
}

/* skip link: first stop on every page, shown only when it has keyboard focus */
.skip {
  position: absolute;
  z-index: 100;
  inset-inline-start: 12px;
  top: -80px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  line-height: 1;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); outline: 2px solid var(--ink); outline-offset: 3px; }
main:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------- header ---------- */
.hdr {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 24px;
  padding: 14px var(--gutter) 0;
  position: relative;
  z-index: 5;
}

.brand { display: inline-flex; flex-direction: column; gap: 4px; justify-self: start; }
.brand__row { display: inline-flex; align-items: center; gap: 14px; direction: ltr; }
.globe { width: 70px; height: 34px; color: var(--ink); flex: none; }
.brand__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 44px;
  line-height: .9;
  letter-spacing: -.015em;
}
.brand__sub {
  font-size: 17px;
  letter-spacing: .01em;
  letter-spacing: -.005em;
  text-transform: uppercase;
  direction: ltr;
  text-align: left;
}

.hdr__nav {
  display: flex;
  gap: clamp(28px, 4.4vw, 76px);
  padding-top: 4px;
  font-size: 15px;
  text-transform: uppercase;
}
.hdr__nav a { position: relative; }
.hdr__nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform .25s ease;
}
.hdr__nav a:hover::after,
.hdr__nav a[aria-current="page"]::after { transform: scaleX(1); }

.clocks {
  justify-self: end;
  display: flex;
  gap: 18px;
  padding-top: 4px;
  font-size: 15px;
  text-transform: uppercase;
  direction: ltr;
  font-variant-numeric: tabular-nums;
}

/* ---------- hero ---------- */
/* the wordmark is sized by the screen's height too, so on a laptop the first
   screen holds header + lead + wordmark + the start of the columns (like the reference) */
.hero {
  --mark-w: clamp(50%, calc((100vh - 340px) * 2.37), 100%);
  width: var(--mark-w);
  margin-inline: auto;
  padding-top: clamp(24px, 6.5vh, 100px);
}
@supports (height: 100svh) {
  .hero { --mark-w: clamp(50%, calc((100svh - 340px) * 2.37), 100%); }
}
.hero__lead {
  margin: 0 0 clamp(10px, 1.6vw, 20px);
  padding-inline-start: 30.5%;
  display: flex;
  flex-direction: column;
  font-size: 17px;
  line-height: 1.25;
}
.hero__lead em { line-height: 1; }

.hero__mark { margin: 0; padding: 0 4px; }
.hero__mark img { width: 100%; height: auto; }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3.2vw, 44px);
  padding: clamp(28px, 4vw, 48px) var(--gutter) 0;
}
.about p {
  margin: 0;
  font-size: 17px;
  line-height: 1.26;
  /* Futurism breaks words apart when justified, so the columns stay flush right */
  text-align: start;
  word-spacing: .06em;
  text-wrap: pretty;
}

/* ---------- pills marquee ---------- */
.pills {
  margin-top: clamp(64px, 8vw, 110px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.pills__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.pills:hover .pills__track,
.is-still .pills__track { animation-play-state: paused; }

.pills__controls {
  display: flex;
  justify-content: flex-start;
  padding: 12px var(--gutter) 0;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.motion-toggle:hover { background: var(--ink); color: var(--paper); }
.motion-toggle__icon { width: 13px; height: 13px; fill: currentColor; }
.motion-toggle .i-play,
.motion-toggle[aria-pressed="true"] .i-pause { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: inline; }
.pills__set { display: flex; gap: 12px; padding-inline-end: 12px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1;
  background: var(--paper);
  transition: background .2s ease, color .2s ease;
}
.pill--serif { padding-inline: 14px; }
.pill--serif .serif { font-size: 15px; }
.pill--icon { padding-inline: 10px; }
.pill--icon .globe { width: 56px; height: 28px; }
a.pill:hover,
button.pill:hover { background: var(--ink); color: var(--paper); }
.pill[aria-disabled="true"] { cursor: default; }

/* ---------- featured band ---------- */
.band {
  position: relative;
  margin-top: clamp(56px, 6vw, 72px);
  padding: clamp(64px, 7vw, 92px) var(--gutter) clamp(72px, 8vw, 110px);
  background-color: var(--sky);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 0%, #c3dbf4 0%, #a8c7ea 55%, #93b9e4 100%);
  overflow: hidden;
}
.band__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 26px;
  font-size: 16px;
  text-transform: uppercase;
}

.browser {
  display: block;
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: #0d0d0d;
  box-shadow: 0 34px 70px -34px rgba(20, 40, 80, .55), 0 0 0 1px rgba(0, 0, 0, .06);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
a.browser:hover { transform: translateY(-5px); box-shadow: 0 44px 80px -34px rgba(20, 40, 80, .6), 0 0 0 1px rgba(0, 0, 0, .06); }
.browser__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  background: #ecebe7;
  direction: ltr;
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: #cfcdc7; }
.browser__url {
  padding: 4px 16px;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .02em;
}
.browser__shot { display: block; }
.browser__shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}
/* the featured collage: the site in a browser, the Instagram profile in a phone, two posts */
.feature {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 980 / 600;
}
.feature__browser {
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  max-width: none;
  margin: 0;
}
.feature__post {
  position: absolute;
  width: 20%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 26px 50px -26px rgba(20, 40, 80, .6), 0 0 0 1px rgba(0, 0, 0, .06);
}
.feature__post--a { left: 1%; bottom: 7%; transform: rotate(-7deg); }
.feature__post--b { left: 13%; bottom: -3%; width: 18.5%; transform: rotate(5deg); }
.feature__phone {
  position: absolute;
  right: 2.5%;
  bottom: -4%;
  width: 19%;
  padding: .55%;
  border-radius: clamp(14px, 2.4vw, 30px);
  background: #111;
  box-shadow: 0 30px 60px -28px rgba(20, 40, 80, .7), inset 0 0 0 1.5px #3a3a3a;
  transform: rotate(4deg);
}
.feature__phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  border-radius: clamp(10px, 2vw, 25px);
}
.band__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 46px; }
.band__cta .pill { background: transparent; }
.band__cta .pill:hover { background: var(--ink); }

/* ---------- contact ---------- */
.contact {
  padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(40px, 5vw, 64px);
  text-align: center;
}
.contact__lead {
  margin: 0 auto 28px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.contact__lead em { font-size: .74em; line-height: 1.25; }
.contact__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.ftr {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter) calc(18px + var(--dock-h));
  border-top: 1.5px solid var(--line);
  font-size: 14px;
  text-transform: uppercase;
}
.ftr .globe { width: 50px; height: 24px; }
.ftr__brand { display: inline-flex; align-items: center; gap: 10px; direction: ltr; justify-self: start; }
.ftr__mid { display: inline-flex; align-items: center; gap: 18px; }
.ftr__a11y { text-transform: none; text-decoration: underline; text-underline-offset: 3px; }
.ftr .clocks { padding-top: 0; font-size: 14px; }

/* ---------- text pages (accessibility statement) ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(56px, 7vw, 96px);
  font-size: 18px;
  line-height: 1.5;
}
.doc__title { margin: 0; font-weight: 400; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.01em; }
.doc__date { margin: 10px 0 28px; color: var(--muted); font-size: 16px; }
.doc h2 { margin: 36px 0 10px; font-weight: 700; font-size: 24px; line-height: 1.15; }
.doc p { margin: 0 0 14px; }
.doc ul { list-style: disc; padding-inline-start: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 8px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- mobile dock (phones only) ---------- */
.dock { display: none; }

@media (max-width: 760px) {
  :root { --dock-h: 96px; }

  .hdr { grid-template-columns: 1fr auto; padding-top: 12px; }
  .hdr__nav { display: none; }
  .brand__row { gap: 10px; }
  .globe { width: 50px; height: 24px; }
  .brand__name { font-size: 34px; }
  .brand__sub { font-size: 13px; }
  .clocks { flex-direction: column; gap: 2px; font-size: 12px; text-align: left; }

  .hero { --mark-w: 100%; width: auto; padding-top: 70px; }
  .hero__lead { padding-inline-start: 14%; font-size: 15.5px; }
  .hero__mark { padding: 0 2px; }

  .about { grid-template-columns: 1fr; gap: 14px; padding-top: 26px; }
  .about p { font-size: 16.5px; }

  .pills { margin-top: 56px; }
  .pill { height: 36px; font-size: 16.5px; border-radius: 10px; }
  .pill--icon .globe { width: 46px; height: 22px; }

  .band { padding: 52px 16px 60px; }
  .band__top { flex-direction: column; gap: 6px; font-size: 12.5px; margin-bottom: 18px; }
  .browser { border-radius: 8px; }
  .browser__bar { height: 24px; padding: 0 9px; }
  .browser__dots i { width: 7px; height: 7px; }
  .browser__url { font-size: 10px; padding: 3px 12px; }
  .band__cta { margin-top: 34px; gap: 8px; }
  .band__cta .pill { font-size: 15px; height: 34px; }

  /* phone: the browser takes the width, the phone and the posts sit under it */
  .feature { aspect-ratio: 358 / 440; }
  .feature__browser { left: 0; width: 100%; }
  .feature__post { width: 31%; border-radius: 7px; }
  .feature__post--a { left: 1%; bottom: 9%; }
  .feature__post--b { left: 26%; bottom: 0; width: 29%; }
  .feature__phone { right: 3%; bottom: 0; width: 33%; padding: 1.2%; border-radius: 22px; }
  .feature__phone img { border-radius: 18px; }

  .contact { padding-top: 80px; }
  .contact__lead { font-size: 36px; }

  .ftr { grid-template-columns: 1fr auto; }
  .ftr__copy { display: none; }
  .ftr__mid { grid-column: 1 / -1; order: 3; }
  .ftr .clocks { flex-direction: row; gap: 12px; }

  .dock {
    position: fixed;
    z-index: 40;
    inset-inline: 0;
    bottom: max(14px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    pointer-events: none;
  }
}

/* dock look (shared by both pages) */
.dock__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 52px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .04);
}
.dock__pill a {
  display: grid;
  place-items: center;
  width: 54px;
  height: 44px;
  border-radius: 999px;
  color: #9a9a9a;
  transition: color .2s ease, background .2s ease;
}
.dock__pill a svg { width: 22px; height: 22px; }
.dock__pill a:hover { color: var(--ink); }
.dock__pill a[aria-current="page"] {
  width: 48px;
  height: 44px;
  background: #111;
  color: #fff;
}
.dock__avatar {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 3px;
  background: #fff;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .04);
}
.dock__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ---------- accessibility menu (assets/js/a11y.js) ---------- */
.a11y {
  position: fixed;
  z-index: 95;
  inset-inline-end: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(18px + var(--dock-h) + env(safe-area-inset-bottom, 0px));
  font-family: var(--sans);
}
.a11y__btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.a11y__btn svg { width: 28px; height: 28px; fill: currentColor; }
.a11y__btn:hover { transform: scale(1.05); }
.a11y__panel {
  position: absolute;
  bottom: 62px;
  inset-inline-end: 0;
  width: min(310px, calc(100vw - 32px));
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .45);
  font-size: 17px;
  line-height: 1.2;
}
.a11y__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.a11y__title { margin: 0; font-weight: 700; font-size: 24px; line-height: 1; }
.a11y__close {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1.5px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 15px; cursor: pointer;
}
.a11y__size { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.a11y__size > span { flex: 1; }
.a11y__size button {
  width: 42px; height: 40px; padding: 0;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 18px; cursor: pointer;
}
.a11y__size button[aria-disabled="true"] { opacity: .45; cursor: default; }
.a11y__level { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
.a11y__list { display: grid; gap: 8px; }
.a11y__list button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  height: 42px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 17px; text-align: start; cursor: pointer;
}
.a11y__list button::after { content: ""; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 5px; }
.a11y__list button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.a11y__list button[aria-pressed="true"]::after { content: "✓"; display: grid; place-items: center; font-size: 13px; line-height: 1; }
.a11y__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 15px; }
.a11y__reset { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.a11y__foot a { text-decoration: underline; text-underline-offset: 3px; }

/* the menu's modes */
.a11y-contrast { --muted: #111; }
.a11y-contrast .page-work,
.a11y-contrast .band,
.a11y-contrast .gift { background-image: none !important; }
.a11y-contrast .page-work { background-color: #fff; }
.a11y-contrast .folder__meta { opacity: 1; }
.a11y-contrast .sheet__meta,
.a11y-contrast .work__warn,
.a11y-contrast .doc__date,
.a11y-contrast .browser__url { color: #111; }
.a11y-contrast .pill,
.a11y-contrast .motion-toggle { border-width: 2px; }
.a11y-contrast .lightbox { background: #000; }

.a11y-links a:not(.skip) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
.a11y-links a:not(.skip):not(.browser):not(.dock__avatar),
.a11y-links .folder,
.a11y-links .work { outline: 2px dashed var(--ink); outline-offset: 3px; }
.a11y-links .lightbox a { outline-color: #fff; }

.a11y-font,
.a11y-font *:not(svg):not(svg *) { font-family: Arial, "Arial Hebrew", "Helvetica Neue", sans-serif !important; letter-spacing: normal !important; }

.a11y-still *,
.a11y-still *::before,
.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pills__track { animation: none; }
  a.browser:hover { transform: none; }
}
