/* =========================================================
   Arctic Talent – tyylit
   Ilme: käyntikortin sininen paneeli, aallot ja aurinko;
   Faculty Glyphic (otsikot) + TASA Explorer (leipäteksti)
   ========================================================= */

/* ===== Muuttujat ===== */
:root {
  --ink: #12438B;
  --logo-color: var(--ink);
  --muted: #526477;
  --soft: #6b7f95;
  --line: #d9e1e8;
  --line-2: #c9d6e3;
  --line-3: #9fb6d3;
  --snow: #f3f6f9;
  --blue: #1659d4;
  --blue-dark: #1046ae;
  --wave-1: #3a72dc;
  --wave-2: #5b8ce6;
  --sun: #f3783d;
  --on-ink: #b8c6d6;
  --on-ink-2: #d3dde8;
  --heading: "Cal Sans", sans-serif;
  --body: "SN Pro", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --sec: clamp(72px, 9vw, 128px);
}

/* ===== Perusta ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--heading); font-weight: 400; margin: 0; }
p, blockquote, figure { margin: 0; }
a { color: inherit; }
a:hover { color: var(--blue); }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
img { max-width: 100%; }
em { font-style: normal; }

.skip { position: fixed; top: -100px; left: 20px; z-index: 20; background: #fff; padding: 10px 14px; }
.skip:focus { top: 10px; }

.wrap { max-width: 1200px; margin: 0 auto; }

/* ===== Osiot ===== */
.section { padding: var(--sec) var(--pad); }
.section--snow { background: var(--snow); }
.section--ink { background: var(--ink); color: #fff; }
.section--flush-top { padding-top: 0; }

/* ===== Typografia ===== */
.label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.label--dot { display: flex; align-items: center; gap: 12px; }
.dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }

.running-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.running-head .rule { flex: 1 1 40px; height: 1px; background: var(--line); }
.section--snow .running-head .rule { background: var(--line-2); }
.section--ink .running-head { color: var(--on-ink); }
.section--ink .running-head .rule { background: rgba(255, 255, 255, 0.22); }

.title { font-size: clamp(36px, 4vw, 58px); line-height: 1.12; }
.title span { color: var(--soft); }
.section--ink .title span { color: var(--line-3); }
.title--blue span { color: var(--blue); }

.lead-large { font-size: 21px; line-height: 1.5; }
.body { font-size: 16px; color: var(--muted); }
.section--ink .body { color: var(--on-ink); }
.stack > * + * { margin-top: 14px; }

.link { font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }

/* ===== Painikkeet ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 1rem;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-radius: 2px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 15px; gap: 10px; }
.btn--medium { min-height: 52px; padding: 1rem; font-size: 15px; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white:hover { background: #e8eef7; border-color: #e8eef7; color: var(--ink); }
.btn--light { background: transparent; color: #fff; border-color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ===== Ylä- ja alatunniste ===== */
.site-header { padding: 22px var(--pad); border-bottom: 1px solid #e3e9ef; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.logo { display: block; line-height: 0; }
.logo-svg { display: block; width: auto; color: var(--logo-color); }
.logo .logo-svg { height: 40px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; }

.site-footer { padding: 36px var(--pad); border-top: 1px solid #e3e9ef; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; font-size: 14px; color: var(--muted); }
.site-footer .logo .logo-svg { height: 30px; }

/* ===== Käyntikortin paneeli (sininen, aallot, aurinko) ===== */
.panel { position: relative; overflow: hidden; background: var(--blue); }
.panel .waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel .sun { position: absolute; border-radius: 50%; background: var(--sun); }
.vertical {
  position: absolute;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* ===== Hero ===== */
.hero { padding: clamp(48px, 7vw, 96px) var(--pad) clamp(56px, 7vw, 104px); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: stretch; gap: clamp(40px, 6vw, 88px); }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin-top: 28px; font-size: clamp(44px, 5.4vw, 78px); line-height: 1.06; letter-spacing: -0.01em; }
.hero h1 em { color: var(--blue); }
.hero--home h1 { font-size: clamp(48px, 6vw, 88px); line-height: 1.04; }
.hero-lead { margin-top: 28px; max-width: 520px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--muted); }

.hero-art { flex: 1 1 420px; min-width: 0; position: relative; min-height: 600px; }
.hero-art .panel { position: absolute; top: 0; right: 0; bottom: 0; width: 74%; }
.hero-art .sun { top: 19%; right: 34%; width: 38px; height: 38px; }
.hero-art .vertical { right: 26px; bottom: 36px; }
.hero-portrait { position: absolute; left: 0; bottom: 44px; width: 54%; }
.hero-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 18%; }
.hero-portrait figcaption, .bio-photo figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-portrait figcaption { margin-top: 0; padding: 8px; background: #fff; }
.hero-portrait strong, .bio-photo strong { color: var(--ink); font-weight: 600; }

.hero-art--home { min-height: 560px; }
.hero-art--home .sun { top: 24%; left: 52%; right: auto; width: 42px; height: 42px; }
.hero-art--home .vertical { top: 36px; right: 28px; bottom: auto; transform: none; }
.hero-art--home .caption { position: absolute; left: 32px; bottom: 32px; color: #fff; font-family: var(--heading); font-size: 22px; }

/* ===== Avauskysymys (Next Chapter) ===== */
.opening .wrap { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 6vw, 96px); }
.opening .label { flex: 0 1 220px; }
.opening-body { flex: 1 1 560px; min-width: 0; }
.opening-question { font-family: var(--heading); font-size: clamp(28px, 3vw, 42px); line-height: 1.3; }
.opening-cols { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px 48px; font-size: 17px; color: var(--muted); }
.opening-cols p { flex: 1 1 280px; }

/* ===== Kaksipalstainen asettelu ===== */
.split { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 6vw, 96px); }
.split > * { flex: 1 1 440px; min-width: 0; }
.split--end { align-items: end; }
.split .lead-large + .body { margin-top: 18px; }

