/* Lagoon Smart Web × Dragon Media Tahiti */

:root {
  --paper: #F6F1E9;
  --paper-2: #ECE4D7;
  --ink: #141B2B;
  --ink-soft: #4B5366;
  --line: rgba(20, 27, 43, .14);
  --lagoon: #2F6FE6;
  --lagoon-deep: #1C4FB5;
  --lagoon-tint: #DCE6F7;
  --rust: #B4472B;
  --rust-deep: #8F3620;
  --cream: #F7F1E8;
  --night: #10141E;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: clamp(18px, 2.4vw, 28px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 560; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; border-radius: 6px; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(44px, 7.6vw, 112px);
  line-height: .98;
  letter-spacing: -.025em;
}
.display em, .door__title em {
  font-style: italic;
  background: linear-gradient(95deg, var(--lagoon) 10%, var(--rust) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.display--m { font-size: clamp(36px, 5vw, 68px); line-height: 1.02; }
.eyebrow, .kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow { color: var(--ink-soft); margin-bottom: 22px; }
.kicker { color: var(--ink-soft); margin-bottom: 14px; }
.lead { max-width: 52ch; margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); }
.lead strong { color: var(--ink); font-weight: 600; }

/* ---------- buttons, links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--lagoon { background: var(--lagoon); color: #fff; }
.btn--lagoon:hover { background: var(--lagoon-deep); }
.btn--rust { background: var(--rust); color: var(--cream); }
.btn--rust:hover { background: var(--rust-deep); }
.btn--cream { background: var(--cream); color: var(--ink); }
.link {
  display: inline-flex; gap: 8px; align-items: center; padding: 0 0 4px; margin-top: 26px;
  background: none; border: 0; border-bottom: 2px solid currentColor;
  font-weight: 600; text-decoration: none;
}
.tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.tag--lagoon { color: var(--lagoon-deep); }
.tag--rust { color: var(--rust); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; white-space: nowrap; }
.brand__item { display: inline-flex; align-items: center; gap: 9px; }
.brand__item img { width: 30px; height: auto; color: var(--ink); }
.brand__item--dragon img { width: 22px; }
.brand b { font-weight: 700; }
.brand__item--dragon span { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; color: var(--rust); }
.brand__x { color: var(--ink-soft); font-size: 14px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); transition: color .2s; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .nav__lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.nav__cta { padding: 11px 18px; font-size: 14px; }
.menu-btn { display: none; }

/* ---------- intro ---------- */
.intro { padding-top: clamp(48px, 8vw, 104px); }

/* ---------- the two doors ---------- */
.doors {
  display: flex; gap: 12px;
  width: calc(100% - 2 * min(var(--gutter), 24px)); margin: clamp(48px, 6vw, 80px) auto 0;
  min-height: min(88vh, 880px);
}
.door {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius);
  display: flex; flex-direction: column; isolation: isolate;
  transition: flex-grow .7s var(--ease);
}
@media (hover: hover) and (min-width: 900px) {
  .doors:hover .door { flex-grow: .8; }
  .doors .door:hover { flex-grow: 1.2; }
}
.door__text { position: relative; z-index: 2; padding: clamp(28px, 4vw, 56px); max-width: 560px; }
.door__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 28px; }
.door__title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 16px; }
.door__text > p:not(.kicker):not(.door__brand) { max-width: 42ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chips li { border: 1px solid currentColor; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; opacity: .8; }

.door--web { background: radial-gradient(120% 80% at 100% 100%, var(--lagoon-tint), var(--paper-2) 60%); }
.door--web .kicker { color: var(--lagoon-deep); }
.door .door__screen { margin: auto 0 -140px clamp(28px, 4vw, 56px); width: min(760px, 118%); transform: rotate(-1.5deg); transform-origin: left bottom; transition: transform .7s var(--ease); }
.door--web:hover .door__screen { transform: rotate(0) translateY(-10px); }

.door--film { background: var(--night); color: var(--cream); justify-content: flex-end; }
.door__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.door--film::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(12, 14, 20, .92) 0%, rgba(12, 14, 20, .55) 45%, rgba(12, 14, 20, .05) 75%);
}
.door--film .kicker { color: #F0B9A6; }
.reel-toggle {
  position: absolute; top: 18px; right: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(247, 241, 232, .4); background: rgba(16, 20, 30, .35); color: var(--cream); font-size: 11px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* ---------- browser frame ---------- */
.browser { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(20, 27, 43, .35), 0 0 0 1px rgba(20, 27, 43, .08); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #F3F1EE; border-bottom: 1px solid #E6E2DC; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D9D4CC; }
.browser__bar span { margin-left: 14px; padding: 3px 14px; border-radius: 6px; background: #fff; font-size: 12px; color: var(--ink-soft); }

/* ---------- work ---------- */
.work { padding-block: clamp(96px, 12vw, 160px) clamp(64px, 8vw, 120px); }
.section-head { margin-bottom: clamp(40px, 5vw, 72px); max-width: 820px; }
.case { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(72px, 9vw, 128px); }
.case--flip .case__media { order: 2; }
.case__text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.015em; margin: 12px 0 16px; }
.case__text > p:not(.tag) { color: var(--ink-soft); }
.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--ink); }

.film-poster { position: relative; display: block; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--night); box-shadow: 0 30px 60px -24px rgba(20, 27, 43, .45); }
.film-poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.film-poster:hover img { transform: scale(1.04); opacity: .9; }
.play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--cream); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.play::after { content: ""; position: absolute; left: 34px; top: 27px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--rust); }
.film-poster:hover .play { transform: scale(1.08); }

