/* TORITAPRO Director Portfolio — built from Figma design (2026-11-21) */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --bg: #1c1c1c;
  --bg-contact: #24231f;
  --gold: #c4ab7a;
  --accent-red: #B3261E;
  --text: #ede6db;
  --text-dim: #b1ada5;
  --card-light: #e1dcd0;
  --card-dark: #292925;
  --card-border: #4a4538;
  --divider: #464033;
  --card-text: #1c1c1c;
  --card-sub: #544d3e;
  --film-base: #1a1508;
  --film-border: #3d3520;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --gutter: 80px;
  --max: 1280px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---- Shared ---- */
.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}
.label--gold { color: var(--gold); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
}
.display--mid { font-size: 48px; }

.hairline {
  height: 1px;
  background: var(--gold);
  opacity: 0.28;
}
.hairline--nav { margin: 0 var(--gutter); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn--filled {
  background: var(--gold);
  color: var(--bg);
}
.btn--outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--text);
}
.btn--lg { height: 64px; font-size: 12px; letter-spacing: 1.8px; padding: 0 48px; }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 34px var(--gutter);
}
.nav__logo-img {
  height: 48px;
  width: auto;
  mix-blend-mode: lighten;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__link {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--text);
  transition: color 0.2s;
}
.nav__link--active, .nav__link:hover { color: var(--gold); }
.nav__contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: 1px solid var(--gold);
  font-size: 11px;
  color: var(--gold);
  transition: background 0.2s, color 0.2s;
}
.nav__contact-btn:hover { background: var(--gold); color: var(--bg); }
.nav__toggle { display: none; }

/* ---- Hero ---- */
.hero {
  position: relative;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 90px var(--gutter) 0;
  min-height: 700px;
}
.hero__portrait {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-40%);
  width: 820px;
  height: 780px;
  overflow: hidden;
}
.hero__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.15) contrast(1.08);
}
.hero__portrait-fade-left {
  position: absolute;
  top: 0; left: 0;
  width: 120px; height: 100%;
  background: linear-gradient(to right, var(--bg), rgba(28,28,28,0.6) 50%, transparent);
}
.hero__portrait-fade-right {
  position: absolute;
  top: 0; right: 0;
  width: 280px; height: 100%;
  background: linear-gradient(to left, var(--bg), rgba(28,28,28,0.7) 40%, transparent);
}
.hero__portrait-fade-bottom {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 350px;
  background: linear-gradient(180deg, rgba(28,28,28,0) 0%, rgba(28,28,28,0.15) 20%, rgba(28,28,28,0.6) 50%, rgba(28,28,28,0.95) 80%, var(--bg) 100%);
}
.hero__portrait-fade-top {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 80px;
  background: linear-gradient(to bottom, var(--bg), rgba(28,28,28,0.3) 60%, transparent);
}
.hero__portrait-rim {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 75% 35%, rgba(179,38,30,0.4) 0%, rgba(179,38,30,0.15) 25%, transparent 50%),
    radial-gradient(ellipse at 65% 50%, rgba(179,38,30,0.2) 0%, transparent 40%);
  pointer-events: none;
}
.hero__intro {
  position: relative;
  z-index: 2;
  max-width: 500px;
}
.hero__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 104px;
  line-height: 1;
  color: var(--text);
  margin-top: 12px;
}
.hero__hairline {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin-top: 24px;
}
.hero__role {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text);
  margin-top: 24px;
}
.hero__tagline {
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-dim);
}
.hero__ctas {
  display: flex;
  gap: 16px;
  margin-top: 48px;
}

/* ---- Brand Reel (rotating spool + vertical film strip) ---- */
.brand-reel {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  width: 180px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Film reel container */
.film-reel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Spinning spool */
.film-reel__spool {
  width: 150px;
  height: 150px;
  animation: spool-spin 12s linear infinite;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 20px rgba(196,171,122,0.15));
}
@keyframes spool-spin {
  to { transform: rotate(360deg); }
}
.film-reel__svg {
  width: 100%;
  height: 100%;
}

/* Vertical film strip */
.film-strip {
  position: relative;
  overflow: hidden;
  width: 148px;
  height: 520px;
  margin-top: -4px;
  background: var(--film-base);
  border-left: 3px solid var(--film-border);
  border-right: 3px solid var(--film-border);
}
.film-strip::before,
.film-strip::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 70px;
  z-index: 2;
  pointer-events: none;
}
.film-strip::before { top: 0; background: linear-gradient(to bottom, var(--bg), transparent); }
.film-strip::after  { bottom: 0; background: linear-gradient(to top, var(--bg), transparent); }

.film-strip__track {
  display: flex;
  flex-direction: column;
  animation: strip-scroll 35s linear infinite;
}
@keyframes strip-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Individual film frames — negative look */
.film-frame {
  flex-shrink: 0;
  width: 112px;
  height: 82px;
  margin: 8px auto;
  background: #2a2214;
  border: 1px solid rgba(196,171,122,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  position: relative;
  border-radius: 2px;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.5);
}
.film-frame::before,
.film-frame::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 80%;
  width: 5px;
  background: repeating-linear-gradient(
    180deg,
    rgba(196,171,122,0.3) 0px, rgba(196,171,122,0.3) 4px,
    transparent 4px, transparent 8px
  );
}
.film-frame::before { left: -10px; }
.film-frame::after  { right: -10px; }

