/* ==========================================================================
   Uddipta Mahanta — portfolio
   Ported from the Webflow project. Desktop (base) + ≥1920 + ≤991 layers are
   faithful to the original; ≤767 and ≤479 layers are redesigned for mobile.
   ========================================================================== */

/* ---- Font ---------------------------------------------------------------- */
@font-face {
  font-family: "Sourcesans 3 Variablefont Wght";
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/SourceSans3-VariableFont_wght.ttf") format("truetype");
}
@font-face {
  font-family: "Sourcesans 3 Variablefont Wght";
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  src: url("../fonts/SourceSans3-Italic-VariableFont_wght.ttf") format("truetype");
}

:root {
  --white: white;
  --black: black;
  --font: "Sourcesans 3 Variablefont Wght", "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --ink: #1b1f24;
  --body: #3a3f47;
  --muted: #6b7280;
  --line: #e4ebf3;
  --accent: #559ffa;
  --accent-dark: #2d8bff;
  --accent-soft: #e3f3ff;
  --accent-tint: #f3f8ff;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-hover: 0 24px 48px -28px rgba(17, 18, 18, 0.28);
  --nav-h: 76px;
}

html { scroll-behavior: smooth; }
::selection { background: #cbe9ff; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
a { transition: color 200ms ease, opacity 200ms ease; }

/* ---- Image placeholders (swap for <img> once assets are uploaded) --------- */
.ph {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ar, 16 / 9);
  background: #eef1f5;
  border: 1px dashed #c5cdd8;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
}
.ph::after {
  content: attr(data-file);
  position: absolute;
  left: 8px;
  bottom: 6px;
  font: 11px/1.2 var(--font);
  color: #8a94a3;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ph.ph-circle { border-radius: 50%; }
.ph.ph-circle::after { display: none; }
.ph.ph-icon { display: inline-block; }
.ph.ph-icon::after { display: none; }

/* ---- Webflow layout primitives (Quick Stack / Container / Flex) ---------- */
.w-layout-grid { display: grid; grid-auto-columns: 1fr; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.w-layout-layout { display: grid; grid-auto-columns: 1fr; gap: 20px; padding: 20px; justify-content: center; }
.w-layout-cell { align-items: flex-start; display: flex; flex-direction: column; justify-content: flex-start; }
.w-layout-blockcontainer { display: block; margin-left: auto; margin-right: auto; max-width: 940px; }
.w-layout-vflex { align-items: flex-start; display: flex; flex-direction: column; }
.w-layout-hflex { align-items: flex-start; display: flex; flex-direction: row; }
@media screen and (max-width: 991px) { .w-layout-blockcontainer { max-width: 728px; } }
@media screen and (max-width: 767px) { .w-layout-blockcontainer { max-width: none; } }

/* ---- Body variants (one per Webflow page) --------------------------------- */
.body, .body-2, .body-3, .body-4, .body-5, .body-6 {
  --gutter: 5vw;
  display: block;
  margin-right: var(--gutter);
  margin-left: var(--gutter);
  background-color: #fff;
  background-image: none;
  font-family: var(--font);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}
.body-2 { --gutter: 40px; }
h1, h2, h3, h4 { color: var(--ink); }

/* ---- Navigation ----------------------------------------------------------- */
.nav1 {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: auto;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  background-color: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.nav1.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -18px rgba(17, 18, 18, 0.18); }
.nav1-wrap {
  display: flex;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: padding 300ms var(--ease);
}
.nav1.is-scrolled .nav1-wrap { padding-top: 12px; padding-bottom: 12px; }
.nav1-wrap.about-me { margin-bottom: 0; }
.nav1-logo-wrapper { display: inline-flex; align-items: center; flex: 0 0 auto; transition: opacity 200ms ease; }
.nav1-logo-wrapper:hover { opacity: 0.75; }
.nav1-logo-wrapper img { display: block; width: 62px; height: auto; }
/* Text fallback until images/logo-um.svg is supplied */
.logo-text {
  display: inline-block;
  font-family: var(--font);
  font-size: 21px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #3a6bb3;
  text-decoration: none;
}
.nav1-menu-wrapper { display: flex; justify-content: flex-start; align-items: center; gap: 32px; }
.div-block-15 { }
.link-light {
  position: relative;
  opacity: 0.7;
  transition: color 300ms ease, opacity 300ms ease;
  color: var(--ink);
  line-height: 24px;
  cursor: pointer;
}
.link-light:hover { opacity: 1; color: var(--ink); }
.link-light.navigation1-link-light {
  display: inline-block;
  margin-right: 0;
  padding: 6px 0;
  opacity: 0.75;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.link-light.navigation1-link-light::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 350ms var(--ease);
}
.link-light.navigation1-link-light:hover::after,
.link-light.navigation1-link-light.w--current::after { transform: scaleX(1); }
.link-light.navigation1-link-light.w--current { opacity: 1; font-weight: 600; }
.nav1-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background-color 200ms ease;
}
.nav1-menu-btn:hover { background-color: var(--accent-tint); }
.nav1-menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 350ms var(--ease), opacity 200ms ease;
}
.nav1-menu-btn.w--open .nav1-menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav1-menu-btn.w--open .nav1-menu-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav1-menu-btn.w--open .nav1-menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Home: hero ----------------------------------------------------------- */
.hero {
  display: flex;
  min-height: min(calc(100vh - var(--nav-h)), 680px);
  padding: 24px 0 48px;
  margin-right: auto;
  margin-left: auto;
  justify-content: center;
  align-items: center;
}
.hero.about-me { margin-top: 24px; min-height: 0; padding-bottom: 0; }
.quick-stack-2 { padding: 0; gap: 48px; align-items: center; }
.cell-3 {
  flex-flow: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}
