:root {
  --dark: #0f2a2c;
  --muted: #f3f5f5;
  --gray: #929292;
  --white: #ffffff;
  --accent: #cd7a4b;
  --text: #1c1c1c;
  --border: #e6e6e6;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* italic */

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}


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

main p,
main li,
main h3,
main h4,
main h5,
main h6 {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

main {
  flex: 1;
}

html {
  background: var(--dark);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: var(--dark);
}

.container {
  max-width: 1280px;
  margin: auto;
  padding: 0 32px;
}

section {
  padding: 90px 0;
}

h1 {
  font-size: 60px;
  font-weight: 500;
  letter-spacing: -0.01em;
  hyphens: none;
}

h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--dark);
  line-height: 1.2;
  hyphens: none;
}

h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--dark);
  line-height: 1.3;
}

p {
  color: var(--text);
  hyphens: manual;
  overflow-wrap: break-word;
}

.grid {
  display: grid;
  gap: 40px;
}

video {
  z-index: 1;
  pointer-events: none;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000;
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 44px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    background .35s cubic-bezier(.4, 0, .2, 1),
    border-color .35s cubic-bezier(.4, 0, .2, 1),
    color .35s cubic-bezier(.4, 0, .2, 1),
    box-shadow .35s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}

.btn:hover {
  text-shadow: 0 0 0.6px currentColor;
  border: 1.5px solid transparent;
}

section:not(.hero) .btn {
  min-width: 160px;
}

/* ===== primary ===== */

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border: 1.5px solid var(--gray);
}

.btn-dark:hover {
  background: color-mix(in srgb, var(--dark) 80%, black);
  border-color: var(--accent);
}

/* ===== outline ===== */

.btn-outline {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: color-mix(in srgb, var(--white) 96%, var(--dark));
  border-color: var(--accent);
}

/* ===== light ===== */

.btn-light {
  background: var(--muted);
  color: var(--dark);
  border: 1.5px solid var(--gray);
}

.btn-light:hover {
  background: var(--white);
  border-color: var(--accent);
}

/* ===== flip animation (fixed) ===== */

.btn-flip {
  perspective: 800px;
}

.btn-flip span {
  position: relative;
  display: inline-block;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  transform: translateZ(0);
}

.btn-flip span::before {
  content: attr(data-hover);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateX(-90deg) translateZ(0.1px);
  transform-origin: 50% 0;
  text-align: center;
  color: var(--accent);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.btn-flip:hover span {
  transform: rotateX(90deg) translateY(-10px);
}

/* ===== button alignment ===== */

.btn-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

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

header {
  position: sticky;
  top: 0;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 210px;
  display: block;
  margin-right: 30px;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6))
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* ================= MENU ================= */

.menu {
  justify-self: center;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu>ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.menu li {
  position: relative;
}

.menu a {
  text-decoration: none;
  color: var(--white);
  font-size: 16px;
  display: block;
  padding: 10px 0;
  font-weight: 500;
  letter-spacing: 0.02em;
  hyphens: none;
}

.menu a:hover {
  color: var(--accent);
}

.menu>ul>li:not(.has-submenu)>a {
  position: relative;
}

.menu>ul>li:not(.has-submenu)>a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.menu>ul>li:not(.has-submenu)>a:hover::after {
  width: 100%;
}

/* ================= SUBMENU ================= */

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--muted);
  border: 1px solid var(--border);
  width: max-content;
  min-width: 120px;
  flex-direction: column;
  padding: 10px 0;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  z-index: 200;
}

.submenu li {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.submenu li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1.4px solid var(--dark);
  border-radius: 50%;
  transform: translateY(-50%);
}

.submenu li::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--dark);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu li:hover {
  background: var(--white);
}

.submenu li:hover a {
  color: var(--accent);
}

.submenu li:hover::before {
  border-color: var(--accent);
}

.submenu li:hover::after {
  transform: translate(-50%, -50%) scale(1);
  background: var(--accent);
}

