/* Projektai777 portfolio - one deliberate dark look (no light theme on purpose).
   Serif italic for the human voice, mono for the machine voice, system sans for reading. */
:root {
  --bg: #070a0d;
  --bg-2: #0d1218;
  --fg: #e7ecea;
  --mute: #8d989d;
  --acc: #7dffb3;
  --acc-2: #6fd3ff;
  --line: rgba(231, 236, 234, 0.1);
  --line-2: rgba(231, 236, 234, 0.2);
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --pad: clamp(18px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--acc); color: #06110b; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--acc); color: #06110b; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* the living background */
/* the canvas box is the LARGE viewport on phones (100lvh), so the address bar showing/hiding never resizes it (2026-09-12) */
#fx { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; display: block; }
/* no grain overlay since 2026-09-12: a full-screen composited layer over the animated canvas cost frames on phones */
header, main, footer { position: relative; z-index: 2; }

.mono { font-family: var(--mono); }
.small { font-size: 12px; color: var(--mute); }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--acc); margin: 0 0 14px;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #c7d0cd; max-width: 62ch; margin: 0; }

/* header */
.top {
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-size: 15px; letter-spacing: .02em; }
.brand b { color: var(--acc); font-weight: 500; }
.mark { fill: var(--fg); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--mute); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a:focus-visible { color: var(--fg); border-color: var(--acc); }
.nav .nav-cta { color: var(--fg); }
.langs { display: flex; gap: 4px; font-family: var(--mono); font-size: 12px; }
.langs a { text-decoration: none; color: var(--mute); padding: 4px 7px; border: 1px solid transparent; border-radius: 4px; }
.langs a:hover { color: var(--fg); }
.langs a[aria-current="page"] { color: var(--acc); border-color: var(--line-2); }

