/* ============================================================
   Boyfriend Creative — Website (loud, poster-forward)
   Built on the design system tokens.
   ============================================================ */
@import url("tokens.css");

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

:root {
  /* Tweakable runtime vars — overridden by site.js from saved tweaks */
  --site-bg: var(--bc-butter);
  --site-fg: var(--bc-ink);
  --site-accent: var(--bc-cerulean);
  --site-accent-fg: var(--bc-ink); /* readable text on accent */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
}

html, body { margin: 0; padding: 0; }
body {
  background: var(--site-bg);
  color: var(--site-fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--bc-ink);
  border-bottom: 2px solid var(--bc-ink);
}
.site-head__in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand__badge { display: inline-flex; align-items: center; justify-content: center; }
.brand__gif { height: 40px; width: auto; display: block; }
.brand__star { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.brand__name { font-family: var(--font-body); font-weight: 600; font-size: 16px; text-transform: lowercase; white-space: nowrap; }
.nav { display: flex; gap: clamp(18px, 3vw, 38px); }
.nav a {
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none;
  position: relative; padding-block: 4px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.head-cta { display: flex; align-items: center; gap: 16px; }
.head-icons { display: flex; gap: 12px; }
.head-icons a { color: inherit; }

/* ---------- Burger ---------- */
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px; box-sizing: border-box;
  background: transparent; border: 2px solid rgba(250,250,245,0.35); border-radius: var(--radius-pill);
  cursor: pointer; flex-shrink: 0;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.burger span { display: block; height: 2.5px; width: 100%; background: var(--bc-paper); border-radius: 2px; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); }
.burger:hover { background: rgba(250,250,245,0.12); border-color: var(--bc-paper); }

/* ---------- Menu overlay ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bc-ink); color: var(--bc-paper);
  display: flex; flex-direction: column;
  padding: clamp(20px, 4vw, 40px) var(--gutter);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.menu-overlay__top { display: flex; align-items: center; justify-content: space-between; }
.menu-close {
  width: 46px; height: 46px; border-radius: var(--radius-pill);
  border: 2px solid var(--bc-paper); background: transparent; color: var(--bc-paper);
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.menu-close:hover { background: var(--bc-paper); color: var(--bc-ink); }
.menu-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(4px, 1vw, 10px); }
.menu-nav a {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(44px, 9vw, 104px); line-height: 1; color: var(--bc-paper);
  text-decoration: none; width: fit-content;
  transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-base) var(--ease-out);
}
.menu-nav a:hover, .menu-nav a[aria-current="page"] { color: var(--bc-cerulean); padding-left: 16px; }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.18); }
.menu-contact { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 14px; color: rgba(250,250,245,0.8); }
.menu-contact a { color: inherit; text-decoration: none; }
.menu-contact a:hover { color: var(--bc-cerulean); }
body.menu-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .menu-overlay { transition: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 2px solid var(--bc-ink); cursor: pointer; text-decoration: none;
  background: var(--bc-pink); color: var(--bc-ink);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--bc-pink-deep); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn--accent { background: var(--site-accent); color: var(--site-accent-fg); }
.btn--accent:hover { background: var(--site-accent); filter: brightness(0.94); }
.btn--ink { background: var(--bc-ink); color: var(--bc-paper); }
.btn--ink:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--site-fg); box-shadow: none; }
.btn--ghost:hover { background: var(--bc-ink); color: var(--bc-paper); transform: none; box-shadow: none; }
.btn--sm { padding: 9px 16px; font-size: 11px; border-width: 1.5px; box-shadow: var(--shadow-sm); }
.btn--sm:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }

/* ---------- Type helpers ---------- */
.over {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.over--accent { color: var(--bc-ink); }
.display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.92; margin: 0; }
.handdrawn { font-family: var(--font-handdrawn); text-transform: lowercase; line-height: 0.86; letter-spacing: -0.01em; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero__eye { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; border: 2px solid var(--bc-ink); }
.hero__grid { display: grid; grid-template-columns: 1.75fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero__title { font-size: clamp(64px, 13vw, 196px); }
.hero__title .handdrawn-line, .hero__title .display-line { display: block; }
/* hero treatment switch */
.hero__title .as-handdrawn { font-family: var(--font-handdrawn); text-transform: lowercase; }
.hero__title .as-display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.03em; }
html[data-hero="display"] .hero__title .as-handdrawn { display: none; }
html[data-hero="handdrawn"] .hero__title .as-display { display: none; }
/* display hero is one phrase on a single line — sized to fit the column without wrapping */
.hero__title .as-display { white-space: nowrap; font-size: clamp(30px, 6vw, 84px); }
.hero__side { padding-bottom: clamp(8px, 2vw, 28px); }
.hero__lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; margin: 0 0 26px; max-width: 40ch; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 2px solid var(--bc-ink); border-bottom: 2px solid var(--bc-ink);
  background: var(--site-accent); overflow: hidden; white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out);
}
.marquee__track {
  display: inline-flex; gap: 0; padding-block: 14px;
  animation: marquee 26s linear infinite; will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(22px, 3vw, 38px); color: var(--bc-ink); padding-inline: 28px;
  display: inline-flex; align-items: center; gap: 28px;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Section heading ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.sec-head__title { font-size: clamp(40px, 6vw, 84px); }
.sec-head__meta { max-width: 36ch; font-size: 15px; line-height: 1.5; color: var(--fg-2); }

/* ---------- Work / poster tiles ---------- */
.poster-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.work .poster-grid { grid-template-columns: repeat(2, 1fr); }
.poster {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 2px solid var(--bc-ink); min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px; text-decoration: none; color: var(--bc-paper);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.poster:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.poster__tag {
  align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(6px);
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bc-paper);
}
.poster__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(30px, 3.4vw, 48px); line-height: 0.95; color: var(--bc-cerulean); margin: 0 0 8px; }
.poster__sub { font-family: var(--font-body); font-size: 14px; line-height: 1.45; opacity: 0.92; margin: 0; max-width: 38ch; }

