/* =======================================
   TIM Agency — Award-Winning Editorial Redesign
   Inspired by Studio Size aesthetic
   No glass effects. Bold typography. Pure black & white.
   ======================================= */

/* =======================================
   DESIGN TOKENS
   ======================================= */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-400: #999999;
  --gray-500: #888888;
  --gray-200: #e5e5e5;
  --gray-300: #cccccc;
  --gray-600: #555555;
  --gray-800: #222222;
  --gray-700: #333333;
  --gray-900: #111111;
  --accent: #ffffff;
  --accent-dim: rgba(255, 255, 255, 0.1);

  --font-main: "Inter Tight", "Outfit", sans-serif;
  --font-display: "Inter Tight", "Outfit", sans-serif;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.4s var(--ease-smooth);
  --transition-slow: 0.8s var(--ease-smooth);

  --container: 1400px;
  --gap: 5%;
}

/* =======================================
   RESET & BASE
   ======================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.mobile-break {
  display: none;
}

body {
  font-family: var(--font-main);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* transition izbrisan za instant/oštru promjenu tama-svjetlo */
}

/* =======================================
   LIGHT THEME (SCROLL INVERSION)
   ======================================= */
body.theme-light {
  background-color: var(--white);
  color: var(--black);
}

body.theme-light .navbar.scrolled,
body.theme-light .navbar.scrolled-always {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--gray-100);
}

body.theme-light .nav-logo {
  color: var(--black) !important;
}

body.theme-light .nav-link {
  color: var(--black) !important;
}

body.theme-light .nav-link:hover,
body.theme-light .nav-link.active {
  color: var(--black) !important;
}

body.theme-light .nav-link::after {
  background-color: var(--black) !important;
}

body.theme-light .navbar .btn-pill {
  color: var(--black) !important;
  border-color: var(--black) !important;
  background: transparent;
}

body.theme-light .navbar .btn-pill:hover {
  background: var(--black) !important;
  color: var(--white) !important;
}

body.theme-light .mobile-menu-btn {
  color: var(--black) !important;
}

body.theme-light .btn-arrow {
  color: var(--black);
}

body.theme-light .manifesto-text p {
  color: var(--black);
}

body.theme-light .section-header p {
  color: var(--black);
}

body.theme-light .section-divider,
body.theme-light .services-accordion,
body.theme-light .service-strip,
body.theme-light footer {
  border-color: var(--gray-100);
}

body.theme-light .service-strip {
  color: var(--black);
}

body.theme-light .service-strip:hover {
  background: var(--gray-100);
}

body.theme-light .strip-title {
  color: var(--black);
}

body.theme-light footer {
  color: var(--gray-700);
}

body.theme-light .btn-pill {
  border-color: var(--gray-700);
  color: var(--black);
}

body.theme-light .btn-pill:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

::selection {
  background-color: var(--accent);
  color: var(--black);
}

/* =======================================
   UTILITY
   ======================================= */
.highlight {
  color: var(--accent);
}

.text-muted {
  color: var(--gray-500);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* =======================================
   BUTTONS
   ======================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  background: none;
  color: var(--white);
}

.btn-pill {
  padding: 12px 28px;
  border-radius: 100px;
  border: 1px solid var(--gray-700);
  background: transparent;
  color: var(--white);
  font-size: 0.9rem;
}

.btn-pill:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-pill-filled {
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  border: 1px solid var(--white);
}

.btn-pill-filled:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-arrow {
  font-size: 1rem;
  font-weight: 500;
  gap: 12px;
}

.btn-arrow .icon-arrow {
  display: inline-block;
  transition: transform var(--transition-normal);
}

.btn-arrow:hover .icon-arrow {
  transform: translateX(6px);
}

.btn-arrow:hover {
  color: var(--accent);
}

/* =======================================
   NAVBAR
   ======================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  padding: 32px 0;
  /* PoveÄ‡an padding */
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  padding: 20px 0;
  /* PoveÄ‡an scrolled padding */
}

.navbar.scrolled-always {
  background: rgba(0, 0, 0, 0.95);
  padding: 20px 0;
}

.navbar.scrolled-always .nav-logo,
.navbar.scrolled-always .nav-link,
.navbar.scrolled-always .mobile-menu-btn {
  color: var(--white);
}

.navbar.scrolled-always .nav-link::after {
  background: var(--white);
}

.navbar.scrolled-always .btn-pill {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  /* Brighter white border for dark theme */
}

.navbar.scrolled-always .btn-pill:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.nav-container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.6rem;
  /* VeÄ‡i logo font */
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav-logo sup {
  font-size: 0.5em;
  vertical-align: super;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 1.1rem;
  /* VeÄ‡i font linkova */
  color: var(--gray-400);
  position: relative;
  transition: color var(--transition-fast);
  padding-bottom: 4px;
}

/* Interaktivni efekt linije ispod teksta */
.nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-only-link {
  display: none;
}

/* ANIMATED HAMBURGER MENU */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 22px;
  z-index: 1000;
  position: relative;
}

.mobile-menu-btn .line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition:
    transform 0.4s var(--ease-out),
    opacity 0.3s ease-out;
  border-radius: 2px;
  transform-origin: center;
}

body.theme-light .mobile-menu-btn .line {
  background-color: var(--black) !important;
}

.mobile-menu-btn.active .line1 {
  transform: translateY(10px) rotate(45deg);
}

.mobile-menu-btn.active .line2 {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu-btn.active .line3 {
  transform: translateY(-10px) rotate(-45deg);
}

/* =======================================
   HERO — MASSIVE TYPOGRAPHY
   ======================================= */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 var(--gap);
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.subpage-hero {
  min-height: 100svh;
  /* Osigurava da je ekran pun prije skrolanja */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--black);
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  padding: 40px 0;
  /* Dodano prostora da kvaÄice ne budu odrezane */
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: scrollMarquee 15s linear infinite;
}

