/* kali. — direction C "Söz bitti." ------------------------------------------------------------
   Brand guide rules: black / white / one orange; no gradients; Inter Tight for display, Inter for text;
   headlines short, tight, end with a full stop; orange appears once: the dot. */
@font-face { font-family: 'Inter Tight'; src: url(fonts/InterTight-ExtraBold.woff) format('woff'); font-weight: 800; font-display: block; }
@font-face { font-family: 'Inter Tight'; src: url(fonts/InterTight-SemiBold.woff) format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url(fonts/InterTight-Medium.woff) format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(fonts/Inter-var.woff) format('woff'); font-weight: 100 900; font-display: swap; }

:root {
  --black: #0B0B0C; --white: #F7F7F5; --orange: #FF4F14;
  --graphite: #2A2A2D; --grey: #6E6E73; --fog: #E8E8E6;
  --m: max(5.5vw, 20px);                 /* outer margin: 88 / 1600 in the guide */
  --gap: max(1.5vw, 14px);
  --fs-display: clamp(52px, 11.2vw, 232px);
  --fs-heading: clamp(30px, 3.6vw, 64px);
  --fs-lead: clamp(18px, 1.45vw, 24px);
  --fs-body: clamp(16px, 1.19vw, 19px);
  --fs-label: 13px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, 0, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--black); color: var(--white); font: 400 var(--fs-body)/1.55 'Inter', system-ui, sans-serif; overflow-x: clip; }
body.is-loading, body.is-intro { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--orange); color: var(--black); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 14px; border-radius: 99px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

/* type ----------------------------------------------------------------------------------- */
.display { font: 800 var(--fs-display)/1 'Inter Tight', sans-serif; letter-spacing: -.05em; }
.heading { font: 600 var(--fs-heading)/1.05 'Inter Tight', sans-serif; letter-spacing: -.035em; }
.lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 34em; }
.body { font-size: var(--fs-body); line-height: 1.55; max-width: 36em; }
.label { font: 500 var(--fs-label)/1.4 'Inter', sans-serif; letter-spacing: .01em; }
.eyebrow { color: var(--grey); margin-bottom: clamp(28px, 4vw, 64px); }
[data-theme="orange"] .eyebrow { color: var(--black); }
/* GL takes over the display glyphs: DOM text keeps layout, selection and screen readers */
html.gl-on .gl { color: transparent; }
html.gl-on .gl::selection { color: transparent; }

/* themes ----------------------------------------------------------------------------------- */
[data-theme="dark"] { background: var(--black); color: var(--white); }
[data-theme="light"] { background: var(--white); color: var(--black); }
[data-theme="orange"] { background: var(--orange); color: var(--black); }

/* loader ----------------------------------------------------------------------------------- */
.loader { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--black); pointer-events: none; }
.loader-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); animation: breathe 1.1s ease-in-out infinite; }
.loader-label { position: absolute; left: var(--m); bottom: 32px; color: var(--grey); }
.loader-pct { font-variant-numeric: tabular-nums; }
@keyframes breathe { 50% { transform: scale(1.7); } }
html.gl-on .loader-dot { visibility: hidden; }             /* the GL dot takes over */
body:not(.is-loading) .loader { opacity: 0; transition: opacity .5s; }
html.gl-on body:not(.is-loading) .loader { transition-delay: 0s; }

/* GL layer + DOM dot fallback --------------------------------------------------------------- */
.gl-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 30; pointer-events: none; }
.dom-dot { position: fixed; left: 0; top: 0; z-index: 31; width: 2px; height: 2px; border-radius: 50%; background: var(--orange); pointer-events: none; display: none; }

/* nav ------------------------------------------------------------------------------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--nav-h); padding: 0 var(--m);
  display: flex; align-items: center; justify-content: space-between; background: transparent !important;
  color: var(--white); transition: color .35s, opacity .6s, transform .6s var(--ease); }
.nav[data-theme="light"] { color: var(--black); }
.nav[data-theme="orange"] { color: var(--black); }
body.is-intro .nav, .nav.away { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.brand { position: relative; display: block; width: 74px; aspect-ratio: 3796 / 1819; }
.brand-word, .roof-word { position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url(assets/logo-word.png) center / 100% 100% no-repeat; mask: url(assets/logo-word.png) center / 100% 100% no-repeat; }
/* dot geometry measured on the PDF logo: cx .9404, cy .8632, r .0575 of the width */
.brand-dot, .roof-dot { position: absolute; border-radius: 50%; background: var(--orange);
  width: 11.5%; aspect-ratio: 1; left: calc(94.04% - 5.75%); top: calc(86.32% - 11.5% * 3796 / 1819 / 2); }
