@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,500;1,500&display=swap");

:root {
  color-scheme: dark;
  --ink: #11110f;
  --cream: #f3f0e7;
  --muted: #b9b3a7;
  --olive: #a4b27d;
  --lime: #c5df73;
  --line: rgba(243, 240, 231, 0.2);
  --glass: rgba(19, 18, 15, 0.82);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #0b0b09; color: var(--cream); font-family: "Manrope", sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.office { position: relative; min-height: 100svh; overflow: hidden; background: #0b0b09; }
.scene { position: fixed; inset: 0; overflow: hidden; perspective: 1200px; background: #090805; }
.scene__image { position: absolute; inset: -4%; background: url("/assets/melat-office-dusk.png") center / cover no-repeat; transform: scale(1.06) translate3d(var(--scene-x, 0), var(--scene-y, 0), 0); transition: transform 1.4s cubic-bezier(.2,.8,.2,1), filter 1.2s ease; filter: brightness(.78) saturate(.9); will-change: transform; }
.office.is-entered .scene__image { filter: brightness(.9) saturate(1.02); }
.scene__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,4,.62), transparent 38%, transparent 70%, rgba(5,5,4,.22)), linear-gradient(0deg, rgba(5,5,4,.45), transparent 30%); pointer-events: none; }

.office-nav { position: fixed; z-index: 20; inset: 0 0 auto; height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 3.5vw; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(10,10,8,.82), rgba(10,10,8,.48)); backdrop-filter: blur(18px); }
.office-brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; font-size: 15px; }
.office-brand__mark { width: 38px; height: 38px; border: 1px solid rgba(243,240,231,.5); border-radius: 50%; display: grid; place-items: center; font-family: "DM Mono"; font-size: 13px; }
.office-nav__right { display: flex; align-items: center; gap: 22px; font-size: 12px; }
.office-nav__right a { color: var(--cream); text-decoration: none; border-bottom: 1px solid transparent; padding: 8px 0; }
.office-nav__right a:hover { border-color: var(--olive); }
.presence { color: var(--muted); font-family: "DM Mono"; letter-spacing: .04em; }
.presence i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); }