.marquee-text {
  font-size: clamp(5rem, 16vw, 15rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  display: flex;
  gap: 60px;
  padding-right: 60px;
  color: var(--white);
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.4);
}

.outline-text:hover {
  -webkit-text-stroke: 2px var(--white);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(-15%);
  }

  100% {
    transform: translateX(-65%);
  }
}

.subpage-hero-subtitle {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 300;
  color: var(--gray-300);
  max-width: 650px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0;
  padding: 0;
}

body.theme-light .subpage-hero-subtitle {
  color: var(--black) !important;
}

.hero-title {
  font-size: clamp(4.5rem, 12vw, 10.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 40px;
}

/* Interactive 'i' dot */
.i-wrapper {
  position: relative;
  display: inline-block;
  line-height: inherit;
}

.i-dot {
  position: absolute;
  display: block;
  width: 0.15em;
  height: 0.15em;
  background: currentColor;
  border-radius: 50%;
  top: 0.14em;
  /* U ravnini s centrom miÅ¡a na slici */
  left: 65%;
  /* Pomaknuto udesno, toÄno na poziciju miÅ¡a sa slike */
  animation: i-dot-light-bounce 3.5s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  pointer-events: none;
  z-index: 100;
  will-change: transform;
}

@keyframes i-dot-light-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  /* Baza (bez padanja na slovo) */
  50% {
    transform: translate(-50%, -0.07em);
  }

  /* Vrlo blagi i kratki skok gore */
}

/* Ensure the dotless i doesn't have its own dot or weird spacing */
.i-wrapper {
  margin-right: -0.02em;
}

.hero-title .word-rotator {
  display: inline-block;
  position: relative;
  color: #f3b242;
  /* Restored orange/gold color specifically for hero text */
  overflow: hidden;
  padding-bottom: 0.2em;
  /* Prevents descender clipping */
  margin-bottom: -0.2em;
  /* Visually aligns with the rest of the text */
  padding-right: 0.1em;
  /* Prevents horizontal clipping of 'b' or overhangs */
  margin-right: -0.1em;
  vertical-align: bottom;
}

.hero-title .word-rotator .word {
  display: block;
  transition:
    transform 0.5s var(--ease-smooth),
    opacity 0.5s var(--ease-smooth);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: var(--gap);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: var(--gray-700);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    top: -100%;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 100%;
  }
}

/* =======================================
   SECTIONS BASE
   ======================================= */
.section {
  padding: 120px var(--gap);
  max-width: var(--container);
  margin: 0 auto;
}

.section-full {
  padding: 120px var(--gap);
}

.section-header {
  margin-bottom: 110px;
  /* PoveÄ‡ano da se H2 spusti niÅ¾e */
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
  max-width: 500px;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-900);
}

/* =======================================
   SERVICES — ACCORDION STRIPS
   ======================================= */
.services-accordion {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--gray-900);
}

.service-strip {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  padding: 36px var(--gap);
  border-bottom: 1px solid var(--gray-900);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: var(--white);
}

.service-strip:hover {
  background: var(--gray-900);
  padding-left: calc(var(--gap) + 40px);
  /* Masivni pomak čitavog bloka udesno */
}

.service-strip:hover .strip-arrow {
  transform: translateX(20px);
  /* Veliki pomak strijelice */
  color: var(--accent);
}

.strip-title {
  transition: all var(--transition-normal);
}

.service-strip:hover .strip-title {
  color: var(--accent);
  transform: translateX(10px);
  /* Dodatni pomak samog teksta \+ paljenje narančaste boje */
}

.strip-icon-svg {
  width: 36px;
  height: 36px;
  color: var(--gray-400);
  transition: all var(--transition-normal);
}

.service-strip:hover .strip-title {
  transition: all var(--transition-normal);
}

.service-strip:hover .strip-title {
  color: var(--accent);
  transform: translateX(10px);
  /* Dodatni pomak samog teksta \+ paljenje narančaste boje */
}

.strip-icon-svg {
  color: var(--accent);
  transform: scale(1.5) rotate(10deg);
  /* Skok i rotacija ikone */
}

body.theme-light .strip-title {
  transition: all var(--transition-normal);
}

.service-strip:hover .strip-title {
  color: var(--accent);
  transform: translateX(10px);
  /* Dodatni pomak samog teksta \+ paljenje narančaste boje */
}

.strip-icon-svg {
  color: var(--black);
}

body.theme-light .service-strip:hover .strip-title {
  transition: all var(--transition-normal);
}

.service-strip:hover .strip-title {
  color: var(--accent);
  transform: translateX(10px);
  /* Dodatni pomak samog teksta \+ paljenje narančaste boje */
}

.strip-icon-svg {
  color: var(--accent);
}

.step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  object-fit: contain;
  transition: filter 0.5s ease;
  filter: brightness(0) invert(1);
  /* Bijelo po defaultu (crna pozadina) */
}

body.theme-light .step-icon {
  filter: brightness(0);
  /* Crno kad je aktivna svijetla tema */
}

.service-strip:hover .strip-num {
  color: var(--accent);
}

.strip-num {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: color var(--transition-normal);
}

.strip-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.strip-arrow {
  font-size: 1.5rem;
  color: var(--gray-500);
  transition: all var(--transition-normal);
}

/* PORTFOLIO — TEASER (Homepage) */
.portfolio-grid {
  display: flex;
  align-items: center;
  /* Centrirano vodoravno */
  gap: 8vw;
  padding: 40px 0;
}

