/* =========================================================
   DEV RAIHAN - FULL FINAL STYLE
   Homepage + Projects + Blogs + Detail Pages
========================================================= */

:root {
  --bg: #07111f;
  --bg-soft: #0a1626;
  --surface: #0f1c2e;
  --surface-2: #13243a;

  --text: #f8fafc;
  --text-soft: #dbe5ef;
  --muted: #91a3ba;

  --accent: #22b8ff;
  --accent-2: #7bdcff;
  --purple: #755cff;

  --border: rgba(148, 163, 184, 0.15);

  --shadow:
    0 20px 60px rgba(0, 0, 0, 0.25);
}


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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  color: var(--text);

  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(34, 184, 255, 0.1),
      transparent 30%
    ),
    radial-gradient(
      circle at 5% 45%,
      rgba(117, 92, 255, 0.07),
      transparent 30%
    ),
    var(--bg);

  line-height: 1.7;
}

body.lightbox-body {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}


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

.site-header,
header {
  position: sticky;
  top: 0;

  z-index: 1000;

  background:
    rgba(7, 17, 31, 0.94);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);

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

  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.header-scrolled,
header.header-scrolled {
  background:
    rgba(7, 17, 31, 0.99);

  box-shadow:
    0 12px 35px
    rgba(0, 0, 0, 0.22);
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar,
header nav {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

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

  gap: 11px;

  flex-shrink: 0;

  color: var(--accent);

  font-size: 25px;
  font-weight: 900;

  letter-spacing: -0.03em;
}

.logo-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  color: #03101c;

  font-size: 14px;
  font-weight: 900;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-2)
    );

  box-shadow:
    0 10px 30px
    rgba(34, 184, 255, 0.2);
}

.nav-links,
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  flex-wrap: wrap;

  gap: 6px;

  list-style: none;

  margin: 0;
  padding: 0;
}

.nav li {
  list-style: none;
}

.nav-links a,
.nav a {
  display: block;

  padding:
    10px 14px;

  border-radius: 10px;

  color: #c9d5e3;

  font-size: 15px;
  font-weight: 700;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-links a:hover,
.nav a:hover,
.nav-links a.active,
.nav a.active {
  color: #ffffff;

  background:
    rgba(34, 184, 255, 0.09);
}

.nav-links a:hover,
.nav a:hover {
  transform:
    translateY(-1px);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  min-height: 690px;

  display: flex;
  align-items: center;

  overflow: hidden;

  padding:
    110px 0;
}

.hero-glow {
  position: absolute;

  pointer-events: none;

  border-radius: 50%;
}

.hero-glow-one {
  width: 600px;
  height: 600px;

  right: -220px;
  top: 0;

  background:
    radial-gradient(
      circle,
      rgba(34, 184, 255, 0.18),
      transparent 68%
    );
}

.hero-glow-two {
  width: 350px;
  height: 350px;

  left: -150px;
  bottom: 0;

  background:
    radial-gradient(
      circle,
      rgba(117, 92, 255, 0.13),
      transparent 68%
    );
}

.hero-content {
  position: relative;

  z-index: 2;

  max-width: 900px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  color: var(--accent);

  font-size: 13px;
  font-weight: 900;

  letter-spacing: 0.15em;

  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  content: "";

  width: 28px;
  height: 2px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--accent),
      var(--purple)
    );
}

.hero h1 {
  max-width: 900px;

  margin:
    20px 0 24px;

  font-size:
    clamp(
      55px,
      8vw,
      90px
    );

  line-height: 0.98;

  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  max-width: 760px;

  color: var(--muted);

  font-size:
    clamp(
      17px,
      2vw,
      20px
    );

  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 30px;
}


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

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding:
    12px 20px;

  border:
    1px solid transparent;

  border-radius: 12px;

  color: #03101d;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-2)
    );

  font-size: 14px;
  font-weight: 900;

  box-shadow:
    0 12px 30px
    rgba(34, 184, 255, 0.17);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 18px 40px
    rgba(34, 184, 255, 0.25);
}

