/* =========================================================
   DARYON HOMES — Coming Soon
   Same palette and type as the approved site (design/):
   black · graphite · silver + "Aegean turquoise"
   Scene: the Dari griffin capital on a terrace over the Bosphorus
   ========================================================= */

:root {
  --black: #06090a;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .2);
  --text: #eef0f0;
  --muted: #b4bcbd;
  --dim: #87908f;
  --metal: linear-gradient(115deg, #a8aaaf 0%, #f2f3f5 22%, #bcbdc3 40%, #ffffff 55%, #b2b3b9 72%, #e8e9ec 100%);

  --accent: #6fc3ba;
  --accent-hi: #96d8d0;
  --accent-rgb: 111, 195, 186;
  --on-accent: #062321;
  --metal-accent: linear-gradient(115deg, #62baaf 0%, #bdf0e9 26%, #7fd0c6 46%, #d4f6f1 60%, #68bdb3 78%, #a6e2da 100%);

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-brand: "Cinzel", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, sans-serif;

  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body {
  min-height: 100svh; background: var(--black); color: var(--text);
  font-family: var(--f-body); font-size: 15px; line-height: 1.6; font-weight: 300;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.js body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 4px; border-radius: 4px; }
.sprite { position: absolute; }

/* ---------- preloader ---------- */
.preloader { display: none; position: fixed; inset: 0; z-index: 100; background: #050505; flex-direction: column; align-items: center; justify-content: center; gap: 26px; clip-path: inset(0); transition: clip-path 1.2s var(--ease), visibility 0s 1.2s; }
.js .preloader { display: flex; }
body.is-loaded .preloader { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader__logo { position: relative; width: clamp(150px, 15vw, 210px); aspect-ratio: 1; overflow: hidden; }
.preloader__logo img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.06) translateY(8px); animation: preIn 1s .05s var(--ease-out) forwards; }
.preloader__shine { position: absolute; inset: 0; mix-blend-mode: overlay; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%); transform: translateX(-100%); animation: shine 2.2s .3s var(--ease) infinite; }
.preloader__bar { width: 150px; height: 1px; background: var(--line); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); animation: bar 1.1s var(--ease) forwards; }
@keyframes preIn { to { opacity: 1; transform: none; } }
@keyframes shine { to { transform: translateX(100%); } }
@keyframes bar { to { transform: scaleX(1); } }

.grain { position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-5%); } 60% { transform: translate(-6%,-2%); } 80% { transform: translate(5%,4%); } }

/* ---------- scene ---------- */
.scene { position: fixed; inset: 0; overflow: hidden; background: var(--black); }
.scene__sky { position: absolute; inset: -6px -1.2% -2%; will-change: transform; transition: scale 3.6s var(--ease-out) .1s; transform-origin: 50% 46%; }
.js body:not(.is-loaded) .scene__sky { scale: 1.2; }   /* starts close, settles as the curtain lifts */
.scene__img, .scene__fx { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 0%; }   /* the griffins stay in frame */
.scene__fx { pointer-events: none; opacity: 0; transition: opacity 1.4s; }
.scene__fx.is-on { opacity: 1; }

/* the text sits in the sky; the city and the water below stay clear */
.scene__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(4,9,10,.88) 0%, rgba(4,9,10,.5) 8%, rgba(4,9,10,0) 17%);
}
.scene__shade::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 38vw;
  background: linear-gradient(180deg, rgba(4,16,22,.82) 0, rgba(4,16,22,.7) 25vw, rgba(4,16,22,0) 36vw);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14vw);
  mask-image: linear-gradient(90deg, transparent, #000 14vw);
}

/* ---------- stage ---------- */
.stage { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; padding: 0 3vw 0 49vw; overflow: hidden; }   /* the entrance offset must never add a scrollbar */

