/* ═══════════════════════════════════════════
   POST BAIL — assets/postbail.css
   Dark theme · Kanit · Accent #d30000
   ═══════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --clr-bg:        #0b0b0b;
  --clr-surface:   #141414;
  --clr-surface-2: #1e1e1e;
  --clr-text:      #f0f0f0;
  --clr-text-mid:  #a0a0a0;
  --clr-text-dim:  #666;
  --clr-accent:    #d30000;
  --clr-accent-hi: #ff1a1a;
  --clr-white:     #fff;
  --clr-overlay:   rgba(0, 0, 0, .55);
  --clr-lightbox:  rgba(0, 0, 0, .88);

  --font-main: 'Kanit', system-ui, sans-serif;

  --nav-h:      72px;
  --radius:     12px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --shadow:     0 4px 24px rgba(0,0,0,.5);
  --max-w:      1440px;
}


/* ═══════════════════════════════════════════
   RESET / BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--clr-accent);
  color: var(--clr-white);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb {
  background: var(--clr-surface-2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-accent); }


/* ═══════════════════════════════════════════
   POSTBAIL LOADING INTRO
   ═══════════════════════════════════════════ */
.pb-loading {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg);
  transition: opacity .4s ease, visibility .4s ease;
}

.pb-loading.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pb-loading__logo {
  width: 190px;
  height: auto;
  display: block;
  image-rendering: auto;
}


/* ═══════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 29px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform .15s ease, font-size .3s ease;
  filter: drop-shadow(0 0 4px rgba(211, 0, 0, .4));
  will-change: left, top;
}

.cursor.is-hover {
  font-size: 38px;
  transform: translate(-50%, -50%) rotate(-15deg);
}

@media (hover: none) and (pointer: coarse) {
  .cursor { display: none; }
  * { cursor: auto !important; }
}

@media (hover: hover) and (pointer: fine) {
  body, a, button, .work-item, .filter-btn, input, textarea {
    cursor: none;
  }
  .cursor { display: flex; }
}


/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  z-index: 1000;
  background: rgba(11, 11, 11, .6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav__logo img {
  height: 42px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__links a {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--clr-text-mid);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width var(--transition);
}

.nav__links a:hover {
  color: var(--clr-white);
}

.nav__links a:hover::after {
  width: 100%;
}

/* ── Hamburger ── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-active span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ═══════════════════════════════════════════
   BUTTONS (shared)
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              transform .15s ease, box-shadow var(--transition);
}

.btn--lg {
  padding: 18px 48px;
  font-size: 1.1rem;
  letter-spacing: .1em;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--accent {
  background: var(--clr-accent);
  color: var(--clr-white);
  border-color: var(--clr-accent);
}

.btn--accent:hover {
  background: var(--clr-accent-hi);
  border-color: var(--clr-accent-hi);
  box-shadow: 0 6px 20px rgba(211, 0, 0, .35);
}

.btn:not(.btn--accent) {
  background: transparent;
  color: var(--clr-text);
  border-color: rgba(255,255,255,.25);
}

.btn:not(.btn--accent):hover {
  border-color: var(--clr-white);
  background: rgba(255,255,255,.06);
}


/* ═══════════════════════════════════════════
   TICKER
   ═══════════════════════════════════════════ */
.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 12px 0;
  background: rgba(255,255,255,.02);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.ticker__track span {
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  white-space: nowrap;
}

.ticker__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--clr-accent);
  transform: rotate(45deg);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════
   SECTION TITLE (shared)
   ═══════════════════════════════════════════ */
.section-title {
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 48px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--clr-accent);
  margin: 14px auto 0;
  border-radius: 2px;
}


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  opacity: 0;
  transition: opacity .5s ease .1s;
}

.hero.is-visible { opacity: 1; }

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--clr-overlay);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  max-width: 820px;
}

.hero__logo {
  width: min(380px, 65vw);
  margin: 0 auto 32px;
}

.hero__tagline {
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 16px;
}

.hero__desc {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 300;
  color: var(--clr-text-mid);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.hero__ctas-secondary {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__ctas-secondary .btn {
  padding: 11px 24px;
  font-size: .95rem;
}


/* ═══════════════════════════════════════════
   SHOWREEL
   ═══════════════════════════════════════════ */
.showreel {
  padding: 100px 24px;
  display: flex;
  justify-content: center;
  background: var(--clr-bg);
}

.showreel__frame {
  position: relative;
  width: 100%;
  max-width: 1440px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.showreel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


/* ═══════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════ */
.portfolio {
  padding: 80px 24px 120px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.portfolio__filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-text-mid);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition),
              border-color var(--transition);
}

.filter-btn:hover {
  color: var(--clr-white);
  border-color: rgba(255,255,255,.3);
}

.filter-btn.is-active {
  background: var(--clr-accent);
  color: var(--clr-white);
  border-color: var(--clr-accent);
}

.filter-btn[data-filter="featured"] {
  box-shadow: inset 0 -2px 0 0 var(--clr-accent);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ── Work Item ── */
.work-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--clr-surface);
}

