/* Kivelä Rinne – sivuston tyylit */
@font-face { font-family: 'Schibsted Grotesk'; src: url(fonts/schibsted-grotesk-latin.woff2) format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Spline Sans Mono'; src: url(fonts/spline-sans-mono-latin.woff2) format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --kivi: #e6e5de; --paperi: #f3f2ee; --muste: #1d1b18; --harmaa: #5d5950; --viiva: #c9c5bc;
  --okra: #d9a441; --okra-tumma: #c38f2f; --okra-vaalea: #f2dfb2; --yo-teksti: #a9a497; --yo-viiva: #3a3732;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --m: clamp(20px, 3.3vw, 48px); --g: 24px; --hh: 92px;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--kivi); color: var(--muste); font: 400 17px/1.55 var(--sans); -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; font-feature-settings: "tnum" 0; }
body { margin: 0; background: var(--kivi); overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--okra-vaalea); color: var(--muste); }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--viiva); transition: text-decoration-color .3s var(--ease); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--muste); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--muste); color: var(--kivi); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .8em; letter-spacing: 0; font-feature-settings: normal; }
.muted { color: var(--harmaa); }
.num { font-variant-numeric: tabular-nums; }

/* layout */
.wrap { max-width: 1520px; margin: 0 auto; padding-left: var(--m); padding-right: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.sec { margin-top: clamp(88px, 9vw, 150px); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--muste); padding-top: 14px; margin-bottom: clamp(24px, 2.6vw, 40px); }
.sec-head a { font-size: 15px; white-space: nowrap; }
h2, .h2 { font-size: clamp(22px, 1.85vw, 28px); line-height: 1.15; letter-spacing: -0.012em; font-weight: 500; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -0.005em; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 38em; }
.lead { font-size: clamp(19px, 1.55vw, 22px); line-height: 1.42; letter-spacing: -0.006em; max-width: 34em; }
.meta { font-size: 13px; line-height: 1.45; color: var(--harmaa); }
.more { margin-top: 22px; font-size: 15px; }

/* header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 24px; padding-bottom: 20px; }
.logo { display: block; color: var(--muste); text-decoration: none; }
.logo svg { height: 42px; width: auto; fill: currentColor; }
.nav ul { display: flex; gap: clamp(18px, 2vw, 32px); padding-top: 4px; }
.nav a { font-size: 15px; text-decoration: none; padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1px; }
.nav .lang a { color: var(--harmaa); }
.menu-btn { display: none; font: inherit; font-size: 15px; color: var(--muste); background: none; border: 0; padding: 6px 0 6px 12px; cursor: pointer; }
.nav-foot { display: none; }
main { display: block; padding-top: var(--hh); }
.home main { padding-top: 0; }

/* hero */
.hero .grid { min-height: min(100svh, 980px); }
.hero-text { grid-column: 7 / -1; grid-row: 1; align-self: end; padding-bottom: clamp(56px, 9vh, 112px); padding-top: calc(var(--hh) + 40px); }
.hero h1 { font-size: clamp(27px, 2.55vw, 39px); line-height: 1.13; letter-spacing: -0.018em; font-weight: 450; max-width: 17em; }
.hero-sub { margin-top: 26px; max-width: 31em; color: var(--harmaa); font-size: 16px; }
.hero-img { grid-column: 1 / span 6; grid-row: 1; margin: 0; position: relative; align-self: start; }
.hero-img img { width: 100%; }
.hero-img figcaption { position: absolute; left: 14.5%; top: 77%; font-size: 13px; color: var(--harmaa); }
.hero-img figcaption a { color: var(--muste); }

