/* =========================================================================
   Arco Metal – section styles for the patterns (hero, services, laser, products,
   story, investments, contacts). Ported from the approved prototype
   (design/prototype/css/proto.css); class names match the block classNames.
   ========================================================================= */
:root {
	--ink: var(--wp--preset--color--ink); --head: var(--wp--preset--color--head);
	--accent: var(--wp--preset--color--accent); --accent-press: var(--wp--preset--color--accent-press);
	--accent-on-dark: var(--wp--preset--color--accent-on-dark); --mint: var(--wp--preset--color--mint);
	--paper: var(--wp--preset--color--paper); --surface: var(--wp--preset--color--surface);
	--line: var(--wp--preset--color--line); --muted: var(--wp--preset--color--muted);
	--steel-hi: #E9EEEA; --steel: var(--wp--preset--color--steel); --steel-lo: #7D8A80; --spark: #FFB547;
	--font-display: var(--wp--preset--font-family--display); --font-body: var(--wp--preset--font-family--body);
	--step--1: var(--wp--preset--font-size--small); --step-1: var(--wp--preset--font-size--large);
	--step-2: var(--wp--preset--font-size--x-large); --step-4: var(--wp--preset--font-size--huge);
	--r-sm: 6px; --r-md: 12px; --r-lg: 20px; --ease: cubic-bezier(.2, .7, .2, 1);
	--shadow: 0 1px 2px rgba(1, 33, 4, .05), 0 12px 32px -12px rgba(1, 33, 4, .18);
	--section: clamp(64px, 5vw + 40px, 120px);
	--eyebrow-gap: 20px;                       /* eyebrow → title, the same in every section */
	--window-y: clamp(48px, 7vw, 120px);       /* top/bottom room in the open backdrop windows */
}

/* block gap between grid items is handled by the grids themselves */
:is(.hero-inner, .hero-copy, .hero-slides, .hero-slide, .service-grid, .service-card, .card-body, .laser-grid, .laser-copy,
	.product-tiles, .product-tile, .story-grid, .story-copy, .invest-row, .invest-text, .people, .person, .section-head, .section-head-text) > * { margin-block: 0; }
.home .wp-block-image, .section .wp-block-image { margin: 0; }

.section { padding-block: var(--section) !important; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px) !important; }
.section-head h2, .section-head-text h2 { margin-top: 0; }
.section-head .eyebrow { margin-bottom: var(--eyebrow-gap) !important; } /* dark sheets get the same 20px from their grid gap */
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 760px; }
.link-arrow { margin: 0; }
.link-arrow a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow a:hover { text-decoration: underline; }

