/* ============ FONTS ============ */
@font-face {
  font-family: 'ITC Avant Garde';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('brand_assets/Typography/ITC Avant Garde Gothic/ITC Avant Garde Gothic CE Book/ITC Avant Garde Gothic CE Book.otf') format('opentype');
}
@font-face {
  font-family: 'ITC Avant Garde';
  font-weight: 300;
  font-style: italic;
  font-display: swap;
  src: url('brand_assets/Typography/ITC Avant Garde Gothic/ITC Avant Garde Gothic CE Book Oblique/ITC Avant Garde Gothic CE Book Oblique.otf') format('opentype');
}
@font-face {
  font-family: 'ITC Avant Garde';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('brand_assets/Typography/ITC Avant Garde Gothic/ITC Avant Garde Gothic CE Book/ITC Avant Garde Gothic CE Book.otf') format('opentype');
}
@font-face {
  font-family: 'ITC Avant Garde';
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url('brand_assets/Typography/ITC Avant Garde Gothic/ITC Avant Garde Gothic CE Book Oblique/ITC Avant Garde Gothic CE Book Oblique.otf') format('opentype');
}
@font-face {
  font-family: 'ITC Avant Garde';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('brand_assets/Typography/ITC Avant Garde Gothic/ITC Avant Garde Gothic Medium/ITC Avant Garde Gothic Medium.otf') format('opentype');
}
@font-face {
  font-family: 'ITC Avant Garde';
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  src: url('brand_assets/Typography/ITC Avant Garde Gothic/ITC Avant Garde Gothic Medium Oblique/ITC Avant Garde Gothic Medium Oblique.otf') format('opentype');
}
@font-face {
  font-family: 'ITC Avant Garde';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('brand_assets/Typography/ITC Avant Garde Gothic/ITC Avant Garde Gothic CE Demi/ITC Avant Garde Gothic CE Demi.otf') format('opentype');
}
@font-face {
  font-family: 'ITC Avant Garde';
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  src: url('brand_assets/Typography/ITC Avant Garde Gothic/ITC Avant Garde Gothic CE Demi Oblique/ITC Avant Garde Gothic CE Demi Oblique.otf') format('opentype');
}
@font-face {
  font-family: 'ITC Avant Garde';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('brand_assets/Typography/ITC Avant Garde Gothic/ITC Avant Garde Gothic CE Demi/ITC Avant Garde Gothic CE Demi.otf') format('opentype');
}
@font-face {
  font-family: 'ITC Avant Garde';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('brand_assets/Typography/ITC Avant Garde Gothic/ITC Avant Garde Gothic Bold/ITC Avant Garde Gothic Bold.otf') format('opentype');
}
@font-face {
  font-family: 'ITC Avant Garde';
  font-weight: 800;
  font-style: italic;
  font-display: swap;
  src: url('brand_assets/Typography/ITC Avant Garde Gothic/ITC Avant Garde Gothic Bold Oblique/ITC Avant Garde Gothic Bold Oblique.otf') format('opentype');
}

/* ============ TOKENS ============ */
:root {
  --coral:      #E8584A;
  --pink:       #F07DB5;
  --periwinkle: #6B77C8;
  --purple:     #6347E8;
  --mint:       #7DD4B0;
  --dark:       #1A1A1A;
  --white:      #FFFFFF;
  --off-white:  #F8F7F5;
  --border:     rgba(26,26,26,0.09);
  --radius-sm:  12px;
  --radius-md:  16px;
  --radius-lg:  20px;
  --radius-xl:  28px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5,h6,p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============ BASE ============ */
body {
  font-family: 'ITC Avant Garde', sans-serif;
  color: var(--dark);
  background: #f2ede4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============ SKIP NAV ============ */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--purple);
  color: white;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* ============ CONTAINER ============ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav.nav--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 16px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  opacity: 0.55;
  transition: opacity 0.2s;
  padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 100%;
  height: 1.5px;
  background: var(--dark);
  transition: right 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 3px; opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-toggle:hover { background: var(--off-white); }
.nav-toggle:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 3px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--dark); transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; font-weight: 600; padding: 10px 0; }
  .nav-links a::after { display: none; }
}