.work-item::before {
  content: "CASE #" attr(data-case);
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.45);
  padding: 4px 8px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .4s ease;
}

.work-item:hover img {
  transform: scale(1.05);
  filter: brightness(.5);
}

.work-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.3) 50%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
}

.work-item:hover .work-item__overlay {
  opacity: 1;
  transform: translateY(0);
}

.work-item__client {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-accent-hi);
  margin-bottom: 6px;
}

.work-item__title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.work-item__services {
  font-size: 1rem;
  font-weight: 300;
  color: var(--clr-text-mid);
}

.work-item.is-hidden { display: none; }

/* ── Featured indicator ── */
.work-item[data-featured="true"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--clr-accent);
  z-index: 2;
}




/* ═══════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: var(--clr-lightbox);
}

.lightbox__content {
  position: relative;
  z-index: 1;
  width: min(95vw, 1440px);
}

.lightbox__frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,.7);
  border: 2px dashed rgba(255,255,255,.15);
}

.lightbox__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--clr-text-mid);
  transition: color var(--transition), transform var(--transition);
  line-height: 1;
}

.lightbox__close:hover {
  color: var(--clr-white);
  transform: rotate(90deg);
}


/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about {
  padding: 100px 24px;
  background: var(--clr-surface);
}

.about__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about__logo {
  width: min(310px, 55vw);
  margin: 0 auto 32px;
  opacity: .9;
}

.about__text {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--clr-text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__text a {
  color: var(--clr-accent-hi);
  font-weight: 500;
  transition: color var(--transition);
}

.about__text a:hover { color: var(--clr-white); }

.about__motto {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin: 32px 0 36px;
}

.about .btn { margin-top: 8px; }

/* ── About bio twirl-down ── */
.about__bio {
  margin: 2rem 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.about__bio-toggle {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.about__bio-toggle::-webkit-details-marker {
  display: none;
}

.about__bio-toggle::before {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* Desktop hover */
.about__bio-toggle:hover {
  color: var(--clr-white);
}

.about__bio-toggle:hover::before {
  color: var(--clr-accent-hi);
}

/* Mobile tap feedback */
.about__bio-toggle:active {
  color: var(--clr-white);
}

.about__bio-toggle:active::before {
  color: var(--clr-accent-hi);
}


.about__bio[open] .about__bio-toggle::before {
  transform: rotate(45deg);
}

.about__bio-content {
  padding: 0.5rem 0 1.5rem;
}

.about__bio-content .about__text {
  margin-bottom: 1rem;
}

.about__bio-content .about__text:last-child {
  margin-bottom: 0;
}


/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact {
  position: relative;
  overflow: hidden;
  padding: 100px 24px 120px;
  background: var(--clr-bg);
  border-top: 1px solid rgba(255,255,255,.06);
}

.contact__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact__logo {
  width: min(340px, 60vw);
  margin: 0 auto 28px;
  opacity: .9;
}

.contact__tagline {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--clr-text-mid);
  margin-bottom: 40px;
}

/* ── Form ── */
.contact__form { text-align: left; }

.contact__form input,
.contact__form textarea {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 16px 22px;
  font: inherit;
  font-size: 1.1rem;
  color: var(--clr-white);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition),
              box-shadow var(--transition),
              background var(--transition);
}

.contact__form textarea { min-height: 120px; }

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: rgba(255, 255, 255, .45);
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px rgba(211, 0, 0, .2);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact__form .btn {
  width: 100%;
  margin-top: 8px;
  padding: 16px 32px;
}

.contact__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.1);
  margin: 36px auto;
  width: 60%;
}

.contact__copy {
  display: inline-flex;
  padding: 12px 28px;
  font-size: 1rem;
  border-color: rgba(255,255,255,.2);
  color: var(--clr-text-mid);
}

.contact__copy:hover {
  border-color: rgba(255,255,255,.5);
  color: var(--clr-white);
}

/* ── Jail Bars (contact: open on scroll) ── */
.contact__bars {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  pointer-events: none;
}

.contact__bar {
  flex: 1;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 71px,
    rgba(255,255,255,.03) 71px,
    rgba(255,255,255,.09) 78px,
    rgba(255,255,255,.03) 85px
  );
  transition: transform 1.5s cubic-bezier(.65, 0, .35, 1);
}

.contact__bar--left  { transform: translateX(0); }
.contact__bar--right { transform: translateX(0); }

.contact.bars-open .contact__bar--left  { transform: translateX(-100%); }
.contact.bars-open .contact__bar--right { transform: translateX(100%); }


