/* =========================================================================
   Arco Metal – subpages (template "Teenuse leht" + default page): page hero, split text,
   info cards, galleries, guide (meelespea), steps, materials, swatches, EU project,
   contact + Contact Form 7. Shares tokens/aliases with sections.css.
   ========================================================================= */
:is(.page-hero-inner, .page-hero-copy, .split, .split-copy, .file-card, .card-grid, .info-card, .cta-grid, .cta-side, .form-panel,
	.guide-grid, .guide-aside, .guide-body, .guide-step, .note-box, .steps, .step, .material-card, .why-grid, .why-item,
	.eu-grid, .eu-head, .eu-body, .eu-sum, .swatches, .ral-chart, .gallery-wrap, .video-wrap, .page-facts-wrap) > * { margin-block: 0; }
.page-designed .wp-block-image { margin: 0; }
.page-designed .section + .section:not(.surface, .eu-project, .cta-section, .weld-ribbon) { padding-top: 0 !important; }
.surface { background: var(--surface); border-block: 1px solid var(--line); }
.muted { color: var(--muted); }
.prose { display: grid; gap: 1.1em; }
.prose > * { margin-block: 0; }
.prose p { max-width: 68ch; }

/* ================= PAGE HERO ================= */
.page-hero {
	--hero-fg: #fff; --hero-muted: #A3ADA7; --hero-line: rgba(255, 255, 255, .08);
	position: relative; isolation: isolate; overflow: hidden; color: #E3E8E5;
	background: radial-gradient(ellipse 50% 80% at 85% 30%, rgba(143, 209, 79, .12), transparent 70%), #151918;
}
.page-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
	background-image: linear-gradient(var(--hero-line) 1px, transparent 1px), linear-gradient(90deg, var(--hero-line) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 30%, #000 10%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 90% at 80% 30%, #000 10%, transparent 75%);
}
.page-hero-inner { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: clamp(48px, 6vw, 96px); }
.page-hero-inner.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.page-hero-copy { display: grid; gap: 20px; justify-items: start; }
.page-hero .eyebrow { color: var(--accent-on-dark); }
.page-hero h1, .page-hero .wp-block-post-title { color: var(--hero-fg); font-size: clamp(2.25rem, 1.6rem + 2.6vw, 4rem); line-height: 1.05; letter-spacing: -.03em; margin: 0; max-width: 18ch; }
.page-lead { color: var(--hero-muted); font-size: var(--step-1); line-height: 1.55; max-width: 56ch; }
.page-lead strong { color: var(--hero-fg); font-weight: 600; }
.page-hero .hero-ctas { gap: 12px; margin-top: 8px !important; }
.page-hero-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); aspect-ratio: 4 / 3; background: #222826; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--portrait .page-hero-inner.has-media { grid-template-columns: minmax(0, 1fr) auto; }
.page-hero--portrait .page-hero-media { aspect-ratio: 9 / 16; height: clamp(440px, 64vh, 620px); width: auto; justify-self: end; }
.page-hero--portrait .page-hero-media img { object-position: 50% 60%; }
.page-hero--compact .page-hero-inner { padding-block: clamp(40px, 5vw, 72px); }
.page-hero--compact h1, .page-hero--compact .wp-block-post-title { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); max-width: 24ch; }
.page-facts-wrap { padding-bottom: clamp(32px, 4vw, 56px); }
.page-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--hero-line); }
.page-facts li { display: grid; gap: 6px; padding: 22px 24px 0 0; margin: 0; }
.page-facts li + li { padding-left: 24px; border-left: 1px solid var(--hero-line); }
.page-facts span { color: var(--hero-muted); font-size: var(--step--1); }
.page-facts strong { color: var(--hero-fg); font: 600 var(--step-1)/1.2 var(--font-display); letter-spacing: -.01em; }
@media (max-width: 900px) {
	.page-hero-inner.has-media { grid-template-columns: minmax(0, 1fr); }
	.page-hero-media { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
	.page-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.page-facts li, .page-facts li + li { padding: 16px 12px 16px 0; border-left: 0; }
	.page-facts li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--hero-line); }
	.page-facts li:nth-child(n+3) { border-top: 1px solid var(--hero-line); }
}

/* ================= SPLIT TEXT ================= */
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split--text { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.split-copy h2 { margin-top: 0; }
.split--text .split-copy h2 { font-size: var(--step-2); }
.split-copy .eyebrow + h2 { margin-top: 12px !important; }
.file-card { display: grid; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); }
.file-card p { color: var(--muted); }
.file-card .file-formats { color: var(--head); font-size: var(--step-1); line-height: 1.35; }
.file-card .row-ctas { margin-top: 6px !important; }
@media (max-width: 900px) { .split, .split--text { grid-template-columns: minmax(0, 1fr); } }

