/* Maija Leivo · brändi 2026 */
:root {
  --bg: #FFFAF1;
  --butter: #FDEFB2;
  --honey: #F2C94C;
  --rose: #F8D3DA;
  --rose-deep: #E79AAE;
  --accent: #B23A5F;
  --on-accent: #FFFAF1;
  --fg: #3B2230;
  --fg-mid: #6B4F5C;
  --rule: #EAD9C8;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --radius: 14px;
  --gutter: clamp(20px, 5.5vw, 80px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: break-word; -webkit-tap-highlight-color: transparent; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--fg); }
em { font-style: italic; color: var(--accent); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); position: relative; }
.shape { position: absolute; pointer-events: none; border-radius: 50%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--butter); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); font-family: var(--serif); font-size: 22px; }
.brand img { width: 44px; height: 44px; }
.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav a:not(.btn) { color: var(--fg); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }

.menu-toggle { display: none; }

/* Language switch */
.nav { margin-left: auto; }
.lang-switch { display: inline-flex; align-items: center; padding: 3px; border: 1.5px solid var(--fg); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 34px; padding: 0 10px; border-radius: 999px; color: var(--fg); text-decoration: none; }
.lang-switch a:hover { color: var(--accent); }
.lang-switch a[aria-current] { background: var(--fg); color: var(--butter); }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: none; transition: transform .15s; }
.btn:hover { color: var(--on-accent); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn-small { min-height: 44px; padding: 0 22px; font-size: 14px; letter-spacing: .04em; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--butter); padding-block: 64px 80px; }
.hero-disc { width: 560px; height: 560px; background: var(--rose); right: -120px; top: -180px; }
.hero-ring { width: 220px; height: 220px; border: 1.5px solid var(--rose-deep); left: 42%; bottom: -100px; }
.hero-arch { width: 160px; height: 160px; border-radius: 80px 80px 0 0; background: var(--honey); right: 36%; bottom: 0; }
.hero-inner { display: flex; align-items: center; gap: 80px; }
.hero-text { flex: 1; display: flex; flex-direction: column; gap: 20px; position: relative; }
.hero-name { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 9vw, 104px); line-height: .95; letter-spacing: -.015em; }
.role-line { font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero-intro { max-width: 620px; font-size: 17px; }
.hero-actions { margin-top: 6px; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 500; }
.hero-contact a { color: var(--fg); }

/* Portrait */
.portrait { position: relative; flex: none; }
.portrait picture img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait picture { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--rose); border: 10px solid var(--bg); }
.portrait-mark { position: absolute; right: 0; bottom: 2%; width: 34%; height: 34%; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.portrait-mark img { width: 80%; height: 80%; }
.portrait-lg { width: 400px; height: 400px; }
.portrait-md { width: 250px; height: 250px; }
.portrait-md picture { border-width: 8px; }

/* Sections */
.section { padding-block: 96px; position: relative; }
.section-tight { padding-top: 0; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.section-label-ink { color: var(--fg); }
.lead { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.2; margin-bottom: 22px; }
.muted { color: var(--fg-mid); font-size: 17px; margin-bottom: 16px; }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.15; margin-bottom: 36px; max-width: 900px; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; }
.intro-main { grid-column: span 2; }
.facts { align-self: start; display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--rose); }
.fact-label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.facts p:not(.fact-label), .contact-list p:not(.fact-label) { margin-top: 4px; }
.facts a, .contact-list a { color: var(--fg); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; transition: background .2s; }
@media (hover: hover) { .card:hover { background: var(--butter); } }
.card-butter { background: var(--butter); }
.card-rose, .card-rose:hover { background: var(--rose); border-color: transparent; }
.card-num { width: 48px; height: 48px; border-radius: 50%; background: var(--rose); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: 20px; }
.card h3 { font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.card p { font-size: 15px; line-height: 1.6; color: var(--fg-mid); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 600; }
.card-quote { position: relative; overflow: hidden; justify-content: flex-end; gap: 16px; }
.card-quote .btn { align-self: flex-start; position: relative; }
.quote-disc { width: 180px; height: 180px; background: var(--butter); right: -50px; top: -50px; }
.card .quote { position: relative; font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.3; color: var(--fg); }
.card .quote em { color: var(--fg); }

/* Viewpoints */
.band-rose { background: var(--rose); overflow: hidden; padding-block: 80px; }
.pov-disc { width: 300px; height: 300px; background: var(--butter); right: -100px; top: -120px; }
.pov-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.pov { display: flex; flex-direction: column; gap: 12px; }
.pov::before { content: ""; width: 48px; height: 4px; border-radius: 2px; background: var(--honey); }
.pov-topic { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.pov h3 { font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.pov p:not(.pov-topic) { font-size: 15px; line-height: 1.6; }

/* Ways of working */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.way { padding: 32px 28px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.way-butter { background: var(--butter); }
.way-rose { background: var(--rose); }
.way-title { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.way-title-ink { color: var(--fg); }
.way p:not(.way-title) { font-size: 15px; line-height: 1.65; }

/* Contact */
.contact { position: relative; overflow: hidden; background: var(--butter); padding-block: 80px; }
.contact-ring { width: 260px; height: 260px; border: 1.5px solid var(--rose-deep); left: -80px; bottom: -120px; }
.contact-disc { width: 360px; height: 360px; background: var(--rose); right: -100px; top: -140px; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.contact-title { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 5.5vw, 72px); line-height: 1.05; position: relative; }
.contact-list { display: flex; flex-direction: column; gap: 18px; font-size: 20px; min-width: 300px; position: relative; }

/* Footer */
.site-footer { background: var(--rose); padding-bottom: env(safe-area-inset-bottom); }
.footer-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; font-size: 14px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; }
.site-footer a { color: var(--fg); font-weight: 600; }

/* Responsive */
@media (max-width: 1100px) {
  .cards, .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .hero-inner { gap: 48px; }
  .portrait-lg { width: 320px; height: 320px; }
  .contact-inner { flex-wrap: wrap; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .header-inner { flex-wrap: nowrap; padding-block: 8px; }
  .brand { font-size: 20px; gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .header-inner { gap: 12px; }
  .lang-switch { order: 1; margin-left: auto; }
  .lang-switch a { min-width: 40px; min-height: 36px; }

  /* Mobile menu */
  .menu-toggle { order: 2; }
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 48px; height: 48px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; }
  .menu-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(var(--gutter), env(safe-area-inset-left)) 24px; background: var(--butter); border-top: 1px solid var(--rule); box-shadow: 0 16px 32px rgba(59, 34, 48, .12); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .menu-open .nav { display: flex; }
  .nav a:not(.btn) { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule); font-size: 14px; }
  .nav .btn { margin-top: 20px; justify-content: center; min-height: 52px; font-size: 15px; }

  .hero { padding-block: 40px 56px; }
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 32px; }
  .hero-text { gap: 16px; }
  .portrait-lg { width: 240px; height: 240px; align-self: center; }
  .hero-disc { width: 380px; height: 380px; right: -140px; top: -120px; }
  .hero-ring, .hero-arch { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-main { grid-column: auto; }
  .section { padding-block: 64px; }
  .section-tight { padding-top: 0; }
  .band-rose, .contact { padding-block: 64px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.65; }
  .cards, .ways, .pov-grid { grid-template-columns: 1fr; }
  .pov-grid { gap: 36px; }
  .hero-name { font-size: clamp(48px, 15vw, 64px); }
  .role-line { font-size: 12px; letter-spacing: .16em; }
  .hero-intro, .muted { font-size: 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-contact { flex-direction: column; gap: 0; font-size: 15px; }
  .hero-contact a { display: flex; align-items: center; min-height: 44px; }
  .portrait-lg { width: 200px; height: 200px; }
  .portrait-lg picture { border-width: 8px; }
  .section { padding-block: 56px; }
  .section-tight { padding-top: 0; }
  .section-label { margin-bottom: 16px; }
  .lead { font-size: 28px; }
  .h2 { font-size: 30px; margin-bottom: 28px; }
  .facts { padding: 22px 20px; gap: 16px; }
  .card, .way { padding: 24px 20px; }
  .card h3, .pov h3, .card .quote { font-size: 22px; }
  .card-num { width: 42px; height: 42px; font-size: 18px; }
  .band-rose, .contact { padding-block: 56px; }
  .pov-disc { width: 200px; height: 200px; right: -90px; top: -100px; }
  .contact-disc { width: 240px; height: 240px; right: -110px; top: -110px; }
  .contact-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .contact-title { font-size: clamp(40px, 12vw, 48px); }
  .contact-list { min-width: 0; width: 100%; font-size: 17px; }
  .contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .facts p:not(.fact-label), .contact-list p:not(.fact-label) { margin-top: 0; }
  .portrait-md { width: 180px; height: 180px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 28px; }
  .footer-links { gap: 8px 24px; }
  .footer-links > * { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 360px) {
  .brand span { font-size: 18px; }
  .card-quote .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .menu-toggle span { transition: none; }
}

/* Footer links */
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Cookie banner */
.cookie-settings-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--fg); text-decoration: underline; cursor: pointer; }
.cookie-settings-link:hover { color: var(--accent); }
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); max-width: 34rem; margin: 0 auto; padding: 24px 26px; background: var(--bg); color: var(--fg); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(59, 34, 48, .18); z-index: 1000; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-title { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.2; margin-bottom: 8px; }
.cookie-banner p:not(.cookie-banner-title) { font-size: 15px; line-height: 1.6; color: var(--fg-mid); }
.cookie-banner-actions { display: flex; gap: 10px; margin-top: 18px; }
.cookie-banner-actions button { flex: 1 1 0; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--accent); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.cookie-accept { background: var(--accent); color: var(--on-accent); }
.cookie-decline { background: transparent; color: var(--accent); }
.cookie-banner-actions button:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
@media (max-width: 600px) {
  .cookie-banner { left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); padding: 18px 18px; max-height: calc(100dvh - 1.5rem); overflow-y: auto; }
  .cookie-banner-title { font-size: 21px; }
  .cookie-banner p:not(.cookie-banner-title) { font-size: 14px; }
}
