:root {
  --bg: #fff;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(255, 255, 255, 0.72);
  --text: #252525;
  --muted: #6b6b6b;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #F3F5F4;
  --accent-hover: #C0E62C;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 24px;
  --radius-sm: 16px;
  --max-width: 1100px;
  --bullet-color: #7db5c4;
}

/* Obsidian-style bullet list wrapper */
.bullet-list {
  position: relative;
  padding-left: 0;
}

.bullet-list::before {
  content: "";
  position: absolute;
  left: 0.35em;
  top: 0.6em;
  bottom: 0.6em;
  width: 1px;
  background-color: var(--bullet-color);
  opacity: 0.4;
}

/* Obsidian-style bullet paragraph */
.bullet-item {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 1.2em;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.bullet-item::before {
  content: "◦";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--bullet-color);
  font-size: 1.1em;
  line-height: 1;
}

.bullet-item strong {
  font-weight: 700;
}

.bullet-item .highlight {
  color: var(--bullet-color);
}

* {
  
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  
  scroll-behavior: smooth;
}

body {
  font-family: "basic-sans", sans-serif;
  font-weight: 400;
  font-style: normal ;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 90px 0 64px 0;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {

  padding: 0px 0 0px 0;
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 24px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.eyebrow {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}
.eyebrow-next-case {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}


.glass {
  /* background: var(--surface); */
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.card {
  padding: 28px;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 300;
  transition: 0.2s ease;
  
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #2e2e2e;
  color: #f4f4f4;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #252525;
  
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* Header */
.site-header {
  padding: 18px 0 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  transition: transform 0.3s ease-in-out;
}

.site-header.hidden {
  transform: translateY(-100%);
}

/* Add spacing to account for fixed header */


.header-wrap {
  border-radius: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 16px;
  padding: 16px 24px 16px 24px;
  /* background-color: rgba(243, 245, 244, 0.5); */
  transition: backdrop-filter 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.header-wrap.scrolled {
  background-color: rgba(219, 219, 219, 0.184);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: #2121211a 0px 12px 30px, rgba(0, 0, 0, 0.04) 0px 2px 8px;
  /* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.459), 0 2px 8px rgba(0, 0, 0, 0.06); */ */
}

.logo {
  font-family: "source-serif-4", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  padding: 0px 0px 0 24px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: #ffffff;
  font-weight: 300;
}

.nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* Hero */
.hero {
  

  border-radius: 42px;
  display: grid;
  grid-template-columns: 1fr ;
  gap: 16px;
  align-items: stretch;
  padding: 16px 0px 16px 0;
  min-height: 360px;
  justify-content: center;
  
}

.hero-content {
  min-height: 320px;
  border-radius: 42px;
  padding: 40px;
  align-content: center;

  /* background: linear-gradient(-45deg, #77ad21, #C0E62C, #69991c, #c3ec1c); */
  background: linear-gradient(-45deg, #a5c526,#C0E62C, #87cbff, #a2fffa);
  background-size: 300% 300%;
  animation: gradient 10s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-content h1 {
  color: #fff;
  font-size: 45px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 100%;
  
  text-align: center;
  
}

.hero-text {
  margin-top: 18px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-image {
  overflow: hidden;
  min-height: 520px;
}

.hero-image img {
  height: 100%;
}

/* Marquee Bar */
.marquee-bar {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  padding: 12px 8px 8px 8px;
  overflow: hidden;
  position: relative;
}

.marquee-bar::before,
.marquee-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-text {
  font-family: "fuuld", sans-serif;
  font-weight: 600;
  line-height: normal;
  font-style: normal;
  font-size: 0.78rem;
  text-align: center;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Grids */
.about-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.projects-grid {
  display: grid;
  gap: 24px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.project-image img {
  height: 100%;
  min-height: 320px;
}

.project-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.project-content p {
  color: var(--muted);
}

/* Contact */
.contact-box {
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.contact-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.contact-box p {
  color: var(--muted);
  max-width: 60ch;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  margin-bottom: 24px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-footer p,
.footer-links a {
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 420px;
  }

  .about-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .header-wrap {
    flex-direction: column;
    align-items: center;
    padding: 16px 24px 16px 24px;
    gap: 16px;
    margin-bottom: 12px;
  }

  .logo {
    font-size: 24px;
    padding: 0;
    text-align: center;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 6px;
  }

  .nav .btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .hero-content {
    padding: 28px;
  }

  .hero-content h1 {
    max-width: 100%;
    text-align: center;
  }

  .about-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-box,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-content {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(94%, var(--max-width));
  }

  .header-wrap {
    padding: 16px 24px 16px 24px;
  }

  .card,
  .contact-box,
  .hero-content {
    padding: 22px;
   
  }

  .hero-image {
    min-height: 280px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }
}

/* Page top gradient */
.page-top-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, rgba(250, 114, 3, 0.247) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

.page-top-gradient-red {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, rgba(250, 32, 3, 0.247) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

.page-top-gradient-green {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, #04be0e6c 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

/* PROJECT PAGES */
.project-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  margin-bottom: 24px;
}

.project-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}

.project-hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}

.project-intro {
  color: var(--muted);
  max-width: 55ch;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.project-section {
  margin-bottom: 24px;
}

.project-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-gallery-tall {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  overflow: hidden;
  padding: 10px;
  border-radius: var(--radius);
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 10px);
}

.next-project {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-force-show {
  display: flex;
}

/* Responsive project pages */
@media (max-width: 1024px) {
  .project-hero {
    grid-template-columns: 1fr;
  }

  .project-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-gallery-tall {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .project-text-grid,
  .project-gallery,
  .project-gallery-tall,
  .project-meta-grid {
    grid-template-columns: 1fr;
  }

  .next-project {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-hero {
    padding: 18px;
  }

  .project-hero-image img {
    min-height: 260px;
  }

  .nav-force-show {
    display: none;
  }
}

/* PROJECT SHOWCASE CARD */
.project-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-showcase-card {
  position: relative;
  min-width: 0;
}

.project-showcase-link {
  display: block;
}

.project-showcase-shell {
  position: relative;
  background: #efefed;
  border-radius: 34px;
  padding: 14px 14px 56px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.project-showcase-frame {
  border-radius: 26px;
  overflow: hidden;
  background: #1f1f1f;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.5s ease,
    filter 0.35s ease;
}

.project-showcase-pill {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  max-width: calc(100% - 28px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  color: #222;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.project-showcase-pill-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  display: grid;
  place-items: center;
}

.project-showcase-pill-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-showcase-pill span:not(.project-showcase-arrow) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-showcase-arrow {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
  transition: transform 2000ms ease, opacity 700ms ease;
}

/* Hover */
.project-showcase-link:hover .project-showcase-shell {
  transform: translateY(-8px);
  background: #f3f0ed;
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.08),
    0 0 0 10px rgba(255, 191, 179, 0.9);
}

.project-showcase-link:hover .project-showcase-frame img {
  transform: scale(1.03);
  filter: saturate(1.03);
}

.project-showcase-link:hover .project-showcase-pill {
  transform: translateX(-50%) translateY(2px);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.05);
}

.project-showcase-link:hover .project-showcase-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.project-showcase-link:active .project-showcase-shell {
  transform: translateY(-3px) scale(0.995);
}

/* Large tablet */
@media (max-width: 1100px) {
  .project-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet / smaller desktop: FIRST MODEL VERSION IVE TRIED ON GPT
   switch from 4:3 to 4:4 so the cards can breathe better */
@media (max-width: 820px) {
  .project-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .project-showcase-shell {
    border-radius: 28px;
    padding: 12px 12px 54px;
  }

  .project-showcase-frame {
    border-radius: 22px;
    aspect-ratio: 4 / 4;
  }

  .project-showcase-pill {
    font-size: 0.9rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .project-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-showcase-shell {
    border-radius: 24px;
    padding: 10px 10px 52px;
  }

  .project-showcase-frame {
    border-radius: 18px;
    aspect-ratio: 4 / 4;
  }

  .project-showcase-pill {
    min-height: 44px;
    padding: 9px 14px;
    font-size: 0.88rem;
    gap: 8px;
    max-width: calc(100% - 20px);
  }

  .project-showcase-pill-icon {
    width: 24px;
    height: 24px;
  }
}

/* FEATURED PROJECTS */
.featured-projects {
  display: flex;
  gap: 16px;
  padding-top: 16px;
}

.featured-project {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #F3F5F4;
  border-radius: 42px;
  padding: 12px;
  height: 320px;
  transition:
    transform 1000ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.featured-project:hover {
  transform: rotate(1.5deg);
}

.featured-project::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradiente-1, linear-gradient(180deg, #C0E62C 0%, #F3F5F4 100%));
  opacity: 0;
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.featured-project:hover::before {
  opacity: 1;
}

.featured-project-media {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 30px;
  background: transparent;
}

.featured-project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms ease;
}

.featured-project:hover .featured-project-media img {
  transform: scale(1.05);
}

.featured-project-info {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  flex-shrink: 0;
}

.featured-project-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 10px 0px;
  transition:
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 600ms ease,
    padding-right 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-project:hover .featured-project-pill {
  transform: translateY(-1px);
  padding-right: 12px;
  box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 10px 0px;
  overflow: hidden;
}

.featured-project-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}

.featured-project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-project-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 300;
  color: #212121;
}

.featured-project-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 1rem;
  color: #1b1b1b;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    width 450ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.featured-project:hover .featured-project-arrow {
  width: 16px;
  opacity: 1;
  transform: translateX(0);
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
  
  body {
    padding-top: 128px;
  }

  .header-wrap {
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 12px 12px 12px;
  
}

  .logo {
  font-family: "source-serif-4", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 22x;
  padding: 0px 0px 0 0px;
  letter-spacing: -0.03em;
}

  .hero-content {
    padding: 32px;
  }
  .hero-content h1 {
  color: #fff;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 100%;
  
  text-align: center;
  
}

  .featured-projects {
    flex-direction: column;
  }

  .featured-project {
    border-radius: 42px;
    padding: 10px;
  }

  .featured-project-media {
    flex: none;
    height: 320px;
    border-radius: 30px;
  }

  .featured-project-pill {
    max-width: 100%;
    justify-content: center;
    padding: 10px 14px;
    overflow: hidden;
  }

  .featured-project-title {
    font-size: 0.9rem;
  }
}

/* ========================================
   CASE STUDY PAGE
   ======================================== */

.case-hero {
  text-align: center;
  padding: 40px 0 40px;
  max-width: 720px;
  margin: 0 auto;
}

.case-hero-title {
  font-family: "source-serif-4", serif;
  font-style: italic;
  font-size: clamp(64px, 5vw, 74px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.case-hero-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 55ch;
  margin: 0 auto;
  line-height: 1.2;
}

/* Cover */
.case-cover {
  margin-bottom: 24px;
  margin-top: 24px;

}

.case-cover img,
.case-cover video {
  width: 100%;
  
  border-radius: var(--radius);
  object-fit: cover;
}

/* Meta row */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.case-meta-item {
  text-align: center;
}

.case-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.case-meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Content sections */
.case-section {
  /* padding: 64px; */
  margin-bottom: 56px;
  margin-top: 56px;
}

.case-section-header {
  margin-bottom: 24px;
}

.case-section-header h2 {
  font-family: "source-serif-4", serif;
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0.0em;
  font-weight: 400;
  text-align: center;
}

.case-body {
  max-width: 680px;
  margin: 0 auto;
}

.case-body p {
  font-family: "basic-sans";
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* Problem / Takeaway cards */
.case-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.case-cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.case-card {
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 28px;
}

.case-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.case-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Highlight / Challenge */
.case-highlight {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 56px;
  text-align: center;
}

.case-highlight-yellow {
  border: 2px solid #f3e2b8;
  background: #fffbeb;
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 56px;
  text-align: center;
}

.case-highlight h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 640px;
  margin: 0 auto;
}

/* Design principles */
.case-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.case-principle {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px;
}

.case-principle h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.case-principle p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Gallery */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.case-gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--accent);
}

.case-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Next project */
.case-next {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.case-next h2 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

/* CASE STUDY RESPONSIVE */
@media (max-width: 768px) {
  

  .case-hero {
    padding: 40px 0 28px ;
  }

  .case-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .case-cards,
  .case-cards-3 {
    grid-template-columns: 1fr;
  }

  .case-principles {
    grid-template-columns: 1fr;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-highlight {
    padding: 32px 24px;
  }

  .case-next {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-body {
    max-width: 100%;
  }
}

/* ========================================
   INSIGHT ITEM
   ======================================== */

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
}

.insight-item-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0px;
}

.insight-item-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.insight-item-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.5;
}

/* Red variant */
.insight-item--red {
  background: #fff0f0;
}
.insight-item--red .insight-item-icon svg {
  fill: #c0393b;
  color: #c0393b;
}
.insight-item--red .insight-item-text {
  color: #8c2020;
}

/* Yellow variant */
.insight-item--yellow {
  background: #fffbeb;
}
.insight-item--yellow .insight-item-icon svg {
  fill: #b08000;
  color: #b08000;
}
.insight-item--yellow .insight-item-text {
  color: #7a5c00;
}

/* Surface variant */
.insight-item--surface {
  background: var(--accent);
}
.insight-item--surface .insight-item-icon svg {
  fill: var(--muted);
  color: var(--muted);
}
.insight-item--surface .insight-item-text {
  color: var(--text);
}

/* ========================================
   404 PAGE
   ======================================== */

.not-found-section {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.not-found-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.not-found-code {
  font-family: "source-serif-4", serif;
  font-style: italic;
  font-size: clamp(100px, 20vw, 180px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
  opacity: 0.12;
  margin-bottom: -20px;
}

.not-found-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.not-found-message {
  color: var(--muted);
  font-size: 1rem;
  max-width: 40ch;
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-page-section {
  padding: 48px 0 80px;
  max-width: 640px;
}

.contact-page-header {
  margin-bottom: 36px;
  text-align: center;
}

.contact-page-title {
  font-family: "source-serif-4", serif;
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.contact-page-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 44ch;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.form-input {
  font-family: "basic-sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-input:focus {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 3px rgba(192, 230, 44, 0.2);
}

.form-input::placeholder {
  color: rgba(107, 107, 107, 0.5);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  align-self: flex-start;
  cursor: pointer;
  border: none;
  font-family: "basic-sans", sans-serif;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .contact-page-section {
    padding: 32px 0 60px;
  }

  .contact-form {
    padding: 24px;
  }

  .form-submit {
    width: 100%;
  }
}

