/* ===== FONTS ===== */

@font-face {
  font-family: "Suisse Intl";
  src: url("../fonts/SuisseEcalIntl-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl";
  src: url("../fonts/SuisseEcalIntl-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl";
  src: url("../fonts/SuisseEcalIntl-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===== TOKENS ===== */

:root {
  --pad-x: 40px;
  --header-top: 22px;
  --amp-size: clamp(260px, 38vw, 620px);
  --form-bg: #f3f3f3;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-mark-opacity: 1;
  --ampersand-opacity: 0;
}

/* ===== RESET ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Suisse Intl", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== MAIN VIDEO ===== */

.main-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  background: #3a3a3a;
}

/* ===== FIXED HEADER ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  color: #fff;
  pointer-events: none;
  transition: color 0.45s var(--ease-out);
}

body.is-light-scroll .site-header {
  color: #111;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: var(--header-top) var(--pad-x) 0;
  pointer-events: auto;
}

.nav-right {
  display: flex;
  align-items: baseline;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  flex-shrink: 0;
}

.nav-link {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: clamp(1rem, 2vw, 2rem);
  line-height: 1.2;
  cursor: pointer;
  text-align: inherit;
  transition: opacity 0.25s ease;
}

.nav-link--bold {
  font-weight: 600;
}

.nav-link:hover {
  opacity: 0.65;
}

/* ===== LANG SWITCH ===== */

.lang-switch {
  display: flex;
  align-items: baseline;
  gap: 0.1em;
  font-size: clamp(1rem, 2vw, 2rem);
  line-height: 1.2;
  white-space: nowrap;
}

.lang-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-weight: 400;
  opacity: 0.42;
  cursor: pointer;
  transition: opacity 0.25s ease, font-weight 0.25s ease;
}

.lang-btn.is-active {
  font-weight: 600;
  opacity: 1;
}

.lang-btn:hover {
  opacity: 0.75;
}

.lang-btn.is-active:hover {
  opacity: 1;
}

.lang-sep {
  opacity: 0.42;
  font-weight: 400;
  pointer-events: none;
}

/* ===== HERO ===== */

.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: var(--amp-size);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: #fff;
  user-select: none;
  pointer-events: none;
  opacity: var(--hero-mark-opacity);
  transition: opacity 0.35s var(--ease-out);
}

.hero-brand {
  position: absolute;
  bottom: var(--pad-x);
  right: var(--pad-x);
  z-index: 2;
  font-size: clamp(1.125rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  opacity: var(--hero-mark-opacity);
  transition: opacity 0.35s var(--ease-out);
}

/* ===== AMPERSAND MASK ===== */

.ampersand-mask {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: var(--amp-size);
  height: calc(var(--amp-size) * 0.8);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: var(--ampersand-opacity);
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
  mix-blend-mode: difference;
}

body.is-ampersand-visible .ampersand-mask {
  visibility: visible;
}

.ampersand-mask__fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 86'%3E%3Ctext x='50' y='68' text-anchor='middle' font-size='92' font-weight='800' font-family='Arial,sans-serif'%3E%26%3C/text%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 86'%3E%3Ctext x='50' y='68' text-anchor='middle' font-size='92' font-weight='800' font-family='Arial,sans-serif'%3E%26%3C/text%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.ampersand-mask__video {
  position: fixed;
  top: var(--mark-video-y, 50%);
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ===== SERVICES ===== */

.services {
  position: relative;
  z-index: 6;
  min-height: 100vh;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6rem, 12vw, 9rem) var(--pad-x);
}

.services-inner {
  width: 100%;
  max-width: 1200px;
  text-align: center;
  position: relative;
}

.service-word-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  overflow: hidden;
  line-height: 0.9;
  min-height: clamp(64px, 12vw, 160px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-word {
  display: inline-block;
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
  max-width: 100%;
  opacity: 1;
  transition: opacity 0.28s var(--ease-out);
  will-change: opacity;
}

.service-word.is-fading {
  opacity: 0;
}

.service-tagline {
  font-size: clamp(26px, 3.1vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: min(1500px, 94vw);
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
  position: relative;
  z-index: 1;
}

/* ===== CONTACT ===== */

.contact {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  background: #fff;
  color: #111;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr minmax(380px, 480px);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 9rem) var(--pad-x) clamp(4rem, 8vw, 6rem);
}

.contact-headline {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.contact-people {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.contact-block {
  display: grid;
  gap: 0.1em;
}

.contact-name,
.contact-phone,
.contact-email {
  font-size: clamp(1.125rem, 2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.contact-phone,
.contact-email {
  transition: opacity 0.25s ease;
}

.contact-phone:hover,
.contact-email:hover {
  opacity: 0.55;
}

.contact-email {
  display: inline-block;
  margin-top: 0.5rem;
}

/* ===== FORM ===== */

.contact-form-wrap {
  width: 100%;
  justify-self: end;
}

.contact-form {
  width: min(480px, 100%);
  margin-left: auto;
  background: var(--form-bg);
  padding: clamp(28px, 3.5vw, 44px) clamp(28px, 4vw, 48px);
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.15rem;
}

.field-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #111;
  border-radius: 0;
  padding: 0.25rem 0 0.4rem;
  font-size: 0.9375rem;
  font-weight: 400;
  outline: none;
}

.field textarea {
  min-height: 4.5rem;
  resize: vertical;
  line-height: 1.45;
  border: 1px solid #111;
  padding: 0.55rem 0.65rem;
  margin-top: 0.2rem;
}

.field input:focus,
.field textarea:focus {
  border-color: #555;
}

.field--checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 400;
  margin-top: 0.4rem;
}

.field--checkbox input {
  width: 14px;
  height: 14px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #111;
}

.contact-submit {
  justify-self: center;
  margin-top: 0.6rem;
  background: #111;
  color: #fff;
  border: none;
  padding: 0.65rem 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.contact-submit:hover {
  opacity: 0.78;
}

.contact-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.8125rem;
  min-height: 1rem;
  text-align: center;
}

.form-status.is-error {
  color: #b00020;
}

.form-status.is-success {
  color: #0d6b3a;
}

/* ===== CUSTOM CURSOR ===== */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  transition: width 0.18s var(--ease-out), height 0.18s var(--ease-out), opacity 0.2s var(--ease-out);
  z-index: 9999;
  opacity: 0;
  mix-blend-mode: difference;
}

body.cursor-ready .cursor-dot {
  opacity: 1;
}

.cursor-dot.is-hover {
  width: 34px;
  height: 34px;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot {
    display: none;
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .contact-form {
    margin-left: 0;
    width: 100%;
  }

  .service-tagline {
    max-width: none;
  }
}

@media (max-width: 640px) {
  :root {
    --pad-x: 22px;
    --header-top: 16px;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .nav-right {
    gap: 1.1rem;
    margin-left: auto;
  }

  .nav-link,
  .lang-switch {
    font-size: clamp(0.9375rem, 4vw, 1.125rem);
  }

  .service-word-wrap {
    min-height: clamp(44px, 13vw, 80px);
  }

  .service-word {
    font-size: clamp(40px, 12vw, 78px);
  }

  .service-tagline {
    font-size: clamp(20px, 5.2vw, 30px);
    line-height: 1.18;
  }

  .hero-brand {
    bottom: calc(var(--pad-x) + 4px);
  }

  .contact-headline {
    font-size: clamp(2rem, 8.5vw, 3rem);
  }

  .contact-form {
    padding: 24px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
