/* Käyttäjän hyväksymä yhteinen teema. Ladataan nykyisten osiotyylien jälkeen. */
:root {
  --forest: #173b32; --paper: #faf8f2; --surface: #eeeee6; --muted: #53625b;
  --gold: #80612d; --accent: #d2aa56; --accent-light: #e2c891; --line: #cdd2c7;
  --pink: var(--paper); --rose: var(--surface); --red: var(--gold); --ink: var(--forest);
  --gutter: clamp(1.25rem, 3.1vw, 3rem); --site-header-height: 96px;
}
html { scroll-padding-top: calc(var(--site-header-height) + 1.5rem); }
body { padding-top: var(--site-header-height); background: var(--paper); color: var(--forest); font: 1rem/1.65 Arial, Helvetica, sans-serif; }
/* Terävät kulmat koskevat myös vanhempia osioita ja analytiikkapaneelia. */
body * { border-radius: 0 !important; }
[id] { scroll-margin-top: 0; }
.wrap { width: min(1320px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
h1, h2, h3 { overflow-wrap: break-word; }
h1, h2 { letter-spacing: -.045em; line-height: 1.06; }
h2 { font-size: clamp(2.4rem, 5.4vw, 4.9rem); }
h3 { font-size: clamp(1.6rem, 2.7vw, 2.5rem); }
h1 em, h2 em { color: inherit; font-style: italic; font-weight: 400; }
.section, .content-section { padding-block: clamp(4rem, 8vw, 7rem); }
.eyebrow { color: var(--gold); font-size: .75rem; letter-spacing: .13em; }
.button, .button-dark, .contact-form .button, .contact .contact-form .button {
  min-height: 3.4rem; padding: .9rem 1.5rem; border: 1px solid var(--accent);
  background: var(--accent); color: var(--forest); font-size: .875rem; font-weight: 600;
}
.text-link { color: var(--forest); border-bottom-color: var(--gold); min-height: 2.75rem; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.skip-link { z-index: 1100; }
.site-header {
  position: fixed; z-index: 100; inset: 0 0 auto; width: 100%; max-width: none; margin: 0; padding: 0;
  display: block; background: var(--paper); color: var(--forest); border: 0; border-bottom: 2px solid var(--accent);
}
.site-header .header-inner { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 2rem; padding-block: calc(1.05rem + env(safe-area-inset-top, 0px)) 1.05rem; }
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 3rem; font-size: 2.35rem; font-weight: 600; letter-spacing: -.06em; line-height: 1.2; }
.site-header .header-logo, .site-footer .header-logo { width: 2.65rem; height: 2.9rem; object-fit: contain; margin-right: .8rem; }
.wordmark > span, .brand-dot { color: var(--gold); }
.site-header .site-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .35rem 1.6rem; font-size: .875rem; }
.site-header .site-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; border-bottom: 2px solid transparent; padding-block: .5rem; }
.site-header .site-nav a[aria-current], .site-header .site-nav a:hover { border-bottom-color: var(--gold); }
.site-header .site-nav .nav-contact { padding: .65rem 1.2rem; background: var(--accent); color: var(--forest); border: 1px solid var(--accent); font-size: inherit; }

/* Etusivulla kuva toimii videon kansikuvana. Ei tyhjää soitinta tai toistopainiketta. */
.motion-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; max-width: none; padding: 0; gap: 0; background: var(--forest); color: var(--paper); overflow: hidden; min-height: clamp(42rem, calc(100svh - var(--site-header-height)), 58rem); }
.motion-hero .hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; margin: 0; }
.motion-hero .hero-backdrop img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 54% 48%; }
.motion-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #173b324d, #173b321a 30%, #173b32c7), linear-gradient(#173b328c, #173b328c); }
.motion-hero .motion-copy { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; padding-block: clamp(5rem, 11vw, 10rem) 2.8rem; }
.motion-hero .eyebrow { color: var(--accent-light); margin-bottom: 1.75rem; }
.motion-hero h1 { width: 100%; max-width: none; font-size: clamp(3rem, 8.6vw, 8rem); line-height: 1.02; letter-spacing: -.06em; }
.motion-hero h1 em { display: block; text-align: right; color: var(--accent-light); }
.motion-hero .motion-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; margin-top: 2.8rem; }
.motion-hero .hero-intro { margin: 0; color: var(--paper); max-width: 43ch; font-size: .95rem; line-height: 1.7; }
.motion-hero .motion-bottom .button { flex-shrink: 0; }
.motion-hero .motion-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; border-top: 1px solid #faf8f240; padding-block: 1rem; font-size: .8rem; }
.motion-hero .motion-footer a { display: inline-flex; align-items: center; gap: 1rem; min-height: 2.75rem; }
.motion-hero a:focus-visible { outline-color: var(--accent-light); }

