/* mema.studio home, draft v6 (28.10.2026): minimal, no boxes, no rounded corners.
   Neutral backgrounds (white / grey / dark, as on the Cases page); the only colour is the logo blue.
   Header grid copied from the Cases page (Mægazine Stories): 16 columns, title at column 5, Menu at column 11. */
:root, [data-theme="white"] { --bg: #FFFFFF; --ink: #111111; --muted: #6A6A6A; --line: #E4E4E1; --blue: #3A6EA5; }
[data-theme="grey"] { --bg: #E9E8E4; --ink: #000000; --muted: #5F5F5D; --line: #D3D2CE; --blue: #33639A; }
[data-theme="dark"] { --bg: #0B0B0B; --ink: #FFFFFF; --muted: #A0A09E; --line: #262626; --blue: #7FA6D6; }
:root {
  --serif: "Iowan Old Style", "Century Schoolbook", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mg: clamp(16px, calc(16px + 4 * (100vw - 390px) / 1530), 20px);
  --w: 1040px;   /* 03.11.2026: was 760px; Fired Up uses 980–1080 */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 13px/1.4 var(--sans); -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
body.is-menu { overflow: hidden; }
a { color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { all: unset; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--mg); }

/* ---------- header: the Cases page grid ---------- */
.grid { display: grid; grid-template-columns: repeat(16, 1fr); column-gap: var(--mg); padding: 0 var(--mg); }
.nav { align-items: center; padding-top: 15px; padding-bottom: 15px; }
.logo { grid-column: 5 / 11; font: 16px/1 var(--serif); color: var(--blue); text-decoration: none; }
.logo span { font-style: italic; }
.nav__menu { grid-column: 11 / 14; }
.menu__close { grid-column: 11 / 14; }
@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
  .logo { grid-column: 1 / 4; }
  .nav__menu, .menu__close { grid-column: 5 / 7; justify-self: end; }
}

/* ---------- menu: more air between items, LAB as an outlined pill, "Let's talk" at the bottom ---------- */
.menu { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu__list { margin: auto 0; text-align: center; display: grid; gap: clamp(18px, 3.4vh, 34px); justify-items: center; }
.menu__list a { font: 400 clamp(26px, 4.2vh, 36px)/1 var(--sans); letter-spacing: -.01em; text-decoration: none; }
.menu__list a:hover { color: var(--blue); }
.menu__list a.menu__lab { color: var(--blue); }
.talk { align-self: center; margin-bottom: 44px; min-width: 280px; text-align: center; padding: 22px 48px; border-radius: 999px; background: var(--blue); color: #fff; font: 500 22px/1 var(--sans); text-decoration: none; }
.talk:hover { filter: brightness(1.12); }

/* ---------- pills ---------- */
.pill { display: inline-block; padding: 12px 22px; border-radius: 999px; font: 500 14px/1 var(--sans); text-decoration: none; background: var(--ink); color: var(--bg); border: 1.5px solid var(--ink); }
.pill:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill--line { background: transparent; color: var(--ink); }
.pill--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }

/* ---------- intro: no box ---------- */
.intro { text-align: center; padding-top: clamp(60px, 12vh, 140px); padding-bottom: clamp(48px, 9vh, 96px); }
.intro h1 { font: clamp(36px, 6vw, 60px)/1.05 var(--serif); letter-spacing: -.02em; margin-bottom: 16px; }
.lead { font: clamp(17px, 1.6vw, 19px)/1.5 var(--serif); color: var(--muted); max-width: 34em; margin: 0 auto; }

/* ---------- portfolio: one row of single A4 pages, not scrollable ---------- */
.pfrow { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(14px, 2vw, 32px); padding: 0 var(--mg); }
.pfrow li { box-shadow: 0 1px 4px rgba(0, 0, 0, .10); }
@media (max-width: 1439px) and (min-width: 769px) { .pfrow { grid-template-columns: repeat(5, 1fr); } .pfrow li:first-child, .pfrow li:last-child { display: none; } }
@media (max-width: 768px) { .pfrow { grid-template-columns: repeat(3, 1fr); } .pfrow li:nth-child(-n+2), .pfrow li:nth-child(n+6) { display: none; } }

/* ---------- about + how ---------- */
.about, .how, .contact { text-align: center; padding-top: clamp(64px, 11vw, 120px); }
.kicker { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.say { font: clamp(22px, 2.6vw, 30px)/1.3 var(--serif); letter-spacing: -.01em; max-width: 28em; margin: 0 auto; }
.say em { color: var(--blue); }


/* ---------- contact: no box ---------- */
.contact h2 { font: clamp(30px, 4.6vw, 46px)/1.08 var(--serif); letter-spacing: -.02em; margin-bottom: 14px; }
.contact p { font-size: 15px; color: var(--muted); max-width: 40em; margin: 0 auto; }

/* ---------- footer ---------- */
.sitefoot { margin-top: clamp(72px, 12vw, 140px); padding-top: 16px; padding-bottom: 18px; color: var(--muted); font-size: 12px; }
.sitefoot p:first-child { grid-column: 1 / 11; }
.themes { grid-column: 11 / 17; justify-self: end; display: flex; gap: 12px; }
.themes button { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 768px) { .sitefoot p:first-child, .themes { grid-column: 1 / -1; justify-self: start; } }


/* ================= v7 (28.10) ================= */
/* no jump of "Menu"/"Close": keep the scrollbar's space even when the menu locks scrolling */
html { scrollbar-gutter: stable; }

/* intro: the about text sits under the headline */
.intro .say { margin-top: 6px; }
.intro .actions { margin-top: 32px; }

/* portraits as pages */
.pf .page.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf .page.photo .cap { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); z-index: 1; }

/* how we work: one colour each, from the portfolio PDF (forest, ochre, dusty rose) */
:root { --c-vision: #C08A2E; --c-habits: #C2735C; --c-health: #4A6A50; }
.how { padding-top: clamp(56px, 9vw, 104px); }
.say em.c-vision, .c-vision h3 { color: var(--c-vision); }
.say em.c-habits, .c-habits h3 { color: var(--c-habits); }
.say em.c-health, .c-health h3 { color: var(--c-health); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 52px; text-align: center; }
.three h3 { font: italic 24px/1.2 var(--serif); font-weight: 400; margin-bottom: 6px; }
.three p { font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 24ch; margin: 0 auto; }
.ill { width: 132px; height: 132px; margin: 0 auto 16px; display: block; filter: url(#hand); }
.ill .blob { stroke: none; opacity: .9; }
.c-vision .blob { fill: var(--c-vision); } .c-habits .blob { fill: var(--c-habits); } .c-health .blob { fill: var(--c-health); }
.ill .ln { fill: none; stroke: #1B1B1B; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ill .dot { fill: #1B1B1B; }
@media (max-width: 680px) { .three { grid-template-columns: 1fr; gap: 44px; } }

/* "Let's talk": a slow, smooth breath from the logo blue to lemon (#FFFFB0, from Cleohaus) and back */
.talk { animation: talk-breathe 3.2s ease-in-out 1s infinite alternate; }
.talk:hover { animation-play-state: paused; }
@keyframes talk-breathe {
  from { background: #3A6EA5; color: #fff; }
  to   { background: #FFFFB0; color: #541F38; }
}
@media (prefers-reduced-motion: reduce) { .talk { animation: none; } }

/* splash, as in front of the Cases page: "mema.studio — Home", then fades */
.splash { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--bg); color: var(--ink); pointer-events: none;
  animation: splash-out .6s cubic-bezier(.455, .03, .515, .955) 1.1s forwards; }
.splash p { font: 22px/1.3 var(--serif); white-space: nowrap; }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .splash { display: none; } }
@media (max-width: 544px) { .splash p { font-size: 17px; } }

/* ================= v8 (28.10) ================= */
.splash__logo { color: var(--blue); font: 26px/1 var(--serif) !important; }
.splash__logo span { font-style: italic; }
/* top bar extras on the home page: Portfolio left, a breathing LAB pill right */
.nav__left { grid-column: 1 / 5; text-decoration: none; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.nav__lab { grid-column: 14 / 17; justify-self: end; text-decoration: none; padding: 9px 16px; border-radius: 999px; font: 500 13px/1 var(--sans); }
.breathe { animation: talk-breathe 3.2s ease-in-out 1s infinite alternate; }
.breathe:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .breathe { animation: none; background: #3A6EA5; color: #fff; } }
@media (max-width: 768px) { .nav__left, .nav__lab { display: none; } }
/* buttons under the pictures; the LAB one with less rounded corners, as on the first site */
.after-pages { margin-top: 28px; }
.pill--lab { border-radius: 6px; background: transparent; color: var(--ink); letter-spacing: .06em; font-weight: 600; }
.pill--lab:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
/* ways in: like the menu */
.ways { text-align: center; padding-top: clamp(64px, 11vw, 120px); display: grid; justify-items: center; gap: 26px; }
.ways h2 { font: clamp(30px, 4.6vw, 46px)/1.08 var(--serif); letter-spacing: -.02em; }
.ways__list { display: grid; gap: 18px; }
.ways__list a { font: 400 clamp(26px, 3.6vw, 36px)/1 var(--sans); letter-spacing: -.01em; text-decoration: none; }
.ways__list a:hover { color: var(--blue); }
.ways__list a.ways__lab { color: var(--blue); }
.ways .talk { margin-top: 10px; }
.ways .talk { display: inline-block; margin-bottom: 0; }

/* v8.1: the LAB pill must not make the bar taller than the menu bar (no jump) */
.nav { min-height: 46px; }
.nav__lab { margin-block: -10px; }

/* ================= v9 (28.10) ================= */
/* footer, after the v3 one: four light columns + one bottom line */
.sitefoot { display: block; margin-top: clamp(72px, 12vw, 140px); padding: 36px var(--mg) 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sitefoot__cols { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.sitefoot__cols > div { display: grid; gap: 7px; align-content: start; }
.sitefoot h4 { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.sitefoot a { text-decoration: none; }
.sitefoot a:hover { color: var(--blue); }
.sitefoot__logo { font: 20px/1 var(--serif); color: var(--blue) !important; margin-bottom: 4px; }
.sitefoot__logo span { font-style: italic; }
.sitefoot__brand p { max-width: 26em; line-height: 1.5; }
.sitefoot__bottom { max-width: 1100px; margin: 34px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; }
.sitefoot .themes { display: flex; gap: 12px; }
a[data-todo] { opacity: .55; }
@media (max-width: 680px) { .sitefoot__cols { grid-template-columns: 1fr 1fr; } .sitefoot__brand { grid-column: 1 / -1; } }

/* v11 (28.10): LAB back in the menu as an outlined pill with small corners; cream footer */
.menu__list a.menu__lab { display: inline-block; color: var(--blue); border: 1.5px solid currentColor; border-radius: 6px; padding: 12px 24px 14px; }
.sitefoot { background: #FBF7F0; color: #6E625A; border-top: 0; }
.sitefoot h4 { color: #2A1F19; }
[data-theme="dark"] .sitefoot { background: #161616; color: var(--muted); }
[data-theme="dark"] .sitefoot h4 { color: var(--ink); }
/* services + contact: less air between the intro text and the first block */
.sub .intro { padding-bottom: clamp(20px, 4vh, 40px); }
.sub .intro + .svc { padding-top: 0; }

/* v13 (28.10): calmer breathing in the portfolio colours; no blue */
.talk { border: 1.5px solid #3A2A21; animation: breathe-cream-yellow 3.6s ease-in-out 1s infinite alternate !important; }
@keyframes breathe-cream-yellow { from { background: #FBF7F0; color: #3A2A21; } to { background: #FFFFB0; color: #3A2A21; } }
.breathe { border: 1.5px solid #8E3B27; animation: breathe-cream-rust 3.6s ease-in-out 1s infinite alternate !important; }
@keyframes breathe-cream-rust { from { background: #FBF7F0; color: #3A2A21; } to { background: #8E3B27; color: #FBF7F0; } }
.closing .talk { border-color: #FBF7F0; }
@media (prefers-reduced-motion: reduce) { .talk, .breathe { animation: none !important; } .talk { background: #FFFFB0; color: #3A2A21; } .breathe { background: #FBF7F0; color: #3A2A21; } }

/* v14 (28.10): one breathing for all animated pills: rust red <-> lemon yellow, cream text throughout */
.talk, .breathe { border: 0 !important; color: #FBF7F0 !important; animation: breathe-rust-yellow 3.6s ease-in-out 1s infinite alternate !important; }
@keyframes breathe-rust-yellow { from { background: #8E3B27; } to { background: #FFFFB0; } }
@media (prefers-reduced-motion: reduce) { .talk, .breathe { animation: none !important; background: #8E3B27 !important; } }

/* v15 (28.10): animated pills swap rust and yellow: background and text change together */
.talk, .breathe { border: 0 !important; animation: breathe-swap 3.6s ease-in-out 1s infinite alternate !important; }
@keyframes breathe-swap { from { background: #8E3B27; color: #FFFFB0; } to { background: #FFFFB0; color: #8E3B27; } }
@media (prefers-reduced-motion: reduce) { .talk, .breathe { animation: none !important; background: #8E3B27 !important; color: #FFFFB0 !important; } }

/* v16 (28.10): only the menu Contact pill breathes (blue <-> lemon, as at first); LAB pill and band Contact are static blue outlines */
.breathe, .closing .talk { animation: none !important; background: transparent !important; color: #3A6EA5 !important; border: 1.5px solid currentColor !important; border-radius: 6px !important; }
.breathe:hover, .closing .talk:hover { background: #3A6EA5 !important; color: #fff !important; }
.closing .talk { color: #7FA6D6 !important; }
.closing .talk:hover { background: #7FA6D6 !important; color: #3A2A21 !important; }
.menu .talk, .mm__talk { border: 0 !important; animation: breathe-blue 3.2s ease-in-out 1s infinite alternate !important; }
@keyframes breathe-blue { from { background: #3A6EA5; color: #fff; } to { background: #FFFFB0; color: #541F38; } }
@media (prefers-reduced-motion: reduce) { .menu .talk, .mm__talk { animation: none !important; background: #3A6EA5 !important; color: #fff !important; } }

/* v17 (28.10): band Contact = filled cream pill (round); menu Contact breathes blue -> brown, white capitals */
.closing .talk { background: #FBF7F0 !important; color: #3A2A21 !important; border: 0 !important; border-radius: 999px !important; }
.closing .talk:hover { background: #FFFFB0 !important; color: #3A2A21 !important; }
.menu .talk, .mm__talk { color: #fff !important; text-transform: uppercase; letter-spacing: .14em; font-size: 17px !important; animation: breathe-blue-brown 4s ease-in-out 1s infinite alternate !important; }
@keyframes breathe-blue-brown { from { background: #3A6EA5; } to { background: #3A2A21; } }
@media (prefers-reduced-motion: reduce) { .menu .talk, .mm__talk { animation: none !important; background: #3A6EA5 !important; } }