.film-frame img {
  max-height: 58px;
  max-width: 88px;
  object-fit: contain;
  filter: sepia(0.15) brightness(0.95);
}

@keyframes strip-scroll-h {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .film-reel__spool { animation: none; }
  .film-strip__track { animation: none; }
}

/* ---- Detail Bar ---- */
.detail-bar {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.detail-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
}
.detail-bar__left {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
}
.detail-bar__right {
  font-size: 10px;
  color: var(--gold);
  transition: opacity 0.2s;
}
.detail-bar__right:hover { opacity: 0.7; }

/* ---- Showreel ---- */
.showreel {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 60px var(--gutter) 0;
}
.showreel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
}
.showreel__header .display { font-size: 64px; }
.showreel__sub {
  font-size: 15px;
  color: var(--text-dim);
  padding-bottom: 8px;
}
.showreel__cover {
  margin-top: 24px;
  position: relative;
}
.showreel__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 46px 44px;
  min-height: 390px;
  position: relative;
}
.showreel__text { max-width: 500px; }
.showreel__title {
  font-size: 65px;
  margin-top: 20px;
}
.showreel__watch {
  display: inline-block;
  margin-top: 160px;
  transition: opacity 0.2s;
}
.showreel__watch:hover { opacity: 0.7; }
.showreel__reel {
  position: relative;
  width: 420px;
  flex-shrink: 0;
}
.showreel__reel-img {
  width: 100%;
  opacity: 0.9;
  border-radius: 69px;
}
.showreel__reel-fades {
  position: absolute;
  inset: 0;
  border-radius: 69px;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 16%, transparent 85%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, transparent 12%, transparent 92%, var(--bg) 100%);
  pointer-events: none;
}
.showreel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.showreel__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.showreel__play-icon {
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 24px;
}
.showreel__tags {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--text-dim);
  text-align: right;
  padding: 0 44px 24px;
}

/* ---- About ---- */
.about {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.about__label { margin-top: 42px; }
.about__grid {
  display: flex;
  gap: 100px;
  margin-top: 20px;
  padding-bottom: 60px;
}
.about__left .display { font-size: 62px; }
.about__right { padding-top: 4px; }
.about__body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-top: 24px;
  max-width: 605px;
}

/* ---- Contact ---- */
.contact {
  background: var(--bg-contact);
  padding: 43px var(--gutter) 0;
}
.contact__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: var(--max);
  margin: 0 auto;
}
.contact__heading { font-size: 65px; margin-top: 38px; }
.contact__btn { margin-top: 92px; }
.contact__label {
  max-width: var(--max);
  margin: 0 auto;
}
.contact__hairline {
  max-width: var(--max);
  margin: 50px auto 0;
}
.contact__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 0 24px;
}
.contact__footer-tag {
  font-size: 9px;
  color: var(--text-dim);
}

/* ---- Mobile ---- */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 1200px) {
  .brand-reel {
    width: 150px;
  }
  .film-reel__spool { width: 120px; height: 120px; }
  .film-strip { width: 124px; height: 440px; }
  .film-frame { width: 92px; height: 70px; margin: 7px auto; }
  .film-frame img { max-height: 48px; max-width: 72px; }
  .hero__portrait {
    width: 580px;
    height: 580px;
    transform: translateX(-20%);
  }
  .hero__name { font-size: 72px; }
}

