/* ============================================================
   SIGNAL — an original interactive design system
   for Md (Muhammad) Nurul Alam · scholar of consequences
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500&family=Inter:wght@400;500;650;800&display=swap");

:root {
  /* LSU purple & gold */
  --bg: #120a1e;
  --bg-2: #190f29;
  --surface: #221437;
  --line: rgba(243, 238, 248, .13);
  --text: #f6f2fb;
  --text-dim: #c9bedd;
  --text-faint: #9d90b8;
  --copper: #8a5fd1;   /* lifted LSU purple (accents, rings) */
  --amber: #FDD023;    /* LSU gold (highlights, CTAs) */
  --deep: #461D7C;     /* LSU corporate purple */
  --support: #85b57f;
  --backlash: #cf5a42;
  --display: "Fraunces", Iowan Old Style, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::after { /* film grain */
  content: ""; position: fixed; inset: -50%; z-index: 2000; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0);} 20% { transform: translate(2%,-3%);} 40% { transform: translate(-3%,2%);} 60% { transform: translate(3%,3%);} 80% { transform: translate(-2%,-2%);} }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: #2a1447; }

/* focal-point crops — keep Muhammad the subject wherever these photos appear */
img[src="sms-presentation-2.jpg"] { object-position: 60% 78% !important; }
img[src="sms-presentation-1.jpg"] { object-position: 48% 68% !important; }
img[src="hall-distinction-presenting-award.jpg"] { object-position: 70% 32% !important; }
img[src="hall-distinction-introduction.jpg"] { object-position: 60% 30% !important; }
img[src="ams-group-photo.jpg"] { object-position: 0% 42% !important; }
img[src="headshot.jpg"] { object-position: center 20% !important; }

