/* Bensam Ent. — cinematic edition. Black ground, white type, one brand green, a handwritten accent.
   Single-theme by design: the logo lives on black. */

:root {
  --ink: #050505;
  --carbon: #0e100e;
  --smoke: #8b918a;
  --paper: #f2f3ef;
  --green: #55b038;
  --green-glow: rgba(85, 176, 56, 0.4);
  --line: rgba(242, 243, 239, 0.12);

  --display: "Bricolage Grotesque", "Arial Black", Impact, sans-serif;
  --body: Manrope, "Segoe UI", Helvetica, Arial, sans-serif;
  --script: Caveat, "Segoe Script", "Brush Script MT", cursive;

  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 0.92; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(2.8rem, 7vw, 6.4rem); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

/* ---------- atoms ---------- */
.dot { display: inline-block; width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--green); margin: 0 0.6em; vertical-align: middle; flex: none; }
.dot--lg { width: 0.2em; height: 0.2em; margin: 0 0 0 0.08em; vertical-align: baseline; box-shadow: 0 0 28px var(--green-glow); }
.accent { color: var(--green); }
.eyebrow { display: flex; align-items: center; font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--smoke); font-weight: 600; }
.eyebrow .dot { margin: 0 0.9em; }
.script { font-family: var(--script); color: var(--green); font-size: clamp(1.5rem, 2.6vw, 2.3rem); transform: rotate(-4deg); display: inline-block; }
.stroke { font-style: normal; position: relative; display: inline-block; white-space: nowrap; }
.stroke::after {
  content: ""; position: absolute; left: -2%; right: -4%; bottom: -0.06em; height: 0.16em; background: var(--green); z-index: -1;
  clip-path: polygon(0 55%, 8% 20%, 40% 0, 100% 30%, 100% 75%, 60% 100%, 12% 95%, 0 85%);
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.3s;
}
.in-view .stroke::after { transform: scaleX(1); }
.btn {
  display: inline-flex; align-items: center; font-weight: 600; font-size: 0.95rem; padding: 0.95em 1.6em; border-radius: 999px;
  border: 1px solid transparent; transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .dot { margin: 0 0 0 0.7em; }
.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid:hover { background: var(--green); }
.btn--ghost { border-color: rgba(242, 243, 239, 0.25); }
.btn--ghost:hover { border-color: var(--green); }
.section__head { display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }

/* reveal: resting state visible; JS arms it */
.reveal-armed .reveal { opacity: 0; transform: translateY(32px); }
.reveal-armed .reveal.in-view { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.split.in-view .w > span { transform: none; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 900; background: var(--ink); display: grid; place-items: center; align-content: center; gap: 28px; }
.loader__logo { width: min(50vw, 320px); opacity: 0; }
.loader__row { display: flex; align-items: center; gap: 16px; width: min(50vw, 320px); }
.loader__num { font-family: var(--display); font-weight: 800; font-size: 1rem; width: 3ch; font-variant-numeric: tabular-nums; color: var(--smoke); }
.loader__bar { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }

/* ---------- cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 1000; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor::before { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--green); transform: translate(-50%, -50%); }
.cursor i { position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(242, 243, 239, 0.45); transform: translate(-50%, -50%); transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.3s, background 0.3s; }
.cursor.is-hover i { width: 64px; height: 64px; border-color: var(--green); background: rgba(85, 176, 56, 0.1); }
.cursor.is-play i { width: 80px; height: 80px; background: var(--green); border-color: var(--green); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter); transition: transform 0.5s var(--ease), background 0.4s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: rgba(5, 5, 5, 0.72); backdrop-filter: blur(14px); }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 32px; font-weight: 500; font-size: 0.95rem; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero__pin { position: relative; height: 100vh; overflow: hidden; }
.hero__photo { position: absolute; inset: 0; transform-origin: 50% 35%; will-change: transform, opacity; }
.hero__scene, .hero__him { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 25%; }
.hero__logo { position: absolute; left: 50%; top: 9vh; width: min(62vw, 940px); transform: translateX(-50%); filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.65)); will-change: transform, opacity; }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, 0.6) 30%, rgba(5, 5, 5, 0.1) 60%, rgba(5, 5, 5, 0.45) 100%), linear-gradient(to right, rgba(5, 5, 5, 0.82) 0%, rgba(5, 5, 5, 0.35) 40%, transparent 62%); }
.hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 40% at 66% 38%, rgba(85, 176, 56, 0.22), transparent 70%); mix-blend-mode: screen; }
.hero__copy { position: absolute; left: var(--gutter); bottom: 8vh; display: grid; gap: 26px; max-width: 44vw; will-change: transform, opacity; }
.hero__title { font-size: clamp(3.2rem, 7.8vw, 7.8rem); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 9vh; display: grid; justify-items: center; gap: 12px; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--smoke); font-weight: 600; }
.hero__scroll i { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--green); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- statement ---------- */
.statement { min-height: 100vh; display: grid; align-content: center; gap: 30px; padding: 22vh var(--gutter); max-width: calc(58rem + 2 * var(--gutter)); margin-inline: auto; }
.statement__text { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 4.8rem); line-height: 1; letter-spacing: -0.025em; text-wrap: balance; }
.statement__text em, .contact__title em { font-style: normal; color: var(--green); }

/* ---------- work reel ---------- */
.work__pin { height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: 14vh 0 8vh; gap: 4vh; }
.work__head { padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 40px; }
.work__head .eyebrow { grid-column: 1 / -1; }
.work__hint { color: var(--smoke); font-size: 0.9rem; }
.reel { display: flex; gap: 2.4vw; padding-inline: var(--gutter); align-items: center; will-change: transform; }
.reel__card { position: relative; flex: none; width: 58vw; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--carbon); }
.reel__card video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.9); transition: transform 1.2s var(--ease), filter 0.6s; }
.reel__card:hover video, .reel__card.is-playing video { transform: scale(1.04); filter: none; }
.reel__meta { position: absolute; inset: auto 0 0 0; padding: 26px 30px; background: linear-gradient(to top, rgba(5, 5, 5, 0.85), transparent); display: grid; gap: 4px; }
.reel__meta h3 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
.reel__meta p { color: var(--smoke); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.reel__num { position: absolute; top: -52px; left: 30px; font-family: var(--display); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.1em; color: var(--green); }
.reel__progress { margin-inline: var(--gutter); height: 1px; background: var(--line); }
.reel__progress i { display: block; height: 100%; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }

/* ---------- photo field ---------- */
.photos__pin { position: relative; height: 100vh; overflow: hidden; perspective: 1100px; perspective-origin: 50% 45%; }
.photos__titlewrap { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; pointer-events: none; }
.photos__title { font-size: clamp(2.4rem, 9vw, 9rem); text-align: center; white-space: nowrap; max-width: 92vw; }
.field { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.field__item { position: absolute; margin: 0; left: var(--x); top: var(--y); width: var(--w); min-width: 140px; transform: translateZ(calc(var(--z) * 1px)); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); will-change: opacity; }
.field__item img { width: 100%; height: auto; }
.photos__hint { position: absolute; left: var(--gutter); bottom: 6vh; z-index: 2; }

/* ---------- services ---------- */
.services { padding: clamp(80px, 14vh, 160px) var(--gutter); max-width: calc(1360px + 2 * var(--gutter)); margin-inline: auto; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 4rem 1.1fr 1.4fr; gap: 12px 40px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease); }
.row:hover { padding-left: 16px; }
.row__num { font-family: var(--display); font-weight: 800; color: var(--green); font-size: 0.9rem; letter-spacing: 0.1em; padding-top: 0.6em; }
.row h3 { font-size: clamp(2rem, 4.4vw, 3.8rem); transition: color 0.4s; }
.row:hover h3 { color: var(--green); }
.row p { color: var(--smoke); max-width: 36rem; }
.row__tags { grid-column: 3; display: flex; align-items: center; flex-wrap: wrap; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 100px); align-items: center; padding: clamp(60px, 10vh, 140px) var(--gutter); max-width: calc(1360px + 2 * var(--gutter)); margin-inline: auto; }
.about__card { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; background: var(--carbon); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; }
.about__him { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: translateZ(20px) scale(1.04); transition: transform 1.2s var(--ease); }
.about__card:hover .about__him { transform: translateZ(20px) scale(1.0); }
.about__card-glow { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.1) 45%, transparent 70%), radial-gradient(60% 45% at 70% 20%, rgba(85, 176, 56, 0.3), transparent 70%); }
.about__script { position: absolute; left: 24px; bottom: 22px; transform: rotate(-6deg) translateZ(60px); }
.about__copy { display: grid; gap: 22px; }
.about__copy > p:not(.eyebrow) { color: var(--smoke); max-width: 36rem; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; font-size: 0.95rem; }
.steps li::before { counter-increment: step; content: counter(step); grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--ink); background: var(--green); }
.steps b { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.steps span { color: var(--smoke); }

/* ---------- contact ---------- */
.contact { min-height: 90vh; display: grid; align-content: center; gap: 36px; padding: 16vh var(--gutter) 12vh; max-width: calc(1360px + 2 * var(--gutter)); margin-inline: auto; }
.contact__title { font-size: clamp(3rem, 9.6vw, 9rem); max-width: 11ch; }
.contact__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; border-top: 1px solid var(--line); padding-top: 32px; }
.contact__mail { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 3vw, 2.2rem); position: relative; }
.contact__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--green); transform: scaleX(0.35); transform-origin: left; transition: transform 0.5s var(--ease); }
.contact__mail:hover::after { transform: scaleX(1); }
.contact__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 600; }
.contact__social a { display: inline-flex; align-items: center; gap: 8px; }
.contact__social a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--smoke); transition: background 0.3s, transform 0.4s var(--ease); }
.contact__social a:hover::before { background: var(--green); transform: scale(1.6); }