.arrival { position: fixed; z-index: 12; left: 6vw; top: 50%; max-width: 560px; transform: translateY(-45%); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1), visibility .8s; }
.arrival::before { content: ""; position: absolute; inset: -40px -48px; z-index: -1; border: 1px solid rgba(243,240,231,.15); background: rgba(8,8,6,.48); backdrop-filter: blur(14px); }
.eyebrow { margin: 0 0 30px; color: var(--olive); font: 400 12px/1.4 "DM Mono"; letter-spacing: .16em; }
.arrival h1 { margin: 0; font-weight: 300; font-size: clamp(54px, 6.7vw, 108px); line-height: .92; letter-spacing: -.065em; }
.arrival > p:not(.eyebrow) { max-width: 480px; margin: 30px 0 34px; color: #d0cbbf; font-size: 16px; line-height: 1.7; }
.enter-button { min-width: 180px; border: 1px solid rgba(243,240,231,.55); border-radius: 999px; background: rgba(8,8,6,.44); padding: 15px 24px; cursor: pointer; transition: .3s ease; }
.enter-button:hover { background: var(--olive); color: #13130f; border-color: var(--olive); transform: translateY(-2px); }
.office.is-entered .arrival { opacity: 0; visibility: hidden; transform: translateY(-40%) scale(.97); pointer-events: none; }

.hotspot { position: fixed; z-index: 8; display: flex; align-items: center; gap: 9px; border: 0; background: transparent; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.office.is-entered .hotspot { opacity: 1; pointer-events: auto; transform: none; }
.hotspot span { position: relative; width: 17px; height: 17px; border-radius: 50%; border: 1px solid rgba(245,241,229,.9); background: rgba(197,223,115,.18); box-shadow: 0 0 0 8px rgba(197,223,115,.08), 0 0 26px rgba(197,223,115,.55); }
.hotspot span::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--lime); }
.hotspot b { padding: 7px 9px; background: rgba(12,12,10,.66); border: 1px solid rgba(243,240,231,.15); font: 400 10px/1 "DM Mono"; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; backdrop-filter: blur(8px); }
.hotspot:hover span { transform: scale(1.15); }
.hotspot--shelf { left: 17%; top: 31%; }
.hotspot--desk { left: 42%; top: 58%; }
.hotspot--window { left: 61%; top: 31%; }
.hotspot--gallery { right: 8%; top: 31%; }
.hotspot--lounge { right: 16%; bottom: 22%; }

.station-panel { position: fixed; z-index: 30; top: 82px; right: 0; bottom: 0; width: min(540px, 100%); padding: 72px 54px 50px; overflow: auto; border-left: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(26px); transform: translateX(102%); transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.station-panel.is-open { transform: none; }
.station-panel.is-gallery { width: min(760px, 100%); }
.panel-close { position: absolute; right: 28px; top: 24px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 5px 0; cursor: pointer; color: var(--muted); font: 11px "DM Mono"; text-transform: uppercase; letter-spacing: .1em; }
.station-kicker { margin: 0 0 20px; color: var(--olive); font: 11px "DM Mono"; letter-spacing: .14em; }
.station-panel h2 { margin: 0 0 24px; font-size: clamp(40px, 5vw, 68px); font-weight: 300; line-height: 1; letter-spacing: -.055em; }
.station-panel p { color: #c8c2b7; line-height: 1.75; font-size: 15px; }
.station-note { margin: 28px 0; padding: 18px 0; border-block: 1px solid var(--line); color: var(--muted); }
.station-list { list-style: none; margin: 32px 0; padding: 0; border-top: 1px solid var(--line); }
.station-list li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.station-list small { color: var(--muted); }
.station-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.station-actions a, .station-actions button { color: var(--cream); text-decoration: none; border: 1px solid rgba(243,240,231,.35); border-radius: 999px; background: transparent; padding: 13px 17px; cursor: pointer; }
.station-actions a:hover, .station-actions button:hover { background: var(--olive); color: #11110f; }
.gallery-meta { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font: 9px/1.4 "DM Mono"; letter-spacing: .12em; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0 0 26px; }
.photo-tile { position: relative; min-width: 0; overflow: hidden; border: 0; background: #15140f; padding: 0; cursor: zoom-in; }
.photo-tile:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.photo-tile img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; filter: saturate(.82) contrast(.98); transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.photo-tile:hover img, .photo-tile:focus-visible img { transform: scale(1.045); filter: saturate(1) contrast(1.02); }
.photo-tile span { position: absolute; left: 9px; bottom: 8px; padding: 4px 6px; background: rgba(10,10,8,.68); color: var(--cream); font: 9px "DM Mono"; letter-spacing: .08em; backdrop-filter: blur(8px); }
.photo-lightbox { position: fixed; z-index: 80; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 24px; background: rgba(7,7,5,.94); backdrop-filter: blur(22px); }
.photo-lightbox__bar, .photo-lightbox__controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.photo-lightbox__bar p, .photo-lightbox__controls p { margin: 0; color: var(--muted); font: 10px "DM Mono"; letter-spacing: .1em; text-transform: uppercase; }
.photo-lightbox button { border: 1px solid rgba(243,240,231,.32); border-radius: 999px; background: transparent; color: var(--cream); padding: 10px 16px; cursor: pointer; }
.photo-lightbox button:hover, .photo-lightbox button:focus-visible { border-color: var(--olive); background: var(--olive); color: var(--ink); }
.photo-lightbox__stage { min-height: 0; display: grid; place-items: center; padding: 20px; }
.photo-lightbox__stage img { max-width: min(1100px, 94vw); max-height: calc(100svh - 170px); object-fit: contain; box-shadow: 0 30px 100px rgba(0,0,0,.48); }

.aylin { position: fixed; z-index: 40; right: 3vw; bottom: 28px; }
.aylin__launcher { display: flex; align-items: center; gap: 13px; min-width: 190px; border: 1px solid rgba(243,240,231,.34); border-radius: 999px; padding: 9px 18px 9px 10px; color: var(--cream); background: rgba(13,13,11,.78); backdrop-filter: blur(18px); cursor: pointer; box-shadow: 0 20px 70px rgba(0,0,0,.35); }
.aylin__launcher small, .aylin__panel small { display: block; color: var(--olive); font: 9px "DM Mono"; letter-spacing: .1em; }
.aylin__launcher strong { display: block; font-size: 13px; font-weight: 500; }
.aylin__orb { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid rgba(197,223,115,.6); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #efffc3, #a1b66a 40%, #222817 72%); box-shadow: 0 0 22px rgba(197,223,115,.26); }
.aylin__orb i { width: 8px; height: 8px; border-radius: 50%; background: #f4ffe0; box-shadow: 0 0 12px #e8ffac; }
.aylin__orb--small { width: 34px; height: 34px; }
.aylin__panel { position: absolute; right: 0; bottom: 0; width: min(410px, calc(100vw - 28px)); height: min(650px, calc(100svh - 110px)); display: flex; flex-direction: column; border: 1px solid rgba(243,240,231,.25); background: rgba(16,16,13,.94); backdrop-filter: blur(28px); box-shadow: 0 30px 100px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.97); transform-origin: bottom right; transition: .35s ease; }
.aylin__panel.is-open { opacity: 1; visibility: visible; transform: none; }
.aylin__panel > header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.aylin__panel > header > div { display: flex; align-items: center; gap: 11px; }
.aylin__panel > header strong { display: block; font-size: 15px; }
.aylin__panel > header button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: 10px "DM Mono"; text-transform: uppercase; }
.conversation { flex: 1; overflow-y: auto; padding: 20px 18px; scroll-behavior: smooth; }
.message { width: fit-content; max-width: 88%; margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); color: #d9d3c6; font-size: 13px; line-height: 1.55; }
.message--aylin { background: rgba(164,178,125,.1); border-radius: 2px 16px 16px 16px; }
.message--visitor { margin-left: auto; background: rgba(243,240,231,.1); border-radius: 16px 2px 16px 16px; }
.suggestions { display: flex; gap: 7px; padding: 0 18px 13px; overflow-x: auto; }
.suggestions button { flex: 0 0 auto; border: 1px solid rgba(164,178,125,.5); border-radius: 999px; padding: 8px 10px; background: transparent; color: #d5d0c5; cursor: pointer; font-size: 11px; }
.chat-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--cream); padding: 12px; outline: none; }
.chat-form input:focus { border-color: var(--olive); }
.chat-form button { border: 1px solid var(--olive); background: var(--olive); color: #11110f; padding: 0 16px; cursor: pointer; }
.contact-form { display: grid; gap: 10px; margin-top: 10px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--cream); padding: 11px 12px; outline: none; }
.contact-form textarea { min-height: 92px; resize: vertical; }
.contact-form button { border: 1px solid var(--olive); background: var(--olive); color: #11110f; padding: 12px; cursor: pointer; }
.contact-form .honeypot { position: absolute; left: -10000px; }
.contact-error { color: #e0aa9f; font-size: 11px; }

.motion-guide { position: fixed; z-index: 10; left: 3.5vw; bottom: 30px; display: flex; gap: 18px; color: rgba(243,240,231,.62); font: 9px "DM Mono"; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: .6s ease .5s; }
.office.is-entered .motion-guide { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .office-nav { height: 68px; padding: 0 18px; }
  .office-brand > span:last-child, .presence, .founder-link { display: none; }
  .arrival { left: 28px; right: 28px; top: 48%; }
  .arrival::before { inset: -26px -18px; }
  .arrival h1 { font-size: clamp(48px, 15vw, 70px); }
  .scene__image { inset: -2% -42%; background-position: 48% center; }
  .station-panel { top: 68px; padding: 70px 24px 38px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-lightbox { padding: 16px; }
  .photo-lightbox__stage { padding: 14px 0; }
  .photo-lightbox__controls p { display: none; }
  .hotspot b { display: none; }
  .hotspot--shelf { left: 9%; }
  .hotspot--desk { left: 40%; top: 56%; }
  .hotspot--window { left: 62%; top: 28%; }
  .hotspot--gallery { right: 7%; }
  .hotspot--lounge { right: 12%; }
  .motion-guide { display: none; }
  .aylin { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .scene__image { transform: scale(1.03); }
}
