:root {
  --ink: #0f2420;
  --ink-soft: #35524a;
  --muted: #628078;
  --paper: #f2f8f5;
  --mint: #d8f0e5;
  --teal: #1a7a62;
  --teal-mid: #146552;
  --teal-deep: #0d4a3c;
  --teal-dark: #08352b;
  --coral: #e08972;
  --coral-soft: #f3c7bb;
  --sand: #f6efe6;
  --line: rgba(13, 74, 60, 0.12);
  --glass: rgba(255, 255, 255, 0.62);
  --shadow: 0 28px 70px rgba(8, 53, 43, 0.16);
  --shadow-soft: 0 16px 36px rgba(8, 53, 43, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", 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 80% 50% at 0% -10%, rgba(26, 122, 98, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(224, 137, 114, 0.22), transparent 50%),
    radial-gradient(ellipse 55% 40% at 80% 100%, rgba(13, 74, 60, 0.12), transparent 55%),
    linear-gradient(165deg, #f7fbf8 0%, #eaf6f0 38%, #f8f1ea 72%, #eef7f3 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-a {
  width: 340px;
  height: 340px;
  top: 8%;
  left: -80px;
  background: rgba(26, 122, 98, 0.28);
}

.orb-b {
  width: 280px;
  height: 280px;
  top: 18%;
  right: -60px;
  background: rgba(224, 137, 114, 0.3);
  animation-delay: -4s;
}

.orb-c {
  width: 260px;
  height: 260px;
  bottom: 12%;
  left: 35%;
  background: rgba(216, 240, 229, 0.8);
  animation-delay: -8s;
}

.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(242, 248, 245, 0.88);
  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 22%;
  border-radius: 50%;
  border: 2px solid rgba(26, 122, 98, 0.35);
  box-shadow: 0 6px 16px rgba(8, 53, 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.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-text small {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.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(--teal), var(--coral));
  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(--teal), var(--teal-deep));
  color: #f4fbf8;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(13, 74, 60, 0.22);
  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(13, 74, 60, 0.28);
  filter: brightness(1.05);
}

.btn-sm {
  padding: 0.65rem 1.05rem;
  font-size: 0.82rem;
  box-shadow: 0 8px 18px rgba(13, 74, 60, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--teal-deep);
  border-color: rgba(13, 74, 60, 0.2);
  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(--teal-deep);
  box-shadow: 0 12px 28px rgba(8, 53, 43, 0.18);
}

.btn-light:hover {
  filter: none;
  background: var(--sand);
}

.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(--coral-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(242, 248, 245, 0.55) 30%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 85% 45%, rgba(26, 122, 98, 0.18), transparent 70%),
    url("assets/hero.jpg") 75% center / cover no-repeat;
  opacity: 0.35;
  transform: scale(1.06);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

.hero-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(242, 248, 245, 0.88) 40%, rgba(242, 248, 245, 0.35) 68%, transparent 100%);
}

.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.7rem, 6.2vw, 4.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--teal-dark);
  background: linear-gradient(120deg, var(--teal-dark) 20%, var(--teal) 70%, #2a8f74 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.5rem, 2.8vw, 2.1rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--ink-soft);
  max-width: 17ch;
}

.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(224, 137, 114, 0.45), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(26, 122, 98, 0.4), transparent 60%);
  filter: blur(18px);
  z-index: -1;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 32px 32px 12px 32px;
  background: linear-gradient(160deg, #c9e8da, #a8d4c4);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 53, 43, 0.35) 100%);
  pointer-events: none;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px 22px 8px 22px;
  z-index: 2;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  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(13, 74, 60, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

.hero-portrait figcaption strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--teal-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(26, 122, 98, 0.1), rgba(224, 137, 114, 0.12), rgba(26, 122, 98, 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.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  position: relative;
  padding-right: 2.5rem;
}

.marquee-track span::after {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--coral);
}

/* Sections */
.section {
  padding: 7rem 0;
  position: relative;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw, 3.3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--teal-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 10% 20%, rgba(216, 240, 229, 0.7), transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(243, 199, 187, 0.35), 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: 28px;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, #bfe0d2, #9ecfbb);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.about-badge {
  position: absolute;
  left: -1.1rem;
  bottom: 2rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(145deg, var(--teal-mid), var(--teal-dark));
  color: #f4fbf8;
  box-shadow: var(--shadow-soft);
  max-width: 12rem;
  border-radius: 14px;
}

.about-badge span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-soft);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.about-badge strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  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.9);
  border: 1px solid var(--line);
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 8px;
  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.55rem;
  font-weight: 600;
  color: var(--teal);
  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.5rem;
  color: var(--ink-soft);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(13, 74, 60, 0.08);
  border-radius: 10px;
}

.focus-list li::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  transform: translateY(-50%);
}

/* Services */
.services {
  background:
    linear-gradient(180deg, transparent, rgba(216, 240, 229, 0.45) 12%, rgba(246, 239, 230, 0.5) 55%, transparent);
}

