/* Tangelo. One stylesheet for the page. The text sits over a fixed 3D scene
   drawn by scene.js; without the scene the same layout sits on a static poster.
   No third-party resources: the fonts are self-hosted. */

:root{
  --bg:#070b16;
  --panel:rgba(9,13,24,.82);
  --line:rgba(255,255,255,.10);
  --line-2:rgba(255,255,255,.18);
  --ink:#eef1f6;
  --ink-2:#aab4c5;
  --ink-3:#7f8a9c;
  --brand:#f58a1f;
  --brand-2:#ffa64a;
  --r:10px;
  --gut:clamp(18px,5vw,48px);
  --maxw:1120px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:76px;overflow-x:hidden;overflow-x:clip}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden;overflow-x:clip;width:100%}
a{color:var(--brand-2);text-decoration:none}
a:hover{color:var(--brand)}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:4px}
h1,h2,h3,p{margin:0}
.wrap{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--gut)}
main,footer.site{overflow-x:hidden;overflow-x:clip}
.skip{position:absolute;left:-9999px;top:0}
.skip:focus{left:var(--gut);top:12px;z-index:50;background:var(--brand);color:#111;padding:10px 16px;border-radius:8px}

/* The fixed backdrop: poster first, canvas fades in over it once it has drawn. */
/* Its height is the large viewport, which stays put when a phone's address bar slides away. */
.scene{position:fixed;top:0;left:0;right:0;height:100vh;height:100lvh;z-index:-1;background:var(--bg) url(poster.jpg) center/cover no-repeat}
.scene canvas{display:block;width:100%;height:100%;opacity:0;transition:opacity .9s ease}
.gl .scene canvas{opacity:1}
.scene::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to bottom,rgba(6,9,18,.50) 0,rgba(6,9,18,.10) 24%,rgba(6,9,18,.10) 55%,rgba(6,9,18,.55) 100%)}
html:not(.gl) .scene::after{background:rgba(6,9,18,.5)}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:9px;padding:12px 20px;border-radius:8px;font-weight:600;font-size:.95rem;line-height:1.2;
  border:1px solid var(--line-2);color:var(--ink);background:rgba(10,14,26,.72);transition:border-color .15s,background .15s}
.btn:hover{color:var(--ink);border-color:var(--brand)}
.btn.primary{background:var(--brand);border-color:var(--brand);color:#14100a}
.btn.primary:hover{background:var(--brand-2);border-color:var(--brand-2);color:#14100a}
.btn svg{width:17px;height:17px;flex:none}
.actions{display:flex;flex-wrap:wrap;gap:12px}

/* Header. It starts with the menu icon and the flags. scene.js draws the brand
   and the two hero buttons over the hero and carries them up here on scroll. */
header.site{position:sticky;top:0;z-index:20;background:rgba(6,9,18,.62);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
header.site .bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px}
.brandline{display:flex;align-items:center;min-width:0}
.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-weight:700;font-size:1.12rem;letter-spacing:-.02em}
.brand img{width:30px;height:30px;display:block;transform-origin:50% 50%}
.brand .word{display:block;white-space:nowrap;transform-origin:50% 50%}
.tools{position:relative;display:flex;align-items:center;gap:14px;margin-left:auto}
.quick{display:flex;gap:8px}
.quick .btn{padding:8px 14px;font-size:.84rem;gap:7px;white-space:nowrap}
.quick .btn svg{width:15px;height:15px}

/* Language switch: flags. The two-letter code stays in the markup for screen readers. */
.langs{display:flex;align-items:center;gap:10px}
.langs .lang-btn{position:relative;display:block;width:30px;height:20px;padding:0;border:0;border-radius:4px;cursor:pointer;font-size:0;color:transparent;
  background-color:transparent;background-position:center;background-size:cover;background-repeat:no-repeat;box-shadow:0 0 0 1px rgba(255,255,255,.22);opacity:.5;transition:opacity .15s}
.langs .lang-btn::after{content:"";position:absolute;inset:-12px -5px}
.langs .lang-btn:hover{opacity:1}
.langs .lang-btn.active{opacity:1;box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--brand)}
[lang="tr"].lang-btn,.flag[lang="tr"]{background-image:url(flags/tr.svg)}
[lang="en"].lang-btn,.flag[lang="en"]{background-image:url(flags/en.svg)}

/* Docking parts stay hidden until the script has placed them. Without the
   dock (reduced motion, no JavaScript) they simply sit in the header. */
