/* Restonic Middle East, private preview by TSM Studio.
   Phone first; desktop in the min-width blocks. One typeface: EB Garamond.
   Palette from Restonic's own world: linen top, black side panel, logo navy, badge gold. */

:root {
  --linen: #f4f1ec;
  --linen2: #ebe6de;
  --ink: #18181b;
  --ink87: rgba(24, 24, 27, .87);
  --ink60: rgba(24, 24, 27, .6);
  --navy: #2e4a7d;
  --gold: #b48d42;
  --night: #121316;
  --rule: rgba(24, 24, 27, .12);
  --pad: 20px;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--linen); color: var(--ink);
  font: 400 18px/1.55 var(--serif); font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html.pre body { opacity: 0; }
body { transition: opacity .6s var(--ease); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0; }
em { font-style: italic; }

/* ---------- shared pieces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 24px; border-radius: 2px; background: var(--ink); color: var(--linen);
  font: 500 15px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--navy); }
.btn:active { transform: scale(.98); }
.btn-light { background: var(--linen); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--navy); }
.link {
  font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px;
}
.stitch { display: block; width: 168px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12'%3E%3Cpath d='M0 6 C 6 0, 14 0, 20 6 S 34 12, 40 6' fill='none' stroke='%23b48d42' stroke-width='1.3' stroke-dasharray='5 3' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 40px 12px repeat-x; opacity: .9; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: 64px;
  display: flex; align-items: center; gap: 16px; padding: 0 var(--pad);
  color: var(--linen); transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
.top.solid { background: rgba(244, 241, 236, .96); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.mark { display: flex; flex-direction: column; align-items: center; line-height: 1; margin-right: auto; }
.mark-name { font-size: 22px; font-weight: 500; letter-spacing: .16em; }
.mark-line { font-size: 8px; letter-spacing: .34em; margin-top: 4px; opacity: .8; }
.top.solid .mark-name { color: var(--navy); }
.nav, .top-cta { display: none; }
.menu {
  width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer;
  display: grid; place-content: center; gap: 6px;
}
.menu i { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.sheet {
  position: fixed; inset: 0; z-index: 25; background: var(--linen); padding: 96px var(--pad) 40px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.sheet.open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.sheet a { font-size: 30px; line-height: 1.25; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.sheet .sheet-call { margin-top: auto; border: 0; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
body.sheet-open .top { color: var(--ink); }
body.sheet-open .top .mark-name { color: var(--navy); }

/* ---------- hero ---------- */
/* phone: the photo whole at the top, the words below it on the dark of the side panel */
.hero { position: relative; color: var(--linen); background: var(--night); overflow: hidden; }
.hero-pic { position: relative; display: block; height: 66svh; min-height: 440px; overflow: hidden; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.04); animation: settle 2.4s var(--ease) .1s forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero-pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,19,22,.5) 0, rgba(18,19,22,0) 20%, rgba(18,19,22,0) 62%, var(--night) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 0 var(--pad) 48px; margin-top: -56px; max-width: 640px; }
.hero-kicker { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; opacity: .82; margin-bottom: 14px; }
.hero h1 { font-size: clamp(48px, 13vw, 104px); line-height: 1.02; font-weight: 400; letter-spacing: -.02em; }
.hero h1 em { color: #e9d9b6; }
.hero-lede { margin-top: 18px; font-size: 18px; line-height: 1.5; color: rgba(244,241,236,.87); max-width: 34em; }
.hero-acts { display: flex; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.hero .btn { background: var(--linen); color: var(--ink); }
.hero .btn:hover { background: #fff; color: var(--navy); }

/* ---------- hotels ---------- */
.hotels { padding: 28px 0 30px; border-bottom: 1px solid var(--rule); }
.hotels-head { text-align: center; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink60); margin-bottom: 14px; }
.belt { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.belt-track { display: flex; width: max-content; animation: belt 48s linear infinite; }
.belt-track span { font-size: 22px; font-variant: small-caps; letter-spacing: .06em; white-space: nowrap; padding: 0 22px; color: var(--ink87); }
.belt-track span::after { content: "·"; margin-left: 44px; margin-right: -22px; color: var(--gold); }
@keyframes belt { to { transform: translateX(-50%); } }

/* ---------- feel finder (the star) ---------- */
.feel { padding: 72px var(--pad) 80px; }
.feel-head h2 { font-size: clamp(36px, 9vw, 64px); line-height: 1.05; max-width: 12em; }
.feel-head p { margin-top: 12px; color: var(--ink87); max-width: 30em; }
.feel-head .stitch { margin-top: 22px; }
.feel-tabs {
  display: flex; gap: 6px; margin: 34px 0 22px; padding: 0;
  overflow-x: auto; scrollbar-width: none; touch-action: pan-x pan-y;
}
.feel-tabs::-webkit-scrollbar { display: none; }
.feel-tabs button {
  flex: none; position: relative; border: 1px solid var(--rule); background: transparent; color: var(--ink);
  flex: 1 1 auto; font: 400 17px/1 var(--serif); padding: 13px 10px 14px; border-radius: 2px; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.feel-tabs button[aria-selected="true"] { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.feel-stage { position: relative; }
.feel-panel { display: grid; gap: 26px; }
.feel-panel[hidden] { display: none; }
.feel-panel.on .fp-pic img { animation: fpin .9s var(--ease) both; }
.feel-panel.on .fp-copy > * { animation: fpup .7s var(--ease) both; }
.feel-panel.on .fp-copy > *:nth-child(2) { animation-delay: .05s; }
.feel-panel.on .fp-copy > *:nth-child(3) { animation-delay: .1s; }
.feel-panel.on .fp-copy > *:nth-child(4) { animation-delay: .15s; }
.feel-panel.on .fp-copy > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes fpin { from { opacity: 0; transform: scale(1.03); } }
@keyframes fpup { from { opacity: 0; transform: translateY(10px); } }
.fp-pic { overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 5; background: var(--linen2); }
.fp-pic img { width: 100%; height: 100%; object-fit: cover; }
.fp-feel { font-style: italic; font-size: 19px; color: var(--navy); }
.fp-copy h3 { font-size: clamp(38px, 10vw, 56px); line-height: 1.05; margin-top: 4px; }
.fp-what { margin-top: 12px; color: var(--ink87); }
.fp-specs { display: grid; grid-template-columns: .8fr 1.3fr 1fr; gap: 0 10px; margin: 22px 0 0; border-top: 1px solid var(--rule); }
.fp-specs div { padding: 12px 0 0; }
.fp-specs dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink60); }
.fp-specs dd { margin: 4px 0 0; font-size: 19px; }
.fp-more { margin: 18px 0 24px; font-size: 16px; color: var(--ink60); }

/* ---------- made in Jebel Ali ---------- */
.made { display: grid; gap: 30px; padding: 0 0 80px; }
.made-pic { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; }
.made-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.made-copy { padding: 0 var(--pad); }
.made-copy h2 { font-size: clamp(34px, 8.6vw, 56px); line-height: 1.06; max-width: 11em; }
.made-copy > p { margin-top: 14px; color: var(--ink87); max-width: 32em; }
.made-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.made-facts b { display: block; font-weight: 500; font-size: 28px; line-height: 1.1; color: var(--navy); }
.made-facts span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--ink60); }

/* ---------- smart beds (the one dark passage) ---------- */
.smart {
  display: grid; gap: 36px; padding: 80px var(--pad) 84px; background: var(--night); color: var(--linen);
}
.smart h2 { font-size: clamp(36px, 9.4vw, 64px); line-height: 1.04; }
.smart-copy > p:not(.smart-price) { margin-top: 16px; color: rgba(244,241,236,.87); max-width: 32em; }
.smart-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.smart-list li { font-size: 17px; padding-left: 18px; position: relative; color: rgba(244,241,236,.87); }
.smart-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--gold); }
.smart-price { margin: 26px 0 22px; font-size: 18px; color: rgba(244,241,236,.6); }
.smart-price b { font-weight: 500; color: var(--linen); }
.smart-pics { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; align-items: end; }
.smart-pics img { width: 100%; object-fit: cover; border-radius: 2px; }
.sp-a { aspect-ratio: 4 / 5; }
.sp-b { aspect-ratio: 3 / 4; margin-bottom: 36px; }

