:root {
  --bg: #ffffff;
  --bg-shade:#fefefe;
  --foreground: #111111;
  --accent: #f5f5f5;
  --hints: #666666;
  --red: #e63946;
  --calm-text-color: rgba(50,50,50,0.8);
  --f-serif: 'GaramondRegular', serif;
  --f-serif-italic: 'GaramondItalic', serif;
  --f-sans: 'InterRegular', sans-serif;
  --f-sans-italic: 'InterItalic', sans-serif;
  --header-height: 80px;
  --transition: 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  /* Ultra Smooth 'Quint Out' Easing */
  --speed: 1.5; }

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

html {
  overflow-x: hidden; }

body {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--foreground);
  font-family: var(--f-sans);
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased; }

div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline; }

div::-webkit-scrollbar {
  display: none !important; }

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #0a0a0a;
  z-index: 5000;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden !important; }

body:has(#preloader) {
  overflow: hidden !important; }

.preloader.loaded {
  transform: translateY(-100%); }

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

.preloader-logo {
  width: 80px;
  height: 80px; }

#preloader-n-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: nReveal 3s infinite alternate ease-in-out; }

@keyframes nReveal {
  0% {
    stroke-dashoffset: 200; }
  100% {
    stroke-dashoffset: 0; } }
.preloader-text {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6); }

.preloader-text span {
  color: white; }

.preloader-bar-container {
  width: 150px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden; }

.preloader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 0.1s linear; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 20px;
  background: transparent; }

::-webkit-scrollbar-track {
  background: transparent; }

::-webkit-scrollbar-thumb {
  background: #050505;
  border: 4px solid var(--bg);
  border-radius: 10px; }

::-webkit-scrollbar-thumb:hover {
  background: var(--red);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

/* Scroll Reveal States */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, opacity; }

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

.section-title.reveal-item {
  transform: translateY(60px); }

.service-card.reveal-item {
  transform: scale(0.95) translateY(20px); }

.service-card.reveal-item.is-active {
  transform: scale(1) translateY(0); }

.contact-wrapper.reveal-item {
  transform: translateY(100px); }

a {
  color: var(--red);
  text-decoration: none;
  transition: opacity 0.3s ease; }

a:hover {
  opacity: 0.7; }

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4vw;
  z-index: 1000;
  mix-blend-mode: difference;
  color: white; }

.left-logo {
  font-family: var(--f-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  cursor: pointer;
  color: var(--red !important); }

.logo {
  font-family: var(--f-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  cursor: pointer;
  color: var(--red !important); }

.logo-container {
  display: block;
  position: relative;
  width: 10vw;
  height: auto;
  max-height: 100px; }

.logo-container img {
  width: 100%; }

.hamburger {
  width: 24px;
  height: 14px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between; }

.hamburger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: white;
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1); }

.hamburger:hover span:nth-child(1) {
  transform: translateY(-2px); }

.hamburger:hover span:nth-child(3) {
  transform: translateY(2px); }

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg); }

.hamburger.active span:nth-child(2) {
  opacity: 0; }

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg); }

.logo:hover {
  color: var(--red) !important;
  letter-spacing: 0.3em;
  transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1); }

/* Fullscreen Menu */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: transparent;
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  z-index: 900;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  padding: 4vw;
  overflow: hidden !important; }

body:has(#fullscreen-menu) {
  overflow: hidden !important; }

.fullscreen-menu.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto; }

.overlay-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: -1; }

.overlay-path {
  pointer-events: none;
  fill: var(--bg); }

.menu-header {
  display: flex;
  justify-content: center;
  margin-top: 14vh;
  margin-bottom: 6vh;
  opacity: 0;
  transition: opacity 0.4s ease; }

.fullscreen-menu.active .menu-header {
  opacity: 1;
  transition-delay: 0.5s; }

.menu-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; }

.menu-link {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  /* Reduced size */
  line-height: 1.2;
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  transform: translateY(30px);
  display: inline-block;
  text-decoration: none;
  color: inherit;
  will-change: transform, opacity; }

.fullscreen-menu.active .menu-link {
  opacity: 1;
  transform: translateY(0); }

.menu-link:hover {
  letter-spacing: 0.25em;
  color: var(--red);
  transform: translateX(25px); }

.menu-footer {
  position: absolute;
  bottom: 4vw;
  left: 4vw;
  right: 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5; }