/* product cards */
.pcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px var(--g); }
.pcards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px var(--g); }
.pcard a { display: block; text-decoration: none; }
.pcard .ph { aspect-ratio: 4 / 5; overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard a:hover .ph img { transform: scale(1.025); }
.pcard .cap { margin-top: 6px; font-size: 15px; line-height: 1.38; }
.pcard .cap b { font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-color .3s var(--ease); }
.pcard a:hover .cap b { text-decoration-color: currentColor; }
.pcard .cap span { display: block; color: var(--harmaa); }
.pcards .all { display: none; }
.pcards .all a { font-size: 15px; }
figure .ph { position: relative; }

/* the room */
.room-sec { background: var(--okra); margin-top: clamp(88px, 9vw, 150px); padding: clamp(28px, 3vw, 44px) 0 clamp(36px, 4vw, 56px); }
.room-sec .sec-head { border-top-color: var(--muste); }
.room-sec .sec-head p { font-size: 15px; max-width: 34em; text-align: right; }
.room-frame { position: relative; }
.room { width: 100%; height: auto; }
.room a { cursor: pointer; text-decoration: none; }
.room .hit { fill: transparent; }
.room .obj { transition: opacity .7s var(--ease); }
.room:has(a:hover, a:focus-visible) a:not(:hover):not(:focus-visible) .obj, .room.has-hot a:not(.is-hot) .obj { opacity: .28; }
.room:has(a:hover, a:focus-visible) .deco, .room.has-hot .deco { opacity: .28; }
.room .deco { transition: opacity .7s var(--ease); }
.room a:focus { outline: none; }
.room a:focus-visible .ring { opacity: 1; }
.room .ring { fill: none; stroke: var(--muste); stroke-width: 3; stroke-dasharray: 8 7; opacity: 0; transition: opacity .3s; }
.room .tag { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .6s var(--ease); pointer-events: none; }
.room .tag rect { fill: var(--muste); }
.room .tag text { fill: var(--kivi); font: 500 24px var(--sans); letter-spacing: -0.01em; }
.room a:hover .tag, .room a:focus-visible .tag, .room a.is-hot .tag { opacity: 1; transform: none; }
.room .pane { fill: var(--kivi); transition: fill .6s var(--ease); }
.room .o-ikkuna:hover .pane, .room .o-ikkuna:focus-visible .pane, .room .o-ikkuna.is-hot .pane { fill: #fbfaf7; }
.room .sun { fill: var(--okra); opacity: 0; transform: translateY(30px); transform-box: fill-box; transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
.room .o-ikkuna:hover .sun, .room .o-ikkuna:focus-visible .sun, .room .o-ikkuna.is-hot .sun { opacity: 1; transform: none; }
.room .cone { fill: #fbe9bd; opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
.room:has(.o-vako:hover, .o-vako:focus-visible) .cone, .room .cone.on { opacity: .55; }
.room .glow { fill: #fbe9bd; }
.room .door-gap { fill: #fbfaf7; }
.room .leaf { transform-box: fill-box; transform-origin: 0 50%; transition: transform .9s var(--ease); }
.room .o-ovi:hover .leaf, .room .o-ovi:focus-visible .leaf, .room .o-ovi.is-hot .leaf { transform: scaleX(.62); }
.room .sway { transform-box: view-box; transform-origin: 750px 0; }
.room .o-vako:hover .sway, .room .o-vako:focus-visible .sway, .room .o-vako.is-hot .sway { animation: sway 2.8s var(--ease) 1; }
@keyframes sway { 0% { transform: rotate(0); } 30% { transform: rotate(1.5deg); } 65% { transform: rotate(-1deg); } 100% { transform: rotate(0); } }
.room .stool { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .7s var(--ease); }
.room .o-pokko:hover .stool, .room .o-pokko:focus-visible .stool, .room .o-pokko.is-hot .stool { transform: translateY(-14px); }
.room .rug-base { fill: var(--kivi); transition: fill .6s var(--ease); }
.room .o-matto:hover .rug-base, .room .o-matto:focus-visible .rug-base, .room .o-matto.is-hot .rug-base { fill: #fbfaf7; }
.js .room .enter { opacity: 0; transform: translateY(18px); transform-box: fill-box; }
.js .room.is-in .enter { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.room-menu { margin-top: 18px; }
.room-menu ul { columns: 4; column-gap: var(--g); }
.room-menu li { break-inside: avoid; border-top: 1px solid rgba(29, 27, 24, .35); }
.room-menu a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; text-decoration: none; font-size: 15px; }
.room-menu a span:last-child { color: rgba(29, 27, 24, .72); }
.room-menu a:hover, .room-menu a:focus-visible, .room-menu a.is-hot { text-decoration: underline; text-underline-offset: .2em; }
.room-hint { display: none; }

/* split blocks */
.split-img { grid-column: 1 / span 5; margin: 0; }
.split-txt { grid-column: 7 / span 5; align-self: end; }
.split-txt h2 { margin-bottom: 22px; }
figure figcaption, .cap-line { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--harmaa); }
.facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.mini-steps { border-top: 1px solid var(--muste); font-size: 16px; }
.mini-steps li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--viiva); }
.mini-steps li span:last-child { font-family: var(--mono); font-size: 13.5px; color: var(--harmaa); padding-top: 2px; white-space: nowrap; }
.facts3 > div { border-top: 1px solid var(--viiva); padding-top: 14px; }
.facts3 h3 { margin-bottom: 8px; }
.facts3 p { color: var(--harmaa); font-size: 16px; max-width: 24em; }

/* news */
.news-list > li, .news-full > article { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); border-top: 1px solid var(--viiva); padding: 18px 0 22px; }
.news-list time, .news-full time { grid-column: 1 / span 2; font-family: var(--mono); font-size: 13.5px; color: var(--harmaa); padding-top: 3px; }
.news-list h3 { grid-column: 3 / span 4; }
.news-list p { grid-column: 7 / -1; color: var(--harmaa); font-size: 16px; }
.news-list a { text-decoration: none; }
.news-list a:hover { text-decoration: underline; }
.news-full > article { padding: 26px 0 40px; scroll-margin-top: 24px; }
.news-full h2 { grid-column: 3 / span 4; }
.news-full .prose { grid-column: 7 / -1; }
.news-full figure { grid-column: 7 / span 4; margin-top: 24px; }

/* page head */
.page-head { padding-top: clamp(40px, 6vw, 96px); }
.page-head h1, .ptitle { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.028em; font-weight: 500; }
.page-head .lead { margin-top: 22px; }
.crumbs { font-size: 13px; color: var(--harmaa); padding-top: clamp(28px, 3vw, 44px); }
.crumbs a { color: var(--harmaa); }

/* product page */
.prod { margin-top: 22px; align-items: start; }
.prod-media { grid-column: 1 / span 7; }
.prod-media > figure + figure { margin-top: clamp(24px, 3vw, 44px); }
.prod-media .pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); margin-top: clamp(24px, 3vw, 44px); }
.prod-info { grid-column: 9 / -1; position: sticky; top: 28px; }
.prod-info h1 { font-size: clamp(44px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.03em; font-weight: 500; }
.prod-info .kind { margin-top: 10px; font-size: 16px; }
.prod-info .lead { font-size: 17.5px; margin-top: 24px; line-height: 1.5; }
.spec { display: grid; grid-template-columns: minmax(7.5em, 34%) 1fr; margin-top: 28px; border-top: 1px solid var(--muste); font-size: 15px; line-height: 1.45; }
.spec dt, .spec dd { padding: 9px 0; border-bottom: 1px solid var(--viiva); }
.spec dt { color: var(--harmaa); padding-right: 12px; }
.spec dd small { display: block; color: var(--harmaa); font-size: 13.5px; }
.price-line { margin-top: 16px; font-size: 15px; }
.ask { margin-top: 18px; font-size: 15px; color: var(--harmaa); }
.story { align-items: start; }
.story-txt { grid-column: 1 / span 6; }
.story-txt h2 { margin-bottom: 20px; }
.story-side { grid-column: 8 / -1; }
.protos { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 28px 18px; margin-top: 8px; }
.proto svg { width: 100%; height: auto; overflow: visible; }
.proto .pn { font-family: var(--mono); font-size: 13px; margin-top: 8px; display: block; }
.proto p { font-size: 13.5px; line-height: 1.38; color: var(--harmaa); margin-top: 2px; }
.proto svg .ln { fill: none; stroke: var(--muste); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.proto svg .fl { fill: var(--muste); }
.proto svg .ok { fill: none; stroke: var(--okra-tumma); stroke-width: 3; stroke-linecap: round; }
.proto svg .base { stroke: var(--viiva); stroke-width: 1; }
.proto svg .ang { fill: none; stroke: var(--harmaa); stroke-width: 1; stroke-dasharray: 3 3; }
.proto.last p { color: var(--muste); }
.tl { display: grid; grid-template-columns: 11em 1fr; border-top: 1px solid var(--muste); font-size: 15px; }
.tl dt, .tl dd { padding: 9px 0; border-bottom: 1px solid var(--viiva); }
.tl dt { font-family: var(--mono); font-size: 13.5px; color: var(--harmaa); padding-top: 11px; }
.files { border-top: 1px solid var(--muste); font-size: 15px; }
.files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--viiva); }
.files .f { font-family: var(--mono); font-size: 13px; color: var(--harmaa); text-align: right; padding-top: 2px; }
.care { margin-top: 18px; }
.pager { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--muste); padding-top: 14px; font-size: 15px; }

