/* ARROW CANVAS */
#arrow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Iznad hero-fixed (1), ispod content-wrap (11) da ne prelazi Work sekciju pri skrolu */
  z-index: 6;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#arrow-canvas.vis {
  opacity: 1;
}

/* HERO */
.hero-fixed {
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px var(--pad-x) 30px;
  background: radial-gradient(
      ellipse at 30% 20%,
      rgba(106, 122, 0, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      rgba(106, 122, 0, 0.025) 0%,
      transparent 50%
    ),
    var(--bg);
}

.hero-fixed::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-spacer {
  height: 100vh;
  height: 100dvh;
}

.hero-fixed h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 0.3s forwards;
}

.hero-fixed h1 em {
  font-style: italic;
  color: var(--olive);
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 440px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.6s forwards;
}

.cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.9s forwards;
}

.cta-primary {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--olive);
  padding: 16px 44px;
  text-decoration: none;
  border-radius: var(--r);
  transition: background 0.3s ease, transform 0.3s var(--ease),
    box-shadow 0.3s ease;
}

.cta-primary:hover {
  background: #7a8c00;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(106, 122, 0, 0.18);
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cta-phone:hover {
  color: var(--olive);
}

.cta-phone svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* CONTENT */
.content-wrap {
  position: relative;
  z-index: 11;
  background: var(--white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.06);
  margin-bottom: 380px;
}

section {
  padding: var(--pad-y) var(--pad-x);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-tag::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--olive-dim);
  border-radius: 1px;
}

/* WORK GRID */
#work .section-inner h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 16px;
}

#work .section-inner .section-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 600px;
  margin-bottom: 40px;
}

.work-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 16/9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.work-card:hover img {
  transform: scale(1.04);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  transition: background 0.5s ease;
}

.work-card:hover .work-overlay {
  background: rgba(0, 0, 0, 0.68);
}

.work-overlay-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wo-cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0);
  transition: color 0.4s ease 0.05s, transform 0.5s var(--ease) 0.05s;
  transform: translateY(8px);
}

.wo-company {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0);
  transition: color 0.4s ease 0.1s, transform 0.5s var(--ease) 0.1s;
  transform: translateY(8px);
}

.wo-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0);
  max-width: 320px;
  margin: 0 auto;
  transition: color 0.4s ease 0.15s, transform 0.5s var(--ease) 0.15s;
  transform: translateY(8px);
}

.work-card:hover .wo-cat {
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(0);
}

.work-card:hover .wo-company {
  color: #889b08;
  transform: translateY(0);
}

.work-card:hover .wo-desc {
  color: rgba(255, 255, 255, 0.68);
  transform: translateY(0);
}

.work-scroll-mobile {
  display: none;
  gap: 10px;
  padding: 0 var(--pad-x) 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.work-scroll-mobile::-webkit-scrollbar {
  display: none;
}

.work-scroll-mobile .work-card {
  flex: 0 0 80vw;
  scroll-snap-align: start;
}

/* LOGOS */
.logos {
  padding: 56px var(--pad-x);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.logos-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 36px;
}

.logos-track-wrap {
  overflow: hidden;
  position: relative;
}

.logos-track-wrap::before,
.logos-track-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}

.logos-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.logos-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: scroll-logos 35s linear infinite;
  width: max-content;
}

.logo-name {
  flex: 0 0 auto;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink-muted);
  white-space: nowrap;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.logo-name:hover {
  opacity: 0.85;
}

.logo-img {
  flex: 0 0 auto;
  height: 32px;
  width: auto;
  max-width: min(200px, 28vw);
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.logo-img:hover {
  opacity: 0.85;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }

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

/* ONE STUDIO */
.one-studio {
  background: var(--off-white);
  padding: 80px var(--pad-x);
  text-align: center;
}

.one-studio h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 16px;
}

.one-studio h2 em {
  font-style: italic;
  color: var(--olive);
}

.one-studio p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 540px;
  margin: 0 auto;
}

/* WHAT WE DO */
.what-we-do h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 16px;
}