/* ===== Aikajana: ennen – aikana – jälkeen ===== */
.timeline { list-style: none; margin: 72px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 48px 40px; }
.timeline > li { flex: 1 1 280px; min-width: 0; position: relative; border-top: 1px solid var(--line-3); padding-top: 32px; }
.marker { position: absolute; top: -8px; left: 0; width: 15px; height: 15px; border-radius: 50%; }
.marker--empty { border: 2px solid var(--blue); background: var(--snow); }
.marker--half { border: 2px solid var(--blue); background: linear-gradient(90deg, var(--blue) 50%, var(--snow) 50%); }
.marker--sun { background: var(--sun); }
.timeline .label { color: var(--blue); }
.timeline h3 { font-size: 27px; line-height: 1.25; }
.timeline .label + h3 { margin-top: 14px; }
.timeline .body { margin-top: 12px; }
.closing-note { margin-top: 64px; max-width: 760px; font-family: var(--heading); font-size: 22px; line-height: 1.45; }

/* ===== Työskentelyn vaiheet ===== */
.steps { list-style: none; margin: 80px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 64px 32px; }
.steps > li { flex: 1 1 230px; min-width: 0; position: relative; border-top: 2px solid var(--line); padding-top: 34px; }
.step-dot { position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); }
.step--key { border-top-color: var(--blue) !important; }
.step--key .step-dot { top: -48px; width: 34px; height: 34px; background: var(--sun); }
.step-meta { font-size: 13px; color: var(--muted); }
.step--key .step-meta { color: var(--blue); font-weight: 600; }
.steps h3 { margin-top: 10px; font-size: 24px; line-height: 1.25; }
.steps .body { margin-top: 12px; font-size: 15px; }

/* ===== Lähitapaaminen ja tavoitteet ===== */
.detail { margin-top: clamp(80px, 10vw, 136px); display: flex; flex-wrap: wrap; align-items: start; gap: 56px clamp(40px, 6vw, 96px); }
.detail-main { flex: 1 1 520px; min-width: 0; }
.detail-aside { flex: 1 1 380px; min-width: 0; }
.detail-main h3 { margin-top: 16px; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.2; }
.detail-main h3 + .stack { margin-top: 20px; }
.detail-main .label--spaced { margin-top: 48px; }