.nav[data-theme="orange"] .brand-dot { background: var(--white); }
.nav-links { display: flex; gap: 34px; font: 500 15px/1 'Inter', sans-serif; }
.nav-links a, .lang button { opacity: .62; transition: opacity .25s; }
.nav-links a:hover, .lang button:hover, .lang button[aria-pressed="true"] { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; gap: 10px; font: 500 13px/1 'Inter', sans-serif; letter-spacing: .02em; }
.pill { display: inline-flex; align-items: center; gap: .6em; height: 40px; padding: 0 20px; border-radius: 99px;
  font: 500 15px/1 'Inter', sans-serif; background: currentColor; transition: transform .35s var(--ease); }
.pill > *, .pill { -webkit-text-fill-color: initial; }
.nav .pill { background: var(--white); color: var(--black); }
.nav[data-theme="light"] .pill, .nav[data-theme="orange"] .pill { background: var(--black); color: var(--white); }
.pill:hover { transform: scale(1.04); }
.menu-btn { display: none; font: 500 15px/1 'Inter', sans-serif; }
.sheet { position: fixed; inset: 0; z-index: 39; background: var(--black); color: var(--white); padding: calc(var(--nav-h) + 6vh) var(--m) 32px;
  display: flex; flex-direction: column; justify-content: space-between; }
.sheet[hidden] { display: none; }
.sheet nav { display: flex; flex-direction: column; gap: 6px; font: 800 clamp(40px, 12vw, 72px)/1.02 'Inter Tight', sans-serif; letter-spacing: -.045em; }
.sheet .label { color: var(--grey); }

/* sections -------------------------------------------------------------------------------- */
.s { position: relative; padding: 0 var(--m); }
.s-hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--nav-h) + 4vh); padding-bottom: 5.5vh; }
.hero-title { margin-bottom: clamp(28px, 5.5vh, 72px); }
.hero-foot { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: var(--gap); align-items: end; color: var(--white); }
.hero-foot .label { color: var(--grey); }
.scroll-cue { display: flex; align-items: center; gap: 12px; }
.cue-line { display: block; width: 1px; height: 34px; background: currentColor; transform-origin: top; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.s-about { padding-top: 22vh; padding-bottom: 22vh; }
.about-title { max-width: 11.5em; }
.about-cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(48px, 9vh, 120px); }
.about-cols .body:first-child { grid-column: 6 / span 3; }
.about-cols .body:last-child { grid-column: 9 / span 4; color: var(--grey); }

.s-units { padding-top: 0; }
.units-pin { min-height: 100svh; padding-top: calc(var(--nav-h) + 6vh); padding-bottom: 6vh; display: grid; grid-template-columns: 1fr minmax(240px, 30%); grid-template-rows: auto 1fr; column-gap: var(--gap); }
.units-pin .eyebrow { grid-column: 1 / -1; }
.units-list { list-style: none; align-self: end; }
.u-line { font-size: clamp(52px, 9.6vw, 200px); line-height: .93; }
.units-detail { align-self: end; padding-bottom: 1.2vh; display: flex; flex-direction: column; gap: 14px; }
.units-count { color: var(--grey); font-variant-numeric: tabular-nums; }
.unit-name { display: flex; align-items: flex-end; gap: .22em; font: 500 clamp(28px, 2.6vw, 44px)/1 'Inter Tight', sans-serif; letter-spacing: -.035em; }
/* unit lockup: the real logo (letters + orange dot) + unit name, as on guide p.5 */
.lk-logo { position: relative; display: inline-block; height: .97em; aspect-ratio: 3796 / 1819; vertical-align: baseline; }

.unit-name .un-n { color: var(--grey); }
.units-note { color: var(--grey); margin-top: 18px; max-width: 26em; }

.s-creator { padding-top: 24vh; padding-bottom: 24vh; }
.creator-title { max-width: 12em; }
.creator-body { margin-top: clamp(40px, 7vh, 96px); margin-left: auto; margin-right: 8vw; color: var(--grey); }