.what-we-do .section-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 600px;
  margin-bottom: 40px;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-pill {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 100px;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.service-pill:hover {
  border-color: var(--olive-dim);
  color: var(--olive);
  background: var(--olive-bg);
}

/* HOW WE WORK */
.how-we-work {
  background: var(--off-white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--olive);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* WHO WE ARE */
.who-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.who-we-are h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 28px;
}

.who-we-are p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-dim);
  max-width: 520px;
}

.tenure {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.tenure-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--olive);
  line-height: 28px;
}

.tenure-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-top: 7px;
}

.who-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.who-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.who-image:hover img {
  transform: scale(1.04);
}

.who-image .work-overlay {
  border-radius: var(--r-xl);
}

.who-image:hover .work-overlay {
  background: rgba(0, 0, 0, 0.68);
}

.who-image:hover .wo-cat {
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(0);
}

.who-image:hover .wo-company {
  color: #889b08;
  transform: translateY(0);
}

.who-image:hover .wo-desc {
  color: rgba(255, 255, 255, 0.68);
  transform: translateY(0);
}

/* SERVING */
.serving-focus {
  text-align: center;
  background: var(--off-white);
}

.serving-focus h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.serving-focus h2:hover {
  color: var(--gold);
}

.serving-desc {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 44px;
}

.serving-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1.5px solid var(--gold);
  padding: 16px 44px;
  border-radius: var(--r);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.serving-link:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* CONVICTION */
.conviction {
  text-align: center;
  padding: 100px var(--pad-x);
}

.conviction-line {
  width: 1.5px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--olive-dim));
  margin: 0 auto 36px;
  border-radius: 1px;
}

.conviction p {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.5;
  color: var(--olive);
  max-width: none;
}

/* CONTACT */
.contact-section {
  background: var(--off-white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-section h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 48px;
  max-width: 380px;
}

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

.contact-info a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--olive);
}

.contact-info svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  padding: 3px;
  background: var(--ink-ghost);
  border-radius: 50%;
  color: var(--ink-muted);
}

.contact-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.form-group.full {
  grid-column: 1/-1;
}

.form-group label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(56, 56, 56, 1);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(56, 56, 56, 0.2);
  color: var(--ink);
  font-family: "Libre Franklin", sans-serif;
  font-size: 16px;
  font-weight: 300;
  padding: 12px 0;
  -webkit-appearance: none;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease;
}

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

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

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  margin-top: 20px;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--olive);
  border: none;
  padding: 18px 40px;
  cursor: pointer;
  border-radius: var(--r);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
  background: #7a8c00;
  box-shadow: 0 4px 16px rgba(106, 122, 0, 0.2);
}

body.hero-active .hero-fixed {
  opacity: 1;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.stagger .reveal:nth-child(1) {
  transition-delay: 0s;
}

.stagger .reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.stagger .reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.stagger .reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.stagger .reveal:nth-child(5) {
  transition-delay: 0.24s;
}

.stagger .reveal:nth-child(6) {
  transition-delay: 0.3s;
}

.stagger .reveal:nth-child(7) {
  transition-delay: 0.36s;
}

.stagger .reveal:nth-child(8) {
  transition-delay: 0.42s;
}

.stagger .reveal:nth-child(9) {
  transition-delay: 0.48s;
}

.stagger .reveal:nth-child(10) {
  transition-delay: 0.54s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .logos-track {
    animation: none;
  }

  #arrow-canvas {
    display: none;
  }
}

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section,
  .one-studio,
  .conviction {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .section-tag {
    margin-bottom: 26px;
  }
  #work .section-inner h2,
  .what-we-do h2 {
    br {
      display: none;
    }
  }
  .service-pill {
    padding: 8px 18px;
  }
  .work-flow {
    display: none;
  }
  .work-scroll-mobile {
    display: flex;
    padding-bottom: 0;
  }
  .who-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .conviction p {
    font-size: 1.1rem;
  }
  #arrow-canvas {
    display: none;
  }
  .who-layout,
  .contact-layout {
    gap: 40px;
  }

  .contact-card {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