.btn-outline,
.btn.alt {
  color: var(--accent);

  background:
    transparent;

  border-color:
    rgba(34, 184, 255, 0.4);

  box-shadow:
    none;
}

.btn-outline:hover,
.btn.alt:hover {
  background:
    rgba(34, 184, 255, 0.08);
}

.btn-small {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding:
    10px 14px;

  border-radius: 10px;

  color: #03101d;

  background:
    var(--accent);

  font-size: 13px;
  font-weight: 900;
}

.btn-small-outline {
  color: var(--accent);

  background:
    transparent;

  border:
    1px solid
    rgba(34, 184, 255, 0.4);
}


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

.section,
section {
  position: relative;

  padding:
    88px 0;
}

.section-dark {
  background:
    rgba(5, 13, 24, 0.34);

  border-top:
    1px solid
    rgba(148, 163, 184, 0.06);

  border-bottom:
    1px solid
    rgba(148, 163, 184, 0.06);
}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title,
.title {
  max-width: 760px;

  margin:
    0 auto 45px;

  text-align: center;
}

.section-title > span {
  display: inline-block;

  margin-bottom: 8px;

  color: var(--accent);

  font-size: 12px;
  font-weight: 900;

  letter-spacing: 0.14em;
}

.section-title h2,
.title h2 {
  margin-bottom: 10px;

  font-size:
    clamp(
      31px,
      4vw,
      43px
    );

  line-height: 1.15;

  letter-spacing: -0.035em;
}

.section-title p,
.title p {
  color: var(--muted);

  font-size: 16px;
}


/* =========================================================
   SERVICE / WHAT I BUILD
========================================================= */

.service-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 24px;
}

.service-card {
  min-width: 0;

  padding: 28px;

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

  border-radius: 22px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      transparent
    ),
    var(--surface);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card:hover {
  transform:
    translateY(-6px);

  border-color:
    rgba(34, 184, 255, 0.32);

  box-shadow:
    var(--shadow);
}

.service-icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  margin-bottom: 20px;

  border-radius: 15px;

  background:
    rgba(34, 184, 255, 0.09);

  font-size: 24px;
}

.service-card h3 {
  margin-bottom: 10px;

  font-size: 21px;

  line-height: 1.3;
}

.service-card p {
  color: var(--muted);

  font-size: 15px;
}


/* =========================================================
   TAGS
========================================================= */

.tags {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 18px;
}

.tags span,
.tag {
  display: inline-flex;

  align-items: center;

  padding:
    6px 10px;

  border:
    1px solid
    rgba(125, 220, 255, 0.12);

  border-radius: 999px;

  color: #9addff;

  background:
    rgba(34, 184, 255, 0.07);

  font-size: 12px;
  font-weight: 800;
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 26px;

  align-items: stretch;
}

.project-card {
  min-width: 0;

  overflow: hidden;

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

  border-radius: 24px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018),
      transparent
    ),
    var(--surface);

  box-shadow:
    0 12px 34px
    rgba(0, 0, 0, 0.14);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.project-card:hover {
  transform:
    translateY(-6px);

  border-color:
    rgba(34, 184, 255, 0.32);

  box-shadow:
    var(--shadow);
}

.project-image-wrapper {
  position: relative;

  overflow: hidden;

  background:
    var(--surface-2);
}

.project-image,
.cover {
  width: 100%;
  height: 300px;

  object-fit: cover;
  object-position: center;

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

  transition:
    transform 0.4s ease;
}

.project-card:hover
.project-image {
  transform:
    scale(1.035);
}

.project-content,
.pad {
  padding: 28px;
}

.project-number {
  margin-bottom: 7px;

  color: var(--accent);

  font-size: 12px;
  font-weight: 900;

  letter-spacing: 0.12em;
}

