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

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Montserrat', sans-serif;
}

body {
  overflow: hidden;
}

.navbar {
  width: 90%;
  margin: 0 auto;
  background-color: transparent;
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform 0.35s ease, opacity 0.25s ease;
  will-change: transform;
  overflow: hidden;
}
.navbar.is-animating {
  transition: none !important;
}
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(240, 247, 238, 0.82);
  border: 1px 0px solid rgba(36, 36, 35, 0.12);
  box-shadow: 0 20px 40px rgba(36, 36, 35, 0.16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo svg {
  display: block;
}

.logo:hover svg,
.logo:focus-visible svg {
  opacity: 0.85;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
 }
 
.nav-links li {
 margin-right: 30px;
 }

.nav-links a {
 color: #242423;
 text-decoration: none;
 font-weight: bold;
  position: relative;
}

.nav-links a::before {
content: '';
position: absolute;
width: 100%;
height: 1px;
border-radius: 4px;
background-color: #242423;
bottom: 0;
left: 0;
transform-origin: right;
transform: scaleX(0);
transition: transform .3s ease-in-out;
}

.nav-links a.is-active::before {
  transform-origin: left;
  transform: scaleX(1);
}

a:hover::before {
    transform-origin: left;
    transform: scaleX(1);
  }

.navbar--hidden {
  transform: translateY(-160%);
  opacity: 0;
}

.navbar--with-bg::before {
  opacity: 1;
}

#transparent-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.4); */
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #e9eced;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.page-work {
  color: #242423;
}

.page-blog {
  color: #242423;
}

body.page-work {
  min-height: 100vh;
  overflow-y: auto;
  background: #f0f7ee;
  position: relative;
}

body.page-work::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(240, 247, 238, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 1;
  pointer-events: none;
}

body.page-work canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

body.page-blog {
  min-height: 100vh;
  overflow-y: auto;
  background: #f0f7ee;
  position: relative;
}

body.page-blog::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(240, 247, 238, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 1;
  pointer-events: none;
}