/* ---------- Buttons: styles registered in functions.php ---------- */
.wp-block-button.is-large .wp-block-button__link { padding: 1.15rem 1.75rem; }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--hero-fg, #fff); border: 1.5px solid var(--hero-ghost-bd, rgba(255, 255, 255, .35)); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--hero-ghost-hover, rgba(255, 255, 255, .08)); border-color: var(--hero-fg, #fff); }
.wp-block-button.is-style-outline .wp-block-button__link { padding: calc(.95rem - 1.5px) calc(1.4rem - 1.5px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--accent); color: #fff; }
.wp-block-button.is-style-pill .wp-block-button__link {
	min-height: 40px; padding: 0 18px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px;
	background: none; color: var(--head); font: 500 .9375rem/1 var(--font-body); letter-spacing: 0; text-transform: none; transition: all .2s;
}
.wp-block-button.is-style-pill .wp-block-button__link:hover { border-color: var(--accent); background: var(--mint); color: var(--accent); }

/* ================= HERO ================= */
.hero {
	--hero-bg: #151918; --hero-glow: rgba(143, 209, 79, .14); --hero-fg: #fff; --hero-text: #E3E8E5;
	--hero-muted: #A3ADA7; --hero-accent: var(--accent-on-dark); --hero-line: rgba(255, 255, 255, .08);
	--hero-ghost-bd: rgba(255, 255, 255, .35); --hero-ghost-hover: rgba(255, 255, 255, .08);
	position: relative; overflow: hidden; isolation: isolate; color: var(--hero-text);
	background: radial-gradient(ellipse 60% 70% at 72% 42%, var(--hero-glow), transparent 70%), var(--hero-bg);
}
.hero::before { /* engineering grid */
	content: ""; position: absolute; inset: 0; z-index: -2; 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% 70% at 70% 40%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 32px; padding-block: clamp(32px, min(6vw, 6vh), 96px) 24px; } /* lower screens: less space above, the facts row stays on screen */
.hero .eyebrow { color: var(--hero-accent); margin-bottom: var(--eyebrow-gap); }
.hero h1 { color: var(--hero-fg); font-size: var(--step-4); line-height: 1.04; letter-spacing: -.03em; max-width: 13ch; margin-top: 0; }
.hero-lead { margin-top: 24px !important; max-width: 52ch; color: var(--hero-muted); font-size: var(--step-1); line-height: 1.55; }
.hero-ctas { gap: 12px; margin-top: 36px !important; }
.hero-stage { position: relative; aspect-ratio: 560 / 460; max-width: 100%; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-stage.is-3d .hero-canvas { opacity: 1; }
.hero-canvas.is-fading { opacity: 0 !important; transition: opacity .35s var(--ease); }
@media (min-width: 901px) {
	.hero-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); min-height: 560px; }
	.hero-stage {
		position: absolute; top: 0; right: 0; bottom: 0; width: min(66%, 1180px); aspect-ratio: auto; z-index: -1;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 18%, #000 38%), linear-gradient(0deg, transparent 0, #000 18%);
		-webkit-mask-composite: source-in;
		mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 18%, #000 38%), linear-gradient(0deg, transparent 0, #000 18%);
		mask-composite: intersect;
	}
}
@media (max-width: 900px) {
	.hero-inner { grid-template-columns: minmax(0, 1fr); }
	.hero-stage {
		width: min(100%, 520px); margin-inline: auto; aspect-ratio: 4 / 3.4;
		-webkit-mask-image: radial-gradient(ellipse 72% 68% at 55% 50%, #000 55%, transparent 100%);
		mask-image: radial-gradient(ellipse 72% 68% at 55% 50%, #000 55%, transparent 100%);
	}
	.hero.no-3d .hero-stage { display: none; } /* no empty box when 3D is off; otherwise the box is reserved from the start (no layout shift) */
}

/* H1 segments follow the active scene */
.h1-seg { transition: color .6s var(--ease); }
.hero.has-slides .h1-seg { color: color-mix(in srgb, var(--hero-fg) 38%, transparent); }
.hero.has-slides .h1-seg.is-active { color: var(--hero-fg); }

/* Slides: caption + tabs on row 1, facts on row 2. Slides/lists use display:contents so
   all facts (3 changing + fixed) share one 4-column grid. */
.hero-slides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(44px, auto); column-gap: 0; margin-top: 8px !important; padding-bottom: 8px; }
.hero-slide, .hero-facts, .hero-facts-fixed { display: contents; }
.hero.is-enhanced .hero-slide:not(.is-active) { display: none; }
.hero:not(.is-enhanced) .hero-slide ~ .hero-slide { display: none; }
.hero-slide-caption { grid-column: 1 / 3; grid-row: 1; align-self: end; display: grid; gap: 4px; max-width: 46ch; color: var(--hero-muted); font-size: .8125rem; letter-spacing: .02em; }
.hero-slide-caption a { color: var(--hero-accent); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.hero-slide-caption a:hover { color: var(--hero-fg); text-decoration: underline; }
.hero-tabs { grid-column: 3 / 5; grid-row: 1; justify-self: end; align-self: end; display: flex; gap: 6px; }
@media (min-width: 901px) { .hero-tabs { position: relative; z-index: 1; padding: 0 4px; border-radius: 10px; background: rgba(21, 25, 24, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } } /* readable over the 3D scene */
.hero-tabs button {
	position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 6px;
	border: 0; background: none; cursor: pointer; color: var(--hero-muted); font: 500 .875rem var(--font-body); white-space: nowrap;
}
.hero-tabs button .num { font-variant-numeric: tabular-nums; font-size: .75rem; opacity: .7; }
.hero-tabs button[aria-selected="true"], .hero-tabs button:hover { color: var(--hero-fg); }
.hero-tabs .bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--hero-line); border-radius: 2px; overflow: hidden; }
.hero-tabs .bar b { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--hero-accent); }