.top { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(14px, 3.4vh, 44px); }
.brand { display: flex; align-items: center; gap: clamp(12px, 1vw, 20px); }
.brand__mark { width: auto; height: clamp(40px, 6vh, 66px); flex: none; filter: drop-shadow(0 2px 14px rgba(0, 20, 22, .55)); }
.brand__word { font-family: var(--f-brand); font-weight: 400; font-size: clamp(1.5rem, min(2.5vw, 4.6vh), 3.1rem); line-height: 1.1; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; filter: drop-shadow(0 2px 14px rgba(0, 20, 22, .55)); }
.brand__a, .brand__b { background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: metal 9s linear infinite; }
.brand__a { background-image: var(--metal); }
.brand__b { background-image: var(--metal-accent); }
@keyframes metal { to { background-position: -200% 0; } }

.rule { display: flex; align-items: center; gap: 12px; width: min(420px, 74%); margin-top: clamp(8px, 1.6vh, 18px); color: var(--accent-hi); }
.rule svg { width: 18px; height: 18px; flex: none; fill: currentColor; animation: spin 40s linear infinite; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; }
.rule::before { background: linear-gradient(270deg, rgba(var(--accent-rgb), .9), transparent); }
.rule::after { background: linear-gradient(90deg, rgba(var(--accent-rgb), .9), transparent); }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow { font-size: clamp(10.5px, .68vw, 13px); font-weight: 500; letter-spacing: .42em; text-indent: .42em; text-transform: uppercase; color: var(--accent-hi); margin-top: clamp(8px, 1.7vh, 20px); }
.soon { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: min(5.6vw, 12vh); line-height: 1; letter-spacing: -.012em; padding: .04em .1em .12em; margin-top: -.02em; background: var(--metal); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: metal 8s linear infinite; filter: drop-shadow(0 4px 26px rgba(0, 24, 26, .6)); }

/* ---------- band: language tabs, text and contact ---------- */
.band { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(9px, 1.7vh, 22px); padding-top: clamp(4px, 1.2vh, 16px); }

.tabs { display: none;     border-bottom: 1px solid #e1e1e15c;}
.js .tabs { display: inline-flex; }
.tab { position: relative;     padding: 5px 10px 8px;
    background: #e2e2e226;
    backdrop-filter: blur(5px); border: 0; cursor: pointer; font-family: var(--f-body); font-size: clamp(10.5px, .7vw, 13px); font-weight: 500; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent-hi); transform: scaleX(0); transition: transform .6s var(--ease-out); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text);    background: #6eccdc38; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

/* both panels share one cell, so the page keeps its height when the language changes */
.panels { width: 100%; }
.js .panels { display: grid; }
.about p { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.2rem, min(1.46vw, 3.1vh), 1.9rem); line-height: 1.32; color: rgba(238, 240, 240, .96); text-wrap: pretty; text-shadow: 0 1px 12px rgba(2, 12, 16, .7); }
.about .about__soon { font-style: italic; color: var(--accent-hi); margin-top: .2em; }
.js .about { grid-area: 1 / 1; transition: opacity .55s var(--ease-out), translate .55s var(--ease-out), visibility 0s; }
.js .about:not(.is-active) { opacity: 0; visibility: hidden; translate: 0 10px; transition: opacity .25s, translate .25s, visibility 0s .25s; }

