/* ==========================================================
   ARKO Creatives — shared styles
   ========================================================== */
[x-cloak] { display: none !important; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body { background: #140807; font-family: Montserrat, system-ui, sans-serif; }
::selection { background: #983029; color: #F7F2E9; }
img { -webkit-user-drag: none; }

/* Film grain overlay */
.grain::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 70; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite; will-change: transform;
}
@media (hover: none), (max-width: 767px) { .grain::after { animation: none; } }
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-5%,4%)} 40%{transform:translate(4%,-6%)} 60%{transform:translate(-3%,5%)} 80%{transform:translate(6%,2%)} }

/* Glowing orbs */
.orb { position:absolute; border-radius:9999px; opacity:.5; pointer-events:none; will-change: transform;
  /* soft edge via mask instead of a blur filter — much cheaper to paint while scrolling */
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%);
  animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(40px,-30px,0) scale(1.15); } }

/* Eyebrow label */
.eyebrow { display:inline-flex; align-items:center; gap:.9rem; font-size:10.5px; letter-spacing:.32em; text-transform:uppercase; font-weight:500; }
.eyebrow::before { content:""; width:2.25rem; height:1px; background: currentColor; opacity:.6; }

/* Reveal on scroll */
.reveal { opacity:0; transform: translateY(32px); transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity:1; transform:none; }

/* Image curtain reveal */
/* The wrapper stays unclipped so IntersectionObserver can see it; the image inside is clipped. */
.img-reveal > img, .img-reveal > video { clip-path: inset(100% 0 0 0); transform: scale(1.2); transition: clip-path 1.4s cubic-bezier(.16,1,.3,1) var(--d, 0s), transform 1.6s cubic-bezier(.16,1,.3,1) var(--d, 0s); }
.img-reveal.is-in > img, .img-reveal.is-in > video { clip-path: inset(0 0 0 0); transform: scale(1); }
.img-reveal { background: rgba(121,102,86,.08); }
.img-reveal:not(.is-in) > span { opacity: 0 !important; }
/* Split-word headings */
.split .w { display:inline-block; overflow:hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display:inline-block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i) * 60ms + var(--d, 0s)); }
.split.is-in .w > span { transform: none; }

/* Marquee */
.marquee { display:flex; width:max-content; animation: marquee 45s linear infinite; }
.marquee-slow { animation-duration: 70s; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Framed image: sharp edges with an offset hairline frame */
.frame { border-radius: 0; outline: 1px solid rgba(194,85,75,.5); outline-offset: 14px; }
@media (min-width: 1024px) { .frame { outline-offset: 18px; } }

/* Outline text */
.text-outline { -webkit-text-stroke: 1px rgba(247,242,233,.4); color: transparent; }
.text-outline-dark { -webkit-text-stroke: 1px rgba(98,27,25,.35); color: transparent; }

/* Underline link animation */
.link-u { background: linear-gradient(currentColor,currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s cubic-bezier(.16,1,.3,1); }
.link-u:hover, .link-u.is-active { background-size: 100% 1px; }

/* Service tiles copy reveal on hover devices */
@media (hover: hover) {
  .tile .tile-copy { max-height:0; opacity:0; transition: max-height .6s ease, opacity .5s ease; }
  .tile:hover .tile-copy, .tile:focus-within .tile-copy { max-height: 10rem; opacity:1; }
}

/* Custom cursor (fine pointers only) */
.cursor-dot, .cursor-ring { position: fixed; top:0; left:0; pointer-events:none; z-index: 90; border-radius: 9999px; transform: translate3d(-100px,-100px,0); }
.cursor-dot { width:6px; height:6px; margin:-3px 0 0 -3px; background:#F7F2E9; mix-blend-mode: difference; }
.cursor-ring { width:38px; height:38px; margin:-19px 0 0 -19px; border:1px solid rgba(247,242,233,.45); display:grid; place-items:center; transition: width .35s cubic-bezier(.16,1,.3,1), height .35s cubic-bezier(.16,1,.3,1), margin .35s cubic-bezier(.16,1,.3,1), background-color .35s, border-color .35s; mix-blend-mode: difference; }
.cursor-ring span { font-size:10px; letter-spacing:.25em; text-transform:uppercase; color:#140807; opacity:0; transition: opacity .25s; font-weight:600; }
.cursor-ring.is-hover { width:56px; height:56px; margin:-28px 0 0 -28px; border-color: rgba(247,242,233,.9); }
.cursor-ring.is-label { width:92px; height:92px; margin:-46px 0 0 -46px; background:#F7F2E9; border-color:#F7F2E9; mix-blend-mode: normal; }
.cursor-ring.is-label span { opacity:1; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display:none; } }

/* Page curtain transition */
.curtain { position: fixed; inset: 0; z-index: 85; background: #F7F2E9; display:grid; place-items:center; transform: translateY(0); transition: transform .9s cubic-bezier(.76,0,.24,1); }
.curtain.is-up { transform: translateY(-100%); }
.curtain.is-down-start { transform: translateY(100%); transition: none; }
.curtain img { width: 9rem; opacity: 1; transition: opacity .4s ease; }
.curtain.is-up img { opacity: 0; }

/* Masonry */
.masonry { column-gap: 1rem; }
.masonry > * { break-inside: avoid; margin-bottom: 1rem; }

/* Hide scrollbar for carousels */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Form fields */
.field { width:100%; border:0; border-bottom:1px solid rgba(247,242,233,.2); background:transparent; padding:.85rem 0; font-size:1rem; color:#F7F2E9; transition: border-color .3s; border-radius:0; }
.field::placeholder { color: rgba(247,242,233,.28); }
.field:focus { outline: none; border-color: #C2554B; box-shadow:none; }
select.field { appearance:none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23A8978A' stroke-width='1.5'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position: right .25rem center; }
select.field option { color:#140807; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .split .w > span { opacity:1; transform:none; }
  .img-reveal > img, .img-reveal > video { clip-path:none; transform:none; }
}

/* Blog article typography */
.prose-arko { color: #796656; font-weight: 300; font-size: 1.125rem; line-height: 1.85; }
.prose-arko > * + * { margin-top: 1.4em; }
.prose-arko > p:first-child { font-size: 1.35rem; line-height: 1.6; color: #621B19; font-weight: 400; }
.prose-arko h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; color: #621B19; }
.prose-arko h3 { margin-top: 1.8em; font-size: 1.25rem; color: #621B19; }
.prose-arko strong { color: #621B19; font-weight: 600; }
.prose-arko ul { padding-left: 0; list-style: none; }
.prose-arko ul li { position: relative; padding-left: 1.6em; margin-top: .6em; }
.prose-arko ul li::before { content: ""; position: absolute; left: .2em; top: .8em; width: .45em; height: .45em; border-radius: 9999px; background: #983029; }
.prose-arko blockquote { margin: 2.2em 0; padding: 1.6em 0 1.6em 1.6em; border-left: 2px solid #983029; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.45; font-weight: 200; font-style: italic; color: #621B19; }

/* All headings bold */
h1, h2, h3, h4 { font-weight: 700; }

/* Magnetic buttons move with the independent `translate` property, so they never fight other transforms */
[data-magnetic] { transition: translate .6s cubic-bezier(.16,1,.3,1), color .4s, background-color .4s, border-color .4s; }

@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Hero scroll-down cue */
.scroll-cue-dot { animation: scrollDot 1.8s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 25% { opacity: 1; } 70% { opacity: 1; transform: translate(-50%, 12px); } 100% { opacity: 0; transform: translate(-50%, 14px); } }