.service-list {
  display: grid;
  gap: 0.85rem;
}

.service-row {
  display: grid;
  grid-template-columns: 4.8rem 1fr;
  gap: 1.4rem;
  padding: 1.45rem 1.35rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(13, 74, 60, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.service-row:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(26, 122, 98, 0.22);
}

.service-index {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--coral);
  line-height: 1;
  padding-top: 0.2rem;
}

.service-row h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--teal-dark);
}

.service-row p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Expertise */
.expertise {
  position: relative;
  overflow: hidden;
  color: #f4fbf8;
  background: linear-gradient(125deg, #08352b 0%, #0d4a3c 45%, #146552 100%);
}

.expertise-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(224, 137, 114, 0.28), transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(216, 240, 229, 0.12), transparent 40%),
    url("assets/soft-texture.jpg") center / cover;
  opacity: 0.25;
  mix-blend-mode: soft-light;
  animation: heroDrift 24s ease-in-out infinite alternate;
}

.expertise .eyebrow {
  color: var(--coral-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, 251, 248, 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.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.point-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--coral-soft);
  margin-bottom: 0.45rem;
}

.expertise-points h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.expertise-points p {
  margin: 0;
  color: rgba(244, 251, 248, 0.78);
  font-size: 0.96rem;
}

/* Academic */
.academic {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(243, 199, 187, 0.28), transparent 45%),
    linear-gradient(180deg, transparent, rgba(216, 240, 229, 0.35));
}

.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(13, 74, 60, 0.1);
  border-top: 3px solid var(--teal);
  border-radius: 0 0 16px 16px;
  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(--coral);
}

.pub:nth-child(3) {
  border-top-color: #2a8f74;
}

.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(--teal);
}

.pub h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--teal-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: 22px;
  background:
    linear-gradient(120deg, rgba(13, 74, 60, 0.95), rgba(26, 122, 98, 0.92)),
    var(--teal-deep);
  color: #f4fbf8;
  box-shadow: var(--shadow);
}

.cta-inner .eyebrow {
  color: var(--coral-soft);
}

.cta-inner h2 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.cta-inner p {
  margin: 0;
  color: rgba(244, 251, 248, 0.82);
  max-width: 42ch;
  font-weight: 500;
}

/* Contact */
.contact {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(224, 137, 114, 0.18), transparent 40%),
    linear-gradient(180deg, transparent, rgba(216, 240, 229, 0.55));
}

.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: 50%;
  overflow: hidden;
  border: 3px solid rgba(26, 122, 98, 0.25);
  box-shadow: var(--shadow-soft);
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.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: 20px;
  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(--teal-dark);
}

.contact-details a:hover {
  color: var(--teal);
}

/* 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: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 2px solid rgba(26, 122, 98, 0.25);
}

.footer-brand p {
  margin: 0;
  line-height: 1.35;
  font-weight: 500;
}

.footer-inner > a {
  font-weight: 800;
  color: var(--teal-deep);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  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.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.4%, -1.2%, 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(30px, -24px, 0) scale(1.08); }
}

@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;
  }

  .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(247, 251, 248, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    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;
    padding: 1.2rem 1rem;
  }

  .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,
  .orb,
  .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(--teal), var(--teal-dark));
  color: #f4fbf8;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(8, 53, 43, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ai-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(8, 53, 43, 0.36);
}

.ai-fab-pulse {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(26, 122, 98, 0.45);
  border-radius: 10px;
  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: 6px;
}

.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(247, 251, 248, 0.95);
  border: 1px solid rgba(13, 74, 60, 0.12);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(8, 53, 43, 0.24);
  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(--teal-deep), var(--teal-dark));
  color: #f4fbf8;
}

.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(224, 137, 114, 0.28);
  border: 1px solid rgba(244, 251, 248, 0.2);
  border-radius: 8px;
  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, 251, 248, 0.72);
  font-size: 0.72rem;
}

.ai-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4fbf8;
  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(13, 74, 60, 0.08);
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 8px 20px rgba(8, 53, 43, 0.06);
}

.ai-bubble.user {
  align-self: flex-end;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: #f4fbf8;
  border-radius: 16px 16px 4px 16px;
}

.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(13, 74, 60, 0.08);
  border-radius: 4px 16px 16px 16px;
}

.ai-typing span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--teal);
  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(13, 74, 60, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.ai-suggestions button:hover {
  background: rgba(26, 122, 98, 0.08);
  border-color: rgba(13, 74, 60, 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(13, 74, 60, 0.14);
  background: #fff;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
}

.ai-form input:focus {
  border-color: rgba(26, 122, 98, 0.45);
  box-shadow: 0 0 0 3px rgba(26, 122, 98, 0.14);
}

.ai-form button {
  width: 2.7rem;
  border: 0;
  border-radius: 10px;
  background: var(--teal-deep);
  color: #f4fbf8;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ai-form button:hover {
  background: var(--teal-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);
  }
}