body.page-blog canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.work-layer {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

.blog-layer {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

.work-main {
  position: relative;
  z-index: 2;
  width: min(1080px, 90%);
  margin: 0 auto;
  padding: 160px 0 96px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.blog-main {
  position: relative;
  z-index: 2;
  width: min(840px, 90%);
  margin: 0 auto;
  padding: 160px 0 96px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.work-hero {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-hero {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.work-hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(36, 36, 35, 0.55);
}

.blog-hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(36, 36, 35, 0.55);
}

.work-hero__title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.1;
  font-weight: 600;
}

.blog-hero__title {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.12;
  font-weight: 600;
}

.work-hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(36, 36, 35, 0.72);
}

.blog-hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(36, 36, 35, 0.72);
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.work-grid__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.work-grid__header h2 {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.work-grid__header p {
  max-width: 420px;
  font-size: 0.95rem;
  color: rgba(36, 36, 35, 0.65);
}

.work-grid__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(36, 36, 35, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 40px rgba(36, 36, 35, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
}

.work-card--interactive {
  cursor: pointer;
}

.work-card--interactive:focus-visible {
  outline: 2px solid rgba(36, 36, 35, 0.55);
  outline-offset: 6px;
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px rgba(36, 36, 35, 0.12);
}

.work-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(36, 36, 35, 0.08);
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card__category {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(36, 36, 35, 0.5);
}

.work-card__title {
  font-size: 1.35rem;
  line-height: 1.32;
  font-weight: 600;
}

.work-card__description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(36, 36, 35, 0.72);
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-card__tags li {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(36, 36, 35, 0.08);
}

.work-card__action {
  align-self: flex-start;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(36, 36, 35, 0.15);
  background: rgba(36, 36, 35, 0.88);
  color: #f0f7ee;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.work-card__action:hover,
.work-card__action:focus-visible {
  background: #242423;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(36, 36, 35, 0.2);
}

.work-card__action:active {
  transform: translateY(0);
  box-shadow: none;
}

.work-card__action:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 32px;
  border-radius: 24px;
  border: 1px solid rgba(36, 36, 35, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 32px rgba(36, 36, 35, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
  cursor: pointer;
  position: relative;
}

.blog-card:hover,
.blog-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 28px 44px rgba(36, 36, 35, 0.12);
}

.blog-card__media {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(36, 36, 35, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card__title {
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 600;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover,
.blog-card__title a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.blog-card:focus-visible {
  outline: 2px solid rgba(36, 36, 35, 0.55);
  outline-offset: 6px;
}

.blog-card__meta {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(36, 36, 35, 0.55);
}

.blog-card__excerpt {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(36, 36, 35, 0.72);
}

.inner-content {
  width: 90%;
  display: flex;
  flex-direction: column;
}

.title {
  font-style: normal;
  font-weight: bold;
  font-size: 300%;
  transition: all 0.7s ease-in-out;
  line-height: 1.25;
}

#sub-heading {
  font-size: 380%;
  margin-top: 30px; /* Adjusted for visual appeal */
  font-weight: 350;
}

.title {
  font-style: normal;
  font-weight: bold;
  font-size: 600%;
  transition: all 0.7s ease-in-out;
  line-height: 1.25;
}


#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preloader-bar {
  width: min(260px, 60vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  border-radius: 999px;
}

.preloader-bar__fill {
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
}

#preloader-progress {
  color: white;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.contact-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: rgba(4, 4, 4, 0.45);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.contact-panel--open {
  opacity: 1;
  pointer-events: auto;
}

.contact-panel__content {
  background: rgba(240, 247, 238, 0.95);
  border-radius: 28px;
  width: min(520px, 100%);
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  padding: 28px;
  gap: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  transform: translateY(40px);
  transition: transform 0.45s ease;
}

.contact-panel--open .contact-panel__content {
  transform: translateY(0);
}

.contact-panel__close {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(36, 36, 35, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: #242423;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-panel__close:hover,
.contact-panel__close:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.contact-panel__close-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.contact-panel__close-icon::before,
.contact-panel__close-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.contact-panel__close-icon::before {
  transform: rotate(45deg);
}

.contact-panel__close-icon::after {
  transform: rotate(-45deg);
}

.contact-panel__body {
  overflow-y: auto;
  padding-right: 4px;
}

.contact-panel__body::-webkit-scrollbar {
  width: 6px;
}

.contact-panel__body::-webkit-scrollbar-thumb {
  background: rgba(36, 36, 35, 0.25);
  border-radius: 999px;
}

.contact-panel__intro {
  margin: 8px 0 24px;
  font-size: 0.95rem;
  color: rgba(36, 36, 35, 0.7);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(36, 36, 35, 0.75);
}

.contact-form__field input,
.contact-form__field textarea {
  border: 1px solid rgba(36, 36, 35, 0.15);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: #242423;
  background: rgba(255, 255, 255, 0.9);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: rgba(66, 133, 244, 0.6);
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.15);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__submit {
  align-self: flex-start;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: #242423;
  color: #f0f7ee;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  transform: translateY(-2px);
  /* box-shadow: 0 12px 20px rgba(36, 36, 35, 0.25); */
}

.contact-form__submit:active {
  transform: translateY(0);
  box-shadow: none;
}

.contact-form__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-form__submit--success {
  animation: contact-form-submit-success 0.45s ease-out;
}

@keyframes contact-form-submit-success {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.05);
  }
  75% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

.contact-form__status {
  align-self: flex-start;
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-form__status--visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-form__status--success {
  color: #1b6f4e;
}

.contact-form__status--error {
  color: #b32535;
}

.contact-form__status--info {
  color: rgba(36, 36, 35, 0.75);
}

.article-panel,
.project-panel {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: rgba(4, 4, 4, 0.45);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.article-panel {
  z-index: 1300;
}

.project-panel {
  z-index: 1350;
}

.article-panel--open,
.project-panel--open {
  opacity: 1;
  pointer-events: auto;
}

.article-panel__content {
  background: rgba(240, 247, 238, 0.96);
  border-radius: 28px;
  width: min(680px, 100%);
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.article-panel__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-panel__meta {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(36, 36, 35, 0.55);
}

.article-panel__title {
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  line-height: 1.25;
  font-weight: 600;
  color: #242423;
}

.article-panel__body {
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: rgba(36, 36, 35, 0.75);
  font-size: 0.98rem;
  line-height: 1.7;
}

.article-panel__body p {
  margin: 0;
}

.article-panel__body ul,
.article-panel__body ol {
  margin: 0 0 0 1.2em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-panel__body strong {
  color: #242423;
}

.article-panel__body::-webkit-scrollbar {
  width: 6px;
}

.article-panel__body::-webkit-scrollbar-thumb {
  background: rgba(36, 36, 35, 0.25);
  border-radius: 999px;
}

.project-panel__content {
  background: rgba(240, 247, 238, 0.96);
  border-radius: 32px;
  width: min(960px, 96%);
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.22);
  overflow: hidden; /* keep dialog bounded while allowing children to size internally */
  min-height: 0; /* enable interior flex areas to shrink on tall images */
}

.project-panel__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-panel__meta {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(36, 36, 35, 0.55);
}

.project-panel__title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  font-weight: 600;
  color: #242423;
}

.project-panel__main {
  position: relative;
  display: flex;
  flex: 1; /* let main grow so stage can fill remaining space */
  align-items: stretch;
  min-height: 0; /* allow stage to fit inside constrained modal height */
}

.project-panel__stage {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  /* center the image and allow it to grow inside the stage */
  align-items: stretch;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(36, 36, 35, 0.18);
  min-height: 320px;
  max-height: 100%;
  flex: 1; /* expand to fill dialog */
}

/* make the image fill the available stage area while preserving aspect ratio */
.project-panel__stage > img,
.project-panel__stage img.project-panel__image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* show whole image */
  display: block;
  grid-row: 1;
}

.project-panel__stage > img {
  align-self: center;
}

.project-panel__caption {
  margin: 0;
  padding: 16px 24px;
  background: rgba(240, 247, 238, 0.9);
  border-top: 1px solid rgba(36, 36, 35, 0.12);
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(36, 36, 35, 0.75);
  grid-row: 2;
}

.project-panel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(36, 36, 35, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: #242423;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 24px rgba(36, 36, 35, 0.18);
}

.project-panel__nav span {
  line-height: 1;
}

.project-panel__nav:hover,
.project-panel__nav:focus-visible {
  transform: translateY(-50%) scale(1.05);
  background: rgba(36, 36, 35, 0.9);
  color: #f0f7ee;
}

.project-panel__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.project-panel__nav[disabled] {
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
}

.project-panel__nav--prev {
  left: 16px;
}

.project-panel__nav--next {
  right: 16px;
}

.project-panel__details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 4px;
  overflow-y: auto;
  color: rgba(36, 36, 35, 0.75);
  font-size: 0.98rem;
  line-height: 1.7;
}

.project-panel__details p {
  margin: 0;
}

.project-panel__details ul,
.project-panel__details ol {
  margin: 0 0 0 1.2em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-panel__details::-webkit-scrollbar {
  width: 6px;
}

.project-panel__details::-webkit-scrollbar-thumb {
  background: rgba(36, 36, 35, 0.25);
  border-radius: 999px;
}

/* for mobile */
@media only screen and (max-width: 800px) {

  #sub-heading {
    margin-top: 20px;
    
    font-size: 165%;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 20px; /* Adjusted for visual appeal */
  }
  
  
  .title {
    font-style: normal;
    /* font-weight: bold; */
    font-size: clamp(3.75rem, 10vw, 4rem);
    transition: all 0.3s ease-in-out;
    line-height: 1.25;
  }

  .navbar {

    width: 99%;
   
   
  }

  .work-card__action {
    padding: 10px 18px;
  }

  .contact-panel {
    padding: 16px;
  }

  .contact-panel__content {
    border-radius: 22px;
    padding: 24px 22px;
    gap: 20px;
  }

  .contact-form__field textarea {
    min-height: 120px;
  }

  .contact-panel__close-text {
    font-size: 0.75rem;
  }

  .work-main {
    width: 92%;
    padding: 140px 0 64px;
    gap: 48px;
  }

  .blog-main {
    width: 92%;
    padding: 140px 0 72px;
    gap: 44px;
  }

  .work-hero__title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .blog-hero__title {
    font-size: clamp(2.1rem, 8vw, 2.9rem);
  }

  .work-grid__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .work-grid__items {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-card {
    padding: 24px;
  }

  .blog-card {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
  }

  .blog-card__media {
    width: 84px;
    height: 84px;
  }

  .blog-card {
    padding: 22px;
  }

  .article-panel,
  .project-panel {
    padding: 20px 16px;
  }

  .article-panel__content {
    width: 100%;
    max-height: calc(100vh - 40px);
    padding: 24px 22px;
    border-radius: 22px;
  }

  .article-panel__title {
    font-size: clamp(1.6rem, 6.5vw, 2rem);
  }

  .project-panel__content {
    width: 100%;
    max-height: calc(100vh - 40px);
    padding: 24px 22px;
    border-radius: 24px;
    gap: 16px;
    display: flex;
    flex-direction: column;
  }

  .project-panel__title {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  .project-panel__nav {
    width: 40px;
    height: 40px;
  }

  .project-panel__nav--prev {
    left: 12px;
  }

  .project-panel__nav--next {
    right: 12px;
  }

  .project-panel__caption {
    padding: 14px 18px;
  }

  .project-panel__image {
    max-height: 50vh; /* limit mobile image height so caption stays visible */
  }

}

/* tablets in portaraint and landscape more */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  
}
