/* ================================
   NAOMI ALVARADO PERSONAL BRAND SITE
   Black / White Consultant Style
   Accent: Purple
   Font: Montserrat
================================ */

/* ================================
   ROOT VARIABLES
================================ */

:root {
  --black: #111111;
  --white: #ffffff;
  --off-white: #fafafa;
  --gray: #6f6f6f;
  --light-gray: #f4f4f4;
  --border: #e5e5e5;
  --accent: #4D0135;

  --heading-font: "Montserrat", sans-serif;
  --body-font: "Montserrat", sans-serif;

  --page-margin: clamp(24px, 5vw, 72px);
  --max-width: 1180px;
}

/* ================================
   RESET / GLOBAL
================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--body-font);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(var(--max-width), calc(100% - (var(--page-margin) * 2)));
  margin: 0 auto;
}

/* ================================
   NAVIGATION
================================ */

.site-header {
  padding: 32px var(--page-margin) 0;
  background: var(--white);
}

.nav {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--heading-font);
  color: var(--black);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.logo img {
  width: 350px;
  max-width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 34px;
  font-size: 0.78rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  font-size: 1.20rem;
  transition: 0.28s ease;
  line-height: 1;
}

.nav-links > a, .nav-dropdown {
  display: flex;
  align-items: center;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  line-height: 1;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.28s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 14px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 999;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--black);
  font-size: .78rem;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: var(--accent);
  background: var(--off-white);
}

/* ================================
   BUTTONS / DETAILS
================================ */

.btn {
  display: inline-flex;
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: 0.28s ease;
}

.btn:hover {
  background: var(--black);
  border-color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.12);
}

.small-rule,
.title-line,
.page-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  background: var(--accent);
  margin-top: 18px;
}

.large-rule {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 56px;
}

.ornament {
  display: none;
}

/* ================================
   HOME PAGE
================================ */

.home-title {
  padding: 86px 0 18px;
}

.home-title h1 {
  font-family: var(--heading-font);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.96;
  color: var(--black);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.home-intro {
  padding: 18px 0 80px;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  align-items: center;
  gap: 90px;
}

.value-statement p {
  max-width: 410px;
  font-size: clamp(1.2rem, 2.3vw, 1.85rem);
  font-weight: 400;
  line-height: 1.28;
  margin-bottom: 36px;
  color: var(--gray);
}

.hero-image-frame {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 16px;
  background: var(--white);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.hero-image-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.1);
}

.hero-image-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
}

/* ================================
   EDITORIAL SECTIONS
================================ */

.center-section {
  padding: 42px 0 86px;
  text-align: center;
}

.center-section h2,
.editorial-section h2 {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--black);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.center-section p,
.editorial-section p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--gray);
}

.editorial-section {
  padding: 34px 0 84px;
  text-align: center;
}

.editorial-section p + p {
  margin-top: 22px;
}

/* ================================
   CORE WORK / EXPERTISE
================================ */

.core-work-section {
  padding: 90px 0 0;
}

.core-work-header {
  max-width: 900px;
  margin-bottom: 70px;
}

.core-work-header h2 {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--black);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.core-work-header p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 780px;
  letter-spacing: -0.01em;
}

.core-work-cta {
  margin-top: 60px;
  display: flex;
  justify-content: flex-start;
}

.bottom-rule {
  margin-top: 80px;
  margin-bottom: 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  padding: 0;
  border: none;
}

.expertise-column {
  display: flex;
  flex-direction: column;
}

.expertise-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.expertise-column ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.expertise-column li {
  color: var(--black);
  font-size: 1rem;
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
  list-style: none;
}

.expertise-column li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ================================
   METRICS BAR
================================ */

.metrics {
  margin-bottom: 90px;
  padding: 42px 38px;
  background: var(--off-white);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
  transition: 0.28s ease;
}

.metric:last-child {
  border-right: none;
}

.metric:hover {
  background: var(--white);
}

.metric strong {
  display: block;
  font-family: var(--heading-font);
  color: var(--black);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 12px;
  transition: 0.28s ease;
}

.metric:hover strong {
  color: var(--accent);
}