/* Page Structure */
.main-container {
  width: 100%; }

.page-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  position: relative; }

#hero {
  position: sticky;
  top: 0;
  z-index: 1; }

#about {
  z-index: 10;
  position: relative;
  background: var(--bg); }

#services {
  z-index: 10;
  position: relative;
  background: var(--bg-shade); }

#portfolio {
  z-index: 10;
  position: relative;
  background: var(--bg);
  padding-bottom: 14vh; }

#contact {
  z-index: 10;
  position: relative;
  background: var(--bg);
  padding-bottom: 5vh; }

.page-section:nth-child(even) {
  background-color: var(--accent); }

/* Flip Card Effect */
.flip-card {
  width: 100%;
  height: 100%;
  perspective: 1500px; }

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14vh 8vw 6vh;
  /* Increased padding for better breathing room */ }

/* Section Content */
.section-content {
  max-width: 1200px;
  width: 100%;
  text-align: left;
  z-index: 10; }

.section-label {
  font-family: var(--f-sans);
  color: var(--red);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 2.5rem;
  /* Increased margin */
  display: block;
  opacity: 0.8; }

.section-label2 {
  font-family: var(--f-sans);
  color: white;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 3rem;
  /* Increased margin */
  display: block;
  opacity: 0.5; }

.section-title {
  font-family: var(--f-serif);
  font-size: clamp(2.1rem, 8vw, 10rem);
  line-height: 0.85;
  margin-bottom: 5rem;
  margin-top: 0;
  letter-spacing: -0.02em; }

/* The starting state when outside the viewport */
.reveal-element {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 3s cubic-bezier(0.45, 1, 0.95, 1), transform 3s cubic-bezier(0.45, 1, 0.98, 1);
  will-change: opacity, transform; }

/* The active state when inside the viewport */
.reveal-element.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1); }

.reveal-element2 {
  opacity: 0;
  transform: translateY(40px) scale(0.85);
  transition: opacity 2s cubic-bezier(0.45, 1, 0.75, 1), transform 2s cubic-bezier(0.45, 1, 0.75, 1);
  will-change: opacity, transform; }

.reveal-element2.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1); }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px) scale(0.85);
  will-change: opacity, transform; }

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1); }

#contact .section-title {
  font-size: clamp(3rem, 8vw, 10rem); }

.section-copy {
  max-width: 500px;
  font-size: clamp(0.9rem, 1vw, 1.25rem);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 3rem;
  opacity: 0.8; }

.section-hint {
  font-size: clamp(1rem, 1vw, 1.2rem);
  font-family: var(--f-sans-italic);
  color: var(--hints); }

/* Narrative Link Style */
.narrative-link {
  color: var(--red);
  font-family: var(--f-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 4px;
  transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1); }

.narrative-link:hover {
  letter-spacing: 0.4em;
  color: var(--foreground);
  border-bottom-color: var(--foreground); }

/* Overlay System */
.text-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: transparent;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  padding: 10vh 4vw;
  overflow: hidden !important; }

body:has(#narrative-overlay) {
  overflow: hidden !important; }

.text-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch; }

.text-overlay::-webkit-scrollbar {
  width: 8px; }

.text-overlay::-webkit-scrollbar-track {
  background: transparent; }

.text-overlay::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px; }

.text-overlay.active::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3); }

.text-overlay .overlay-content {
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translateY(20px);
  position: relative;
  z-index: 10;
  padding-bottom: 10vh; }

.text-overlay.active .overlay-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s; }

.identity-text-container {
  max-height: 40vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 20px;
  padding-bottom: 30px;
  scrollbar-width: thin;
  scrollbar-color: #050505 transparent;
  font-family: var(--f-sans); }

.identity-text-container::-webkit-scrollbar {
  width: 20px;
  background: transparent; }

.identity-text-container::-webkit-scrollbar-track {
  background: transparent; }

.identity-text-container::-webkit-scrollbar-thumb {
  background: #050505;
  border: 6px solid var(--bg);
  border-radius: 10px; }

.identity-text-container::-webkit-scrollbar-thumb:hover {
  background: var(--red); }

.close-overlay {
  position: fixed;
  top: 4vw;
  right: 4vw;
  font-family: var(--f-sans);
  text-transform: uppercase;
  font-size: 0.7rem;
  cursor: pointer;
  z-index: 2001;
  color: var(--red); }