.compact-heading h2, .compact-team h2, .guide-teaser h2 { font-size: clamp(2.4rem, 5.4vw, 4.9rem); }
.compact-heading .eyebrow, .compact-team .eyebrow { margin-bottom: 1.2rem; }
.compact-service-list { gap: 0 3.75rem; margin-top: 3rem; }
.compact-service-list article { border-top: 2px solid var(--accent); padding-block: 1.8rem 2.4rem; }
.compact-service-list h3 { font-size: clamp(1.7rem, 3.1vw, 2.7rem); margin-bottom: 1rem; }
.compact-service-list p { color: var(--muted); max-width: 45ch; font-size: .95rem; }
.compact-services > .button { margin-top: 1rem; }
.content-cta { width: min(1320px, calc(100% - 2 * var(--gutter))); margin-inline: auto; border: 0; border-left: 5px solid var(--accent); background: var(--surface); }
.content-cta > .wrap { width: 100%; padding: clamp(1.75rem, 3.5vw, 3rem); gap: 3rem; }
.content-cta h2 { font-size: clamp(2rem, 3.7vw, 3.4rem); max-width: 23ch; }
.content-cta .button { white-space: normal; }
.process-heading h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.process-heading > p { color: var(--muted); }
.process-steps { gap: 2.4rem; margin-top: 3rem; }
.process-steps li { border-top: 2px solid var(--accent); padding-top: 1.5rem; }
.process-steps h3 { font-size: 1.85rem; }
.process-steps p { font-size: .95rem; color: var(--muted); }
.compact-team .team-grid { gap: 3rem; margin-top: 2.5rem; }
.compact-team .person-profile { grid-template-columns: 10rem minmax(0,1fr); gap: 1.75rem; }
.compact-team .person-photo { width: 10rem; }
.compact-team .person-profile h3 { font-size: clamp(1.5rem, 2.7vw, 2rem); }
.guide-teaser { gap: 3rem; }
.content-grid { gap: 1.5rem; }
.content-section > h2 { font-size: clamp(2.4rem, 5.4vw, 4.9rem); }
.content-card { border-top-color: var(--accent); padding: 1.8rem; }
.content-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.article-layout { grid-template-columns: minmax(0,1fr) 17rem; }
.article-body { max-width: 72ch; }
.article-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); scroll-margin-top: 0; }
.article-aside { border-top: 2px solid var(--accent); }
.article-aside h2 { font-size: 1rem; }