.metric span {
  display: block;
  color: var(--gray);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ================================
   TESTIMONIALS SECTION
================================ */

.testimonials-section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.testimonials-header {
  max-width: 760px;
  margin-bottom: 56px;
}

.testimonials-header h2 {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--black);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.testimonials-header p {
  color: var(--gray);
  line-height: 1.8;
  max-width: 620px;
}

/* ================================
   TESTIMONIAL LIST
================================ */

.testimonials-list {
  border-top: 1px solid var(--border);
}

.testimonial-item {
  border-bottom: 1px solid var(--border);
}

.testimonials-list .testimonial-item:last-child {
  border-bottom: none;
}

/* ================================
   ACCORDION HEADER
================================ */

.testimonial-item summary {
  list-style: none;
  cursor: pointer;

  padding: 32px 0;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;

  color: var(--black);

  transition: 0.28s ease;
}

.testimonial-item summary::-webkit-details-marker {
  display: none;
}

.testimonial-item summary:hover {
  padding-left: 12px;
}

.testimonial-summary-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-summary-text strong {
  color: var(--black);

  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.testimonial-summary-text em {
  color: var(--black);

  font-family: var(--heading-font);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: normal;
  font-weight: 500;

  line-height: 1.5;
  letter-spacing: -0.02em;

  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;

  max-width: 850px;
}

.testimonial-item summary:hover .testimonial-summary-text strong,
.testimonial-item summary:hover .testimonial-summary-text em {
  color: var(--accent);
}

.testimonial-toggle {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  transition: 0.28s ease;
}

.testimonial-item[open] .testimonial-toggle {
  transform: rotate(45deg);
}

/* ================================
   DROPDOWN CONTENT
================================ */

.testimonial-content {
  padding: 10px 0 48px 80px;
  border-left: 1px solid var(--border);
  margin-left: 20px;
}

.testimonial-role {
  color: var(--accent);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  margin-bottom: 22px;
}

.testimonial-content blockquote {
  color: var(--gray);

  font-size: 1rem;
  line-height: 2;

  max-width: 850px;

  margin: 0;
}

/* ================================
   LINKEDIN SECTION
================================ */

.linkedin-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.linkedin-header {
  max-width: 620px;
  margin-bottom: 50px;
}

.linkedin-header h2 {
  margin-bottom: 16px;
}

.linkedin-header p {
  color: var(--gray);
}

.linkedin-grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.linkedin-embed-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}

.linkedin-embed-wrap iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 520px !important;
  border: none !important;
}

/* ================================
   INNER PAGES
================================ */

.inner-page {
  padding: 78px 0 90px;
}

.page-title {
  max-width: 600px;
  margin-bottom: 70px;
}

.page-title h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--black);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.page-title p {
  margin-top: 22px;
  color: var(--gray);
  max-width: 540px;
}

/* ================================
   ABOUT PAGE
================================ */

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  margin-top: 46px;
}

.about-columns.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px;
}

.about-column .about-list {
  margin-top: 0;
}

.about-column {
  display: flex;
  flex-direction: column;
}

.about-column h3 {
  margin-bottom: 22px;
}

.about-panel {
  border-top: 1px solid var(--border);
  transition: 0.35s ease;
}

.about-panel:last-child {
  border-bottom: none;
}

.about-panel-inner {
  padding: 76px 0;
  max-width: 980px;
  transition: transform 0.35s ease;
}

.about-panel:hover {
  background: var(--off-white);
}

.about-panel:hover .about-panel-inner {
  transform: translateX(12px);
}

.about-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 30px;
}

.about-panel h3 {
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 38px 0 16px;
}

.about-panel p {
  color: var(--gray);
  line-height: 1.9;
  max-width: 760px;
  margin-bottom: 22px;
}

.about-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.about-list.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 54px;
  row-gap: 12px;
}

.about-list li {
  list-style: none;
  color: var(--gray);
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.about-group {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--border);
}

.about-group:first-of-type {
  margin-top: 28px;
}

/* Resume */
.resume-role {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 50px;
  padding: 38px 0;
  border-top: 1px solid var(--border);
}

.resume-meta span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resume-content h3 {
  margin: 0 0 18px;
}


/* ================================
   LEGACY BACKGROUND PAGE
================================ */

.background-list {
  border-top: 1px solid var(--border);
}