/* ---------- scroll progress + cursor (injected by site.js) ---------- */
#progress { position: fixed; z-index: 1500; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--copper), var(--amber)); }
#cursor-dot, #cursor-ring { position: fixed; z-index: 3000; top: 0; left: 0; pointer-events: none; border-radius: 50%; }
#cursor-dot { width: 6px; height: 6px; background: var(--amber); transform: translate(-50%,-50%); }
#cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(253,208,35,.5); transform: translate(-50%,-50%); transition: width .3s var(--ease), height .3s var(--ease), border-color .3s; }
body.cursor-on, body.cursor-on a, body.cursor-on button, body.cursor-on input, body.cursor-on label { cursor: none; }
#cursor-ring.is-active { width: 64px; height: 64px; border-color: var(--copper); }
@media (pointer: coarse) { #cursor-dot, #cursor-ring { display: none; } }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 1000; inset: 0 0 auto; height: 60px; display: flex; align-items: center; justify-content: center; background: rgba(13,11,9,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(245,239,230,.06); }
.nav-inner { width: min(1240px, 93%); display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.nav-brand::before { content: ""; width: 9px; height: 9px; background: var(--copper); transform: rotate(45deg); transition: transform .5s var(--ease); }
.nav-brand:hover::before { transform: rotate(225deg); }
.nav-links { display: flex; gap: 30px; align-items: center; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.nav-links a { position: relative; color: var(--text-dim); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-cta { padding: 8px 16px; border: 1px solid var(--copper); border-radius: 999px; color: var(--amber) !important; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--copper); color: #14100c !important; }

/* ---------- type ---------- */
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
h1.headline { font-family: var(--display); font-weight: 320; font-size: clamp(52px, 8.5vw, 124px); line-height: .95; letter-spacing: -.02em; }
h1.headline em, h2.section-headline em { font-style: italic; color: var(--amber); }
h2.section-headline { font-family: var(--display); font-weight: 350; font-size: clamp(34px, 5vw, 68px); line-height: 1.02; letter-spacing: -.015em; }
.subhead { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; color: var(--text-dim); }

/* word-stagger reveal (js splits words) */
.stagger .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.stagger .word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.stagger.on .word > span { transform: none; }

/* links / buttons */
.link-more { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font-size: 14px; font-weight: 650; letter-spacing: .02em; }
.link-more::after { content: "→"; transition: transform .35s var(--ease); }
.link-more:hover::after { transform: translateX(6px); }
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--amber); color: #2a1447; font-size: 14px; font-weight: 650; letter-spacing: .02em; transition: transform .35s var(--ease), background .3s, box-shadow .35s; will-change: transform; }
.btn:hover { background: #ffe062; box-shadow: 0 12px 40px rgba(253,208,35,.3); }
.btn-secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-secondary:hover { background: rgba(245,239,230,.06); box-shadow: none; border-color: var(--amber); color: var(--amber); }
.cta-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.centered .cta-row, .cta-band .cta-row { justify-content: center; }

/* ---------- sections ---------- */
section { position: relative; overflow: hidden; }
.section-pad { padding: clamp(100px, 13vw, 180px) 6vw; }
.centered { text-align: center; }
.measure { max-width: 760px; margin-inline: auto; }
.wide { max-width: 1240px; margin-inline: auto; }
.alt { background: var(--bg-2); }
.dark { background: var(--bg); }
.section-num { display: block; margin-bottom: 18px; font-family: var(--display); font-style: italic; font-size: 15px; color: var(--text-faint); }

/* ---------- cards / tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 1240px; margin: 70px auto 0; }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, var(--surface), var(--bg-2)); transform-style: preserve-3d; transition: border-color .4s, box-shadow .5s var(--ease); }
.tile:hover { border-color: rgba(253,208,35,.45); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.tile::before { /* cursor glow, driven by js vars */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(253,208,35,.11), transparent 65%);
}
.tile:hover::before { opacity: 1; }
.tile.span-2 { grid-column: 1 / -1; }
.tile-copy { position: relative; z-index: 1; padding: 46px 44px 0; }
.kicker { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .18em; color: var(--amber); }
.tile h3 { margin: 14px 0 12px; font-family: var(--display); font-weight: 380; font-size: clamp(26px, 3vw, 42px); line-height: 1.04; letter-spacing: -.01em; }
.tile p { max-width: 560px; color: var(--text-dim); font-size: 15px; }
.tile .tile-links { margin: 20px 0 10px; }
.tile figure { position: relative; z-index: 1; margin: 28px 0 0; }
.tile figure img { width: 100%; max-height: 400px; object-fit: cover; object-position: center top; filter: saturate(.85) contrast(1.03); transition: transform 1s var(--ease); }
.tile:hover figure img { transform: scale(1.03); }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 1140px; margin: 70px auto 0; }
.feature { position: relative; padding: 44px 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface) !important; overflow: hidden; transition: border-color .4s; }
.feature::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--copper), transparent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.feature:hover { border-color: rgba(253,208,35,.4); }
.feature:hover::after { transform: scaleX(1); }
.feature h3 { margin: 14px 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(21px, 2.3vw, 29px); line-height: 1.12; }
.feature p { color: var(--text-dim); font-size: 14.5px; }
.span-2 { grid-column: 1 / -1; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(46px, 6vw, 100px); max-width: 1240px; margin-inline: auto; }
.split figure { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.split figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.2s var(--ease); }
.split figure:hover img { transform: scale(1.04); }
.split .split-copy h2 { margin: 14px 0 20px; }
.split .split-copy > p { color: var(--text-dim); margin-bottom: 16px; }
.def-rows { margin-top: 26px; }
.def-rows > div { padding: 18px 0; border-top: 1px solid var(--line); transition: padding-left .4s var(--ease); }
.def-rows > div:hover { padding-left: 12px; }
.def-rows strong { display: block; font-size: 16px; font-weight: 650; }
.def-rows span { display: block; margin-top: 4px; color: var(--text-dim); font-size: 14px; }

