:root {
  --ink: #0e1a28;
  --ink-soft: #3a4b5c;
  --muted: #6b7c8d;
  --paper: #f3f6fa;
  --mist: #e4ebf4;
  --navy: #102a43;
  --navy-mid: #1a3d5c;
  --sapphire: #2b6cb0;
  --sapphire-deep: #1e4f85;
  --navy-dark: #0a1a2b;
  --gold: #b8956c;
  --gold-soft: #e2d0b8;
  --line: rgba(16, 42, 67, 0.12);
  --glass: rgba(255, 255, 255, 0.68);
  --shadow: 0 28px 70px rgba(10, 26, 43, 0.18);
  --shadow-soft: 0 16px 36px rgba(10, 26, 43, 0.1);
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.04rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(43, 108, 176, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(184, 149, 108, 0.16), transparent 50%),
    radial-gradient(ellipse 55% 35% at 70% 100%, rgba(16, 42, 67, 0.08), transparent 55%),
    linear-gradient(165deg, #f6f8fb 0%, #eef3f8 42%, #f7f4ef 78%, #f0f4f9 100%);
}

.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 42, 67, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 67, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.7;
}

.beam {
  position: absolute;
  filter: blur(48px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite alternate;
}

.beam-a {
  width: 420px;
  height: 220px;
  top: 12%;
  left: -100px;
  background: rgba(43, 108, 176, 0.35);
  border-radius: 50%;
}

.beam-b {
  width: 320px;
  height: 320px;
  top: 35%;
  right: -80px;
  background: rgba(184, 149, 108, 0.28);
  border-radius: 50%;
  animation-delay: -6s;
}

.container {
  width: min(1180px, calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(243, 246, 250, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-photo {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 4px;
  border: 2px solid rgba(43, 108, 176, 0.3);
  box-shadow: 0 6px 16px rgba(10, 26, 43, 0.14);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-text small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--sapphire), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.4rem;
  height: 2px;
  margin: 0.35rem auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.55rem;
  background: linear-gradient(145deg, var(--sapphire), var(--navy-dark));
  color: #f4f8fc;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.24);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16, 42, 67, 0.3);
  filter: brightness(1.06);
}

.btn-sm {
  padding: 0.65rem 1.05rem;
  font-size: 0.82rem;
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  color: var(--navy);
  border-color: rgba(16, 42, 67, 0.18);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
  filter: none;
  box-shadow: none;
}

.btn-light {
  background: #fff;
  color: var(--navy-dark);
  box-shadow: 0 12px 28px rgba(10, 26, 43, 0.18);
}

.btn-light:hover {
  filter: none;
  background: var(--gold-soft);
}

.text-link {
  display: inline-block;
  margin-top: 1.6rem;
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.3s, color 0.3s;
}

.text-link:hover {
  border-color: #fff;
  color: var(--gold-soft);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7.8rem 0 4.8rem;
  isolation: isolate;
  overflow: hidden;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(243, 246, 250, 0.55) 30%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 85% 45%, rgba(43, 108, 176, 0.16), transparent 70%);
  opacity: 0.9;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.25rem;
  align-items: center;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.8vw, 4.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--navy-dark) 15%, var(--sapphire) 70%, #3d7ec0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink-soft);
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 39ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-portrait {
  margin: 0;
  justify-self: end;
  width: min(100%, 390px);
  position: relative;
}

.portrait-glow {
  position: absolute;
  inset: 8% -14% -10% auto;
  width: 85%;
  height: 85%;
  background:
    radial-gradient(circle at 40% 40%, rgba(184, 149, 108, 0.4), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(43, 108, 176, 0.38), transparent 60%);
  filter: blur(18px);
  z-index: -1;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(160deg, #9bb8d4, #6a8fb3);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.45);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 94% 100%, 0 100%);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 26, 43, 0.28) 100%);
  pointer-events: none;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 2;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}

.hero-portrait:hover .portrait-frame img {
  transform: scale(1.07);
}

.hero-portrait figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 1.05rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(16, 42, 67, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 2px;
}

.hero-portrait figcaption strong {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.hero-portrait figcaption span {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(43, 108, 176, 0.1), rgba(184, 149, 108, 0.12), rgba(43, 108, 176, 0.1));
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding-right: 2.5rem;
}

.marquee-track span::after {
  content: "◆";
  position: absolute;
  right: 0;
  color: var(--gold);
  font-size: 0.55rem;
  top: 0.2rem;
}

/* Sections */
.section {
  padding: 7rem 0;
  position: relative;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sapphire);
}

h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--navy-dark);
}

