/*
Theme Name: Zen Disain
Theme URI: https://zendisain.ee/
Author: Ken Kaur
Description: Zen Disaini ärileht: Z-joontega animeeritud kujundus, tehtud tööd seadmeraamides, disainigalerii, teenused, Z-kujuline töö käik ja päringuvorm.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: zendisain
*/

@font-face { font-family: "Syne"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/syne-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Syne"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/syne-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(assets/fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(assets/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--ink: #0c0d0c;
	--ink-2: #141614;
	--ink-3: #1c1f1c;
	--paper: #efe9dd;
	--paper-2: #e4dccc;
	--text: #e9e4d8;
	--muted: #8f8b82;
	--line: rgba(239, 233, 221, .12);
	--red: #e5482f;
	--red-2: #ff6a4d;
	--moss: #a3ad8f;
	--display: "Syne", "Manrope", system-ui, sans-serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1320px;
	--ease: cubic-bezier(.2, .75, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--red); }
.wrap { width: min(var(--wrap), calc(100% - 56px)); margin-inline: auto; position: relative; }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--red); color: #fff; padding: 10px 16px; }
.skip:focus { left: 12px; }
::selection { background: var(--red); color: #fff; }

/* Kursor ja edenemisriba */
.cursor { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid var(--red); border-radius: 50%; pointer-events: none; z-index: 400; opacity: 0; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s, background .3s; mix-blend-mode: difference; }
.cursor.on { opacity: 1; }
.cursor.big { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(229, 72, 47, .25); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 200; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--red); }

/* Nupud */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 17px 30px; font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .02em; text-decoration: none; border: 1.5px solid transparent; border-radius: 999px; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s, transform .2s; }
.btn span { position: relative; z-index: 1; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: 0; transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit; }
.btn:hover::before { transform: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red::before { background: var(--paper); }
.btn-red:hover { color: var(--ink); }
.btn-line { border-color: rgba(239, 233, 221, .35); color: var(--text); }
.btn-line::before { background: var(--text); }
.btn-line:hover { color: var(--ink); }
.btn-sm { padding: 11px 20px; font-size: 14px; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 26px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(229, 72, 47, .18); }
.h2 { font-size: clamp(32px, 4.2vw, 62px); line-height: 1.04; letter-spacing: -.03em; }
.section { position: relative; z-index: 2; padding: clamp(100px, 13vw, 180px) 0; }
.section-head { margin-bottom: clamp(48px, 5.5vw, 80px); }
.section-head-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.section-lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 520px; }

