:root {
  --teal: #12968c;
  --navy: #1c1a2e;
  --cream: #fdf6e9;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--white);
}

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

a { color: inherit; }

/* ---------- HERO (full screen) ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  background-color: var(--teal);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,15,.6) 0%, rgba(10,10,15,0) 30%),
    linear-gradient(to left, rgba(10,10,15,.75) 0%, rgba(10,10,15,.35) 35%, rgba(10,10,15,0) 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  padding: 3rem 6vw;
  gap: 1.4rem;
  color: var(--white);
  max-width: 480px;
}

.hero-content .logo {
  width: min(240px, 60vw);
}

.hero-content h1 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-content p {
  font-size: 0.9rem;
  letter-spacing: .02em;
  line-height: 1.6;
  margin: 0;
  max-width: 380px;
  opacity: .95;
}

.btn {
  display: inline-block;
  padding: .8rem 1.8rem;
  border: 2px solid var(--white);
  border-radius: 999px;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.btn:hover { background: var(--white); color: var(--teal); }

.media-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 80%);
  width: 100%;
}

.caption-small {
  font-size: .65rem;
  text-transform: lowercase;
  opacity: .85;
}

.caption-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
}

/* ---------- STUDIO ---------- */

.studio {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

.studio-text {
  flex: 1 1 50%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 6vw;
}

.studio-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0;
  text-align: center;
}

.studio-text p {
  font-size: .95rem;
  line-height: 1.8;
  text-align: center;
  color: #333;
  margin: 0;
}

.studio-text .tagline {
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
}

.studio-media {
  position: relative;
  flex: 1 1 50%;
  min-width: 320px;
  min-height: 420px;
  overflow: hidden;
}

.studio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- CONTACT ---------- */

.contact {
  text-align: center;
  padding: 5rem 5vw;
}

.contact h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 1rem;
}

.contact a {
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--navy);
  padding-bottom: .1rem;
}

/* ---------- WORKS PAGE ---------- */

.home-link {
  position: absolute;
  top: 1.6rem;
  left: 1.6rem;
}

.home-link img {
  width: 130px;
}

.trusted {
  text-align: center;
  padding: 4.5rem 6vw;
}

.trusted h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 3rem;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  gap: 2.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.client-grid img {
  max-height: 70px;
  width: auto;
  filter: grayscale(1);
  opacity: .8;
  transition: filter .2s ease, opacity .2s ease;
}

.client-grid img.logo-compact {
  max-height: 46px;
}

.client-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 700px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- LANGUAGE SWITCH ---------- */

.lang-switch {
  position: fixed;
  top: 1.6rem;
  right: 1.6rem;
  z-index: 20;
  display: flex;
  gap: .3rem;
  background: rgba(10,10,15,.35);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  padding: .25rem;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .35rem .75rem;
  border-radius: 999px;
  cursor: pointer;
  opacity: .7;
  transition: background .2s ease, opacity .2s ease, color .2s ease;
}

.lang-switch button.active {
  background: var(--white);
  color: var(--navy);
  opacity: 1;
}

.lang-switch button:not(.active):hover {
  opacity: 1;
}

@media (max-width: 700px) {
  .lang-switch { top: 1rem; right: 1rem; }
}

/* ---------- FOOTER ---------- */

footer {
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  padding: 1.2rem 5vw;
  font-size: .75rem;
}

footer a { text-decoration: none; opacity: .8; }
footer a:hover { opacity: 1; }

@media (max-width: 700px) {
  .hero-content { align-items: center; text-align: center; padding: 2.5rem 6vw 3.5rem; max-width: 100%; }
  .hero-content .logo { width: 160px; }
  .hero-content h1 { font-size: .8rem; letter-spacing: .06em; }
  .studio-text p { text-align: left; }
}

/* ---------- WORKS DIAPO ---------- */

.diapo {
  position: relative;
  height: 75vh;
  min-height: 460px;
  background: var(--navy);
  overflow: hidden;
}

.diapo-slide {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.diapo-slide.is-active {
  opacity: 1;
}

.diapo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .9rem 1.2rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

@media (max-width: 700px) {
  .diapo-caption { font-size: .7rem; padding: .7rem 1rem; }
}
