/* FiraGO for Georgian only (DM Sans has no Georgian glyphs). Official build, SIL OFL. */
@font-face {
  font-family: "FiraGO"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/bBoxType/FiraGO@5bbcb9d066ab563686ed1de1e6f62eec0148e82d/Fonts/FiraGO_WEB_1001/Roman/FiraGO-Regular.woff2") format("woff2");
  unicode-range: U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F;
}
@font-face {
  font-family: "FiraGO"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/bBoxType/FiraGO@5bbcb9d066ab563686ed1de1e6f62eec0148e82d/Fonts/FiraGO_WEB_1001/Roman/FiraGO-Medium.woff2") format("woff2");
  unicode-range: U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F;
}
@font-face {
  font-family: "FiraGO"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/bBoxType/FiraGO@5bbcb9d066ab563686ed1de1e6f62eec0148e82d/Fonts/FiraGO_WEB_1001/Roman/FiraGO-Bold.woff2") format("woff2");
  unicode-range: U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F;
}

:root {
  /* brand book */
  --black: #141319;   /* Base Pixel Black */
  --green: #ccf656;   /* Base Pixel Green */
  --sky: #81a3be;     /* Base Pixel Sky */

  --paper: #f4f4f1;
  --mute: #a3a2ab;
  --line: rgba(244, 244, 241, 0.14);

  --font: "DM Sans", "FiraGO", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

/* headings and header text in caps. Latin via text-transform; Georgian via FiraGO's
   "case" feature, which draws Mtavruli forms (FiraGO has no Unicode Mtavruli glyphs,
   so text-transform would fall back to a system font) */
h1, h2, h3, .nav, .top-cta, .foot-nav, .btn, .lang button { font-feature-settings: "case"; }
.lang button[lang="en"] { text-transform: uppercase; }
:is(h1, h2, h3, .nav, .top-cta, .foot-nav, .btn) [data-l="en"] { text-transform: uppercase; }

/* language switching */
html[data-lang="ka"] [data-l="en"],
html[data-lang="en"] [data-l="ka"] { display: none; }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 20; background: var(--green); color: var(--black); padding: .5rem .9rem; }

/* header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem var(--gutter);
  background: linear-gradient(var(--black) 45%, rgba(20, 19, 25, 0));
}
.brand { display: block; color: var(--paper); line-height: 0; }
.logo { height: 38px; width: auto; }
.logo .px, .foot-logo .px, .hero-logo .px { fill: var(--green); }
.nav { display: flex; gap: 2rem; margin-left: auto; font-size: .8125rem; font-weight: 500; letter-spacing: .06em; }
.nav a { text-decoration: none; color: var(--mute); transition: color .2s; }
.nav a:hover { color: var(--paper); }

/* language: two words, the active one marked with a green pixel */
.lang { display: flex; gap: .25rem; }
.lang button {
  display: flex; align-items: center; gap: .45rem;
  font: 500 .8125rem/1 var(--font); letter-spacing: .06em; color: var(--mute);
  background: none; border: 0; padding: .6rem .5rem; cursor: pointer;
  transition: color .2s;
}
.lang button::before {
  content: ""; width: 7px; height: 7px; background: var(--green);
  transform: scale(0); transition: transform .2s steps(2);
}
.lang button:hover { color: var(--paper); }
.lang button[aria-pressed="true"] { color: var(--paper); }
.lang button[aria-pressed="true"]::before { transform: scale(1); }

.top-cta {
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-decoration: none;
  padding: .75rem 1.1rem; border: 1px solid rgba(244, 244, 241, .5); color: var(--paper);
  transition: background .15s, color .15s;
}
.top-cta:hover { background: var(--paper); color: var(--black); }

/* hero: dark, textured, on a visible column grid */
.hero {
  --col: min(1160px, 100% - 2 * var(--gutter));
  position: relative;
  padding: 6.5rem 0 0;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 4px),
    var(--black);
}
.frame {
  width: var(--col); margin-inline: auto;
  border-inline: 1px solid var(--line);
  /* inner column rules at quarters */
  background: linear-gradient(90deg,
    transparent calc(25% - .5px), var(--line) calc(25% - .5px) calc(25% + .5px),
    transparent calc(25% + .5px) calc(50% - .5px), var(--line) calc(50% - .5px) calc(50% + .5px),
    transparent calc(50% + .5px) calc(75% - .5px), var(--line) calc(75% - .5px) calc(75% + .5px),
    transparent calc(75% + .5px));
}
.hero-mark {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
  text-align: center;
  background: var(--black);
}
.tagline { color: var(--mute); font-size: clamp(.9rem, 1.1vw, 1rem); margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); max-width: 34rem; }
.hero-logo-wrap { position: relative; width: min(100%, 640px); margin-inline: auto; container-type: inline-size; }
.hero-logo { display: block; width: 100%; height: auto; color: var(--paper); }