.overlay-content {
  max-width: 800px;
  margin: 0 auto; }

.overlay-content p {
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  font-family: var(--f-sans);
  color: var(--calm-text-color);
  margin-bottom: 0.8rem;
  line-height: 1.5; }

/* Hero Specific */
#hero {
  background: none;
  color: white;
  position: relative;
  z-index: 1; }

.hero-video-fixed-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  overflow: hidden; }

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover; }

.hero-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.4);
  z-index: 1; }

.hero-title {
  text-align: center; }

/* Grid Layout for About/Services */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: center; }

.split-visual {
  width: 100%;
  aspect-ratio: 1.2;
  background: #eee;
  border-radius: 20px;
  overflow: hidden; }

.split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover; }

/* Services List Expanded to 4 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  /* Increased gap */
  margin-top: 6rem;
  /* Increased top margin */ }

.service-card {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1.5rem;
  transition: 0.4s; }

.service-card:hover {
  border-top-color: var(--red); }

.service-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 2rem;
  color: var(--red);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

.service-card h3 {
  font-family: var(--f-serif);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1.1; }

.service-card p {
  font-size: 0.8rem;
  opacity: 0.6; }

/* Portfolio Tab System */
.portfolio-tab-container {
  width: 100%;
  max-width: 1200px;
  z-index: 10;
  max-height: 100vh;
  display: flex;
  flex-direction: column; }

.portfolio-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  /* Increased margin */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 1rem; }

.portfolio-tab-btn {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  padding: 0.5rem 0; }

.portfolio-tab-btn:hover {
  opacity: 0.8;
  letter-spacing: 0.3em; }

.portfolio-tab-btn.active {
  opacity: 1;
  color: var(--red); }

.portfolio-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1.2rem;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--red); }

.portfolio-tab-content {
  display: none;
  flex: 1;
  width: 100%;
  border-radius: 20px;
  background: #fff; }

.portfolio-tab-content.active {
  display: block;
  animation: revealFade 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes revealFade {
  from {
    opacity: 0;
    transform: translateY(30px); }
  to {
    opacity: 1;
    transform: translateY(0); } }
.portfolio-item {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 0 0; }

.portfolio-item p {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 0.8rem; }

.control-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(100, 100, 100, 0.2);
  background: rgba(100, 100, 100, 0.2);
  color: var(--foreground);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1); }

.control-btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.1); }

.project-logo {
  font-family: var(--f-serif);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 1rem;
  display: block;
  color: var(--red); }

/* Contact Form (Refined) */
.contact-wrapper {
  background: white;
  padding: 5vw;
  border-radius: 40px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  width: 100%; }

.contact-form {
  margin-top: 3rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem; }

.form-group {
  display: flex;
  flex-direction: column; }

.form-group label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  opacity: 0.4;
  font-weight: 500; }

.form-group input, .form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.08);
  padding: 0.8rem 0;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.4s; }

.form-group input:focus, .form-group textarea:focus {
  border-bottom-color: var(--red); }

.submit-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1.5rem;
  background: black;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  cursor: pointer;
  transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center; }

.submit-btn:hover {
  background: var(--red);
  transform: scale(0.98) translateY(-2px);
  box-shadow: 0 10px 20px rgba(230, 57, 70, 0.2); }

/* Clients Marquee Section */
.clients-marquee {
  width: 100vw;
  margin-left: calc(-8vw);
  padding: 4rem 0;
  overflow: hidden;
  position: relative;
  background: transparent; }

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
  will-change: transform; }

.marquee-content:hover {
  animation-play-state: paused; }

.client-logo {
  padding: 0 4rem;
  font-family: var(--f-serif);
  font-size: 3rem;
  font-weight: 500;
  opacity: 0.8;
  transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
  cursor: default; }

.client-logo:hover {
  opacity: 1;
  color: var(--red); }

@keyframes marquee {
  0% {
    transform: translateX(0); }
  100% {
    transform: translateX(-50%); } }
/* Partners Section Styles */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem; }

.partner-card {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 5rem 2rem 3rem;
  text-align: center;
  border-radius: 20px;
  transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1); }

.partner-card:hover {
  border-color: var(--red);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03); }