@media (min-width: 901px) { .hero-slides li { grid-row: 2; } } /* row 1 = caption + tabs, also before JS adds the tabs */
.hero-slides li { list-style: none; margin: 0; padding: 24px 24px 32px 0; border-top: 1px solid var(--hero-line); margin-top: 24px; color: var(--hero-muted); font-size: var(--step--1); }
.hero-slides li + li, .hero-facts-fixed li { padding-left: 24px; border-left: 1px solid var(--hero-line); }
.hero-slides .fact { display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 901px) and (max-height: 960px) { /* e.g. 1366×768 / 1920×1080 at 125 %: the facts row must not hit the bottom edge */
	.hero-lead { margin-top: 18px !important; }
	.hero-ctas { margin-top: 26px !important; }
	.hero-slides li { margin-top: 14px; padding-block: 18px 22px; }
}
.fact-label { font-size: var(--step--1); color: var(--hero-muted); letter-spacing: .02em; }
.fact-value { font: 600 var(--step-2)/1.1 var(--font-display); color: var(--hero-fg); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fact-value small { font-size: .55em; font-weight: 500; color: var(--hero-accent); margin-left: .28em; }
.fact-value small:empty { display: none; }
.fact-value.fact-text { font-size: var(--step-1); line-height: 1.25; }
@media (prefers-reduced-motion: no-preference) {
	.hero.is-enhanced .hero-slide.is-active li, .hero.is-enhanced .hero-slide.is-active .hero-slide-caption { animation: fact-in .45s var(--ease) both; }
	.hero.is-enhanced .hero-slide.is-active li:nth-child(2) { animation-delay: .05s; }
	.hero.is-enhanced .hero-slide.is-active li:nth-child(3) { animation-delay: .1s; }
}
@keyframes fact-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) {
	.hero-slides { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 44px; } /* row 1 = tabs (added by JS): reserved so nothing below moves */
	.hero-slide-caption { grid-column: 1 / -1; grid-row: 2; }
	.hero-tabs { grid-column: 1 / -1; grid-row: 1; justify-self: stretch; justify-content: space-between; }
	.hero-tabs button { padding-inline: 4px; font-size: .8125rem; }
	.hero-tabs .bar { left: 4px; right: 4px; }
	.hero-tabs button .num { display: none; }
	.hero-slides li { margin-top: 0; }
	.hero-slide-caption { margin-bottom: 16px !important; }
	.hero-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
	.hero-facts-fixed li { padding-left: 24px; border-left: 1px solid var(--hero-line); }
}


/* =========================================================================
   FRONT PAGE CANVAS
   A fixed backdrop (huge outlined "Arco Metal" on deep green) stays in place; the sections are
   rounded "sheets" that slide over it. Between some sheets an open "window" (.ribbon) shows the
   backdrop with a slow word ribbon running across.
   ========================================================================= */