.project-content h3,
.project-card h3 {
  margin-bottom: 10px;

  font-size: 24px;

  line-height: 1.25;

  letter-spacing: -0.02em;
}

.project-content p,
.project-card p {
  color: var(--muted);

  font-size: 15px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 22px;
}


/* =========================================================
   BLOG
========================================================= */

.blog-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 22px;

  align-items: stretch;
}

.blog-card {
  min-width: 0;

  padding: 25px;

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

  border-radius: 20px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018),
      transparent
    ),
    var(--surface);

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

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.blog-card:hover {
  transform:
    translateY(-5px);

  border-color:
    rgba(34, 184, 255, 0.3);

  box-shadow:
    0 18px 50px
    rgba(0, 0, 0, 0.2);
}

.blog-category {
  margin-bottom: 10px;

  color: var(--accent);

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 0.12em;
}

.blog-card h3 {
  margin-bottom: 10px;

  font-size: 20px;

  line-height: 1.35;
}

.blog-card p {
  margin-bottom: 18px;

  color: var(--muted);

  font-size: 14px;
}

.blog-card a {
  color: var(--accent);

  font-size: 14px;
  font-weight: 900;
}


/* =========================================================
   GENERIC GRID / CARD
========================================================= */

.grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 24px;
}

.card {
  min-width: 0;

  overflow: hidden;

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

  border-radius: 22px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018),
      transparent
    ),
    var(--surface);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform:
    translateY(-5px);

  border-color:
    rgba(34, 184, 255, 0.28);

  box-shadow:
    var(--shadow);
}

.card h3 {
  margin-bottom: 10px;

  font-size: 21px;
}

.card p {
  color: var(--muted);
}


/* =========================================================
   CTA
========================================================= */

.cta {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding: 42px;

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

  border-radius: 24px;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(34, 184, 255, 0.13),
      transparent 38%
    ),
    var(--surface);
}

.cta span {
  color: var(--accent);

  font-size: 12px;
  font-weight: 900;

  letter-spacing: 0.13em;
}

.cta h2 {
  margin:
    8px 0 7px;

  font-size:
    clamp(
      28px,
      4vw,
      40px
    );
}

.cta p {
  color: var(--muted);
}


/* =========================================================
   DETAIL PAGE HERO
========================================================= */

.page-hero,
.pagehero,
.case-hero {
  padding:
    88px 0 52px;

  border-bottom:
    1px solid
    rgba(148, 163, 184, 0.08);

  background:
    radial-gradient(
      circle at 85% 0,
      rgba(34, 184, 255, 0.1),
      transparent 32%
    );
}

.page-hero .container,
.pagehero .container,
.case-hero .container {
  max-width: 1050px;
}

.back-link {
  display: inline-block;

  margin-bottom: 26px;

  color: #a9bed2;

  font-size: 14px;
  font-weight: 700;
}

.back-link:hover {
  color: var(--accent);
}

.page-kicker {
  color: var(--accent);

  font-size: 12px;
  font-weight: 900;

  letter-spacing: 0.15em;

  margin-bottom: 12px;
}

.page-hero h1,
.pagehero h1,
.case-hero h1 {
  max-width: 900px;

  margin-bottom: 18px;

  font-size:
    clamp(
      42px,
      7vw,
      72px
    );

  line-height: 1.04;

  letter-spacing: -0.05em;
}

.page-hero p,
.pagehero p,
.case-hero p {
  max-width: 800px;

  color: var(--muted);

  font-size: 18px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 28px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;

  gap:
    10px 18px;

  margin-top: 24px;

  color: #7f93aa;

  font-size: 13px;
}


/* =========================================================
   PROJECT COVER
========================================================= */

.content-section {
  padding:
    58px 0 90px;
}

.case-cover {
  overflow: hidden;

  margin-bottom: 34px;

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

  border-radius: 24px;

  background:
    var(--surface);

  box-shadow:
    0 20px 60px
    rgba(0, 0, 0, 0.18);
}