.home-projects .home-project {
  flex: 1;
  min-width: 0;
  width: 100%;
}
.home-project img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  border: 1px solid #333;
}
.home-project .portfolio-info h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.portfolio-grid .portfolio-item {
  flex: 1;
  height: 550px;
  /* Jednaka visina za obje slike */
  border-radius: 60px;
  position: relative;
  overflow: hidden;
  cursor: default;
  background: var(--gray-900);
  transition: transform 0.8s var(--ease-smooth);
}

/* PORTFOLIO — HORIZONTAL SCROLL (Gallery Page) */
.horizontal-gallery {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: var(--black);
  padding-top: 100px;
  /* Space for navbar */
}

.gallery-track {
  display: flex;
  padding: 0 10vw;
  height: 100%;
  align-items: center;
  gap: 8vw;
  width: fit-content;
  will-change: transform;
}

.gallery-track .portfolio-item {
  position: relative;
  flex-shrink: 0;
  width: 50vw;
  /* Smanjeno za optimalan Desktop prikaz */
  max-width: 900px;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border-radius: 40px;
  overflow: hidden;
  cursor: default;
  background: var(--gray-900);
  transition: transform 0.8s var(--ease-smooth);
}

/* uklonjeno variranje visine even */

/* uklonjeno variranje visine 3n */

.portfolio-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease-smooth);
}

.portfolio-item:hover .portfolio-image {
  transform: none;
}

.portfolio-info {
  padding: 20px 0;
}

.portfolio-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.portfolio-info span {
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* Placeholder backgrounds */
.placeholder-img-1 {
  background: url("resources/Portfolio/premium_macbook_web.png") no-repeat
    center center;
  background-size: cover;
}

.placeholder-img-2 {
  background: url("resources/Portfolio/premium_brand_identity.png") no-repeat
    center center;
  background-size: cover;
}

.placeholder-img-3 {
  background: url("resources/Portfolio/premium_iphone_ui.png") no-repeat center
    center;
  background-size: cover;
}

.placeholder-img-4 {
  background: url("resources/Portfolio/img4.png") no-repeat center center;
  background-size: cover;
}

/* =======================================
   MANIFESTO / PHILOSOPHY
   ======================================= */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 160px var(--gap);
  max-width: var(--container);
  margin: 0 auto;
}

.manifesto-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 32px;
}

.manifesto-text p {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 480px;
}

/* =======================================
   SUBPAGE CONTENT — 2 COL LAYOUT
   ======================================= */
.subpage-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px var(--gap);
  max-width: var(--container);
  margin: 0 auto;
}

.process-steps {
  border-top: 1px solid var(--gray-900);
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-900);
  align-items: start;
  transition: all var(--transition-normal);
  cursor: default;
}

.process-step:hover {
  background: transparent;
}

.process-step:hover .step-num {
  color: var(--white);
}

.process-step:hover h4 {
  transform: none;
}

.process-step .step-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.process-step h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  transition: transform var(--transition-fast);
}

.process-step p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Theme Light Overrides for Layout Text */
body.theme-light h2,
body.theme-light h3,
body.theme-light h4 {
  color: var(--black);
}

body.theme-light .process-steps {
  border-top-color: var(--gray-300);
}

body.theme-light .process-step {
  border-bottom-color: var(--gray-300);
}

body.theme-light .process-step .step-num {
  color: var(--gray-600);
}

body.theme-light .process-step h4 {
  color: var(--black);
}

body.theme-light .process-step p {
  color: var(--gray-800);
}

body.theme-light .process-step:hover {
  background: var(--gray-100);
}

body.theme-light .process-step:hover .step-num,
body.theme-light .process-step:hover h4,
body.theme-light .process-step:hover p {
  color: var(--black);
}

/* Broad Light Theme Overrides — High Contrast Polish */
body.theme-light {
  background-color: var(--white) !important;
  color: var(--black) !important;
}

body.theme-light .subpage-hero,
body.theme-light .marquee-container {
  background-color: transparent !important;
}

body.theme-light .marquee-text {
  color: var(--black) !important;
}

body.theme-light .outline-text {
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.4) !important;
}

body.theme-light .outline-text:hover {
  -webkit-text-stroke: 2px var(--black) !important;
}

body.theme-light .subpage-2col,
body.theme-light .subpage-description,
body.theme-light .cta-strip,
body.theme-light .subpage-description p,
body.theme-light .subpage-description ul li,
body.theme-light .cta-strip h3,
body.theme-light .manifesto-text p,
body.theme-light .section-header p {
  color: var(--black) !important;
}

body.theme-light .detail-item {
  color: var(--black) !important;
}

body.theme-light .detail-item span {
  color: var(--black) !important;
}

body.theme-light .subpage-description ul li {
  border-bottom-color: var(--gray-200);
}

body.theme-light .subpage-description ul li::before {
  color: var(--black) !important;
}

body.theme-light .process-step p,
body.theme-light .process-step h4,
body.theme-light .process-step .step-num {
  color: var(--black) !important;
}

body.theme-light .process-step:hover p {
  color: var(--black) !important;
}

body.theme-light .subpage-hero-subtitle {
  color: var(--black) !important;
}

body.theme-light .section-header h2 {
  color: var(--black);
}

body.theme-light .btn-arrow {
  color: var(--black);
  border-color: var(--black);
}

body.theme-light .btn-arrow:hover {
  color: var(--gray-500);
  /* Slightly fade on hover instead of turning white */
}


.subpage-description {
  padding-top: 28px;
}

.subpage-description p {
  color: var(--gray-400);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.subpage-description ul {
  list-style: none;
  padding: 0;
}

.subpage-description ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-900);
  color: var(--gray-400);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.subpage-description ul li::before {
  content: "—";
  color: var(--accent);
  font-weight: 700;
}