.partner-logo {
  font-family: var(--f-serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  color: var(--foreground); }

.partner-card p {
  font-family: var(--f-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5; }

#clients, #partners {
  z-index: 10;
  position: relative;
  background: var(--bg); }

#clients .flip-card-inner, #partners .flip-card-inner {
  padding-bottom: 10vh; }

/* Footer 
 .site-footer {
    background: black;
    color: white;
    padding: 8vw 4vw 4vw;
    position: relative;
    z-index: 200;
 }
 */
.site-footer {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8vw 4vw 4vw;
  position: relative;
  z-index: 200; }

.section-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  /* Lowest layer */ }

.site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1; }

.footer-title {
  font-family: var(--f-serif);
  font-size: clamp(4rem, 15vw, 12rem);
  color: var(--red);
  line-height: 0.8; }

.footer-links {
  list-style: none;
  text-align: right; }

.footer-links li {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: white;
  cursor: pointer;
  transition: 0.3s; }

.footer-links li:hover {
  color: var(--red); }

.footer-bottom span {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 3rem;
  /* Increased margin */
  display: inline-block;
  opacity: 0.5; }

.footer-main p {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  opacity: 0.6;
  max-width: 200px; }

/* Responsive */
@media (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); }

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

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 2rem; }

  .portfolio-tab-container {
    height: auto;
    min-height: 100vh; }

  .portfolio-tab-content {
    height: 60vh; } }
@media (max-width: 600px) {
  html {
    overflow-x: hidden; }

  .flip-card {
    padding-top: 5vh; }

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

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

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

  .footer-links {
    text-align: left;
    margin-top: 3rem; }

  #portfolio {
    padding-bottom: 14vh; } }
/* gallery slides css */
.rslides_container {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  float: left;
  width: 100%;
  box-shadow: 40px 40px 100px rgba(0, 0, 0, 0.09);
  border-radius: 40px; }

.centered-btns_nav {
  z-index: 9;
  position: absolute;
  top: 0;
  bottom: 0;
  left: -36px;
  -webkit-tap-highlight-color: rgba(187, 153, 123, 0.8);
  opacity: 0.6;
  text-indent: -9999px;
  overflow: hidden;
  margin-left: 0;
  margin-right: 0;
  background: transparent url("../images/btns_nav_bl.gif") no-repeat left 50%;
  width: 36px; }

.centered-btns_nav:active {
  opacity: 1.0; }

.centered-btns_nav.next {
  left: auto;
  background-position: right 50%;
  right: -36px; }

.centered-btns_nav:focus, .transparent-btns_nav:focus, .centered-btns_nav:focus {
  outline: none; }

.rslides {
  float: left;
  list-style: none;
  overflow: hidden;
  width: 100%;
  margin: 0 !important;
  margin: 0 auto 20px;
  padding: 0; }

.rslides li {
  position: absolute;
  display: none;
  width: 100%;
  left: 0;
  top: 0; }

.rslides li:first-child {
  position: relative;
  display: block;
  float: left; }

.rslides img {
  display: block;
  height: auto;
  float: left;
  width: 100%;
  border: 0; }

#portGallery-pager a {
  display: inline-block; }

#portGallery-pager img {
  float: left; }

#portGallery-pager .rslides_here a {
  background: transparent;
  box-shadow: 0 0 0 2px #666; }

#portGallery-pager a {
  padding: 0; }

.portfolio-items-holder {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box; }

.port-left-block {
  width: 30%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ccc;
  box-sizing: border-box; }

/* Right Column (Parent 1) */
.port-right-block {
  width: 70%;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; }

.port-top-row {
  flex: 1;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #eee; }

.port-bottom-row {
  flex: 1;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch; }

.port-bottom-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: left;
  width: 100%;
  padding: 10px 30px 20px; }

.port-bottom-row .port-bottom-content h3 {
  font-family: 'GaramondRegular', serif;
  display: block;
  margin: 0 0 8px 0;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  font-size: 1.5rem;
  line-height: 1.3rem; }

.port-bottom-row .port-bottom-content p,
.port-bottom-row .port-bottom-content div {
  font-family: 'InterRegular', serif;
  display: block;
  margin: 0 0 8px 0;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.8rem;
  line-height: 1.0rem; }

.port-bottom-row .port-bottom-content span {
  font-family: 'InterRegular', serif;
  display: block;
  margin: 0 0 8px 0;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.8rem;
  line-height: 1.0rem;
  color: var(--red); }

