:root {
  --bg: #111a2b;
  --text: #f1ece4;
  --muted: #8d97a8;
  --line: rgba(205, 214, 230, 0.14);
  --accent: #e0663a;
  --panel: #0f1726;
  --display: "Archivo Black", "Inter Tight", system-ui, sans-serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* Το φόντο μένει στο html, ώστε ο καμβάς (z-index -1) να φαίνεται πάνω του. */
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Το κινούμενο γραφικό καλύπτει όλη τη σελίδα. */
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }

/* ---------- Λογότυπο ---------- */

.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Το λογότυπο πάνω, το σκίτσο του σπιτιού γεμίζει τον χώρο από κάτω. */
  padding: clamp(48px, 10vh, 120px) 16px 64px;
}

.logo {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
}
.wordmark {
  display: block;
  width: clamp(250px, 37vw, 540px);
  height: auto;
  color: var(--text);
  overflow: visible;
}
/* Τα γράμματα ανεβαίνουν ένα-ένα. */
.kl {
  opacity: 0;
  translate: 0 18px;
  animation: rise 1s var(--ease-out) forwards;
}
.kl1 { animation-delay: 0.15s; }
.kl2 { animation-delay: 0.24s; }
.kl3 { animation-delay: 0.33s; }
.kl4 { animation-delay: 0.42s; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }

/* Μικρό πορτοκαλί σπίτι μέσα στο «O». */
.khouse {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  scale: 0;
  animation:
    pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.15s forwards,
    lights 7s ease-in-out 3s infinite;
}
@keyframes pop { to { scale: 1; } }
@keyframes lights {
  0%, 44%, 100% { opacity: 1; }
  48% { opacity: 0.3; }
  52% { opacity: 1; }
  56% { opacity: 0.6; }
  60% { opacity: 1; }
}

.logo-sub {
  margin-top: clamp(16px, 2.2vw, 28px);
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(12px, 1.7vw, 20px);
  letter-spacing: 0.9em;
  padding-left: 0.9em;
  color: var(--muted);
  opacity: 0;
  animation: track 1.4s var(--ease-out) 0.9s forwards;
}
@keyframes track {
  from { opacity: 0; letter-spacing: 0.3em; padding-left: 0.3em; }
  to { opacity: 1; letter-spacing: 0.9em; padding-left: 0.9em; }
}

/* ---------- Κάτω γραμμή ---------- */

.base {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px max(16px, 2.5vw);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0;
  animation: fade 1s var(--ease-out) 1.6s forwards;
}
.base-right { text-align: right; }
@keyframes fade { to { opacity: 1; } }

.public-link {
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  color: #b9c1cd;
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.public-link::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0.3);
  transition: transform 0.3s var(--ease-out);
}
.public-link:hover { color: var(--text); }
.public-link:hover::after { transform: scaleX(1); }
.public-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- Πάνελ δημοσίων στοιχείων ---------- */

.sheet {
  width: min(880px, 100% - 32px);
  max-height: min(84svh, 760px);
  margin: auto auto 16px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7);
}
.sheet::backdrop { background: rgba(8, 12, 20, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in 0.45s var(--ease-out); }
.sheet[open]::backdrop { animation: fade 0.3s ease; }
@keyframes sheet-in { from { opacity: 0; translate: 0 24px; } }
.sheet-inner { padding: clamp(22px, 4vw, 40px); overflow: auto; max-height: inherit; }

.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sheet-head h2 { margin: 0; font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.1; letter-spacing: -0.01em; }
.eyebrow { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--accent); }
.sheet-close {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.sheet-close:hover { border-color: var(--accent); }
.sheet-close:active { transform: scale(0.94); }
.sheet-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sheet-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.sheet-grid {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.sheet-label { margin: 0 0 14px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.company-name { margin: 0; font-family: var(--display); font-size: 18px; letter-spacing: 0.01em; }
.company-legal { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.company-legal:empty { display: none; }
.facts { margin: 16px 0 0; display: grid; gap: 10px; }
.facts:empty { display: none; }
.facts div { display: grid; gap: 1px; }
.facts dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.facts dd { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--line); }
.facts a:hover { border-color: var(--accent); }

.docs-loading, .docs-empty { margin: 0; color: var(--muted); font-size: 14px; }
.docs-empty { padding: 24px; border: 1px dashed var(--line); text-align: center; }
.year-group + .year-group { margin-top: 24px; }
.year-label {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 6px;
  font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.1em;
}
.year-label small { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.doc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
@media (hover: hover) {
  .doc:hover { border-color: rgba(224, 102, 58, 0.6); background: rgba(255, 255, 255, 0.02); }
  .doc:hover .doc-go { background: var(--accent); border-color: var(--accent); color: #fff; }
}
.doc:active { transform: scale(0.99); }
.doc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.doc-icon {
  width: 34px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--accent);
}
.doc-body { min-width: 0; }
.doc-title { display: block; font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.doc-meta { display: block; margin-top: 1px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.doc-go {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.doc-go svg { width: 14px; height: 14px; }

@media (max-width: 720px) {
  .base { grid-template-columns: 1fr; justify-items: center; gap: 4px; padding-bottom: 16px; }
  .base-side { display: none; }
  .public-link { font-size: 11px; }
  .sheet { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88svh; border-radius: 12px 12px 0 0; border-bottom: 0; }
  .sheet-grid { grid-template-columns: 1fr; }
  .doc-go { display: none; }
  .doc { grid-template-columns: auto 1fr; }
  .stage { padding-top: clamp(64px, 14vh, 130px); }
  .logo-sub { letter-spacing: 0.6em; padding-left: 0.6em; animation-name: track-sm; }
}
@keyframes track-sm {
  from { opacity: 0; letter-spacing: 0.2em; padding-left: 0.2em; }
  to { opacity: 1; letter-spacing: 0.6em; padding-left: 0.6em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