@media (max-width: 900px) {
  :root { --gutter: 32px; }
  .hairline--nav { margin: 0 var(--gutter); }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px var(--gutter) 32px;
    gap: 20px;
    border-bottom: 1px solid rgba(196,171,122,0.2);
  }
  .nav__links.open { display: flex; }
  .nav__contact-btn { align-self: flex-start; }

  .hero {
    padding-top: 40px;
    min-height: auto;
  }
  .hero__portrait {
    position: relative;
    top: auto; left: auto;
    transform: none;
    width: 100%;
    height: 400px;
    margin-top: 32px;
  }
  .hero__portrait-img { object-position: center top; }
  .hero__portrait-fade-right { width: 100px; }
  .hero__name { font-size: 56px; }
  .hero__tagline { font-size: 16px; }
  .hero__ctas { flex-wrap: wrap; }

  .brand-reel {
    position: relative;
    top: auto; right: auto;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
  }
  .film-reel {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
  .film-reel__spool { width: 100px; height: 100px; }
  .film-strip {
    width: auto;
    height: 80px;
    margin-top: 0;
    margin-left: -4px;
    border-left: 3px solid #333;
    border-right: 3px solid #333;
    border-top: none;
    border-bottom: none;
    flex-direction: row;
  }
  .film-strip::before { top: 0; bottom: 0; left: 0; right: auto; width: 40px; height: auto; background: linear-gradient(to right, var(--bg), transparent); }
  .film-strip::after  { top: 0; bottom: 0; right: 0; left: auto; width: 40px; height: auto; background: linear-gradient(to left, var(--bg), transparent); }
  .film-strip__track {
    flex-direction: row;
    animation: strip-scroll-h 30s linear infinite;
  }
  .film-frame { width: 90px; height: 62px; margin: 3px 2px; }
  .film-frame::before,
  .film-frame::after {
    top: auto; left: 50%; right: auto;
    transform: translateX(-50%);
    width: 60%; height: 4px;
  }
  .film-frame::before { top: -6px; bottom: auto; left: 50%; }
  .film-frame::after  { bottom: -6px; top: auto; left: 50%; }
  .film-frame img { max-height: 42px; max-width: 70px; }

  .showreel__header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .showreel__header .display { font-size: 42px; }
  .showreel__content {
    flex-direction: column;
    gap: 32px;
    padding: 32px 24px;
  }
  .showreel__title { font-size: 42px; }
  .showreel__watch { margin-top: 40px; }
  .showreel__reel { width: 100%; max-width: 320px; margin: 0 auto; }
  .showreel__tags { text-align: left; padding: 0 24px 20px; }

  .about__grid {
    flex-direction: column;
    gap: 32px;
  }
  .about__left .display { font-size: 42px; }
  .display--mid { font-size: 36px; }

  .contact__grid { flex-direction: column; gap: 24px; }
  .contact__heading { font-size: 36px; }
  .contact__btn { margin-top: 0; width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .hero__name { font-size: 40px; }
  .hero__tagline { font-size: 15px; }
  .showreel__header .display { font-size: 32px; }
  .showreel__title { font-size: 32px; }
  .about__left .display { font-size: 32px; }
  .display--mid { font-size: 28px; }
  .contact__heading { font-size: 28px; }
  .btn { height: 48px; padding: 0 24px; font-size: 10px; }
  .btn--lg { height: 52px; }
}

/* ---- Astro build additions (same tokens as the design) ---- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--bg); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 16px; top: 16px; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.showreel__reel { display: block; }
.section {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 96px var(--gutter) 0;
}
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 10px; }
.section__head .display { font-size: 64px; }
.film-list { list-style: none; margin-top: 32px; border-top: 1px solid var(--divider); }
.film-list a {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 4px; border-bottom: 1px solid var(--divider);
  transition: background .25s, padding .25s;
}
.film-list a:hover { background: rgba(196,171,122,.06); padding-left: 16px; }
.fl-title { font-family: var(--serif); font-size: 28px; line-height: 1.25; }
.fl-title small { display: block; font-family: var(--sans); font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.fl-len { font-size: 12px; letter-spacing: 1.2px; color: var(--gold); white-space: nowrap; }
.note { font-size: 13px; color: var(--text-dim); margin-top: 16px; }
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.board { margin: 0; border: 1px solid var(--card-border); background: var(--card-dark); overflow: hidden; }
.board img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .6s ease; }
.board:hover img { transform: scale(1.03); }
.board figcaption { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.board figcaption .display { font-size: 26px; }
.about { padding-top: 96px; }
.about__portrait { margin-top: 40px; width: 100%; max-width: 420px; aspect-ratio: 4/5; object-fit: cover; filter: saturate(.85) contrast(1.05); border: 1px solid var(--card-border); }
.inline-link { color: var(--gold); border-bottom: 1px solid rgba(196,171,122,.4); }
.contact { margin-top: 40px; }
.contact__actions { display: flex; flex-direction: column; align-items: flex-end; }
.contact__lines { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-top: 24px; font-size: 14px; color: var(--text-dim); }
.contact__lines a:hover { color: var(--gold); }
.credit { max-width: var(--max); margin: 0 auto; padding: 0 0 28px; font-size: 11px; letter-spacing: .4px; color: var(--text-dim); }
.credit a { color: var(--gold); }
.not-found { padding-bottom: 120px; }
.not-found .display { font-size: 64px; margin: 24px 0 40px; }
@media (max-width: 900px) {
  .section { padding-top: 64px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section__head .display, .not-found .display { font-size: 42px; }
  .film-list a { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .fl-brand { grid-column: 1 / -1; }
  .fl-title { font-size: 22px; }
  .boards { grid-template-columns: 1fr; }
  .about { padding-top: 64px; }
  .contact__actions, .contact__lines { align-items: flex-start; width: 100%; }
}
@media (max-width: 480px) {
  .section__head .display, .not-found .display { font-size: 32px; }
}
.showreel__title, .fl-title { line-height: 1.3; }
.showreel__title { font-size: 52px; }
@media (max-width: 900px) { .showreel__title { font-size: 34px; } }
/* Mobile: keep the horizontal logo strip inside the screen */
@media (max-width: 900px) {
  .brand-reel { overflow: hidden; }
  .film-reel { width: 100%; min-width: 0; }
  .film-strip { flex: 1 1 auto; min-width: 0; overflow: hidden; }
}