.background-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 70px;
  padding: 42px 0;
  border-bottom: 1px solid var(--border);
  transition: 0.28s ease;
}

.background-row:hover {
  background: var(--off-white);
  padding-left: 18px;
}

.background-row h2 {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.background-content {
  display: grid;
  gap: 26px;
}

.background-content h3 {
  font-family: var(--heading-font);
  color: var(--black);
  font-size: 1.2rem;
  font-weight: 600;
}

.background-content p {
  color: var(--gray);
  max-width: 680px;
}

/* ================================
   LITERATURE PAGE
================================ */

.literature-intro {
  max-width: 760px;
  margin: -30px 0 70px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}

.literature-intro p {
  color: var(--black);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 26px;
}

.literature-intro ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.literature-intro li {
  list-style: none;
  position: relative;
  padding-left: 22px;
  color: var(--gray);
  line-height: 1.7;
}

.literature-intro li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.literature-list {
  border-top: none;
}

.literature-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  transition: 0.28s ease;
}

.literature-item:last-child {
  border-bottom: none;
}

.literature-item:hover {
  padding-left: 18px;
  background: var(--off-white);
}

.literature-date {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.literature-item h2 {
  font-family: var(--heading-font);
  color: var(--black);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
  transition: 0.28s ease;
}

.literature-item:hover h2 {
  color: var(--accent);
}

.literature-item p {
  color: var(--gray);
  max-width: 700px;
}

.literature-content {
  display: flex;
  flex-direction: column;
}

.literature-link {
  margin-top: 18px;
  width: fit-content;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.28s ease;
}

.literature-link:hover {
  transform: translateX(4px);
  color: var(--black);
}

.literature-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.literature-card {
  border: 1px solid var(--border);
  background: var(--white);
  transition: 0.28s ease;
}

.literature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
}

.literature-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.literature-card-content {
  padding: 24px;
}

.literature-card-content h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.literature-card-content p {
  color: var(--gray);
}

.empty-state {
  padding: 90px 0 120px;
}

.empty-state h2 {
  font-family: var(--heading-font);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--black);
}

.empty-state p {
  color: var(--gray);
  max-width: 620px;
}

/* ================================
   ENGAGEMENTS / TIMELINE
================================ */

.engagements-list {
  border-top: 1px solid var(--border);
}

.engagement-month {
  border-bottom: 1px solid var(--border);
}

.engagement-month:last-child {
  border-bottom: none;
}

.engagement-month summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--black);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: 0.28s ease;
}

.engagement-month summary::-webkit-details-marker {
  display: none;
}

.engagement-month summary:hover {
  color: var(--accent);
  padding-left: 12px;
}

.engagement-month summary span:last-child {
  color: var(--accent);
  font-size: 1.4rem;
  transition: 0.28s ease;
}

.engagement-month[open] summary span:last-child {
  transform: rotate(45deg);
}

.engagement-content {
  position: relative;
  padding: 46px 0 42px 120px;
  border-left: 1px solid var(--border);
  margin-left: 20px;
}

.engagement-entry {
  position: relative;
  padding: 0 0 70px 34px;


}

.engagement-entry:last-child {
  padding-bottom: 0;
}

.engagement-entry::before {
  content: "";
  position: absolute;
  left: -73px;
  top: 9px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}

.engagement-category {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.engagement-entry h3 {
  font-family: var(--heading-font);
  color: var(--black);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
  margin-bottom: 16px;
}

.engagement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--gray);
}

.engagement-meta span {
  position: relative;
  color: var(--gray);
}

.engagement-meta span:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -12px;
  color: var(--accent);
}

/* ================================
   CONTACT PAGE / CALENDLY
================================ */
.contact-page .page-title {
  margin-bottom: 54px;
}

.contact-page .contact-info p {
  font-size: 1.12rem;
  line-height: 1.9;
  max-width: 520px;
}

.contact-page .contact-info a {
  font-size: 1rem;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}


.contact-info p {
  color: var(--gray);
  max-width: 420px;
  margin: 22px 0 34px;
}

.contact-detail {
  margin-bottom: 18px;
  font-size: 1.08rem;
}

.contact-detail a {
  border: 1px solid var(--gray);
  padding: 15px;
}