/* hero */
main { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.hero { min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); display: flex; flex-direction: column; justify-content: center; padding: 48px 0 40px; }
h1 { font-family: var(--sans); font-weight: 650; font-size: clamp(38px, 7vw, 92px); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 28px; max-width: 14ch; }
.h1b { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--acc); letter-spacing: -.01em; }
.hero .lead { margin-bottom: 34px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 22px; border: 1px solid var(--line-2); border-radius: 6px;
  text-decoration: none; font-size: 15px; font-weight: 500; background: var(--bg);
  transition: transform .15s, border-color .2s, background .2s; cursor: pointer; color: var(--fg); font-family: var(--sans);
}
.btn:hover, .btn:focus-visible { border-color: var(--acc); transform: translateY(-1px); }
.btn-acc { background: var(--acc); color: #06110b; border-color: var(--acc); }
.btn-acc:hover { background: #a3ffc9; }
.hint { font-size: 12px; color: var(--mute); margin: 26px 0 0; transition: opacity 1s; }
.hint.gone { opacity: 0; }

/* sections */
.sec { padding: clamp(64px, 10vw, 128px) 0; } /* no divider line between sections (owner 2026-09-12) */
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 18px; max-width: 24ch; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 21px; margin: 0 0 12px; letter-spacing: -.01em; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* services */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.svc { padding: clamp(22px, 3vw, 40px); position: relative; }
.svc + .svc { border-left: 1px solid var(--line); } /* three cards in one row since 2026-09-12 */
.svc .n { font-family: var(--mono); color: var(--acc); font-size: 12px; letter-spacing: .12em; margin-bottom: 14px; display: block; }
.svc .how { color: #b9c3c0; margin: 0; font-size: 15px; }
.process { margin-top: clamp(40px, 6vw, 72px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: st; }
.steps li { counter-increment: st; padding-top: 14px; border-top: 1px solid var(--line-2); position: relative; }
.steps li::before { content: counter(st, decimal-leading-zero); font-family: var(--mono); color: var(--acc); font-size: 12px; letter-spacing: .12em; display: block; margin-bottom: 8px; }
.steps b { display: block; font-weight: 600; margin-bottom: 4px; }
.steps span { color: var(--mute); font-size: 14px; }
.price { margin-top: clamp(32px, 5vw, 56px); max-width: 70ch; }
.price p:last-child { margin: 0; color: #c7d0cd; }

/* work */
.work-group { margin-bottom: 40px; }
.work-group h3 { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
.work-group h3 i { font-style: normal; color: var(--acc); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card {
  border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--bg-2);
  display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; position: relative;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .cat { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-2); }
.card h4 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin: 0; color: #b9c3c0; font-size: 14.5px; flex: 1; }
.card .st { font-family: var(--mono); font-size: 11px; color: var(--mute); display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.card .st .pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); margin-right: 7px; box-shadow: 0 0 0 0 rgba(125,255,179,.6); animation: pulse 2.2s infinite; vertical-align: 1px; }
.card .st .done { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acc-2); margin-right: 7px; vertical-align: 1px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(125,255,179,.55); } 70% { box-shadow: 0 0 0 8px rgba(125,255,179,0); } 100% { box-shadow: 0 0 0 0 rgba(125,255,179,0); } }
@media (prefers-reduced-motion: reduce) { .card .st .pulse { animation: none; } }
.card a.open { color: var(--fg); font-family: var(--mono); font-size: 12px; text-decoration: none; border-bottom: 1px solid var(--acc); padding-bottom: 1px; }
.card a.open:hover { color: var(--acc); }
.card.anon h4 { color: #d8dedc; }
.empty { border: 1px dashed var(--line-2); border-radius: 10px; padding: 22px; color: var(--mute); font-size: 15px; }
.anon-note { font-family: var(--mono); font-size: 12px; color: var(--mute); margin: 8px 0 0; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-text p { font-size: clamp(17px, 1.5vw, 19px); color: #d3dbd8; margin: 0 0 18px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 18px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; margin-bottom: 6px; color: var(--acc); }
.facts span { color: #b9c3c0; font-size: 15px; }

/* no FAQ section since 2026-09-12 (owner: "remove klausimai part whatsoever") */

/* contact */
.cform { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform label { display: flex; flex-direction: column; gap: 6px; }
.cform label > span:not(.ta-wrap) { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--mute); }
.cform input, .cform textarea {
  font: 16px/1.5 var(--sans); color: var(--fg); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px;
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; width: 100%;
}
.cform input:focus, .cform textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(125,255,179,.12); }
.cform textarea::placeholder, .cform input::placeholder { color: #667077; }
/* rotating example requests (app.js): an overlay in the textarea's own box, opacity-only (a dissolve is the
   reduced-motion-safe transition), hidden as soon as the box holds any text; the native placeholder stays
   in the markup for no-JS visitors and screen readers but turns transparent while the overlay runs */
.ta-wrap { position: relative; display: block; }
.ta-wrap textarea { display: block; }
.ta-wrap.cycling textarea::placeholder { color: transparent; }
.ph-cycle {
  position: absolute; top: 13px; left: 15px; right: 15px; bottom: 13px; overflow: hidden; pointer-events: none;
  font: 16px/1.5 var(--sans); color: #667077; opacity: 0; transition: opacity .6s ease;
}
.ta-wrap.cycling .ph-cycle.on { opacity: 1; }
.ta-wrap.has-text .ph-cycle.on { opacity: 0; transition-duration: .12s; }
.form-alt { margin: 0; color: var(--mute); }
.form-alt a { color: var(--fg); }
.form-alt.gone { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-msg { min-height: 1.4em; font-size: 13px; color: var(--acc); margin: 0; }
.form-msg.err { color: #ff9a9a; }
.form-msg a { color: var(--fg); }
.contact-alt { margin: 34px 0 0; color: var(--mute); }
.mail { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--acc); font-family: var(--mono); font-size: 15px; padding-bottom: 1px; }
.mail:hover { color: var(--acc); }

/* footer */
.foot { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 32px var(--pad) 110px; border-top: 1px solid var(--line); display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot p { margin: 0; }
.foot .langs { margin-left: auto; }


/* responsive */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top .langs { margin-left: auto; }
  .hero { min-height: 0; padding: 28px 0 32px; }
  h1 { max-width: none; font-size: clamp(36px, 10.5vw, 56px); }
  .svc-grid { grid-template-columns: 1fr; }
  .svc + .svc { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .row2 { grid-template-columns: 1fr; }
  .foot { padding-bottom: 92px; }
}
