/* Frónesis Futures Lab: site styles */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

/* ---------- Brand colours ---------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --green: #29b473;   /* accent: large text and lines only */
  --teal: #00a69c;    /* accent: large text and lines only */
  --lime: #d6de23;    /* fills and tags only */
  --yellow: #fff23a;  /* fills and tags only */
  --grey: #4a4a4a;    /* softer body text, still high contrast */
  --line: #e6e6e6;
  --lime-soft: #f4f7cf;  /* pale lime band behind sections */
  --teal-soft: #e3f4f2;  /* pale teal band behind sections */
  --gradient: linear-gradient(90deg, var(--yellow), var(--lime), var(--teal));

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --measure: 65ch;    /* comfortable line length for reading */
  --wide: 1120px;
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}
@media (min-width: 768px) { body { font-size: 19px; } }

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.6em; overflow-wrap: normal; word-break: normal; hyphens: manual; text-wrap: balance; }
h1 { font-size: clamp(28px, 8.5vw, 34px); font-weight: 700; }
h2 { font-size: 24px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
@media (min-width: 768px) {
  h1 { font-size: 50px; }
  h2 { font-size: 26px; }
}
p { margin: 0 0 1em; max-width: var(--measure); }

a { color: var(--black); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--teal); }
a:hover { text-decoration-color: var(--black); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

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

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

/* Text only for screen readers */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Missing content: easy to spot, easy to find later */
.placeholder { background: var(--yellow); padding: 0 6px; font-size: 0.85em; font-weight: 500; }

/* ---------- Header and menu ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.logo img { width: 200px; }
@media (min-width: 1000px) { .logo img { width: 240px; } }

.menu-toggle {
  font: 600 16px var(--font-body);
  background: var(--white); color: var(--black);
  border: 2px solid var(--black); border-radius: 999px;
  padding: 8px 18px; cursor: pointer;
}
.site-nav { display: none; width: 100%; padding-bottom: 16px; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: 10px 0;
  font-weight: 500; text-decoration: none; font-size: 18px;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { font-weight: 600; box-shadow: inset 4px 0 0 var(--teal); padding-left: 12px; }

.lang-switch { margin-top: 14px; font-weight: 600; font-size: 16px; }
.lang-switch a, .lang-switch span { padding: 4px 6px; }
.lang-switch span[aria-current] { background: var(--lime); border-radius: 4px; }

@media (min-width: 1000px) {
  .menu-toggle { display: none; }
  .site-nav { display: flex !important; align-items: center; gap: 24px; width: auto; padding: 0; }
  .site-nav ul { display: flex; gap: 22px; }
  .site-nav li a { border: 0; padding: 6px 0; font-size: 16px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--teal); padding-left: 0; }
  .lang-switch { margin: 0; padding-left: 20px; border-left: 1px solid var(--line); }
}

/* ---------- Buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; text-decoration: none;
  font: 600 17px var(--font-body);
  padding: 14px 26px; border-radius: 999px;
  border: 2px solid var(--black);
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #222; }
.btn-secondary { background: var(--white); color: var(--black); }
.btn-secondary:hover { background: var(--yellow); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section + .section { border-top: 1px solid var(--line); }

.accent-line { width: 72px; height: 6px; background: var(--gradient); border: 0; margin: 0 0 24px; border-radius: 3px; }

/* Hero: brand gradient, slowly moving */
.hero {
  background: linear-gradient(120deg, var(--yellow), var(--lime), var(--green), var(--teal));
  background-size: 300% 300%;
  animation: gradient-drift 14s ease-in-out infinite alternate;
}
@keyframes gradient-drift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
.hero .accent-line { background: var(--black); }
.hero h1 { max-width: 16ch; }
.hero .subhead { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.35; max-width: 32ch; margin-bottom: 0.8em; }
@media (min-width: 768px) { .hero .subhead { font-size: 26px; } }
.hero .lead { font-size: 1.05em; max-width: 46ch; }
.hero .btn-secondary { background: transparent; }
.hero .btn-secondary:hover { background: var(--white); }

/* Intro */
.intro p { font-size: 1.2em; font-family: var(--font-head); font-weight: 600; line-height: 1.45; max-width: 40ch; }

/* Soft colour bands */
.band-lime { background: var(--lime-soft); }
.band-teal { background: var(--teal-soft); }
.section.band-lime, .section.band-teal, .section.hero, .section.cta,
.band-lime + .section, .band-teal + .section, .hero + .section, .project-break + .section { border-top: 0; }

/* Cards */
.cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 24px 24px; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--gradient); }
.card h3 { color: var(--black); margin-bottom: 0.4em; }
.card p { margin: 0 0 1em; }
.card a { font-weight: 600; }
.card a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }

