/* ─── Shared styles for all works case study pages ─── */
@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

:root {
  /* Font */
  --font-base: 'Switzer', sans-serif;

  /* Brand Colors */
  --color-brand-primary: #312DFD;
  --color-brand-secondary: #CBFF52;

  /* Text Colors */
  --color-text-primary: #121212;
  --color-text-secondary: #A5A5A5;

  /* Surface / UI Colors */
  --color-border: #EBEAEF;
  --color-white: #FFFFFF;
  --color-primary: #050505;
  --color-secondary: rgba(0, 0, 0, 0.5);

  /* Neutrals */
  --color-neutral-00: #FFFFFF;
  --color-neutral-01: #FFFFFF;
  --color-neutral-03: #64655F;
  --color-neutral-04: #121212;
  --color-neutral-10: #6D6D6D;
  --color-neutral-12: #000000;
}

body {
  font-family: var(--font-base);
  background: var(--color-white);
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── HEADINGS ─── */
h1, .h1 { font-size: 80px; font-weight: 500; line-height: 1.2; color: var(--color-text-primary); }
h2, .h2 { font-size: 48px; font-weight: 500; line-height: 1.2; color: var(--color-text-primary); }
h3, .h3 { font-size: 26px; font-weight: 400; line-height: 1.4; color: var(--color-text-primary); }
h4, .h4 { font-size: 23px; font-weight: 400; line-height: 1.4; color: var(--color-text-primary); }
h5, .h5 { font-size: 20px; font-weight: 400; line-height: 1.4; color: var(--color-text-primary); }
h6, .h6 { font-size: 18px; font-weight: 400; line-height: 1.4; color: var(--color-text-primary); }

/* ─── BODY TEXT ─── */
.body-36 { font-size: 36px; font-weight: 400; line-height: 1.2; color: var(--color-text-primary); }
.body-20 { font-size: 20px; font-weight: 400; line-height: 1.2; color: var(--color-text-primary); }
.body-16 { font-size: 16px; font-weight: 400; line-height: 1.2; color: var(--color-text-primary); }
.body-14 { font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--color-text-primary); }
.body-12 { font-size: 12px; font-weight: 400; line-height: 1.2; color: var(--color-text-primary); }
.body-12-upper { font-size: 12px; font-weight: 400; line-height: 1.2; text-transform: uppercase; color: var(--color-text-primary); }

/* ─── NAV ─── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 24px 64px;
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 100;
  background: #fff;
  transition: transform 0.3s ease;
}
.site-nav--hidden { transform: translateY(-120px); }
.nav-logo { display: flex; flex-direction: column; gap: 2px; }
.nav-logo__name { font-size: 14px; font-weight: 400; color: var(--color-text-primary); line-height: 1.35; }
.nav-logo__role { font-size: 14px; font-weight: 400; color: var(--color-text-secondary); line-height: 1.35; }

/* ─── TRIGGER BUTTON ─── */
.menu-trigger {
  width: 54px; height: 54px;
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0; position: relative; flex-shrink: 0;
}

/* ─── BURGER ICON (closed state: 2 lines) ─── */
.burger-icon {
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-end;
  gap: 5px; width: 22px; height: 22px;
  transition: opacity 0.25s ease-in-out;
}
.burger-icon span {
  display: block; height: 1.5px;
  background: var(--color-text-primary);
}
.burger-icon span:nth-child(1) { width: 22px; }
.burger-icon span:nth-child(2) { width: 16px; }

/* ─── CLOSE ICON (open state: X inside trigger) ─── */
.close-icon {
  position: absolute; width: 14px; height: 14px;
  opacity: 0; transition: opacity 0.25s ease-in-out;
  pointer-events: none;
}
.close-icon::before,
.close-icon::after {
  content: ''; position: absolute; top: 50%; left: 0;
  width: 100%; height: 1.5px;
  background: var(--color-text-primary);
}
.close-icon::before { transform: translateY(-50%) rotate(45deg); }
.close-icon::after  { transform: translateY(-50%) rotate(-45deg); }

/* ─── STATE: menu open ─── */
body.menu-open .burger-icon { opacity: 0; pointer-events: none; }
body.menu-open .close-icon  { opacity: 1; pointer-events: auto; }

/* ─── MENU PANEL (slide in from right) ─── */
.menu-panel {
  position: fixed;
  top: 24px; right: 64px;
  width: 240px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 16px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 0; min-height: 280px;
  transform: translateX(calc(100% + 40px)); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999; pointer-events: none;
}
body.menu-open .menu-panel {
  transform: translateX(0); opacity: 1; pointer-events: auto;
}

/* ─── PANEL INNER LAYOUT ─── */
.menu-links-row {
  display: flex; flex-direction: row;
  align-items: flex-start; gap: 50px; width: 100%;
}
.nav-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.nav-links a {
  text-decoration: none; display: flex; align-items: center;
  width: 134px; height: 32px;
}
.nav-links a p {
  font-family: var(--font-base);
  font-size: 20px; font-weight: 400; line-height: 24px;
  color: var(--color-text-primary);
  transition: opacity 0.2s ease;
}
.nav-links a:hover p { opacity: 0.5; }