/* index table */
.index { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.index th { text-align: left; font-weight: 400; font-size: 13px; color: var(--harmaa); padding: 0 16px 10px 0; border-bottom: 1px solid var(--muste); }
.index td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--viiva); vertical-align: top; }
.index td:first-child { font-family: var(--mono); font-size: 13.5px; width: 7em; padding-top: 13px; }
.index td.st { color: var(--harmaa); white-space: nowrap; }
.index td.st.on { color: var(--muste); }
.index a { text-decoration-color: var(--viiva); }
.index-note { margin-top: 18px; font-size: 15px; color: var(--harmaa); max-width: 44em; }

/* studio */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--g); }
.person { border-top: 1px solid var(--muste); padding-top: 14px; }
.person .role { color: var(--harmaa); font-size: 15px; margin-top: 2px; }
.person p.bio { margin-top: 14px; font-size: 16px; }
.person .ct { margin-top: 14px; font-size: 15px; }
.machines { columns: 2; column-gap: var(--g); border-top: 1px solid var(--muste); font-size: 15px; }
.machines li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--viiva); display: flex; justify-content: space-between; gap: 12px; }
.machines li span { color: var(--harmaa); }
.practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px var(--g); }
.practices > div { border-top: 1px solid var(--viiva); padding-top: 14px; }
.practices h3 { margin-bottom: 8px; }
.practices p { font-size: 16px; color: var(--harmaa); max-width: 30em; }