/* ================= GALLERY ROW ================= */
.gallery-wrap { margin-top: clamp(40px, 5vw, 72px) !important; }
.photo-row.wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px !important; margin: 0; }
.photo-row--4.wp-block-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photo-row.wp-block-gallery .wp-block-image { width: auto !important; margin: 0 !important; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.photo-row--tall.wp-block-gallery .wp-block-image { aspect-ratio: 3 / 4; }
.photo-row--4.wp-block-gallery .wp-block-image { aspect-ratio: 1; }
.photo-row.wp-block-gallery .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s var(--ease); }
.photo-row.wp-block-gallery .wp-block-image:hover img { transform: scale(1.04); }
@media (max-width: 700px) {
	.photo-row.wp-block-gallery, .photo-row--4.wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; }
	.photo-row.wp-block-gallery:not(.photo-row--4) .wp-block-image:first-child { grid-column: 1 / -1; }
}

/* ================= CARDS ================= */
.card-grid { display: grid; gap: 20px; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.info-card h3 { font-size: var(--step-1); line-height: 1.3; }
.info-card > p:not(.link-arrow) { color: var(--muted); }
.info-card--alt { background: var(--ink); border-color: var(--ink); color: #D5DCD8; }
.info-card--alt h3 { color: #fff; }
.info-card--alt .check-list li::before { background: rgba(143, 209, 79, .16); color: var(--accent-on-dark); }
.info-card .link-arrow { margin-top: 4px !important; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 34px; margin: 0; line-height: 1.5; }
.check-list li::before {
	content: "✓"; position: absolute; left: 0; top: .05em; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
	background: var(--mint); color: var(--accent); font-size: .75rem; font-weight: 700;
}
@media (max-width: 1000px) { .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding-top: 20px; border-top: 2px solid var(--accent); }
.why-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--accent); font-weight: 700; }
.why-item p:last-child { font-size: var(--step-1); line-height: 1.45; }
.why-item strong { color: var(--head); font-weight: 600; }
.why-item p:last-child { color: var(--muted); }
@media (max-width: 800px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }

/* ================= STEPS ================= */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 600 1.125rem var(--font-display); margin-bottom: 6px !important; }
.step h3 { font-size: 1.0625rem; }
.step p:last-child { color: var(--muted); font-size: .9375rem; }
@media (min-width: 1101px) {
	.step:not(:last-child)::after { content: ""; position: absolute; top: 48px; right: -17px; width: 18px; height: 2px; background: var(--accent); opacity: .5; }
}
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ================= MATERIALS ================= */
.material-card { display: grid; gap: 14px; align-content: start; padding: 0 0 26px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.material-card .wp-block-image { aspect-ratio: 4 / 3; background: var(--surface); }
.material-card .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.material-card h3, .material-card .check-list { margin-inline: 24px !important; }
.material-card h3 { font-size: var(--step-1); margin-top: 6px !important; }
.material-card .check-list { font-size: .9375rem; gap: 8px; }

/* ================= CTA + FORM ================= */
.cta-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cta-side { display: grid; gap: 18px; align-content: start; }
.cta-side h2 { margin-top: -6px !important; }
.cta-side .person { max-width: 420px; }
.form-panel { padding: clamp(24px, 3vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form-panel h2 { font-size: var(--step-2); margin-bottom: 20px !important; }
.map-image { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map-image img { width: 100%; height: auto; display: block; }
.person--office { background: var(--paper); }
.people--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 840px; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .people--2 { grid-template-columns: minmax(0, 1fr); } }

/* Contact Form 7 */
.wpcf7-form { display: grid; gap: 16px; }
.wpcf7-form > p { margin: 0; }
.wpcf7-form label { display: grid; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--head); }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
	width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
	font: 400 1rem/1.4 var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.wpcf7-form textarea { min-height: 140px; resize: vertical; }
.wpcf7-form :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.wpcf7-form input[type="file"] { width: 100%; padding: 12px; border: 1.5px dashed var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: .9375rem; }
.wpcf7-form .wpcf7-submit {
	justify-self: start; min-height: 50px; padding: 0 28px; border: 0; border-radius: var(--wp--custom--radius--button, 999px); cursor: pointer;
	background: var(--accent); color: #fff; font: 600 1rem var(--font-body); transition: background .2s;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--accent-press); }
.wpcf7-not-valid-tip { font-size: .8125rem; font-weight: 500; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 4px 0 0; padding: 12px 16px; border-radius: var(--r-sm); font-size: .9375rem; }
.wpcf7-spinner { margin: 0 0 0 12px; }

/* ================= VIDEO ================= */
.video-wrap { max-width: 980px; margin-inline: auto !important; }
.video-wrap .wp-block-embed { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #000; }

/* ================= GUIDE (meelespea) ================= */
.guide-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.guide-aside { position: sticky; top: 104px; display: grid; gap: 14px; }
.guide-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.guide-toc li { counter-increment: toc; margin: 0; }
.guide-toc a { display: flex; gap: 12px; align-items: baseline; padding: 9px 12px; border-radius: var(--r-sm); color: var(--head); text-decoration: none; font-size: .9375rem; }
.guide-toc a::before { content: counter(toc); font: 600 .8125rem var(--font-display); color: var(--accent); min-width: 1.2em; }
.guide-toc a:hover, .guide-toc a.is-current { background: var(--mint); color: var(--accent); }
.guide-body { display: grid; gap: 16px; max-width: 780px; }
.guide-step { display: grid; gap: 12px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); scroll-margin-top: 100px; }
.guide-step h2 { font-size: var(--step-2); margin-bottom: 4px !important; scroll-margin-top: 100px; }
.guide-step ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.guide-step a { font-weight: 600; }
.note-box { display: grid; gap: 6px; margin-top: 8px !important; padding: 22px 24px; border-left: 3px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--mint); font-variant-numeric: tabular-nums; }
.note-box p:has(strong) { margin-top: 10px !important; color: var(--head); }
.note-box p:first-child { margin-top: 0 !important; }
@media (max-width: 900px) {
	.guide-grid { grid-template-columns: minmax(0, 1fr); }
	.guide-aside { position: static; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); }
}

/* ================= RAL ================= */
.ral-chart .ral-image { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.ral-chart img { width: 100%; height: auto; display: block; }
.ral-chart + .section-head { margin-top: clamp(48px, 6vw, 96px) !important; }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.swatch { display: grid; gap: 10px; }
.swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }
.swatch figcaption { margin: 0; font-weight: 600; color: var(--head); }
.swatch figcaption::first-letter { text-transform: uppercase; }
@media (max-width: 700px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* ================= EU PROJECT ================= */
.eu-project { background: var(--surface); border-top: 1px solid var(--line); }
.eu-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.eu-head { display: grid; gap: 20px; }
.eu-head h2 { font-size: var(--step-2); }
.eu-logo { max-width: 360px; }
.eu-logo img { width: 100%; height: auto; }
.eu-sum { display: grid; gap: 2px; padding: 20px 24px; border-radius: var(--r-md); background: var(--ink); color: #fff; justify-self: start; min-width: 240px; }
.eu-sum-label { font-size: var(--step--1); color: #A3ADA7; }
.eu-sum-value { font: 600 var(--step-2)/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.eu-body p { color: var(--ink); }
@media (max-width: 900px) { .eu-grid { grid-template-columns: minmax(0, 1fr); } }

/* ================= Default page (terms, privacy …) ================= */
.page-prose { padding-top: clamp(40px, 5vw, 72px); }
.page-prose > * { max-width: 760px; }
.page-prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.page-prose h3 { font-size: var(--step-1); margin-top: 1.4em; }

/* ================= Reveal ================= */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.info-card, .step, .material-card, .guide-step, .swatch, .why-item, .photo-row .wp-block-image {
			animation: am-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%;
		}
	}
}

/* ================= TORULASER: live 3D hero, machine photo, "what we do not cut" ================= */
.page-hero-stage { position: relative; aspect-ratio: 4 / 3; min-width: 0; }
.page-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.page-hero-stage.is-3d .page-hero-canvas { opacity: 1; }
.page-hero-stage.no-3d { display: none; }
.page-hero-inner.has-media:has(.page-hero-stage.no-3d) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .page-hero-stage { aspect-ratio: 16 / 11; } }

.machine-photo { margin-top: clamp(40px, 5vw, 72px) !important; }
.machine-photo-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.machine-photo-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.info-card--no { grid-column: 1 / -1; background: var(--paper); border-style: dashed; border-color: #d9b3ab; }
.info-card--no h3 { display: flex; align-items: center; gap: 12px; }
.info-card--no h3::before { content: "✕"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #B3402F; color: #fff; font: 700 .75rem/1 var(--font-display); }
.x-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.x-list li {
	display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px; border-radius: var(--r-md);
	background: #FBF1EF; color: #7C2A1E; font-weight: 600; line-height: 1.2;
}
.x-list li::before { content: "✕"; font-size: .8rem; font-weight: 700; color: #B3402F; }

/* ================= MEELESPEA: step pictures shown next to their item, click = larger ================= */
.guide-body { max-width: 920px; }
.guide-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 40%); gap: 8px clamp(16px, 3vw, 32px); align-items: center; padding-block: 6px; }
.guide-item + .guide-item { border-top: 1px solid var(--line); padding-top: 18px; }
.guide-item > p { margin: 0; }
.guide-fig { margin: 0 !important; }
.guide-fig a {
	position: relative; display: block; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md);
	background: linear-gradient(180deg, #fff, var(--surface)); box-shadow: 0 10px 24px -16px rgba(16, 24, 20, .35); cursor: zoom-in;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.guide-fig img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; border-radius: calc(var(--r-md) - 4px); }
.guide-fig a::after {
	content: ""; position: absolute; right: 14px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink) center / 16px no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FD14F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E");
	opacity: .85; transition: transform .35s var(--ease), opacity .25s;
}
.guide-fig a:hover, .guide-fig a:focus-visible { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 18px 32px -16px rgba(16, 24, 20, .45); }
.guide-fig a:hover::after { transform: scale(1.12); opacity: 1; }
@media (max-width: 700px) { .guide-item { grid-template-columns: minmax(0, 1fr); } .guide-fig img { max-height: 200px; } }

.guide-lightbox { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 14px; border: 0; border-radius: var(--r-lg); background: #fff; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6); }
.guide-lightbox::backdrop { background: rgba(10, 16, 13, .78); backdrop-filter: blur(4px); }
.guide-lightbox img { display: block; width: 100%; height: auto; max-height: calc(100vh - 90px); object-fit: contain; }
.guide-lightbox button {
	position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.guide-lightbox button:hover { background: var(--accent); }
html:has(.guide-lightbox[open]) { overflow: hidden; }

/* ================= MEELESPEA: order path, key values, warnings, folding, finish band ================= */
.guide-path-wrap { margin-bottom: clamp(28px, 4vw, 48px) !important; }
.guide-path { display: flex; flex-wrap: wrap; gap: 20px clamp(20px, 3vw, 44px); align-items: flex-start; }
.guide-path__group { flex: 5 1 520px; min-width: 0; }
.guide-path__group--opt { flex: 3 1 300px; }
.guide-path__label { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 600 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.guide-path__group--opt .guide-path__label { color: var(--muted); }
.guide-path__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.guide-path ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.guide-path li { flex: 1 1 0; min-width: 0; margin: 0; position: relative; }
.guide-path li + li::before { content: ""; position: absolute; top: 19px; right: calc(50% + 24px); width: calc(100% - 48px); height: 2px; background: linear-gradient(90deg, var(--line), var(--accent)); opacity: .6; }
.guide-path__group--opt li + li::before { background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); opacity: 1; }
.guide-path a { display: grid; justify-items: center; gap: 10px; padding: 0 4px; text-align: center; text-decoration: none; color: var(--head); font-size: .875rem; line-height: 1.3; }
.guide-path b {
	position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff;
	font: 600 .9375rem var(--font-display); box-shadow: 0 0 0 4px var(--paper); transition: background .25s, transform .35s var(--ease);
}
.guide-path__group--opt b { background: var(--paper); color: var(--head); box-shadow: inset 0 0 0 1.5px var(--line), 0 0 0 4px var(--paper); }
.guide-path a:hover b, .guide-path a.is-current b { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 0 0 4px var(--paper); }
.guide-path a:hover span, .guide-path a.is-current span { color: var(--accent); }
@media (max-width: 900px) {
	.guide-path ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
	.guide-path li + li::before { display: none; }
	.guide-path a { grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md); }
	.guide-path b { box-shadow: none; width: 30px; height: 30px; font-size: .8125rem; }
	.guide-aside { display: none; }
}

.guide-aside .person { margin-top: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); gap: 4px; }
.guide-aside .person:hover { transform: none; background: var(--paper); }
.guide-aside .person .mono { display: none; }
.guide-aside .person h3 { font-size: 1rem; }
.guide-aside .person .person-links { margin-top: 4px !important; font-size: .875rem; }

.guide-n { margin-right: .2em; font-family: var(--font-display); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.guide-step .key { font-weight: 600; color: var(--head); background: linear-gradient(transparent 58%, rgba(143, 209, 79, .38) 58%); padding-inline: 1px; }
.guide-step p.guide-warn, .guide-item > p.guide-warn {
	position: relative; padding: 12px 16px 12px 46px; border-radius: var(--r-sm); background: #FFF7E6; box-shadow: inset 3px 0 0 #E0A526;
}
.guide-step p.guide-warn::before {
	content: "!"; position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
	background: #E0A526; color: #fff; font: 700 .8125rem/1 var(--font-display);
}
.guide-step p.guide-warn .guide-n { color: #9A6A0A; }

/* special cases are folded away; their links in the path / table of contents open them */
.guide-step--opt { gap: 0; padding-block: 0; background: var(--surface); border-style: dashed; }
.guide-step--opt > summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: clamp(20px, 2.4vw, 28px); cursor: pointer; list-style: none;
	font: 600 var(--step-2)/1.2 var(--font-display); letter-spacing: -.01em; color: var(--head);
}
.guide-step--opt > summary::-webkit-details-marker { display: none; }
.guide-step--opt > summary::after {
	content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink) center / 16px no-repeat; transition: transform .35s var(--ease), background-color .25s;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FD14F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.guide-step--opt > summary:hover::after { background-color: var(--accent); }
.guide-step--opt[open] > summary::after { transform: rotate(180deg); }
.guide-step--opt[open] { background: var(--paper); border-style: solid; padding-bottom: clamp(24px, 3vw, 36px); }
.guide-step--opt[open] > summary { padding-bottom: 14px; }
.guide-step--opt > :not(summary) { margin-top: 12px; margin-bottom: 0; }

.guide-finish { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(32px, 4vw, 56px) !important; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--ink); color: #D5DCD8; }
.guide-finish .eyebrow { color: var(--accent-on-dark); margin-bottom: 14px !important; }
.guide-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guide-check li { margin: 0; }
.guide-check label { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); cursor: pointer; transition: background .25s; }
.guide-check label:hover { background: rgba(255, 255, 255, .1); }
.guide-check input { width: 20px; height: 20px; flex: none; accent-color: #8FD14F; cursor: pointer; }
.guide-check a { color: #fff; font-weight: 600; text-decoration: none; }
.guide-check input:checked + a { opacity: .55; text-decoration: line-through; }
.guide-finish-cta { display: grid; gap: 18px; justify-items: start; }
.guide-finish .person { padding: 0; background: none; box-shadow: none; }
.guide-finish .person:hover { background: none; transform: none; }
.guide-finish .person h3, .guide-finish .person a { color: #fff; }
.guide-finish .person .role { color: var(--accent-on-dark); }
.guide-finish .person .mono { display: none; }
.guide-finish .person-links a:hover { color: var(--accent-on-dark); }
@media (max-width: 800px) { .guide-finish { grid-template-columns: minmax(0, 1fr); } }

/* ================= TORULASER: intro text broken into scannable pieces ================= */
.split-copy .copy-lead { font-size: var(--step-1, 1.2rem); line-height: 1.5; color: var(--head); }
.split-copy .copy-lead strong { color: var(--accent); }
.use-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-block: 1px solid var(--line); }
.use-list li { position: relative; margin: 0; padding: 12px 0 12px 28px; line-height: 1.5; }
.use-list li + li { border-top: 1px solid var(--line); }
.use-list li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 10px; height: 2px; background: var(--accent); }
.use-list strong, .feature-list strong { color: var(--head); }
.split-copy .copy-callout { padding: 14px 18px; border-radius: var(--r-sm); background: var(--mint); box-shadow: inset 3px 0 0 var(--accent); color: var(--head); }
.split-copy .feature-list { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }

/* ================= KEEVITUSTÖÖD: featured "what we weld", photo pair, 3-step process, dark why band ================= */
:is(.weld-services, .weld-what, .weld-gallery, .process, .process-step, .why-panel) > * { margin-block: 0; }
.weld-services { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 20px; }
.weld-what {
	grid-row: span 2; display: grid; align-content: start; gap: 22px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); color: #D5DCD8;
	background: radial-gradient(120% 90% at 100% 0%, rgba(143, 209, 79, .16), transparent 55%), var(--ink);
}
.weld-what h3 { color: #fff; font-size: var(--step-2); line-height: 1.15; }
.weld-list { list-style: none; margin: 0; padding: 0; counter-reset: weld; display: grid; }
.weld-list li {
	counter-increment: weld; display: grid; grid-template-columns: 52px 1fr; align-items: baseline; margin: 0; padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, .12); color: #fff; font: 500 var(--step-1)/1.3 var(--font-display); letter-spacing: -.01em;
}
.weld-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.weld-list li::before { content: counter(weld, decimal-leading-zero); color: var(--accent-on-dark); font: 600 .875rem/1 var(--font-display); letter-spacing: .06em; }
.weld-services .info-card { padding: clamp(22px, 2.6vw, 30px); }

.weld-gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px !important; }
.zoom-fig { margin: 0 !important; }
.zoom-fig a { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--surface); }
.zoom-fig img { display: block; width: 100%; height: 100% !important; object-fit: cover; transition: transform .7s var(--ease); }
.zoom-fig a:hover img { transform: scale(1.04); }
.zoom-fig a::after {
	content: ""; position: absolute; right: 16px; bottom: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink) center / 18px no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FD14F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E");
	opacity: .85; transition: transform .35s var(--ease), opacity .25s;
}
.zoom-fig a:hover::after { transform: scale(1.1); opacity: 1; }