.goals { list-style: none; margin: 20px 0 0; padding: 0; }
.goals li { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.goals li:last-child { border-bottom: 1px solid var(--line); }
.goal-num { flex: 0 0 28px; font-family: var(--heading); font-size: 26px; line-height: 1; color: var(--blue); }
.goals strong { color: var(--ink); font-weight: 600; }
.goals + .body { margin-top: 24px; }

.sheet {
  max-width: 420px;
  padding: 36px 36px 44px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(23, 46, 71, 0.10);
  transform: rotate(-1.5deg);
}
.sheet .logo-svg { height: 26px; }
.sheet .label { margin-top: 28px; font-size: 11px; }
.sheet-title { margin-top: 22px; font-family: var(--heading); font-size: 18px; }
.sheet-lines { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.sheet-lines span { display: block; height: 7px; background: #e6edf4; }
.detail-aside h3 { margin-top: 48px; font-size: 26px; }
.detail-aside .body { margin-top: 12px; max-width: 460px; }

/* ===== Hinta ===== */
.price .wrap { display: flex; flex-wrap: wrap; border: 1px solid var(--line); }
.price-body { flex: 4 1 600px; min-width: 0; padding: clamp(32px, 4.5vw, 64px); display: flex; flex-wrap: wrap; gap: 40px 64px; }
.price-main { flex: 1 1 300px; }
.price-amount { margin-top: 18px; font-family: var(--heading); font-size: clamp(52px, 5.4vw, 76px); line-height: 1; color: var(--blue); white-space: nowrap; }
.price-vat { margin-top: 10px; font-size: 16px; color: var(--muted); }
.price-main .btn { margin-top: 36px; }
.price-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.price-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.price-text strong { color: var(--ink); font-weight: 600; }
.price-art { flex: 1 1 200px; min-height: 200px; }
.price-art .sun { top: 22%; left: 44%; width: 30px; height: 30px; }
.price-art .vertical { right: 22px; bottom: 28px; font-size: 11px; }

/* ===== Käytännön järjestelyt ===== */
.grid-2 { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 96px); }
.grid-2 > div { flex: 1 1 440px; min-width: 0; border-top: 1px solid var(--line-2); padding-top: 24px; }
.grid-2 h3 { font-size: 24px; }
.grid-2 .body { margin-top: 12px; }

/* ===== Lainaus ===== */
.quote { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: clamp(80px, 10vw, 140px) var(--pad) clamp(120px, 14vw, 200px); }
.quote .waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; }
.quote .wrap { position: relative; max-width: 1000px; }
.quote .dot { width: 26px; height: 26px; }
.quote blockquote { margin-top: 36px; font-family: var(--heading); font-size: clamp(30px, 3.6vw, 52px); line-height: 1.25; }
.quote cite { display: block; margin-top: 28px; font-style: normal; font-size: 15px; letter-spacing: 0.04em; }

/* ===== Jari ===== */
.bio { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 96px); }
.bio-photo { flex: 0 1 420px; min-width: 0; }
.bio-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.bio-text { flex: 1 1 480px; min-width: 0; }
.bio-text .lead-large { margin-top: 24px; }
.bio-text .lead-serif { margin-top: 24px; font-family: var(--heading); font-size: clamp(22px, 2vw, 27px); line-height: 1.4; }
.years { list-style: none; margin: 36px 0 0; padding: 0; }
.years li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.years li:last-child { border-bottom: 1px solid var(--line); }
.year { flex: 0 0 140px; font-family: var(--heading); font-size: 26px; color: var(--blue); }
.year-text { flex: 1 1 220px; font-size: 16px; }
.years + .stack { margin-top: 28px; }
.bio-text .link { display: inline-block; margin-top: 24px; }

/* ===== Yhteistyökumppanit ===== */
.note-box { margin-top: 64px; padding: clamp(28px, 4vw, 48px); background: rgba(255, 255, 255, 0.06); display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 5vw, 72px); }
.note-box h3 { flex: 1 1 300px; display: flex; align-items: flex-start; gap: 16px; font-size: 28px; line-height: 1.25; }
.note-box h3 .dot { margin-top: 10px; width: 14px; height: 14px; }
.note-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--on-ink-2); }
.numbered { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 48px 40px; }
.numbered > div { flex: 1 1 280px; min-width: 0; border-top: 1px solid rgba(255, 255, 255, 0.28); padding-top: 24px; }
.num { font-family: var(--heading); font-size: 40px; line-height: 1; color: var(--line-3); }
.numbered .label { margin-top: 18px; color: var(--on-ink); }
.numbered h3 { margin-top: 10px; font-size: 24px; line-height: 1.3; }
.numbered .body { margin-top: 12px; font-size: 15px; }
.section--ink > .wrap > .btn { margin-top: 56px; }