/* the logo's green pixel, rebuilt as a spinning cube sitting exactly on the square's spot
   (square in the SVG: x 703.9, y 257.7, 62.5 units, viewBox 110 125 662 352) */
.hero-logo .px { fill: transparent; }
.cube {
  --s: calc(100cqw * 62.5 / 662);
  --h: calc(var(--s) / 2);
  position: absolute; left: calc(100% * (703.9 - 110) / 662); top: calc(100% * (257.7 - 125) / 352);
  width: var(--s); height: var(--s);
  transform-style: preserve-3d;
  transform: perspective(calc(var(--s) * 8)) rotateX(-22deg) rotateY(-32deg);
  animation: cube-spin 9s linear infinite;
}
.cube i { position: absolute; inset: 0; background: var(--green); }
.cube .f-front  { transform: translateZ(var(--h)); }
.cube .f-back   { transform: rotateY(180deg) translateZ(var(--h)); background: #a3c940; }
.cube .f-right  { transform: rotateY(90deg) translateZ(var(--h)); background: #b3da49; }
.cube .f-left   { transform: rotateY(-90deg) translateZ(var(--h)); background: #bfe54e; }
.cube .f-top    { transform: rotateX(90deg) translateZ(var(--h)); background: #e3ff90; }
.cube .f-bottom { transform: rotateX(-90deg) translateZ(var(--h)); background: #8aab35; }
@keyframes cube-spin {
  from { transform: perspective(calc(var(--s) * 8)) rotateX(-22deg) rotateY(-32deg); }
  to   { transform: perspective(calc(var(--s) * 8)) rotateX(-22deg) rotateY(328deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cube { animation: none; }
}
.facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--black);
}
.facts li {
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  padding: 1.6rem 1rem; text-align: center;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  font-feature-settings: "case";
}
.facts li + li { border-left: 1px solid var(--line); }
.facts svg { width: 22px; height: 22px; fill: none; stroke: var(--paper); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-copy {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.75rem); line-height: 1.04;
  font-weight: 700; letter-spacing: -.02em;
  max-width: 18ch; text-wrap: balance;
}
html[data-lang="ka"] .hero h1 { font-size: clamp(1.7rem, 3.3vw, 3.1rem); line-height: 1.14; letter-spacing: 0; max-width: 22ch; }
.hero-copy p { color: var(--mute); max-width: 40rem; margin-top: 1.5rem; font-size: 1.0625rem; line-height: 1.7; text-wrap: pretty; }
.hero-copy .btn { margin-top: 2.25rem; }
.btn {
  display: inline-block; flex: none;
  background: var(--green); color: var(--black);
  font: 600 .875rem/1.2 var(--font); letter-spacing: .06em; text-decoration: none;
  padding: 1.1rem 1.6rem;
  transition: background .15s;
}
.btn:hover { background: var(--paper); }

/* sections */
section:not(.hero) { padding: clamp(5rem, 11vw, 8.5rem) var(--gutter); }
section h2 { font-size: clamp(1.6rem, 2.9vw, 2.6rem); line-height: 1.08; letter-spacing: -.015em; }
html[data-lang="ka"] section h2 { letter-spacing: 0; line-height: 1.15; }

/* partners: slow marquee of client logos */
.partners { position: relative; isolation: isolate; overflow: hidden; padding-inline: 0 !important; }
.partners .pixels { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }
.partners h2 { padding-inline: var(--gutter); text-align: center; font-size: .875rem; letter-spacing: .08em; color: var(--mute); font-weight: 600; }
.marquee {
  display: flex; overflow: hidden; margin-top: 2.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos {
  display: flex; align-items: center; gap: clamp(3rem, 6vw, 5.5rem);
  list-style: none; margin: 0; padding: 0 clamp(1.5rem, 3vw, 2.75rem);
  flex: none; animation: slide 70s linear infinite;
}
.logos img { display: block; height: 44px; width: auto; max-width: 170px; object-fit: contain; opacity: .8; transition: opacity .2s; }
.logos img:hover { opacity: 1; }
.marquee:hover .logos { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }

/* who we are: sky block */
.who { background: var(--sky); color: var(--black); }
.caps {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 4rem;
}
.caps li { border-top: 2px solid var(--black); padding-top: 1.25rem; }
.num { display: block; font-weight: 600; font-size: .8125rem; letter-spacing: .06em; margin-bottom: .75rem; }
.caps h3 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.25; margin-bottom: .75rem; max-width: 24ch; }
.caps p { color: rgba(20, 19, 25, .85); max-width: 36rem; font-size: .9375rem; line-height: 1.65; }

/* selected work: key visuals, client and sector only */
.grid {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.25rem;
}
.grid figure { margin: 0; }
.grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #1d1c23; }
.grid figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: .9rem; font-size: .875rem; }
.grid figcaption strong { font-weight: 600; }
.grid figcaption span { color: var(--mute); text-align: right; }

/* services */
.services { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 2rem 4rem; }
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 3rem; }
.svc h3 { font-size: 1rem; line-height: 1.3; letter-spacing: .02em; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.svc ul { list-style: none; margin: 0; padding: 0; }
.svc li { position: relative; padding: .35rem 0 .35rem 1.2rem; color: var(--mute); font-size: .9375rem; }
.svc li::before { content: ""; position: absolute; left: 0; top: .9em; width: 5px; height: 5px; background: var(--mute); }

/* selected work */
.work { border-top: 1px solid var(--line); }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; }
.work-head p { color: var(--mute); max-width: 28rem; }
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .5rem 3rem; align-items: baseline;
  padding: 2rem 0; border-top: 1px solid var(--line);
}

/* contact */
.contact { border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(2rem, 4.4vw, 4.25rem); line-height: 1.02; max-width: 16ch; }
.contact p { color: var(--mute); margin-top: 1.25rem; max-width: 34rem; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: 2.5rem; }
.mail, .phone {
  font-weight: 700; line-height: 1.1; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  padding-bottom: .12em; transition: background-size .3s steps(6);
}
.mail { font-size: clamp(1.3rem, 3vw, 2.4rem); color: var(--paper); }
.phone { font-size: clamp(1.05rem, 1.7vw, 1.4rem); color: var(--paper); }
.mail:hover, .phone:hover { background-size: 100% 3px; }

/* footer */
.foot {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 1.5rem 3rem;
  padding: 3rem var(--gutter) 2rem; color: var(--mute); font-size: .9rem;
  border-top: 1px solid var(--line);
}
.foot-logo { height: 64px; width: auto; color: var(--paper); }
.foot-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; font-size: .8125rem; font-weight: 500; letter-spacing: .06em; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--paper); }
.foot-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; text-align: right; }