/* ---------- collections ---------- */
.collections { padding: 76px 0 72px; }
.col-head { padding: 0 var(--pad); }
.col-head h2 { font-size: clamp(34px, 8.6vw, 56px); line-height: 1.06; }
.col-head .stitch { margin-top: 18px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px;
  overflow-x: auto; padding: 28px var(--pad) 8px; scroll-snap-type: x proximity; scroll-padding-left: var(--pad);
  scrollbar-width: none; touch-action: pan-x pan-y; outline: 0;
}
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 2px; background: var(--linen2); transition: transform .8s var(--ease); }
.card:hover img { transform: scale(1.02); }
.c-name { margin-top: 14px; font-size: 24px; line-height: 1.15; }
.c-from { margin-top: 4px; font-size: 15px; color: var(--ink60); }

/* ---------- visit ---------- */
.visit { display: grid; gap: 36px; padding: 80px var(--pad) 88px; background: var(--linen2); }
.visit h2 { font-size: clamp(36px, 9.4vw, 64px); line-height: 1.04; max-width: 10em; }
.visit-copy > p { margin-top: 14px; color: var(--ink87); max-width: 30em; }
.rooms { margin-top: 30px; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.room { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.room h3 { font-size: 20px; font-weight: 400; }
.room a { font-size: 17px; color: var(--navy); white-space: nowrap; }
.book { display: grid; gap: 14px; background: var(--linen); padding: 24px 20px; border-radius: 2px; }
.book label span { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink60); margin-bottom: 6px; }
.book input, .book select {
  width: 100%; min-height: 48px; border: 1px solid var(--rule); border-radius: 2px; background: #fff;
  font: 400 18px/1.2 var(--serif); color: var(--ink); padding: 10px 12px; -webkit-appearance: none; appearance: none;
}
.book select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2318181b'/%3E%3C/svg%3E") no-repeat right 14px center; }
.book input:focus, .book select:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(46,74,125,.12); }
.book input.bad { border-color: #a4473c; }
.book .btn { margin-top: 6px; width: 100%; }
.book-note { font-size: 14px; color: var(--ink60); }

/* ---------- footer ---------- */
.foot { padding: 56px var(--pad) 96px; }
.foot-mark { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; color: var(--navy); }
.foot-mark .mark-name { font-size: 30px; }
.foot-mark .mark-line { font-size: 9px; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 36px; }
.foot-cols h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink60); font-weight: 400; margin-bottom: 10px; }
.foot-cols a { display: block; font-size: 17px; padding: 4px 0; }
.foot-cols a:hover { color: var(--navy); }
.foot-stitch { width: 100%; margin: 40px 0 16px; }
.foot-small { font-size: 14px; color: var(--ink60); }

