/* ==========================================================================
   K-Max Hardware
   Palette: slate (steel), tape yellow (measuring tape), gypsum, plywood tan,
   cypress green, emulsion blue, galvanised grey.
   Type: Archivo (condensed, signage-like) + Source Serif 4 (body).
   ========================================================================== */

:root {
    --slate: #22303a;
    --slate-2: #2d3e4a;
    --steel: #3b4a56;
    --ink: #1b252c;
    --gypsum: #f1f3ef;
    --gypsum-2: #e3e7e0;
    --tape: #f2b705;
    --tape-hi: #ffc925;
    --ply: #c89b5e;
    --cypress: #2f5d4e;
    --emulsion: #3a6ea5;
    --galv: #b9c2c8;

    --font-display: 'Archivo', 'Arial Narrow', Impact, system-ui, sans-serif;
    --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --radius-tile: 10px;
    --radius-ctl: 4px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--gypsum);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.005em;
    text-transform: uppercase;
}

a { color: inherit; }
img, svg { max-width: 100%; }
main, .site-footer { overflow-x: clip; } /* Bootstrap row gutters (g-5) overhang the container on phones */

:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }
.sec--dark :focus-visible, .hero :focus-visible, .page-head :focus-visible, .site-header :focus-visible,
.site-footer :focus-visible, .cat-head :focus-visible { outline-color: var(--tape); }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 2000;
    background: var(--tape); color: var(--slate); padding: .6rem 1rem; font-family: var(--font-display); font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
    --bs-btn-padding-x: 1.4rem;
    --bs-btn-padding-y: .7rem;
    --bs-btn-border-radius: var(--radius-ctl);
    --bs-btn-font-weight: 700;
    --bs-btn-border-width: 2px;
    font-family: var(--font-display);
    font-stretch: 90%;
    letter-spacing: .01em;
}
.btn-lg { --bs-btn-padding-x: 1.8rem; --bs-btn-padding-y: .9rem; --bs-btn-font-size: 1.1rem; }
.btn-sm { --bs-btn-padding-x: 1rem; --bs-btn-padding-y: .5rem; --bs-btn-font-size: .95rem; }

.btn-tape {
    --bs-btn-color: var(--slate); --bs-btn-bg: var(--tape); --bs-btn-border-color: var(--tape);
    --bs-btn-hover-color: var(--slate); --bs-btn-hover-bg: var(--tape-hi); --bs-btn-hover-border-color: var(--tape-hi);
    --bs-btn-active-color: var(--slate); --bs-btn-active-bg: var(--tape-hi); --bs-btn-active-border-color: var(--tape-hi);
}
.btn-ghost {
    --bs-btn-color: #fff; --bs-btn-bg: transparent; --bs-btn-border-color: rgba(255, 255, 255, .45);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .1); --bs-btn-hover-border-color: #fff;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, .15); --bs-btn-active-border-color: #fff;
}
.btn-slate {
    --bs-btn-color: #fff; --bs-btn-bg: var(--slate); --bs-btn-border-color: var(--slate);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--slate-2); --bs-btn-hover-border-color: var(--slate-2);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--slate-2); --bs-btn-active-border-color: var(--slate-2);
}
.btn-outline-slate {
    --bs-btn-color: var(--slate); --bs-btn-bg: transparent; --bs-btn-border-color: var(--slate);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--slate); --bs-btn-hover-border-color: var(--slate);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--slate); --bs-btn-active-border-color: var(--slate);
}

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: var(--slate);
    transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 26px -18px rgba(0, 0, 0, .7); }