/* ---------- gallery / journey strip ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1240px; margin: 70px auto 0; }
.gallery-card, .strip-card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); transition: transform .5s var(--ease), border-color .4s; }
.gallery-card:hover, .strip-card:hover { transform: translateY(-6px); border-color: rgba(253,208,35,.4); }
.gallery-card figure, .strip-card figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.gallery-card figure img, .strip-card figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1s var(--ease); }
.gallery-card:hover figure img, .strip-card:hover figure img { transform: scale(1.05); }
.gallery-card > div, .strip-card > div { padding: 24px 26px 28px; }
.gallery-card h3, .strip-card h3 { margin: 8px 0 6px; font-family: var(--display); font-weight: 420; font-size: 20px; line-height: 1.2; }
.gallery-card p, .strip-card p { color: var(--text-dim); font-size: 13.5px; }

/* horizontal strip */
.strip { display: flex; gap: 22px; padding: 70px 6vw 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip-card { flex: 0 0 min(420px, 80vw); scroll-snap-align: center; }
.strip-hint { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 26px; color: var(--text-faint); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.strip-hint::before, .strip-hint::after { content: ""; width: 42px; height: 1px; background: var(--line); }

/* ---------- story blocks (subpages) ---------- */
.story { max-width: 860px; margin-inline: auto; text-align: center; }
.story h2 { margin: 14px 0 20px; }
.story > p { color: var(--text-dim); font-size: clamp(16px, 1.6vw, 20px); }
.meta-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.meta-chips span { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-dim); font-size: 12.5px; transition: border-color .3s, color .3s; }
.meta-chips span:hover { border-color: var(--amber); color: var(--amber); }
.figure-band { max-width: 1020px; margin: 70px auto 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.figure-band img { width: 100%; object-fit: cover; filter: saturate(.85); }
.figure-band figcaption { padding: 14px 6px; font-size: 12.5px; color: var(--text-faint); text-align: center; }

/* ---------- heroes ---------- */
.hero-dark, .page-hero { padding: 170px 6vw 110px; text-align: center; }
.hero-dark .subhead, .page-hero .subhead { max-width: 680px; margin: 24px auto 34px; }
.hero-dark .headline, .page-hero .headline { margin-top: 14px; }
.hero-portrait { width: min(320px, 68vw); margin: 66px auto 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(138,95,209,.22); }
.hero-portrait img { width: 100%; filter: saturate(.82) contrast(1.04); }
.hero-media { max-width: 900px; margin: 60px auto 0; }

/* ---------- contact list ---------- */
.contact-list { max-width: 680px; margin: 56px auto 0; text-align: left; }
.contact-list a { display: flex; justify-content: space-between; align-items: center; padding: 24px 6px; border-top: 1px solid var(--line); transition: padding-left .4s var(--ease), background .3s; }
.contact-list a:hover { padding-left: 18px; background: rgba(245,239,230,.03); }
.contact-list a:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--text-faint); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.contact-list strong { font-weight: 650; color: var(--amber); }

/* ---------- animated concept panels (project pages) ---------- */
.concept { max-width: 900px; margin: 70px auto 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); overflow: hidden; }
.concept-head { padding: 20px 30px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.concept-head b { color: var(--amber); font-weight: 650; }
.concept svg { display: block; width: 100%; height: auto; }
.concept .svg-label { font-family: var(--sans); font-size: 12px; letter-spacing: .06em; fill: var(--text-dim); }
.concept .svg-label.gold { fill: var(--amber); }
.concept .svg-serif { font-family: var(--display); font-style: italic; font-size: 15px; fill: var(--text); }

/* ---------- cta band + footer ---------- */
.cta-band { text-align: center; }
.cta-band .cta-row { margin-top: 34px; }
.footer { padding: 40px 6vw 46px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { max-width: 1240px; margin: auto; color: var(--text-faint); font-size: 12.5px; }
.footer-inner .footer-top { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.footer-inner .footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; }
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--amber); }
.footer-links { display: flex; gap: 26px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(46px); transition: opacity .9s ease, transform 1.05s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .tile-grid, .feature-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .section-pad { padding-inline: 22px; }
  .tile-copy { padding: 34px 24px 0; }
  .hero-dark, .page-hero { padding: 140px 22px 90px; }
  .footer-inner .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .stagger .word > span { opacity: 1; transform: none; }
  body::after { display: none; }
}