/* ═══════════════════════════════════════════
   FLOATING EMAIL
   ═══════════════════════════════════════════ */
.float-email {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: block;
  line-height: 0;
  filter: drop-shadow(0 0 10px rgba(211, 0, 0, .6))
          drop-shadow(0 0 22px rgba(211, 0, 0, .3));
  transition: transform .25s ease, opacity .4s ease, filter .3s ease;
}

.float-email img {
  width: 56px;
  height: 56px;
}

.float-email:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 14px rgba(211, 0, 0, .8))
          drop-shadow(0 0 32px rgba(211, 0, 0, .4));
}

.float-email.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(.5);
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 60px 24px 48px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer__top {
  display: inline-block;
  margin-bottom: 24px;
  opacity: .5;
  transition: opacity var(--transition), transform var(--transition);
}

.footer__top:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.footer__tagline {
  font-size: .95rem;
  font-weight: 300;
  font-style: italic;
  color: var(--clr-text-dim);
  margin-bottom: 10px;
  letter-spacing: .03em;
}

.footer p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--clr-text-dim);
  letter-spacing: .04em;
}


/* ═══════════════════════════════════════════
   404 — THE CELL
   ═══════════════════════════════════════════ */
.page-404 {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.error-404 {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 24px 60px;
  overflow: hidden;
  background: var(--clr-bg);
  opacity: 0;
  transition: opacity .45s ease .1s;
}

.error-404.is-visible { opacity: 1; }

/* Vignette */
.error-404__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 70% 65% at 50% 50%,
    transparent 0%,
    rgba(0, 0, 0, .55) 100%
  );
  pointer-events: none;
}

/* Flashlight sweep */
.error-404__flashlight {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.error-404__flashlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 55%;
  height: 100%;
  background: radial-gradient(
    ellipse 50% 70% at 50% 50%,
    rgba(255, 250, 235, .04) 0%,
    rgba(255, 250, 235, .02) 40%,
    transparent 75%
  );
  animation: flashlight-sweep 7s ease-in-out infinite;
}

@keyframes flashlight-sweep {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(320%); }
}

/* Jail bars (static, stay closed) */
.error-404__bars {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 71px,
    rgba(255,255,255,.03) 71px,
    rgba(255,255,255,.09) 78px,
    rgba(255,255,255,.03) 85px
  );
}

/* Content */
.error-404__content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 700px;
  transform: translateY(14px);
  opacity: 0;
  transition: transform .5s ease .15s, opacity .5s ease .15s;
}

.error-404.is-visible .error-404__content {
  transform: translateY(0);
  opacity: 1;
}

.error-404__label {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clr-accent-hi);
  border: 1px solid rgba(211, 0, 0, .35);
  padding: 5px 16px;
  border-radius: 4px;
  margin-bottom: 28px;
}

.error-404__title {
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.35;
  margin-bottom: 20px;
}

.error-404__sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--clr-text-mid);
  line-height: 1.8;
  margin-bottom: 44px;
}

.error-404__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.error-404__alt {
  padding: 10px 24px;
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--clr-text-dim);
  border-color: rgba(255, 255, 255, .1);
}

.error-404__alt:hover {
  color: var(--clr-text-mid);
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .03);
}


/* ═══════════════════════════════════════════
   THANK YOU — RELEASED
   ═══════════════════════════════════════════ */
.page-thanks {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.thanks-page {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 24px 60px;
  overflow: hidden;
  background: var(--clr-bg);
  opacity: 0;
  transition: opacity .45s ease .1s;
}

.thanks-page.is-visible { opacity: 1; }

/* Vignette (fades out when bars open) */
.thanks-page__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 70% 65% at 50% 50%,
    transparent 0%,
    rgba(0, 0, 0, .55) 100%
  );
  pointer-events: none;
  transition: opacity 1.2s ease .4s;
}

.thanks-page.bars-open .thanks-page__vignette { opacity: 0; }

/* Jail bars (closed → open) */
.thanks-page__bars {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  pointer-events: none;
}

.thanks-page__bar {
  flex: 1;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 71px,
    rgba(255,255,255,.03) 71px,
    rgba(255,255,255,.09) 78px,
    rgba(255,255,255,.03) 85px
  );
  transition: transform 1.5s cubic-bezier(.65, 0, .35, 1);
}

.thanks-page__bar--left  { transform: translateX(0); }
.thanks-page__bar--right { transform: translateX(0); }

.thanks-page.bars-open .thanks-page__bar--left  { transform: translateX(-100%); }
.thanks-page.bars-open .thanks-page__bar--right { transform: translateX(100%); }

/* Content */
.thanks-page__content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 680px;
  transform: translateY(14px);
  opacity: 0;
  transition: transform .5s ease .15s, opacity .5s ease .15s;
}