.inner-hero, .service-page-hero { padding-block: clamp(3.5rem, 7vw, 6rem); }
.inner-hero h1, .service-page-hero h1, .hero-with-image h1 { font-size: clamp(3rem, 6.7vw, 5.6rem); max-width: 21ch; letter-spacing: -.055em; }
.service-page-hero .hero-copy, .inner-hero .hero-copy { padding: 0; }
.service-page-intro, .hero-with-image .hero-copy > p:not(.eyebrow) { font-size: 1.0625rem; color: var(--muted); max-width: 45ch; }
.service-page-hero .hero-copy > .button { margin-top: 1.9rem; }
.hero-with-image:has(> .hero-phone) { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 5rem); }
.hero-with-image:has(> .hero-phone) h1 { max-width: 12ch; }
.hero-phone { position: relative; isolation: isolate; width: 100%; padding: 2rem 1rem; display: flex; align-items: center; justify-content: center; }
.hero-phone::before { content: ''; position: absolute; inset: 14% 0; background: var(--surface); z-index: -1; }
.phone-frame { width: min(270px, 80%); aspect-ratio: 9 / 16; border: 6px solid var(--forest); overflow: hidden; background: var(--forest); }
.phone-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.service-overview article { padding-block: 2.5rem; border-top-color: var(--accent); }
.service-overview h2 { font-size: clamp(2rem, 3.8vw, 3.5rem); }
.service-explainer h2, .service-start h2, .service-scope h2, .service-faq h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
.scope-list > li, .start-list li, .faq-list details { border-color: var(--line); }
.scope-list h3, .start-list h3 { font-size: clamp(1.6rem, 2.5vw, 2rem); }
.explainer-copy, .start-list p, .scope-list p, .faq-list p { color: var(--muted); }
.scope-icon { color: var(--gold); }
.related-services { border-color: var(--line); }
.packages-section { background: var(--surface); }
.package-grid { gap: 1.5rem; margin-top: 3rem; }
.package-card { border-color: var(--line); border-top: 3px solid var(--accent); padding: 2rem; }
.package-featured { border: 2px solid var(--accent); border-top-width: 3px; }
.package-card .eyebrow, .package-featured .eyebrow { color: var(--gold); }
.package-price { font-size: clamp(2.2rem, 3.3vw, 3rem); }
.package-inclusions { margin-top: 3rem; }
.guide-form { border-top: 3px solid var(--accent); }

