/* miikameier.com — etusivu (18.10.2026): puhelin ensin. Muut sivut käyttävät style.css:ää.
   Suunta Miikalta: A:n allekirjoitus ja kuva, B:n laatikot, teksti hieman kuvan päällä.
   Fontit omalta palvelimelta (assets/fonts), ei ulkoisia pyyntöjä. */

@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/playfairdisplay-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/playfairdisplay-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url(assets/fonts/playfairdisplay-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }

:root {
  --bg: #0C0C0B;
  --card: #151513;
  --card-2: #1C1C19;
  --line: #262623;
  --line-2: #3A3934;
  --text: #F2EFE8;
  --soft: #C9C5BB;
  --muted: #8C897F;
  --gold: #C9A96E;
  --gold-hi: #DFC08A;
  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --pad: 20px;
  --max: 1120px;
  --r: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Tekstityylit ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.05; }
h2 { font-size: 34px; margin-top: 10px; }
h2 em { font-style: italic; color: var(--gold); }
.body { font-size: 16px; color: var(--soft); margin-top: 12px; }
.body.strong { color: var(--text); }

/* ---------- Napit ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 10px; font-size: 15px; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.btn-wide { display: flex; width: 100%; }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-line { border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Yläpalkki ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 60px; padding: 0 8px 0 var(--pad); display: flex; align-items: center; justify-content: space-between; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.bar.solid, .bar.menu-open { background: rgba(12,12,11,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.sig img { height: 28px; width: auto; }
.burger { width: 48px; height: 48px; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav { position: fixed; inset: 60px 0 auto 0; display: flex; flex-direction: column; padding: 8px var(--pad) 20px; background: rgba(12,12,11,.96); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s ease; z-index: -1; }
.nav.open { transform: none; }
.nav a { font-size: 20px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nav a:last-child { border-bottom: 0; }

/* ---------- Avausruutu ---------- */
.hero { position: relative; }
.hero-photo { position: relative; height: 66svh; min-height: 440px; max-height: 600px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,11,.6) 0%, rgba(12,12,11,0) 18%, rgba(12,12,11,0) 62%, var(--bg) 100%); }
.hero-text { position: relative; z-index: 1; margin-top: -64px; padding: 0 var(--pad); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
h1 { font-size: 46px; line-height: 1; margin-top: 8px; }
.lede { font-size: 17px; line-height: 1.5; color: var(--soft); margin-top: 12px; max-width: 36ch; }

.line { display: block; }
.hero-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.c-logo-text { font-family: var(--sans); font-weight: 800; font-size: 19px; letter-spacing: .06em; color: var(--text); }

/* ---------- Osiot ---------- */
.sec { padding: 64px var(--pad) 0; }
.sub { font-size: 28px; margin: 48px 0 16px; }

/* Kärki */
.lead-card { margin-top: 24px; padding: 24px 20px 20px; background: linear-gradient(160deg, #1E1B14 0%, var(--card) 55%); border: 1px solid rgba(201,169,110,.3); border-radius: 16px; }
.lead-card h3 { font-size: 34px; margin-top: 10px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 16px; }
.facts div { padding: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-family: var(--serif); font-size: 26px; color: var(--gold); margin-top: 4px; line-height: 1.1; }
.facts small { display: block; font-family: var(--sans); font-size: 14px; color: var(--soft); margin-top: 4px; }

/* Ääneen */
.voice { display: grid; gap: 14px; }
.vcard { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.vcard:hover { border-color: var(--line-2); }
.v-img, .v-chat { width: 100%; aspect-ratio: 16 / 7; }
.v-img { height: auto; object-fit: cover; object-position: center 28%; }
.v-chat { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 16px 18px; background: radial-gradient(120% 100% at 85% 0%, #1E2A3A 0%, var(--card-2) 70%); }
.bub { max-width: 82%; padding: 8px 12px; font-size: 13.5px; line-height: 1.4; border-radius: 14px; }
.bub.me { align-self: flex-end; background: var(--gold); color: var(--bg); border-bottom-right-radius: 4px; }
.bub.bot { align-self: flex-start; background: #2A2A27; border-bottom-left-radius: 4px; }
.v-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.vcard h4 { font-size: 30px; margin-top: 8px; }
.v-links { display: flex; gap: 10px; margin-top: auto; padding-top: 18px; }
.v-links .btn { flex: 1; }
.go { margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* Valmennan */
.coach { display: grid; gap: 10px; }
.crow { display: grid; grid-template-columns: 64px 1fr 18px; gap: 14px; align-items: start; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.crow:hover { border-color: var(--line-2); }
.c-logo { width: 64px; height: 64px; border-radius: 10px; background: var(--card-2); display: grid; place-items: center; }
.c-logo img { width: 52px; height: 44px; object-fit: contain; }
.c-main b { display: block; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; }
.c-desc { display: block; font-size: 15px; color: var(--soft); margin-top: 4px; }
.c-meta { display: block; font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.c-ar { color: var(--gold); padding-top: 2px; }

/* Minusta */
.tl { margin-top: 24px; border-top: 1px solid var(--line); }
.tl div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.tl dt { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--gold); }
.tl dd { font-size: 16px; color: var(--soft); margin-top: 4px; }
.quote { margin-top: 48px; padding: 32px 0 0; text-align: center; }
.quote::before { content: ''; display: block; width: 36px; height: 2px; margin: 0 auto 22px; background: var(--gold); }
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.25; max-width: 22ch; margin: 0 auto; }
.quote figcaption { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* Yhteys */
.contact { margin-top: 20px; border-top: 1px solid var(--line); }
.crow2 { display: grid; grid-template-columns: 1fr 18px; align-items: center; min-height: 72px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.crow2 span { grid-column: 1; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crow2 b { grid-column: 1; font-size: 18px; font-weight: 500; margin-top: 2px; }
.crow2 i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; color: var(--gold); }
.crow2:hover b { color: var(--gold); }

/* Alatunniste */
.foot { margin-top: 72px; padding: 32px var(--pad) calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-sig { height: 24px; width: auto; opacity: .8; margin-bottom: 12px; }
.foot-links { display: flex; gap: 20px; margin-top: 4px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); }

/* ---------- Tietokone ---------- */
@media (min-width: 900px) {
  :root { --pad: 40px; }
  .bar { height: 72px; padding: 0 var(--pad); }
  .sig img { height: 32px; }
  .burger { display: none; }
  .nav { position: static; flex-direction: row; gap: 32px; padding: 0; background: none; border: 0; transform: none; z-index: auto; }
  .nav a { font-size: 15px; padding: 0; border: 0; color: var(--soft); }
  .nav a:hover { color: var(--text); }

  .hero { max-width: var(--max); margin: 0 auto; padding: 112px var(--pad) 0; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
  .hero-photo { order: 2; height: 640px; max-height: none; border-radius: 20px; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(12,12,11,0) 70%, rgba(12,12,11,.5) 100%); }
  .hero-text { margin: 0; padding: 0; }
  h1 { font-size: 76px; }
  .lede { font-size: 19px; }
  .hero-btns { display: flex; margin-top: 32px; }
  .hero-btns .btn { min-width: 170px; }

  .sec { max-width: var(--max); margin: 0 auto; padding: 120px var(--pad) 0; }
  h2 { font-size: 52px; }
  .sub { font-size: 36px; margin: 72px 0 20px; }
  .lead-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 48px; padding: 40px; }
  .lead-card > .eyebrow, .lead-card > h3, .lead-card > .body { grid-column: 1; }
  .lead-card h3 { font-size: 48px; }
  .lead-card .facts { grid-column: 2; grid-row: 1 / span 4; align-self: start; margin: 0; grid-template-columns: 1fr; }
  .lead-card > .btn { grid-column: 2; width: auto; margin-top: 12px; }
  .voice { grid-template-columns: 1fr 1fr; gap: 20px; }
  .coach { grid-template-columns: 1fr 1fr; gap: 20px; }
  .crow { padding: 20px; }
  #minusta { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0 64px; }
  #minusta > .eyebrow, #minusta > h2 { grid-column: 1; }
  #minusta h2 { font-size: 56px; }
  #minusta .tl { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  #minusta .quote { grid-column: 1 / -1; margin-top: 96px; }
  .quote blockquote { font-size: 44px; max-width: 26ch; }
  .contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border: 0; margin-top: 32px; }
  .crow2 { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); }
  .foot { max-width: var(--max); margin: 120px auto 0; display: flex; align-items: center; gap: 32px; padding-left: var(--pad); padding-right: var(--pad); }
  .foot-sig { margin: 0; }
  .foot-links { margin: 0 0 0 auto; }
}

/* Logokortit ja Muut projektit (14.11.2026) */
.lead-logo { display: block; height: 38px; width: auto; }
.lead-logo-cdb { height: 84px; width: 84px; }
.lead-logo-mono { height: 64px; }
.lead-btn2 { margin-top: 10px; }
.voice .v-img.v-img-promptaamo { object-position: center; }
.facts > div:only-child { grid-column: 1 / -1; }
@media (max-width: 899px) { #bodium .facts { grid-template-columns: 1fr; } }
@media (min-width: 900px) {
  .lead-logo { height: 50px; }
  .lead-logo-cdb { height: 104px; width: 104px; }
  .lead-logo-mono { height: 84px; }
}