.cell-4 { justify-content: center; align-items: center; }
.heading-4 {
  margin-top: 0;
  margin-bottom: 0;
  font-family: var(--font);
  font-size: 4rem;
  line-height: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.text-block-2 {
  margin-bottom: 8px;
  font-family: var(--font);
  font-size: 1.75rem;
  line-height: 2.5rem;
  font-weight: 300;
  color: var(--body);
}
.text-block-2.accent {
  margin-bottom: 8px;
  color: #b5b5b5;
  font-size: 2.5rem;
  line-height: 3rem;
  font-weight: 400;
}
.main-img { display: block; border-radius: var(--radius); }
img.main-img { width: 100%; height: auto; }

/* Hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .cell-3 > *, .hero .cell-5 > * { animation: rise 800ms var(--ease) both; }
  .hero .cell-3 > :nth-child(2), .hero .cell-5 > :nth-child(2) { animation-delay: 90ms; }
  .hero .cell-3 > :nth-child(3), .hero .cell-5 > :nth-child(3) { animation-delay: 180ms; }
  .hero .cell-3 > :nth-child(4), .hero .cell-5 > :nth-child(4) { animation-delay: 270ms; }
  .hero .cell-4, .hero .cell-6 { animation: rise 900ms 200ms var(--ease) both; }
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 12px 24px;
  float: none;
  border: 2px solid transparent;
  border-radius: 10px;
  background-color: var(--accent-soft);
  transition: color 200ms ease, box-shadow 300ms var(--ease), background-color 200ms ease, transform 300ms var(--ease), border-color 200ms ease;
  color: var(--accent);
  font-size: 1.0625rem;
  line-height: 1.5rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.btn::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("../icons/arrow-right.svg") center / contain no-repeat;
  mask: url("../icons/arrow-right.svg") center / contain no-repeat;
  transition: transform 300ms var(--ease);
}
.btn:hover {
  background-color: #cbe9ff;
  box-shadow: 0 10px 24px -14px rgba(45, 139, 255, 0.5);
  transform: translate(0, -2px);
  color: var(--accent-dark);
}
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn.tertiary {
  padding-right: 24px;
  padding-left: 24px;
  background-color: #fff;
  border-color: #d4e6ff;
  outline: none;
}
.btn.tertiary:hover { background-color: var(--accent-soft); border-color: #bfdcff; text-decoration: none; }

/* ---- Lucide icons ----------------------------------------------------------- */
.lucide { flex-shrink: 0; stroke-width: 1.75; }
.text-block-10 .card-arrow { margin-left: 6px; color: var(--accent); vertical-align: -2px; transition: transform 250ms var(--ease); }
.link-block:hover .card-arrow { transform: translate(3px, -3px); }
footer nav a { display: inline-flex; align-items: center; gap: 4px; }
.footer-arrow { color: var(--muted); transition: transform 200ms var(--ease), color 200ms ease; }
footer nav a:hover .footer-arrow { color: var(--accent); transform: translate(2px, -2px); }

/* icon badge: a Lucide icon centered in a small colored circle */
.icon-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--badge, 34px);
  height: var(--badge, 34px);
  border-radius: 50%;
}
.icon-badge .badge-icon { stroke-width: 2.25; }
.icon-badge.tint-accent { background-color: var(--accent-tint); color: var(--accent); }
.icon-badge.tint-green { background-color: #dcfce7; color: #16a34a; }
.icon-badge.tint-red { background-color: #fee2e2; color: #dc2626; }

.meta-h {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Home: testimonials --------------------------------------------------- */
.section-19 { display: block; }
.testimonial-column-light {
  position: relative;
  margin-top: 72px;
  margin-right: 0;
  margin-left: 0;
  padding: 0;
  border-bottom: none;
}
.container-3 { width: 100%; max-width: none; margin-right: 0; margin-left: 0; }
.centered-heading { margin: 0 0 8px; text-align: center; font-size: 2rem; line-height: 2.5rem; font-weight: 600; }
.testimonial-grid-two {
  display: grid;
  margin-top: 36px;
  grid-auto-columns: 1fr;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}
.testimonial-card-two {
  position: relative;
  display: flex;
  padding: 28px 28px 26px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), border-color 300ms ease;
}
.testimonial-card-two::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background-color: var(--accent-soft);
  -webkit-mask: url("../icons/quote.svg") center / contain no-repeat;
  mask: url("../icons/quote.svg") center / contain no-repeat;
  pointer-events: none;
}
.testimonial-card-two:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #d4e6ff; }
.testimonial-text-two { margin: 0; line-height: 1.6; }
.testimonial-info-three {
  position: relative;
  display: flex;
  padding: 0 0 18px;
  justify-content: flex-start;
  align-items: center;
  background-color: transparent;
}
.testimonial-image {
  width: 56px;
  height: 56px;
  margin-right: 14px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.ph.testimonial-image { aspect-ratio: 1; }
.testimonial-main-heading { display: block; margin: 0 0 2px; font-size: 1.25rem; line-height: 1.5rem; font-weight: 600; }
.div-block-2 { align-self: auto; order: 0; flex: 0 1 auto; }
.div-block-3 { position: relative; top: 0; }
.italic-text { position: relative; top: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.75rem; color: var(--body); }
.bold-text-16, .bold-text-17 { font-size: 15px; line-height: 1.3; font-weight: 500; color: var(--muted); }

/* ---- Home: featured projects ---------------------------------------------- */
.div-block-14 { display: flex; margin-top: 64px; margin-bottom: 24px; padding-top: 56px; border-top: 1px solid var(--line); justify-content: center; align-items: center; }
.heading-13 { margin: 0; color: #a3a3a3; font-size: 2.5rem; line-height: 3rem; font-weight: 600; }
.section-5 { margin-right: 0; }
.quick-stack { margin-right: 0; margin-bottom: 80px; margin-left: 0; padding: 0; gap: 48px; align-items: center; }
.cell { justify-content: center; align-items: center; text-align: left; }
.cell-2 { padding-left: 0; justify-content: center; align-items: flex-start; font-family: var(--font); gap: 4px; }
.flex-block { justify-content: center; align-items: flex-start; gap: 4px; }
.heading-14, .heading-15 { margin: 0 0 8px; }
.bold-text { font-family: var(--font); font-size: 2rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.01em; }
.text-block-3 {
  margin-bottom: 0;
  padding-bottom: 0;
  font-size: 1.125rem;
  line-height: 1.75rem;
  text-align: left;
}
.text-block-3 strong, .text-block-7 strong, .text-block-6 strong, .list strong { color: var(--ink); }
.text-block-3.different { margin-bottom: 20px; }
.text-block-3.space { margin-bottom: 0; }
.text-block-3.about-me { margin-bottom: 20px; }
.text-block-3.gap { margin-bottom: 10px; }
.section-5 .btn { margin-top: 18px; }

/* ---- Get in touch --------------------------------------------------------- */
.section-13 { padding: 24px 0 72px; }
.div-block-20 { display: block; justify-content: center; align-items: center; text-align: center; }
.heading-7 { margin: 0 0 12px; font-size: 1.75rem; line-height: 2.25rem; font-weight: 600; text-align: left; }
.heading-7.centered { text-align: center; margin-bottom: 20px; }
.quick-stack-3 { margin-bottom: 10px; padding: 0; gap: 40px; }
.quick-stack-3.socials { grid-template-columns: repeat(3, auto); justify-content: center; gap: 20px; }
.cell-16, .cell-17, .cell-18, .cell-19 { justify-content: center; align-items: center; }
.cell-16 { gap: 0; }
.socials a {
  display: inline-flex;
  padding: 12px;
  border-radius: 50%;
  transition: transform 300ms var(--ease), background-color 300ms ease;
}
.socials a:hover { transform: translateY(-4px); background-color: var(--accent-tint); }
.image-8, .image-9 { border-radius: 12px; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---- About me ------------------------------------------------------------- */
.cell-5 { flex-flow: column; justify-content: flex-start; align-items: flex-start; }
.cell-6 { justify-content: flex-start; align-items: flex-start; }
.heading-main {
  display: flex;
  margin: 64px 0 24px;
  padding-bottom: 0;
  justify-content: center;
  align-items: center;
  font-size: 2.75rem;
  line-height: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: left;
}
.hero .heading-main { margin: 0 0 8px; font-size: 3.25rem; line-height: 3.75rem; }
.heading-main.about-me { margin-top: 0; }
.hero.about-me .text-block-2 { font-size: 1.5rem; line-height: 2.25rem; margin-bottom: 12px; }
.section-12 { margin-top: 48px; padding-bottom: 24px; }
.section-12 .quick-stack-3 { margin-top: 8px; gap: 20px; }
.italic-text-4, .italic-text-5 { font-weight: 600; }

/* ---- Project pages -------------------------------------------------------- */
.section-4 { margin-top: 40px; }
.div-block-4 { margin-top: 0; }
.div-block-9 { margin-top: 0; }
.heading-11 {
  max-width: 24ch;
  margin: 0 auto 32px;
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: center;
}
.w-container .heading-11 { margin-top: 0; margin-bottom: 24px; }
.cs-section-1 {
  position: static;
  display: flex;
  max-height: none;
  margin: 0 0 48px;
  justify-content: center;
  align-items: center;
}
.cs-section-1 .ph, .cs-section-1 img { border-radius: 16px; }
img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
img.testimonial-image { border-radius: 50%; }
.image-3 { overflow: visible; height: auto; margin-bottom: 0; padding-bottom: 0; }
.context-section { box-sizing: border-box; margin-top: 0; margin-bottom: 0; padding-bottom: 0; }
.container-4 { margin-top: 32px; }
.container-5 { margin-right: auto; margin-left: auto; }
.container-6 { display: flex; flex-flow: wrap; justify-content: center; align-items: center; }
.container-7 { padding-bottom: 20px; }
.div-block-11 {
  display: flex;
  padding: 18px 22px;
  justify-content: center;
  align-items: center;
  gap: 18px;
  border-radius: 14px;
  background-color: var(--accent-tint);
  border: 1px solid #dbe9ff;
  transition: transform 400ms ease;
}
.div-block-11 .ph { width: 33px; flex: 0 0 auto; }
.div-block-11 .text-block-3 { font-size: 1.0625rem; line-height: 1.6rem; }
.bold-text-31 { font-size: 1.0625rem; line-height: 1.6rem; font-weight: 600; }
.text-block-7 { margin-bottom: 10px; font-size: 1.125rem; line-height: 1.75rem; }
.text-block-6 { padding-bottom: 10px; font-size: 18px; line-height: 28px; }
.text-block-5 { font-size: 18px; }
.text-block-8 { margin: 10px 0 24px; font-weight: 500; font-size: 0.95rem; color: var(--muted); text-align: center; }
.text-block-9 {
  margin-right: 16px;
  padding: 8px;
  border-radius: 8px;
  background-color: #ebebeb;
  font-size: 18px;
  line-height: 28px;
}
.heading-9 {
  display: flex;
  margin: 0 0 10px;
  justify-content: flex-start;
  align-items: center;
  font-size: 1.375rem;
  line-height: 1.75rem;
  font-weight: 600;
}
.heading-10 { margin: 28px 0 10px; font-size: 1.75rem; line-height: 2.25rem; font-weight: 600; }
.heading-12 { margin: 0; font-size: 1.75rem; line-height: 2.25rem; font-weight: 600; }
.list { margin-bottom: 20px; padding-left: 24px; font-size: 18px; line-height: 30px; }
.list li { margin-bottom: 4px; }
blockquote {
  margin: 12px 0 16px;
  padding: 12px 20px;
  border-left: 3px solid #bfdcff;
  border-radius: 0 10px 10px 0;
  background: var(--accent-tint);
  font-size: 1.0625rem;
  line-height: 1.6rem;
  color: var(--body);
}
.w-container > .div-block-6, .w-container > .div-block-10, .w-container > .div-block-5 { margin-top: 28px; }
.context-section .quick-stack-3 { gap: 48px; margin-bottom: 40px; }
.list.new { }
.list-item, .list-item-2 { font-size: 1.125rem; line-height: 1.875rem; }
.italic-text-3 { font-size: 0.875rem; line-height: 1.25rem; }
.bold-text-3, .bold-text-4, .bold-text-5, .bold-text-6, .bold-text-7, .bold-text-8, .bold-text-9,
.bold-text-10, .bold-text-11, .bold-text-12, .bold-text-13, .bold-text-15, .bold-text-18,
.bold-text-19, .bold-text-20, .bold-text-21, .bold-text-22, .bold-text-24, .bold-text-25,
.bold-text-27, .bold-text-28, .bold-text-29, .bold-text-30, .bold-text-32, .bold-text-33,
.bold-text-34, .bold-text-35, .bold-text-36, .bold-text-37, .bold-text-38, .bold-text-39,
.bold-text-40, .bold-text-41, .bold-text-42, .bold-text-43, .bold-text-44, .bold-text-45,
.bold-text-46, .bold-text-47, .bold-text-48, .bold-text-49, .bold-text-50 { font-weight: 600; }
.bold-text-7 { transition: opacity 400ms ease; }
.bold-text-14 { background-color: transparent; color: #3a89c9; }
.bold-text-23 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.bold-text-26 { font-size: 1.125rem; line-height: 1.875rem; font-weight: 500; }
.custom-underline { background-image: linear-gradient(rgba(0, 0, 0, 0) 77%, #f77876); }
.lottie-animation-4 {
  position: relative;
  left: 0;
  top: 0;
  display: flex;
  margin-top: 16px;
  width: 100%;
  height: 200px;
  justify-content: center;
  align-items: center;
  text-align: left;
}
.lottie-animation-4 .ph { width: 200px; height: 200px; --ar: 1; }
.lottie-animation-4 .lottie-player { width: 200px; height: 200px; }
.quick-stack-4 { margin-bottom: 40px; padding-right: 0; padding-left: 0; }
.cell-7 { justify-content: center; align-items: center; }
.cell-7 .ph { width: 124px; }
.div-block-5 { padding-bottom: 40px; }
.div-block-6 { margin-top: 20px; }
.div-block-10 { margin-top: 20px; }
.quick-stack-5 { padding: 0; column-gap: 0; }
.cell-8 { justify-content: center; align-items: center; }
.cell-8 .ph { max-width: 286px; }
.section-6 { padding-top: 40px; }
.section-7 { margin-top: 60px; }
.section-8 { padding-bottom: 20px; }
.section-9 { margin-bottom: 40px; }
.section { margin-bottom: 0; padding-bottom: 0; }
.section-14 { margin-top: 40px; }
.image-4 { margin-bottom: 40px; }
.image-5 { margin-bottom: 20px; }
.image-7 { margin-top: 10px; }
.image-10 { }
.image-11 { display: block; margin-right: 40px; text-align: right; }
.image-12, .image-13, .image-14 { margin-bottom: 40px; }
.space { margin-bottom: 20px; }
.quick-stack-7, .quick-stack-9 { padding: 0; border-radius: 0; }
.quick-stack-6 { padding-right: 0; padding-left: 0; }
.cell-9 {
  padding: 0;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  background-color: #e6ffe6;
}
.cell-10, .cell-11, .cell-13, .cell-14 { justify-content: center; align-items: center; }
.cell-10 .ph, .cell-11 .ph { width: 64px; --ar: 1; }
.cell-12 {
  padding: 20px;
  justify-content: center;
  align-items: flex-start;
  border-radius: 10px;
  background-color: #ffeded;
}
.cell-9, .cell-12 { border-radius: 12px; }
.cell-12 { background-color: #fff3f3; }
.cell-9 { background-color: #eefbee; }
.div-block-7 {
  display: flex;
  margin-bottom: 40px;
  padding: 20px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-radius: 12px;
  background-color: #eefbee;
}
.div-block-7 .ph { width: 64px; --ar: 1; flex: 0 0 auto; }
.div-block-8 {
  display: grid;
  grid-auto-columns: 1fr;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}
.div-block-12 { display: flex; margin-bottom: 20px; flex-flow: row; justify-content: center; align-items: center; }
.div-block-13 { display: flex; padding-top: 20px; padding-bottom: 20px; justify-content: center; align-items: center; }
.div-block-19 { display: flex; justify-content: center; align-items: center; }
.div-block-19 .ph { max-width: 641px; }
.div-block-21 { display: flex; padding-bottom: 0; justify-content: center; align-items: stretch; }
.div-block-21.new { padding-bottom: 10px; }
.section-10 { margin-top: 40px; margin-bottom: 0; padding-bottom: 40px; }
.section-10.lrter { margin-top: 60px; }
.section-10.space { margin-top: 20px; }
.div-block-13 { padding: 48px 0 20px; }
.quick-stack-10 { padding: 0; gap: 20px; }
.cell-15 {
  padding: 12px;
  justify-content: flex-start;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), border-color 300ms ease;
}
.cell-15:hover { box-shadow: var(--shadow-hover); transform: translate(0, -5px); border-color: #d4e6ff; }
.cell-15 .ph, .cell-15 img { border-radius: 9px; }
.link-block, .link-block-2 { display: block; color: #202020; text-decoration: none; width: 100%; }
.text-block-10 {
  padding: 12px 6px 4px;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.5rem;
  font-weight: 600;
  font-style: normal;
  text-align: left;
  text-decoration: none;
}
.section-10 .container-6 { max-width: 940px; }

/* ---- Image ↔ heading / text rhythm --------------------------------------- */
.ph + h1, .ph + h2, .ph + h3, .ph + h4,
img + h1, img + h2, img + h3, img + h4 { margin-top: 40px; }
.ph + .heading-9, img + .heading-9 { margin-top: 32px; }
.ph + .ph, img + img, .ph + img, img + .ph { margin-top: 20px; }
.text-block-3 + .ph, .text-block-3 + img, .text-block-7 + .ph, .text-block-7 + img,
.list + .ph, .list + img, .div-block-21 + .ph, .div-block-21 + img { margin-top: 20px; }
.ph + .text-block-3, img + .text-block-3, .ph + .list, img + .list { margin-top: 20px; }
.text-block-8 + .text-block-3, .text-block-8 + .list { margin-top: 0; }
/* Section that opens with a heading right after an image-ending section */
section > .w-container > .heading-7:first-child,
section > .w-container > h1:not(.heading-11):first-child { margin-top: 56px; }
section:empty { display: none; }
/* Anonymous image wrappers next to text containers */
.w-container + div:not([class]), div:not([class]) + .w-container,
.w-container + .div-block-19, .w-container + .div-block-21 { margin-top: 24px; }
.text-block-3 + div:not([class]), .text-block-7 + div:not([class]),
div[class^="div-block"] + .ph, div[class^="div-block"] + img { margin-top: 20px; }
.quick-stack-5 { margin-bottom: 12px; }
.w-container > .div-block-10 { margin-top: 40px; }
.w-container + .ph, .w-container + img, .ph + .w-container, img + .w-container { margin-top: 24px; }
.w-container + .w-container > div:first-child > .heading-10:first-child { margin-top: 48px; }
.text-block-3 + .div-block-21 { margin-top: 20px; }

/* ---- Scroll reveal (IntersectionObserver adds .is-visible) --------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 750ms var(--ease), transform 750ms var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
.paragraph { font-family: var(--font); }
.link { }

/* Quick-stack column templates (Webflow per-node grid styles) */
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-1-075 { grid-template-columns: 1fr 0.75fr; }
.grid-15-1 { grid-template-columns: 1.5fr 1fr; }
.grid-1-2 { grid-template-columns: 1fr 2fr; }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-3-125 { grid-template-columns: 1.25fr 1.25fr 1.25fr; }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.grid-15-025-15 { grid-template-columns: 1.5fr 0.25fr 1.5fr; }
.grid-1-05 { grid-template-columns: 1fr 0.5fr; }
.grid-025-25 { grid-template-columns: 0.25fr 2.5fr; display: grid; }
.grid-15-15 { grid-template-columns: 1.5fr 1.5fr; }
.grid-15 { grid-template-columns: 1.5fr; }
.w-layout-layout { display: grid; grid-template-rows: auto; }

/* ==========================================================================
   ≥1920px
   ========================================================================== */
@media screen and (min-width: 1920px) {
  .bold-text { font-size: 2.5rem; line-height: 3rem; }
  .heading-4 { font-size: 5.5rem; line-height: 6rem; }
  .text-block-2 { font-size: 2.25rem; line-height: 3.25rem; }
  .text-block-2.accent { margin-bottom: 16px; font-size: 3.25rem; line-height: 4rem; }
  .quick-stack-3 { column-gap: 40px; }
  .list.new { margin-bottom: 0; }
  .btn { font-size: 1.25rem; line-height: 1.75rem; padding: 14px 28px; }
  .section-19 { margin-top: 40px; }
  .italic-text { font-size: 1.25rem; line-height: 1.9rem; }
  .testimonial-card-two { padding: 32px; }
  .grid-15-1.xl-15-1, .grid-1-2.xl-15-2 { }
  .grid-1-2 { grid-template-columns: 1.5fr 2fr; }
  .grid-2-1 { grid-template-columns: 1.5fr 1fr; }
  .grid-4 { grid-template-columns: 1.25fr 1.25fr 1.25fr 1.25fr; grid-template-rows: 1fr; }
}

/* ==========================================================================
   ≤991px (tablet) — faithful to the original
   ========================================================================== */
@media screen and (max-width: 991px) {
  .nav1-logo-wrapper { margin-left: 0; }
  .nav1-wrap { padding-top: 16px; padding-bottom: 16px; }
  .nav1-menu-btn { display: flex; margin-right: -8px; user-select: none; }
  .nav1-menu-wrapper {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 8px 0 16px;
    gap: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background-color: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(17, 18, 18, 0.2);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 260ms var(--ease), transform 300ms var(--ease), visibility 0s linear 300ms;
  }
  .nav1.is-open .nav1-menu-wrapper { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
  .nav1.is-open { border-bottom-color: var(--line); }
  .div-block-15 { padding: 0 var(--gutter); }
  .link-light.navigation1-link-light { display: block; margin-right: 0; padding: 14px 12px; font-size: 18px; border-radius: 10px; }
  .link-light.navigation1-link-light::after { display: none; }
  .link-light.navigation1-link-light:hover { background-color: var(--accent-tint); }
  .link-light.navigation1-link-light.w--current { color: var(--accent-dark); }
  .testimonial-grid-two { column-gap: 24px; }
  .testimonial-card-two { padding: 24px; }
  .text-block-3 { margin-bottom: 10px; }
  .grid-15-1, .grid-1-2, .grid-2-1 { grid-template-columns: 1.25fr 1fr; }
  .quick-stack { gap: 32px; margin-bottom: 64px; }
  .heading-11 { font-size: 2.75rem; }
}

/* ==========================================================================
   ≤767px (mobile landscape / large phones) — redesigned
   ========================================================================== */
@media screen and (max-width: 767px) {
  .body, .body-2, .body-3, .body-4, .body-5, .body-6 { --gutter: 20px; }
  .nav1-wrap { padding: 12px 0; }
  .nav1.is-scrolled .nav1-wrap { padding: 10px 0; }

  /* Hero: natural height, centered stack */
  .hero { height: auto; min-height: 0; margin-top: 8px; margin-bottom: 8px; padding: 16px 0 24px; align-items: flex-start; }
  .quick-stack-2 { grid-template-columns: 1fr; gap: 16px; }
  .cell-3 { align-items: center; text-align: center; gap: 6px; }
  .heading-4 { font-size: 2.75rem; line-height: 3.25rem; text-align: center; }
  .text-block-2.accent { margin-bottom: 8px; font-size: 1.75rem; line-height: 2.25rem; text-align: center; }
  .text-block-2 { font-size: 1.25rem; line-height: 1.85rem; text-align: center; max-width: 34ch; }
  .btn.tertiary { width: auto; min-width: 0; margin-top: 12px; }
  .cell-4 .ph, .cell-4 .main-img { max-width: 360px; }

  /* Testimonials */
  .testimonial-column-light { margin-top: 40px; padding: 0 0 8px; border-bottom: none; }
  .container-3 { margin-left: 0; }
  .centered-heading { font-size: 1.75rem; line-height: 2.2rem; margin-bottom: 0; }
  .testimonial-grid-two { margin-top: 24px; grid-template-columns: 1fr; gap: 16px; }
  .testimonial-card-two { padding: 20px; border-radius: 14px; }
  .testimonial-card-two::before { width: 36px; height: 36px; top: 10px; right: 18px; }
  .testimonial-info-three { flex-direction: row; padding: 0 0 12px; }
  .testimonial-image { width: 52px; height: 52px; }
  .div-block-3 { top: 0; }
  .testimonial-main-heading { font-size: 1.25rem; line-height: 1.6rem; }
  .bold-text-16, .bold-text-17 { font-size: 14px; line-height: 1.3; }
  .testimonial-text-two { margin-bottom: 0; line-height: 1.5rem; }
  .italic-text { font-size: 1.05rem; line-height: 1.55rem; }

  /* Featured projects: uniform card order image → title → categories → button */
  .div-block-14 { margin-top: 32px; margin-bottom: 4px; padding-top: 32px; }
  .heading-13 { font-size: 1.75rem; line-height: 2.25rem; text-align: center; }
  .section-5 .quick-stack {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 0;
    padding: 24px 0;
    border-bottom: 1px solid #e4ebf3;
  }
  .section-5 .quick-stack:last-child { border-bottom: none; }
  .section-5 .quick-stack > .w-layout-cell.cell { order: 1; }          /* text (image-first variant) */
  .section-5 .quick-stack > .w-layout-cell:not(.cell):not(.cell-2) { order: 0; } /* image */
  .section-5 .quick-stack > .w-layout-cell.cell-2 { order: 1; }        /* text (text-first variant) */
  .section-5 .quick-stack > .w-layout-cell.cell:has(.ph),
  .section-5 .quick-stack > .w-layout-cell.cell:has(img) { order: 0; }
  .section-5 .w-layout-cell { align-items: stretch; }
  .flex-block { align-items: stretch; width: 100%; }
  .bold-text { font-size: 1.5rem; line-height: 2rem; }
  .heading-14, .heading-15 { margin-top: 8px; margin-bottom: 8px; text-align: left; }
  .text-block-3 { font-size: 1rem; line-height: 1.55rem; }
  .section-5 .btn { width: 100%; box-sizing: border-box; margin-top: 12px; }

  /* Get in touch */
  .section-13 { padding-top: 24px; padding-bottom: 40px; }
  .heading-7.centered { font-size: 1.75rem; line-height: 2.2rem; }
  .quick-stack-3.socials { grid-template-columns: repeat(3, auto); justify-content: center; gap: 12px; margin-top: 8px; }
  .site-footer { flex-direction: column; gap: 10px; padding: 20px 0 28px; text-align: center; }

  /* About me */
  .hero.about-me { margin-top: 8px; }
  .quick-stack-3 { grid-template-columns: 1fr; gap: 20px; }
  .hero .heading-main { font-size: 2.25rem; line-height: 2.75rem; justify-content: flex-start; }
  .heading-main { margin: 40px 0 16px; font-size: 2rem; line-height: 2.5rem; justify-content: flex-start; }
  .cell-6 .ph, .cell-6 img { max-width: 100%; }
  .section-12 { margin-top: 32px; padding-bottom: 24px; }
  .heading-7 { font-size: 1.5rem; line-height: 2rem; }
  .section-12 .quick-stack-3 { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }

  /* Project pages */
  .section-4 { margin-top: 16px; }
  .heading-11 { font-size: 2rem; line-height: 2.5rem; margin-bottom: 20px; }
  .cs-section-1 { margin-bottom: 24px; }
  .cs-section-1 .ph, .cs-section-1 img { max-width: 100%; border-radius: 12px; }
  .container-6 { margin-top: 16px; }
  .div-block-11 { align-items: flex-start; gap: 12px; padding: 14px; }
  .context-section .quick-stack-3 { gap: 24px; }
  .div-block-13 { padding: 32px 0 16px; }
  .container-4 { margin-top: 16px; }
  .w-layout-layout { padding: 0; }
  .grid-2, .grid-1-075, .grid-15-1, .grid-1-2, .grid-2-1, .grid-3, .grid-3-125, .grid-4,
  .grid-15-025-15, .grid-1-05, .grid-15-15, .grid-15 { grid-template-columns: 1fr; }
  .grid-025-25 { grid-template-columns: 64px 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .cell-7 { display: none; }              /* decorative divider line between research columns */
  .lottie-animation-4 { left: 0; top: 0; height: auto; margin: 16px auto 0; }
  .lottie-animation-4 .ph { width: 160px; height: 160px; margin: 0 auto; }
  .lottie-animation-4 .lottie-player { width: 160px; height: 160px; margin: 0 auto; }
  .heading-9 { font-size: 1.25rem; line-height: 1.6rem; align-items: flex-start; }
  .heading-10 { font-size: 1.5rem; line-height: 2rem; }
  .list, .list-item, .list-item-2 { font-size: 1rem; line-height: 1.6rem; }
  .text-block-7, .text-block-6, .text-block-5, .bold-text-31, .bold-text-23, .bold-text-26 { font-size: 1rem; line-height: 1.55rem; }
  .quick-stack-5 { gap: 12px; padding: 12px 0; }
  .cell-8 .ph { max-width: 200px; margin: 0 auto; }
  .div-block-8 { grid-template-columns: 1fr; }
  .image-11 { margin-right: 0; }
  .div-block-7 { margin-bottom: 24px; }
  .section-10 { padding-bottom: 40px; }
  .section-10.lrter { margin-top: 32px; }
  .quick-stack-10 { gap: 12px; }
  .cell-15 { padding: 12px; align-items: center; }
  .section-6 { padding-top: 24px; }
  .section-14 { margin-top: 24px; }
  blockquote { font-size: 1rem; line-height: 1.5rem; }

  /* Wide diagrams/screenshots (ratio > 1.8): scroll horizontally at a readable size
     instead of shrinking to full-width, where their labels become illegible. */
  .img-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .img-scroll img, .img-scroll .ph {
    max-width: none;
    width: auto;
    height: 240px;
  }
}

/* ==========================================================================
   ≤479px (phones) — refinements
   ========================================================================== */
@media screen and (max-width: 479px) {
  .body, .body-2, .body-3, .body-4, .body-5, .body-6 { --gutter: 16px; }
  .heading-4 { font-size: 2.25rem; line-height: 2.75rem; }
  .text-block-2.accent { font-size: 1.5rem; line-height: 2rem; }
  .text-block-2 { font-size: 1.125rem; line-height: 1.7rem; }
  .btn.tertiary { width: 100%; box-sizing: border-box; }
  .cell-4 .ph, .cell-4 .main-img { max-width: 300px; }
  .heading-11 { font-size: 1.75rem; line-height: 2.2rem; }
  .heading-main { font-size: 2rem; line-height: 2.5rem; }
  .section-12 .quick-stack-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .quick-stack-3.socials { gap: 22px; }
  .btn { display: flex; min-width: 100%; box-sizing: border-box; text-align: center; }
  .cell-15 { padding: 10px; }
  .heading-11 { max-width: none; }
}