main.home, body.home {
	--bd: #0B1A10; --bd-line: rgba(143, 209, 79, .07); --bd-word: rgba(143, 209, 79, .16);
	--sand: #F3EFE7; --sand-deep: #E8E1D4; --birch: #D9C6A5;
	--night: #121715; --night-2: #19201C; --night-line: rgba(255, 255, 255, .08); --night-text: #C9D2CC;
	--sheet-r: clamp(20px, 2.4vw, 36px); --sheet-x: clamp(6px, 1vw, 16px);
	--section: clamp(56px, 4vw + 32px, 104px);
}
main.home { position: relative; isolation: isolate; }
body.home, body:has(main.home) { background: var(--bd, #0B1A10); }
.home-backdrop { position: fixed; inset: 0; z-index: -1; max-width: none !important; margin: 0 !important; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 55%, #12301B 0%, var(--bd) 70%); }
.home-backdrop__grid {
	position: absolute; inset: 0;
	background-image: linear-gradient(var(--bd-line) 1px, transparent 1px), linear-gradient(90deg, var(--bd-line) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
}
/* outlined SVG paths (Lexend 800, made with fontTools): never the LCP element and no shift when the web font arrives; 1 em = 100 units */
.home-backdrop__word {
	--em: clamp(7rem, 23vw, 24rem);
	position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: calc(var(--em) * 3.4); max-width: none; height: auto; overflow: visible;
}
.home-backdrop__word path,
.home-backdrop__word text {
	font: 800 100px var(--font-display); letter-spacing: -4.5px; text-anchor: middle;
	fill: none; stroke: var(--bd-word); stroke-width: 1.5px; vector-effect: non-scaling-stroke;
}

/* sheets */
.home > .section, .home > .invest { position: relative; margin-inline: var(--sheet-x) !important; max-width: none !important; }
.home > .hero { padding-bottom: var(--sheet-r) !important; } /* room for the first sheet that overlaps the hero */
.home > .services { margin-top: calc(var(--sheet-r) * -1) !important; z-index: 2; border-radius: var(--sheet-r) var(--sheet-r) 0 0; }
.home > .services, .home > .laser, .home > .products, .home > .story, .home > .invest { border-radius: var(--sheet-r); }
.home > .services { border-radius: var(--sheet-r); }
.home > .invest { border-radius: var(--sheet-r) var(--sheet-r) 0 0; margin-top: 12px !important; padding-top: clamp(12px, 3vw, 36px) !important; } /* the strip's text keeps clear of the rounded top */
.home > .contacts { border-radius: 0 0 var(--sheet-r) var(--sheet-r); margin-bottom: var(--sheet-x) !important; }
.home > .laser, .home > .products, .home > .story { margin-top: 12px !important; }
.section { padding-block: var(--section) !important; }

/* quiet window: only the backdrop shows through */
.backdrop-window { min-height: clamp(140px, 28vh, 300px); margin: 0 !important; max-width: none !important; }
.catalog-window { padding: var(--window-y) clamp(20px, 5vw, 64px) !important; }

/* ribbon window */
.ribbon { position: relative; overflow: hidden; padding-block: var(--window-y) !important; margin: 0 !important; max-width: none !important; }
.ribbon-text { margin: 0; white-space: nowrap; font: 600 clamp(2.2rem, 6vw, 5.5rem)/1 var(--font-display); letter-spacing: -.03em; color: #F3F6F1; }
.ribbon .ribbon-track { display: inline-flex; gap: .5em; will-change: transform; }
.ribbon .ribbon-track > span { display: inline-flex; align-items: center; gap: .5em; }
.ribbon .ribbon-track i { display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--accent-on-dark); font-style: normal; }
.ribbon .ribbon-track .is-alt { color: transparent; -webkit-text-stroke: 1.5px rgba(243, 246, 241, .55); }
@media (prefers-reduced-motion: no-preference) {
	.ribbon .ribbon-track { animation: am-marquee var(--dur, 48s) linear infinite; }
	.ribbon--reverse .ribbon-track { animation-direction: reverse; }
	.ribbon:hover .ribbon-track { animation-play-state: paused; }
}
@keyframes am-marquee { to { transform: translateX(-50%); } }

/* backdrop word drifts sideways while the page scrolls (scroll-driven, no JS) */
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.home-backdrop__word { animation: am-drift linear both; animation-timeline: scroll(root); }
		@keyframes am-drift { from { transform: translateX(-3.5vw); } to { transform: translateX(3.5vw); } } /* small swing around the centre, equal space left and right */
	}
}

/* section heads: big, editorial */
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px) !important; }
.home .section-head { max-width: var(--wp--style--global--wide-size, 1240px); margin-bottom: clamp(28px, 3.5vw, 52px) !important; } /* left edge = the cards' left edge */
.home .section-head:not(.section-head--split) > *, .home .section-head--split > div { max-width: 860px; }
.home .section-head h2, .home .section-head-text h2, .home .laser-copy h2, .home .story-copy h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; }