/* manufacturers page */
.steps { border-top: 1px solid var(--muste); }
.steps li { display: grid; grid-template-columns: 3em minmax(0, 3fr) minmax(0, 7fr) minmax(8em, 2fr); column-gap: var(--g); padding: 14px 0 16px; border-bottom: 1px solid var(--viiva); }
.steps .sn { font-family: var(--mono); font-size: 13.5px; color: var(--harmaa); padding-top: 3px; }
.steps h3 { font-size: 17px; }
.steps p { font-size: 16px; color: var(--harmaa); }
.steps .du { font-family: var(--mono); font-size: 13.5px; text-align: right; padding-top: 3px; }
.terms { display: grid; grid-template-columns: minmax(8em, 3fr) minmax(0, 9fr); border-top: 1px solid var(--muste); font-size: 16px; }
.terms dt, .terms dd { padding: 12px 0 13px; border-bottom: 1px solid var(--viiva); }
.terms dt { font-weight: 500; padding-right: 16px; }
.bullets li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--viiva); font-size: 16px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 1px; background: var(--muste); }
.bullets { border-top: 1px solid var(--muste); }
.prices { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--muste); font-size: 16px; }
.prices dt, .prices dd { padding: 10px 0; border-bottom: 1px solid var(--viiva); }
.prices dd { text-align: right; font-variant-numeric: tabular-nums; }
.faq details { border-bottom: 1px solid var(--viiva); }
.faq { border-top: 1px solid var(--muste); }
.faq summary { list-style: none; cursor: pointer; padding: 13px 32px 13px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px; margin-top: -6px; background: linear-gradient(currentColor, currentColor) 50% 50% / 11px 1.5px no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 1.5px 11px no-repeat; transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: var(--harmaa); max-width: 40em; }