.submenu a {
  position: relative;
  display: block;
  width: 100%;
  padding: 6px 25px 6px 39px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--dark);
  text-decoration: none;
  cursor: pointer;
}

.submenu a:hover {
  color: var(--accent);
}

body.is-resizing .submenu {
  display: none !important;
  transition: none !important;
  animation: none !important;
}

.resize-animation-stopper * {
  transition: none !important;
  animation: none !important;
}

/* ===== MENU DISABLE TRANSITIONS ===== */

.menu.no-transition,
.menu-toggle.no-transition,
.submenu.no-transition,
.has-submenu.no-transition {
  transition: none !important;
  animation: none !important;
}

/* ===== MENU DESKTOP SETTINGS ===== */

@media(min-width:901px) {
  .submenu {
    display: flex;
    visibility: hidden;
    opacity: 0;
    height: auto !important;
    transition:
      opacity .24s ease,
      transform .32s cubic-bezier(.22, 1, .36, 1),
      visibility 0s .24s;
  }

  .has-submenu:hover>.submenu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    transition:
      opacity .24s ease,
      transform .32s cubic-bezier(.22, 1, .36, 1),
      visibility 0s 0s;
  }

  .has-submenu:hover>a {
    color: var(--accent);
  }
}

/* ================= ARROW ================= */

.has-submenu>a {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.menu-arrow {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.has-submenu:hover .menu-arrow {
  transform: rotate(180deg);
}

/* ============ LANGUAGE SWITCH ============ */

.lang-switch {
  display: inline-flex;
  margin-left: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}

.lang {
  position: relative;
  z-index: 1;
  padding: 3px 10px;
  font-size: 13px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, margin .25s ease, padding .25s ease;
  will-change: margin, padding;
}

.lang:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.lang.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.lang.active:hover {
  color: var(--accent);
}

.lang:first-child:not(.active):hover {
  margin-right: -14px;
  padding-right: 24px;
}

.lang:last-child:not(.active):hover {
  margin-left: -14px;
  padding-left: 24px;
}

.lang:not(.active) {
  opacity: .85;
}

@media(min-width:501px) {
  nav .lang-switch {
    display: none;
  }
}

/* ================= FOOTER ================= */

footer {
  min-height: 320px;
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 25px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  gap: 40px;
}

footer h4 {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  height: 2.2em;
  line-height: 1.3;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  display: inline-block;
  position: relative;
  align-self: flex-start;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
  transition: color .25s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: width .25s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-logo {
  display: flex;
  align-items: start;
  gap: 30px;
}

.footer-logo img {
  height: 150px;
  opacity: 0.95;
  align-items: center;
  pointer-events: none;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2))
    drop-shadow(-2px -2px 2px rgba(0, 0, 0, 0.4));
}

footer p {
  max-width: 500px;
  line-height: 1.8;
  color: var(--white);
  letter-spacing: .04em;
  text-align: justify;
  hyphens: manual;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: color-mix(in srgb, var(--white) 50%, transparent);
  letter-spacing: .04em;
  font-weight: 200;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 25px 0 0;
}

/* ================= HAMBURGER ================= */

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

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

@media(max-width:900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .logo {
    order: 1;
  }

  .lang-switch {
    order: 2;
    margin-left: auto;
  }

  .menu {
    position: fixed;
    top: 70px;
    right: 0;
    width: 294px;
    height: calc(100vh - 70px);
    background: var(--dark);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto;
    z-index: 100;
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
  }

  .menu.is-animating {
    transition: transform .3s ease;
  }

  .menu.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 101;
    order: 3;
    margin-left: 8px;
  }

  .menu-toggle span {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .menu>ul {
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .menu>ul>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .menu>ul>li:last-child,
  .menu>ul>li:nth-last-child(2) {
    border-bottom: none;
  }

  .menu>ul>li:not(.has-submenu)>a:hover::after {
    display: none !important;
  }

  .menu>ul>li.has-submenu.open {
    border-bottom-color: transparent;
  }

  .has-submenu {
    padding: 4px 0;
  }

  .has-submenu>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 6px;
    cursor: pointer;
  }

  .has-submenu.open .menu-arrow {
    transform: rotate(180deg);
  }

  .has-submenu.open>.submenu {
    display: flex;
  }

  .submenu {
    display: none;
    flex-direction: column;
    position: static;
    width: auto;
    transform: none;
    border: none;
    box-shadow: none;
    overflow: hidden;
    height: 0;
    transition: height .35s cubic-bezier(.4, 0, .2, 1);
    margin-top: 6px;
    padding: 0 0 0 10px;
    background: color-mix(in srgb, var(--dark) 96%, white);
    border-radius: 4px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .submenu li {
    border-bottom: none;
    padding: 0 14px;
  }

  .submenu li:hover {
    background: color-mix(in srgb, var(--dark) 90%, white);
  }

  .submenu li::before,
  .submenu li::after {
    display: none;
  }

  .submenu a {
    opacity: 0.8;
    color: var(--white);
    padding: 10px 0;
  }

  .submenu a:hover {
    opacity: 1.0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  footer p {
    max-width: 100%;
  }

  .footer-grid>div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width:500px), (min-width:901px) and (max-width:1000px) {
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu {
    justify-self: end;
    margin-right: -2px;
  }

  header .lang-switch {
    display: none;
  }
}

@media(max-width:500px) {
  body:has(.menu.active) {
    overflow: hidden;
  }

  body::after {
    content: "";
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(11, 32, 34, 0.50);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 99;
  }

  body:has(.menu.active)::after {
    opacity: 1;
    pointer-events: auto;
  }

  .footer-logo img {
    height: 120px;
  }
}



/* ============================================ 
                    SUBPAGE 
============================================ */


/* ================= TITLE ================= */

.title {
  position: relative;
  min-height: clamp(300px, 40vh, 500px);
  overflow: hidden;
  background-size: cover;
  background-position: center 30%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 0;
}

.title video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
}

.title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dark);
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
}