.site-header .navbar { padding: .55rem 0; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark {
    position: relative; display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 3px;
    background: var(--tape); color: var(--slate);
    font: 900 1.55rem/1 var(--font-display); font-stretch: 75%;
    padding-bottom: 6px;
}
.brand-mark::after {
    content: ""; position: absolute; left: 6px; right: 6px; bottom: 5px; height: 6px;
    background:
        repeating-linear-gradient(90deg, var(--slate) 0 1.5px, transparent 1.5px 12px) bottom/100% 100% no-repeat,
        repeating-linear-gradient(90deg, var(--slate) 0 1px, transparent 1px 4px) bottom/100% 50% no-repeat;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font: 900 1.6rem/1 var(--font-display); font-stretch: 70%; letter-spacing: .03em; }
.brand-sub { font: 500 .8rem/1.2 var(--font-display); color: rgba(255, 255, 255, .65); letter-spacing: .08em; }

.navbar .nav-link {
    position: relative;
    color: rgba(255, 255, 255, .86);
    font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
    padding: .65rem .9rem;
}
.navbar .nav-link::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .3rem; height: 3px;
    background: var(--tape); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after,
.has-menu:focus-within > .nav-link::after { transform: scaleX(1); }

/* Products menu: opens on hover / keyboard focus on desktop; always open in the mobile menu */
.menu-panel { display: grid; gap: .15rem; padding: .25rem 0 .75rem .9rem; }
.menu-panel .menu-link {
    --tile-bg: var(--slate); --tile-fg: #fff; --tile-accent: var(--tape);
    display: flex; align-items: center; gap: .75rem;
    padding: .5rem .6rem; border-radius: 6px;
    color: rgba(255, 255, 255, .88); text-decoration: none;
    font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
}
.menu-link .ico { width: 32px; height: 32px; flex: none; stroke-width: 3; }
.menu-panel .menu-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.menu-cut {
    display: flex; flex-direction: column; margin-top: .35rem; padding: .7rem .9rem; border-radius: 6px;
    background: var(--tape); color: var(--slate); text-decoration: none; line-height: 1.25;
    font-family: var(--font-display);
}
.menu-cut strong { font-weight: 800; font-size: 1.05rem; }
.menu-cut span { font-size: .9rem; font-weight: 500; }
.menu-cut:hover { background: var(--tape-hi); color: var(--slate); }

@media (min-width: 992px) {
    .has-menu { position: relative; }
    .menu-panel {
        position: absolute; top: 100%; left: 50%; width: min(540px, 92vw);
        grid-template-columns: 1fr 1fr; gap: .2rem; padding: .9rem;
        background: #fff; border-radius: 10px; box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .55);
        opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
        transition: opacity .2s, transform .28s var(--ease), visibility 0s .28s;
    }
    .has-menu:hover .menu-panel, .has-menu:focus-within .menu-panel {
        opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
    }
    .menu-panel .menu-link { --tile-bg: #fff; --tile-fg: var(--ink); --tile-accent: var(--slate); color: var(--ink); }
    .menu-panel .menu-link:hover { color: var(--ink); background: var(--gypsum); }
    .menu-cut { grid-column: 1 / -1; }
}

/* ---------- Section rhythm ---------- */
.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec--light { background: var(--gypsum); }
.sec--white { background: #fff; }
.sec--dark { background: var(--slate); color: #fff; }
.sec.pb-0 { padding-bottom: 0; }

.section-title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin: 0 0 1.5rem; }
.sub-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .75rem; }
.lead-copy { font-size: 1.2rem; max-width: 60ch; }

/* ---------- Hero (home + services) ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(2.75rem, 6vw, 5.5rem) 0 clamp(3.25rem, 7vw, 6.25rem);
    background-color: var(--slate); color: #fff;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 48px 48px;
}
.hero-title { font-size: clamp(2.4rem, 4.5vw, 3.85rem); font-stretch: 62%; word-spacing: .08em; line-height: .95; margin: 0 0 1.5rem; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span {
    display: block; transform: translateY(110%);
    animation: rise 1s var(--ease) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: .1s; }
.hero-title .line:nth-child(2) > span { animation-delay: .28s; }
.hero-title .line:nth-child(3) > span { animation-delay: .46s; }
@keyframes rise { to { transform: none; } }

.hero-lead { max-width: 36rem; margin-bottom: 2rem; font-size: 1.18rem; color: rgba(255, 255, 255, .84); }

/* ---------- The cutting animation (12s loop) ---------- */
.cutboard { --cycle: 12s; margin: 0; }
.cutboard svg { display: block; width: 100%; height: auto; overflow: visible; }

.cutboard .board { fill: #c99f66; }
.cutboard .fibre { fill: #000; pointer-events: none; }
.cutboard .sheen { opacity: 0; animation: sheen var(--cycle) infinite; }
.cutboard .ticks-minor { stroke: rgba(255, 255, 255, .35); stroke-width: 8; stroke-dasharray: 1 9; fill: none; }
.cutboard .ticks-major { stroke: rgba(255, 255, 255, .55); stroke-width: 15; stroke-dasharray: 1.6 48.4; fill: none; }

.cutboard .panel { animation-duration: var(--cycle); animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.3, .7, .2, 1); }
.cutboard .panel-a { animation-name: sep-a; }
.cutboard .panel-b { animation-name: sep-b; }
.cutboard .panel-c { animation-name: sep-c; }

.cutboard .band {
    fill: none; stroke: var(--tape); stroke-width: 7; stroke-linejoin: miter;
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation-duration: var(--cycle); animation-iteration-count: infinite; animation-timing-function: linear;
}
.cutboard .band-a { animation-name: band-a; }
.cutboard .band-b { animation-name: band-b; }
.cutboard .band-c { animation-name: band-c; }

.cutboard .handle {
    fill: var(--slate); opacity: 0;
    transform-box: fill-box; transform-origin: center;
    animation-duration: var(--cycle); animation-iteration-count: infinite;
}
.cutboard .handle-a { animation-name: handle-a; }
.cutboard .handle-b { animation-name: handle-b; }
.cutboard .handle-c { animation-name: handle-c; }

.cutboard .cutline {
    fill: none; stroke: var(--slate); stroke-width: 3.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
    animation-duration: var(--cycle); animation-iteration-count: infinite; animation-timing-function: linear;
}
.cutboard .cut-1 { animation-name: cut-1; }
.cutboard .cut-2 { animation-name: cut-2; }

.cutboard .blade { opacity: 0; transform: translate(280px, 44px); animation: blade-travel var(--cycle) infinite; }
.cutboard .blade-spin { transform-box: fill-box; transform-origin: center; animation: spin .5s linear infinite; }
.cutboard .blade-teeth { fill: none; stroke: var(--slate); stroke-width: 5; stroke-dasharray: 5 4.2; }
.cutboard .blade-disc { fill: #e9eef1; stroke: var(--slate); stroke-width: 2; }
.cutboard .blade-hub { fill: var(--tape); stroke: var(--slate); stroke-width: 2; }

.cut-caption {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem;
    margin-top: 1.5rem;
    font: 800 clamp(1.5rem, 3vw, 2.2rem)/1 var(--font-display); font-stretch: 70%; text-transform: uppercase;
}
.cap {
    padding-bottom: .3rem; opacity: .34;
    background: linear-gradient(var(--tape), var(--tape)) left bottom / 0% 4px no-repeat;
    animation-duration: var(--cycle); animation-iteration-count: infinite;
}
.cap-cut { animation-name: cap-cut; }
.cap-edge { animation-name: cap-edge; }
.cap-create { animation-name: cap-create; }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes blade-travel {
    0%, 6%     { opacity: 0; transform: translate(280px, 44px); }
    7%         { opacity: 1; transform: translate(280px, 44px); animation-timing-function: linear; }
    15%        { opacity: 1; transform: translate(280px, 376px); }
    15.6%      { opacity: 0; transform: translate(280px, 376px); }
    16.6%      { opacity: 0; transform: translate(280px, 200px); }
    17%        { opacity: 1; transform: translate(280px, 200px); animation-timing-function: linear; }
    24%        { opacity: 1; transform: translate(508px, 200px); }
    25%, 100%  { opacity: 0; transform: translate(508px, 200px); }
}
@keyframes cut-1 {
    0%, 6.9%   { opacity: 0; stroke-dashoffset: 1; }
    7%         { opacity: 1; stroke-dashoffset: 1; }
    15%        { opacity: 1; stroke-dashoffset: 0; }
    28%        { opacity: 1; stroke-dashoffset: 0; }
    31%, 100%  { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes cut-2 {
    0%, 16.9%  { opacity: 0; stroke-dashoffset: 1; }
    17%        { opacity: 1; stroke-dashoffset: 1; }
    24%        { opacity: 1; stroke-dashoffset: 0; }
    28%        { opacity: 1; stroke-dashoffset: 0; }
    31%, 100%  { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes sep-a { 0%, 26% { transform: none; } 32%, 93% { transform: translate(-11px, 0); } 100% { transform: none; } }
@keyframes sep-b { 0%, 26% { transform: none; } 32%, 93% { transform: translate(11px, -9px); } 100% { transform: none; } }
@keyframes sep-c { 0%, 26% { transform: none; } 32%, 93% { transform: translate(11px, 9px); } 100% { transform: none; } }

@keyframes band-a { 0%, 33% { stroke-dashoffset: 1; } 41%, 92% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 1; } }
@keyframes band-b { 0%, 41% { stroke-dashoffset: 1; } 47%, 92% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 1; } }
@keyframes band-c { 0%, 47% { stroke-dashoffset: 1; } 53%, 92% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 1; } }

@keyframes handle-a { 0%, 58% { opacity: 0; transform: scale(.2); } 62% { opacity: 1; transform: scale(1.18); } 64%, 92% { opacity: 1; transform: scale(1); } 97%, 100% { opacity: 0; transform: scale(.2); } }
@keyframes handle-b { 0%, 63% { opacity: 0; transform: scale(.2); } 67% { opacity: 1; transform: scale(1.18); } 69%, 92% { opacity: 1; transform: scale(1); } 97%, 100% { opacity: 0; transform: scale(.2); } }
@keyframes handle-c { 0%, 68% { opacity: 0; transform: scale(.2); } 72% { opacity: 1; transform: scale(1.18); } 74%, 92% { opacity: 1; transform: scale(1); } 97%, 100% { opacity: 0; transform: scale(.2); } }

@keyframes sheen { 0%, 56% { opacity: 0; } 70%, 92% { opacity: .55; } 98%, 100% { opacity: 0; } }

@keyframes cap-cut    { 0%, 4% { opacity: .34; background-size: 0% 4px; } 7%, 29% { opacity: 1; background-size: 100% 4px; } 33%, 100% { opacity: .34; background-size: 100% 4px; } }
@keyframes cap-edge   { 0%, 31% { opacity: .34; background-size: 0% 4px; } 35%, 55% { opacity: 1; background-size: 100% 4px; } 59%, 100% { opacity: .34; background-size: 100% 4px; } }
@keyframes cap-create { 0%, 57% { opacity: .34; background-size: 0% 4px; } 62%, 93% { opacity: 1; background-size: 100% 4px; } 98%, 100% { opacity: .34; background-size: 0% 4px; } }

/* ---------- Tape-measure strip ---------- */
.tape { position: relative; overflow: hidden; background: var(--tape); color: var(--slate); padding: 22px 0 8px; }
.tape::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 15px; opacity: .9;
    background:
        repeating-linear-gradient(90deg, var(--slate) 0 2px, transparent 2px 50px) left top / 100% 15px no-repeat,
        repeating-linear-gradient(90deg, var(--slate) 0 1px, transparent 1px 10px) left top / 100% 8px no-repeat;
}
.tape-track { display: flex; width: max-content; animation: tape-run 50s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-list { display: flex; margin: 0; padding: 0; list-style: none; }
.tape-list li {
    padding: .3rem 2.2rem; white-space: nowrap;
    border-right: 2px solid rgba(34, 48, 58, .35);
    font: 800 1.6rem/1 var(--font-display); font-stretch: 70%; text-transform: uppercase;
}
@keyframes tape-run { to { transform: translateX(-50%); } }

/* ---------- Cutting steps (one reveal on scroll) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3.5rem; }
.steps::before {
    content: ""; position: absolute; top: 46px; left: 12%; right: 12%; height: 3px;
    background: repeating-linear-gradient(90deg, var(--slate) 0 10px, transparent 10px 17px);
    transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .1s;
}
.step { position: relative; z-index: 1; }
.step-ico {
    display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 1.25rem;
    background: #fff; border: 3px solid var(--slate); border-radius: 50%;
    transform: scale(.7); opacity: 0;
    transition: transform .6s var(--ease), opacity .4s;
}
.step-ico svg { width: 52px; height: 52px; fill: none; stroke: var(--slate); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.step-ico .edge { stroke: var(--tape); stroke-width: 6; }
.step-ico .dash { stroke-dasharray: 3 4; }
.step h3 { font-size: 2rem; margin-bottom: .4rem; }
.step p { max-width: 30ch; margin: 0; }
.steps.in::before { transform: scaleX(1); }
.steps.in .step-ico { transform: none; opacity: 1; }
.steps.in .step:nth-child(2) .step-ico { transition-delay: .35s; }
.steps.in .step:nth-child(3) .step-ico { transition-delay: .7s; }

/* ---------- Category tiles (colours are paint chips) ---------- */
.tile-doors      { --tile-bg: var(--cypress);  --tile-fg: #fff;         --tile-accent: var(--tape); }
.tile-boards     { --tile-bg: var(--ply);      --tile-fg: var(--ink);   --tile-accent: var(--slate); --tile-link-hover: #fff; }
.tile-gypsum     { --tile-bg: var(--gypsum-2); --tile-fg: var(--ink);   --tile-accent: var(--tape); }
.tile-paints     { --tile-bg: var(--emulsion); --tile-fg: #fff;         --tile-accent: var(--tape); }
.tile-hardware   { --tile-bg: var(--steel);    --tile-fg: #fff;         --tile-accent: var(--tape); }
.tile-chain-link { --tile-bg: var(--galv);     --tile-fg: var(--ink);   --tile-accent: var(--slate); --tile-link-hover: #fff; }

.cat-tile {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
    width: 100%; min-height: 300px; padding: 1.9rem;
    border-radius: var(--radius-tile);
    background: var(--tile-bg); color: var(--tile-fg); text-decoration: none;
}
.cat-tile:hover { color: var(--tile-fg); }
.tile-icon { display: block; }
.tile-icon .ico { width: 124px; height: 124px; stroke-width: 2.2; }
.tile-body { display: flex; flex-direction: column; gap: .5rem; max-width: 46ch; }
.tile-name { font: 800 clamp(1.9rem, 3.2vw, 2.7rem)/1 var(--font-display); font-stretch: 72%; text-transform: uppercase; }
.tile-text { font-size: 1rem; line-height: 1.5; opacity: .92; }
.tile-items { font-size: .95rem; line-height: 1.55; opacity: .8; }
.tile-link {
    align-self: flex-start; margin-top: .6rem; padding-bottom: .15rem;
    font: 700 1rem/1.2 var(--font-display);
    background: linear-gradient(var(--tile-accent), var(--tile-accent)) left bottom / 100% 3px no-repeat;
    transition: background-size .35s var(--ease);
}
.cat-tile:hover .tile-link, .cat-tile:focus-visible .tile-link { background-size: 100% 100%; color: var(--tile-link-hover, var(--slate)); }

.cat-tile.tile-doors { min-height: 360px; }
.cat-tile.tile-doors .tile-body, .cat-tile.tile-chain-link .tile-body { max-width: 54ch; }
.cat-tile.tile-chain-link {
    min-height: 240px;
    background-image:
        linear-gradient(45deg, transparent 47%, rgba(34, 48, 58, .32) 47.5% 52.5%, transparent 53%),
        linear-gradient(-45deg, transparent 47%, rgba(34, 48, 58, .32) 47.5% 52.5%, transparent 53%);
    background-size: 34px 34px;
    background-color: var(--galv);
}
.cat-tile.tile-chain-link:hover { animation: mesh-drift 3.2s linear infinite; }
@keyframes mesh-drift { to { background-position: 34px 0, 34px 0; } }
.cat-tile.tile-chain-link .tile-body {
    padding: 1.1rem 1.3rem; background: var(--galv); border-radius: 6px; align-self: flex-start;
}

.has-photo .tile-photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(27, 37, 44, .82), rgba(27, 37, 44, .25)); }
.has-photo { color: #fff; }

/* ---------- Category icons (drawn in SVG, animated on hover) ---------- */
.ico {
    width: 92px; height: 92px; overflow: visible;
    fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.ico .fill { fill: currentColor; stroke: none; }
.ico .doorway { fill: currentColor; fill-opacity: .3; stroke: none; }
.ico .leaf { transform-origin: 24px 50px; transition: transform .8s cubic-bezier(.3, .7, .2, 1); }
.ico .leaf-face { fill: var(--tile-bg, transparent); }

.ico .slab { transform-box: fill-box; transform-origin: center; transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
.ico .tape-strip { fill: var(--tile-accent, currentColor); stroke: none; transform-origin: 16px 48px; transform: scaleX(.22); transition: transform .8s var(--ease); }
.ico .screw { opacity: .25; transition: opacity .3s; }
.ico .stripe { fill: var(--tile-accent, currentColor); stroke: none; transform-origin: 12px 83px; transform: scaleX(.3); transition: transform .9s var(--ease); }
.ico .roller { transition: transform .9s var(--ease); }
.ico .hammer { transform-origin: 48px 86px; }
.ico .mesh { stroke-width: 2; }

:is(.cat-tile, .menu-link, .cat-head):is(:hover, :focus-visible) .ico-doors .leaf { transform: scaleX(.5) skewY(-6deg); }
:is(.cat-tile, .menu-link, .cat-head, .more-link):is(:hover, :focus-visible) .ico-boards .sl-3 { transform: translate(10px, -14px) rotate(-7deg); }
:is(.cat-tile, .menu-link, .cat-head, .more-link):is(:hover, :focus-visible) .ico-boards .sl-2 { transform: translate(-6px, -5px) rotate(2deg); }
:is(.cat-tile, .menu-link, .cat-head, .more-link):is(:hover, :focus-visible) .ico-gypsum .tape-strip { transform: scaleX(1); }
:is(.cat-tile, .menu-link, .cat-head, .more-link):is(:hover, :focus-visible) .ico-gypsum .screw { opacity: 1; }
:is(.cat-tile, .menu-link, .cat-head, .more-link):is(:hover, :focus-visible) .ico-gypsum .s2 { transition-delay: .1s; }
:is(.cat-tile, .menu-link, .cat-head, .more-link):is(:hover, :focus-visible) .ico-gypsum .s3 { transition-delay: .2s; }
:is(.cat-tile, .menu-link, .cat-head, .more-link):is(:hover, :focus-visible) .ico-gypsum .s4 { transition-delay: .3s; }
:is(.cat-tile, .menu-link, .cat-head, .more-link):is(:hover, :focus-visible) .ico-paints .stripe { transform: scaleX(1); }
:is(.cat-tile, .menu-link, .cat-head, .more-link):is(:hover, :focus-visible) .ico-paints .roller { transform: translateX(14px); }
:is(.cat-tile, .menu-link, .cat-head, .more-link):is(:hover, :focus-visible) .ico-hardware .hammer { animation: knock 1.1s ease-in-out infinite; }
:is(.cat-tile, .menu-link, .cat-head, .more-link):is(:hover, :focus-visible) .ico-chain-link .mesh { animation: sway 1.4s ease-in-out infinite alternate; }

@keyframes knock { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-32deg); } 55% { transform: rotate(5deg); } 70% { transform: rotate(0); } }
@keyframes sway { from { transform: translateX(-3px); } to { transform: translateX(3px); } }

/* ---------- "Whatever you are working on" ---------- */
.build-list { margin: 2rem 0 0; padding: 0; list-style: none; }
.build-list li { border-top: 3px solid var(--slate); }
.build-list li:last-child { border-bottom: 3px solid var(--slate); }
.build-list a, .build-list--static li {
    display: block; padding: .3em .1em; text-decoration: none;
    font: 800 clamp(2.3rem, 7vw, 5.2rem)/1 var(--font-display); font-stretch: 70%; text-transform: uppercase;
}
.build-list a {
    background: linear-gradient(var(--tape), var(--tape)) left bottom / 0% 100% no-repeat;
    transition: background-size .55s var(--ease), padding-left .55s var(--ease);
}
.build-list a:hover, .build-list a:focus-visible { background-size: 100% 100%; padding-left: .3em; }
.build-list--static li { padding-block: .25em; }

/* ---------- Location band ---------- */
.lead-copy + .loc-address { margin-top: 1.5rem; }
.loc-address { font-style: normal; font-size: 1.15rem; }
.foot-muted { color: rgba(255, 255, 255, .7); }
.map-frame { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius-tile); background: var(--slate-2); }
.map-wide { background: var(--slate); }
.map-frame--wide { min-height: 420px; border-radius: 0; }

/* ---------- Inner page headers ---------- */
.page-head {
    position: relative; padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
    background-color: var(--slate); color: #fff;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 48px 48px;
}
.page-head::after, .cat-head::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; opacity: .9;
    background:
        repeating-linear-gradient(90deg, var(--tape) 0 2px, transparent 2px 50px) left bottom / 100% 14px no-repeat,
        repeating-linear-gradient(90deg, var(--tape) 0 1px, transparent 1px 10px) left bottom / 100% 7px no-repeat;
}
.page-title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: .96; max-width: 20ch; margin: 0 0 1.25rem; }
.page-crumb { margin: 0 0 1rem; font: 600 1rem/1.2 var(--font-display); }
.page-crumb a { text-decoration: none; border-bottom: 2px solid currentColor; }

.cat-head {
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
    background: var(--tile-bg); color: var(--tile-fg);
}
.cat-head .hero-lead { color: inherit; opacity: .92; }
.cat-head .page-crumb a { color: inherit; }
.cat-head::after { background:
        repeating-linear-gradient(90deg, var(--slate) 0 2px, transparent 2px 50px) left bottom / 100% 14px no-repeat,
        repeating-linear-gradient(90deg, var(--slate) 0 1px, transparent 1px 10px) left bottom / 100% 7px no-repeat; }
.head-icon .ico { width: 200px; height: 200px; stroke-width: 2.2; }
.cat-head .page-title { max-width: 16ch; }

.hero--service .hero-title { font-size: clamp(2.4rem, 4.8vw, 4.2rem); }

/* ---------- Product item lists ---------- */
.item-group + .item-group { margin-top: 3rem; }
.item-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 3rem;
    margin: 0; padding: 0; list-style: none;
}
.item-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 0; border-bottom: 1px solid rgba(27, 37, 44, .18);
}
.item-name { font: 700 1.2rem/1.2 var(--font-display); font-stretch: 85%; }
.ask {
    flex: none; text-decoration: none; padding-bottom: .1rem;
    font: 600 .95rem/1.2 var(--font-display);
    background: linear-gradient(var(--tape), var(--tape)) left bottom / 100% 3px no-repeat;
    transition: background-size .3s var(--ease);
}
.ask:hover, .ask:focus-visible { background-size: 100% 100%; }

.more-link.more-link {
    --tile-bg: #fff; --tile-fg: var(--ink); --tile-accent: var(--tape);
    display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1rem 1.2rem;
    border: 2px solid var(--slate); border-radius: 8px; text-decoration: none; background: #fff;
    font: 800 1.35rem/1.1 var(--font-display); font-stretch: 78%; text-transform: uppercase;
}
.more-link .ico { width: 44px; height: 44px; flex: none; stroke-width: 3; }
.more-link:hover { background: var(--tape); }
.more-link.more-link:hover { --tile-bg: var(--tape); }

/* ---------- Callout for the cutting service ---------- */
.callout-cut {
    position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
    padding: 2.4rem 2rem 1.9rem; border-radius: var(--radius-tile);
    background: var(--tape); color: var(--slate); overflow: hidden;
}
.callout-cut.ticks::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; opacity: .85;
    background:
        repeating-linear-gradient(90deg, var(--slate) 0 2px, transparent 2px 50px) left top / 100% 14px no-repeat,
        repeating-linear-gradient(90deg, var(--slate) 0 1px, transparent 1px 10px) left top / 100% 7px no-repeat;
}
.callout-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 .35rem; }

/* ---------- About ---------- */
.range-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.range-list li { border-top: 2px solid var(--slate); }
.range-list li:last-child { border-bottom: 2px solid var(--slate); }
.range-list a {
    display: block; padding: .8rem .1rem; text-decoration: none;
    font: 800 1.6rem/1.1 var(--font-display); font-stretch: 75%; text-transform: uppercase;
    background: linear-gradient(var(--tape), var(--tape)) left bottom / 0% 100% no-repeat;
    transition: background-size .45s var(--ease), padding-left .45s var(--ease);
}
.range-list a:hover, .range-list a:focus-visible { background-size: 100% 100%; padding-left: .6rem; }
.range-cut a { background-color: var(--tape); }

.motto { padding-block: clamp(4rem, 10vw, 8rem); }
.motto-line { margin: 0; font: 900 clamp(3rem, 10vw, 7.5rem)/.92 var(--font-display); font-stretch: 62%; text-transform: uppercase; }
.motto-line + .motto-line { color: var(--tape); }

/* ---------- Contact ---------- */
.contact-card { display: grid; gap: .25rem; }
.contact-big {
    display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 0;
    border-bottom: 1px solid rgba(27, 37, 44, .18); text-decoration: none;
    font: 800 1.9rem/1.15 var(--font-display); font-stretch: 78%;
}
.contact-big--mail { font-size: 1.45rem; word-break: break-word; }
.contact-big i { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tape); color: var(--slate); font-size: 1.3rem; }
.contact-big small { display: block; font: 500 .9rem/1.2 var(--font-body); letter-spacing: 0; margin-bottom: .2rem; color: rgba(27, 37, 44, .7); }
a.contact-big:hover span { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 4px; text-underline-offset: 4px; }

.contact-lines { margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: 1.15rem; }
.contact-lines li { padding: .35rem 0; }
.contact-lines i { display: inline-block; width: 1.8rem; color: var(--slate); }

/* ---------- Forms ---------- */
.kform .form-label { font: 700 .98rem/1.3 var(--font-display); margin-bottom: .35rem; }
.kform .opt { font-family: var(--font-body); font-weight: 400; color: rgba(27, 37, 44, .65); }
.kform .form-control, .kform .form-select {
    padding: .75rem .9rem; border: 2px solid #c9d0ca; border-radius: var(--radius-ctl); background-color: #fff; font-family: var(--font-body);
}
.kform .form-control:focus, .kform .form-select:focus { border-color: var(--slate); box-shadow: 0 0 0 .25rem rgba(242, 183, 5, .5); }
.form-note { font-size: .95rem; color: rgba(27, 37, 44, .75); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent-note { padding: 2rem; border-radius: var(--radius-tile); background: var(--gypsum); border-left: 8px solid var(--tape); }
.sent-note h3 { font-size: 1.8rem; margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--tape); }
.foot-slogan { margin: 1rem 0 .5rem; color: #fff; font: 800 1.5rem/1.1 var(--font-display); font-stretch: 75%; text-transform: uppercase; }
.foot-title { margin: 0 0 1rem; color: #fff; font-size: 1.15rem; }
.foot-list { margin: 0; padding: 0; list-style: none; font-style: normal; line-height: 1.9; }
.foot-base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
    margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: .92rem; color: rgba(255, 255, 255, .6);
}

/* ---------- WhatsApp button ---------- */
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 1040;
    display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 1.75rem; text-decoration: none;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .5);
    transition: transform .3s var(--ease);
}
.wa-float:hover { color: #fff; transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .navbar-collapse { padding: .75rem 0 1rem; }
    .navbar .nav-link::after { left: 0; right: auto; width: 2.2rem; }
    .navbar .nav-link { padding-inline: 0; }
    .hero .cutboard { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 767.98px) {
    .steps { grid-template-columns: 1fr; gap: 2rem; }
    .steps::before { display: none; }
    .step { display: grid; grid-template-columns: 92px 1fr; column-gap: 1.25rem; align-items: start; }
    .step-ico { grid-row: 1 / span 2; margin: 0; }
    .step h3 { margin-top: .5rem; }
    .cat-tile { min-height: 260px; padding: 1.5rem; }
    .cat-tile.tile-chain-link .tile-body { align-self: stretch; }
    .item-list li { flex-wrap: wrap; }
    .contact-big { font-size: 1.6rem; }
    .contact-big--mail { font-size: 1.2rem; }
}

/* ---------- Reduced motion: show the finished state, stop everything moving ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-title .line > span { animation: none; transform: none; }
    .tape-track { animation: none; }
    .cutboard *, .cap, .cat-tile.tile-chain-link:hover { animation: none !important; }
    .cutboard .band { stroke-dashoffset: 0; }
    .cutboard .handle { opacity: 1; transform: none; }
    .cutboard .sheen { opacity: .55; }
    .cutboard .cutline, .cutboard .blade { opacity: 0; }
    .cutboard .panel-a { transform: translate(-11px, 0); }
    .cutboard .panel-b { transform: translate(11px, -9px); }
    .cutboard .panel-c { transform: translate(11px, 9px); }
    .cap { opacity: 1; background-size: 100% 4px; }
    .steps::before { transform: scaleX(1); transition: none; }
    .step-ico { transform: none; opacity: 1; transition: none; }
    .ico *, .build-list a, .range-list a, .tile-link, .ask { transition: none !important; animation: none !important; }
}