.port-bottom-content *:last-child {
  margin-bottom: 0; }

.port-top-row img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  display: block; }

.port-top-row hr {
  color: #ccc;
  width: 70%;
  margin: 0 auto;
  display: block; }

.port-right-block img {
  max-width: 92%;
  object-fit: contain;
  display: block; }

.port-bottom-content img {
  display: block;
  max-width: 40%;
  max-height: 40%;
  object-fit: contain;
  margin-bottom: 8px; }

.port-right-caption {
  position: absolute;
  left: 2px;
  bottom: 10px;
  width: 80%;
  min-height: 30vh;
  color: #333333;
  padding: 12px;
  text-align: left;
  font-family: 'InterRegular', serif;
  font-size: 0.8rem;
  font-weight: 300;
  pointer-events: none;
  background: rgba(250, 250, 250, 0.9); }

.port-right-caption ul {
  list-style: disc;
  text-indent: 0.6rem; }

.port-right-caption li {
  padding: 0.6rem; }

.video-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto; }

.video-container video {
  width: 100%;
  height: auto;
  min-height: 380px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  padding: 10px;
  overflow: hidden;
  border-radius: 18px; }

.video-container iframe {
  width: 100%;
  height: auto;
  min-height: 380px;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: contain; }

/* Responsive */
@media (max-width: 768px) {
  .portfolio-items-holder {
    flex-direction: column; }

  .port-left-block {
    width: 100%;
    flex-direction: column;
    border-right: none; }

  .port-right-block {
    width: 100%;
    margin-top: 10px; }

  .port-right-block img {
    width: 90%; }

  .port-top-row {
    flex: 1;
    width: 100%;
    max-height: 150px;
    border-right: 0 solid #ccc; }

  .port-bottom-row {
    flex: 1;
    max-height: 200px; }

  .port-top-row, .port-bottom-row {
    padding: 14px;
    margin-top: 20px; }

  .port-top-row img {
    width: 100%;
    display: block; }

  .port-bottom-content img {
    max-width: 60%; }

  .port-bottom-content {
    padding: 10px 10px 20px; }

  .port-right-caption {
    padding: 12px;
    font-family: var --f-sans;
    font-size: clamp(0.8rem, 0.8vw, 0.8rem);
    line-height: 1.0rem; }

  /*fullscreen overlay*/
  .open-overlay-btn {
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 5px; }

  .open-overlay-btn-alt {
    background: #28a745; }

  .fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000; }

  .fullscreen-overlay.is-active {
    pointer-events: auto; }

  .fullscreen-overlay-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; }

  .fullscreen-overlay-path {
    fill: #111111; }

  /* --- second overlay option --- */
  .fullscreen-overlay-black .fullscreen-overlay-path {
    fill: #ffffff; }

  .fullscreen-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 2; }

  .fullscreen-overlay-content h1,
  .fullscreen-overlay-content p,
  .fullscreen-overlay-content .rslides_container,
  .fullscreen-overlay-content .close-overlay-btn {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0, 0.9, 0.1, 1), transform 0.8s cubic-bezier(0, 0.9, 0.1, 1); }

  .fullscreen-overlay.is-active .fullscreen-overlay-content h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s; }

  .fullscreen-overlay.is-active .fullscreen-overlay-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s; }

  .fullscreen-overlay.is-active .fullscreen-overlay-content .rslides_container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.55s; }

  .fullscreen-overlay.is-active .fullscreen-overlay-content .close-overlay-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.65s; }

  .fullscreen-overlay:not(.is-active) .fullscreen-overlay-content h1,
  .fullscreen-overlay:not(.is-active) .fullscreen-overlay-content p,
  .fullscreen-overlay:not(.is-active) .fullscreen-overlay-content .rslides_container,
  .fullscreen-overlay:not(.is-active) .fullscreen-overlay-content .close-overlay-btn {
    opacity: 0;
    transform: translateY(20px);
    transition-duration: 0.25s;
    transition-delay: 0s; }

  .close-overlay-btn {
    position: fixed;
    top: 4vw;
    right: 4vw;
    font-family: var(--f-sans);
    text-transform: uppercase;
    font-size: 0.7rem;
    cursor: pointer;
    z-index: 2001;
    color: var(--red);
    outline: none !important;
    background-color: transparent !important;
    border: none;
    appearance: none; } }