.films { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.film img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.film h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; margin-top: 6px; }

/* ---------- photo ---------- */
.photo { background: var(--paper-2); padding-block: clamp(80px, 10vw, 140px); }
.photo__head { margin-bottom: clamp(36px, 5vw, 56px); }
.photo__head > p:not(.kicker) { max-width: 52ch; margin-top: 18px; color: var(--ink-soft); }
.photo__strip {
  display: grid; grid-template-columns: 1.5fr .9fr 1.2fr 1fr .8fr 1fr; gap: 12px;
  height: clamp(320px, 34vw, 480px); padding-inline: min(var(--gutter), 24px);
}
.photo__strip img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.photo__strip img:nth-child(even) { margin-top: 40px; height: calc(100% - 40px); }

/* ---------- why ---------- */
.why { padding-block: clamp(96px, 12vw, 160px); }
.why__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); }
.why__list li { border-top: 1px solid var(--ink); padding-top: 22px; }
.why__n { display: block; font-family: var(--serif); font-style: italic; font-size: 56px; line-height: 1; margin-bottom: 22px;
  background: linear-gradient(95deg, var(--lagoon), var(--rust)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why__list h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.why__list p { color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact { background: var(--night); color: var(--cream); padding-block: clamp(96px, 12vw, 160px); text-align: center;
  background-image: radial-gradient(60% 50% at 15% 0%, rgba(47, 111, 230, .22), transparent 70%), radial-gradient(60% 50% at 85% 100%, rgba(180, 71, 43, .25), transparent 70%); }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__marks { display: flex; gap: 22px; align-items: flex-end; margin-bottom: 36px; color: var(--cream); }
.contact .display em { background: linear-gradient(95deg, #7FA6F2, #E59A80); -webkit-background-clip: text; background-clip: text; }
.contact .display + p { max-width: 50ch; margin: 28px 0 36px; color: rgba(247, 241, 232, .75); font-size: 18px; }
.contact__mail { margin-top: 18px; font-size: 15px; color: rgba(247, 241, 232, .6); }

/* ---------- footer ---------- */
.foot { padding-block: 40px; font-size: 14px; color: var(--ink-soft); }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.foot__brands { display: flex; gap: 22px; font-weight: 600; color: var(--ink); }
.foot__brands span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- film player ---------- */
.player { width: min(1120px, 94vw); padding: 0; border: 0; border-radius: 16px; background: #000; overflow: visible; }
.player::backdrop { background: rgba(8, 10, 14, .88); }
.player video { width: 100%; border-radius: 16px; }
.player__close { position: absolute; right: -6px; top: -52px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); font-size: 24px; line-height: 1; }

/* ---------- tablet & phone ---------- */
@media (max-width: 1240px) {
  .brand__item--lagoon span { display: none; }
}
@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-weight: 600; font-size: 14px; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .nav .nav__lang { align-self: flex-start; margin: 16px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { justify-content: center; }
  .brand__item--lagoon span { display: inline; }
}
@media (max-width: 899px) {
  .doors { flex-direction: column; min-height: 0; }
  .door { flex: none; }
  .door--web { padding-bottom: 0; }
  .door .door__screen { width: calc(100% - 28px); margin: 8px 0 -24px 28px; }
  .door--film { min-height: 640px; }
  .case, .case--flip { grid-template-columns: 1fr; }
  .case--flip .case__media { order: 0; }
  .films { grid-template-columns: repeat(2, 1fr); }
  .photo__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: auto; padding-bottom: 8px; }
  .photo__strip img, .photo__strip img:nth-child(even) { flex: 0 0 78%; height: auto; aspect-ratio: 4 / 3; margin-top: 0; scroll-snap-align: center; }
  .why__list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand__x { display: none; }
  .brand__item span { display: none; }
  .brand__item:first-child span { display: inline; }
  .films { grid-template-columns: 1fr; }
  .door--film { min-height: 600px; }
  .player__close { right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