/* What you gain */
.gains { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 32px 40px; }
@media (min-width: 700px) { .gains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gains { grid-template-columns: repeat(3, 1fr); } }
.gain { position: relative; padding-top: 4px; }
.gain-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px;
  background: var(--gradient); font-family: var(--font-head); font-weight: 800; font-size: 15px;
}
.gain h3 { margin-bottom: 0.4em; }
.gain p { margin: 0; font-size: 17px; }

/* Home: blog carousel across the full width of the page (arrows, no visible scrollbar) */
.blog-strip { padding: 56px 0; }
.blog-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.blog-head h2 { margin: 0; }
.blog-controls { display: flex; align-items: center; gap: 10px; }
.blog-controls .card-link { margin: 0 8px 0 0; }
.strip-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--black); background: var(--white); font-size: 18px; cursor: pointer; }
.strip-btn:hover { background: var(--yellow); }
.post-strip {
  list-style: none; margin: 0; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter))) 8px;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.post-strip::-webkit-scrollbar { display: none; }
.post-chip { position: relative; flex: 0 0 min(300px, 78vw); scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.post-chip:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }
.post-chip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-chip > div { padding: 14px 16px 18px; }
.post-chip time { font-size: 13px; color: var(--grey); }
.post-chip h3 { font-size: 17px; line-height: 1.3; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-chip h3 a { text-decoration: none; }
.post-chip h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.post-chip:hover h3 a { text-decoration: underline; text-decoration-color: var(--teal); }
@media (prefers-reduced-motion: reduce) { .post-chip, .post-chip:hover { transition: none; transform: none; } }

/* Latest writing on Home */
.home-posts { margin-top: 28px; }

/* Home: intro statement under the header */
.intro-statement { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.3; max-width: 30ch; margin-bottom: 0.5em; text-wrap: balance; }
@media (min-width: 768px) { .intro-statement { font-size: 38px; } }
.intro-follow { font-size: 1.15em; max-width: 46ch; color: var(--grey); margin: 0; }
.intro-break + .section { border-top: 0; }

/* Home: services cards */
.card-link { font-weight: 600; display: inline-block; margin-top: 4px; }
.more summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 3px; }
.more[open] summary { margin-bottom: 8px; }
.mini-steps { margin: 0; padding-left: 1.2em; font-size: 16px; }
.mini-steps li { margin-bottom: 4px; }

/* Home: project break, one wide banner with the text card overlapping its bottom edge */
.project-break { position: relative; background: var(--white); }
.project-break img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 62% center; }
@media (min-width: 768px) { .project-break img { aspect-ratio: 3 / 1; } }
.project-break .wrap { position: relative; }
.project-break-text { background: var(--white); border-radius: 16px; padding: 28px; margin: -80px 0 48px; position: relative; box-shadow: inset 0 6px 0 var(--teal), 0 10px 30px rgba(0, 0, 0, 0.15); max-width: 560px; }
@media (min-width: 900px) {
  /* the card sits inside the banner, poking out just a touch at the bottom */
  .project-break { margin-bottom: 32px; }
  .project-break .wrap { position: absolute; left: 0; right: 0; bottom: -32px; }
  .project-break-text { margin: 0; padding: 28px 32px; }
}
.project-break-text p { margin-bottom: 0.8em; }