/* showcase layout switch (carousel vs grid) */
.showcase__carousel { display: none; }
html[data-showcase="carousel"] .showcase__grid { display: none; }
html[data-showcase="carousel"] .showcase__carousel { display: block; }
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel__track { display: flex; transition: transform var(--dur-slow) var(--ease-out); }
.carousel__slide { min-width: 100%; }
.carousel__slide .poster { box-shadow: none; border: none; border-radius: var(--radius-lg); min-height: 460px; }
.carousel__nav { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.carousel__btn {
  width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--bc-ink);
  background: var(--bc-paper); color: var(--bc-ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.carousel__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.carousel__dots { display: flex; gap: 8px; margin-left: auto; }
.carousel__dot { width: 10px; height: 10px; border-radius: 999px; border: 1.5px solid var(--bc-ink); background: transparent; cursor: pointer; padding: 0; }
.carousel__dot[aria-current="true"] { background: var(--bc-ink); }

/* ---------- Process ---------- */
.process { background: var(--bc-ink); color: var(--bc-paper); }
.process .sec-head__title { color: var(--bc-paper); }
.process .sec-head__meta { color: rgba(250,250,245,0.7); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.step { border-top: 2px solid var(--bc-cerulean); padding-top: 18px; }
.step__num { font-family: var(--font-display); font-size: 56px; line-height: 1; color: var(--bc-cerulean); margin-bottom: 12px; }
.step__name { font-family: var(--font-display); text-transform: uppercase; font-size: 20px; letter-spacing: -0.01em; margin: 0 0 8px; }
.step__body { font-size: 14px; line-height: 1.5; color: rgba(250,250,245,0.75); margin: 0; }

/* ---------- Studio teaser ---------- */
.studio-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--bc-pink); border: 2px solid var(--bc-ink);
  border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-card);
}
.studio-card__title { font-size: clamp(36px, 5vw, 64px); margin-bottom: 18px; }
.studio-card__body { font-size: 17px; line-height: 1.55; max-width: 46ch; margin: 0 0 24px; }
.studio-card__media { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--bc-ink); }
.studio-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA block ---------- */
.cta {
  background: var(--site-accent); border-top: 2px solid var(--bc-ink); border-bottom: 2px solid var(--bc-ink);
  transition: background var(--dur-base) var(--ease-out);
}
.cta__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta__title { font-size: clamp(48px, 8vw, 120px); margin-bottom: 18px; color: var(--bc-ink); }
.cta__lede { font-size: 18px; line-height: 1.5; max-width: 38ch; margin: 0 0 22px; color: var(--bc-ink); }
.cta__contact { font-family: var(--font-mono); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.cta__contact a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 14px; background: var(--bc-paper); border: 2px solid var(--bc-ink); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-card); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-body); font-weight: 600; font-size: 13px; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--bc-ink);
  background: var(--bc-white); border: 2px solid var(--bc-ink); border-radius: var(--radius-md);
  padding: 13px 16px; outline: none; transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.field input:focus, .field textarea:focus { border-color: var(--bc-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-accent) 60%, transparent); }