.contact { padding-block: clamp(4rem, 8vw, 6rem); background: var(--forest); color: var(--paper); border-top: 3px solid var(--accent); }
.contact .contact-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 5rem); }
.contact .eyebrow, .contact h2 em { color: var(--accent-light); }
.contact h2 { font-size: clamp(2.5rem, 5.7vw, 5rem); max-width: 13ch; }
.contact .contact-intro { color: var(--paper); }
.contact .contact-address { font-family: Spectral, Georgia, serif; font-size: clamp(1.5rem, 2.7vw, 2.1rem); font-weight: 400; border-color: var(--accent); }
.contact .form-note, .contact .contact-result { color: var(--paper); }
.contact .contact-result { border-color: var(--accent); }
.contact-form input, .contact-form textarea { border-color: var(--paper); }
.contact a:focus-visible, .contact button:focus-visible, .contact input:focus-visible, .contact textarea:focus-visible, .contact-result:focus { outline-color: var(--accent-light); }
.site-footer { display: block; width: 100%; max-width: none; padding-block: 2rem; margin: 0; background: var(--forest); color: var(--paper); border-top: 1px solid var(--accent); }
.site-footer .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.site-footer .wordmark { color: var(--paper); font-size: 1.9rem; }
.site-footer .wordmark > span { color: var(--accent-light); }
.site-footer .header-logo { width: 2.1rem; height: 2.3rem; }
.site-footer p { font-family: Spectral, Georgia, serif; font-size: 1.05rem; max-width: 23ch; }
.site-footer small, .site-footer a:not(.wordmark) { font-size: .8rem; }
.site-footer small { color: var(--paper); }
.site-footer .content-footer-links { display: flex; gap: .5rem 1.3rem; font-size: .8rem; }
.site-footer .content-footer-links a, .site-footer .content-footer-links button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .65rem 0; color: inherit; font: inherit; text-decoration: underline; }
.site-footer .content-footer-links [hidden] { display: none; }
.site-footer .content-footer-links :focus-visible { outline: 3px solid var(--accent-light); outline-offset: 5px; }
.analytics-panel { border-top: 3px solid var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .button:hover, .button-dark:hover, .contact-form .button:hover, .contact .contact-form .button:hover, .site-header .site-nav .nav-contact:hover { background: var(--accent-light); color: var(--forest); border-color: var(--accent-light); }
}
@media (max-width: 1100px) {
  .site-header .header-inner { gap: 1.5rem; }
  .site-header .site-nav { gap: .3rem 1.1rem; }
  .wordmark { font-size: 2.1rem; }
  .article-layout { grid-template-columns: minmax(0,1fr); }
  .article-aside { order: -1; }
}
@media (max-width: 760px) {
  :root { --site-header-height: 174px; }
  .site-header .header-inner { flex-direction: column; align-items: stretch; gap: .4rem; padding-block: calc(.75rem + env(safe-area-inset-top, 0px)) .7rem; }
  .site-header .wordmark { align-self: flex-start; min-height: 2.75rem; font-size: 1.9rem; }
  .site-header .header-logo { width: 2.2rem; height: 2.4rem; margin-right: .65rem; }
  .site-header .site-nav { width: 100%; justify-content: space-between; gap: .2rem .5rem; font-size: .75rem; }
  .site-header .site-nav .nav-contact { padding: .5rem .65rem; }
  h2, .compact-heading h2, .compact-team h2, .guide-teaser h2 { font-size: clamp(2.2rem, 8.5vw, 3rem); }
  .motion-hero { min-height: 43rem; }
  .motion-hero .hero-backdrop img { object-position: 36% center; }
  .motion-hero .motion-copy { padding-top: 4rem; padding-bottom: 2rem; }
  .motion-hero h1 { max-width: 11ch; font-size: clamp(2.8rem, 10.8vw, 4.6rem); line-height: 1.08; letter-spacing: -.055em; }
  .motion-hero h1 em { text-align: left; margin-top: .5rem; }
  .motion-hero .eyebrow { max-width: 26ch; font-size: .65rem; }
  .motion-hero .motion-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 1.5rem; margin-top: 1.8rem; }
  .motion-hero .hero-intro { font-size: .9rem; max-width: 39ch; }
  .motion-hero .motion-footer { font-size: .75rem; padding-block: .6rem; }
  .section, .content-section { padding-block: 3.5rem; }
  .compact-service-list { grid-template-columns: minmax(0,1fr); margin-top: 2rem; }
  .compact-service-list article { padding-block: 1.5rem 1.8rem; }
  .compact-service-list h3 { font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .content-cta > .wrap { padding: 1.75rem; gap: 1.5rem; }
  .content-cta h2 { font-size: 2.1rem; }
  .process-heading h2 { font-size: clamp(2.2rem, 8.5vw, 3rem); }
  .process-steps { grid-template-columns: minmax(0,1fr); gap: 2rem; margin-top: 2rem; }
  .compact-team .team-grid { gap: 2rem; }
  .compact-team .person-profile { grid-template-columns: 5.5rem minmax(0,1fr); gap: 1.25rem; }
  .compact-team .person-photo { width: 5.5rem; }
  .compact-team .person-profile h3 { font-size: 1.5rem; }
  .compact-team .person-email { font-size: .85rem; }
  .inner-hero h1, .service-page-hero h1, .hero-with-image h1 { font-size: clamp(2.5rem, 10.3vw, 3.7rem); }
  .hero-with-image:has(> .hero-phone) { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .hero-with-image .hero-copy > p:not(.eyebrow), .service-page-intro { font-size: 1rem; }
  .hero-phone { padding-block: 1rem; }
  .phone-frame { width: min(230px, 88%); }
  .content-grid { grid-template-columns: minmax(0,1fr); }
  .article-body h2 { font-size: 1.9rem; }
  .article-aside h2 { font-size: 1rem; }
  .service-overview h2, .service-explainer h2, .service-start h2, .service-scope h2, .service-faq h2 { font-size: clamp(2rem, 7.7vw, 2.75rem); }
  .package-card { padding: 1.5rem; }
  .contact .contact-grid { grid-template-columns: minmax(0,1fr); gap: 2.5rem; }
  .contact h2 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .contact .contact-intro { font-size: 1rem; }
  .site-footer .footer-inner { align-items: flex-start; gap: 1rem 1.75rem; }
  .site-footer .content-footer-links { display: grid; grid-template-columns: repeat(2,max-content); gap: .25rem 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