/* Home: who we work with */
.who-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .who-list { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.who-list li { border-top: 5px solid; border-image: var(--gradient) 1; padding-top: 18px; display: flex; flex-direction: column; }
.who-list li .card-link { margin-top: auto; align-self: flex-start; } /* links sit on one line */
.who-list p { font-size: 17px; }

/* Home: what you gain, 4 points */
@media (min-width: 1000px) { .gains-4 { grid-template-columns: repeat(4, 1fr); } }
.gain-icon { display: block; width: 64px; height: 64px; margin-bottom: 14px; fill: none; stroke: var(--black); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.gain-icon .fill { fill: var(--yellow); stroke: none; }
.gain-for { display: block; font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--grey); margin-top: 2px; }

/* Home: "In action" page breaker, three photos edge to edge in one wide strip */
.action-break { position: relative; }
.action-strip { display: grid; grid-template-columns: 1fr; aspect-ratio: 16 / 10; }
.action-strip img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.action-strip .c-a { object-position: 50% 45%; }
.action-strip .c-b { display: none; }
.action-strip .c-b { object-position: 76% 55%; }
.action-strip .c-c { object-position: 70% 55%; }
@media (min-width: 768px) {
  .action-strip { grid-template-columns: 2.3fr 1fr; aspect-ratio: 3 / 1; }
  .action-strip .c-b { display: block; }
}
.action-text h2 { margin-bottom: 0.4em; }
@media (max-width: 899px) { .action-text { margin-top: -28px; } }
.action-text p { font-size: 16px; color: var(--grey); margin: 0; }
@media (min-width: 900px) {
  /* card overlaps only the bottom edge, so the photos stay fully visible */
  .action-text { margin: -48px 0 0; max-width: 560px; }
}
.action-break + .section { border-top: 0; }

/* Home: short about */
.about-short-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .about-short-grid { grid-template-columns: 340px 1fr; gap: 56px; } }
.about-short .about-photo { max-width: 340px; }
.highlights { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.highlights li { padding-left: 22px; position: relative; font-size: 17px; }
.highlights li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }

/* Home: approach */
.approach-lead { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.3; max-width: 30ch; }
@media (min-width: 768px) { .approach-lead { font-size: 30px; } }

/* Home: European projects strip */
.eu-strip { background: var(--yellow); padding: 28px 0; }
.eu-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.eu-strip p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.eu-strip + .section { border-top: 0; }

/* Writing teaser */
.writing h2, .cards-section h2 { color: var(--black); }