/* contact: the rosette medallion from the first idea, in the page's silver and turquoise */
.cta { display: inline-flex; align-items: center; gap: clamp(12px, 1.1vw, 20px); text-align: left; }
.cta__medal { width: clamp(52px, min(4.2vw, 9vh), 84px); height: auto; flex: none; filter: drop-shadow(0 6px 16px rgba(0, 14, 18, .6)); transition: transform 1.4s var(--ease-out); }
.cta:hover .cta__medal { transform: rotate(45deg); }
.cta__body { position: relative; display: flex; flex-direction: column; gap: 5px; padding-bottom: 8px; }
.cta__body::before, .cta__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; }
.cta__body::before { background: rgba(255, 255, 255, .34); }
.cta__body::after { background: var(--accent-hi); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.cta:hover .cta__body::after { transform: scaleX(1); }
.cta__body b { display: flex; align-items: center; gap: 16px; font-family: var(--f-brand); font-weight: 400; font-size: clamp(.98rem, 1.1vw, 1.36rem); letter-spacing: .24em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; color: var(--text); text-shadow: 0 1px 12px rgba(2, 12, 16, .85); }
.cta__arrow { width: 1.2em; height: 1.2em; flex: none; margin-left: auto; fill: none; stroke: var(--accent-hi); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); }
.cta:hover .cta__arrow { transform: translateX(5px); }
.cta__body small { display: flex; align-items: center; gap: 8px; font-size: clamp(12.5px, .82vw, 15.5px); font-weight: 400; letter-spacing: .08em; line-height: 1.2; white-space: nowrap; color: rgba(238, 240, 240, .92); text-shadow: 0 1px 10px rgba(2, 12, 16, .9); }
.cta__wa { width: 1.15em; height: 1.15em; flex: none; fill: var(--accent-hi); }

.foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 22px; margin-top: auto; padding: clamp(7px, 1.2vh, 12px) 0 clamp(10px, 1.8vh, 20px); border-top: 1px solid var(--line); }
.foot p { font-family: var(--f-display); font-size: clamp(.98rem, .98vw, 1.16rem); }
.foot i { display: inline-block; width: 1px; height: .85em; margin: 0 .5em; vertical-align: -.06em; background: var(--line-2); }
.foot em { color: var(--accent-hi); }
.foot small { font-size: 11px; color: var(--muted); }

/* ---------- entrance ---------- */
.js [data-in] { opacity: 0; translate: 0 22px; transition: opacity 1.2s var(--ease-out), translate 1.2s var(--ease-out); transition-delay: calc(.75s + var(--d, 0s)); }
.js body.is-loaded [data-in] { opacity: 1; translate: 0 0; }

/* ---------- stacked: picture first, text below ---------- */
@media (max-width: 1100px) {
  :root { --scene-h: min(86svh, 118vw); }
  .scene { position: absolute; bottom: auto; height: var(--scene-h); }
  .scene__sky { inset: 0; }
  .scene__img, .scene__fx { object-position: 0% 0%; }   /* narrow screens crop the picture: keep the whole capital */
  .scene__shade { background: linear-gradient(180deg, rgba(4,9,10,0) 72%, rgba(4,9,10,.86) 92%, var(--black) 100%); }
  .scene__shade::before { display: none; }

  .stage { padding: calc(var(--scene-h) - 56px) 0 0; }
  .top { padding: 0 20px; }
  .brand__mark { height: 44px; }
  .brand__word { font-size: clamp(1.4rem, 5.6vw, 2.4rem); }
  .soon { font-size: clamp(3.4rem, 17vw, 6.4rem); }
  .eyebrow { font-size: 11px; margin-top: 16px; }
  .rule { margin-top: 14px; }

  .band { width: min(100%, 640px); gap: 18px; margin: 12px auto 0; padding: 0 20px; }
  .about p { font-size: 1.22rem; line-height: 1.4; }
  .cta__medal { width: 64px; }
  .foot { flex-direction: column; align-items: center; text-align: center; width: min(100%, 640px); margin: 26px auto 0; padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); border-top: 0; }
  .foot p { font-size: 1.06rem; }
}
/* landscape tablets: the whole picture fills the first screen */
@media (min-width: 601px) and (max-width: 1100px) and (orientation: landscape) {
  :root { --scene-h: 100svh; }
  .stage { padding-top: calc(var(--scene-h) - 36px); }
}
@media (max-width: 480px) {
  .foot i { display: none; }
  .foot em { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .preloader__logo img { opacity: 1; transform: none; }
  .preloader__bar span { transform: scaleX(1); }
}