/* pixel cursor: the green pixel from the logo replaces the arrow on mouse devices */
@media (hover: hover) and (pointer: fine) {
  html.has-pixel-cursor, html.has-pixel-cursor * { cursor: none !important; }
}
.pixel-cursor {
  --c: var(--green);
  position: fixed; left: 0; top: 0; z-index: 100;
  width: 16px; height: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
/* size changes run on transform so they never trigger layout */
.pixel-cursor::before {
  content: ""; position: absolute; inset: 0;
  background: var(--c);
  transition: transform .15s steps(3);
}
.pixel-cursor.on-light { --c: var(--black); }
.pixel-cursor.is-on { opacity: 1; }
.pixel-cursor.is-hover::before { transform: scale(2); background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.pixel-cursor.is-down::before { transform: scale(.5); background: var(--c); box-shadow: none; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .services { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .logo { height: 30px; }
  .top { gap: .75rem; }
  .top-cta { display: none; }
  .caps, .svc { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .75rem; }
  .grid figcaption { flex-direction: column; gap: .15rem; }
  .grid figcaption span { text-align: left; }
  .facts { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .facts li { flex-direction: row; justify-content: center; padding: 1rem; }
  .foot { grid-template-columns: 1fr; }
  .foot-meta { align-items: flex-start; text-align: left; }
  .logos img { height: 34px; }
}
@media (max-width: 520px) {
  .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .marquee { mask-image: none; }
  .logos { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 2rem; }
  .logos[aria-hidden="true"] { display: none; }
}