/* Closing call to action */
.cta { background: var(--black); color: var(--white); }
.cta p { font-family: var(--font-head); font-weight: 600; font-size: 1.3em; line-height: 1.4; max-width: 34ch; }
.cta .btn { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.cta .btn:hover { background: var(--lime); border-color: var(--lime); }

/* ---------- Inner pages ---------- */
/* Page top: same moving gradient as the Home hero */
.page-hero {
  background: linear-gradient(120deg, var(--yellow), var(--lime), var(--green), var(--teal));
  background-size: 300% 300%;
  animation: gradient-drift 14s ease-in-out infinite alternate;
  border-top: 0;
}
.page-hero .accent-line { background: var(--black); }
.page-hero .subhead { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.35; max-width: 32ch; margin-bottom: 0.8em; }
@media (min-width: 768px) { .page-hero .subhead { font-size: 26px; } }
.page-hero + .section { border-top: 0; }

.jump-links { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jump-links a {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 8px 16px; border-radius: 999px; background: var(--white); border: 2px solid var(--black);
}
.jump-links a:hover { background: var(--yellow); }

/* Services pillars: text next to a photo */
.pillar { scroll-margin-top: 16px; }
.pillar-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .pillar-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .pillar-grid.flip .pillar-text { order: 2; }
}
.kicker { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: 0.1em; margin: 0 0 8px; }
.kicker::before { content: ""; display: inline-block; width: 28px; height: 4px; background: var(--gradient); vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.pillar h2 { font-size: 30px; }
@media (min-width: 768px) { .pillar h2 { font-size: 36px; } }
.pillar h2 .sub { display: block; font-size: 0.55em; font-weight: 600; color: var(--grey); margin-top: 6px; }

/* Space for a photo, until Daniella sends one */
.photo-placeholder {
  aspect-ratio: 4 / 3; border-radius: 16px;
  border: 2px dashed rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.6);
  display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center;
}
.pillar-photo { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Numbered steps */
.pillar h3 { margin-top: 48px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 64px 20px 20px; font-size: 17px;
}
.steps li::before {
  content: counter(step); position: absolute; top: 18px; left: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--yellow); font-family: var(--font-head); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.pricing { margin-top: 24px; font-weight: 600; }

/* Projects: grid of image tiles. Description shows on hover (or keyboard focus).
   On phones and tablets there is no hover, so the description sits under the title. */
.project-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .project-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.project-tile { position: relative; border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.project-media { aspect-ratio: 16 / 10; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: var(--lime-soft); }
img.project-media { width: 100%; height: auto; object-fit: cover; }
/* Several phone screens side by side */
.project-media.phones { display: flex; justify-content: center; align-items: center; gap: 4%; padding: 5% 6%; background: var(--lime-soft); }
.project-media.phones img { height: 100%; width: auto; border-radius: 10px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }
.status { display: inline-block; align-self: flex-start; background: var(--lime); border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: 15px; }
.project-title { font-size: 24px; margin: 0; padding: 18px 22px 20px; position: relative; }
.project-title::before { content: ""; position: absolute; left: 22px; top: 0; width: 48px; height: 5px; background: var(--gradient); border-radius: 0 0 3px 3px; }
.project-overlay { padding: 0 22px 22px; font-size: 16px; }
.project-overlay p { margin: 0 0 0.8em; }
.project-overlay a { position: relative; z-index: 1; font-weight: 600; }

@media (hover: hover) and (min-width: 900px) {
  .project-overlay {
    position: absolute; inset: 0 0 auto 0; aspect-ratio: 16 / 10; overflow: auto;
    padding: 28px; display: flex; flex-direction: column; justify-content: flex-end;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 6px 0 var(--teal);
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .project-tile:hover .project-overlay,
  .project-tile:focus .project-overlay,
  .project-tile:focus-within .project-overlay { opacity: 1; transform: none; }
  .project-tile { cursor: default; transition: box-shadow 0.3s ease; }
  .project-tile:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1); }
}

/* Approach page */
.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.two-col h2 { position: relative; padding-top: 18px; }
.two-col h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 5px; background: var(--gradient); border-radius: 3px; }
.card h3:only-child, .cards .card h3 { margin-top: 0; }
.big-question { text-align: left; }
.big-question h2 { font-size: 18px; letter-spacing: 0.04em; color: var(--grey); }
.big-question .question {
  font-family: var(--font-head); font-weight: 800; line-height: 1.25;
  font-size: 28px; max-width: 28ch; margin: 0;
  padding-left: 24px; border-left: 8px solid var(--teal);
}
@media (min-width: 768px) { .big-question .question { font-size: 40px; } }
.why-name { background: var(--lime-soft); }
.why-name h2 { font-size: 18px; letter-spacing: 0.04em; color: var(--grey); }

/* "Why Frónesis?" shown like a word entry */
.definition {
  display: grid; gap: 24px; align-items: center;
  background: var(--white); border-radius: 16px; padding: 32px 28px;
  box-shadow: inset 8px 0 0 var(--teal);
  max-width: 820px;
}
@media (min-width: 700px) { .definition { grid-template-columns: 140px 1fr; gap: 40px; padding: 44px 48px; } }
.definition-icon { width: 96px; animation: float 6s ease-in-out infinite; }
@media (min-width: 700px) { .definition-icon { width: 140px; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.definition-body p { margin: 0; }
.def-word { font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1.1; }
@media (min-width: 768px) { .def-word { font-size: 52px; } }
.def-greek { font-size: 26px; color: var(--teal); font-weight: 500; letter-spacing: 0.02em; }
.def-origin { font-size: 16px; color: var(--grey); margin-top: 6px !important; }
.def-meaning {
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  margin-top: 20px !important; padding-top: 16px; border-top: 1px solid var(--line);
}
.def-meaning::before { content: "1. "; color: var(--teal); }
.def-text { font-size: 1.05em; margin-top: 6px !important; }

/* About page */
.about-hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .about-hero-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.photo-placeholder.portrait { aspect-ratio: 4 / 5; max-width: 420px; width: 100%; }
.about-photo { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; max-width: 420px; width: 100%; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { background: var(--white); border-radius: 999px; padding: 6px 16px; font-size: 15px; font-weight: 600; }

/* Timeline of turning points */
.timeline { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; max-width: 760px; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--yellow), var(--lime), var(--green), var(--teal));
}
.tl-item { position: relative; padding-bottom: 48px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -44px; top: 4px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--teal); box-sizing: border-box;
}
.tl-item.tl-now::before { background: var(--teal); box-shadow: 0 0 0 6px var(--teal-soft); }
.tl-item h2 { font-size: 22px; }
@media (min-width: 768px) { .tl-item h2 { font-size: 26px; } }
.pull-quote { margin: 8px 0 24px; padding: 18px 24px; background: var(--lime-soft); border-radius: 12px; }
.pull-quote p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.35; }