/* =======================================
   CTA STRIP
   ======================================= */
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px var(--gap);
  max-width: var(--container);
  margin: 60px auto 100px auto;
  border-top: 1px solid var(--gray-900);
  border-bottom: 1px solid var(--gray-900);
}

.cta-strip h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
}

/* =======================================
   CONTACT
   ======================================= */
.contact-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 40px 0;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--gray-500);
  margin-bottom: 40px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray-400);
  font-size: 0.95rem;
}

.detail-item svg,
.detail-item i {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-700);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  outline: none;
  border-radius: 0;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-700);
}

/* Theme Light Overrides for Forms & Contacts */
.theme-light .detail-item {
  color: var(--black) !important;
}

.theme-light .detail-item span {
  color: var(--black) !important;
}

/* Contact PNG Icon Styles */
.contact-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  transition: filter 0.3s ease;
}

.theme-light .contact-icon {
  filter: brightness(0);
}

.theme-light .form-group label {
  color: var(--gray-600);
}

.theme-light .form-group input,
.theme-light .form-group textarea {
  color: var(--black);
  border-bottom-color: var(--gray-300);
}

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

.theme-light .form-group input::placeholder,
.theme-light .form-group textarea::placeholder {
  color: var(--gray-400);
}

/* =======================================
   GEOMETRIC LINE SEPARATOR
   ======================================= */
.geometric-separator {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  overflow: visible;
  margin-top: 80px;
  color: var(--gray-700);
  padding: 0;
}

.geometric-separator svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

body.theme-light .geometric-separator {
  color: var(--black);
}

@media (max-width: 900px) {
  .geometric-separator {
    height: 60px;
    margin-top: 40px;
  }
}

/* =======================================
   FOOTER
   ======================================= */
footer {
  text-align: center;
  padding: 40px var(--gap) 60px var(--gap);
  color: var(--gray-500);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border-top: none !important;
}

body.theme-light footer {
  color: var(--black);
  border-color: var(--gray-100);
}

/* =======================================
   ANIMATIONS — SCROLL REVEAL
   ======================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--ease-smooth),
    transform 0.8s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* =======================================
   GSAP CUSTOM UTILITIES
   ======================================= */
.gsap-mask {
  overflow: hidden;
  display: inline-block;
}

.gsap-mask span {
  display: inline-block;
  transform: translateY(110%);
}

.gsap-img-wrapper {
  overflow: hidden;
  height: 500px;
}

.gsap-img-parallax {
  height: 120%;
  width: 100%;
  background-size: cover;
  background-position: center;
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-smooth),
    transform 0.6s var(--ease-smooth);
}

.stagger-children.visible > *:nth-child(1) {
  transition-delay: 0s;
  opacity: 1;
  transform: none;
}

.stagger-children.visible > *:nth-child(2) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: none;
}

.stagger-children.visible > *:nth-child(3) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: none;
}

.stagger-children.visible > *:nth-child(4) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: none;
}

.stagger-children.visible > *:nth-child(5) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: none;
}

.stagger-children.visible > *:nth-child(6) {
  transition-delay: 0.5s;
  opacity: 1;
  transform: none;
}

@keyframes scrollMarqueeCenter {
  0% {
    transform: translateX(50vw);
  }

  100% {
    transform: translateX(-100%);
  }
}

body.theme-light .subpage-description ul li::before {
  color: var(--black) !important;
}

@media (max-width: 900px) {
  .gallery-track .portfolio-item {
    width: 90vw;
    border-radius: 20px;
  }
}

/* =======================================
   MOBILE ONLY & UTILITIES
   ======================================= */
.mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .mobile-only {
    display: block;
    margin-top: 20px;
  }
}

.back-to-top {
  display: none;
  position: absolute;
  /* Usidreno na dno dokumenta, ne lebdi na ekranu */
  bottom: 160px;
  /* Podignuto tik iznad footera */
  /* Lebdi malo iznad pocetka footera */
  right: 30px;
  /* Odmaknuto tijelo gumba od samog desnog ruba ekrana */
  width: 50px;
  height: 50px;
  background-color: var(--white);
  color: var(--black);
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  z-index: 999;
  font-weight: bold;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding-top: 6px;
}

@media (max-width: 900px) {
  .back-to-top {
    display: block;
    bottom: 200px;
  }

  body.theme-light .back-to-top {
    background-color: var(--black);
    color: var(--white);
  }
}

@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.back-to-top span {
  display: inline-block;
  animation: bounceArrow 1.5s infinite ease-in-out;
}

/* =======================================
   BENTO PORTFOLIO GRID
   ======================================= */
.portfolio-page {
  background: var(--black);
  min-height: 100svh;
  overflow: visible;
}

.portfolio-page .navbar {
  position: sticky;
  background: var(--black);
}

.bento-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(170px, auto));
  min-height: calc(100svh - 110px);
  /* Fill the space of the removed button */
  gap: 15px;
  padding: 0 var(--gap) 40px var(--gap);
  max-width: 100%;
  margin: 0 auto;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  /* Ensure images follow rounded corners */
  background: var(--gray-900);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border: 1px solid var(--gray-700);
  border-radius: 60px;
  /* Rounded corners as on index */
  transition:
    transform var(--transition-normal),
    border-color var(--transition-fast);
}

.portfolio-card:hover {
  border-color: var(--gray-700);
}

.portfolio-card.text-card {
  background: #1c1c1a;
  justify-content: flex-start;
}

.portfolio-card.image-card {
  padding: 0;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  transition: transform 0.6s var(--ease-smooth);
}

.portfolio-card:hover img {
  transform: none;
}

.portfolio-card .card-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  width: 100%;
  padding: 20px;
}

