:root {
  --ink: #0a0a0a;
  --paper: #ececea;
  --paper-2: #f4f4f2;
  --muted: #6f6f6c;
  --max: 1180px;
  --head: "Chakra Petch", system-ui, sans-serif;
  --body: "Roboto", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.42;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: #fff; }

.sin-container { max-width: var(--max); }
.py-lg-6 { padding-top: 5rem; padding-bottom: 5rem; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  transform: translateY(-160%);
  background: #fff;
  color: #000;
  padding: 8px 12px;
}
.skip-link:focus { transform: none; }

/* ------------------------------------------------------------
   HERO / NAV
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: clamp(320px, 38vw, 530px);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #111;
}
.hero-bg {
  position: absolute;
  inset: -8%;
  z-index: -3;
  background: url('/assets/hero-bg.webp') center 58% / cover no-repeat;
  filter: grayscale(1) contrast(1.08);
  transform: scale(1.06);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(0,0,0,.77);
}
.site-nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px clamp(12px, 2.8vw, 38px);
  color: #f4f4f4;
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: .12em;
}
.nav-mark {
  width: 30px;
  min-width: 30px;
  height: 34px;
  display: grid;
  place-items: center;
}
.nav-mark img { width: 27px; height: auto; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-links, .languages { display: flex; align-items: center; }
.nav-links { gap: clamp(16px, 2.4vw, 32px); }
.languages { gap: 6px; }
.site-nav a {
  color: inherit;
  text-decoration: none;
  font-size: clamp(.7rem, 1vw, .9rem);
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a:focus-visible { text-decoration: underline; text-underline-offset: .32em; }
.languages a { opacity: .45; font-size: .64rem; }
.languages a[aria-current="page"] { opacity: 1; }

.hero-logo-wrap {
  position: relative;
  z-index: 2;
  width: clamp(170px, 21vw, 255px);
  margin-top: 28px;
}
.hero-logo { width: 100%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.28)); }

/* ------------------------------------------------------------
   MOVING BILLBOARD
   ------------------------------------------------------------ */
.ticker {
  height: clamp(44px, 5vw, 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f6f6f4;
  color: #070707;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.ticker-track {
  width: max-content;
  display: flex;
  white-space: nowrap;
  font-family: var(--head);
  font-size: clamp(1.3rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: .035em;
  animation: ticker-right 21s linear infinite;
  will-change: transform;
}
.ticker-track span { padding-right: .38em; }
@keyframes ticker-right {
  from { transform: translateX(-25%); }
  to   { transform: translateX(0); }
}

/* ------------------------------------------------------------
   TYPOGRAPHY / SECTIONS
   ------------------------------------------------------------ */
h1, h2, h3 {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  line-height: .94;
  letter-spacing: .055em;
}
.intro-section { min-height: 370px; display: flex; align-items: center; }
.intro-copy { max-width: 510px; }
.intro-copy h1 { font-size: clamp(2rem, 4.8vw, 4.35rem); }
.intro-copy p { max-width: 485px; margin: 18px 0 0; font-size: clamp(.95rem, 1.25vw, 1.05rem); }

/* Single clean frame. The old frame baked into portrait.webp is cropped away. */
.portrait-card {
  width: min(220px, 100%);
  background: #fff;
  border: 4px solid #fff;
  border-radius: 2px;
  box-shadow: 0 5px 11px rgba(0,0,0,.22);
  transform: rotate(-.25deg);
}
.portrait-crop {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ddd;
}
.portrait-crop img {
  position: absolute;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  max-width: none;
  left: -14px;
  top: -14px;
  object-fit: cover;
  filter: none; /* intentionally the only colour image on the page */
}

/* ------------------------------------------------------------
   ABOUT / RAVEN
   Raven is not inside any Bootstrap container. It is anchored to
   the right edge of the PAGE and behaves like background artwork.
   ------------------------------------------------------------ */
.about-section {
  min-height: 690px;
  padding: 72px 0 92px;
  overflow: visible;
}
.about-content { z-index: 3; }
.about-copy { position: relative; z-index: 3; max-width: 610px; }
.about-copy h2,
.blackbook-heading h2,
.instagram-head h2,
.contact-head h2 { font-size: clamp(2rem, 4.6vw, 4rem); }
.about-copy p { max-width: 550px; margin: 15px 0; }
.raven-background {
  position: absolute;
  z-index: 1;
  top: -50px;
  right: 0;
  width: min(52vw, 760px);
  height: calc(100% + 170px);
  background: url('/assets/raven.png') right center / contain no-repeat;
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ------------------------------------------------------------
   BLACKBOOK
   The section only reserves layout space. The artwork itself lives
   in #blackbook-free-layer so it can be dragged across the PAGE.
   ------------------------------------------------------------ */
.blackbook-section { position: relative; padding: 32px 0 72px; }
.blackbook-heading { position: relative; z-index: 5; }
.blackbook-heading a { text-decoration: none; font-size: .78rem; }
.blackbook-heading a:hover { text-decoration: underline; }
.drag-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .075em;
}
.blackbook-stage {
  position: relative;
  width: 100%;
  min-height: 2250px;
  margin-top: 12px;
  /* no frame, no clipping, intentionally */
  overflow: visible;
}
.blackbook-free-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 18;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.blackbook-item {
  position: absolute;
  width: var(--w, 420px);
  aspect-ratio: 1 / 1;
  left: 0;
  top: 0;
  pointer-events: auto;
  cursor: grab;
  background-image: var(--bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  filter: grayscale(1) contrast(1.09);
  mix-blend-mode: multiply;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) rotate(var(--rotation, 0deg));
  transform-origin: center;
  transition: filter .18s ease, scale .18s ease;
  will-change: transform;
}
.blackbook-item:hover { filter: grayscale(1) contrast(1.17); scale: 1.018; }
.blackbook-item.is-dragging {
  z-index: 9999 !important;
  cursor: grabbing;
  scale: 1.035;
  filter: grayscale(1) contrast(1.18) drop-shadow(0 10px 12px rgba(0,0,0,.14));
}

/* ------------------------------------------------------------
   INSTAGRAM
   ------------------------------------------------------------ */
.instagram-section { position: relative; z-index: 4; }
.instagram-head a { font-family: var(--head); text-decoration: none; }
.instagram-card-wrap { flex: 0 0 auto; width: 33.333333%; }
.instagram-card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #ddd center / cover no-repeat;
  filter: grayscale(1);
}
.instagram-card::after {
  content: "↗";
  position: absolute;
  right: 10px;
  bottom: 7px;
  color: #fff;
  font-family: var(--head);
  font-size: 1.35rem;
  text-shadow: 0 1px 5px #000;
}

/* ------------------------------------------------------------
   CONTACT
   ------------------------------------------------------------ */
.contact-section { position: relative; z-index: 4; }
.contact-head p { margin-top: 10px; font-size: .84rem; }
.contact-form { width: min(760px, 100%); }
.contact-form .form-control {
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #111;
  padding: 12px 13px;
  font-size: .88rem;
  box-shadow: none;
}
.contact-form .form-control:focus { outline: 1px solid #111; }
.contact-form textarea { min-height: 86px; resize: vertical; }
.sin-button {
  border-radius: 0;
  padding: 9px 17px;
  background: #080808;
  border-color: #080808;
  font-family: var(--head);
  font-weight: 700;
  font-size: .84rem;
}
.form-status { min-height: 1.2em; margin: 8px 0 0; color: var(--muted); font-size: .78rem; text-align: right; }

.footer {
  position: relative;
  z-index: 4;
  padding: 66px 22px 34px;
  background: #090909;
  color: #fff;
  text-align: center;
}
.footer-logo { width: 145px; margin: 0 auto 24px; }
.footer p { font-family: var(--head); font-weight: 600; letter-spacing: .07em; }
.footer-meta { margin-top: 35px; opacity: .5; font-size: .7rem; }

/* ------------------------------------------------------------
   MOTION / COPY DETERRENCE
   ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(17px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.protected-art { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .about-section { min-height: 720px; }
  .raven-background { width: 58vw; right: -5vw; opacity: .96; }
  .blackbook-stage { min-height: 2400px; }
}

@media (max-width: 767.98px) {
  .site-nav { padding-top: 9px; }
  .nav-right { gap: 12px; }
  .nav-links { gap: 13px; }
  .site-nav a { font-size: .68rem; }
  .languages { display: none; }
  .hero { min-height: 335px; }
  .hero-logo-wrap { width: 185px; }
  .intro-section { min-height: 300px; }
  .portrait-card { width: 145px; }
  .intro-copy h1 { font-size: clamp(1.65rem, 7vw, 2.55rem); }
  .intro-copy p { font-size: .88rem; }
  .about-section { min-height: 840px; padding-top: 46px; }
  .about-copy { max-width: 64vw; }
  .raven-background {
    top: 45px;
    right: -13vw;
    width: 78vw;
    height: calc(100% + 50px);
    opacity: .88;
  }
  .blackbook-section { padding-top: 22px; }
  .blackbook-stage { min-height: 2750px; }
  .instagram-card-wrap { width: 50%; }
}

@media (max-width: 575.98px) {
  .nav-links a:nth-child(2) { display: none; }
  .nav-links { gap: 12px; }
  .site-nav { align-items: center; }
  .intro-section { padding-top: 2.6rem !important; padding-bottom: 2.4rem !important; }
  .portrait-card { width: 112px; }
  .portrait-card { border-width: 3px; }
  .portrait-crop img {
    width: calc(100% + 22px);
    height: calc(100% + 22px);
    left: -11px;
    top: -11px;
  }
  .about-section { min-height: 900px; }
  .about-copy { max-width: 78vw; }
  .raven-background { width: 92vw; right: -25vw; opacity: .82; }
  .blackbook-stage { min-height: 2950px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .parallax { transform: none !important; }
}
