/* ============================================================
   E-Grow — site stylesheet
   Design tokens follow the E-Grow brand: crimson #ED2C3D accent,
   near-black #171717, white background. Dark hero / light body,
   in the spirit of mindd.gr but with the E-Grow palette.
   No frameworks. One file. Mobile-first.
   ============================================================ */

:root {
  /* Brand */
  --red: #ED2C3D;
  --red-hover: #D21F30;
  --red-glow: rgba(237, 44, 61, 0.22);
  --black: #171717;
  --black-2: #1F1F1F;
  --black-3: #262626;
  --white: #FFFFFF;

  /* Neutrals */
  --ink: #171717;
  --ink-soft: #4A4A4A;
  --ink-muted: #737373;
  --ink-dim: #A3A3A3;
  --line: #E8E8E8;
  --line-dark: rgba(255, 255, 255, 0.10);
  --section: #F6F6F6;
  --section-alt: #FBFBFB;

  /* Type */
  --font: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(23, 23, 23, 0.06);
  --shadow-hover: 0 14px 40px rgba(23, 23, 23, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red); }
.h-display { font-size: clamp(38px, 6.2vw, 78px); }
.h-1 { font-size: clamp(34px, 5vw, 60px); }
.h-2 { font-size: clamp(28px, 3.6vw, 44px); }
.h-3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-soft); max-width: 62ch; }
.accent { color: var(--red); }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 8px 24px var(--red-glow); }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost { border-color: var(--line-dark); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--black-3); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn svg { width: 16px; height: 16px; flex: none; } /* flex:none — the arrow must never collapse in a narrow card */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 23, 23, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 66px; width: auto; max-width: none; }
.site-footer .logo img { height: 110px; }
.nav { display: flex; align-items: center; gap: 0; }
/* 7 tabs + language + CTA must fit next to the logo inside the 1360px container: 13px / 8px keeps the row at ~1084px */
.nav a {
  padding: 8px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  color: rgba(255,255,255,0.78); transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.07); }
.nav .btn { margin-left: 6px; padding: 10px 16px; }
.lang { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; opacity: .7; }
.lang:hover { opacity: 1; }
.burger { display: none; background: none; border: 0; color: var(--white); padding: 8px; }
.burger svg { width: 26px; height: 26px; }

@media (max-width: 1300px) {
  /* backdrop-filter would make the fixed nav position relative to the header, so it is disabled on mobile */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--black); }
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 84px 0 0 0; background: var(--black);
    flex-direction: column; align-items: stretch; padding: 20px var(--gutter) 40px;
    gap: 6px; transform: translateX(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s .35s;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .nav a { font-size: 20px; padding: 14px 12px; border-radius: var(--radius-sm); }
  .nav .btn { margin: 14px 0 0; justify-content: center; font-size: 17px; padding: 16px; }
}

/* ---------- Hero (dark) ---------- */
.hero {
  background: var(--black); color: var(--white);
  position: relative; overflow: hidden;
  padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 120px);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000 20%, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; width: 720px; height: 720px; right: -240px; top: -260px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--red); }