.case-cover img {
  width: 100%;

  max-height: 580px;

  object-fit: cover;
  object-position: center;
}


/* =========================================================
   CASE STUDY LAYOUT
========================================================= */

.case-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    290px;

  gap: 28px;

  align-items: start;
}

.article-container {
  max-width: 980px;
}

.article {
  min-width: 0;

  padding: 36px;

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

  border-radius: 24px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      transparent
    ),
    var(--surface);

  box-shadow:
    0 18px 55px
    rgba(0, 0, 0, 0.14);
}

.article h2 {
  margin:
    36px 0 12px;

  color: #f1f8ff;

  font-size: 28px;

  line-height: 1.25;

  letter-spacing: -0.025em;
}

.article h2:first-of-type {
  margin-top: 0;
}

.article h3 {
  margin:
    26px 0 10px;

  font-size: 20px;
}

.article p {
  margin:
    12px 0;

  color: var(--text-soft);
}

.article-intro {
  color: #dbe8f4 !important;

  font-size: 18px;

  line-height: 1.85;
}

.article ul,
.article ol {
  padding-left: 22px;

  margin:
    15px 0;
}

.article li {
  margin:
    9px 0;

  color: var(--text-soft);
}

.article li::marker {
  color: var(--accent);
}


/* =========================================================
   SIDEBAR
========================================================= */

.case-sidebar {
  position: sticky;

  top: 100px;

  display: grid;

  gap: 16px;
}

.side-card {
  padding: 22px;

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

  border-radius: 18px;

  background:
    var(--surface);
}

.side-card h3 {
  margin-bottom: 8px;

  font-size: 16px;
}

.side-card p {
  color: var(--muted);

  font-size: 14px;
}

.side-card .btn-small {
  margin-top: 16px;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 14px;

  margin-top: 18px;
}

.gallery img {
  width: 100%;

  aspect-ratio: 9 / 16;

  object-fit: cover;
  object-position: top center;

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

  border-radius: 15px;

  background:
    var(--surface-2);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.gallery img:hover {
  transform:
    translateY(-3px);

  border-color:
    rgba(34, 184, 255, 0.35);
}


/* =========================================================
   NOTE
========================================================= */

.note {
  margin:
    28px 0;

  padding:
    18px 20px;

  border:
    1px solid
    rgba(34, 184, 255, 0.18);

  border-left:
    4px solid
    var(--accent);

  border-radius: 14px;

  background:
    rgba(34, 184, 255, 0.06);

  color: #d9e7f4;
}


/* =========================================================
   RELATED CARDS
========================================================= */

.related-section {
  margin-top: 54px;
}

.related-section h2 {
  margin-bottom: 20px;

  font-size: 28px;
}

.related-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 16px;
}