.section-intro {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.section-lead {
  margin: 0;
  color: var(--ink-soft);
  max-width: 50ch;
  font-weight: 500;
}

/* About */
.about {
  background:
    radial-gradient(ellipse at 8% 15%, rgba(228, 235, 244, 0.9), transparent 45%),
    radial-gradient(ellipse at 92% 85%, rgba(226, 208, 184, 0.28), transparent 40%);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 4.2rem;
  align-items: center;
}

.about-visual {
  position: relative;
  max-width: 440px;
}

.about-photo {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, #9bb8d4, #6a8fb3);
  border: 1px solid rgba(255, 255, 255, 0.45);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.about-badge {
  position: absolute;
  left: -1.1rem;
  bottom: 2.4rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy-dark));
  color: #f4f8fc;
  box-shadow: var(--shadow-soft);
  max-width: 12.5rem;
  border-radius: 2px;
}

.about-badge span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.about-badge strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.about-chip {
  position: absolute;
  top: 1.2rem;
  right: -0.8rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 2px;
  box-shadow: var(--shadow-soft);
}

.about-copy p {
  color: var(--ink-soft);
  max-width: 54ch;
  font-weight: 500;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 1.4rem 0;
  border-block: 1px solid var(--line);
}

.about-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--sapphire);
  line-height: 1.1;
}

.about-metrics span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.focus-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.focus-list li {
  position: relative;
  padding: 0.75rem 0.9rem 0.75rem 1.6rem;
  color: var(--ink-soft);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-left: 3px solid var(--sapphire);
  border-radius: 0 2px 2px 0;
}

.focus-list li::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 50%;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

/* Services */
.services {
  background:
    linear-gradient(180deg, transparent, rgba(228, 235, 244, 0.55) 12%, rgba(247, 244, 239, 0.45) 55%, transparent);
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 4.8rem 1fr;
  gap: 1.4rem;
  padding: 1.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.35s var(--ease), padding-left 0.35s var(--ease);
}

.service-row:hover {
  background: rgba(255, 255, 255, 0.55);
  padding-left: 0.85rem;
}

.service-index {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  padding-top: 0.25rem;
}

.service-row h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.service-row p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Expertise */
.expertise {
  position: relative;
  overflow: hidden;
  color: #f4f8fc;
  background: linear-gradient(125deg, #0a1a2b 0%, #102a43 48%, #1e4f85 100%);
}

.expertise-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(184, 149, 108, 0.28), transparent 35%),
    radial-gradient(circle at 12% 82%, rgba(43, 108, 176, 0.25), transparent 40%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
  opacity: 0.85;
  animation: heroDrift 24s ease-in-out infinite alternate;
}

.expertise .eyebrow {
  color: var(--gold-soft);
}

.expertise h2 {
  color: #fff;
}

.expertise-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.2rem;
  align-items: start;
}

.expertise-copy p {
  color: rgba(244, 248, 252, 0.86);
  max-width: 48ch;
  font-weight: 500;
}

.expertise-points {
  display: grid;
  gap: 1rem;
}

.expertise-points > div {
  padding: 1.25rem 1.2rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: 0 2px 2px 0;
  backdrop-filter: blur(8px);
}

.point-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  margin-bottom: 0.45rem;
}

.expertise-points h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.expertise-points p {
  margin: 0;
  color: rgba(244, 248, 252, 0.78);
  font-size: 0.96rem;
}

/* Academic */
.academic {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(226, 208, 184, 0.25), transparent 45%),
    linear-gradient(180deg, transparent, rgba(228, 235, 244, 0.4));
}

.pub-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pub {
  padding: 1.5rem 1.35rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-top: 3px solid var(--sapphire);
  border-radius: 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.pub:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.pub:nth-child(2) {
  border-top-color: var(--gold);
}

.pub:nth-child(3) {
  border-top-color: var(--navy-mid);
}

.pub-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sapphire);
}

.pub h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.pub p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 500;
}

/* CTA band */
.cta-band {
  padding: 0 0 2rem;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.4rem 2.2rem;
  border-radius: 2px;
  background:
    linear-gradient(120deg, rgba(10, 26, 43, 0.96), rgba(30, 79, 133, 0.94)),
    var(--navy-dark);
  color: #f4f8fc;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 97% 100%, 0 100%);
}

.cta-inner .eyebrow {
  color: var(--gold-soft);
}

.cta-inner h2 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.cta-inner p {
  margin: 0;
  color: rgba(244, 248, 252, 0.82);
  max-width: 42ch;
  font-weight: 500;
}

/* Contact */
.contact {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(184, 149, 108, 0.16), transparent 40%),
    linear-gradient(180deg, transparent, rgba(228, 235, 244, 0.6));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: end;
}

.contact-avatar {
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.3rem;
  border-radius: 4px;
  overflow: hidden;
  border: 3px solid rgba(43, 108, 176, 0.25);
  box-shadow: var(--shadow-soft);
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-details {
  display: grid;
  gap: 1.15rem;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  border-radius: 2px;
  box-shadow: var(--shadow-soft);
}

.contact-details > div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-details > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-details span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.contact-details strong {
  font-weight: 700;
  color: var(--navy-dark);
}

.contact-details a:hover {
  color: var(--sapphire);
}

/* Footer */
.site-footer {
  padding: 1.9rem 0 2.4rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  object-fit: cover;
  object-position: center 12%;
  border: 2px solid rgba(43, 108, 176, 0.25);
}

.footer-brand p {
  margin: 0;
  line-height: 1.35;
  font-weight: 500;
}

.footer-inner > a {
  font-weight: 800;
  color: var(--navy);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes heroDrift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); }
}