/* ===== Yhteystiedot ja käyntikortti ===== */
.contact .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px clamp(40px, 6vw, 96px); }
.contact-text { flex: 1 1 460px; min-width: 0; }
.contact-text .title { margin-top: 20px; }
.contact-text .lead-large { margin-top: 24px; }
.contact-text .body { margin-top: 16px; }
.contact-text .btn { margin-top: 36px; }
.contact-card { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; }
.bcard {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 90 / 50;
  display: flex;
  background: #fff;
  box-shadow: 0 28px 56px rgba(23, 46, 71, 0.14);
  transform: rotate(1.2deg);
}
.bcard-body { flex: 1 1 auto; min-width: 0; padding: 7% 7% 6%; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.bcard-body > .logo-svg { align-self: flex-start; height: 30px; }
.bcard-name { font-family: var(--heading); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; }
.bcard-degree { margin-top: 6px; font-size: 13px; letter-spacing: 0.06em; color: var(--blue); }
.bcard-role { margin-top: 2px; font-size: 13px; color: var(--muted); }
.bcard-contact { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.bcard-contact a { text-decoration: none; overflow-wrap: anywhere; }
.bcard-contact a:hover { text-decoration: underline; }
.bcard-art { flex: 0 0 26%; }
.bcard-art .sun { top: 24%; left: 38%; width: 20px; height: 20px; }
.bcard-art .vertical { right: 16px; bottom: 18px; font-size: 9px; letter-spacing: 0.3em; }

/* ===== Etusivu: kaksi palvelua ===== */
.doors .wrap { display: flex; flex-wrap: wrap; gap: 24px; }
.door { flex: 1 1 480px; min-width: 0; padding: clamp(32px, 4.5vw, 64px); display: flex; flex-direction: column; }
.door--blue { background: var(--blue); color: #fff; }
.door--blue .label { color: #dbe6fa; }
.door--blue .body { color: #e3ebfb; }
.door--line { border: 1px solid var(--line-2); }
.door h2 { margin-top: 24px; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.12; }
.door--line h2 span { color: var(--soft); }
.door .lead-large { margin-top: 24px; font-size: 20px; }
.door .lead-large + .stack { margin-top: 16px; }
.door-actions { margin-top: auto; padding-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.door--blue .link { color: #fff; font-size: 14px; }

.timeline--plain h3 { margin-top: 0; }
.split .stack .link { display: inline-block; margin-top: 8px; color: var(--ink); }

.reflection .wrap { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 6vw, 96px); }
.reflection .wrap > div { flex: 1 1 420px; min-width: 0; }
.reflection .label { color: var(--on-ink); }
.reflection h2 { margin-top: 24px; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.1; }
.reflection .stack { display: flex; flex-direction: column; justify-content: end; font-size: 17px; color: var(--on-ink-2); }
.reflection .link { color: #fff; }

.invest { padding: clamp(48px, 6vw, 72px) var(--pad); }
.invest .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px clamp(32px, 5vw, 72px); }
.invest .label { flex: 0 1 240px; }
.invest h3 { flex: 1 1 360px; font-size: 26px; line-height: 1.3; }
.invest .body { flex: 1 1 340px; }

/* ===== 404 ===== */
.error-page .hero-copy { min-height: 40vh; }

/* ===== Pienet näytöt ===== */
@media (max-width: 600px) {
  .logo .logo-svg { height: 32px; }
  .site-footer .logo .logo-svg { height: 26px; }
  .nav { gap: 6px 20px; font-size: 14px; }
  .hero-art { min-height: 500px; }
  .hero-portrait { width: 60%; bottom: 32px; }
  .hero-art--home { min-height: 380px; }
  .bcard { aspect-ratio: auto; min-height: 220px; transform: none; }
  .bcard-body > .logo-svg { height: 24px; }
  .sheet { transform: none; padding: 28px; }
  .year { flex-basis: 100%; }
}

/* ===== Mobiilivalikko ===== */
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-right: -6px;
    padding: 0 6px 0 14px;
    background: none;
    border: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
  }
  .js .nav-toggle:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
  .nav-toggle-icon { position: relative; width: 22px; height: 14px; }
  .nav-toggle-icon::before, .nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform .25s ease, top .25s ease;
  }
  .nav-toggle-icon::before { top: 2px; }
  .nav-toggle-icon::after { top: 10px; }
  .is-open .nav-toggle-icon::before { top: 6px; transform: rotate(45deg); }
  .is-open .nav-toggle-icon::after { top: 6px; transform: rotate(-45deg); }

  .js .site-header .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 8px;
    font-size: 15px;
  }
  .js .site-header.is-open .nav { display: flex; }
  .js .site-header .nav a:not(.btn) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--heading);
    font-size: 22px;
    line-height: 1.3;
  }
  .js .site-header .nav .btn {
    margin-top: 24px;
    justify-content: center;
    min-height: 52px;
    font-size: 16px;
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle-icon::before, .nav-toggle-icon::after { transition: none; }
}

/* ===== Reveal-animaatiot ===== */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.reveal-off) .reveal,
  .js:not(.reveal-off):not(.reveal-ready) :is(.hero-copy > *, .hero-art) {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  }
  .js:not(.reveal-off) .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