.landing .dockable{opacity:0}
.quick .btn{pointer-events:none}
.brand-on .landing .dockable{opacity:1}
.brand-on:not(.brand-live) .quick .btn{pointer-events:auto}
.brand-live .hero .mark,.brand-live .hero .heroword{opacity:0}

/* Menu: opened by the icon, the logo or the name. A <details>, so it needs no script. */
.menu{position:relative}
.menu>summary{list-style:none;cursor:pointer;border-radius:8px}
.menu>summary::-webkit-details-marker{display:none}
.burger{width:22px;height:22px;flex:none;opacity:.85;transition:color .15s}
.menu>summary:hover .burger,.menu[open] .burger{color:var(--brand);opacity:1}
.menu-panel{position:absolute;top:calc(100% + 16px);left:0;z-index:30;display:grid;gap:2px;min-width:240px;padding:10px;border-radius:12px;
  background:#0a0e1a;box-shadow:0 0 0 1px rgba(255,255,255,.12),0 18px 50px rgba(0,0,0,.6)}
.menu-panel a{display:block;padding:9px 12px;border-radius:8px;color:var(--ink);font-size:.96rem;font-weight:500}
.menu-panel a:hover{background:rgba(255,255,255,.08);color:var(--ink)}
.menu-panel hr{width:auto;border:0;border-top:1px solid var(--line);margin:6px 4px}
.menu-panel .lang-row{display:flex;gap:4px}
.menu-panel .lang-btn{flex:1;padding:8px 6px;border:0;border-radius:8px;background:none;color:var(--ink-2);font:inherit;font-size:.88rem;cursor:pointer}
.menu-panel .lang-btn:hover{background:rgba(255,255,255,.08);color:var(--ink)}
.menu-panel .lang-btn.active{color:var(--brand);background:rgba(245,138,31,.12)}

/* Hero */
.hero{min-height:calc(100vh - 65px);min-height:calc(100svh - 65px);display:flex;align-items:center;text-align:center;padding:3vh 0 8vh}
.hero .wrap{display:flex;justify-content:center}
.hero .panel{position:relative;max-width:50rem;text-shadow:0 1px 16px rgba(4,6,14,.85)}
.hero .panel::before{content:"";position:absolute;inset:-2rem -3rem;z-index:-1;border-radius:50%;background:rgba(5,8,17,.62);filter:blur(40px);pointer-events:none}
.hero .mark{display:block;width:clamp(72px,9vw,96px);height:auto;margin:0 auto 6px}
.heroword{display:block;font-size:clamp(2.1rem,5.4vw,3.3rem);font-weight:700;letter-spacing:-.02em;line-height:1.1;margin-bottom:18px}
.badge{display:inline-flex;align-items:center;gap:12px;margin-bottom:16px;color:var(--ink-2);font-size:.9rem;font-weight:500;letter-spacing:.01em}
.badge i{width:1px;height:14px;background:var(--line-2)}
.hero h1{font-size:clamp(2.2rem,5.6vw,4.1rem);line-height:1.06;letter-spacing:-.03em;font-weight:700;margin-bottom:20px}
.hero h1 .accent{color:var(--brand)}
.hero .lede{max-width:40rem;margin:0 auto;color:var(--ink);font-size:clamp(1rem,1.9vw,1.16rem)}
.hero .actions{justify-content:center;margin-top:28px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);margin:40px auto 0;max-width:44rem;border-top:1px solid var(--line-2)}
.stats div{padding:18px 8px 0;border-left:1px solid var(--line)}
.stats div:first-child{border-left:0}
.stats dt{font-size:clamp(1.5rem,3.4vw,2.1rem);font-weight:700;letter-spacing:-.02em;line-height:1.1}
.stats dd{margin:4px 0 0;color:var(--ink-2);font-size:.82rem}

/* Sections: a short heading block, then plain panels on a grid. The gaps
   between sections leave the city in view. */
