/* Light version of niellfx.uk: same type and motion, black on white that eases to a warm white
   section by section (script.js sets the page colour from each section's data-tone). */
:root {
  --white: #ffffff;
  --warm: #f1efe9;
  --surface: #ffffff;
  --text: #141317;
  /* solid colours only: no see-through text */
  --body: #3a383f;
  --muted: #5a5760;
  --line: rgba(20, 19, 23, .09);
  --radius: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --page: 1040px;
  --shadow: 0 30px 70px -28px rgba(20, 19, 23, .28), 0 10px 24px -12px rgba(20, 19, 23, .14);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { background: var(--white); scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font: 500 15px/1.7 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; transition: background-color 1.4s var(--ease); }
img, video { display: block; width: 100%; }
a { color: inherit; }
::selection { background: var(--text); color: #fff; }

h1, h2, .brand { font-weight: 800; letter-spacing: -.02em; }
h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; }
em { font-style: normal; color: inherit; }  /* headline key words: no highlight box (Niell, 29 Oct) */

/* top bar */
.topbar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px max(24px, calc((100vw - var(--page)) / 2)); transition: background .4s, padding .4s, box-shadow .4s; }
.topbar.is-scrolled { padding-block: 12px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { font-size: 20px; text-decoration: none; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { padding: 8px 14px; border-radius: 999px; color: var(--body); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .2s; }
.topnav a:hover { color: var(--text); }
.topnav .topnav-cta { margin-left: 8px; color: #fff; background: var(--text); }
.topnav .topnav-cta:hover { color: #fff; background: #3a383f; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .25s, color .25s, transform .35s var(--ease); }
.btn-primary { color: #fff; background: var(--text); }
.btn-primary:hover { background: #3a383f; }
.btn-ghost { border: 1.5px solid var(--text); color: var(--text); background: #fff; }
.btn-ghost:hover { background: var(--text); color: #fff; }

/* hero: the headline, the introduction video and the button all on the first screen */
.hero { display: flex; flex-direction: column; align-items: center; padding: clamp(92px, 12vh, 120px) 24px 56px; text-align: center; }
.eyebrow { margin: 0; color: var(--text); font-size: 15px; font-weight: 600; }
.eyebrow strong { font-weight: 800; }
.hero-title { max-width: 1040px; margin: 10px 0 26px; font-size: clamp(2.5rem, 6.2vw, 5rem); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.hero-title .ch { display: inline-block; transform: translateY(40%); opacity: 0; animation: rise 1.2s var(--ease) forwards; animation-delay: calc(.1s + var(--i) * .07s); }
@keyframes rise { to { transform: none; opacity: 1; } }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.mock-video { display: grid; place-items: center; width: min(100%, max(520px, min(860px, calc((100svh - 410px) * 16 / 9)))); aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; color: #fff; font-size: clamp(1.4rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; box-shadow: var(--shadow); }

/* marquee */
.marquee { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: scroll 38s linear infinite; color: var(--text); font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.marquee-track > * { flex: none; margin-right: 40px; }
.marquee-track i { font-style: normal; font-size: .7em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* layout */
.page { width: min(calc(100% - 48px), var(--page)); margin: 0 auto; }
section { scroll-margin-top: 80px; }
.section-head { margin-bottom: 32px; }

/* 3D tilt with a soft glare that follows the mouse */
.tilt { position: relative; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .7s var(--ease); }
.tilt.is-hover { transition: transform .15s linear; }
.tilt::after { position: absolute; inset: 0; z-index: 4; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.28), transparent 45%); opacity: 0; transition: opacity .4s; content: ""; pointer-events: none; }
.tilt.is-hover::after { opacity: 1; }


/* edits: bluue.eu's layout, big rounded tiles four across and wider than the rest of the page */
.work { --work-width: min(calc(100vw - 52px), 1400px); width: var(--work-width); margin-inline: calc((100% - var(--work-width)) / 2); padding: 120px 0 30px; }
.work .section-head { margin-bottom: 64px; text-align: center; }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px clamp(24px, 4vw, 62px); }
.work-card { position: relative; overflow: hidden; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: clamp(28px, 3.4vw, 48px); background: #000; color: #fff; cursor: pointer; box-shadow: 0 26px 34px -14px rgba(20,19,23,.5); font: inherit; }
.work-card:nth-child(-n+4) { aspect-ratio: 1; }
.work-card video { height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; transition: transform .9s var(--ease); }
.work-card:hover video, .work-card:focus-visible video { transform: scale(1.04); }
.work-card.trim video { transform: scale(1.06); } /* this edit has thin black edges baked in */

/* about */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; padding: 120px 0 40px; }
.about-photo { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.about-story { margin-top: 22px; color: var(--body); font-size: 18px; font-weight: 500; line-height: 1.6; }
.about-story p { margin: 0 0 14px; }
.about-story p:last-child { margin-bottom: 0; }
/* reviews, laid out like Airbnb's: who wrote it, the stars, then their words */
.reviews { padding: 110px 0 40px; }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.review-card { padding: 32px; border-radius: 24px; background: #fff; box-shadow: 0 18px 40px -26px rgba(20,19,23,.35); }
.review-by { display: flex; align-items: center; gap: 14px; }
.review-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.review-id { display: grid; gap: 2px; min-width: 0; }
.review-name { color: var(--text); font-size: 17px; font-weight: 700; text-decoration: none; }
.review-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.review-role { color: var(--body); font-size: 14px; font-weight: 500; }
.review-stars { margin: 18px 0 8px; color: var(--text); font-size: 15px; letter-spacing: .08em; line-height: 1; }
.review-quote { margin: 0; color: var(--text); font-size: 17px; font-weight: 500; line-height: 1.5; }

/* footer / contact: one row per way to reach Niell */
.footer { width: min(calc(100% - 48px), var(--page)); margin: 0 auto; padding: 130px 0 40px; text-align: center; }
.contact-title { margin-bottom: 32px; }
.contact-list { width: min(100%, 640px); margin: 0 auto; padding: 0; border-top: 1px solid var(--line); list-style: none; text-align: left; }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding: 20px 4px; color: var(--text); font-size: 17px; text-decoration: none; }
.contact-label { font-weight: 800; }
.contact-value { display: inline-flex; align-items: center; gap: 12px; color: var(--body); font-weight: 500; }
.contact-value i { color: var(--text); font-style: normal; font-weight: 700; transition: transform .25s var(--ease); }
.contact-row:hover .contact-value, .contact-row:focus-visible .contact-value { color: var(--text); }
.contact-row:hover i, .contact-row:focus-visible i { transform: translateX(4px); }
.copyright { margin: 32px 0 0; color: var(--muted); font-size: 13px; font-weight: 500; }

/* edit player */
.lightbox { width: min(92vw, 1200px); max-width: none; padding: 0; overflow: visible; border: 0; border-radius: var(--radius); background: #000; }
.lightbox::backdrop { background: rgba(244, 242, 237, .9); backdrop-filter: blur(6px); }
.lightbox video { border-radius: var(--radius); }
.lightbox[open] { animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
/* browsers without showModal(): pin the pop-up in the middle over a pale cover */
.is-fallback[open] { position: fixed; z-index: 100; inset: 0; margin: auto; box-shadow: 0 0 0 100vmax rgba(244, 242, 237, .96); }
.lightbox.is-fallback[open] { height: fit-content; }
.lightbox-close { position: absolute; top: -54px; right: 0; width: 42px; height: 42px; border: 1px solid rgba(20,19,23,.18); border-radius: 50%; color: var(--text); background: #fff; cursor: pointer; font-size: 15px; }
.lightbox-link { position: absolute; left: 16px; bottom: 64px; z-index: 3; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.lightbox-link[hidden] { display: none; }

/* scroll reveal */
.js .reveal { opacity: 0; translate: 0 40px; transition: opacity 1.1s var(--ease), translate 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (max-width: 860px) {
  .topnav a:not(.topnav-cta) { display: none; }
  .about { grid-template-columns: 1fr; gap: 36px; padding-top: 90px; }
  .about-photo { max-width: 320px; }
  .reviews { padding-top: 80px; }
  .review-list { grid-template-columns: 1fr; gap: 16px; }
  .review-card { padding: 26px 22px; }
  .work { padding-top: 90px; }
  .work .section-head { margin-bottom: 40px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .work-card:nth-child(n+3) { aspect-ratio: 4 / 3; }
  .footer { padding-top: 100px; }
}
@media (max-width: 520px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(n+2) { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-title .ch { opacity: 1; transform: none; }
}