/* ============ FOOTER ============ */
.footer { background: #f2ede4; color: var(--dark); padding: 64px 0 40px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; margin-bottom: 48px; flex-wrap: wrap; }
.footer-logo-img { height: 15px; filter: none; opacity: 0.7; margin-bottom: 10px; }
.footer-tagline { font-size: 13px; color: rgba(0,0,0,0.35); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.footer-nav a { font-size: 13px; color: rgba(0,0,0,0.4); transition: color 0.2s; }
.footer-nav a:hover { color: var(--dark); }
.footer-nav a:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; border-radius: 2px; color: var(--dark); }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(0,0,0,0.1); }
.footer-copy { font-size: 12px; color: rgba(0,0,0,0.25); }

/* ============ WORK CARDS ============ */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  border-radius: var(--radius-xl);
  min-height: 300px;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
  overflow: hidden;
}
.work-card:hover { transform: translateY(-8px); box-shadow: 0 32px 72px rgba(0,0,0,0.2); }
.work-card:active { transform: translateY(-3px) scale(0.99); }
.work-card:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; }
.work-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.work-card-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin-bottom: 6px; }
.work-card-company { font-family: 'ITC Avant Garde', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.work-card-arrow { font-size: 22px; opacity: 0.5; transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s; flex-shrink: 0; }
.work-card:hover .work-card-arrow { transform: translate(4px,-4px); opacity: 0.9; }
.work-card-metric { font-family: 'ITC Avant Garde', sans-serif; font-weight: 800; font-size: clamp(40px,4.5vw,56px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 4px; }
.work-card-metric-sub { font-size: 13px; opacity: 0.7; margin-bottom: 14px; }
.work-card-desc { font-size: 13px; line-height: 1.65; opacity: 0.65; max-width: 300px; }

.card-purple     { background: var(--purple);     color: white; }
.card-periwinkle { background: var(--periwinkle); color: white; }
.card-coral      { background: var(--coral);      color: white; }
.card-mint       { background: var(--mint);        color: var(--dark); }
.card-pink       { background: var(--pink);        color: var(--dark); }
.card-dark       { background: var(--dark);        color: white; }
.card-light      { background: var(--off-white);   color: var(--dark); border: 1.5px solid var(--border); }

/* ============ CASE STUDY ============ */
.cs-hero { padding: 120px 0 64px; }
.cs-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; opacity: 0.45; margin-bottom: 40px; transition: opacity 0.2s, gap 0.2s; }
.cs-back:hover { opacity: 0.85; gap: 3px; }
.cs-back:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 2px; opacity: 1; }
.cs-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.4; margin-bottom: 16px; }
.cs-title { font-family: 'ITC Avant Garde', sans-serif; font-weight: 800; font-size: clamp(40px,6vw,72px); letter-spacing: -0.03em; line-height: 1.0; margin-bottom: 20px; }
.cs-lead { font-size: 18px; line-height: 1.75; opacity: 0.6; max-width: 640px; }

.cs-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  gap: 1px;
  margin: 56px 0;
}
.cs-overview-item { background: var(--off-white); padding: 24px 28px; }
.cs-overview-label { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.4; margin-bottom: 8px; }
.cs-overview-value { font-family: 'ITC Avant Garde', sans-serif; font-weight: 700; font-size: 15px; }

.cs-content { max-width: 720px; }
.cs-section { margin-bottom: 56px; }
.cs-section-title { font-family: 'ITC Avant Garde', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin-bottom: 18px; }
.cs-body { font-size: 16px; line-height: 1.8; opacity: 0.7; }
.cs-body p + p { margin-top: 14px; }
.cs-body ul { list-style: disc; padding-left: 20px; margin-top: 12px; }
.cs-body li { margin-bottom: 8px; }

