/* JFL — shared theme (Tailwind handles the rest) */
:root {
  --brand: #dc2626; --ink: #0a0a0a;
  /* brand mark: 3 flat-top hexagons (red fill · grey outline · red outline) */
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 16'%3E%3Cpath d='M11.2 5.5 8.6 10H3.4L.8 5.5 3.4 1h5.2z' fill='%23dc2626'/%3E%3Cpath d='M20.2 10l-2.6 4.5h-5.2L9.8 10l2.6-4.5h5.2z' fill='none' stroke='%23737373' stroke-width='1.4'/%3E%3Cpath d='M29.2 5.5 26.6 10h-5.2l-2.6-4.5L21.4 1h5.2z' fill='none' stroke='%23dc2626' stroke-width='1.4'/%3E%3C/svg%3E");
}
@view-transition { navigation: auto; }               /* native cross-page transition */
::view-transition-old(root) { animation: .35s ease both vt-out; }
::view-transition-new(root) { animation: .45s ease both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

html.lenis { height: auto; } .lenis-smooth { scroll-behavior: auto !important; }
body { font-family: Barlow, sans-serif; background: var(--ink); color: #fff; overflow-x: hidden; }
::selection { background: var(--brand); color: #fff; }
.font-display, .tag, .h1, .h2, .btn { font-family: "Barlow Condensed", sans-serif; }
.tag, .btn { text-transform: uppercase; }
.wrap { max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .wrap { padding-inline: 2rem; } }

/* trademark hexagon is flat-top; .hexp (pointy-top) is only for the product honeycomb */
.hex { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.hexp { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.mark { background: var(--mark) no-repeat left center / contain; }

/* brand hexagon clusters (rendered from [data-hexes]) */
.hx { stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.hx-r { fill: var(--brand); } .hx-b { fill: var(--ink); }
.hx-o { fill: none; stroke: var(--brand); } .hx-k { fill: none; stroke: var(--ink); }
.on-dark .hx-b { fill: #fff; } .on-dark .hx-k { stroke: #ffffff59; }

.btn { display: inline-flex; align-items: center; gap: .75rem; padding: 1rem 1.75rem; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .15em; transition: background .3s, color .3s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.ghost { background: #ffffff1a; backdrop-filter: blur(6px); } .btn.ghost:hover, .btn.dark:hover { background: #fff; color: var(--ink); }
.btn.dark { background: var(--ink); }
.btn.sm { padding: .8rem 1.3rem; font-size: .8rem; }
.tag { display: inline-flex; align-items: center; gap: .75rem; letter-spacing: .3em; color: var(--brand); font-size: .875rem; font-weight: 600; }
.h1 { font-weight: 700; line-height: .95; font-size: clamp(2.6rem, 8vw, 6.5rem); }
.h2 { font-weight: 700; line-height: 1.05; font-size: clamp(2rem, 4.5vw, 3.75rem); }
.reveal { opacity: 0; }

/* lists with hexagon bullets (alternating red / grey) */
.hex-list li { position: relative; padding-left: 1.9rem; }
.hex-list li::before { content: ""; position: absolute; left: 0; top: .4em; width: 14px; height: 12px; background: var(--brand); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.hex-list li:nth-child(even)::before { background: #a3a3a3; }

/* navbar — Apple-like: thin and quiet; after scrolling it floats as its own frosted bar */
.nav-link { opacity: .8; white-space: nowrap; transition: opacity .3s, color .3s; }
.nav-link:hover { opacity: 1; } .nav-link.active { opacity: 1; color: var(--brand); }

/* contact details + enquiry form */
.dt { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #71717a; }
.dd { margin-top: .4rem; font-size: 1.05rem; font-weight: 500; }
.f-field { display: grid; gap: .45rem; }
.f-field span { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #a1a1aa; }
.f-field input, .f-field textarea { width: 100%; padding: .85rem 1rem; background: #ffffff0a; border: 1px solid #ffffff1f; color: #fff; outline: none; transition: border-color .3s, background .3s; resize: vertical; }
.f-field input:focus, .f-field textarea:focus { border-color: var(--brand); background: #ffffff12; }
.f-field input::placeholder, .f-field textarea::placeholder { color: #71717a; }

.step.active { color: #fff; } .step.active b { background: var(--brand); }
.filter.active { background: var(--brand); color: #fff; }

/* honeycomb product grid: 3 on top, 3 offset below */
.honeycomb { --w: min(11rem, calc((100vw - 2.5rem) / 3.55)); --h: calc(var(--w) * 1.1547); --g: 6px; width: max-content; max-width: 100%; margin-inline: auto; filter: drop-shadow(0 28px 28px rgb(0 0 0 / .18)); }
@media (min-width: 480px) { .honeycomb { --g: 8px; } }
@media (min-width: 1024px) { .honeycomb { --w: min(10rem, calc((50vw - 5rem) / 3.7)); } }
.honeycomb .row { display: flex; gap: var(--g); }
.honeycomb .row + .row { margin: calc(var(--h) * -.25 + var(--g) * .6) 0 0 calc(var(--w) / 2 + var(--g) / 2); }
.honeycomb a { position: relative; display: block; width: var(--w); height: var(--h); overflow: hidden; background: linear-gradient(#f4f4f5, #d4d4d8); transition: scale .6s cubic-bezier(.2, .8, .2, 1), filter .6s; }
.honeycomb a img { transition: scale 1.2s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) {
  .honeycomb a:hover { scale: 1.06; z-index: 2; filter: brightness(1.05); }
  .honeycomb a:hover img { scale: 1.12; }
  .honeycomb a:hover b { translate: 0 -6px; letter-spacing: .3em; }
}
.honeycomb a b { transition: translate .5s, letter-spacing .5s; }

/* small screens */
@media (max-width: 639px) {
  .btn { padding: .9rem 1.4rem; letter-spacing: .12em; }
  .tag { letter-spacing: .22em; font-size: .8rem; }
  .honeycomb a b { font-size: .65rem; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* big soft background hexagons (injected into [data-bg-hex] sections) */
.bg-hex { position: absolute; }
.bg-hex.hexp { aspect-ratio: .866; } .bg-hex.hex { aspect-ratio: 1.1547; }
.bg-hex.r { background: #dc26260f; } .bg-hex.g { background: #18181b0b; }
[data-bg-hex="dark"] .bg-hex.r { background: #dc262612; } [data-bg-hex="dark"] .bg-hex.g { background: #ffffff08; }
.bg-hex[data-size="s"].r { background: #dc26261f; } .bg-hex[data-size="s"].g { background: #18181b12; }
[data-bg-hex="dark"] .bg-hex[data-size="s"].g { background: #ffffff0d; }

/* navbar states: default = frosted full-width · .on-hero = see-through · .floating = detached rounded bar */
#nav { transition: padding .5s cubic-bezier(.2, .8, .2, 1); }
#nav .bar { max-width: 100%; background: #ffffffcc; backdrop-filter: saturate(180%) blur(20px); border: 1px solid transparent; border-bottom-color: #0000000f;
  transition: max-width .5s cubic-bezier(.2, .8, .2, 1), border-radius .5s, background-color .4s, border-color .4s, box-shadow .5s, color .4s; }
#nav.floating { padding: .75rem clamp(1rem, 3vw, 2.5rem) 0; }
#nav.floating .bar { max-width: 90rem; border-radius: 1.25rem; border-color: #0000000f; box-shadow: 0 12px 40px -14px #00000040; }
#nav.on-hero .bar { background: transparent; backdrop-filter: none; border-color: transparent; color: #fff; }
#nav.menu-open .bar { background: transparent; backdrop-filter: none; border-color: transparent; box-shadow: none; color: #171717; }
#burger span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: rotate .4s, translate .4s; }
#burger.open span:first-child { rotate: 45deg; translate: 0 3.75px; } #burger.open span:last-child { rotate: -45deg; translate: 0 -3.75px; }
/* logo keeps its own colours; over the dark hero it sits on a small white plate so the black "JFL" stays readable */
#nav .logo { border-radius: .6rem; transition: background-color .4s, padding .4s; }
#nav.on-hero .logo { background: #fff; padding: .2rem .5rem; box-shadow: 0 6px 20px -8px #0006; }
/* phones: keep only the big background hexagons so small ones never sit behind text */
@media (max-width: 767px) { .bg-hex[data-size="s"] { display: none; } }