/* X button inside panel */
.close-btn-col {
  display: flex; align-items: flex-start; justify-content: center;
  width: 24px; height: 24px; cursor: pointer; flex-shrink: 0;
}
.close-btn-col .x-icon { position: relative; width: 14px; height: 14px; }
.close-btn-col .x-icon::before,
.close-btn-col .x-icon::after {
  content: ''; position: absolute; top: 50%; left: 0;
  width: 100%; height: 1.5px;
  background: var(--color-text-primary);
}
.close-btn-col .x-icon::before { transform: translateY(-50%) rotate(45deg); }
.close-btn-col .x-icon::after  { transform: translateY(-50%) rotate(-45deg); }
.close-btn-col:hover .x-icon::before,
.close-btn-col:hover .x-icon::after { opacity: 0.5; }

.menu-spacer { flex: 1; min-height: 40px; }
.menu-cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 39px; padding: 10px;
  background: var(--color-text-primary); color: var(--color-white);
  font-family: var(--font-base);
  font-size: 16px; font-weight: 400; line-height: 1.2;
  border: none; border-radius: 0; cursor: pointer; text-align: center;
  transition: opacity 0.2s ease; text-decoration: none;
}
.menu-cta:hover { opacity: 0.8; }

/* ─── PAGE LAYOUT ─── */
.page { padding: 0 64px 0; max-width: 960px; margin: 0 auto; }

/* ─── CASE STUDY HERO ─── */
.doc-hero  { padding: 164px 0 48px; }
.doc-title { font-size: 48px; font-weight: 500; color: var(--color-text-primary); line-height: 1.1; letter-spacing: -0.02em; max-width: 680px; }
.doc-sub   { font-size: 14px; font-weight: 400; color: var(--color-text-primary); line-height: 1.35; margin-top: 20px; max-width: 560px; }
.doc-sub2  { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; margin-top: 6px; max-width: 480px; font-style: italic; }

/* ─── META GRID ─── */
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 24px; padding: 36px 0 48px; }
.meta-lbl  { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-secondary); margin-bottom: 8px; }
.meta-val  { font-size: 14px; color: var(--color-text-primary); line-height: 1.6; }

/* ─── SECTION BLOCKS ─── */
.sblk      { padding: 56px 0 0; }
.sblk-head { font-size: 16px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 20px; }
.sblk-body { font-size: 14px; font-weight: 400; color: var(--color-text-primary); line-height: 1.35; max-width: 680px; }
.sblk-body p + p { margin-top: 16px; }
.sblk-body strong { font-weight: 500; }

/* ─── NUMBERED LIST ─── */
.num-list  { display: flex; flex-direction: column; gap: 28px; margin-top: 28px; max-width: 680px; }
.num-item  { display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.num-n     { font-size: 11px; color: var(--color-text-secondary); padding-top: 3px; line-height: 1; }
.num-body h4 { font-size: 14px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 8px; line-height: 1.4; }
.num-body p  { font-size: 14px; font-weight: 400; color: var(--color-text-primary); line-height: 1.35; margin: 0; }

/* ─── QUOTE BLOCK ─── */
.quote-blk   { padding: 56px 0; }
.quote-blk p { font-size: 22px; font-style: italic; color: var(--color-text-primary); line-height: 1.55; max-width: 680px; }

/* ─── IMAGE BLOCKS ─── */
.img-blk       { margin-top: 48px; }
.img-blk img   { width: 100%; display: block; }
.img-blk--dark { margin-top: 48px; background: #0a0a0a; overflow: hidden; }
.img-blk--dark img { width: 100%; display: block; }

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--color-border); margin: 48px 0 0; }

/* ─── FOOTER ─── */
.footer { display: flex; justify-content: space-between; align-items: center; padding: 24px 64px; border-top: 1px solid var(--color-border); }
.footer-copy  { font-size: 12px; line-height: 1.2; text-transform: uppercase; color: var(--color-text-primary); }
.footer-links { display: flex; gap: 10px; }
.footer-links a { font-size: 12px; line-height: 1.2; text-transform: uppercase; color: var(--color-text-secondary); transition: color .15s; }
.footer-links a:hover { color: var(--color-text-primary); }

/* ─── NEXT WORK ─── */
.next-work { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-top: 1px solid var(--color-border); margin-top: 60px; }
.next-label { font-size: 12px; text-transform: uppercase; color: var(--color-text-secondary); }
.next-title { font-size: 20px; color: var(--color-text-primary); margin-top: 4px; }

/* ─── ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 809px) {
  .page { padding: 0 20px 0; }
  .site-nav { padding: 24px 20px; }
  .menu-panel { right: 20px; width: calc(100vw - 40px); max-width: 240px; }
  .doc-hero  { padding-top: 120px; }
  .doc-title { font-size: 32px; }
  .meta-grid { gap: 20px; padding: 28px 0 36px; }
  .num-item  { grid-template-columns: 18px 1fr; gap: 10px; }
  .quote-blk p { font-size: 18px; }
  .img-blk, .img-blk--dark { margin-top: 32px; }
  .img-blk img, .img-blk--dark img { height: auto !important; object-fit: contain !important; }
  .sblk { padding-top: 40px; }
  .footer { padding: 24px 20px; }
}