/* Writing page: hand-made list of Substack posts */
.post-grid { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 28px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); border-color: var(--teal); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-body { padding: 20px 22px 24px; }
.post-body time { font-size: 14px; font-weight: 500; color: var(--grey); }
.post-body h2 { font-size: 20px; line-height: 1.3; margin: 6px 0 10px; }
.post-body h2 a { text-decoration: none; }
.post-body h2 a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.post-card:hover h2 a { text-decoration: underline; text-decoration-color: var(--teal); }
.post-excerpt { font-size: 16px; margin: 0; color: var(--grey); }

/* Contact form */
.contact-form, .form-thanks { max-width: 720px; }
.contact-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; font-size: 17px; padding: 0; }
.optional { font-weight: 400; color: var(--grey); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  font: 400 18px var(--font-body); color: var(--black);
  padding: 12px 14px; border: 2px solid #9a9a9a; border-radius: 10px; background: var(--white); width: 100%;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--black); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.choice { position: relative; font-weight: 500 !important; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 5px 13px; font-size: 15px; border: 1.5px solid var(--black); border-radius: 999px; cursor: pointer; }
.choice input:checked + span { background: var(--yellow); }
.choice input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 16px; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.contact-form .btn { justify-self: start; cursor: pointer; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }
.form-error { margin: 0; }
.form-note { margin: -12px 0 0; font-size: 14px; color: var(--grey); }
.form-thanks { background: var(--lime-soft); border-radius: 16px; padding: 28px; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.form-thanks p { margin: 0; }
.or-email { margin-top: 32px; }

/* Privacy and legal pages */
.legal > * { max-width: 760px; }
.legal h2 { font-size: 22px; margin-top: 2em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.3em; }

/* Contact: story intro (left) and form (right) side by side */
.contact-grid { display: grid; gap: 40px; align-items: start; }
.contact-form-col { order: -1; } /* phones: form first */
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; }
  .contact-form-col { order: 0; }
}
.contact-about { scroll-margin-top: 16px; display: flex; flex-direction: column; align-self: stretch; }
.contact-about .facts li { background: var(--white); }
.contact-about .about-photo { margin-top: 24px; max-width: 420px; }
.story-intro { font-size: 1.1em; max-width: 44ch; }
.contact-split + .section { border-top: 0; }
@media (min-width: 1000px) { .contact-split { padding-bottom: 0; } }

/* Wider layout for the Contact page */
.wrap-wide { max-width: 1360px; padding: 0 24px; }
@media (min-width: 1200px) { .wrap-wide { padding: 0 40px; } }

