/* ==========================================================================
   Launch Pad Finland ry — landing page styles
   Design system mirrors mukanary.fi: full-bleed photo hero, light-weight
   Raleway headings, Open Sans body, orange accent, generous whitespace.
   Brand colours are sampled from the LPF logo (orange bulb, blue hat).
   ========================================================================== */

:root {
  --orange:       #E06321;
  --orange-dark:  #B94D18;
  --orange-soft:  #FDF3EC;
  --blue:         #027BC2;
  --blue-dark:    #01598C;
  --ink:          #272727;
  --ink-soft:     #4A4A4A;
  --line:         #E4E1DE;
  --paper:        #FFFFFF;
  --paper-alt:    #F9F7F5;

  --shell:        1180px;
  --gutter:       clamp(1.25rem, 5vw, 4rem);
  --section-y:    clamp(4.5rem, 9vw, 8rem);

  --font-head: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; }

p { margin: 0 0 1.35em; }
p:last-child { margin-bottom: 0; }

/* --- shared layout primitives -------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--paper-alt); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* The small orange all-caps label that sits above each major heading —
   lifted straight from the reference site's "WHAT WE DO" eyebrow. */
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1rem;
}

.lede { font-size: 1.15rem; color: var(--ink); }

.rule {
  width: 56px;
  height: 3px;
  background: var(--orange);
  border: 0;
  margin: 0 0 1.75rem;
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--orange);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; text-decoration: none; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* --- top utility bar ------------------------------------------------------ */

.topbar {
  background: var(--orange);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.topbar .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__links { display: flex; gap: 1.25rem; }

/* --- site header ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: .8rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.15;
}
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.nav ul {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  font-family: var(--font-head);
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-block: .4rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--orange); border-bottom-color: var(--orange); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(460px, 76vh, 700px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
/* Dark scrim so the light-weight headline stays legible over the photo. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(24,26,32,.82) 0%, rgba(24,26,32,.55) 45%, rgba(24,26,32,.22) 100%);
}
.hero .shell { position: relative; z-index: 2; padding-block: 4rem; }
.hero__inner { max-width: 40rem; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 strong { font-weight: 600; }
.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.92);
  margin-bottom: 2.25rem;
  max-width: 34rem;
}
.hero__eyebrow { color: #fff; opacity: .85; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- two-column text + image --------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* --- work / capability cards --------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  padding: 2rem 1.75rem;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(39,39,39,.09); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: 0.97rem; margin: 0; }

/* --- pull quote band ------------------------------------------------------ */

.quote {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.quote__media { position: absolute; inset: 0; }
.quote__media img { width: 100%; height: 100%; object-fit: cover; }
.quote__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,32,46,.68);
}
.quote .shell { position: relative; z-index: 2; padding-block: clamp(4rem, 8vw, 6.5rem); }
.quote blockquote {
  margin: 0 auto;
  max-width: 46rem;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  line-height: 1.4;
  color: #fff;
}
.quote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* --- projects ------------------------------------------------------------- */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.project {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.project h3 { font-size: 1.1rem; margin: 0; }
.project p { font-size: 0.95rem; margin: 0; }
.tag {
  align-self: flex-start;
  margin-top: auto;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: #EAF4FB;
  padding: .35rem .7rem;
}

/* --- news ----------------------------------------------------------------- */

.news { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.news li { border-top: 1px solid var(--line); }
.news li:last-child { border-bottom: 1px solid var(--line); }
.news a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
}
.news a:hover { color: var(--orange); text-decoration: none; }
.news__source {
  flex: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

/* --- closing CTA ---------------------------------------------------------- */

.cta {
  position: relative;
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,18,34,.72), rgba(14,18,34,.86));
}
.cta .shell { position: relative; z-index: 2; padding-block: clamp(4.5rem, 9vw, 7rem); }
.cta h2 { color: #fff; }
.cta p { max-width: 40rem; margin-inline: auto; color: rgba(255,255,255,.9); }
.cta__actions { margin-top: 2.25rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* --- footer --------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  font-size: 0.95rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .04em; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: var(--orange); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.site-footer .brand__name { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
}

/* --- scroll reveal -------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .nav a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-header .shell { position: relative; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .news a { flex-direction: column; gap: .35rem; }
  .topbar .shell { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

/* --- full-bleed photo band ------------------------------------------------ */

.band { display: block; }
.band img {
  width: 100%;
  height: clamp(240px, 34vw, 420px);
  object-fit: cover;
  object-position: center 55%;
}