.field textarea { min-height: 96px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__ok { text-align: center; padding: 24px; }
.form__ok .display { font-size: 32px; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 2px solid var(--bc-ink); background: var(--site-bg); transition: background var(--dur-base); }
.site-foot__in { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 32px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(17,17,17,0.18); }
.foot-mark { font-size: clamp(40px, 7vw, 96px); }
.foot-col h4 { font-family: var(--font-body); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; margin: 0 0 14px; color: var(--fg-2); }
.foot-col a { display: block; text-decoration: none; font-size: 15px; margin-bottom: 8px; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; flex-wrap: wrap; }
.foot-bottom span { font-family: var(--font-body); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-2); }

/* ---------- Filter pills (work page) ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 40px); }
.filter {
  padding: 9px 18px; border-radius: 999px; border: 2px solid var(--bc-ink);
  background: transparent; cursor: pointer; font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.filter[aria-pressed="true"] { background: var(--bc-ink); color: var(--bc-paper); }

/* ---------- Journal list ---------- */
.journal-list { display: flex; flex-direction: column; gap: 0; }
.j-item {
  display: grid; grid-template-columns: 120px 1fr auto; gap: clamp(16px, 3vw, 40px);
  align-items: center; padding: clamp(20px, 3vw, 32px) 0;
  border-top: 2px solid var(--bc-ink); text-decoration: none; color: inherit;
  transition: padding-left var(--dur-base) var(--ease-out);
}
.j-item:last-child { border-bottom: 2px solid var(--bc-ink); }
.j-item:hover { padding-left: 16px; }
.j-item__date { font-family: var(--font-mono); font-size: 13px; color: var(--fg-2); }
.j-item__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(22px, 2.6vw, 34px); margin: 0 0 4px; line-height: 1; }
.j-item__sub { font-size: 14px; color: var(--fg-2); margin: 0; }
.j-item__tag { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border: 1.5px solid var(--bc-ink); border-radius: 999px; white-space: nowrap; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(28px, 4vw, 48px); }
.page-hero__title { font-size: clamp(56px, 11vw, 160px); }
.page-hero__lede { font-size: clamp(17px, 1.5vw, 21px); max-width: 52ch; margin: 18px 0 0; line-height: 1.45; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-portrait { border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--bc-ink); aspect-ratio: 4/5; box-shadow: var(--shadow-card); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.prose p { font-size: 17px; line-height: 1.6; margin: 0 0 18px; max-width: 56ch; }
.prose p:first-child { font-size: 21px; line-height: 1.5; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { border: 2px solid var(--bc-ink); border-radius: var(--radius-md); padding: 22px; background: var(--bc-paper); }
.value h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em; }
.value p { font-size: 14px; line-height: 1.5; color: var(--fg-2); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav { display: none; }
  .hero__grid, .cta__grid, .studio-card, .about-grid { grid-template-columns: 1fr; }
  .poster-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr; gap: 24px; }
  .values { grid-template-columns: 1fr; }
  .j-item { grid-template-columns: 1fr; gap: 6px; }
  .j-item__tag { display: none; }
  .field--row { grid-template-columns: 1fr; }
}

/* Tweaks panel uses light glass; keep above everything */
.twk-panel { z-index: 2147483646; }

/* ---------- Tweaks launcher (in-page opener for the panel) ---------- */
.tweaks-launcher {
  position: fixed; right: 16px; bottom: 16px; z-index: 2147483645;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px 11px 14px; border-radius: var(--radius-pill);
  border: 2px solid var(--bc-ink); background: var(--bc-paper); color: var(--bc-ink);
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
.tweaks-launcher:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tweaks-launcher:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.tweaks-launcher svg { display: block; }
.tweaks-launcher.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