/* ================= SERVICES (bento) ================= */
.services { background: var(--paper); counter-reset: svc; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card {
	position: relative; display: flex; flex-direction: column; min-width: 0; counter-increment: svc;
	background: var(--sand); border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(1, 33, 4, .45); }
.service-card .wp-block-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-deep); }
.service-card .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-card .wp-block-image img[src$=".png"], .service-card .is-cutout img { object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
/* product cut-outs (class "is-cutout" on the image block) sit on white, like the product photo */
.service-card .wp-block-image.is-cutout { background: #fff; }
.service-card:hover .wp-block-image img { transform: scale(1.06); }
.card-body { position: relative; padding: 22px 72px 26px 24px; display: grid; gap: 6px; flex: 1; align-content: start; }
.card-body::before { content: counter(svc, decimal-leading-zero); position: absolute; right: 24px; bottom: 22px; font: 500 .8125rem var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.card-tag { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card-body h3 { font-size: var(--step-1); }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: -100vh -100vw; z-index: 1; } /* whole card clickable (clipped by overflow) */
.card-body h3 a:focus-visible { outline: none; }
.service-card:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.card-body p:not(.card-tag) { color: var(--muted); }
.card-body::after {
	content: "→"; position: absolute; right: 22px; top: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--paper); color: var(--accent); font-weight: 600; transition: background .35s, color .35s, transform .45s var(--ease);
}
.service-card.is-external .card-body::after { content: "↗"; }
.service-card:hover .card-body::after { background: var(--accent); color: #fff; transform: rotate(-45deg); }

/* feature card: photo fills the card, text over a dark fade */
.service-card--feature { grid-column: span 2; min-height: clamp(360px, 34vw, 480px); background: var(--night); color: #fff; }
.service-card--feature .wp-block-image { position: absolute; inset: 0; aspect-ratio: auto; z-index: -1; }
.service-card--feature .wp-block-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 12, 0) 35%, rgba(10, 16, 12, .82) 100%); }
.service-card--feature .card-body { margin-top: auto; flex: none; padding: 28px 88px 30px 30px; }
.service-card--feature .card-body h3 { font-size: clamp(1.75rem, 1rem + 2vw, 2.6rem); color: #fff; }
.service-card--feature .card-tag, .service-card--feature .card-body p:not(.card-tag), .service-card--feature .card-body::before { color: rgba(255, 255, 255, .78); }
.service-card--feature .card-body::before { right: auto; left: 30px; bottom: auto; top: -36px; font-size: .875rem; color: rgba(255, 255, 255, .7); }
.service-card--feature .card-body::after { top: auto; bottom: 28px; right: 28px; width: 52px; height: 52px; background: var(--accent-on-dark); color: var(--ink); }
/* second card stands next to the feature: photo grows to the same height */
.service-card--feature + .service-card .wp-block-image { aspect-ratio: auto; flex: 1; min-height: 200px; }
.service-card--feature + .service-card .card-body { flex: none; }
/* last card lies across the whole row */
.service-card:last-child:not(:only-child) { grid-column: 1 / -1; flex-direction: row; }
.service-card:last-child:not(:only-child) .wp-block-image { flex: 0 0 50%; aspect-ratio: 16 / 7; }
.service-card:last-child:not(:only-child) .card-body { align-content: center; padding-left: clamp(24px, 4vw, 56px); }
.service-card:last-child:not(:only-child) .card-body h3 { font-size: var(--step-2); }
@media (max-width: 1000px) {
	.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.service-card--feature { grid-column: 1 / -1; }
	.service-card--feature + .service-card .wp-block-image { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
}
@media (max-width: 640px) {
	.service-grid { grid-template-columns: minmax(0, 1fr); }
	.service-card--feature { min-height: 380px; }
	.service-card:last-child:not(:only-child) { flex-direction: column; }
	.service-card:last-child:not(:only-child) .wp-block-image { flex: none; aspect-ratio: 16 / 9; }
	.service-card:last-child:not(:only-child) .card-body { padding-left: 24px; }
}

/* ================= LASER (dark sheet) ================= */
.laser { --line: var(--night-line); background: radial-gradient(ellipse 55% 70% at 28% 50%, rgba(143, 209, 79, .10), transparent 70%), var(--night); color: var(--night-text); border: 0 !important; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.laser h2 { color: #fff; }
.laser .eyebrow { color: var(--accent-on-dark); }
.laser-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.laser-visual { position: relative; }
.laser-visual svg { width: 100%; height: auto; overflow: visible; }
.tube-top { fill: #2A332E; stroke: #56645B; stroke-width: 1; }
.tube-side { stroke: #56645B; stroke-width: 1; }
.tube-end { fill: #3A4640; stroke: #56645B; stroke-width: 1; }
.tube-hole { fill: #070A08; opacity: .9; }
.laser #am-steel stop:nth-child(1) { stop-color: #4A5750; }
.laser #am-steel stop:nth-child(2) { stop-color: #2F3934; }
.laser #am-steel stop:nth-child(3) { stop-color: #1B221E; }
.cut { fill: none; stroke: var(--spark); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: var(--cut, 0); filter: drop-shadow(0 0 4px rgba(255, 181, 71, .95)) drop-shadow(0 0 12px rgba(255, 140, 40, .6)); }
.laser-visual .head rect { fill: #E9EEEA; }
.laser-visual .head path { fill: #9AA79F; }
.spark-core { fill: #fff; filter: drop-shadow(0 0 6px var(--spark)) drop-shadow(0 0 18px rgba(255, 181, 71, .9)); }
.laser-visual .dimline { fill: none; stroke: #6B7A71; stroke-width: 1; }
.laser-visual .dimtxt { fill: #9AA79F; font: 500 13px var(--font-body); text-anchor: middle; }
.laser-copy { display: grid; gap: 20px; }
.laser-copy h2 { margin: 0; }
.laser-copy > p { color: var(--muted); max-width: 60ch; }
.laser .laser-copy > p { color: var(--night-text); }
.spec-table { margin: 0; }
.spec-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec-table td { text-align: left; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .9688rem; color: var(--head); font-weight: 500; }
.spec-table td:first-child { width: 38%; color: var(--muted); padding-right: 16px; }
.laser .spec-table td { padding-block: 13px; border-bottom-color: var(--night-line); color: #fff; }
.laser .spec-table td:first-child { color: #93A099; font-weight: 400; }
.laser .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .35); }
.laser .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--ink); border-color: #fff; }
.row-ctas { gap: 12px; }
@media (min-width: 901px) { .laser-visual { position: sticky; top: 18vh; } .laser-grid { align-items: start; } }
@media (max-width: 900px) { .laser-grid { grid-template-columns: minmax(0, 1fr); } }

/* ================= PRODUCTS (warm, draggable row) ================= */
.products { background: var(--sand); overflow: hidden; }
.products .section-head--split { align-items: flex-end; }
.product-tiles {
	display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 27vw, 360px); gap: 16px;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding-bottom: 6px !important; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
	&.is-end { -webkit-mask-image: none; mask-image: none; }
	cursor: grab;
}
.product-tiles::-webkit-scrollbar { display: none; }
.product-tiles.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.product-tiles.is-dragging * { pointer-events: none; }
.product-tile { position: relative; display: grid; gap: 4px; align-content: start; scroll-snap-align: start; }
.product-tile .wp-block-image { position: relative; margin-bottom: 16px !important; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: #FBF9F5; }
.product-tile .wp-block-image::before { content: ""; position: absolute; left: 50%; bottom: 10%; width: 64%; height: 8%; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 45, 20, .16), transparent); }
.product-tile .wp-block-image img { position: relative; width: 100%; height: 100%; object-fit: contain; padding: 12% 10% 14%; mix-blend-mode: multiply; transition: transform .9s var(--ease); }
.product-tile:hover .wp-block-image img { transform: translateY(-6px) scale(1.04); }
.product-tile h3 { font-size: var(--step-1); }
.product-tile h3 a { color: inherit; text-decoration: none; }
.product-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.product-tile:hover h3 { color: var(--accent); }
.product-tile p { color: var(--muted); font-size: .9375rem; }
.tiles-nav { display: flex; gap: 8px; }
.tiles-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(21, 23, 22, .18); background: transparent; color: var(--head); font-size: 1.1rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.tiles-nav button:hover:not(:disabled) { background: var(--head); color: #fff; border-color: var(--head); }
.tiles-nav button { translate: var(--mx, 0) var(--my, 0); }
.tiles-nav button:disabled { opacity: .35; cursor: default; }
.pill-wrap { margin-top: 32px !important; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pill-row { gap: 10px; }
.products .wp-block-button.is-style-pill .wp-block-button__link { border-color: rgba(21, 23, 22, .16); }
.products .wp-block-button.is-style-pill .wp-block-button__link:hover { background: var(--paper); }
/* RAL swatches that breathe (decorative) */
.swatches { display: flex; align-items: center; gap: 0; }
.swatches i { width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; border: 3px solid var(--sand); background: var(--c); }
@media (prefers-reduced-motion: no-preference) {
	.swatches i { animation: am-breathe 4.8s var(--ease) infinite; animation-delay: calc(var(--i) * .35s); }
}
@keyframes am-breathe { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-5px) scale(1.12); } }

/* ================= STORY (deep green, big year) ================= */
.story { background: #0F2615; color: #D5E2D7; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.story h2 { color: #fff; }
.story .eyebrow { color: var(--accent-on-dark); }
.story-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.story-copy { position: relative; z-index: 1; display: grid; gap: 20px; }
.story-copy p { max-width: 62ch; }
.story-year {
	position: absolute; right: -1vw; bottom: -0.32em; z-index: 2; pointer-events: none;
	font: 800 clamp(8rem, 22vw, 22rem)/1 var(--font-display); letter-spacing: -.05em;
	color: transparent; -webkit-text-stroke: 1.5px rgba(214, 240, 190, .5);
}
.badge-line { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; font-size: .9375rem; }
.badge-line::before { content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-on-dark); color: var(--ink); font-size: .875rem; flex: none; }
.story-photo { position: relative; z-index: 1; border-radius: var(--r-lg); overflow: hidden; }
.story-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .story-grid { grid-template-columns: minmax(0, 1fr); } .story-year { bottom: auto; top: 30%; } }

/* ================= INVESTMENTS + CONTACTS (one light sheet) ================= */
.invest { background: var(--paper); }
.invest-row { display: flex; align-items: center; justify-content: space-between; gap: 20px 48px; padding-block: 28px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.invest-text { max-width: 720px; display: grid; gap: 4px; }
.invest-title { font-size: var(--step-1); }
.invest p { color: var(--muted); font-size: .9375rem; }
.eu-logos { width: 280px; max-width: 100%; }
.eu-logos img { width: 100%; height: auto; }
.contacts { background: var(--paper); padding-top: clamp(48px, 4vw + 24px, 88px) !important; }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.person {
	position: relative; display: grid; gap: 6px; align-content: start; padding: 28px 24px 26px; border-radius: var(--r-lg);
	background: var(--sand); transition: background .4s var(--ease), transform .4s var(--ease);
}
.person:hover { background: var(--sand-deep); transform: translateY(-3px); }
.person .mono {
	display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px !important; border-radius: 50%;
	background: var(--pc, var(--accent)); color: #fff; font: 600 1.375rem var(--font-display);
	transition: transform .7s var(--ease), border-radius .5s var(--ease);
}
.person:nth-child(4n+2) .mono { --pc: #1E4A2A; }
.person:nth-child(4n+3) .mono { --pc: #B4875A; }
.person:nth-child(4n+4) .mono { --pc: #4C6A5A; }
.person:hover .mono { transform: rotate(-12deg) scale(1.06); border-radius: 38%; }
.person .role { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.person h3 { font-size: var(--step-1); }
.person .note { color: var(--muted); font-size: .9375rem; }
.person .person-links { margin-top: 8px !important; line-height: 1.8; font-variant-numeric: tabular-nums; }
.person a { color: var(--head); text-decoration: none; }
.person a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .people { grid-template-columns: minmax(0, 1fr); } }

/* contacts on the front page: four dark panels, the hovered / focused one opens (home.js sets .is-open). Drawings are decorative SVG. */
.contact-stage > *, .contact-panel > *, .contact-body > *, .contact-actions > * { margin-block: 0; }
.contact-stage {
	--ic-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
	--ic-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
	display: flex; gap: 10px; height: clamp(440px, 34vw, 500px);
}
.contact-panel {
	position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate; color: #fff; border-radius: var(--r-lg);
	background: radial-gradient(120% 90% at 100% 0%, #1B4423 0%, rgba(27, 68, 35, 0) 60%), linear-gradient(165deg, #143319 0%, #0B1F11 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: flex-grow .8s var(--ease), box-shadow .5s;
}
.contact-panel.is-open { flex-grow: 2.7; box-shadow: inset 0 0 0 1px rgba(143, 209, 79, .35); }
/* pointer-following light */
.contact-panel::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
	background: radial-gradient(380px circle at var(--sx, 70%) var(--sy, 30%), rgba(143, 209, 79, .2), transparent 62%);
}
.contact-panel.is-open::before { opacity: 1; }
/* big outlined index */
.contact-idx {
	position: absolute; top: 18px; left: 26px; font: 600 clamp(3rem, 4.4vw, 4.6rem)/1 var(--font-display); letter-spacing: -.04em;
	color: transparent; -webkit-text-stroke: 1px rgba(243, 246, 241, .26); transition: -webkit-text-stroke-color .5s, translate .8s var(--ease);
}
.contact-panel.is-open .contact-idx { -webkit-text-stroke-color: var(--accent-on-dark); translate: 8px 0; }
/* line drawing */
.contact-art {
	position: absolute; top: 3%; right: 3%; width: 56%; max-width: 330px; height: auto; z-index: -1; color: var(--accent-on-dark); opacity: .2;
	transform: translateX(34%) scale(.92); transform-origin: 70% 40%; transition: opacity .7s, transform 1s var(--ease);
}
.contact-art .d { stroke-dasharray: 1; stroke-dashoffset: 0; }
.contact-art .dot { stroke-dasharray: 1.5 5; opacity: .7; }
.contact-panel.is-open .contact-art { opacity: .9; transform: none; }
.contact-panel.is-open .contact-art .d { animation: am-draw 1.5s var(--ease) both; }
.contact-panel.is-open .contact-art .d-g .d:nth-child(even) { animation-delay: .15s; }
@keyframes am-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* fixed rows (role 2 lines · name · note · buttons) so names line up across all four panels, with or without a note */
.contact-body { position: absolute; inset: auto 0 0 0; width: max(100%, 420px); padding: 0 24px 26px; display: grid; grid-template-rows: 2.3rem auto 1.7rem auto; row-gap: 6px; }
.contact-body .role { grid-row: 1; align-self: end; font-size: .75rem; line-height: 1.5; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-on-dark); max-width: 15ch; }
.contact-body h3 { grid-row: 2; color: #fff; font-size: clamp(1.5rem, .9rem + 1.5vw, 2.6rem); line-height: 1.05; letter-spacing: -.035em; }
.contact-body .note { grid-row: 3; align-self: center; color: #B9C6BD; font-size: .875rem; line-height: 1.3; opacity: 0; transition: opacity .4s; white-space: nowrap; }
.contact-actions { grid-row: 4; }
.contact-panel.is-open .contact-body .note { opacity: 1; transition-delay: .2s; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px !important; opacity: 0; translate: 0 14px; pointer-events: none; transition: opacity .35s, translate .6s var(--ease); }
.contact-panel.is-open .contact-actions { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: .18s; }
/* phone and e-mail side by side wherever the panel is wide enough (open panel ≥ 465 px, or stacked panels on tablets); one above the other otherwise */
@media (min-width: 1181px), (min-width: 561px) and (max-width: 1020px) { .contact-actions { flex-direction: row; flex-wrap: wrap; } }
.contact-phone a, .contact-mail a {
	display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px 0 16px; border-radius: 999px; color: #fff; text-decoration: none;
	font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
	backdrop-filter: blur(6px); translate: var(--px, 0) var(--py, 0); transition: background .25s, color .25s, box-shadow .25s, translate .25s var(--ease);
}
.contact-phone a::before, .contact-mail a::before {
	content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
	mask: var(--ic-phone) center / contain no-repeat; -webkit-mask: var(--ic-phone) center / contain no-repeat;
}
.contact-mail a::before { mask-image: var(--ic-mail); -webkit-mask-image: var(--ic-mail); }
.contact-phone a:hover, .contact-mail a:hover { background: var(--accent-on-dark); color: #0B1A10; box-shadow: none; }
.contact-phone a:focus-visible, .contact-mail a:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 3px; }
@media (max-width: 1020px) {
	.contact-stage { flex-direction: column; height: auto; }
	.contact-panel { flex: none; min-height: 280px; }
	.contact-panel.is-open { flex-grow: 0; }
	.contact-panel::before { opacity: 1; }
	.contact-art { top: 10px; right: 16px; width: 46%; max-width: 240px; opacity: .55; transform: none; }
	.contact-idx { font-size: 3rem; top: 16px; left: 22px; }
	.contact-body { position: relative; width: 100%; padding: 110px 22px 24px; grid-template-rows: none; }
	.contact-body > * { grid-row: auto; }
	.contact-actions, .contact-body .note { opacity: 1; translate: 0 0; pointer-events: auto; }
	.contact-body .note { white-space: normal; }
	.contact-body .role { max-width: none; }
}
@media (max-width: 560px) {
	.contact-actions { flex-direction: column; align-items: stretch; }
	.contact-phone a, .contact-mail a { display: flex; }
	.contact-art { width: 56%; opacity: .38; }
}
@media (prefers-reduced-motion: reduce) {
	.contact-panel, .contact-art, .contact-actions, .contact-idx { transition: none; }
	.contact-panel.is-open .contact-art .d { animation: none; }
}

/* ================= MOTION (progressive: scroll-driven where supported, nothing hidden without it) ================= */
.split-word { display: inline-block; }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		/* headings rise word by word */
		.split-line { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding-bottom: .06em; }
		.split-word { animation: am-word linear both; animation-timeline: view(); animation-range: entry calc(5% + var(--i, 0) * 4%) entry calc(45% + var(--i, 0) * 4%); }
		@keyframes am-word { from { transform: translateY(105%); } }
		/* photos open with a mask */
		.service-card .wp-block-image, .story-photo, .product-tile .wp-block-image {
			animation: am-clip linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
		}
		@keyframes am-clip { from { clip-path: inset(18% 8% 18% 8% round var(--r-lg)); } to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
		.service-card--feature .wp-block-image { animation-name: am-zoom; }
		@keyframes am-zoom { from { transform: scale(1.18); } }
		/* cards and blocks rise */
		.service-card, .person, .contact-panel, .laser-copy > *, .story-copy > *, .invest-row {
			animation: am-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
		}
		@keyframes am-rise { from { transform: translateY(32px); } } /* movement only: text keeps full contrast (WCAG) */
		/* the big year slides in while the story passes */
		.story-year { animation: am-year linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
		@keyframes am-year { from { transform: translateX(18%); } to { transform: translateX(-12%); } }
		/* sheets lift slightly as they arrive over the backdrop */
		.home > .laser, .home > .products, .home > .story, .home > .invest {
			animation: am-sheet linear both; animation-timeline: view(); animation-range: entry 0% entry 30%;
		}
		@keyframes am-sheet { from { transform: scale(.965); } }
	}
}

/* magnetic buttons (home.js sets --mx/--my) */
.home .wp-block-button__link { translate: var(--mx, 0) var(--my, 0); transition: translate .35s var(--ease), background-color .2s, color .2s, border-color .2s; }

@media (max-width: 640px) {
	.home { --sheet-x: 6px; }
	.home-backdrop__word { --em: 38vw; }
}