/* ---------- footer: one quiet line ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding: 30px var(--gutter) 36px; border-top: 1px solid var(--line); color: var(--smoke); font-size: 0.82rem; }
.foot a { color: var(--paper); font-weight: 600; }
.credit { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.credit__label { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.credit__name { font-weight: 600; font-size: 0.86rem; color: var(--paper); position: relative; padding-bottom: 2px; }
.credit__name em { font-style: normal; color: var(--green); }
.credit__name::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.credit:hover .credit__name::after { transform: scaleX(1); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .about { grid-template-columns: 1fr; }
  .about__card { max-width: 520px; }
  .row { grid-template-columns: 3rem 1fr; }
  .row p, .row__tags { grid-column: 2; }
  .hero__copy { max-width: 60vw; }
}
.only-coarse { display: none; }
@media (hover: none), (pointer: coarse) { .only-fine { display: none; } .only-coarse { display: inline; } }
@media (max-width: 820px) {
  .work__pin { height: auto; display: grid; gap: 28px; padding: 12vh 0 10vh; }
  .work__head { grid-template-columns: 1fr; }
  .reel { flex-direction: column; align-items: stretch; gap: 18px; padding-inline: var(--gutter); }
  .reel__card { width: 100%; }
  .reel__num { position: static; margin-bottom: 4px; }
  .reel__meta { padding: 20px 22px; }
  .reel__progress { display: none; }
}
@media (max-width: 720px) {
  .field__item { width: calc(var(--w) * 2); }
  .photos__titlewrap { align-content: start; padding-top: 18vh; z-index: 2; }
  .photos__title { font-size: clamp(2.2rem, 12vw, 4rem); white-space: normal; text-wrap: balance; line-height: 0.95; padding-inline: var(--gutter); text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8); }
  .nav__links, .nav__cta { display: none; }
  .hero__logo { width: 120vw; top: 14vh; }
  .hero__scene, .hero__him { object-position: 62% 30%; }
  .hero__copy { max-width: 90vw; bottom: 6vh; }
  .hero__scroll { display: none; }
  .field__item { min-width: 110px; }
  .steps { grid-template-columns: 1fr; }
  .photos__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .marquee__track { animation: none; }
  .hero__title .line > span, .split .w > span { transform: none; }
  .loader { display: none; }
}
