﻿/* ============================================================
   ASSIGNMENT PANEL — SHARED BASE STYLES
   Palette: Tory Blue, Zest, Vivid, Jungle
   ============================================================ */
:root {
  --tory:    #0B5FA5;
  --tory-2:  #0E72C4;
  --tory-3:  #084877;
  --tory-4:  #062F4E;
  --zest:    #E46F2E;
  --zest-2:  #F08442;
  --zest-3:  #C45614;
  --vivid:   #7B3F98;
  --vivid-2: #9755B5;
  --jungle:  #2AA872;
  --jungle-2:#34BD81;
  --cream:   #FAF6F0;
  --cream-2: #F3ECDE;

  --n-0:     #FFFFFF;
  --n-50:    #FAFBFC;
  --n-100:   #F3F4F6;
  --n-200:   #E5E7EB;
  --n-300:   #D1D5DB;
  --n-500:   #6B7280;
  --n-700:   #374151;
  --n-900:   #111827;
  --black:   #0A0A0A;

  --t-90: rgba(11, 95, 165, 0.9);
  --t-50: rgba(11, 95, 165, 0.5);
  --t-15: rgba(11, 95, 165, 0.15);
  --t-08: rgba(11, 95, 165, 0.08);

  --w-90: rgba(255, 255, 255, 0.9);
  --w-70: rgba(255, 255, 255, 0.7);
  --w-50: rgba(255, 255, 255, 0.5);
  --w-30: rgba(255, 255, 255, 0.3);
  --w-15: rgba(255, 255, 255, 0.15);
  --w-08: rgba(255, 255, 255, 0.08);

  --b-90: rgba(10, 10, 10, 0.9);
  --b-70: rgba(10, 10, 10, 0.7);
  --b-50: rgba(10, 10, 10, 0.5);
  --b-15: rgba(10, 10, 10, 0.15);
  --b-08: rgba(10, 10, 10, 0.08);
  --b-04: rgba(10, 10, 10, 0.04);

  --serif: 'EB Garamond', Georgia, serif;
  --sans:  'Merriweather Sans', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--n-50);
  color: var(--n-900);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY — Promoted: section heads are LARGE and BOLD
   ============================================================ */
.h-mega {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(72px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--n-900);
  font-variation-settings: "opsz" 144;
}
.h-mega em {
  font-style: italic;
  font-weight: 500;
  color: var(--tory);
}
.h-display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(56px, 7vw, 110px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--n-900);
  font-variation-settings: "opsz" 144;
}
.h-display em {
  font-style: italic;
  font-weight: 500;
  color: var(--tory);
}
.h-1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--n-900);
  font-variation-settings: "opsz" 144;
}
.h-1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--tory);
}
.h-2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.h-2 em { font-style: italic; font-weight: 500; color: var(--tory); }
.h-3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.h-4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--n-700);
}
.p-sm {
  font-size: 14px;
  line-height: 1.6;
  color: var(--n-700);
}
.p-lg {
  font-size: 19px;
  line-height: 1.65;
  color: var(--n-700);
}
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--tory);
  display: inline-block;
  margin-bottom: 14px;
}
.kicker-z { color: var(--zest); }
.kicker-v { color: var(--vivid); }
.kicker-j { color: var(--jungle); }