.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: none; }
.process-step { position: relative; display: grid; align-content: start; gap: 14px; padding: 14px 14px clamp(22px, 2.6vw, 30px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.process-step > :not(.process-img) { margin-inline: clamp(8px, 1.2vw, 16px) !important; }
.process-step + .process-step::before {           /* arrow between the steps */
	content: "→"; position: absolute; left: -28px; top: 120px; width: 28px; text-align: center; color: var(--accent); font: 600 1.25rem/1 var(--font-display);
}
.process-n { display: flex; align-items: center; gap: 10px; font: 600 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.process-n b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 .875rem var(--font-display); letter-spacing: 0; }
.process-img { margin: 0 !important; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.process-img img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.process-step h3 { font-size: var(--step-1); line-height: 1.3; }
.process-step > p:not(.link-arrow, .process-n, .process-here) { color: var(--muted); }
.process-step--here { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 48px -28px rgba(16, 24, 20, .45); }
.process-step--here .process-n b { background: var(--accent); }
.process-here { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--accent); font: 600 .75rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }

.why-band { padding-bottom: 0 !important; }
.why-panel {
	display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); align-items: center;
	padding: clamp(28px, 4vw, 52px); border-radius: var(--r-lg); background: var(--ink); color: #D5DCD8;
}
.why-panel h2 { color: #fff; }
.why-band .why-item { border-top-color: rgba(143, 209, 79, .6); }
.why-band .why-icon { background: rgba(143, 209, 79, .16); color: var(--accent-on-dark); }
.why-band .why-item strong { color: #fff; }
.why-band .why-item p:last-child { color: #B9C4BE; font-size: 1.0625rem; }

@media (max-width: 1000px) {
	.process { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 640px; }
	.process-step + .process-step::before { content: "↓"; left: 50%; top: -20px; width: 28px; margin-left: -14px; }
	.why-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
	.weld-services { grid-template-columns: minmax(0, 1fr); }
	.weld-what { grid-row: auto; }
	.weld-gallery { gap: 10px; }
}

/* ================= KONTAKT: company data in the hero, people as clear call/mail cards, map + form ================= */
.page-hero--contact .page-facts strong { font-size: var(--step-0, 1.0625rem); user-select: all; }
.page-hero--contact .page-facts a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(143, 209, 79, .5); }
.page-hero--contact .page-facts a:hover { color: var(--accent-on-dark); }
.page-hero--contact .page-facts strong:has(a) { user-select: auto; }

.contact-people .people-title { margin-bottom: clamp(20px, 3vw, 32px) !important; font-size: var(--step-2); }
.contact-people .people { gap: 20px; }
.contact-people .person {
	position: relative; padding: clamp(22px, 2.4vw, 28px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
	box-shadow: 0 16px 36px -28px rgba(16, 24, 20, .45); align-content: start; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.contact-people .person:hover { background: var(--paper); transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 24px 48px -28px rgba(16, 24, 20, .5); }
.contact-people .person .mono { position: absolute; top: clamp(22px, 2.4vw, 28px); right: clamp(22px, 2.4vw, 28px); }
.contact-people .person .role { justify-self: start; max-width: calc(100% - 56px); padding: 6px 10px; border-radius: 999px; background: var(--mint); line-height: 1.3; }
.contact-people .person h3 { margin-top: 10px !important; font-size: var(--step-1); }
.contact-people .person .note { font-size: .875rem; }
.contact-people .person .person-links { display: grid; gap: 8px; margin-top: 14px !important; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.3; }
.contact-people .person .person-links br { display: none; }
.contact-people .person .person-links a {
	display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: var(--r-md); background: var(--surface);
	font-weight: 600; text-decoration: none; overflow-wrap: anywhere; transition: background .25s, color .25s;
}
.contact-people .person .person-links a::before {
	content: ""; flex: none; width: 18px; height: 18px; background: var(--accent);
	-webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.contact-people .person .person-links a[href^="tel:"] { font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.contact-people .person .person-links a[href^="tel:"]::before { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.contact-people .person .person-links a[href^="mailto:"] { font-size: .9375rem; font-weight: 500; }
.contact-people .person .person-links a[href^="mailto:"]::before { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.contact-people .person .person-links a:hover { background: var(--mint); color: var(--accent); text-decoration: none; }

.cta-section .person--office { padding: clamp(22px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cta-section .person--office:hover { transform: none; background: var(--paper); }
.map-image.zoom-fig a { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
/* equal cards: links sit at the bottom and fill the card width */
.contact-people .person { display: flex; flex-direction: column; gap: 6px; }
.contact-people .person .role { align-self: flex-start; }
.contact-people .person .person-links { margin-top: auto !important; width: 100%; justify-items: stretch; }
.contact-people .person h3 + .person-links, .contact-people .person .note + .person-links { margin-top: auto !important; }
.contact-people .person > h3 { margin-bottom: 14px !important; }
.page-hero--contact .page-facts strong { overflow-wrap: anywhere; }
/* contact cards: avatar, role, name centred */
.contact-people .person { align-items: center; text-align: center; }
.contact-people .person .mono { position: static; }
.contact-people .person .role { align-self: center; max-width: 100%; margin-top: 6px !important; }
.contact-people .person h3 { margin-top: 4px !important; }
.contact-people .person .person-links a { justify-content: center; }
.contact-people .person .person-links { align-self: stretch; }
/* contact page: tighter vertical rhythm */
.page-hero--contact .page-hero-inner { padding-block: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 36px) !important; }
.page-hero--contact .page-facts-wrap { padding-bottom: clamp(20px, 2.6vw, 32px); }
.page-hero--contact .page-facts li { padding-top: 16px; }
.section.contact-people { padding-block: clamp(36px, 4.5vw, 60px) !important; margin-top: 0 !important; }
.contact-people .people-title { margin-bottom: 18px !important; }
.contact-people .people { margin-top: 0 !important; }
.contact-people .person { padding-block: 22px; }
.contact-people .person .person-links { margin-top: 10px !important; padding-top: 12px; }
.contact-people + .cta-section { padding-block: clamp(36px, 4.5vw, 60px) !important; margin-top: 0 !important; }
.contact-people + .cta-section .cta-side { gap: 16px; }
.contact-people + .cta-section .form-panel textarea { height: 140px; min-height: 120px; }
.contact-people + .cta-section .form-panel h2 { margin-bottom: 4px !important; }
/* contact hero: title, address and buttons centred, fact strip under it centred too */
.page-hero--contact .page-hero-inner { display: flex; justify-content: center; }
.page-hero--contact .page-hero-copy { text-align: center; margin-inline: auto !important; display: grid; justify-items: center; }
.page-hero--contact .page-hero-copy .eyebrow { justify-content: center; }
.page-hero--contact .hero-ctas { justify-content: center; }
.page-hero--contact .page-facts li { text-align: center; justify-items: center; }
.contact-people .people-title { text-align: center; }

/* ================= FORMS (CF7): selects and file field match the inputs ================= */
.form-panel .wpcf7 select {
	-webkit-appearance: none; appearance: none; width: 100%; height: 48px; padding: 0 44px 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23377A00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
	font: 400 1rem/1.4 var(--font-body); color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.form-panel .wpcf7 select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(55, 122, 0, .15); }
.form-panel .wpcf7 select:has(option[value=""]:checked) { color: var(--muted); }
/* file field: pages.js wraps the input in .file-drop (drag & drop, Estonian text, chosen file name) */
.file-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 18px; border: 1.5px dashed var(--line); border-radius: var(--r-md); background: var(--surface); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop.is-over { border-color: var(--accent); background: var(--mint); }
.file-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--accent); box-shadow: 0 6px 16px -10px rgba(16, 24, 20, .5); }
.file-drop__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.file-drop__title { font-weight: 600; color: var(--head); }
.file-drop__hint { font-size: .8125rem; color: var(--muted); }
.file-drop.has-file { border-style: solid; border-color: var(--accent); background: var(--mint); }
.file-drop.has-file .file-drop__title { color: var(--accent); }

/* 3D page: short facts beside the form */
.cta-side .form-facts { margin-block: 4px 8px !important; }

/* steps on phones: number beside the text instead of five tall cards */
@media (max-width: 700px) {
	.steps { gap: 0; padding: 4px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
	.step { grid-template-columns: 36px 1fr; column-gap: 14px; row-gap: 4px; padding: 16px 0; background: none; border: 0; border-radius: 0; }
	.step + .step { border-top: 1px solid var(--line); }
	.step > .step-num { grid-row: span 2; width: 36px; height: 36px; font-size: 1rem; margin: 0 !important; }
	.step > h3 { align-self: center; }
	.step > p:not(.step-num) { grid-column: 2; font-size: .9375rem; }
}

/* product photo on white (3D printer): show the whole machine instead of cropping it */
.page-hero--product .page-hero-media { background: #fff; }
.page-hero--product .page-hero-media img { object-fit: contain; padding: clamp(12px, 2vw, 24px); }
/* material cards: whole spool visible, photos have white/light backgrounds */
.material-card .wp-block-image { background: #fff; border-bottom: 1px solid var(--line); }
.material-card .wp-block-image img { object-fit: contain; padding: 14px; }

/* ================= KEEVITUSTÖÖD: front-page style motion ================= */
.page-hero--sparks .page-hero-media { position: relative; }
.spark-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.page-hero--sparks .wp-block-button__link, .fx .link-arrow a { display: inline-block; translate: var(--mx, 0) var(--my, 0); transition: translate .35s var(--ease), background-color .2s, color .2s, border-color .2s; }

/* word ribbon on a dark band */
.weld-ribbon { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 84px) !important; margin-block: 0 !important; background: radial-gradient(80% 140% at 50% 120%, rgba(143, 209, 79, .18), transparent 60%), var(--ink); }
.weld-ribbon .ribbon-text { margin: 0 !important; max-width: none !important; white-space: nowrap; font: 600 clamp(2rem, 5.4vw, 5rem)/1 var(--font-display); letter-spacing: -.03em; color: #F3F6F1; }
.weld-ribbon .ribbon-track { display: inline-flex; gap: .5em; will-change: transform; }
.weld-ribbon .ribbon-track > span { display: inline-flex; align-items: center; gap: .5em; }
.weld-ribbon .ribbon-track i { display: inline-block; width: .3em; height: .3em; border-radius: 50%; background: var(--accent-on-dark); }
.weld-ribbon .ribbon-track .is-alt { color: transparent; -webkit-text-stroke: 1.5px rgba(243, 246, 241, .55); }
@media (prefers-reduced-motion: no-preference) {
	.weld-ribbon .ribbon-track { animation: am-marquee var(--dur, 48s) linear infinite; }
	.weld-ribbon:hover .ribbon-track { animation-play-state: paused; }
}
.section.weld-ribbon + .section { padding-top: clamp(56px, 8vw, 104px) !important; }

/* pointer light on the dark cards */
.weld-what, .why-panel { position: relative; isolation: isolate; overflow: hidden; }
.weld-what::before, .why-panel::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; pointer-events: none;
	background: radial-gradient(360px circle at var(--sx, 70%) var(--sy, 30%), rgba(143, 209, 79, .22), transparent 62%);
}
.weld-what:hover::before, .why-panel:hover::before { opacity: 1; }
.weld-list li { transition: padding-left .4s var(--ease), color .3s; }
.weld-list li:hover { padding-left: 10px; color: var(--accent-on-dark); }

/* scroll-driven: photos open with a mask, cards rise, headings rise word by word (keyframes from sections.css) */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.fx .zoom-fig a, .fx .process-img { animation: am-clip linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
		.fx .zoom-fig img, .fx .process-img img { animation: am-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
		.fx .weld-what, .fx .info-card, .fx .process-step, .fx .why-item { animation: am-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
		.fx .process-step:nth-child(2) { animation-range: entry 6% entry 46%; }
		.fx .process-step:nth-child(3) { animation-range: entry 12% entry 52%; }
		.fx .why-panel { animation: am-sheet linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
	}
}
.page-designed .section.weld-ribbon { padding-block: clamp(40px, 7vw, 84px) !important; }
@media (max-width: 900px) { .page-hero--portrait .page-hero-inner.has-media { grid-template-columns: minmax(0, 1fr); } .page-hero--portrait .page-hero-media { aspect-ratio: 4 / 5; height: auto; width: 100%; justify-self: stretch; } }