/* Päis */
.site-header { position: fixed; inset: 0 0 auto; z-index: 150; padding: 22px 0; transition: padding .4s var(--ease), background .4s, backdrop-filter .4s; }
.site-header.scrolled { padding: 12px 0; background: rgba(12, 13, 12, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header.hide { transform: translateY(-100%); }
.site-header { transition: transform .45s var(--ease), padding .4s var(--ease), background .4s; }
.header-inner { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.mark { width: 40px; height: 40px; }
.mark-enso { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.6s .2s var(--ease) forwards; }
.mark-z { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.brand-name { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.brand-name b { font-weight: 700; margin-left: 2px; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a { position: relative; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; display: inline-flex; gap: 6px; align-items: baseline; }
.main-nav .n { font-size: 10px; color: var(--red); font-weight: 800; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; margin-left: auto; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; position: relative; cursor: pointer; }
.menu-toggle span:not(.sr) { position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 20px; }
.menu-toggle span:nth-child(2) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 24px; transform: rotate(-45deg); }
.mobile-panel { position: fixed; inset: 0; z-index: 140; background: var(--ink); padding: 120px 28px 40px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.mobile-panel[hidden] { display: none; }
.mobile-z { position: absolute; right: -40px; top: 90px; width: 300px; color: var(--red); opacity: .25; stroke-dasharray: 900; stroke-dashoffset: 900; }
.menu-open .mobile-z { animation: draw 1.2s var(--ease) forwards; }
.mobile-nav { display: flex; flex-direction: column; position: relative; }
.mobile-nav a { font-family: var(--display); font-weight: 600; font-size: 32px; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.mobile-nav .n { font-size: 13px; color: var(--red); font-family: var(--sans); }
.mobile-contact { display: grid; gap: 8px; font-weight: 600; margin-top: 30px; }
.mobile-contact a { text-decoration: none; color: var(--muted); }
.menu-open { overflow: hidden; }

/* Kogu lehte läbiv Z-joon */
.zline-wrap { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 1; }
.zline { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.zline path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.zline-base { stroke: rgba(239, 233, 221, .06); stroke-width: 1.5; }
.zline-draw { stroke: var(--red); stroke-width: 1.5; opacity: .75; }
.zline-dot { fill: var(--red); filter: drop-shadow(0 0 10px rgba(229, 72, 47, .9)); }

/* Hero */
.hero { position: relative; z-index: 2; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 140px 0 90px; }
.hero-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); width: min(var(--wrap), calc(100% - 56px)); margin: 0 auto; pointer-events: none; }
.hero-grid span { border-left: 1px solid var(--line); transform: scaleY(0); transform-origin: top; animation: grow 1.6s var(--ease) forwards; }
.hero-grid span:last-child { border-right: 1px solid var(--line); }
.hero-grid span:nth-child(2) { animation-delay: .1s; }
.hero-grid span:nth-child(3) { animation-delay: .2s; }
.hero-grid span:nth-child(4) { animation-delay: .3s; }
@keyframes grow { to { transform: none; } }
.hero-z { position: absolute; right: -2vw; top: 50%; width: min(52vw, 720px); transform: translateY(-50%) translate3d(var(--mx, 0), var(--my, 0), 0); pointer-events: none; opacity: .9; }
.hz { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.hz-1 { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1s .5s var(--ease) forwards; }
.hz-2 { stroke-dasharray: 570; stroke-dashoffset: 570; animation: draw 1.1s 1.3s var(--ease) forwards; stroke: rgba(239, 233, 221, .55); stroke-width: 1.5; }
.hz-3 { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1s 2.2s var(--ease) forwards; }
.hz-dot { fill: var(--red); opacity: 0; animation: pop .6s 1.4s var(--ease) forwards, pulse 2.4s 2s ease-in-out infinite; transform-origin: 510px 110px; }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 50% { transform: scale(1.5); } }
.hero-inner { position: relative; }
.hero-title { font-size: clamp(44px, 7vw, 108px); line-height: .98; letter-spacing: -.04em; margin-bottom: 44px; font-weight: 600; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero-title em { font-style: italic; font-weight: 500; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 540px); gap: 34px; align-items: start; opacity: 0; animation: fade 1s .7s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-lead { font-size: clamp(18px, 1.5vw, 21px); color: #bdb7aa; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .eyebrow { opacity: 0; animation: fade .9s .1s var(--ease) forwards; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1.5px solid var(--line); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--red); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* Jooksev riba */
.marquee-wrap { position: relative; z-index: 2; overflow: hidden; padding: 30px 0; }
.marquee { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-2); padding: 20px 0; transform: rotate(-2deg) scale(1.04); }
.marquee-track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(20px, 2.2vw, 32px); font-weight: 600; white-space: nowrap; letter-spacing: -.02em; }
.marquee span:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1px var(--text); }
.marquee i { font-family: var(--display); font-style: normal; font-weight: 700; color: var(--red); font-size: clamp(16px, 1.8vw, 26px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Tööd */
.work { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(40px, 6vw, 90px); align-items: center; margin-bottom: clamp(100px, 12vw, 170px); }
.work:last-child { margin-bottom: 0; }
.work-flip { grid-template-columns: .65fr 1.35fr; }
.work-flip .work-media { order: 2; }
.work-media { position: relative; display: block; padding: 0 70px 60px 0; perspective: 1400px; text-decoration: none; }
.work-flip .work-media { padding: 0 0 60px 70px; }
.tilt { transform-style: preserve-3d; }
.tilt > .laptop, .tilt > .phone { transition: transform .6s var(--ease); }
.laptop { position: relative; border-radius: 14px; overflow: hidden; background: var(--ink-3); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6); transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
.laptop-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #202320; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.laptop-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d3a; }
.laptop-bar i:first-child { background: var(--red); }
.laptop-bar span { margin-left: 14px; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .05); padding: 3px 14px; border-radius: 99px; }
.laptop-screen { aspect-ratio: 16 / 10; overflow: hidden; }
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.work-media:hover .laptop-screen img { transform: scale(1.04); }
.phone { position: absolute; right: 0; bottom: 0; width: 24%; min-width: 120px; border-radius: 26px; padding: 7px; background: #1e211e; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .95); transform: translateZ(60px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateY(var(--py, 0px)); }
.work-flip .phone { right: auto; left: 0; }
.phone-screen { border-radius: 20px; overflow: hidden; aspect-ratio: 390 / 844; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-glow { position: absolute; inset: 10% 15%; z-index: -1; background: radial-gradient(closest-side, var(--accent), transparent); opacity: .22; filter: blur(60px); }
.work-no { font-family: var(--display); font-size: 120px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(239, 233, 221, .25); display: block; margin-bottom: -20px; }
.work-type { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; margin-bottom: 12px; }
.work-info h3 { font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -.025em; }
.work-info p { color: #b6b0a3; }
.tags { list-style: none; padding: 0; margin: 24px 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 99px; padding: 5px 13px; color: var(--text); }
.work-link { display: inline-flex; gap: 10px; align-items: center; font-family: var(--display); font-weight: 600; font-size: 17px; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.work-link span { transition: transform .4s var(--ease); }
.work-link:hover span { transform: translate(4px, -4px); }

/* Disainide galerii */
.concepts { padding-bottom: 80px; overflow: hidden; }
.concept-rail { display: flex; gap: 36px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px max(28px, calc((100vw - var(--wrap)) / 2)) 50px; cursor: grab; scrollbar-width: none; overscroll-behavior-x: contain; }
.concept-rail::-webkit-scrollbar { display: none; }
.concept-rail.drag { cursor: grabbing; scroll-snap-type: none; }
.concept-rail:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.concept { position: relative; flex: 0 0 min(620px, 80vw); margin: 0; scroll-snap-align: center; padding: 0 0 40px 40px; user-select: none; perspective: 1200px; }
.concept-frame { border-radius: 12px; overflow: hidden; background: var(--ink-3); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .6s var(--ease); }
.concept-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; pointer-events: none; transition: transform 1s var(--ease), filter .6s; filter: saturate(.85); }
.concept:hover .concept-frame img { transform: scale(1.04); filter: none; }
.concept-phone { position: absolute; left: 0; bottom: 0; width: 22%; border-radius: 18px; padding: 5px; background: #1e211e; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .95); transform: translateZ(40px) translateY(var(--py, 0px)); transition: transform .6s var(--ease); }
.concept-phone img { border-radius: 14px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; width: 100%; pointer-events: none; }
.concept figcaption { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; margin: 26px 0 0 calc(22% - 10px); }
.concept-no { grid-row: span 3; font-family: var(--display); font-weight: 800; color: var(--red); font-size: 15px; padding-top: 6px; }
.concept strong { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.concept small { color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.concept-text { color: #b6b0a3; font-size: 15px; margin-top: 6px; }
.concept-end { flex: 0 0 auto; display: flex; align-items: center; padding: 0 40px; scroll-snap-align: center; }
.rail-ui { display: flex; align-items: center; gap: 20px; }
.rail-bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.rail-bar span { position: absolute; left: 0; top: 0; height: 100%; width: 20%; background: var(--red); transform: translateX(var(--rp, 0%)); }
.rail-hint { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* Teenused – bento, Z-kujuliselt vahelduvad laiused */
.services { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 18%, var(--ink-2) 82%, var(--ink) 100%); overflow: hidden; }
.services-bgz { position: absolute; right: -8vw; top: 8%; width: min(60vw, 760px); opacity: .07; pointer-events: none; }
.services-bgz path { fill: none; stroke: var(--text); stroke-width: 1; }
.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.svc:nth-child(1), .svc:nth-child(4) { grid-column: span 3; }
.svc:nth-child(2), .svc:nth-child(3) { grid-column: span 2; }
.svc { position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 3vw, 44px); border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); border: 1px solid var(--line); min-height: 330px; display: flex; flex-direction: column; transition: border-color .5s, transform .6s var(--ease); }
.svc::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(229, 72, 47, .7), transparent 40%, transparent 60%, rgba(229, 72, 47, .35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s; pointer-events: none; }
.svc:hover { transform: translateY(-6px); border-color: transparent; }
.svc:hover::before { opacity: 1; }
.svc-glow { position: absolute; z-index: -1; width: 420px; height: 420px; left: var(--gx, 70%); top: var(--gy, 0%); transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(229, 72, 47, .22), transparent); opacity: 0; transition: opacity .5s; pointer-events: none; }
.svc:hover .svc-glow { opacity: 1; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 46px; }
.svc-ico { width: 52px; height: 52px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.svc:hover .svc-ico { transform: rotate(-6deg) scale(1.08); }
.svc-no { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.svc h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.02em; margin-bottom: 14px; }
.svc p { color: #aaa498; font-size: 15.5px; max-width: 460px; margin-bottom: 22px; }
.svc-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-points li { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; padding: 6px 13px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); }
.svc-z { position: absolute; left: clamp(28px, 3vw, 44px); right: clamp(28px, 3vw, 44px); bottom: 0; width: auto; height: 3px; }

.svc-z path { fill: none; stroke: var(--red); stroke-width: 6; vector-effect: non-scaling-stroke; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset .9s var(--ease); }
.svc:hover .svc-z path { stroke-dashoffset: 0; }

/* Töö käik – Z */
.steps { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(80px, 10vw, 140px) 30%; }
.steps-z { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.steps-z path { fill: none; stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: var(--len, 3000); stroke-dashoffset: calc(var(--len, 3000) * (1 - var(--sp, 0))); }
.step { position: relative; z-index: 1; background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: 34px 32px 30px; transition: border-color .4s, transform .5s var(--ease); }
.step:hover { border-color: rgba(229, 72, 47, .6); transform: translateY(-6px); }
.step-no { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: 22px; margin-bottom: 22px; box-shadow: 0 0 0 8px rgba(229, 72, 47, .14); }
.step h3 { font-size: 23px; }
.step p { color: #b6b0a3; margin: 0; }
.process-note { margin-top: 60px; text-align: center; font-family: var(--display); font-size: clamp(17px, 1.5vw, 21px); color: var(--moss); }

/* Miks */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.why-list { list-style: none; padding: 0; margin: 0; counter-reset: w; }
.why-list li { position: relative; padding: 28px 0 28px 64px; border-top: 1px solid var(--line); color: #b6b0a3; counter-increment: w; }
.why-list li::before { content: "Z"; position: absolute; left: 0; top: 28px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--red); transform: skewX(-12deg); }
.why-list b { display: block; color: var(--text); font-family: var(--display); font-size: 19px; font-weight: 600; margin-bottom: 6px; }

/* Kontakt */
.contact { background: radial-gradient(circle at 80% 20%, rgba(229, 72, 47, .14), transparent 45%), var(--ink-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.big-mail { display: inline-block; margin-top: 20px; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 38px); text-decoration: none; letter-spacing: -.02em; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 3px no-repeat; transition: background-size .6s var(--ease), color .3s; word-break: break-word; }
.big-mail:hover { background-size: 100% 3px; color: var(--red-2); }
.contact-meta { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: 24px; color: var(--muted); font-weight: 600; }
.contact-meta a { text-decoration: none; color: var(--text); }
.contact-form { display: grid; gap: 22px; background: var(--ink); border: 1px solid var(--line); border-radius: 26px; padding: clamp(28px, 4vw, 46px); }
.contact-form label { display: grid; gap: 4px; }
.contact-form label span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.contact-form input, .contact-form textarea { font: inherit; font-size: 18px; color: var(--text); background: transparent; border: 0; border-bottom: 1.5px solid var(--line); padding: 10px 0; border-radius: 0; transition: border-color .3s; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); }
.contact-form input::placeholder { color: #55534d; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }

/* Jalus */
.site-footer { position: relative; z-index: 2; background: var(--ink); border-top: 1px solid var(--line); padding-top: 70px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-line { color: var(--muted); margin-top: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; font-weight: 600; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--red); }
.footer-giant { width: min(980px, calc(100% - 56px)); margin: 60px auto 30px; }
.footer-giant svg { width: 100%; height: auto; overflow: visible; }
.giant-z { fill: none; stroke: var(--red); stroke-width: 14; stroke-linecap: square; stroke-linejoin: miter; stroke-dasharray: 1100; stroke-dashoffset: 1100; transition: stroke-dashoffset 1.8s var(--ease); }
.footer-giant.in .giant-z { stroke-dashoffset: 0; }
.footer-giant text { font-family: var(--display); font-weight: 800; font-size: 300px; fill: transparent; stroke: rgba(239, 233, 221, .3); stroke-width: 1.5; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.to-top { text-decoration: none; }

/* Alamlehed */
.page-hero { position: relative; z-index: 2; padding: 190px 0 60px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(40px, 5.5vw, 80px); margin: 0; }
.content-area { position: relative; z-index: 2; padding: 70px 0 130px; }
.prose { max-width: 760px; margin-inline: auto; color: #cfc9bc; }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.4em; }
.prose a { color: var(--red); }
.prose img { border-radius: 14px; height: auto; }
.post-meta { color: var(--muted); font-size: 14px; }
.posts-list { display: grid; gap: 34px; max-width: 760px; margin-inline: auto; }
.posts-list h2 { font-size: 34px; }
.posts-list h2 a { text-decoration: none; }

/* Ilmumine */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
	.marquee-track { animation: none; }
}

/* Kohanduvus */
@media (max-width: 1100px) {
	.main-nav, .header-cta { display: none; }
	.menu-toggle { display: block; }
	.work, .work-flip { grid-template-columns: 1fr; }
	.work-flip .work-media { order: 0; padding: 0 70px 60px 0; }
	.work-flip .phone { left: auto; right: 0; }
	.work-no { font-size: 52px; }
	.section-head-split, .why-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.svc-grid { grid-template-columns: 1fr; }
	.svc:nth-child(n) { grid-column: auto; }
	.svc { min-height: 0; }
	.svc-top { padding-bottom: 30px; }
	body { font-size: 16px; }
	.wrap, .hero-grid, .footer-giant { width: calc(100% - 36px); }
	.hero { padding: 120px 0 90px; align-items: flex-end; }
	.hero-grid { grid-template-columns: repeat(2, 1fr); }
	.hero-grid span:nth-child(n+3) { display: none; }
	.hero-grid span:nth-child(2) { border-right: 1px solid var(--line); }
	.hero-z { width: 120vw; right: -40vw; top: 30%; opacity: .5; }
	.hero-bottom { grid-template-columns: 1fr; }
	.hero-actions .btn { flex: 1 1 100%; }
	.work-media, .work-flip .work-media { padding: 0 34px 40px 0; }
	.phone { width: 30%; min-width: 0; border-radius: 18px; padding: 4px; }
	.phone-screen { border-radius: 14px; }
	.laptop-bar span { display: none; }
	.concept { flex-basis: 84vw; padding: 0 0 30px 26px; }
	.concept figcaption { margin-left: 0; margin-top: 18px; }
	.concept strong { font-size: 22px; }
	.steps { grid-template-columns: 1fr; gap: 22px; }
	.steps-z { display: none; }
	.why-list li { padding-left: 46px; }
	.footer-links { align-items: flex-start; }
	.footer-giant text { stroke-width: 2.5; }
	.mobile-nav a { font-size: 28px; }
}

/* Numbrid loetava kirjaga (Syne numbrid on liiga dekoratiivsed) */
.main-nav .n, .svc-no, .step-no, .concept-no, .work-no, .mobile-nav .n { font-family: var(--sans); font-weight: 800; letter-spacing: 0; }
.work-no { font-weight: 700; font-size: 64px; letter-spacing: -.04em; margin-bottom: 4px; }
.hero-title em { margin-right: .1em; }