@keyframes floatOrb {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-24px, 30px, 0); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, -20px, 0) scale(1.06); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .hero-layout,
  .about-grid,
  .expertise-grid,
  .contact-grid,
  .pub-strip {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    justify-self: start;
    width: min(100%, 360px);
  }

  .about-metrics {
    grid-template-columns: 1fr;
  }

  .about-badge {
    left: 0.8rem;
  }

  .about-chip {
    right: 0.8rem;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    clip-path: none;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 5rem 1.1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(246, 248, 251, 0.97);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 6.8rem 0 3.5rem;
  }

  .hero-layout {
    gap: 2.2rem;
  }

  .section {
    padding: 4.8rem 0;
  }

  .service-row {
    grid-template-columns: 3.2rem 1fr;
    gap: 0.9rem;
  }

  .logo-text small {
    display: none;
  }

  .marquee-track span {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-wash,
  .expertise-mesh,
  .portrait-glow,
  .beam,
  .marquee-track,
  .ai-fab-pulse,
  .ai-typing span {
    animation: none;
  }
}

/* ── AI Chat ── */
.ai-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  font-family: var(--font-body);
}

.ai-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.15rem 0.9rem 0.95rem;
  border: 0;
  background: linear-gradient(145deg, var(--sapphire), var(--navy-dark));
  color: #f4f8fc;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 16px 40px rgba(10, 26, 43, 0.32);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ai-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(10, 26, 43, 0.38);
}

.ai-fab-pulse {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(43, 108, 176, 0.45);
  border-radius: 4px;
  opacity: 0.7;
  animation: aiPulse 2.4s ease-out infinite;
  pointer-events: none;
}

.ai-fab-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.ai-fab-label {
  font-size: 0.88rem;
  font-weight: 700;
}

.ai-chat.is-open .ai-fab-label {
  display: none;
}

.ai-chat.is-open .ai-fab {
  padding: 0.9rem;
}

.ai-panel {
  width: min(380px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  background: rgba(246, 248, 251, 0.96);
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 4px;
  box-shadow: 0 28px 70px rgba(10, 26, 43, 0.26);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transform-origin: bottom right;
  animation: aiPanelIn 0.35s var(--ease);
}

.ai-panel[hidden] {
  display: none;
}

.ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #f4f8fc;
}

.ai-identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ai-avatar {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  background: rgba(184, 149, 108, 0.28);
  border: 1px solid rgba(244, 248, 252, 0.2);
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ai-identity strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.ai-identity small {
  color: rgba(244, 248, 252, 0.72);
  font-size: 0.72rem;
}

.ai-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f8fc;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ai-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}

.ai-bubble {
  max-width: 88%;
  padding: 0.8rem 0.95rem;
  font-size: 0.9rem;
  line-height: 1.55;
  animation: aiBubbleIn 0.35s var(--ease);
  white-space: pre-wrap;
}

.ai-bubble.bot {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 2px 12px 12px 12px;
  box-shadow: 0 8px 20px rgba(10, 26, 43, 0.06);
}

.ai-bubble.user {
  align-self: flex-end;
  background: linear-gradient(145deg, var(--sapphire), var(--navy));
  color: #f4f8fc;
  border-radius: 12px 12px 2px 12px;
}

.ai-bubble a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 2px 12px 12px 12px;
}

.ai-typing span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sapphire);
  animation: aiDot 1.2s ease-in-out infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 0.9rem 0.65rem;
}

.ai-suggestions button {
  border: 1px solid rgba(16, 42, 67, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border-radius: 2px;
  cursor: pointer;
}

.ai-suggestions button:hover {
  background: rgba(43, 108, 176, 0.08);
  border-color: rgba(16, 42, 67, 0.35);
}

.ai-form {
  display: flex;
  gap: 0.45rem;
  padding: 0 0.9rem 0.55rem;
}

.ai-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(16, 42, 67, 0.14);
  background: #fff;
  padding: 0.8rem 0.9rem;
  border-radius: 2px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
}

.ai-form input:focus {
  border-color: rgba(43, 108, 176, 0.45);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.14);
}

.ai-form button {
  width: 2.7rem;
  border: 0;
  border-radius: 2px;
  background: var(--navy);
  color: #f4f8fc;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ai-form button:hover {
  background: var(--navy-dark);
}

.ai-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ai-disclaimer {
  margin: 0;
  padding: 0 0.9rem 0.75rem;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
}

@keyframes aiPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.12); opacity: 0; }
}

@keyframes aiPanelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes aiBubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes aiDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 540px) {
  .ai-chat {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .ai-panel {
    width: min(100vw - 1.5rem, 380px);
    height: min(70vh, 520px);
  }
}
