/* Powder Firm LLC — gpcnc.com
   Layout language: white page, large rounded "cards", a sky hero that
   collapses into a banner on scroll, and a tabbed brand showcase. */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #161616;
  --ink-2: #2a2a2a;
  --paper: #ffffff;
  --card: #fafafa;
  --line: #ececea;
  --muted: #5f5f5f;
  --quiet: #9a9a98;
  --olive: #6f8a3f;
  --rust: #a4493b;
  --radius: 40px;
  --radius-sm: 12px;
  --edge: 20px;                 /* page inset around the cards (ref: 20) */
  --gap: 18px;                  /* gap between the two brand cards (ref: 18) */
  --section-gap: 41px;          /* banner → cards (ref: 41) */
  --banner-h: 424px;            /* hero height once collapsed (ref: 424) */
  --hero-h: calc(100vh - 2 * var(--edge));
  --p: 0;                       /* scroll progress 0..1 (hero collapse) */
  --fade: 0;                    /* hero copy fade-out 0..1 */
  --reveal: 0;                  /* banner copy + brands reveal 0..1 */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@supports (height: 100svh) {
  :root { --hero-h: calc(100svh - 2 * var(--edge)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0;
}

.page { padding: var(--edge); }
.card { border-radius: var(--radius); position: relative; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 26px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 30px -14px rgba(0,0,0,.55); }
.btn-dark:hover { background: var(--ink-2); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 8px 24px -14px rgba(0,0,0,.35); }
.btn-white:hover { background: #f7f7f5; }
.btn-dark .ico, .btn-white .ico { font-size: 18px; }

/* ---------- brandmark ---------- */
.brandmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brandmark img { height: 30px; width: auto; }
.brandmark span { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }

/* ============================================================
   HERO
   ============================================================ */
.hero-wrap { position: relative; }
.hero {
  position: sticky; top: var(--edge);
  height: calc(var(--hero-h) - (var(--hero-h) - var(--banner-h)) * var(--p));
  overflow: hidden;
  background: #cfe0e7;
  box-shadow: 0 0 0 1px rgba(0,0,0,.03), 0 30px 60px -40px rgba(20,40,60,.35);
  isolation: isolate;
}
.hero-stage { position: relative; height: var(--hero-h); }
.sky { position: absolute; inset: 0; z-index: 0; }
.sky img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 30px 48px;
}
.nav .btn { justify-self: end; height: 56px; }

.pill {
  display: inline-flex; gap: 2px; padding: 6px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.03);
}
.pill-btn {
  position: relative;
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; color: var(--ink);
  transition: background-color .25s ease, color .25s ease, transform .3s var(--ease);
}
.pill-btn svg { width: 20px; height: 20px; fill: currentColor; }
.pill-btn:hover { background: #f1f1ef; }
.pill-btn:active { transform: scale(.94); }
.pill-btn.is-active { background: var(--ink); color: #fff; }
.pill-btn.is-active:hover { background: var(--ink-2); }
.pill-btn::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, -4px);
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 500;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .3s var(--ease);
}
.pill-btn:hover::after { opacity: 1; transform: translate(-50%, 0); }

.hero-copy {
  position: absolute; left: 0; right: 0; top: 17%; z-index: 5;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
  opacity: calc(1 - var(--fade));
  filter: blur(calc(var(--fade) * 14px));
  transform: translateY(calc(var(--fade) * -24px));
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.hero-copy h1 { font-size: clamp(52px, min(6.2vw, 9.2vh), 96px); line-height: .98; }
.hero-copy .btn { height: 64px; padding: 0 34px; font-size: 16px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 500;
  box-shadow: 0 6px 20px -12px rgba(0,0,0,.4);
}
.badge .ico { font-size: 15px; color: var(--olive); }

/* glass board that sits on the grass */
.board {
  position: absolute; z-index: 3;
  left: 50%; top: 63%; width: min(800px, 58%);
  transform: translateX(-50%);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-radius: 28px;
  padding: 24px 28px 32px;
  box-shadow: 0 30px 60px -30px rgba(10,30,40,.35), inset 0 1px 0 rgba(255,255,255,.7);
  font-size: 13px;
}
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.board-who { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 8px 18px 8px 8px; }
.board-who span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.board-who b { font-weight: 600; font-size: 12.5px; }
.board-who small { font-size: 11px; color: var(--quiet); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.avatar img { height: 18px; width: auto; filter: invert(1); }
.board-title { font-size: 26px; color: #a8a8a6; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 6px; }
.board-title b { font-weight: 500; color: var(--ink); }
.board-title .ico { font-size: 14px; color: var(--ink); }

.board-body { display: grid; grid-template-columns: 1.15fr 56px 1.5fr; gap: 16px; align-items: start; }
.board-col { display: grid; gap: 12px; }
.mini { background: #fff; border-radius: 14px; padding: 14px 16px 16px; }
.mini-head { display: flex; justify-content: space-between; color: var(--quiet); font-size: 13px; margin-bottom: 14px; }
.stats { display: flex; gap: 22px; }
.stat { display: flex; flex-direction: column; font-size: 11px; line-height: 1.2; }
.stat b { font-weight: 400; font-size: 30px; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.olive { color: var(--olive); } .rust { color: var(--rust); } .ink { color: var(--ink); }
.big { font-size: 34px; letter-spacing: -0.03em; line-height: 1; font-weight: 400; }

.board-avatars { display: grid; gap: 10px; background: #fff; border-radius: 14px; padding: 10px; justify-items: center; }
.chip {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: #f0f0ee; font-weight: 600; font-size: 14px;
}
.chip img { width: 70%; height: 70%; object-fit: contain; }
.chip-tack img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chip-ice { background: #e6f2fb; }
.chip-out { background: #0b0b0c; }
.chip-mk { background: #ededeb; }
.chip-mk img { width: 62%; height: 62%; image-rendering: pixelated; }
.chip.lg { width: 44px; height: 44px; border-radius: 12px; }
.chip.lg img { border-radius: 0; }
.chip-tack.lg img { border-radius: 12px; }

.board-chat { display: grid; gap: 10px; justify-items: start; }
.msg { background: #fff; border-radius: 14px; padding: 12px 16px; width: 100%; }
.msg.reply { width: auto; justify-self: end; max-width: 80%; }
.msg-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.msg-head b { font-weight: 600; }
.msg-head span { font-size: 11px; color: var(--quiet); }
.msg p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.msg p + p { margin-top: 6px; color: var(--muted); }
.msg .ok { color: #2ea043; font-size: 14px; }
.tag { justify-self: end; font-size: 11px; color: var(--olive); background: #eef3e4; padding: 4px 10px; border-radius: 999px; }

.grass { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 4; pointer-events: none; }
.grass img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

.banner-copy {
  position: absolute; left: 0; right: 0; top: calc(var(--banner-h) * .42); z-index: 6;
  text-align: center;
  opacity: var(--reveal);
  filter: blur(calc((1 - var(--reveal)) * 14px));
  transform: translateY(calc((1 - var(--reveal)) * 24px));
  pointer-events: none;
}
.banner-copy .display { font-size: clamp(44px, 3.6vw, 66px); line-height: .98; }

/* ============================================================
   BRANDS (tabs card + showcase card)
   ============================================================ */
.brands {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
  margin-top: var(--section-gap);
  /* ref: card height ≈ 0.866 × card width */
  height: clamp(560px, calc((100vw - 2 * var(--edge) - var(--gap)) / 2 * .866), 800px);
  opacity: calc(.15 + .85 * var(--reveal));
  transform: translateY(calc((1 - var(--reveal)) * 40px));
}
.brands-head { display: none; }

.tabs {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.tablist { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 40px 0 26px 36px; text-align: left;
  transition: opacity .3s ease;
}
.tab b { font-weight: 500; font-size: 15px; }
.tab span { font-size: 12.5px; color: var(--quiet); }
.tab:not(.is-active) { opacity: .75; }
.tab:not(.is-active):hover { opacity: 1; }
.tab-ink {
  position: absolute; bottom: -1px; height: 2px; background: var(--olive);
  left: 0; width: 25%;
  transition: left .6s var(--ease), width .6s var(--ease);
}
.panels { position: relative; flex: 1; display: grid; padding: 40px 36px 42px; min-height: 0; }
.panel {
  grid-area: 1 / 1;
  align-self: end;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  transition: opacity .45s ease, filter .45s ease, transform .6s var(--ease);
}
.panel[hidden] { display: flex; opacity: 0; filter: blur(10px); transform: translateY(14px); pointer-events: none; }
.panel h3 { font-size: clamp(44px, 3.3vw, 58px); }
.panel p { margin: 0; max-width: 360px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.panel .btn { height: 64px; padding: 0 30px; margin-top: 6px; }

.showcase { overflow: hidden; background: #cfe0e7; isolation: isolate; }
.showcase .sky img { object-position: 50% 30%; }
.rock { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 1; pointer-events: none; }
.rock img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

.float {
  position: absolute; z-index: 3;
  left: 50%; top: 15%; width: min(500px, 60%);
  transform: translateX(-50%);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 22px; padding: 18px 18px 14px;
  box-shadow: 0 30px 60px -30px rgba(10,30,40,.4);
  font-size: 13px;
  transition: opacity .5s ease, filter .5s ease, transform .7s var(--ease);
}
.float:not(.is-active) { opacity: 0; filter: blur(10px); transform: translate(-50%, 18px); }
.float-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.float-head > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.float-head b { font-weight: 600; font-size: 14px; }
.float-head small { font-size: 12px; color: var(--quiet); }
.float-rows { display: grid; gap: 6px; }
.row { display: flex; justify-content: space-between; align-items: center; background: #f6f6f4; border-radius: 10px; padding: 10px 12px; }
.row span { color: var(--quiet); font-size: 12px; }
.row b { font-weight: 500; font-size: 13px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #fff; margin-top: var(--section-gap); padding: 56px 48px 36px; }
.site-footer .brandmark { color: #fff; margin-bottom: 18px; }
.site-footer .brandmark img { filter: invert(1); }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; padding-bottom: 48px; }
.site-footer address { font-style: normal; font-size: 15px; line-height: 1.7; color: #c9c9c6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-self: start; padding-top: 6px; }
.footer-links a { text-decoration: none; color: #c9c9c6; font-size: 14px; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.site-footer a:focus-visible { outline-color: #fff; }
.footer-bottom { border-top: 1px solid #2c2c2c; padding-top: 24px; font-size: 13px; color: #8d8d8a; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }

/* ============================================================
   LOAD-IN choreography (desktop only)
   ============================================================ */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .sky, .nav, .hero-copy > *, .board, .grass { animation: rise 1.1s var(--ease) both; }
  .sky { animation-name: fadein; animation-duration: 1.2s; }
  .nav { animation-delay: .25s; }
  .hero-copy .badge { animation-delay: .35s; }
  .hero-copy h1 { animation-delay: .45s; }
  .hero-copy .btn { animation-delay: .6s; }
  .board { animation-delay: .55s; animation-name: rise-board; }
  .grass { animation-delay: .35s; animation-name: rise-grass; }
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; filter: blur(12px); transform: translateY(24px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes rise-board { from { opacity: 0; transform: translate(-50%, 60px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes rise-grass { from { transform: translateY(60px); } to { transform: translateY(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .nav { padding: 24px 32px; }
  .board { width: min(760px, 72%); }
  .tab { padding-left: 24px; }
  .panels { padding: 32px 24px 24px; }
}

@media (max-width: 899px) {
  :root { --edge: 10px; --gap: 10px; --section-gap: 10px; --radius: 26px; --p: 0 !important; --fade: 0 !important; --reveal: 1 !important; }
  .page { padding: var(--edge); }

  /* hero: a full-screen card, same layering as desktop, no scrub */
  .hero { position: relative; top: auto; height: calc(100vh - 2 * var(--edge)); min-height: 600px; max-height: 860px; }
  @supports (height: 100svh) { .hero { height: calc(100svh - 2 * var(--edge)); } }
  .hero-stage { height: 100%; }
  .nav { grid-template-columns: auto 1fr; padding: 14px 14px; }
  .nav .pill { justify-self: end; }
  .nav .btn { display: none; }
  .brandmark img { height: 26px; }
  .nav .brandmark span { display: none; }
  .pill { padding: 4px; border-radius: 14px; gap: 0; }
  .pill-btn { width: 42px; height: 42px; border-radius: 11px; }
  .pill-btn svg { width: 17px; height: 17px; }
  .pill-btn::after { display: none; }
  .hero-copy { top: 15%; padding: 0 16px; gap: 20px; }
  .hero-copy h1 { font-size: clamp(32px, 8.4vw, 50px); }
  .hero-copy .btn { height: 56px; padding: 0 26px; font-size: 15px; }
  .badge { height: 32px; font-size: 12px; }
  /* the board is illustration here: scaled down, behind the grass, not touchable */
  .board { top: auto; bottom: 10%; width: 640px; transform: translateX(-50%) scale(.52); transform-origin: 50% 100%; pointer-events: none; padding: 20px 22px 26px; }
  .grass { height: 24%; }
  .banner-copy { display: none; }

  /* brands */
  .brands { grid-template-columns: 1fr; height: auto; transform: none; opacity: 1; margin-top: 44px; }
  .brands-head { display: block; text-align: center; font-size: clamp(34px, 9.4vw, 52px); padding: 0 12px 26px; }
  .tabs { border-radius: var(--radius); }
  .tablist { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tablist::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 22px 18px 16px; }
  .tab:first-child { padding-left: 22px; }
  .tab b { font-size: 15px; }
  .panels { padding: 28px 22px 24px; min-height: 280px; }
  .panel { gap: 16px; }
  .panel h3 { font-size: clamp(38px, 10vw, 48px); }
  .panel p { font-size: 15px; }
  .panel .btn { height: 56px; padding: 0 24px; margin-top: 2px; }
  .showcase { height: 420px; }
  .float { top: 8%; width: min(360px, 84%); padding: 14px 14px 12px; }
  .rock { height: 42%; }

  /* footer */
  .site-footer { padding: 36px 22px 24px; border-radius: var(--radius); }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
  .footer-links { gap: 10px 22px; padding-top: 0; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --p: 0 !important; --fade: 0 !important; --reveal: 1 !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero { position: relative; top: auto; height: auto; }
  .hero-stage { height: auto; min-height: 720px; padding-bottom: 36%; }
  .banner-copy { display: none; }
  .brands-head { display: block; grid-column: 1 / -1; text-align: center; font-size: 56px; padding: 48px 12px 24px; }
  .hero-copy { position: relative; top: auto; padding-top: 140px; }
  .board { position: relative; left: auto; top: auto; transform: none; margin: 48px auto -10%; }
}

/* ============================================================
   Secondary pages (privacy, 404)
   ============================================================ */
.page-secondary .site-footer { margin-top: 0; }
.topbar { padding: 8px 0 0; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 var(--edge); }
.topbar nav { display: flex; gap: 24px; }
.topbar nav a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .15s ease; }
.topbar nav a:hover { color: var(--ink); }

.prose { max-width: 680px; margin: 0 auto; padding: 72px var(--edge) 120px; }
.prose h1 { font-family: var(--serif); font-weight: 400; margin: 0 0 8px; font-size: 56px; line-height: 1.05; letter-spacing: -0.015em; }
.prose .updated { margin: 0 0 48px; color: var(--muted); font-size: 14px; }
.prose p { margin: 0 0 22px; font-size: 17px; line-height: 1.7; }
.prose h2 { margin: 40px 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 500; }
.prose address { font-style: normal; font-size: 17px; line-height: 1.7; margin: 0 0 22px; }
.prose a { text-underline-offset: 3px; }

.nf { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px var(--edge); }
.nf img { height: 120px; width: auto; margin-bottom: 32px; }
.nf p { margin: 0 0 20px; font-size: 18px; }
.nf a { font-size: 14px; }
.label { font-size: 11px; line-height: 1.4; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; }