/* Dark backgrounds */
.dark { background: var(--tory-4); color: var(--n-0); }
.dark .h-mega, .dark .h-1, .dark .h-2, .dark .h-3, .dark .h-4, .dark .h-display { color: var(--n-0); }
.dark .h-mega em, .dark .h-1 em, .dark .h-2 em, .dark .h-display em { color: var(--zest); }
.dark .p, .dark .p-sm, .dark .p-lg { color: var(--w-70); }
.dark .kicker { color: var(--zest); }

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  position: relative;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding-bottom: 6px;
}
.logo-mark::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.logo-mark .bar {
  width: 3px;
  background: currentColor;
  border-radius: 1.5px;
  transform-origin: bottom;
  animation: barBounce 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.logo-mark .bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.logo-mark .bar:nth-child(2) { height: 20px; animation-delay: 0.18s; }
.logo-mark .bar:nth-child(3) { height: 9px; animation-delay: 0.36s; }
.logo:hover .bar { animation-duration: 0.8s; }
@keyframes barBounce {
  0%, 60%, 100% { transform: scaleY(1); }
  30% { transform: scaleY(1.25); }
}
.logo-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.005em;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn:hover::before { transform: translateX(100%); }
.btn-tory {
  background: var(--tory);
  color: var(--n-0);
  box-shadow: 0 8px 24px rgba(11, 95, 165, 0.35);
}
.btn-tory:hover { background: var(--tory-2); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(11, 95, 165, 0.5); }
.btn-zest {
  background: var(--zest);
  color: var(--n-0);
  box-shadow: 0 8px 24px rgba(228, 111, 46, 0.4);
}
.btn-zest:hover { background: var(--zest-2); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(228, 111, 46, 0.55); }
.btn-white {
  background: var(--n-0);
  color: var(--n-900);
}
.btn-white:hover { background: var(--zest); color: var(--n-0); transform: translateY(-2px); }
.btn-ghost-l {
  background: transparent;
  color: var(--n-900);
  border: 1.5px solid var(--b-15);
}
.btn-ghost-l:hover { background: var(--n-900); color: var(--n-0); border-color: var(--n-900); transform: translateY(-2px); }
.btn-ghost-d {
  background: transparent;
  color: var(--n-0);
  border: 1.5px solid var(--w-30);
}
.btn-ghost-d:hover { background: var(--n-0); color: var(--n-900); border-color: var(--n-0); transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 14px; }
.btn-xl { padding: 20px 36px; font-size: 15px; }
.btn-arrow svg { width: 14px; height: 14px; transition: transform 0.3s; }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--b-08);
  padding: 18px 56px;
  display: flex;
  align-items: center;
  gap: 36px;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { padding: 14px 56px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06); }
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  margin-left: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--n-900);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tory);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover, .nav-links a.active { color: var(--tory); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ============================================================
   CONTAINERS / LAYOUT
   ============================================================ */
.container { max-width: 1320px; margin: 0 auto; padding: 0 56px; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 56px; }
.container-wide { max-width: 1480px; margin: 0 auto; padding: 0 56px; }
.sec { padding: 140px 0; position: relative; overflow: hidden; }
.sec-md { padding: 100px 0; }
.sec-tight { padding: 80px 0; }

.sec-head { max-width: 820px; }
.sec-head.center { text-align: center; margin: 0 auto; }
.sec-head .kicker { display: inline-block; margin-bottom: 18px; }
.sec-head h1, .sec-head h2 { margin-bottom: 22px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }
.reveal-d6 { transition-delay: 0.48s; }

.text-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.in .text-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.in .text-stagger > *:nth-child(2) { transition-delay: 0.22s; }
.in .text-stagger > *:nth-child(3) { transition-delay: 0.34s; }
.in .text-stagger > *:nth-child(4) { transition-delay: 0.46s; }
.in .text-stagger > *:nth-child(5) { transition-delay: 0.58s; }
.in .text-stagger > *:nth-child(6) { transition-delay: 0.70s; }
.in .text-stagger > * { opacity: 1; transform: translateY(0); }

/* Word-by-word reveal (for cards) */
.word-stagger { display: inline; }
.word-stagger .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.in .word-stagger .word { opacity: 1; transform: translateY(0); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  color: var(--w-70);
  padding: 80px 0 32px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer .logo { color: var(--n-0); margin-bottom: 16px; }
.footer-tag {
  font-size: 14px;
  color: var(--w-50);
  line-height: 1.65;
  margin-top: 14px;
  max-width: 300px;
}
.footer h5 {
  color: var(--n-0);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer ul { list-style: none; }
.footer ul li {
  padding: 5px 0;
  font-size: 13px;
  color: var(--w-50);
  cursor: pointer;
  transition: color 0.2s;
}
.footer ul li a { color: inherit; text-decoration: none; }
.footer ul li:hover { color: var(--zest); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--w-15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--w-30);
}
.footer-bottom .legal a { color: var(--w-50); text-decoration: none; margin-left: 20px; cursor: pointer; }
.footer-bottom .legal a:hover { color: var(--zest); }

/* Helpers */
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; } .mt48 { margin-top: 48px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; } .mb32 { margin-bottom: 32px; } .mb48 { margin-bottom: 48px; }

/* ============================================================
   FLOATING CARD ANIMATION (used across pages)
   ============================================================ */
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes floatCardSm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulseSoft {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
@keyframes orbFloat {
  from { transform: translate(0, 0); }
  to { transform: translate(40px, 30px); }
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Sticky cursor-follow grain texture */
.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: multiply;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .container, .container-narrow, .container-wide { padding: 0 24px; }
}