.portfolio-card.text-card .card-content {
  background: none;
  padding: 0;
}

.portfolio-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: -0.03em;
  color: var(--white);
}

.portfolio-card p {
  font-size: 0.85rem;
  color: var(--gray-100);
  line-height: 1.4;
  max-width: 100%;
}

/* Grid Placements for a seamless 4x4 layout */
.item-1 {
  grid-area: 1 / 1 / 3 / 3;
}

/* Wide Image (R1-2, C1-2) */
.item-2 {
  grid-area: 1 / 3 / 2 / 4;
}

/* Explore Text (R1, C3) */
.item-3 {
  grid-area: 1 / 4 / 3 / 5;
}

/* Wildlife Tall (R1-2, C4) */
.item-4 {
  grid-area: 2 / 3 / 3 / 4;
}

/* Architecture Square (R2, C3) */
.item-5 {
  grid-area: 3 / 1 / 5 / 2;
}

/* Unleash Tall Text (R3-4, C1) */
.item-6 {
  grid-area: 3 / 2 / 5 / 3;
}

/* Design Tall (R3-4, C2) */
.item-7 {
  grid-area: 3 / 3 / 4 / 4;
}

/* Stay Small Text (R3, C3) */
.item-8 {
  grid-area: 3 / 4 / 5 / 5;
}

/* Cuisine Tall (R3-4, C4) */
.item-9 {
  grid-area: 4 / 3 / 5 / 4;
}

/* Awards Small Text (R4, C3) */

/* Placeholder classes for images if not loaded */
.placeholder-image {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

/* Portfolio: paired project screenshots, with their original proportions. */
.portfolio-intro {
  padding-top: 64px;
  padding-bottom: 64px;
}
.portfolio-eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 32px;
}
.portfolio-intro h1 {
  font-size: clamp(3.5rem, 8.6vw, 8rem);
  letter-spacing: -0.055em;
  font-weight: 800;
  line-height: 1.08;
}
.portfolio-intro h1 .outline-text {
  margin-left: 0.1em;
  -webkit-text-stroke: 1.5px #bbb;
}
.portfolio-intro-bottom {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  margin-top: 32px;
}
.portfolio-intro-bottom > p {
  color: #aaa;
  font-size: 1.05rem;
  max-width: 460px;
}
.project-index {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.project-index a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-bottom: 1px solid #444;
  font-size: 0.85rem;
}
.project-index a > span:first-child {
  font-size: 0.65rem;
  color: #aaa;
}
.project-index a:hover {
  border-color: white;
}
.project-story {
  padding: 40px 0 64px;
  border-top: 1px solid #333;
  scroll-margin-top: 120px;
}
.project-story-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 28px;
}
.project-identity {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.project-number {
  color: #aaa;
  font-size: 0.8rem;
  padding-top: 2px;
}
.project-category {
  color: #aaa;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.project-story h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 600;
}
.project-description {
  max-width: 380px;
  color: #aaa;
  font-size: 0.95rem;
}
.project-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.project-shot {
  min-width: 0;
}
.project-preview {
  display: block;
  position: relative;
  border: 1px solid #333;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
}
.project-preview img {
  display: block;
  width: 100%;
  height: auto;
}
.preview-expand {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: #000d;
  border: 1px solid #777;
  border-radius: 50%;
  font-size: 1.2rem;
  transition:
    background 0.2s,
    color 0.2s;
}
.project-preview:hover .preview-expand,
.project-preview:focus-visible .preview-expand {
  color: black;
  background: white;
}
.project-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  font-size: 0.8rem;
  color: #aaa;
}
.project-shot figcaption > span:first-child {
  color: #eee;
}
.portfolio-next {
  padding-top: 32px;
  padding-bottom: 64px;
}
.portfolio-next > div {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}
.portfolio-next h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}
.portfolio-next .btn {
  flex-shrink: 0;
  min-height: 48px;
  gap: 20px;
  border-color: #888;
}
.portfolio-lightbox {
  margin: auto;
  padding: 24px;
  width: min(96vw, 1680px);
  height: min(94dvh, 1100px);
  max-width: 96vw;
  max-height: 94dvh;
  color: white;
  background: #080808;
  border: 1px solid #555;
  border-radius: 20px;
}
.portfolio-lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 20px;
}
.portfolio-lightbox::backdrop {
  background: #000e;
}
.lightbox-open,
.lightbox-open body {
  overflow: hidden;
}
.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.lightbox-toolbar h2 {
  font-size: 1.3rem;
}
.lightbox-toolbar p {
  color: #aaa;
  font-size: 0.85rem;
  margin-top: 6px;
}
.portfolio-lightbox button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid #777;
  border-radius: 50%;
  font: inherit;
  font-size: 1.2rem;
  color: white;
  background: transparent;
  cursor: pointer;
}
.portfolio-lightbox button:hover {
  background: white;
  color: black;
}
.lightbox-stage {
  min-height: 0;
  min-width: 0;
}
.lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lightbox-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}
.lightbox-counter {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: #bbb;
}
@media (max-width: 900px) {
  .portfolio-intro {
    padding-top: 40px;
    padding-bottom: 48px;
  }
  .portfolio-intro-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .project-story-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .project-description {
    max-width: 600px;
  }
  .project-shots {
    gap: 18px;
  }
  .project-identity {
    gap: 16px;
  }
  .project-preview {
    border-radius: 14px;
  }
  .project-shot figcaption > span:last-child {
    display: none;
  }
}
@media (max-width: 600px) {
  .portfolio-intro h1 {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }
  .portfolio-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    margin-bottom: 24px;
  }
  .portfolio-intro-bottom > p {
    font-size: 1rem;
  }
  .project-index {
    gap: 6px 16px;
  }
  .project-story {
    padding-top: 28px;
    padding-bottom: 40px;
  }
  .project-story-heading {
    margin-bottom: 22px;
  }
  .project-shots {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .project-shot figcaption {
    padding-top: 10px;
  }
  .project-shot figcaption > span:last-child {
    display: inline;
  }
  .preview-expand {
    width: 32px;
    height: 32px;
    bottom: 8px;
    right: 8px;
  }
  .portfolio-next {
    padding-top: 20px;
    padding-bottom: 40px;
  }
  .portfolio-next > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
  .portfolio-lightbox {
    padding: 16px;
    border-radius: 14px;
  }
}