.s-how .how-pin { min-height: 100svh; padding-top: calc(var(--nav-h) + 6vh); padding-bottom: 8vh; display: flex; flex-direction: column; }
/* a staircase: the dot bounces down three steps */
.how-list { list-style: none; display: flex; flex-direction: column; gap: clamp(18px, 3.2vh, 40px); margin-top: auto; }
.how-list li { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: clamp(20px, 2.4vw, 44px); justify-content: start; }
.how-list li:nth-child(2) { margin-left: 22vw; }
.how-list li:nth-child(3) { margin-left: 44vw; }
.how-n { grid-column: 1 / -1; color: var(--grey); margin-bottom: 6px; }
.how-w { font-size: clamp(48px, 8.2vw, 156px); }
.how-list .body { max-width: 17em; color: var(--grey); padding-bottom: .9em; transition: color .5s; }
.how-list li.on .body { color: var(--graphite); }

.roof-pin { min-height: 100svh; padding-top: calc(var(--nav-h) + 6vh); padding-bottom: 7vh; display: flex; flex-direction: column; }
.roof-title { max-width: 13em; }
.roof-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 36vh; }
.roof-units { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: clamp(30px, 4.4vw, 84px); line-height: 1; color: var(--grey); pointer-events: none; }
.roof-logo { position: relative; width: min(44vw, 640px); aspect-ratio: 3796 / 1819; }
.roof-word { color: var(--white); }
.roof-line { color: var(--grey); align-self: flex-end; }
html.gl-on .roof-dot { visibility: hidden; }           /* the travelling GL dot sits here */
html.gl-on .roof-word { clip-path: inset(0 0 0 100%); }  /* letters unroll out of the dot */
html.gl-on .roof-units { color: transparent; }

.s-contact { min-height: 100svh; padding-top: calc(var(--nav-h) + 10vh); padding-bottom: 32px; display: flex; flex-direction: column; }
.contact-title { margin-bottom: clamp(20px, 3vh, 40px); }
.contact-lead { margin-bottom: 40px; }
.pill-xl { height: 64px; padding: 0 30px; font-size: 18px; background: var(--black); color: var(--white); align-self: flex-start; }
.pill-xl .arrow { transition: transform .35s var(--ease); }
.pill-xl:hover .arrow { transform: translateX(4px); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: auto; padding-top: 12vh; }
.contact-grid dd { font: 600 clamp(18px, 1.6vw, 26px)/1.3 'Inter Tight', sans-serif; letter-spacing: -.02em; margin-top: 8px; }
.contact-grid a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.contact-grid a:hover { background-size: 100% 1px; }
.socials { display: flex; gap: 18px; flex-wrap: wrap; }
.foot { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(11, 11, 12, .25); margin-top: 48px; padding-top: 18px; }

/* reveal (DOM text) */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* mobile ---------------------------------------------------------------------------------- */
@media (max-width: 820px) {
  :root { --nav-h: 64px; --fs-display: clamp(46px, 16.5vw, 120px); }
  .nav-links, .nav .pill { display: none; }
  .menu-btn { display: block; }
  .brand { width: 62px; }
  .hero-foot { grid-template-columns: 1fr; gap: 18px; }
  .scroll-cue { display: none; }
  .s-about, .s-creator { padding-top: 16vh; padding-bottom: 16vh; }
  .about-cols { grid-template-columns: 1fr; gap: 18px; }
  .about-cols .body:first-child, .about-cols .body:last-child { grid-column: 1; }
  .units-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; row-gap: 28px; }
  .u-line { font-size: clamp(46px, 16.5vw, 110px); }
  .units-note { display: none; }
  .creator-body { margin-left: 0; }
  .how-list li { grid-template-columns: 1fr; }
  .how-list li:nth-child(2) { margin-left: 9vw; }
  .how-list li:nth-child(3) { margin-left: 18vw; }
  .how-list .body { padding-bottom: 0; margin-top: 8px; }
  .how-w { font-size: clamp(44px, 14.5vw, 90px); }
  .roof-logo { width: 72vw; }
  .roof-units { font-size: clamp(26px, 8vw, 44px); flex-wrap: wrap; align-content: center; }
  .contact-grid { grid-template-columns: 1fr; padding-top: 8vh; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .loader-dot, .cue-line { animation: none; }
  html.js .reveal { transition: opacity .3s; transform: none; }
}