.related-card {
  display: flex;

  flex-direction: column;

  gap: 7px;

  padding: 20px;

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

  border-radius: 17px;

  background:
    var(--surface);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.related-card:hover {
  transform:
    translateY(-3px);

  border-color:
    rgba(34, 184, 255, 0.3);
}

.related-card strong {
  font-size: 16px;
}

.related-card span {
  color: var(--accent);

  font-size: 13px;
  font-weight: 800;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.image-lightbox {
  position: fixed;

  inset: 0;

  z-index: 99999;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 30px;

  background:
    rgba(2, 8, 18, 0.94);

  opacity: 0;

  visibility: hidden;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.image-lightbox.lightbox-open {
  opacity: 1;

  visibility: visible;
}

.lightbox-image {
  max-width:
    min(
      100%,
      1000px
    );

  max-height: 90vh;

  object-fit: contain;

  border-radius: 16px;

  box-shadow:
    0 25px 80px
    rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;

  top: 20px;
  right: 24px;

  width: 46px;
  height: 46px;

  border:
    1px solid
    rgba(255, 255, 255, 0.15);

  border-radius: 50%;

  background:
    rgba(15, 28, 46, 0.92);

  color: #ffffff;

  font-size: 30px;

  line-height: 1;

  cursor: pointer;
}


/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal-item {
  opacity: 0;

  transform:
    translateY(24px);

  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal-item.reveal-visible {
  opacity: 1;

  transform:
    translateY(0);
}


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

footer {
  padding:
    45px 0 28px;

  background:
    #050d18;

  border-top:
    1px solid
    var(--border);
}

.footer-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding-bottom: 28px;
}

.footer-brand h3 {
  color: var(--accent);

  font-size: 22px;
}

.footer-brand p {
  color: var(--muted);

  font-size: 14px;
}

.footer-links,
.foot {
  display: flex;

  flex-wrap: wrap;

  justify-content: flex-end;

  gap:
    10px 18px;
}

.footer-links a,
.foot a {
  color: #a8b6c7;

  font-size: 14px;
}

.footer-links a:hover,
.foot a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;

  border-top:
    1px solid
    rgba(148, 163, 184, 0.1);

  color: #66788e;

  text-align: center;

  font-size: 13px;
}

footer > .container > p {
  margin-top: 10px;

  color: #66788e;

  text-align: center;

  font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

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

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

  .project-image,
  .cover {
    height: 260px;
  }

  .case-layout {
    grid-template-columns: 1fr;
  }

  .case-sidebar {
    position: static;

    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      );
  }

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

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

  .container {
    width:
      min(
        calc(100% - 28px),
        1180px
      );
  }

  .navbar,
  header nav {
    padding:
      14px 0;

    flex-direction: column;

    align-items: flex-start;

    gap: 13px;
  }

  .logo {
    font-size: 22px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .nav-links,
  .nav {
    width: 100%;

    flex-wrap: nowrap;

    justify-content: flex-start;

    overflow-x: auto;

    gap: 4px;

    padding-bottom: 2px;

    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar,
  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-links a,
  .nav a {
    flex-shrink: 0;

    padding:
      8px 10px;

    font-size: 13px;
  }

  .hero {
    min-height: auto;

    padding:
      88px 0 72px;
  }

  .hero h1 {
    font-size:
      clamp(
        45px,
        14vw,
        65px
      );
  }

  .section,
  section {
    padding:
      66px 0;
  }

  .service-grid,
  .projects-grid,
  .blog-grid,
  .grid {
    grid-template-columns: 1fr;
  }

  .project-image,
  .cover {
    height: 250px;
  }

  .cta {
    flex-direction: column;

    align-items: flex-start;

    padding:
      30px 22px;
  }

  .page-hero,
  .pagehero,
  .case-hero {
    padding:
      58px 0 38px;
  }

  .page-hero h1,
  .pagehero h1,
  .case-hero h1 {
    font-size:
      clamp(
        38px,
        12vw,
        58px
      );
  }

  .page-hero p,
  .pagehero p,
  .case-hero p {
    font-size: 16px;
  }

  .content-section {
    padding:
      38px 0 68px;
  }

  .article {
    padding:
      24px 20px;

    border-radius: 19px;
  }

  .case-sidebar {
    grid-template-columns: 1fr;
  }

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

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

  .footer-top {
    flex-direction: column;

    align-items: center;

    text-align: center;
  }

  .footer-links,
  .foot {
    justify-content: center;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

  .hero-buttons,
  .project-actions,
  .page-actions {
    flex-direction: column;
  }

  .hero-buttons .btn,
  .project-actions .btn-small,
  .page-actions .btn {
    width: 100%;
  }

  .project-image,
  .cover {
    height: 220px;
  }

  .gallery {
    grid-template-columns:
      1fr 1fr;

    gap: 9px;
  }

  .gallery img {
    border-radius: 11px;
  }

  .image-lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;

    width: 42px;
    height: 42px;
  }

}