/* Shared component corrections — existing monochrome identity retained. */
:root {
  --radius-card: 60px;
  --section-space: 100px;
}
html {
  scroll-padding-top: 120px;
}
[hidden] {
  display: none !important;
}
.sr-only,
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 20px;
  padding: 12px 18px;
  background: white;
  color: black;
  border: 2px solid black;
  z-index: 2000;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
main:focus {
  outline: none;
}
.btn {
  min-height: 44px;
  justify-content: center;
}
.btn-arrow {
  padding-block: 10px;
}
.navbar {
  z-index: 1000;
}
.nav-container {
  gap: 24px;
}
.nav-logo {
  flex-shrink: 0;
}
.nav-links {
  gap: clamp(16px, 2vw, 30px);
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  white-space: nowrap;
}
.nav-link[aria-current="page"] {
  color: var(--white);
}
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}
.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: 4px;
  color: var(--gray-500);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.language-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  transition: color 0.2s ease;
}
.language-link:hover,
.language-link:focus-visible,
.language-link[aria-current="true"] {
  color: var(--white);
}
body.theme-light .language-link[aria-current="true"],
body.theme-light .language-link:hover,
body.theme-light .language-link:focus-visible {
  color: var(--black);
}
.nav-right {
  flex-shrink: 0;
}
.mobile-menu-btn {
  border: 0;
  background: none;
  color: inherit;
  width: 44px;
  height: 44px;
  padding: 11px 4px;
}
.mobile-menu-btn .line {
  flex-shrink: 0;
}
.hero {
  padding-top: 160px;
  padding-bottom: 60px;
  min-height: 100svh;
}
.hero-title {
  margin-bottom: 10px;
}
.section-full {
  padding-top: var(--section-space);
}
.subpage-intro {
  margin-top: 40px;
  width: 100%;
}
.section,
.subpage-2col {
  padding-block: var(--section-space);
}
.subpage-2col > *,
.contact-grid > *,
.process-step > * {
  min-width: 0;
}
.subpage-hero {
  padding-top: 120px;
  padding-bottom: 60px;
}
.portfolio-card,
.portfolio-grid .portfolio-item {
  border-radius: var(--radius-card);
}
.portfolio-card {
  min-width: 0;
}
.portfolio-card .card-content {
  pointer-events: auto;
}
.portfolio-card.image-card .card-content {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.94) 65%);
  padding-top: 50px;
}
.portfolio-card.text-card h2 {
  font-size: 1.35rem;
}
.portfolio-card.text-card p {
  margin-top: 10px;
}
.portfolio-page .navbar {
  top: 0;
}
.process-step h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.process-section {
  padding-top: 160px;
  padding-bottom: var(--section-space);
}
.process-section h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}
.process-timeline {
  max-width: 1000px;
  margin: 0 auto;
}
.process-timeline .process-step {
  grid-template-columns: 60px 1fr;
}
.process-timeline h2 {
  font-size: 1.4rem;
}
.process-step:hover {
  cursor: default;
}
.contact-section {
  padding-bottom: 60px;
}
.detail-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.detail-item a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.contact-icon {
  filter: brightness(0) invert(1);
}
.contact-form-wrapper {
  min-width: 0;
}
.contact-form {
  border: 1px solid var(--gray-700);
  border-radius: 30px;
  padding: clamp(20px, 3vw, 36px);
}
.form-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}
.form-help {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.form-group label {
  color: #b5b5b5;
  line-height: 1.5;
}
.form-group .optional {
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}
.form-group input,
.form-group textarea,
.form-group select {
  min-height: 48px;
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #888;
  border-radius: 0;
  color: var(--white);
  font: inherit;
  font-size: 16px;
  padding: 14px 0;
}
.form-group select {
  color-scheme: dark;
}
.form-group select option {
  background: black;
  color: white;
}
.form-group textarea {
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}
.form-group :is(input, textarea, select):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-row > * {
  min-width: 0;
}
.brief-options {
  border-top: 1px solid var(--gray-700);
  border-bottom: 1px solid var(--gray-700);
  margin-bottom: 28px;
}
.brief-options summary {
  cursor: pointer;
  padding-block: 16px;
  min-height: 48px;
  font-weight: 600;
}
.brief-options summary span {
  font-weight: 400;
  font-size: 0.85rem;
}
.brief-options[open] summary {
  margin-bottom: 16px;
}
.service-brief {
  border: 0;
  border-top: 1px solid var(--gray-700);
  padding: 20px 0 0;
  margin: 12px 0 28px;
  min-width: 0;
}
.service-brief legend {
  font-weight: 600;
  padding-right: 12px;
}
.contact-form > .btn {
  width: 100%;
}
.contact-form .btn[disabled] {
  cursor: wait;
  opacity: 0.65;
}
.field-error {
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 500;
  margin-top: 8px;
}
.field-error:empty {
  display: none;
}
[aria-invalid="true"] {
  border-bottom-style: dashed !important;
  border-bottom-width: 2px !important;
}
.form-status:not(:empty) {
  margin-top: 24px;
  border-left: 2px solid currentColor;
  padding-left: 16px;
}
.form-fallback {
  margin-top: 16px;
  font-size: 0.9rem;
}
.form-fallback a {
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.success-dialog {
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--white);
}
.success-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(7px);
}
.success-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(34px, 7vw, 58px);
  border: 1px solid #444;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0, rgba(182, 255, 71, 0.14), transparent 42%),
    var(--black);
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  animation: success-card-in 0.55s var(--ease-smooth) both;
}
.success-check {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  color: #b6ff47;
}
.success-check svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.success-check circle {
  stroke-width: 2;
  stroke-dasharray: 184;
  animation: success-ring 0.75s 0.15s var(--ease-smooth) both;
}
.success-check path {
  stroke-width: 4;
  stroke-dasharray: 42;
  animation: success-tick 0.45s 0.55s var(--ease-smooth) both;
}
.success-eyebrow {
  margin-bottom: 10px;
  color: #b6ff47;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.success-card h2 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.success-card > p:not(.success-eyebrow) {
  max-width: 390px;
  margin: 18px auto 28px;
  color: var(--gray-300);
}
.success-close {
  width: 100%;
}
.success-confetti {
  position: fixed;
  z-index: 3;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
@keyframes success-card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
}
@keyframes success-ring {
  from {
    stroke-dashoffset: 184;
    transform: rotate(-40deg);
    transform-origin: center;
  }
  to {
    stroke-dashoffset: 0;
    transform: rotate(0);
  }
}
@keyframes success-tick {
  from {
    stroke-dashoffset: 42;
  }
  to {
    stroke-dashoffset: 0;
  }
}
body.theme-light .success-card {
  color: var(--black);
  border-color: #ccc;
  background:
    radial-gradient(circle at 50% 0, rgba(126, 190, 32, 0.18), transparent 42%),
    var(--white);
}
body.theme-light .success-card > p:not(.success-eyebrow) {
  color: var(--gray-600);
}
#upit {
  scroll-margin-top: 120px;
}
body.theme-light .contact-form {
  border-color: #bbb;
}
body.theme-light .form-help,
body.theme-light .form-group label {
  color: #555;
}
body.theme-light .form-group :is(input, textarea, select) {
  color: black;
  border-color: #777;
  color-scheme: light;
}
body.theme-light .form-group :is(input, textarea)::placeholder {
  color: #666;
}
body.theme-light .form-group select option {
  background: white;
  color: black;
}
body.theme-light .btn-pill-filled {
  background: black;
  color: white;
  border-color: black;
}
body.theme-light .hero-subtitle,
body.theme-light .process-step p {
  color: #555;
}
body.theme-light .outline-text {
  -webkit-text-stroke-color: #707070;
}
body.theme-light .brief-options,
body.theme-light .service-brief {
  border-color: #bbb;
}
@media (prefers-reduced-motion: reduce) {
  .success-card,
  .success-check circle,
  .success-check path {
    animation: none;
  }
}
footer {
  color: var(--gray-400);
}
.back-to-top {
  position: static;
  margin: 0 var(--gap) 30px auto;
  padding-top: 0;
}
/* Animations are opt-in after JS initializes; content never depends on a CDN. */
.reveal,
.stagger-children > * {
  opacity: 1;
  transform: none;
}
.reveal.reveal-ready {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.reveal-ready.visible {
  opacity: 1;
  transform: none;
}
.marquee-track {
  animation-play-state: paused;
}
.motion-enabled .marquee-track {
  animation-play-state: running;
}
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}
.motion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px var(--gap) 0 auto;
  border: 1px solid #888;
  border-radius: 50%;
  padding: 0;
  width: 44px;
  min-height: 44px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.motion-toggle:hover {
  border-color: currentColor;
}
.motion-toggle > span[aria-hidden="true"] {
  line-height: 1;
}
.contact-panel {
  padding-block: 64px;
  border-top: 1px solid var(--gray-500);
  scroll-margin-top: 120px;
}
.contact-panel h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  margin-bottom: 32px;
}
.contact-page .contact-panel {
  padding-top: 160px;
  padding-bottom: 64px;
  border-top: 0;
  min-height: 70svh;
}
.contact-panel > p {
  max-width: 560px;
}
.contact-panel-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 28px 0;
}
.contact-panel-details a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.contact-email {
  font-size: clamp(1.25rem, 4vw, 2.5rem);
}
.contact-panel-details a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.contact-panel .copy-status {
  min-height: 1.6em;
  margin-top: 16px;
}