.thanks-page.is-visible .thanks-page__content {
  transform: translateY(0);
  opacity: 1;
}

.thanks-page__label {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clr-accent-hi);
  border: 1px solid rgba(211, 0, 0, .35);
  padding: 5px 16px;
  border-radius: 4px;
  margin-bottom: 28px;
}

.thanks-page__title {
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.35;
  margin-bottom: 20px;
}

.thanks-page__sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--clr-text-mid);
  line-height: 1.8;
  margin-bottom: 44px;
}

/* Redirect note */
.thanks-page__redirect {
  margin-top: 48px;
  font-size: .9rem;
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--clr-text-dim);
  opacity: 0;
  transition: opacity .8s ease;
}

.thanks-page__redirect.is-visible { opacity: 1; }


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  .portfolio__grid { gap: 24px; }
}

/* ── Mobile ── */
@media (max-width: 768px) {

  /* Nav */
  .nav { padding: 0 20px; }

  .nav__hamburger { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(75vw, 300px);
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: rgba(11, 11, 11, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: right var(--transition);
    z-index: 1000;
  }

  .nav__links.is-open { right: 0; }
  .nav__links a { font-size: 1.3rem; }

  /* Hero */
  .hero {
    min-height: 100svh;
    padding-bottom: 40px;
  }

  .hero__content { padding: 16px; }

  .hero__logo {
    width: min(160px, 45vw);
    margin-bottom: 20px;
  }

  .hero__tagline {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .hero__desc {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }

  .btn--lg {
    width: min(240px, 70vw);
    padding: 14px 28px;
    font-size: 1rem;
  }

  .hero__ctas-secondary {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
  }

  .hero__ctas-secondary .btn {
    width: min(180px, 60vw);
    padding: 10px 20px;
    font-size: .9rem;
  }

  /* Showreel */
  .showreel { padding: 60px 16px; }

  /* Portfolio */
  .portfolio { padding: 60px 16px 80px; }

  .portfolio__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-item { aspect-ratio: 16 / 11; }

  .work-item__overlay {
    opacity: 1;
    transform: none;
    padding: 20px;
    background: linear-gradient(
      to top,
      rgba(0,0,0,.8) 0%,
      rgba(0,0,0,.2) 60%,
      transparent 100%
    );
  }

  .filter-btn {
    padding: 8px 20px;
    font-size: .9rem;
  }

  /* Lightbox */
  .lightbox__close {
    top: -40px;
    font-size: 1.9rem;
  }

  /* Floating email */
  .float-email {
    bottom: 20px;
    right: 20px;
  }

  .float-email img {
    width: 48px;
    height: 48px;
  }

  /* 404 */
  .error-404 { padding: var(--nav-h) 20px 50px; }

  .error-404__title {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }

  .error-404__sub {
    font-size: 1rem;
    margin-bottom: 36px;
  }

  .error-404__label {
    font-size: .8rem;
    margin-bottom: 20px;
  }

  .error-404__alt {
    width: min(180px, 58vw);
    font-size: .85rem;
  }

  .error-404__contraband span { font-size: 1.5rem; }

  .error-404__bars {
    background: repeating-linear-gradient(
      90deg,
      transparent,
      transparent 58px,
      rgba(255,255,255,.03) 58px,
      rgba(255,255,255,.09) 63px,
      rgba(255,255,255,.03) 68px
    );
  }

  /* Thank you */
  .thanks-page { padding: var(--nav-h) 20px 50px; }

  .thanks-page__title {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }

  .thanks-page__sub {
    font-size: 1rem;
    margin-bottom: 36px;
  }

  .thanks-page__label {
    font-size: .8rem;
    margin-bottom: 20px;
  }

  .thanks-page__bar {
    background: repeating-linear-gradient(
      90deg,
      transparent,
      transparent 58px,
      rgba(255,255,255,.03) 58px,
      rgba(255,255,255,.09) 63px,
      rgba(255,255,255,.03) 68px
    );
  }
}

/* ── Small phone ── */
@media (max-width: 400px) {
  .hero__tagline { font-size: 1.3rem; }
  .hero__desc { font-size: 1rem; }
  .hero__logo { width: min(130px, 40vw); }
  .hero__ctas-secondary .btn { width: min(160px, 55vw); }
  .work-item__title { font-size: 1.15rem; }

  .error-404__title { font-size: 1.4rem; }
  .error-404__sub { font-size: .95rem; }

  .thanks-page__title { font-size: 1.4rem; }
  .thanks-page__sub { font-size: .95rem; }
}


/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  html { scroll-behavior: auto; }

  .error-404__flashlight::before {
    animation: none;
    left: 20%;
    width: 60%;
  }

  .error-404__contraband span {
    animation: none;
  }
}