.hero .h-display { max-width: 15ch; }
.hero-home .h-display { font-size: clamp(26px, 3.2vw, 42px); max-width: 30ch; line-height: 1.18; }
.hero-home .lead { font-size: clamp(16px, 1.25vw, 18px); margin-top: 20px; }
.hero-home { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero .lead { color: rgba(255,255,255,0.72); margin-top: 26px; }
.hero .lead strong { color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-sub { padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.hero-sub .h-display { font-size: clamp(34px, 5vw, 62px); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pill {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 12px; border: 1px solid var(--line-dark); border-radius: 999px; color: rgba(255,255,255,0.75);
}
.pill.live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 8px; box-shadow: 0 0 0 4px var(--red-glow); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; margin-top: clamp(48px, 6vw, 80px); }
.stat { background: var(--black-2); padding: 26px 24px; }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat b em { font-style: normal; color: var(--red); }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: rgba(255,255,255,0.62); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-grey { background: var(--section); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark .lead { color: rgba(255,255,255,0.72); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.grid-5 .card { padding: 22px 20px; }
.grid-5 .card ul.check li { font-size: 14px; margin: 5px 0; }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s;
  display: flex; flex-direction: column;
}
a.card:hover, .card.hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
/* hover: the icon tile turns crimson and the card lifts — motion that answers the cursor */
a.card:hover .icon { background: var(--red); transform: rotate(-6deg) scale(1.06); }
.card .icon { transition: background .25s, transform .3s var(--ease); }
.card.dark:hover { transform: translateY(-6px); border-color: rgba(237,44,61,.55); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--black); color: var(--white);
  display: grid; place-items: center; margin-bottom: 22px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 16px; }
.card .more { margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--red); display: inline-flex; gap: 8px; align-items: center; font-size: 15px; }
.card .more.btn { align-self: flex-start; margin-top: auto; padding: 10px 15px; font-size: 13.5px; gap: 8px; border-color: var(--red); color: var(--red); background: transparent; }
a.card:hover .more.btn { background: var(--red); color: var(--white); box-shadow: 0 8px 20px var(--red-glow); }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .more svg { transform: translateX(4px); }
.card.dark { background: var(--black-2); border-color: var(--line-dark); color: var(--white); box-shadow: none; }
.card.dark p { color: rgba(255,255,255,0.7); }
.card.dark .icon { background: var(--red); }
.card .num { font-family: var(--mono); font-size: 13px; color: var(--red); margin-bottom: 16px; letter-spacing: .1em; }
.card ul.check { margin-top: 14px; }
.card ul.check li, ul.check li { padding-left: 26px; position: relative; margin: 8px 0; color: var(--ink-soft); font-size: 16px; }
ul.check li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.section-dark ul.check li { color: rgba(255,255,255,0.75); }

/* ---------- Process (numbered steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 32px 24px 32px 0; border-right: 1px solid var(--line); padding-left: 24px; }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--red); letter-spacing: .12em; }
.step h3 { margin: 14px 0 10px; }
.step p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Client logos ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logo-tile {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  min-height: 84px; display: grid; place-items: center; padding: 16px;
  font-weight: 800; letter-spacing: -0.01em; color: var(--ink-dim); text-align: center; font-size: 15px;
  transition: color .2s, border-color .2s;
}
.logo-tile:hover { color: var(--ink); border-color: var(--ink); }
.logo-tile img { max-height: 56px; max-width: 78%; width: auto; filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s; mix-blend-mode: multiply; }
.logo-tile:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 540px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Case study feature ---------- */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; background: var(--black); color: var(--white); border-radius: var(--radius); padding: clamp(32px, 5vw, 64px); position: relative; overflow: hidden; }
.feature::after { content: ''; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -260px; background: radial-gradient(circle, var(--red-glow), transparent 60%); pointer-events: none; }
/* headings inside the dark feature band (home AI-advertising band) must be white, not ink */
.feature h2, .feature .h-2 { color: var(--white); }
.feature .big { font-size: clamp(64px, 10vw, 140px); font-weight: 800; letter-spacing: -0.05em; line-height: .9; color: var(--red); }
.feature .big small { display: block; font-size: 16px; letter-spacing: 0; color: rgba(255,255,255,0.7); margin-top: 14px; font-weight: 500; }
.feature p { color: rgba(255,255,255,0.75); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* ---------- Case study list ---------- */
.case { display: grid; grid-template-columns: 140px 200px 1fr; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); align-items: start; }
.case-logo { width: 140px; height: 90px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); display: grid; place-items: center; padding: 12px; }
.case-logo img { max-height: 56px; max-width: 100%; width: auto; }
.case-logo span { font-weight: 800; font-size: 14px; color: var(--ink-dim); text-align: center; }
.case:last-child { border-bottom: 1px solid var(--line); }
.case .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.case .tag b { display: block; color: var(--ink); font-family: var(--font); font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; text-transform: none; }
.case p { color: var(--ink-soft); }
.case .result { margin-top: 12px; font-weight: 700; color: var(--red); }
@media (max-width: 860px) { .case { grid-template-columns: 140px 1fr; } .case > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .case { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; font-weight: 400; color: var(--red); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-soft); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta { background: var(--red); color: var(--white); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.cta h2 { max-width: 20ch; }
.cta p { color: rgba(255,255,255,0.85); margin-top: 12px; max-width: 52ch; }
.cta .btn-dark { background: var(--black); }
.cta .btn-dark:hover { background: var(--white); color: var(--black); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dl { margin: 0; }
.contact-info dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-top: 24px; }
.contact-info dd { margin: 6px 0 0; font-size: 18px; font-weight: 600; }
.contact-info dd a:hover { color: var(--red); }
.form { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--ink-muted); }
.form-status { grid-column: 1 / -1; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #15803D; }
.form-status.err { color: var(--red); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,0.7); padding: clamp(48px, 6vw, 80px) 0 32px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .logo { color: var(--white); }
.site-footer .foot-title { color: var(--white); font-size: 13px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.site-footer li { margin: 9px 0; font-size: 15px; }
.site-footer a:hover { color: var(--white); }
.footer-about { max-width: 34ch; font-size: 15px; margin-top: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-bottom .sister { color: rgba(255,255,255,0.45); }
.footer-bottom .sister a { color: rgba(255,255,255,0.7); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Breadcrumb ---------- */
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,0.5); margin-bottom: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--white); }

/* ---------- Prose blocks ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }

/* ---------- Reveal animation ---------- */
/* Scroll reveal: a soft fade with a hint of lift — used only on section heads, feature bands and prose (not on every card) */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Motion: hero entrance (every page) ----------
   Direct children of .hero .wrap (crumbs/pills → eyebrow → h1 → lead → buttons → stats) fade/rise in sequence on load.
   Deliberately restrained: 10px rise, ~0.8s, ~120ms stagger. Disabled under prefers-reduced-motion. */
@keyframes heroIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero .wrap > * { opacity: 0; animation: heroIn .8s var(--ease) forwards; }
.hero .wrap > :nth-child(1) { animation-delay: .05s; }
.hero .wrap > :nth-child(2) { animation-delay: .17s; }
.hero .wrap > :nth-child(3) { animation-delay: .29s; }
.hero .wrap > :nth-child(4) { animation-delay: .41s; }
.hero .wrap > :nth-child(5) { animation-delay: .53s; }
.hero .wrap > :nth-child(6) { animation-delay: .65s; }
/* the stats row itself stays put; its four tiles enter one after the other (softer: 8px, 0.7s) */
.hero .wrap > .stats { opacity: 1; animation: none; }
@keyframes tileIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero .stats .stat { opacity: 0; animation: tileIn .7s var(--ease) forwards; }
.hero .stats .stat:nth-child(1) { animation-delay: .55s; }
.hero .stats .stat:nth-child(2) { animation-delay: .67s; }
.hero .stats .stat:nth-child(3) { animation-delay: .79s; }
.hero .stats .stat:nth-child(4) { animation-delay: .91s; }
/* cards, steps and case rows: rise 18px + scale from 97% on scroll-in (0.8s), staggered inside their grid */
.reveal.soft { transform: translateY(18px) scale(.97); transition-duration: .8s; }
.reveal.soft:nth-child(2) { transition-delay: .08s; }
.reveal.soft:nth-child(3) { transition-delay: .16s; }
.reveal.soft:nth-child(4) { transition-delay: .24s; }
.reveal.soft:nth-child(5) { transition-delay: .32s; }
.reveal.soft:nth-child(n+6) { transition-delay: .4s; }
/* the faint background grid of every hero drifts diagonally by exactly one cell (64px) every 40s — seamless loop,
   barely perceptible, gives the dark block a slow "breathing" feel (Panos: «αυτά τα τετραγωνάκια… απαλά») */
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 64px 64px, 64px 64px; } }
.hero::before { animation: gridDrift 40s linear infinite; }
/* the red glow behind the hero drifts very slowly so the dark block feels alive without distracting */
@keyframes glowDrift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.06); } }
.hero::after { animation: glowDrift 18s ease-in-out infinite; will-change: transform; }
/* the highlighted phrase in the H1 gets a thin underline that draws in after the text has appeared */
.hero .h-display .accent { box-decoration-break: clone; -webkit-box-decoration-break: clone; background-image: linear-gradient(rgba(237,44,61,.55), rgba(237,44,61,.55)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px; animation: underlineIn .7s var(--ease) 1s forwards; }
@keyframes underlineIn { to { background-size: 100% 2px; } }
/* the ChatGPT band on the home page: full-width headline above the two columns */
.feature-kicker { grid-column: 1 / -1; color: var(--white); text-align: left; justify-self: stretch; font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line-dark); }
.feature-kicker .accent { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero .wrap > *, .hero .stats .stat { opacity: 1; animation: none; } .reveal.soft { transition-delay: 0s; } .hero::after, .hero::before { animation: none; } .hero .h-display .accent { background-size: 100% 2px; animation: none; } html { scroll-behavior: auto; } }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf .big { font-size: clamp(90px, 18vw, 200px); font-weight: 800; letter-spacing: -0.06em; line-height: .9; color: var(--red); }