.static-marquee {
  display: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 9vw, 8rem);
  line-height: 1.1;
  padding: 20px var(--gap);
  overflow-wrap: anywhere;
}
.no-motion .marquee-container {
  display: none;
}
.no-motion .static-marquee {
  display: block;
}
@media (max-width: 1200px) {
  :root {
    --gap: 32px;
    --radius-card: 40px;
    --section-space: 80px;
  }
  .nav-container {
    gap: 16px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.875rem;
  }
  .nav-logo {
    font-size: 1.45rem;
  }
  .nav-right .btn-pill {
    padding-inline: 20px;
  }
  .hero-title {
    font-size: clamp(3rem, 11vw, 8rem);
  }
  .manifesto {
    gap: 40px;
  }
  .subpage-2col,
  .contact-grid {
    gap: 40px;
  }
  .portfolio-grid {
    gap: 40px;
  }
  .portfolio-grid .portfolio-item {
    height: 450px;
  }
  .bento-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    min-height: 0;
  }
  .portfolio-card {
    grid-area: auto;
  }
  .portfolio-card.image-card {
    min-height: 350px;
  }
  .portfolio-card.text-card {
    min-height: 160px;
  }
}
@media (max-width: 900px) {
  .navbar,
  .navbar.scrolled,
  .navbar.scrolled-always {
    padding-block: 16px;
    background: black;
  }
  body.theme-light .navbar {
    background: white;
  }
  .nav-container {
    flex-wrap: wrap;
  }
  .nav-right {
    margin-left: auto;
  }
  .nav-right > .btn {
    display: inline-flex;
    padding-inline: 16px;
    font-size: 0.875rem;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: static;
    order: 3;
    flex-basis: 100%;
    background: inherit;
    padding: 12px 0 0;
    border-top: 1px solid #777;
  }
  .menu-enhanced .nav-links {
    display: none;
  }
  .menu-enhanced .nav-links.active {
    display: flex;
    max-height: calc(100dvh - 105px);
    overflow-y: auto;
  }
  .nav-link,
  .mobile-only {
    display: flex;
    font-size: 1rem;
    margin: 0;
    min-height: 44px;
  }
  .language-selector {
    margin-left: 0;
    border-top: 1px solid #777;
  }
  .hero {
    min-height: auto;
    padding: 140px var(--gap) 48px;
  }
  .hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
  }
  .hero .marquee-text {
    font-size: clamp(4rem, 14vw, 8rem);
  }
  .marquee-track {
    animation-duration: 28s;
  }
  .subpage-hero {
    min-height: auto;
    padding: 120px 0 40px;
  }
  .subpage-hero .marquee-text {
    font-size: clamp(3.2rem, 12vw, 7rem);
  }
  .subpage-intro {
    margin-top: 20px;
  }
  .subpage-2col,
  .contact-grid,
  .manifesto {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    padding-top: 20px;
  }
  .contact-details {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 28px;
  }
  .portfolio-grid .portfolio-item {
    height: 360px;
  }
  .manifesto {
    min-height: auto;
    padding-block: 80px;
  }
  .process-section {
    padding-top: 120px;
  }
  .cta-strip {
    gap: 24px;
  }
}
@media (max-width: 600px) {
  :root {
    --gap: 20px;
    --radius-card: 30px;
    --section-space: 60px;
  }
  .mobile-break {
    display: block;
  }
  .hero {
    padding-top: 120px;
  }
  .hero-title {
    font-size: clamp(3.2rem, 12vw, 4.5rem);
    line-height: 1.02;
  }
  .hero-subtitle {
    margin-bottom: 24px;
  }
  .hero .marquee-container {
    padding-bottom: 24px !important;
  }
  .hero .marquee-text {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }
  .marquee-text {
    gap: 24px;
    padding-right: 24px;
  }
  .subpage-hero .marquee-container {
    padding-block: 20px;
  }
  .subpage-hero .marquee-text {
    font-size: clamp(3rem, 12vw, 5rem);
  }
  .section-header {
    margin-bottom: 32px;
  }
  .section-header h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .service-strip {
    grid-template-columns: 36px minmax(0, 1fr) 28px;
    gap: 16px;
    padding: 24px var(--gap);
  }
  .strip-title {
    font-size: 1.25rem;
  }
  .strip-icon-svg {
    width: 32px;
    height: 32px;
  }
  .portfolio-grid {
    flex-direction: column;
    gap: 28px;
    padding-block: 20px;
  }
  .portfolio-grid .portfolio-item {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  .bento-portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 32px;
  }
  .portfolio-card.image-card {
    min-height: 320px;
  }
  .portfolio-card.text-card {
    min-height: 0;
    padding: 26px;
  }
  .portfolio-card h2 {
    font-size: 1.5rem;
  }
  .process-step,
  .process-timeline .process-step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 16px;
    padding-block: 24px;
  }
  .subpage-description p {
    font-size: 1rem;
  }
  .contact-details {
    flex-direction: column;
    gap: 10px;
  }
  .contact-form {
    border-radius: 24px;
  }
  .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-block: 36px;
  }
  .cta-strip h3 {
    font-size: 1.7rem;
  }
  .manifesto {
    padding-block: 60px;
  }
  .manifesto-text h2 {
    font-size: 2rem;
  }
  footer {
    padding-block: 30px;
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    padding-top: 110px;
  }
  .subpage-hero {
    padding-top: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal.reveal-ready {
    opacity: 1;
    transform: none;
  }
  .marquee-container {
    display: none;
  }
  .static-marquee {
    display: block;
  }
}