.contact-detail a:hover {
  background-color: var(--gray);
  color: white;
  transition: 0.3s ease
}

.contact-detail strong {
  display: block;
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.calendly-wrap {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 16px;
}

.calendly-inline-widget {
  width: 100%;
}

.quote {
  margin-top: 70px;
  padding-top: 46px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-family: var(--heading-font);
  color: var(--black);
  font-size: 1.4rem;
  font-weight: 500;
}

/* ================================
   CONTACT STRIP
================================ */

.contact-strip {
  width: min(var(--max-width), calc(100% - (var(--page-margin) * 2)));
  margin-left: auto;
  margin-right: auto;
  padding: 100px 0 90px;
  border-top: 1px solid var(--border);
}

.contact-strip h2 {
  font-family: var(--heading-font);
  margin-bottom: 54px;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-top: 36px;
}

.contact-strip .contact-info {
  margin-top: 42px;
}

.contact-strip .contact-info a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 140px;
  margin: 10px 12px 0 0;
  padding: 12px 22px;
  border: 1px solid var(--black);
  color: var(--black);
  font-weight: 700;
  font-size: 0.85rem;
  transition: 0.28s ease;
}

.contact-strip .contact-info a:hover {
  background: var(--black);
  color: var(--white);
}

.contact-strip-content {
  max-width: 1000px;
  margin: 0;
}

.contact-strip .label {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--black);
  margin-bottom: 14px;
}

.contact-strip p,
.contact-strip a {
  color: var(--gray);
}

.contact-strip a:hover {
  color: var(--accent);
}

.contact-strip .contact-link {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.contact-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 70px;
  align-items: end;
}

/* ================================
   LITERATURE PAGE
================================ */

.research-post {
  max-width: 920px;
}

.research-header {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.research-date {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.research-header h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 34px;
}

.research-meta {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 10px;
}

.research-meta strong {
  color: var(--black);
}

.research-image {
  margin: 56px 0;
}

.research-section {
  padding: 56px 0 0;
}

.research-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.research-section p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 2;
  max-width: 850px;
}

/* only divider before abstract */
.research-section + .research-section {
  margin-top: 56px;
  padding-top: 56px;
  border-top: none;
}

/* tools/status simpler */
.research-details {
  margin-top: 64px;
  padding-top: 34px;
}

.research-detail-row {
  margin-bottom: 34px;
}

.research-detail-row h3 {
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.research-detail-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.research-detail-row li,
.research-tags span {
  list-style: none;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.research-tags span:not(:last-child)::after,
.research-detail-row li:not(:last-child)::after {
  content: "•";
  margin-left: 10px;
  color: var(--accent);
}

/* ================================
   RESEARCH BACK BUTTON
================================ */
/* ================================
   TEXT LINKS
================================ */

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 72px;
  padding: 14px 26px;
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.28s ease;
}

.text-link:hover {
  background: var(--black);
  border-color: var(--black);

  color: var(--white);

  transform: translateY(-2px);

  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.12);
}

.research-post a.text-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  margin-top: 72px !important;

  padding: 14px 26px;

  background: var(--accent);
  color: var(--white);

  border: 1px solid var(--accent);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  text-decoration: none;

  transition: 0.28s ease;
}

.research-post a.text-link:hover {
  background: var(--black);
  border-color: var(--black);

  color: var(--white);

  transform: translateY(-2px);

  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.12);
}

/* ================================
   FOOTER
================================ */

.footer {
  width: min(var(--max-width), calc(100% - (var(--page-margin) * 2)));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  background: var(--white);
  color: var(--black);
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand img {
  width: 70px;
  height: auto;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--black);
}