/* ---------- Έργα A.I (case-studies #ai + strip on ai-solutions) ---------- */
.ai-facts { margin: 28px 0 40px; }
.ai-facts .stat b { font-size: clamp(28px, 3vw, 40px); }
.ai-projects { gap: 20px; }
.ai-project { padding: 32px 30px; }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ai-project .num { margin-bottom: 0; }
.sector { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.6); border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.grid-5 .card .sector { display: inline-block; margin-bottom: 12px; font-size: 10px; }
.ai-project p { font-size: 15.5px; line-height: 1.6; }
.goals-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-top: 20px; }
.ai-project ul.check { margin-top: 8px; }
.ai-project ul.check li { color: rgba(255,255,255,0.8); }
@media (max-width: 640px) { .sector { white-space: normal; } }

/* ---------- Ιστορική αναδρομή (about.html #history) ----------
   Vertical timeline: year in mono on the left, crimson dot on a thin line, text on the right. Stacks on mobile. */
.timeline { list-style: none; margin: 8px 0 0; padding: 0; position: relative; max-width: 900px; }
.timeline::before { content: ''; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 96px 1fr; gap: 44px; padding: 34px 0; position: relative; }
.tl-item::before { content: ''; position: absolute; left: 113px; top: 44px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-glow); }
.tl-year { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--red); padding-top: 6px; text-align: right; white-space: nowrap; }
.tl-body h3 { margin-bottom: 12px; }
.tl-body p { color: var(--ink-soft); font-size: 16px; max-width: 62ch; line-height: 1.7; }
@media (max-width: 640px) {
  .timeline::before { left: 5px; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; padding-left: 26px; }
  .tl-item::before { left: 0; top: 38px; }
  .tl-year { text-align: left; padding-top: 0; }
}