/* First-entry kinetic typography intro. */
html.intro-pending,
html.intro-active {
  overflow: hidden;
  background: #000;
}
html.intro-pending body > * {
  visibility: hidden;
}
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  opacity: 1;
  visibility: visible !important;
  transition: opacity 500ms cubic-bezier(0.76, 0, 0.24, 1);
}
.site-intro--closing {
  opacity: 0;
  pointer-events: none;
}
.site-intro__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.site-intro__skip {
  position: absolute;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font: 600 0.78rem/1 "Inter Tight", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    color 180ms ease,
    background-color 180ms ease;
}
.site-intro__skip:hover,
.site-intro__skip:focus-visible {
  color: #000;
  background: #fff;
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .site-intro {
    display: none;
  }
}

/* Iris curtain: expand from the click, then recede at the same point. */
:root {
  --page-transition-color: #101110;
}
.page-transition-pending::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4999;
  background: var(--page-transition-color);
  pointer-events: all;
}
.page-transition-active,
.page-transition-active body {
  overflow: hidden;
}
.page-transition-curtain {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: all;
  overflow: hidden;
  background: transparent;
}
.page-transition-iris {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--page-transition-color);
  will-change: clip-path;
}
@media (prefers-reduced-motion: reduce) {
  .page-transition-pending::before,
  .page-transition-curtain {
    display: none;
  }
}