/* ---------- TSM tag ---------- */
.tsmtag {
  position: fixed; left: 12px; bottom: 12px; z-index: 20; padding: 8px 12px; border-radius: 2px;
  background: rgba(244, 241, 236, .94); color: var(--ink87); font-size: 13px; letter-spacing: .04em;
  box-shadow: 0 1px 0 var(--rule), 0 6px 20px rgba(0,0,0,.08); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.tsmtag em { color: var(--gold); }
.tsmtag.away { opacity: 0; transform: translateY(8px); pointer-events: none; }
@media (max-width: 899px) { .tsmtag { left: auto; right: 12px; padding: 7px 10px; font-size: 12px; } }

/* ---------- reveal (images only, once) ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  :root { --pad: 48px; }
  html { scroll-padding-top: 84px; }
  body { font-size: 19px; }
  .top { height: 76px; }
  .nav { display: flex; gap: 30px; margin-right: 30px; }
  .nav a { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 0;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
  .nav a:hover { background-size: 100% 1px; }
  .top-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid currentColor; border-radius: 2px;
    font-size: 14px; letter-spacing: .14em; text-transform: uppercase; transition: background .35s var(--ease), color .35s var(--ease); }
  .top-cta:hover { background: var(--ink); color: var(--linen); border-color: var(--ink); }
  .menu, .sheet { display: none; }
  .mark-name { font-size: 26px; }

  /* desktop: full-bleed photo, words bottom-left over the dark base */
  .hero { min-height: 100svh; display: flex; align-items: flex-end; }
  .hero-pic { position: absolute; inset: 0; height: auto; min-height: 0; }
  .hero-pic img { object-position: 50% 40%; }
  .hero-pic::after { background: linear-gradient(90deg, rgba(10,10,12,.62) 0, rgba(10,10,12,.28) 38%, rgba(10,10,12,0) 62%), linear-gradient(180deg, rgba(10,10,12,.45) 0, rgba(10,10,12,0) 20%, rgba(10,10,12,0) 46%, rgba(10,10,12,.78) 100%); }
  .hero-copy { margin-top: 0; padding-bottom: 72px; }
  .hero-lede { font-size: 20px; }

  .feel { padding: 120px var(--pad); display: grid; grid-template-columns: 1fr 1.6fr; gap: 0 64px; align-items: start; }
  .feel-head { grid-column: 1; position: sticky; top: 120px; }
  .feel-tabs { grid-column: 1; margin: 30px 0 0; padding: 0; flex-direction: column; align-items: stretch; gap: 0; overflow: visible; }
  .feel-tabs button { text-align: left; border: 0; border-top: 1px solid var(--rule); padding: 20px 0 22px 28px; font-size: 26px; background: none; color: var(--ink60); }
  .feel-tabs button:last-child { border-bottom: 1px solid var(--rule); }
  .feel-tabs button::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
  .feel-tabs button[aria-selected="true"] { background: none; color: var(--ink); }
  .feel-tabs button[aria-selected="true"]::before { transform: scaleX(1); }
  .feel-tabs button:hover { color: var(--ink); }
  .feel-stage { grid-column: 2; grid-row: 1 / span 2; }
  .feel-panel { grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: end; }
  .fp-pic { aspect-ratio: 3 / 4; }

  .made { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; padding: 0 var(--pad) 120px 0; }
  .made-pic { aspect-ratio: auto; height: min(88vh, 820px); }
  .made-copy { padding: 0; }

  .smart { grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; padding: 120px var(--pad); }

  .collections { padding: 120px 0 110px; }
  .rail { grid-auto-columns: calc((100% - var(--pad) * 2 - 36px) / 3.4); padding-top: 40px; }

  .visit { grid-template-columns: 1fr 440px; gap: 80px; padding: 120px var(--pad); align-items: start; }
  .book { padding: 32px; }

  .foot { padding: 80px var(--pad) 72px; display: grid; grid-template-columns: 1fr 2fr; gap: 0 64px; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
  .foot-stitch, .foot-small { grid-column: 1 / -1; }
  .tsmtag { left: 20px; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