/* Hand-drawn arrow from the photo down to the timeline */
.story-timeline { padding-top: 0; border-top: 0; }
.story-arrow { display: block; width: 260px; flex: 1 1 auto; min-height: 160px; margin-top: 8px; overflow: visible; }
.story-arrow .draw { fill: none; stroke: var(--black); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.js .story-arrow .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .story-arrow.is-visible .draw { animation: draw-line 1.6s ease forwards; }
.js .story-arrow.is-visible .head { animation-delay: 1.3s; animation-duration: 0.4s; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .js .story-arrow .draw { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; } }

/* Contact: story */
.about-story .facts li { background: var(--white); }
.tl-item h3 { font-size: 22px; }
@media (min-width: 768px) { .tl-item h3 { font-size: 24px; } }
.tl-item.tl-highlight { background: var(--yellow); border-radius: 12px; padding: 18px 20px; margin: 0 0 48px -8px; }
.tl-item.tl-highlight::before { left: -36px; top: 22px; }
.tl-item.tl-highlight p:last-child { margin-bottom: 0; }

/* Learning Lab page: every offer in one grid */
.page-hero-compact { padding: 32px 0 28px; }
@media (min-width: 768px) { .page-hero-compact { padding: 36px 0 32px; } }
.page-hero-compact h1 { margin-bottom: 0.3em; }
.page-hero-compact .lead { margin: 0; max-width: none; }
.page-hero-compact .lead + .lead { margin-top: 0.5em; max-width: 70ch; }
.page-hero-compact .buttons { margin-top: 18px; }
.offers { padding-top: 24px; scroll-margin-top: 16px; }
.offer-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 600px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1150px) { .offer-grid { grid-template-columns: repeat(4, 1fr); } }
.offer-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.offer-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }
.offer-img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; display: block; }
.offer-top { height: 60px; border-radius: 0; border: 0; padding: 8px; font-size: 13px; }
.offer-top-mynm { background: #fffbd0; box-shadow: inset 0 -6px 0 var(--yellow); }
.offer-top-ai { background: var(--lime-soft); box-shadow: inset 0 -6px 0 var(--lime); }
.offer-top-course { background: var(--teal-soft); box-shadow: inset 0 -6px 0 var(--teal); }
.offer-body { padding: 14px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.offer-body h3 { font-size: 18px; margin: 8px 0 0.35em; }
.offer-body p { font-size: 15px; line-height: 1.45; margin: 0 0 8px; }
.offer-tag { display: inline-block; align-self: flex-start; border-radius: 999px; padding: 3px 12px; font-weight: 600; font-size: 13px !important; }
.offer-tag-mynm { background: var(--yellow); }
.offer-tag-ai { background: var(--lime); }
.offer-tag-course { background: var(--teal-soft); border: 1px solid var(--teal); }
.offer-meta { margin-top: auto !important; padding-top: 6px; font-size: 13px !important; }
.offer-body .btn { align-self: flex-start; padding: 10px 18px; font-size: 15px; }
.offer-note { margin-top: 20px; font-size: 14px; }
.filters { margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: flex-end; }
.filter-select { display: grid; gap: 4px; flex: 0 1 auto; min-width: 0; }
@media (max-width: 699px) { .filter-select { flex: 1 1 100%; } }
.filter-select span { font-weight: 600; font-size: 14px; }
.filter-select select {
  font: 500 15px var(--font-body); color: var(--black);
  padding: 9px 40px 9px 12px; min-width: 230px; max-width: 100%; border: 1.5px solid var(--black); border-radius: 10px; background-color: var(--white);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.filter-select select:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.filter-count { margin: 0 0 10px; font-size: 14px; color: var(--grey); }
.offer-empty { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .offer-card, .offer-card:hover { transition: none; transform: none; } }

/* European projects page */
.eu-hero h1 { max-width: 20ch; }
.eu-hero .facts li { background: var(--white); }
.eu-hero .facts .fact-flag { background: var(--yellow); }
.eu-two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .eu-two-col { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.eu-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.eu-list li { position: relative; padding-left: 22px; font-size: 17px; }
.eu-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
@media (min-width: 900px) { .eu-exp { grid-template-columns: 1fr 1fr; gap: 14px 48px; } }
.eu-sub { margin-top: 1.4em; }
.eu-feature { display: grid; gap: 24px; background: var(--lime-soft); border-radius: 16px; padding: 28px; box-shadow: inset 8px 0 0 var(--lime); margin: 24px 0; }
@media (min-width: 900px) { .eu-feature { grid-template-columns: 1.6fr 1fr; gap: 48px; padding: 36px 40px; } }
.eu-feature h3 { font-size: 26px; }
.eu-label { font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #00857d; margin-bottom: 8px !important; }
.eu-feature p { margin: 0 0 0.6em; }
.eu-looking { font-size: 16px; }
.cta .cta-sub { font-family: var(--font-body); font-weight: 400; font-size: 1em; }

/* Foundation */
.foundation h2 { font-size: 30px; }
.foundation p { font-size: 1.1em; }
.foundation .where { font-size: 16px; color: var(--grey); margin-top: 1.5em; }

/* ---------- Footer ---------- */
.site-footer { padding: 0 0 24px; font-size: 16px; color: var(--grey); }
.site-footer .gradient-bar { height: 6px; background: var(--gradient); margin: 0 0 48px; }
.site-footer p { margin: 0 0 0.6em; }
.site-footer .tagline { font-family: var(--font-head); font-weight: 600; color: var(--black); }
.footer-main { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-main { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; } }
.footer-brand { display: grid; gap: 24px; align-items: start; }
@media (min-width: 600px) { .footer-brand { grid-template-columns: auto 1fr; } }
.footer-logo img { width: 110px; }
.footer-social a { font-weight: 600; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-heading { font-family: var(--font-head); font-weight: 700; color: var(--black); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--teal); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px; font-size: 14px; }

/* ---------- Motion ---------- */
/* Sections fade in as you scroll. Only when JavaScript is on, so nothing stays hidden. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Respect "reduce motion" in phone or computer settings */
@media (prefers-reduced-motion: reduce) {
  .hero, .page-hero { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card:hover, .post-card, .post-card:hover { transition: none; transform: none; }
  .project-overlay { transition: none; transform: none; }
  .definition-icon { animation: none; }
}
