/* =========================================================
   Πρώτη οθόνη · στο ύφος του "Liquid Sculpture Hero" (21st.dev).
   Δική μας υλοποίηση: γλυπτό από σωματίδια (WebGL) που γίνεται
   "υγρό" κάτω από το ποντίκι.
   ========================================================= */

@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/open-sans-greek-italic.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/open-sans-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.fh-root {
  --gutter: clamp(20px, 4vw, 56px);
  position: relative;
  min-height: max(640px, 100svh);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(20px, 3vh, 40px);
  padding: 92px var(--gutter) clamp(40px, 6vh, 64px);
  background:
    radial-gradient(55% 45% at 50% 30%, rgba(40, 110, 255, 0.14), transparent 75%),
    var(--bg);
  overflow: hidden;
  isolation: isolate;
}

.fh-brand {
  position: absolute;
  top: 23px;                        /* 31px μείον το padding, το κείμενο μένει στη θέση του */
  left: var(--gutter);
  padding: 8px 0;                   /* περιοχή αφής 44px */
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  z-index: 3;
}

/* ---------- σκηνή: αχνή λέξη + γλυπτό ---------- */
.fh-stage {
  position: relative;
  min-height: min(340px, 32vh);
  display: grid;
  place-items: center;
}
.fh-ghost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-weight: 800;
  font-size: clamp(6rem, 21vw, 21rem);
  letter-spacing: -0.065em;
  line-height: .8;
  color: rgba(234, 241, 255, 0.045);
  user-select: none;
  pointer-events: none;
  padding-bottom: .04em;
}
/* "philip tzimopou" που φαίνεται αχνά πίσω από το AI, μόνο γύρω από το ποντίκι */
.fh-reveal {
  --mx: -999px;
  --my: -999px;
  --reveal: 0;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-weight: 800;
  z-index: 2;
  font-size: clamp(3rem, 8.5vw, 8.5rem);
  line-height: .86;
  letter-spacing: -0.045em;
  color: #eafbff;
  text-shadow: 0 2px 4px rgba(4, 11, 28, 0.9), 0 6px 28px rgba(4, 11, 28, 0.95);
  text-transform: lowercase;
  user-select: none;
  pointer-events: none;
  opacity: 0;
  transition: none;
  -webkit-mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000 0%, #000 40%, rgba(0, 0, 0, .6) 60%, transparent 80%);
          mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000 0%, #000 40%, rgba(0, 0, 0, .6) 60%, transparent 80%);
}
.fh-root.is-static .fh-reveal { display: none; }

.fh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}
.fh-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  pointer-events: none;
}
.fh-root.is-static .fh-canvas { display: none; }
.fh-root.is-static .fh-still { display: block; }
.fh-root.is-static .fh-hint { display: none; }

.fh-hint {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .5s ease;
}
.fh-hint i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: fh-blink 2.4s ease-in-out infinite; }
.fh-root.is-touched .fh-hint { opacity: 0; }

/* ---------- κάτω μέρος ---------- */
.fh-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-areas: "intro side" "paths paths";
  align-items: end;
  gap: 32px clamp(32px, 6vw, 96px);
  position: relative;
  z-index: 2;
}
.fh-intro { grid-area: intro; display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 28px); }
.fh-photo {
  flex: none;
  width: clamp(92px, 9vw, 136px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 18px;
  border: 1px solid rgba(170, 205, 255, 0.18);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .9);
}
.fh-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.fh-eyebrow span { width: 40px; height: 1px; background: currentColor; opacity: .7; }
.fh-title {
  font-size: clamp(2.1rem, 4.4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.fh-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.fh-side { grid-area: side; }
.fh-lead { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.65; max-width: 46ch; }
/* δύο ισότιμοι δρόμοι: μάθε AI / αυτοματοποίησε την επιχείρησή σου */
.fh-paths {
  grid-area: paths;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  scroll-margin-top: 110px;
}
.fh-path {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 22px 18px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(155deg, rgba(61, 216, 245, 0.16), rgba(61, 216, 245, 0.06));
  border: 1px solid rgba(61, 216, 245, 0.55);
  box-shadow: 0 14px 36px -18px rgba(61, 216, 245, 0.55);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.fh-path:hover { border-color: var(--accent); transform: translateY(-2px); background: rgba(61, 216, 245, 0.18); }
.fh-path:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fh-path__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--accent);
}
.fh-path__text { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.fh-path svg, .fh-link svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.fh-path:hover svg, .fh-link:hover svg { transform: translateX(3px); }
.fh-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;                  /* 16px μείον το padding-top, το κείμενο μένει στη θέση του */
  padding-top: 12px;                /* περιοχή αφής 44px */
  padding-bottom: 6px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(234, 241, 255, .5);
}
.fh-link:hover { color: var(--accent); border-color: var(--accent); }

@keyframes fh-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- tablet / κινητό ---------- */
@media (max-width: 960px) {
  .fh-bottom { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "paths" "side"; }
}
/* χαμηλές οθόνες laptop: λίγο μικρότερος τίτλος, για να χωράνε οι δύο δρόμοι */
@media (min-width: 961px) and (max-height: 820px) {
  .fh-root { padding-top: 84px; gap: 16px; }
  .fh-title { font-size: clamp(2rem, 3.6vw, 3.4rem); }
  .fh-photo { width: clamp(84px, 7.5vw, 112px); }
  .fh-lead { font-size: 1rem; line-height: 1.6; }
  .fh-eyebrow { margin-bottom: 12px; }
}
@media (max-width: 700px) {
  .fh-root { min-height: 0; padding-top: 64px; gap: 4px; }
  .fh-brand { top: 14px; }
  .fh-stage { min-height: 0; height: 36vw; max-height: 240px; }
  .fh-still { inset: 6% 2%; width: 96%; height: 88%; }
  .fh-reveal { font-size: clamp(2.2rem, 11vw, 3.4rem);
    -webkit-mask-image: radial-gradient(130px circle at var(--mx) var(--my), #000 0%, #000 40%, rgba(0, 0, 0, .6) 60%, transparent 80%);
            mask-image: radial-gradient(130px circle at var(--mx) var(--my), #000 0%, #000 40%, rgba(0, 0, 0, .6) 60%, transparent 80%); }
  .fh-intro { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fh-photo { width: 52px; border-radius: 12px; }
  .fh-eyebrow { margin-bottom: 8px; }
  .fh-paths { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fh-path { padding: 12px 16px 14px; }
  .fh-title { font-size: clamp(1.75rem, 7.6vw, 2.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  .fh-hint i { animation: none; }
}