.block{padding:clamp(90px,20vh,200px) 0 0}
.block:last-of-type{padding-bottom:clamp(60px,12vh,120px)}
.head{position:relative;max-width:44rem;margin-bottom:28px;text-shadow:0 1px 16px rgba(4,6,14,.9)}
.head::before{content:"";position:absolute;inset:-1.6rem -2.4rem;z-index:-1;border-radius:40%;background:rgba(5,8,17,.66);filter:blur(30px);pointer-events:none}
.label{color:var(--brand);font-weight:600;font-size:.9rem;margin-bottom:8px}
.block h2{font-size:clamp(1.8rem,4.4vw,2.8rem);line-height:1.1;letter-spacing:-.03em;font-weight:700;margin-bottom:12px}
.block h2 .muted{color:var(--ink-2)}
.desc{color:var(--ink);font-size:clamp(1rem,1.8vw,1.1rem);max-width:38rem}
.cards{display:grid;gap:14px;margin:0;padding:0;list-style:none}
.cards.three{grid-template-columns:repeat(3,1fr)}
.cards.four{grid-template-columns:repeat(4,1fr)}
.cards.two{grid-template-columns:repeat(2,1fr)}
.cards.narrow{max-width:38rem}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:22px 22px 24px}
.card h3{font-size:1.05rem;font-weight:650;letter-spacing:-.01em;margin-bottom:8px}
.card p{color:var(--ink-2);font-size:.94rem}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 0;padding:0;list-style:none}
.tags li{padding:3px 9px;border:1px solid var(--line-2);border-radius:999px;color:var(--ink-2);font-size:.76rem;font-weight:500}
.steps .num{display:grid;place-items:center;width:30px;height:30px;margin-bottom:14px;border-radius:8px;background:rgba(245,138,31,.14);color:var(--brand);font-weight:700;font-size:.9rem}
.card.lang{display:flex;align-items:center;gap:16px}
.flag{flex:none;width:42px;height:28px;border-radius:5px;background-position:center;background-size:cover;box-shadow:0 0 0 1px rgba(255,255,255,.18)}
.card.lang h3{margin-bottom:2px}
.card.project{padding:0;overflow:hidden;display:flex;flex-direction:column}
.card.project img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:top;border-bottom:1px solid var(--line)}
.card.project .body{padding:22px 22px 24px;display:flex;flex-direction:column;gap:10px;flex:1}
.card.project .btn{margin-top:auto;align-self:flex-start;padding:9px 16px;font-size:.9rem}
.card.project h3{margin:0}
.card.project .more{font-size:.86rem}

.contact .actions{margin:4px 0 26px}
address.card{max-width:26rem;font-style:normal;color:var(--ink-2);font-size:.95rem;line-height:1.7}
address.card h3{color:var(--ink)}

footer.site{margin-top:clamp(40px,8vh,90px);padding:34px 0 38px;border-top:1px solid var(--line);background:rgba(5,8,16,.86)}
footer.site .wrap{display:flex;flex-wrap:wrap;gap:18px 40px;align-items:flex-start;justify-content:space-between}
.fbrand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:1.05rem;letter-spacing:-.02em}
.fine{max-width:44rem;color:var(--ink-3);font-size:.84rem;line-height:1.7}
.fine p+p{margin-top:6px}

/* Tablets and phones */
@media (max-width:900px){
  .cards.three,.cards.four{grid-template-columns:repeat(2,1fr)}
  .quick .btn{width:36px;height:36px;padding:0;justify-content:center}
  .quick .txt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
}
@media (max-width:620px){
  .cards.three,.cards.four,.cards.two{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .stats div:nth-child(3){border-left:0}
  .stats div:nth-child(n+3){margin-top:14px;border-top:1px solid var(--line)}
  .block{padding-top:clamp(70px,14vh,120px)}
  /* the soft backings must not reach past the screen edge, or the page can be dragged sideways */
  .hero .panel::before{inset:-1.5rem -10px}
  .head::before{inset:-1.2rem -10px}
}
/* Narrow phones: the flags sit where the buttons will dock and give way to them;
   the menu still offers both languages. */
@media (max-width:560px){
  .brand{gap:8px;font-size:1.02rem}
  .brand img{width:26px;height:26px}
  .tools .langs{position:absolute;right:0;top:50%;margin-top:-9px;gap:8px}
  .langs .lang-btn{width:27px;height:18px}
  .brand-on:not(.brand-live) .tools .langs{display:none}
  .menu-panel{position:fixed;top:74px;left:var(--gut);right:var(--gut);min-width:0}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important}
}
@media print{
  .scene,header.site{display:none}
  body{background:#fff;color:#000}
  .card{background:none;border-color:#bbb}
  .card p,.desc,.fine,.stats dd,address.card{color:#222}
}
/* The note above the button that opens a tool which loads from other servers. */
.page .consent{margin:22px 0 0;padding:16px 18px;border:1px solid var(--line-2,rgba(255,255,255,.16));border-left:3px solid var(--brand);border-radius:10px;font-size:.95rem;line-height:1.6;max-width:72ch}