.cs-quote { border-left: 3px solid var(--coral); padding: 16px 24px; margin: 32px 0; background: var(--off-white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cs-quote p { font-size: 16px; line-height: 1.65; font-style: italic; opacity: 0.75; margin-bottom: 8px; }
.cs-quote cite { font-size: 12px; opacity: 0.4; font-style: normal; }

.cs-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 40px 0; }
.cs-metric-card { background: var(--off-white); border-radius: var(--radius-md); padding: 28px; }
.cs-metric-num { font-family: 'ITC Avant Garde', sans-serif; font-weight: 800; font-size: 40px; letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.cs-metric-desc { font-size: 13px; opacity: 0.5; line-height: 1.5; }

.cs-iteration { background: var(--off-white); border-radius: var(--radius-md); padding: 28px; margin-bottom: 14px; }
.cs-iteration-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.4; margin-bottom: 8px; }
.cs-iteration h4 { font-family: 'ITC Avant Garde', sans-serif; font-weight: 800; font-size: 17px; margin-bottom: 10px; }
.cs-iteration p { font-size: 14px; line-height: 1.7; opacity: 0.65; }

.cs-next-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px;
  border-radius: var(--radius-xl);
  margin: 72px 0;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.cs-next-bar:hover { transform: translateY(-5px); box-shadow: 0 24px 64px rgba(0,0,0,0.18); }
.cs-next-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; margin-bottom: 8px; }
.cs-next-title { font-family: 'ITC Avant Garde', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.cs-next-arrow { font-size: 32px; opacity: 0.7; }

/* ============ PAGE HERO ============ */
.page-hero { padding: 120px 0 64px; border-bottom: 1px solid var(--border); margin-bottom: 64px; }
.page-title { font-family: 'ITC Avant Garde', sans-serif; font-weight: 800; font-size: clamp(40px,6vw,72px); letter-spacing: -0.03em; line-height: 1.0; }
.page-lead { font-size: 18px; line-height: 1.75; opacity: 0.55; max-width: 560px; margin-top: 16px; }

/* ============ COMMUNITY PAGE ============ */
.resource-section { margin-bottom: 72px; }
.resource-section-title {
  font-family: 'ITC Avant Garde', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.resource-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.resource-card { background: var(--off-white); border-radius: var(--radius-md); padding: 24px; transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s; }
.resource-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.09); }
.resource-card:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: var(--radius-md); }
.resource-card-date { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.35; margin-bottom: 8px; }
.resource-card-title { font-family: 'ITC Avant Garde', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.35; margin-bottom: 6px; }
.resource-card-source { font-size: 12px; opacity: 0.4; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card { border-radius: var(--radius-lg); padding: 28px; border: 1.5px solid var(--border); transition: border-color 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }
.service-card:hover { border-color: rgba(26,26,26,0.2); transform: translateY(-3px); }
.service-icon { font-size: 24px; margin-bottom: 14px; }
.service-name { font-family: 'ITC Avant Garde', sans-serif; font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.service-desc { font-size: 13px; line-height: 1.65; opacity: 0.6; }
.service-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--purple); transition: gap 0.2s; }
.service-cta:hover { gap: 10px; }

/* ============ LINKS PAGE ============ */
.links-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.link-tile {
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.link-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 64px rgba(0,0,0,0.16); }
.link-tile:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; }
.link-tile-icon { font-size: 28px; line-height: 1; }
.link-tile-label { font-family: 'ITC Avant Garde', sans-serif; font-weight: 800; font-size: 17px; }
.link-tile-sub { font-size: 13px; opacity: 0.65; line-height: 1.4; }
.link-tile-arrow { font-size: 18px; opacity: 0.45; align-self: flex-end; transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1); }
.link-tile:hover .link-tile-arrow { transform: translate(4px,-4px); opacity: 0.9; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .cs-overview { grid-template-columns: repeat(2, 1fr); }
  .cs-metrics { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .links-bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .work-grid { grid-template-columns: 1fr; }
  .cs-next-bar { padding: 28px 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-hero { padding: 100px 0 48px; margin-bottom: 48px; }
  .cs-hero { padding: 100px 0 48px; }
}
@media (max-width: 580px) {
  .resource-grid, .service-grid, .links-bento, .cs-metrics { grid-template-columns: 1fr; }
  .cs-overview { grid-template-columns: 1fr 1fr; }
}