.footer-right {
  display: flex;
  align-items: center;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.footer-nav a {
  margin: 0;
  color: var(--black);
  font-size: 1rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  margin-left: 12px;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.footer-social a {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social img {
  width: 42px; height: 42px;
  max-width: none;
  object-fit: contain;
  display: block;
}

/* ================================
   ANIMATIONS
================================ */

main {
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-title h1,
.page-title h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: titleReveal 0.8s ease forwards;
}

@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-line,
.page-title::after {
  width: 0;
  animation: lineDraw 0.6s ease forwards;
  animation-delay: 0.3s;
}

@keyframes lineDraw {
  to {
    width: 52px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   RESPONSIVE
================================ */

/* Prevent horizontal shifting */
html,
body {
  overflow-x: hidden;
}

/* Cleaner wrapping for modern browsers */
h1,
h2,
h3,
p,
li {
  text-wrap: pretty;
}

/* Medium screens */
@media (max-width: 1150px) {
  .logo img {
    width: 280px;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .home-intro {
    gap: 60px;
  }

  .expertise-grid {
    gap: 40px;
  }

  .linkedin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .linkedin-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 420px);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .site-header {
    padding-top: 26px;
  }

  .nav {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 24px;
  }

  .logo img {
    width: 250px;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 18px 24px;
  }

  .home-intro,
  .contact-grid,
  .contact-strip-grid,
  .literature-item {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-title {
    padding-top: 68px;
  }

  .inner-page {
    padding-top: 60px;
  }

  .about-panel-inner {
    padding: 62px 0;
  }

  .about-panel:hover .about-panel-inner {
    transform: none;
  }

  .about-columns,
  .about-columns.three-column,
  .about-list.two-column,
  .resume-role,
  .expertise-grid,
  .literature-card-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .metric {
    padding: 28px 20px;
  }

  .metric:nth-child(2) {
    border-right: none;
  }

  .metric:nth-child(1),
  .metric:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .hero-image-frame img {
    aspect-ratio: 4 / 5;
  }

  .contact-strip {
    padding: 76px 0;
  }

  .research-header h1 {
    font-size: clamp(2.4rem, 8vw, 4rem);
  }

  .literature-intro {
    max-width: 100%;
    margin: -20px 0 60px;
  }

  .literature-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 34px 0;
  }

  .literature-item:hover {
    padding-left: 0;
  }

  .literature-date {
    margin-bottom: 4px;
  }

  .literature-item p {
    max-width: 100%;
  }
}

/* Small tablets / large phones */
@media (max-width: 800px) {
  .testimonial-content {
    padding-left: 40px;
  }

  .linkedin-grid {
    grid-template-columns: 1fr;
  }

  .linkedin-grid > :last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

  .linkedin-embed-wrap {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .linkedin-embed-wrap iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 620px !important;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: left;
    padding: 44px 0;
  }

  .footer-brand,
  .footer-right {
    grid-column: auto;
    align-items: flex-start;
  }

  .footer-right {
    flex-direction: column;
    gap: 18px;
  }

  .footer-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px 24px;
  }

  .footer-social {
    margin-left: 0;
    gap: 14px;
  }

  .footer-social a {
    width: 42px; height: 42px;
    flex-basis: 42px;
  }

  .footer-social img {
    width: 42px;
    height: 42px;
  }

  .research-detail-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .testimonial-content {
    padding-left: 28px;
    margin-left: 10px;
  }

  .testimonial-item summary {
    gap: 20px;
  }
}

/* Phones */
@media (max-width: 600px) {
  :root {
    --page-margin: 22px;
  }

  .logo img {
    width: 220px;
  }

  .nav-links {
    gap: 16px 20px;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .home-title {
    padding-top: 54px;
  }

  .home-title h1,
  .page-title h1,
  .research-header h1 {
    font-size: clamp(2.45rem, 12vw, 3.2rem);
    line-height: 1.03;
  }

  .about-panel h2,
  .contact-strip h2,
  .empty-state h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 26px 0;
  }

  .metric:last-child {
    border-bottom: none;
  }

  .engagement-content {
    padding-left: 56px;
    margin-left: 10px;
  }

  .engagement-entry {
    padding-left: 20px;
  }

  .engagement-entry::before {
    left: -42px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .literature-intro {
    margin: -10px 0 50px;
    padding-bottom: 40px;
  }

  .literature-intro p {
    font-size: 1rem;
  }

  .literature-item h2 {
    font-size: 1.15rem;
  }

  .empty-state {
    padding: 70px 0 90px;
  }

  .empty-state h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .testimonials-section {
    padding: 70px 0;
  }

  .testimonial-item summary {
    align-items: flex-start;
  }

  .testimonial-content {
    padding-left: 26px;
    margin-left: 10px;
  }

  .testimonial-highlight {
    font-size: 1.1rem;
  }
}