/* ---------- Έργα A.I showcase on ai-solutions.html (#projects): one wide row per project, number | text | 2 goals | arrow ---------- */
.ai-showcase { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.ai-row { display: grid; grid-template-columns: 56px 1.4fr 1fr 40px; gap: 28px; align-items: center; padding: 26px 28px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--black-2); color: var(--white); transition: transform .3s var(--ease), border-color .25s, background .25s; }
.ai-row:hover { transform: translateX(6px); border-color: rgba(237,44,61,.6); background: var(--black-3); }
.ai-row-num { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--red); letter-spacing: .04em; }
.ai-row-main .sector { display: inline-block; margin-bottom: 10px; }
.ai-row-main h3 { margin-bottom: 8px; }
.ai-row-main p { color: rgba(255,255,255,0.68); font-size: 15px; line-height: 1.6; max-width: 56ch; }
.ai-row-goal .goals-label { margin-top: 0; margin-bottom: 4px; }
.ai-row-goal ul.check li { color: rgba(255,255,255,0.8); font-size: 14.5px; margin: 6px 0; }
.ai-row-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background .25s, border-color .25s, transform .3s var(--ease); }
.ai-row-arrow svg { width: 18px; height: 18px; }
.ai-row:hover .ai-row-arrow { background: var(--red); border-color: var(--red); transform: translateX(4px); }
@media (max-width: 900px) { .ai-row { grid-template-columns: 40px 1fr; gap: 16px 20px; } .ai-row-goal { grid-column: 2; } .ai-row-arrow { display: none; } .ai-row:hover { transform: none; } }

/* Tap targets ≥ 24px for small text links (footer, breadcrumbs, contact details) — audit v2.15 */
.site-footer li a, .crumbs a, .contact-info dd a, .footer-bottom a { display: inline-block; padding: 3px 0; }
.inline-link { color: var(--red); font-weight: 700; display: inline-block; padding: 3px 0; }