.title-inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 1280px;
  margin: auto;
  padding: 32px;

}

.title-heading {
  font-size: clamp(52px, 5vw, 64px);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  hyphens: none;
  position: relative;
  z-index: 2;
  color: var(--accent);
  text-align: left;
  text-shadow: var(--dark) 1px 0 10px;
  margin-bottom: 32px;
}

.title-subtitle {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: left;
  color: var(--muted);
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: full-size-kana;
  hyphens: none;
  text-shadow: var(--dark) 1px 0 10px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.title-subtitle:nth-of-type(1) {
  opacity: 0.9;
}

.title-subtitle:nth-of-type(2) {
  opacity: 1.0;
}

.title .lang-switch {
  display:none;
}

@media (max-width:500px), (min-width:901px) and (max-width:1000px) {
  .title .lang-switch {
    display: flex;
    position: absolute;
    top: 31px;
    right: 31px;
    z-index: 10;
    box-shadow: 0 0 12px rgba(15, 42, 44, 0.15), 0 0 24px rgba(15, 42, 44, 0.3);
  }
}


/* ================= QUOTE ================= */

.quote {
  position: relative;
  min-height: clamp(250px, 35vh, 400px);
  overflow: hidden;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  z-index: 0;
}

.quote video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 1;
}

.quote::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dark);
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}

/* content */
.quote-inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.quote blockquote {
  max-width: 980px;
  margin: 32px;
  color: var(--white);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-shadow: var(--dark) 1px 0 10px;
}

.quote blockquote cite {
  display: block;
  margin-top: 16px;
  margin-left: 30vw;
  font-size: 20px;
  font-style: italic;
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-align: center;
  text-shadow: var(--dark) 1px 0 10px;
}

.quote blockquote cite::before {
  content: "— ";
}

@media(max-width:600px) {
.quote blockquote {
  font-size: 20px;
}

.quote blockquote cite {
  font-size: 16px;
}
}