/* contact */
.contacts { border-top: 1px solid var(--muste); }
.contacts li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); column-gap: var(--g); padding: 13px 0; border-bottom: 1px solid var(--viiva); font-size: 16px; }
.contacts li span:first-child { color: var(--harmaa); }
.addr p + p { margin-top: 14px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px var(--g); }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; margin-bottom: 6px; }
.form label span { color: var(--harmaa); }
.form input, .form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--muste); background: var(--paperi); border: 1px solid var(--viiva); border-radius: 0; padding: 12px 13px; transition: border-color .3s var(--ease); }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--muste); outline: 2px solid var(--muste); outline-offset: 0; }
.form [aria-invalid="true"] { border-color: #8a2c17; }
.form .err { color: #8a2c17; font-size: 13.5px; margin-top: 5px; min-height: 0; }
.btn { font: inherit; font-size: 16px; background: var(--muste); color: var(--kivi); border: 0; padding: 13px 22px; cursor: pointer; transition: background .3s var(--ease); }
.btn:hover { background: #3a3732; }
.status { margin-top: 4px; font-size: 15px; }
.status:not(:empty) { background: var(--okra-vaalea); padding: 12px 14px; }

/* footer */
.site-footer { background: var(--muste); color: var(--kivi); margin-top: clamp(96px, 10vw, 160px); padding: clamp(40px, 4vw, 60px) 0 26px; font-size: 15px; line-height: 1.5; }
.home .site-footer, .no-gap .site-footer { margin-top: clamp(96px, 10vw, 160px); }
.site-footer a { color: inherit; text-decoration-color: var(--yo-viiva); }
.site-footer a:hover { text-decoration-color: currentColor; }
.fgrid { row-gap: 32px; }
.f-brand { grid-column: 1 / span 4; }
.f-brand svg { height: 40px; width: auto; fill: var(--kivi); }
.f-brand p { margin-top: 16px; color: var(--yo-teksti); max-width: 20em; }
.f-addr { grid-column: 5 / span 3; }
.f-ct { grid-column: 8 / span 2; }
.f-nav { grid-column: 10 / -1; }
.f-addr p + p, .f-ct p + p { margin-top: 12px; }
.f-small { color: var(--yo-teksti); }
.credit { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(40px, 5vw, 72px); padding-top: 16px; border-top: 1px solid var(--yo-viiva); font-size: 13px; color: var(--yo-teksti); }

/* misc */
.notfound { min-height: 62vh; }
.stamp-ill { width: 150px; color: var(--muste); margin-bottom: 32px; }
.en-list li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr) 4em; column-gap: var(--g); padding: 10px 0; border-bottom: 1px solid var(--viiva); font-size: 16px; }
.en-list { border-top: 1px solid var(--muste); }

/* reveal: images open upward after they have loaded, text rises softly */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(12px); }
  .js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
  .js .rv-img .ph, .js .rv-img > picture, .js .rv-img > img { clip-path: inset(100% 0 0 0); }
  .js .rv-img.is-in .ph, .js .rv-img.is-in > picture, .js .rv-img.is-in > img { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease); transition-delay: var(--d, 0ms); }
  .js .hero-img { opacity: 0; transition: opacity 1.2s var(--ease); }
  .js .hero-img.is-in { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* tablet */
@media (max-width: 1100px) {
  .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prod-media { grid-column: 1 / span 7; }
  .prod-info { grid-column: 8 / -1; }
  .people { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .f-addr { grid-column: 1 / span 4; } .f-ct { grid-column: 5 / span 4; } .f-nav { grid-column: 9 / -1; }
  .room-menu ul { columns: 2; }
  .protos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pcards .all { display: flex; align-items: flex-end; border-top: 1px solid var(--viiva); align-self: end; padding-top: 12px; margin-bottom: 26px; }
}

/* phone */
@media (max-width: 860px) {
  :root { --hh: 76px; --g: 16px; }
  html { font-size: 16px; }
  .site-header .wrap { padding-top: 18px; align-items: center; }
  .logo svg { height: 36px; }
  .menu-btn { display: block; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; background: var(--kivi); padding: calc(var(--hh) + 28px) var(--m) 28px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; overflow-y: auto; }
  .menu-open .nav { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
  .menu-open .logo { position: relative; z-index: 2; }
  .nav ul { flex-direction: column; gap: 0; padding: 0; }
  .nav li { border-top: 1px solid var(--viiva); }
  .nav a { display: block; font-size: 30px; line-height: 1.15; padding: 13px 0; letter-spacing: -0.015em; background: none; }
  .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
  .nav .lang a { font-size: 18px; }
  .nav-foot { display: block; font-size: 15px; color: var(--harmaa); margin-top: 32px; }
  .no-scroll { overflow: hidden; }
  .hero .grid { display: flex; flex-direction: column; min-height: 0; }
  .hero-img { order: -1; margin: 0 calc(-1 * var(--m)); aspect-ratio: 1200 / 1420; overflow: hidden; }
  .hero-img img { height: 100%; object-fit: cover; object-position: 50% 0; }
  .hero-img figcaption { left: 14.5%; top: 88%; }
  .hero-text { padding-top: 0; padding-bottom: 0; margin-top: 6px; }
  .hero h1 { font-size: 27px; line-height: 1.16; }
  .hero-sub { margin-top: 18px; font-size: 15.5px; }
  .pcards, .pcards.three { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .pcard .cap { font-size: 14px; }
  .room-sec .sec-head { display: block; }
  .room-sec .sec-head p { text-align: left; margin-top: 8px; }
  .room-frame { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(-1 * var(--m)); }
  .room-frame::-webkit-scrollbar { display: none; }
  .room { width: 780px; max-width: none; }
  .room-hint { display: block; font-size: 13px; margin-top: 10px; }
  .room-menu ul { columns: 1; }
  .split-img, .split-txt, .story-txt, .story-side { grid-column: 1 / -1 !important; }
  .split-txt { margin-top: 28px; }
  .story-side { margin-top: 40px; }
  .facts3 { grid-template-columns: 1fr; gap: 18px; }
  .news-list > li, .news-full > article { display: block; }
  .news-list h3, .news-full h2 { margin-top: 4px; }
  .news-list p { margin-top: 6px; }
  .news-full .prose { margin-top: 14px; }
  .news-full figure { margin-top: 20px; }
  .prod-media, .prod-info { grid-column: 1 / -1; }
  .prod-info { position: static; margin-top: 8px; order: -1; }
  .prod { display: flex; flex-direction: column; }
  .prod-info h1 { font-size: 44px; }
  .prod-media { margin-top: 28px; }
  .prod-media .main .ph { aspect-ratio: 1 / 1; overflow: hidden; }
  .prod-media .main img { height: 100%; object-fit: cover; }
  .spec { grid-template-columns: 8.2em 1fr; }
  .tl { grid-template-columns: 9.5em 1fr; }
  .protos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
  .index thead { display: none; }
  .index, .index tbody, .index tr, .index td { display: block; width: auto; }
  .index tr { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); column-gap: 12px; border-bottom: 1px solid var(--viiva); padding: 10px 0; }
  .index tr:first-child { border-top: 1px solid var(--muste); }
  .index td { border: 0; padding: 0; }
  .index td:first-child { grid-row: span 3; width: auto; padding-top: 2px; }
  .index td.mk, .index td.st { font-size: 14px; color: var(--harmaa); }
  .people { grid-template-columns: 1fr; }
  .machines { columns: 1; }
  .practices { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 2.2em minmax(0, 1fr); row-gap: 4px; }
  .steps p, .steps .du { grid-column: 2; text-align: left; }
  .terms { grid-template-columns: 1fr; }
  .terms dt { border-bottom: 0; padding-bottom: 0; }
  .contacts li { grid-template-columns: 1fr; row-gap: 2px; }
  .form { grid-template-columns: 1fr; }
  .f-addr, .f-ct, .f-nav { grid-column: 1 / -1; }
  .en-list li { grid-template-columns: 1fr 1fr; row-gap: 2px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 25px; }
  .protos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
